function KIT_AjaxPostRequestPackage(n,t,i,r,u,f){var e=$.ajax({url:n,type:"POST",async:f,dataType:"json",data:{RequestPackageType:JSONstringify(i)},success:function(n){r(n)},error:function(n,t,i){u(n,t,i)},complete:function(){e=null}});$("a").click(function(){e!=null&&$(this).attr("href")!="#"&&document.location!=$(this).attr("href")&&e.abort()})}function KIT_TriggerEvent(n,t){$(document).trigger(n,t)}function KIT_BindEvent(n,t){$(document).bind(n,t)}function KIT_UnBindEvent(n){$(document).unbind(n)}function KIT_SetCookie(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5);u="expires="+r.toGMTString();document.cookie=n+"="+t+"; "+u}function KIT_GetCookie(n){for(var r=n+"=",u=document.cookie.split(";"),i,t=0;t<u.length;t++)if(i=u[t].trim(),i.indexOf(r)==0)return i.substring(r.length,i.length);return""}function KIT_jSonDateToDate(n){return/\/Date\((-?\d+)(?:-\d+)?\)\//i.test(n)?new Date(parseInt(n.replace("/Date(",""))):n}function KIT_SendMail(n,t,i){var r=$.extend({SenderName:"test",SenderEmail:"test",MailAddresses:"test",Subject:"test",Body:"test",PageId:0,LanguageId:"sv"},n);KIT_AjaxPostRequestPackage("/kitmodules/generic/handlers/SendMailHandler.ashx?ver=1","SendMailRequest",r,function(n){t(n)},function(n,t,r){i(n,t,r)},!1)}function IsNullOrEmpty(n){return typeof n=="undefined"}function IsInIFrame(){return window.location!=window.parent.location}function soi(n,t,i){var f,e,o,r,u;for(t=t||"",i=i||1,f="",e=1;e<i;e++)f+="\t";if(o=" ("+typeof t+")",i==1&&(o="(self)"),r=f+t+o+" : ",typeof n=="object"&&n!==null){r+=typeof n+"\n";for(u in n)n.hasOwnProperty(u)&&(r+=soi(n[u],u,i+1))}else r+=""+n+" ("+typeof n+") \n";return r}function scrollToSection(n){var t=$(n).offset().top;$("html").animate({scrollTop:t},"slow",function(){openCollapsed(n)})}function openCollapsed(n){$(".collapse",n).collapse("show")}function toggleIcon(n){$(n.target).prev("h3").find("button span").toggleClass("fa-chevron-up fa-chevron-down")}function ClientLanguageManager(n){n=$.extend({langid:"sv",startnode:"language",cacheKey:""},n);this.LangStringArray=GetLanguageStringArray(n);this.Translate=function(t,i){var r=(n.startnode+n.cacheKey+t).replace(/\//g,"");return this.LangStringArray[r]!=null?this.LangStringArray[r]:i}}function GetLanguageStringArray(n){n=$.extend({langid:"sv",startnode:"functions",async:!1},n);var t="";return $.ajax({type:"GET",async:!1,url:"/kitmodules/clientlanguagemanager/handlers/getlanguagedocument.ashx?langid="+n.langid+"&langnode="+n.startnode,dataType:"json",success:function(n){try{t=n}catch(i){t=[]}},error:function(n,t,i){console.log("GetLanguageStringArray - error - ",n,t,i)}}),t}function lockScroll(n){n.preventDefault()}function checkToMoveSearch(){!$("#search-field",mobileSearchContainer).length>0&&window.innerWidth<768?moveSearchField("mobile"):!$("#search-field",desktopSearchContainer).length>0&&window.innerWidth>767&&moveSearchField("desktop")}function moveSearchField(n){n==="mobile"?$("#search-field").detach().appendTo(mobileSearchContainer):n==="desktop"&&$("#search-field").detach().appendTo(desktopSearchContainer)}function moveStatisticsButton(){$("body").hasClass("no-stats")&&($(document).width()<992?$(".statistics-button").detach().appendTo("#statistics-button-target"):$(".statistics-button").detach().prependTo(".sidebar"))}function guid(){function n(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}var Base64,JSONstringify,ModalPopup,kit,kit_directives,show,contentTitles,$linkItem,$button,$content,$wrapper,bootstrap,mobileSearchContainer,desktopSearchContainer,jaaulde,languageManager_statisticspresentation;if(!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function ir(n,t){t=t||u;var i=t.createElement("script");i.text=n;t.head.appendChild(i).parentNode.removeChild(i)}function fi(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return"function"!==r&&!i.isWindow(n)&&("array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n)}function l(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function oi(n,t,r){return i.isFunction(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return ot.call(t,n)>-1!==r}):er.test(t)?i.filter(t,n,r):(t=i.filter(t,n),i.grep(n,function(n){return ot.call(t,n)>-1!==r&&1===n.nodeType}))}function ar(n,t){while((n=n[t])&&1!==n.nodeType);return n}function ne(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function nt(n){return n}function pt(n){throw n;}function vr(n,t,r,u){var f;try{n&&i.isFunction(f=n.promise)?f.call(n).done(t).fail(r):n&&i.isFunction(f=n.then)?f.call(n,t,r):t.apply(void 0,[n].slice(u))}catch(n){r.apply(void 0,[n])}}function bt(){u.removeEventListener("DOMContentLoaded",bt);n.removeEventListener("load",bt);i.ready()}function ht(){this.expando=i.expando+ht.uid++}function re(n){return"true"===n||"false"!==n&&("null"===n?null:n===+n+""?+n:te.test(n)?JSON.parse(n):n)}function pr(n,t,i){var r;if(void 0===i&&1===n.nodeType)if(r="data-"+t.replace(ie,"-$&").toLowerCase(),i=n.getAttribute(r),"string"==typeof i){try{i=re(i)}catch(u){}e.set(n,t,i)}else i=void 0;return i}function kr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==o&&+s)&&ct.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f/=e,i.style(n,t,f+o);while(e!==(e=c()/s)&&1!==e&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ue(n){var r,f=n.ownerDocument,u=n.nodeName,t=si[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),"none"===t&&(t="block"),si[u]=t,t)}function tt(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)u=n[i],u.style&&(e=u.style.display,t?("none"===e&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),""===u.style.display&&kt(u)&&(f[i]=ue(u))):"none"!==e&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)null!=f[i]&&(n[i].style.display=f[i]);return n}function o(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&l(n,t)?i.merge([n],r):r}function hi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function iu(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||0===e)if("object"===i.type(e))i.merge(y,e.nodeType?[e]:e);else if(tu.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(gr.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];)if(u&&i.inArray(e,u)>-1)f&&f.push(e);else if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&hi(s),r)for(v=0;e=s[v++];)nu.test(e.type||"")&&r.push(e);return h}function gt(){return!0}function it(){return!1}function uu(){try{return u.activeElement}catch(n){}}function ci(n,t,r,u,f,e){var o,s;if("object"==typeof t){"string"!=typeof r&&(u=u||r,r=void 0);for(s in t)ci(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),f===!1)f=it;else if(!f)return n;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function fu(n,t){return l(n,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")?i(">tbody",n)[0]||n:n}function ae(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function ve(n){var t=ce.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function eu(n,t){var u,c,f,s,h,l,a,o;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),o=s.events)){delete h.handle;h.events={};for(f in o)for(u=0,c=o[f].length;u<c;u++)i.event.add(t,f,o[f][u])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function ye(n,t){var i=t.nodeName.toLowerCase();"input"===i&&dr.test(n.type)?t.checked=n.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=n.defaultValue)}function rt(n,t,u,e){t=gi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,k=v-1,y=t[0],b=i.isFunction(y);if(b||v>1&&"string"==typeof y&&!f.checkClone&&he.test(y))return n.each(function(i){var r=n.eq(i);b&&(t[0]=y.call(this,i,r.html()));rt(r,t,u,e)});if(v&&(l=iu(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,1===l.childNodes.length&&(l=p),p||e)){for(c=i.map(o(l,"script"),ae),a=c.length;h<v;h++)s=l,h!==k&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,ve),h=0;h<a;h++)s=c[h],nu.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):ir(s.textContent.replace(le,""),w))}return n}function ou(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&hi(o(u,"script")),u.parentNode.removeChild(u));return n}function lt(n,t,r){var o,s,h,u,e=n.style;return r=r||ni(n),r&&(u=r.getPropertyValue(t)||r[t],""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!f.pixelMarginRight()&&li.test(u)&&su.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),void 0!==u?u+"":u}function hu(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function be(n){if(n in vu)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=au.length;t--;)if(n=au[t]+i,n in vu)return n}function yu(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=be(n)||n),t}function pu(n,t,i){var r=ct.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wu(n,t,r,u,f){for(var o=0,e=r===(u?"border":"content")?4:"width"===t?1:0;e<4;e+=2)"margin"===r&&(o+=i.css(n,r+b[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+b[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+b[e]+"Width",!0,f))):(o+=i.css(n,"padding"+b[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+b[e]+"Width",!0,f)));return o}function bu(n,t,r){var o,e=ni(n),u=lt(n,t,e),s="border-box"===i.css(n,"boxSizing",!1,e);return li.test(u)?u:(o=s&&(f.boxSizingReliable()||u===n.style[t]),"auto"===u&&(u=n["offset"+t[0].toUpperCase()+t.slice(1)]),u=parseFloat(u)||0,u+wu(n,t,r||(s?"border":"content"),o,e)+"px")}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function ai(){ti&&(u.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(ai):n.setTimeout(ai,i.fx.interval),i.fx.tick())}function gu(){return n.setTimeout(function(){ut=void 0}),ut=i.now()}function ii(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=b[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function nf(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function ke(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&kt(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),null==c.unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],ku.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&1===n.nodeType&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,null==o&&(o=r.get(n,"display")),l=i.css(n,"display"),"none"===l&&(o?l=o:(tt([n],!0),o=n.style.display||o,l=i.css(n,"display"),tt([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(s||(v.done(function(){h.display=o}),null==o&&(l=h.display,o="none"===l?"":l)),h.display="inline-block"));u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0];h.overflowX=u.overflow[1];h.overflowY=u.overflow[2]}));s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&tt([n],!0),v.done(function(){a||tt([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=nf(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function de(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function a(n,t,r){var e,o,s=0,l=a.prefilters.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=ut||gu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(e||f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ut||gu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),h=u.props;for(de(h,u.opts.specialEasing);s<l;s++)if(e=a.prefilters[s].call(u,n,h,u.opts))return i.isFunction(e.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(e.stop,e)),e;return i.map(h,nf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u}function k(n){var t=n.match(h)||[];return t.join(" ")}function d(n){return n.getAttribute&&n.getAttribute("class")||""}function pi(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||ge.test(n)?u(n,i):pi(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)pi(n+"["+f+"]",t[f],r,u)}function cf(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function lf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===wi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ki(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function so(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function ho(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}var p=[],u=n.document,pf=Object.getPrototypeOf,w=p.slice,gi=p.concat,ui=p.push,ot=p.indexOf,vt={},nr=vt.toString,yt=vt.hasOwnProperty,tr=yt.toString,wf=tr.call(Object),f={},rr="3.2.1",i=function(n,t){return new i.fn.init(n,t)},bf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,kf=/^-ms-/,df=/-([a-z])/g,gf=function(n,t){return t.toUpperCase()},y,ei,er,or,sr,hr,cr,lr,h,yr,wt,v,st,si,tu,ut,ti,ku,du,tf,ft,rf,uf,ff,vi,af,et,di,ri,vf,yf;i.fn=i.prototype={jquery:rr,constructor:i,length:0,toArray:function(){return w.call(this)},get:function(n){return null==n?w.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(w.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ui,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if(null!=(e=arguments[u]))for(f in e)r=n[f],t=e[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(o?(o=!1,s=r&&Array.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(rr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isWindow:function(n){return null!=n&&n===n.window},isNumeric:function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==nr.call(n))&&(!(t=pf(n))||(i=yt.call(t,"constructor")&&t.constructor,"function"==typeof i&&tr.call(i)===wf))},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?vt[nr.call(n)]||"object":typeof n},globalEval:function(n){ir(n)},camelCase:function(n){return n.replace(kf,"ms-").replace(df,gf)},each:function(n,t){var r,i=0;if(fi(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(bf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(fi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ui.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ot.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(fi(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return gi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;if("string"==typeof t&&(u=n[t],t=n,n=u),i.isFunction(n))return f=w.call(arguments,2),r=function(){return n.apply(t||this,f.concat(w.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r},now:Date.now,support:f});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){vt["[object "+t+"]"]=t.toLowerCase()});y=function(n){function u(n,t,r,u){var s,w,l,a,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==v&&(d=cr.exec(n)))if(s=d[1]){if(9===v){if(!(l=t.getElementById(s)))return r;if(l.id===s)return r.push(l),r}else if(p&&(l=p.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=d[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(1!==v)p=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),y=ft(n),w=y.length;w--;)y[w]="#"+a+" "+yt(y[w]);g=y.join(",");p=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(nt){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&"parentNode"===e,s=di++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,h))return!0}else while(t=t[r])if(1===t.nodeType||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:wt(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[pt(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return!!t&&"HTML"!==t.nodeName};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement?(i=l,s=i.documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i,u,f,r=t.getElementById(n);if(r){if(i=r.getAttributeNode("id"),i&&i.value===n)return[r];for(f=t.getElementsByName(n),u=0;r=f[u++];)if(i=r.getAttributeNode("id"),i&&i.value===n)return[r]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&r||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i):i};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(f){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):void 0;return void 0!==u?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(e?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;b=k="only"===n&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(1===c.nodeType&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((e?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&(y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=lt(n,pr(e,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if(f=s[0]=s[0].slice(0),f.length>2&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0],!i)return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),n=u.length&&yt(f),!n)return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=y;i.expr=y.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=y.uniqueSort;i.text=y.getText;i.isXMLDoc=y.isXML;i.contains=y.contains;i.escapeSelector=y.escape;var g=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},ur=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},fr=i.expr.match.needsContext;ei=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;er=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(oi(this,n||[],!1))},not:function(n){return this.pushStack(oi(this,n||[],!0))},is:function(n){return!!oi(this,"string"==typeof n&&fr.test(n)?i(n):n||[],!1).length}});sr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;hr=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||or,"string"==typeof n){if(f="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:sr.exec(n),!f||!f[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),ei.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&(this[0]=e,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):i.isFunction(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)};hr.prototype=i.fn;or=i(u);cr=/^(?:parents|prev(?:Until|All))/;lr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!fr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ot.call(i(n),this[0]):ot.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return g(n,"parentNode")},parentsUntil:function(n,t,i){return g(n,"parentNode",i)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return g(n,"nextSibling")},prevAll:function(n){return g(n,"previousSibling")},nextUntil:function(n,t,i){return g(n,"nextSibling",i)},prevUntil:function(n,t,i){return g(n,"previousSibling",i)},siblings:function(n){return ur((n.parentNode||{}).firstChild,n)},children:function(n){return ur(n.firstChild)},contents:function(n){return l(n,"iframe")?n.contentDocument:(l(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(lr[n]||i.uniqueSort(f),cr.test(n)&&f.reverse()),this.pushStack(f)}});h=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n="string"==typeof n?ne(n):i.extend({},n);var e,r,h,u,t=[],o=[],f=-1,c=function(){for(u=u||n.once,h=e=!0;o.length;f=-1)for(r=o.shift();++f<t.length;)t[f].apply(r[0],r[1])===!1&&n.stopOnFalse&&(f=t.length,r=!1);n.memory||(r=!1);e=!1;u&&(t=r?[]:"")},s={add:function(){return t&&(r&&!e&&(f=t.length-1,o.push(r)),function u(r){i.each(r,function(r,f){i.isFunction(f)?n.unique&&s.has(f)||t.push(f):f&&f.length&&"string"!==i.type(f)&&u(f)})}(arguments),r&&!e&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=f&&f--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return u=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return u=o=[],r||e||(t=r=""),this},locked:function(){return!!u},fireWith:function(n,t){return u||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(t){var u=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],e="pending",f={state:function(){return e},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return f.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(u,function(u,f){var e=i.isFunction(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,f){function o(t,r,u,f){return function(){var s=this,h=arguments,l=function(){var n,c;if(!(t<e)){if(n=u.apply(s,h),n===r.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then;i.isFunction(c)?f?c.call(n,o(e,r,nt,f),o(e,r,pt,f)):(e++,c.call(n,o(e,r,nt,f),o(e,r,pt,f),o(e,r,nt,r.notifyWith))):(u!==nt&&(s=void 0,h=[n]),(f||r.resolveWith)(s,h))}},c=f?l:function(){try{l()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,c.stackTrace);t+1>=e&&(u!==pt&&(s=void 0,h=[n]),r.rejectWith(s,h))}};t?c():(i.Deferred.getStackHook&&(c.stackTrace=i.Deferred.getStackHook()),n.setTimeout(c))}}var e=0;return i.Deferred(function(n){u[0][3].add(o(0,n,i.isFunction(f)?f:nt,n.notifyWith));u[1][3].add(o(0,n,i.isFunction(t)?t:nt));u[2][3].add(o(0,n,i.isFunction(r)?r:pt))}).promise()},promise:function(n){return null!=n?i.extend(n,f):f}},r={};return i.each(u,function(n,t){var i=t[2],o=t[5];f[t[1]]=i.add;o&&i.add(function(){e=o},u[3-n][2].disable,u[0][2].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),f.promise(r),t&&t.call(r,r),r},when:function(n){var f=arguments.length,t=f,e=Array(t),u=w.call(arguments),r=i.Deferred(),o=function(n){return function(t){e[n]=this;u[n]=arguments.length>1?w.call(arguments):t;--f||r.resolveWith(e,u)}};if(f<=1&&(vr(n,r.done(o(t)).resolve,r.reject,!f),"pending"===r.state()||i.isFunction(u[t]&&u[t].then)))return r.then();while(t--)vr(u[t],o(t),r.reject);return r.promise()}});yr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&yr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};wt=i.Deferred();i.fn.ready=function(n){return wt.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0||wt.resolveWith(u,[i]))}});i.ready.then=wt.then;"complete"===u.readyState||"loading"!==u.readyState&&!u.documentElement.doScroll?n.setTimeout(i.ready):(u.addEventListener("DOMContentLoaded",bt),n.addEventListener("load",bt));v=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)v(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};st=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};ht.uid=1;ht.prototype={cache:function(n){var t=n[this.expando];return t||(t={},st(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,r){var u,f=this.cache(n);if("string"==typeof t)f[i.camelCase(t)]=r;else for(u in t)f[i.camelCase(u)]=t[u];return f},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][i.camelCase(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(Array.isArray(t)?t=t.map(i.camelCase):(t=i.camelCase(t),t=(t in r)?[t]:t.match(h)||[]),u=t.length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new ht,e=new ht,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ie=/[A-Z]/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(void 0===n){if(this.length&&(s=e.get(u),1===u.nodeType&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),pr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return"object"==typeof n?this.each(function(){e.set(this,n)}):v(this,function(t){var i;if(u&&void 0===t){if((i=e.get(u,n),void 0!==i)||(i=pr(u,n),void 0!==i))return i}else this.each(function(){e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var wr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ct=new RegExp("^(?:([+-])=|)("+wr+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],kt=function(n,t){return n=t||n,"none"===n.style.display||""===n.style.display&&i.contains(n.ownerDocument,n)&&"none"===i.css(n,"display")},br=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};si={};i.fn.extend({show:function(){return tt(this,!0)},hide:function(){return tt(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){kt(this)?i(this).show():i(this).hide()})}});var dr=/^(?:checkbox|radio)$/i,gr=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,nu=/^$|\/(?:java|ecma)script/i,c={option:[1,"<select multiple='multiple'>","<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;tu=/<|&#?\w+;/;!function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var dt=u.documentElement,fe=/^key/,ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ru=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(dt,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),t=(t||"").match(h)||[""],b=t.length;b--;)w=ru.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;)if(c=ru.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),o){for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),void 0!==s&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,e,u,o,s,c=[],h=t.delegateCount,r=n.target;if(h&&r.nodeType&&!("click"===n.type&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||r.disabled!==!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",void 0===s[u]&&(s[u]=e.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),s[u]&&o.push(e);o.length&&c.push({elem:r,handlers:o})}return r=this,h<t.length&&c.push({elem:r,handlers:t.slice(h)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:i.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==uu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===uu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&l(this,"input"))return this.click(),!1},_default:function(n){return l(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?gt:it,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={constructor:i.Event,isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=gt;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=gt;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=gt;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return null==n.which&&fe.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==t&&ee.test(n.type)?1&t?1:2&t?3:4&t?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return ci(this,n,t,i,r)},one:function(n,t,i,r){return ci(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return t!==!1&&"function"!=typeof t||(r=t,t=void 0),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})}});var oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,se=/<script|<style|<link/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,ce=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(oe,"<$1><\/$2>")},clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!(f.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)ye(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)eu(s[u],e[u]);else eu(n,h);return e=o(h,"script"),e.length>0&&hi(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;void 0!==(t=n[o]);o++)if(st(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[e.expando]&&(t[e.expando]=void 0)}}});i.fn.extend({detach:function(n){return ou(this,n,!0)},remove:function(n){return ou(this,n)},text:function(n){return v(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return rt(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=fu(this,n);t.appendChild(n)}})},prepend:function(){return rt(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=fu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return v(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!se.test(n)&&!c[(gr.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},1===t.nodeType&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return rt(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ui.apply(f,u.get());return this.pushStack(f)}});var su=/^margin/,li=new RegExp("^("+wr+")(?!px)[a-z%]+$","i"),ni=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)};!function(){function r(){if(t){t.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";t.innerHTML="";dt.appendChild(e);var i=n.getComputedStyle(t);o="1%"!==i.top;c="2px"===i.marginLeft;s="4px"===i.width;t.style.marginRight="50%";h="4px"===i.marginRight;dt.removeChild(e);t=null}}var o,s,h,c,e=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===t.style.backgroundClip,e.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",e.appendChild(t),i.extend(f,{pixelPosition:function(){return r(),o},boxSizingReliable:function(){return r(),s},pixelMarginRight:function(){return r(),h},reliableMarginLeft:function(){return r(),c}}))}();var pe=/^(none|table(?!-c[ea]).+)/,cu=/^--/,we={position:"absolute",visibility:"hidden",display:"block"},lu={letterSpacing:"0",fontWeight:"400"},au=["Webkit","Moz","ms"],vu=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=lt(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var e,s,o,c=i.camelCase(t),l=cu.test(t),h=n.style;return l||(t=yu(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r?o&&"get"in o&&void 0!==(e=o.get(n,!1,u))?e:h[t]:(s=typeof r,"string"===s&&(e=ct.exec(r))&&e[1]&&(r=kr(n,t,e),s="number"),null!=r&&r===r&&("number"===s&&(r+=e&&e[3]||(i.cssNumber[c]?"":"px")),f.clearCloneStyle||""!==r||0!==t.indexOf("background")||(h[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?h.setProperty(t,r):h[t]=r)),void 0)}},css:function(n,t,r,u){var f,o,e,s=i.camelCase(t),h=cu.test(t);return h||(t=yu(s)),e=i.cssHooks[t]||i.cssHooks[s],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=lt(n,t,u)),"normal"===f&&t in lu&&(f=lu[t]),""===r||r?(o=parseFloat(f),r===!0||isFinite(o)?o||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!pe.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?bu(n,t,u):br(n,we,function(){return bu(n,t,u)})},set:function(n,r,u){var f,e=u&&ni(n),o=u&&wu(n,t,u,"border-box"===i.css(n,"boxSizing",!1,e),e);return o&&(f=ct.exec(r))&&"px"!==(f[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),pu(n,r,o)}}});i.cssHooks.marginLeft=hu(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(lt(n,"marginLeft"))||n.getBoundingClientRect().left-br(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};su.test(n)||(i.cssHooks[n+t].set=pu)});i.fn.extend({css:function(n,t){return v(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ni(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[i.cssProps[n.prop]]&&!i.cssHooks[n.prop]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=s.prototype.init;i.fx.step={};ku=/^(?:toggle|show|hide)$/;du=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return kr(i.elem,n,ct.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],a.tweeners[r]=a.tweeners[r]||[],a.tweeners[r].unshift(t)},prefilters:[ke],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return i.fx.off?u.duration=0:"number"!=typeof u.duration&&(u.duration=u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default),null!=u.queue&&u.queue!==!0||(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(kt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&du.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ii(t,!0),n,i,u)}});i.each({slideDown:ii("show"),slideUp:ii("hide"),slideToggle:ii("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(ut=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();ut=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){ti||(ti=!0,ai())};i.fx.stop=function(){ti=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=""!==n.value;f.optSelected=i.selected;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue="t"===n.value}();ft=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return v(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?tf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):f&&"set"in f&&void 0!==(u=f.set(n,r,t))?u:(n.setAttribute(t,r+""),r):f&&"get"in f&&null!==(u=f.get(n,t))?u:(u=i.find.attr(n,t),null==u?void 0:u))},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&"radio"===t&&l(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(h);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});tf={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ft[t]||i.find.attr;ft[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ft[u],ft[u]=f,f=null!=r(n,t,i)?u:null,ft[u]=e),f}});rf=/^(?:input|select|textarea|button)$/i;uf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return v(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):rf.test(n.nodeName)||uf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,d(this)))});if("string"==typeof n&&n)for(o=n.match(h)||[];t=this[c++];)if(u=d(t),r=1===t.nodeType&&" "+k(u)+" "){for(s=0;f=o[s++];)r.indexOf(" "+f+" ")<0&&(r+=f+" ");e=k(r);u!==e&&t.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,d(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof n&&n)for(o=n.match(h)||[];r=this[c++];)if(u=d(r),t=1===r.nodeType&&" "+k(u)+" "){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=k(t);u!==e&&r.setAttribute("class",e)}return this},toggleClass:function(n,t){var u=typeof n;return"boolean"==typeof t&&"string"===u?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,d(this),t),t)}):this.each(function(){var t,e,f,o;if("string"===u)for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else void 0!==n&&"boolean"!==u||(t=d(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+k(d(t))+" ").indexOf(i)>-1)return!0;return!1}});ff=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(ff,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:k(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(t=o[r],(t.selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};f.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});vi=/^(?:focusinfocus|focusoutblur)$/;i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=yt.call(t,"type")?t.type:t,y=yt.call(t,"namespace")?t.namespace.split("."):[];if(s=c=e=e||u,3!==e.nodeType&&8!==e.nodeType&&!vi.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),f=null==f?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,vi.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&st(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||l._default&&l._default.apply(p.pop(),f)!==!1||!st(e)||a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=void 0,c&&(e[a]=c)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});f.focusin="onfocusin"in n;f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var at=n.location,ef=i.now(),yi=/\?/;i.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var ge=/\[\]$/,of=/\r?\n/g,no=/^(?:submit|button|image|reset|file)$/i,to=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){var r=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==r?"":r)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)pi(r,n[r],t,f);return u.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&to.test(this.nodeName)&&!no.test(n)&&(this.checked||!dr.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(of,"\r\n")}}):{name:t.name,value:r.replace(of,"\r\n")}}).get()}});var io=/%20/g,ro=/#.*$/,uo=/([?&])_=[^&]*/,fo=/^(.*?):[ \t]*([^\r\n]*)$/gm,eo=/^(?:GET|HEAD)$/,oo=/^\/\//,sf={},wi={},hf="*/".concat("*"),bi=u.createElement("a");return bi.href=at.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:at.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(at.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":hf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ki(ki(n,i.ajaxSettings),t):ki(i.ajaxSettings,n)},ajaxPrefilter:cf(sf),ajaxTransport:cf(wi),ajax:function(t,r){function b(t,r,u,h){var y,rt,g,p,b,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=h||"",e.readyState=t>0?4:0,y=t>=200&&t<300||304===t,u&&(p=so(f,e,u)),p=ho(f,p,e,y),y?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),204===t||"HEAD"===f.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,g=p.error,y=!g)):(g=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",y?tt.resolveWith(c,[rt,l,e]):tt.rejectWith(c,[e,l,g]),e.statusCode(w),w=void 0,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,f,y?rt:g]),it.fireWith(c,[e,l]),v&&(nt.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,y,d,l,s,v,g,p,f=i.ajaxSetup({},r),c=f.context||f,nt=f.context&&(c.nodeType||c.jquery)?i(c):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=f.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!y)for(y={};t=fo.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),f.url=((t||f.url||at.href)+"").replace(oo,at.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(h)||[""],null==f.crossDomain){l=u.createElement("a");try{l.href=f.url;l.href=l.href;f.crossDomain=bi.protocol+"//"+bi.host!=l.protocol+"//"+l.host}catch(et){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=i.param(f.data,f.traditional)),lf(sf,f,r,e),s)return e;v=i.event&&f.global;v&&0==i.active++&&i.event.trigger("ajaxStart");f.type=f.type.toUpperCase();f.hasContent=!eo.test(f.type);o=f.url.replace(ro,"");f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(io,"+")):(p=f.url.slice(o.length),f.data&&(o+=(yi.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(o=o.replace(uo,"$1"),p=(yi.test(o)?"&":"?")+"_="+ef+++p),f.url=o+p);f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType);e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+hf+"; q=0.01":""):f.accepts["*"]);for(g in f.headers)e.setRequestHeader(g,f.headers[g]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s))return e.abort();if(ft="abort",it.add(f.complete),e.done(f.success),e.fail(f.error),a=lf(wi,f,r,e)){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,f]),s)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=!1;a.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(i.isFunction(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},af={0:200,1223:204},et=i.ajaxSettings.xhr(),f.cors=!!et&&"withCredentials"in et,f.ajax=et=!!et,i.ajaxTransport(function(t){var i,r;if(f.cors||et&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(af[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),di=[],ri=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=di.pop()||i.expando+"_"+ef++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ri.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ri.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ri,"$1"+f):t.jsonp!==!1&&(t.url+=(yi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){void 0===e?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,di.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=void 0}),"script"}),f.createHTMLDocument=function(){var n=u.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",2===n.childNodes.length}(),i.parseHTML=function(n,t,r){if("string"!=typeof n)return[];"boolean"==typeof t&&(r=t,t=!1);var s,e,o;return t||(f.createHTMLDocument?(t=u.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=u.location.href,t.head.appendChild(s)):t=u),e=ei.exec(n),o=!r&&[],e?[t.createElement(e[1])]:(e=iu([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},i.fn.load=function(n,t,r){var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=k(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,f,e,t=this[0];if(t)return t.getClientRects().length?(f=t.getBoundingClientRect(),r=t.ownerDocument,u=r.documentElement,e=r.defaultView,{top:f.top+e.pageYOffset-u.clientTop,left:f.left+e.pageXOffset-u.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var t,r,u=this[0],n={top:0,left:0};return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(t=this.offsetParent(),r=this.offset(),l(t[0],"html")||(n=t.offset()),n={top:n.top+i.css(t[0],"borderTopWidth",!0),left:n.left+i.css(t[0],"borderLeftWidth",!0)}),{top:r.top-n.top-i.css(u,"marginTop",!0),left:r.left-n.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||dt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(u){return v(this,function(n,u,f){var e;return i.isWindow(n)?e=n:9===n.nodeType&&(e=n.defaultView),void 0===f?e?e[t]:n[u]:void(e?e.scrollTo(r?e.pageXOffset:f,r?f:e.pageYOffset):n[u]=f)},n,u,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=hu(f.pixelPosition,function(n,r){if(r)return r=lt(n,t),li.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(f===!0||e===!0?"margin":"border");return v(this,function(t,r,f){var e;return i.isWindow(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=l,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),vf=n.jQuery,yf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=yf),t&&n.jQuery===i&&(n.jQuery=vf),i},t||(n.jQuery=n.$=i),i}),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function b(n){for(var t=n.css("visibility");"inherit"===t;)n=n.parent(),t=n.css("visibility");return"hidden"!==t}function k(n){for(var t,i;n.length&&n[0]!==document;){if(t=n.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&0!==i))return i;n=n.parent()}return 0}function c(){this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._datepickerShowing=!1;this._inDialog=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};n.extend(this._defaults,this.regional[""]);this.regional.en=n.extend(!0,{},this.regional[""]);this.regional["en-US"]=n.extend(!0,{},this.regional.en);this.dpDiv=l(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>"))}function l(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){n(this).removeClass("ui-state-hover");-1!==this.className.indexOf("ui-datepicker-prev")&&n(this).removeClass("ui-datepicker-prev-hover");-1!==this.className.indexOf("ui-datepicker-next")&&n(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,a)}function a(){n.datepicker._isDisabledDatepicker(i.inline?i.dpDiv.parent()[0]:i.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&n(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&n(this).addClass("ui-datepicker-next-hover"))}function u(t,i){n.extend(t,i);for(var r in i)null==i[r]&&(t[r]=i[r]);return t}function t(n){return function(){var t=this.element.val();n.apply(this,arguments);this._refresh();t!==this.element.val()&&this._trigger("change")}}var v,o,r,f,y,i,w;n.ui=n.ui||{};n.ui.version="1.12.1";v=0;o=Array.prototype.slice;n.cleanData=function(t){return function(i){for(var r,u,f=0;null!=(u=i[f]);f++)try{r=n._data(u,"events");r&&r.remove&&n(u).triggerHandler("remove")}catch(e){}t(i)}}(n.cleanData);n.widget=function(t,i,r){var f,u,o,h={},e=t.split(".")[0],s;return t=t.split(".")[1],s=e+"-"+t,r||(r=i,i=n.Widget),n.isArray(r)&&(r=n.extend.apply(null,[{}].concat(r))),n.expr[":"][s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){return this._createWidget?(arguments.length&&this._createWidget(n,t),void 0):new u(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),o=new i,o.options=n.widget.extend({},o.options),n.each(r,function(t,r){return n.isFunction(r)?(h[t]=function(){function n(){return i.prototype[t].apply(this,arguments)}function u(n){return i.prototype[t].apply(this,n)}return function(){var t,i=this._super,f=this._superApply;return this._super=n,this._superApply=u,t=r.apply(this,arguments),this._super=i,this._superApply=f,t}}(),void 0):(h[t]=r,void 0)}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix||t:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u),u};n.widget.extend=function(t){for(var i,r,f=o.call(arguments,1),u=0,e=f.length;e>u;u++)for(i in f[u])r=f[u][i],f[u].hasOwnProperty(i)&&void 0!==r&&(t[i]=n.isPlainObject(r)?n.isPlainObject(t[i])?n.widget.extend({},t[i],r):n.widget.extend({},r):r);return t};n.widget.bridge=function(t,i){var r=i.prototype.widgetFullName||t;n.fn[t]=function(u){var s="string"==typeof u,e=o.call(arguments,1),f=this;return s?this.length||"instance"!==u?this.each(function(){var i,o=n.data(this,r);return"instance"===u?(f=o,!1):o?n.isFunction(o[u])&&"_"!==u.charAt(0)?(i=o[u].apply(o,e),i!==o&&void 0!==i?(f=i&&i.jquery?f.pushStack(i.get()):i,!1):void 0):n.error("no such method '"+u+"' for "+t+" widget instance"):n.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+u+"'")}):f=void 0:(e.length&&(u=n.widget.extend.apply(null,[u].concat(e))),this.each(function(){var t=n.data(this,r);t?(t.option(u||{}),t._init&&t._init()):n.data(this,r,new i(u,this))})),f}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=v++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=n();this.hoverable=n();this.focusable=n();this.classesElementLookup={};i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this._create();this.options.disabled&&this._setOptionDisabled(this.options.disabled);this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){var t=this;this._destroy();n.each(this.classesElementLookup,function(n,i){t._removeClass(i,n)});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr("aria-disabled");this.bindings.off(this.eventNamespace)},_destroy:n.noop,widget:function(){return this.element},option:function(t,i){var r,u,f,e=t;if(0===arguments.length)return n.widget.extend({},this.options);if("string"==typeof t)if(e={},r=t.split("."),t=r.shift(),r.length){for(u=e[t]=n.widget.extend({},this.options[t]),f=0;r.length-1>f;f++)u[r[f]]=u[r[f]]||{},u=u[r[f]];if(t=r.pop(),1===arguments.length)return void 0===u[t]?null:u[t];u[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];e[t]=i}return this._setOptions(e),this},_setOptions:function(n){var t;for(t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return"classes"===n&&this._setOptionClasses(t),this.options[n]=t,"disabled"===n&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,u,r;for(i in t)r=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&r&&r.length&&(u=n(r.get()),this._removeClass(r,i),u.addClass(this._classes({element:u,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(n){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!n);n&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function r(r,f){for(var o,e=0;r.length>e;e++)o=u.classesElementLookup[r[e]]||n(),o=t.add?n(n.unique(o.get().concat(t.element.get()))):n(o.not(t.element).get()),u.classesElementLookup[r[e]]=o,i.push(r[e]),f&&t.classes[r[e]]&&i.push(t.classes[r[e]])}var i=[],u=this;return t=n.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&r(t.keys.match(/\S+/g)||[],!0),t.extra&&r(t.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(t){var i=this;n.each(i.classesElementLookup,function(r,u){-1!==n.inArray(t.target,u)&&(i.classesElementLookup[r]=n(u.not(t.target).get()))})},_removeClass:function(n,t,i){return this._toggleClass(n,t,i,!1)},_addClass:function(n,t,i){return this._toggleClass(n,t,i,!0)},_toggleClass:function(n,t,i,r){r="boolean"==typeof r?r:i;var u="string"==typeof n||null===n,f={extra:u?t:i,keys:u?n:t,element:u?this.element:n,add:r};return f.element.toggleClass(this._classes(f),r),this},_on:function(t,i,r){var f,u=this;"boolean"!=typeof t&&(r=i,i=t,t=!1);r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget());n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return("string"==typeof e?u[e]:e).apply(u,arguments)}"string"!=typeof e&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^([\w:-]*)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];c?f.on(h,c,o):i.on(h,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;t.off(i).off(i);this.bindings=n(this.bindings.not(t).get());this.focusable=n(this.focusable.not(t).get());this.hoverable=n(this.hoverable.not(t).get())},_delay:function(n,t){function r(){return("string"==typeof n?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){this._addClass(n(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){this._addClass(n(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){"string"==typeof u&&(u={effect:u});var o,e=u?u===!0||"number"==typeof u?i:u.effect||i:t;u=u||{};"number"==typeof u&&(u={duration:u});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}});n.widget,function(){function f(n,t,i){return[parseFloat(n[0])*(c.test(n[0])?t/100:1),parseFloat(n[1])*(c.test(n[1])?i/100:1)]}function i(t,i){return parseInt(n.css(t,i),10)||0}function l(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:n.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}var u,r=Math.max,t=Math.abs,e=/left|center|right/,o=/top|center|bottom/,s=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,c=/%$/,a=n.fn.position;n.position={scrollbarWidth:function(){if(void 0!==u)return u;var r,i,t=n("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'><\/div><\/div>"),f=t.children()[0];return n("body").append(t),r=f.offsetWidth,t.css("overflow","scroll"),i=f.offsetWidth,r===i&&(i=t[0].clientWidth),t.remove(),u=r-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),u="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth,f="scroll"===r||"auto"===r&&t.height<t.element[0].scrollHeight;return{width:f?n.position.scrollbarWidth():0,height:u?n.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=n(t||window),r=n.isWindow(i[0]),u=!!i[0]&&9===i[0].nodeType,f=!r&&!u;return{element:i,isWindow:r,isDocument:u,offset:f?n(t).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}};n.fn.position=function(u){if(!u||!u.of)return a.apply(this,arguments);u=n.extend({},u);var w,c,v,p,y,k,d=n(u.of),nt=n.position.getWithinInfo(u.within),tt=n.position.getScrollInfo(nt),b=(u.collision||"flip").split(" "),g={};return k=l(d),d[0].preventDefault&&(u.at="left top"),c=k.width,v=k.height,p=k.offset,y=n.extend({},p),n.each(["my","at"],function(){var t,i,n=(u[this]||"").split(" ");1===n.length&&(n=e.test(n[0])?n.concat(["center"]):o.test(n[0])?["center"].concat(n):["center","center"]);n[0]=e.test(n[0])?n[0]:"center";n[1]=o.test(n[1])?n[1]:"center";t=s.exec(n[0]);i=s.exec(n[1]);g[this]=[t?t[0]:0,i?i[0]:0];u[this]=[h.exec(n[0])[0],h.exec(n[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===u.at[0]?y.left+=c:"center"===u.at[0]&&(y.left+=c/2),"bottom"===u.at[1]?y.top+=v:"center"===u.at[1]&&(y.top+=v/2),w=f(g.at,c,v),y.left+=w[0],y.top+=w[1],this.each(function(){var a,k,o=n(this),s=o.outerWidth(),h=o.outerHeight(),it=i(this,"marginLeft"),rt=i(this,"marginTop"),ut=s+it+i(this,"marginRight")+tt.width,ft=h+rt+i(this,"marginBottom")+tt.height,e=n.extend({},y),l=f(g.my,o.outerWidth(),o.outerHeight());"right"===u.my[0]?e.left-=s:"center"===u.my[0]&&(e.left-=s/2);"bottom"===u.my[1]?e.top-=h:"center"===u.my[1]&&(e.top-=h/2);e.left+=l[0];e.top+=l[1];a={marginLeft:it,marginTop:rt};n.each(["left","top"],function(t,i){n.ui.position[b[t]]&&n.ui.position[b[t]][i](e,{targetWidth:c,targetHeight:v,elemWidth:s,elemHeight:h,collisionPosition:a,collisionWidth:ut,collisionHeight:ft,offset:[w[0]+l[0],w[1]+l[1]],my:u.my,at:u.at,within:nt,elem:o})});u.using&&(k=function(n){var i=p.left-e.left,a=i+c-s,f=p.top-e.top,y=f+v-h,l={target:{element:d,left:p.left,top:p.top,width:c,height:v},element:{element:o,left:e.left,top:e.top,width:s,height:h},horizontal:0>a?"left":i>0?"right":"center",vertical:0>y?"top":f>0?"bottom":"middle"};s>c&&c>t(i+a)&&(l.horizontal="center");h>v&&v>t(f+y)&&(l.vertical="middle");l.important=r(t(i),t(a))>r(t(f),t(y))?"horizontal":"vertical";u.using.call(this,n,l)});o.offset(n.extend(e,{using:k}))})};n.ui.position={fit:{left:function(n,t){var h,e=t.within,u=e.isWindow?e.scrollLeft:e.offset.left,o=e.width,s=n.left-t.collisionPosition.marginLeft,i=u-s,f=s+t.collisionWidth-o-u;t.collisionWidth>o?i>0&&0>=f?(h=n.left+i+t.collisionWidth-o-u,n.left+=i-h):n.left=f>0&&0>=i?u:i>f?u+o-t.collisionWidth:u:i>0?n.left+=i:f>0?n.left-=f:n.left=r(n.left-s,n.left)},top:function(n,t){var h,o=t.within,u=o.isWindow?o.scrollTop:o.offset.top,e=t.within.height,s=n.top-t.collisionPosition.marginTop,i=u-s,f=s+t.collisionHeight-e-u;t.collisionHeight>e?i>0&&0>=f?(h=n.top+i+t.collisionHeight-e-u,n.top+=i-h):n.top=f>0&&0>=i?u:i>f?u+e-t.collisionHeight:u:i>0?n.top+=i:f>0?n.top-=f:n.top=r(n.top-s,n.top)}},flip:{left:function(n,i){var o,s,r=i.within,y=r.offset.left+r.scrollLeft,c=r.width,h=r.isWindow?r.scrollLeft:r.offset.left,l=n.left-i.collisionPosition.marginLeft,a=l-h,v=l+i.collisionWidth-c-h,u="left"===i.my[0]?-i.elemWidth:"right"===i.my[0]?i.elemWidth:0,f="left"===i.at[0]?i.targetWidth:"right"===i.at[0]?-i.targetWidth:0,e=-2*i.offset[0];0>a?(o=n.left+u+f+e+i.collisionWidth-c-y,(0>o||t(a)>o)&&(n.left+=u+f+e)):v>0&&(s=n.left-i.collisionPosition.marginLeft+u+f+e-h,(s>0||v>t(s))&&(n.left+=u+f+e))},top:function(n,i){var o,s,r=i.within,y=r.offset.top+r.scrollTop,c=r.height,h=r.isWindow?r.scrollTop:r.offset.top,l=n.top-i.collisionPosition.marginTop,a=l-h,v=l+i.collisionHeight-c-h,p="top"===i.my[1],u=p?-i.elemHeight:"bottom"===i.my[1]?i.elemHeight:0,f="top"===i.at[1]?i.targetHeight:"bottom"===i.at[1]?-i.targetHeight:0,e=-2*i.offset[1];0>a?(s=n.top+u+f+e+i.collisionHeight-c-y,(0>s||t(a)>s)&&(n.top+=u+f+e)):v>0&&(o=n.top-i.collisionPosition.marginTop+u+f+e-h,(o>0||v>t(o))&&(n.top+=u+f+e))}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments);n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments);n.ui.position.fit.top.apply(this,arguments)}}}}();n.ui.position;n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])}});n.fn.extend({disableSelection:function(){var n="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(n+".ui-disableSelection",function(n){n.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});n.ui.focusable=function(t,i){var u,f,e,r,o,s=t.nodeName.toLowerCase();return"area"===s?(u=t.parentNode,f=u.name,t.href&&f&&"map"===u.nodeName.toLowerCase()?(e=n("img[usemap='#"+f+"']"),e.length>0&&e.is(":visible")):!1):(/^(input|select|textarea|button|object)$/.test(s)?(r=!t.disabled,r&&(o=n(t).closest("fieldset")[0],o&&(r=!o.disabled))):r="a"===s?t.href||i:i,r&&n(t).is(":visible")&&b(n(t)))};n.extend(n.expr[":"],{focusable:function(t){return n.ui.focusable(t,null!=n.attr(t,"tabindex"))}});n.ui.focusable;n.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):n(this[0].form)};n.ui.formResetMixin={_formResetHandler:function(){var t=n(this);setTimeout(function(){var i=t.data("ui-form-reset-instances");n.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var n=this.form.data("ui-form-reset-instances")||[];n.length||this.form.on("reset.ui-form-reset",this._formResetHandler);n.push(this);this.form.data("ui-form-reset-instances",n)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(n.inArray(this,t),1);t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};"1.7"===n.fn.jquery.substring(0,3)&&(n.each(["Width","Height"],function(t,i){function r(t,i,r,u){return n.each(e,function(){i-=parseFloat(n.css(t,"padding"+this))||0;r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0);u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var e="Width"===i?["Left","Right"]:["Top","Bottom"],u=i.toLowerCase(),f={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+i]=function(t){return void 0===t?f["inner"+i].call(this):this.each(function(){n(this).css(u,r(this,t)+"px")})};n.fn["outer"+i]=function(t,e){return"number"!=typeof t?f["outer"+i].call(this,t):this.each(function(){n(this).css(u,r(this,t,!0,e)+"px")})}}),n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});n.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};n.ui.escapeSelector=function(){var n=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(t){return t.replace(n,"\\$1")}}();n.fn.labels=function(){var t,r,u,i,f;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),u=this.attr("id"),u&&(t=this.eq(0).parents().last(),f=t.add(t.length?t.siblings():this.siblings()),r="label[for='"+n.ui.escapeSelector(u)+"']",i=i.add(f.find(r).addBack(r))),this.pushStack(i))};n.fn.scrollParent=function(t){var i=this.css("position"),u="absolute"===i,f=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=n(this);return u&&"static"===t.css("position")?!1:f.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&r.length?r:n(this[0].ownerDocument||document)};n.extend(n.expr[":"],{tabbable:function(t){var i=n.attr(t,"tabindex"),r=null!=i;return(!r||i>=0)&&n.ui.focusable(t,r)}});n.fn.extend({uniqueId:function(){var n=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&n(this).removeAttr("id")})}});n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());r=!1;n(document).on("mouseup",function(){r=!1});n.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).on("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return(n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1)});this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName);this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!r){this._mouseMoved=!1;this._mouseStarted&&this._mouseUp(t);this._mouseDownEvent=t;var i=this,u=1===t.which,f="string"==typeof this.options.cancel&&t.target.nodeName?n(t.target).closest(this.options.cancel).length:!1;return u&&!f&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted)?(t.preventDefault(),!0):(!0===n.data(t.target,this.widgetName+".preventClickEvent")&&n.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(n){return i._mouseMove(n)},this._mouseUpDelegate=function(n){return i._mouseUp(n)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),r=!0,!0)):!0}},_mouseMove:function(t){if(this._mouseMoved){if(n.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t));this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer);this.ignoreMissingWhich=!1;r=!1;t.preventDefault()},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});n.ui.plugin={add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i,r){var u,f=n.plugins[t];if(f&&(r||n.element[0].parentNode&&11!==n.element[0].parentNode.nodeType))for(u=0;f.length>u;u++)n.options[f[u][0]]&&f[u][1].apply(n.element,i)}};n.ui.safeActiveElement=function(n){var t;try{t=n.activeElement}catch(i){t=n.body}return t||(t=n.body),t.nodeName||(t=n.body),t};n.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&n(t).trigger("blur")};n.widget("ui.draggable",n.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative();this.options.addClasses&&this._addClass("ui-draggable");this._setHandleClassName();this._mouseInit()},_setOption:function(n,t){this._super(n,t);"handle"===n&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||n(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(this._blurActiveElement(t),this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0):!1)},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=n(this);return n("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=n.ui.safeActiveElement(this.document[0]),r=n(t.target);r.closest(i).length||n.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),n.ui.ddmanager&&(n.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===n(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),n.ui.ddmanager&&n.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(n){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:n.pageX-this.offset.left,top:n.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp(new n.Event("mouseup",t)),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var r=this,i=!1;return n.ui.ddmanager&&!this.options.dropBehaviour&&(i=n.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||this.options.revert===!0||n.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),n.ui.ddmanager&&n.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),n.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new n.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return this.options.handle?!!n(t.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var r=this.options,u=n.isFunction(r.helper),i=u?n(r.helper.apply(this.element[0],[t])):"clone"===r.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"===r.appendTo?this.element[0].parentNode:r.appendTo),u&&i[0]===this.element[0]&&this._setPositionRelative(),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(n){return/(html|body)/i.test(n.tagName)||n===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var n=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:n.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f,t,i,r=this.options,u=this.document[0];return this.relativeContainer=null,r.containment?"window"===r.containment?(this.containment=[n(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,n(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,n(window).scrollLeft()+n(window).width()-this.helperProportions.width-this.margins.left,n(window).scrollTop()+(n(window).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===r.containment?(this.containment=[0,0,n(u).width()-this.helperProportions.width-this.margins.left,(n(u).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):r.containment.constructor===Array?(this.containment=r.containment,void 0):("parent"===r.containment&&(r.containment=this.helper[0].parentNode),t=n(r.containment),i=t[0],i&&(f=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(f?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t),void 0):(this.containment=null,void 0)},_convertPositionTo:function(n,t){t||(t=this.position);var i="absolute"===n?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)*i}},_generatePosition:function(n,t){var i,s,u,f,r=this.options,h=this._isRootNode(this.scrollParent[0]),e=n.pageX,o=n.pageY;return h&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,n.pageX-this.offset.click.left<i[0]&&(e=i[0]+this.offset.click.left),n.pageY-this.offset.click.top<i[1]&&(o=i[1]+this.offset.click.top),n.pageX-this.offset.click.left>i[2]&&(e=i[2]+this.offset.click.left),n.pageY-this.offset.click.top>i[3]&&(o=i[3]+this.offset.click.top)),r.grid&&(u=r.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,o=i?u-this.offset.click.top>=i[1]||u-this.offset.click.top>i[3]?u:u-this.offset.click.top>=i[1]?u-r.grid[1]:u+r.grid[1]:u,f=r.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,e=i?f-this.offset.click.left>=i[0]||f-this.offset.click.left>i[2]?f:f-this.offset.click.left>=i[0]?f-r.grid[0]:f+r.grid[0]:f),"y"===r.axis&&(e=this.originalPageX),"x"===r.axis&&(o=this.originalPageY)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:h?0:this.offset.scroll.top),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:h?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging");this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1;this.destroyOnClear&&this.destroy()},_trigger:function(t,i,r){return r=r||this._uiHash(),n.ui.plugin.call(this,t,[i,r,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),n.Widget.prototype._trigger.call(this,t,i,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});n.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,r){var u=n.extend({},i,{item:r.element});r.sortables=[];n(r.options.connectToSortable).each(function(){var i=n(this).sortable("instance");i&&!i.options.disabled&&(r.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,u))})},stop:function(t,i,r){var u=n.extend({},i,{item:r.element});r.cancelHelperRemoval=!1;n.each(r.sortables,function(){var n=this;n.isOver?(n.isOver=0,r.cancelHelperRemoval=!0,n.cancelHelperRemoval=!1,n._storedCSS={position:n.placeholder.css("position"),top:n.placeholder.css("top"),left:n.placeholder.css("left")},n._mouseStop(t),n.options.helper=n.options._helper):(n.cancelHelperRemoval=!0,n._trigger("deactivate",t,u))})},drag:function(t,i,r){n.each(r.sortables,function(){var f=!1,u=this;u.positionAbs=r.positionAbs;u.helperProportions=r.helperProportions;u.offset.click=r.offset.click;u._intersectsWith(u.containerCache)&&(f=!0,n.each(r.sortables,function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==u&&this._intersectsWith(this.containerCache)&&n.contains(u.element[0],this.element[0])&&(f=!1),f}));f?(u.isOver||(u.isOver=1,r._parent=i.helper.parent(),u.currentItem=i.helper.appendTo(u.element).data("ui-sortable-item",!0),u.options._helper=u.options.helper,u.options.helper=function(){return i.helper[0]},t.target=u.currentItem[0],u._mouseCapture(t,!0),u._mouseStart(t,!0,!0),u.offset.click.top=r.offset.click.top,u.offset.click.left=r.offset.click.left,u.offset.parent.left-=r.offset.parent.left-u.offset.parent.left,u.offset.parent.top-=r.offset.parent.top-u.offset.parent.top,r._trigger("toSortable",t),r.dropped=u.element,n.each(r.sortables,function(){this.refreshPositions()}),r.currentItem=r.element,u.fromOutside=r),u.currentItem&&(u._mouseDrag(t),i.position=u.position)):u.isOver&&(u.isOver=0,u.cancelHelperRemoval=!0,u.options._revert=u.options.revert,u.options.revert=!1,u._trigger("out",t,u._uiHash(u)),u._mouseStop(t,!0),u.options.revert=u.options._revert,u.options.helper=u.options._helper,u.placeholder&&u.placeholder.remove(),i.helper.appendTo(r._parent),r._refreshOffsets(t),i.position=r._generatePosition(t,!0),r._trigger("fromSortable",t),r.dropped=!1,n.each(r.sortables,function(){this.refreshPositions()}))})}});n.ui.plugin.add("draggable","cursor",{start:function(t,i,r){var u=n("body"),f=r.options;u.css("cursor")&&(f._cursor=u.css("cursor"));u.css("cursor",f.cursor)},stop:function(t,i,r){var u=r.options;u._cursor&&n("body").css("cursor",u._cursor)}});n.ui.plugin.add("draggable","opacity",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("opacity")&&(f._opacity=u.css("opacity"));u.css("opacity",f.opacity)},stop:function(t,i,r){var u=r.options;u._opacity&&n(i.helper).css("opacity",u._opacity)}});n.ui.plugin.add("draggable","scroll",{start:function(n,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1));i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,r){var u=r.options,o=!1,e=r.scrollParentNotHidden[0],f=r.document[0];e!==f&&"HTML"!==e.tagName?(u.axis&&"x"===u.axis||(r.overflowOffset.top+e.offsetHeight-t.pageY<u.scrollSensitivity?e.scrollTop=o=e.scrollTop+u.scrollSpeed:t.pageY-r.overflowOffset.top<u.scrollSensitivity&&(e.scrollTop=o=e.scrollTop-u.scrollSpeed)),u.axis&&"y"===u.axis||(r.overflowOffset.left+e.offsetWidth-t.pageX<u.scrollSensitivity?e.scrollLeft=o=e.scrollLeft+u.scrollSpeed:t.pageX-r.overflowOffset.left<u.scrollSensitivity&&(e.scrollLeft=o=e.scrollLeft-u.scrollSpeed))):(u.axis&&"x"===u.axis||(t.pageY-n(f).scrollTop()<u.scrollSensitivity?o=n(f).scrollTop(n(f).scrollTop()-u.scrollSpeed):n(window).height()-(t.pageY-n(f).scrollTop())<u.scrollSensitivity&&(o=n(f).scrollTop(n(f).scrollTop()+u.scrollSpeed))),u.axis&&"y"===u.axis||(t.pageX-n(f).scrollLeft()<u.scrollSensitivity?o=n(f).scrollLeft(n(f).scrollLeft()-u.scrollSpeed):n(window).width()-(t.pageX-n(f).scrollLeft())<u.scrollSensitivity&&(o=n(f).scrollLeft(n(f).scrollLeft()+u.scrollSpeed))));o!==!1&&n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(r,t)}});n.ui.plugin.add("draggable","snap",{start:function(t,i,r){var u=r.options;r.snapElements=[];n(u.snap.constructor!==String?u.snap.items||":data(ui-draggable)":u.snap).each(function(){var t=n(this),i=t.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,r){for(var e,o,s,h,c,a,l,v,w,b=r.options,f=b.snapTolerance,y=i.offset.left,k=y+r.helperProportions.width,p=i.offset.top,d=p+r.helperProportions.height,u=r.snapElements.length-1;u>=0;u--)c=r.snapElements[u].left-r.margins.left,a=c+r.snapElements[u].width,l=r.snapElements[u].top-r.margins.top,v=l+r.snapElements[u].height,c-f>k||y>a+f||l-f>d||p>v+f||!n.contains(r.snapElements[u].item.ownerDocument,r.snapElements[u].item)?(r.snapElements[u].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item})),r.snapElements[u].snapping=!1):("inner"!==b.snapMode&&(e=f>=Math.abs(l-d),o=f>=Math.abs(v-p),s=f>=Math.abs(c-k),h=f>=Math.abs(a-y),e&&(i.position.top=r._convertPositionTo("relative",{top:l-r.helperProportions.height,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a}).left)),w=e||o||s||h,"outer"!==b.snapMode&&(e=f>=Math.abs(l-p),o=f>=Math.abs(v-d),s=f>=Math.abs(c-y),h=f>=Math.abs(a-k),e&&(i.position.top=r._convertPositionTo("relative",{top:l,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v-r.helperProportions.height,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a-r.helperProportions.width}).left)),!r.snapElements[u].snapping&&(e||o||s||h||w)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item})),r.snapElements[u].snapping=e||o||s||h||w)}});n.ui.plugin.add("draggable","stack",{start:function(t,i,r){var f,e=r.options,u=n.makeArray(n(e.stack)).sort(function(t,i){return(parseInt(n(t).css("zIndex"),10)||0)-(parseInt(n(i).css("zIndex"),10)||0)});u.length&&(f=parseInt(n(u[0]).css("zIndex"),10)||0,n(u).each(function(t){n(this).css("zIndex",f+t)}),this.css("zIndex",f+u.length))}});n.ui.plugin.add("draggable","zIndex",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("zIndex")&&(f._zIndex=u.css("zIndex"));u.css("zIndex",f.zIndex)},stop:function(t,i,r){var u=r.options;u._zIndex&&n(i.helper).css("zIndex",u._zIndex)}});n.ui.draggable;n.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,i=this.options,r=i.accept;this.isover=!1;this.isout=!0;this.accept=n.isFunction(r)?r:function(n){return n.is(r)};this.proportions=function(){return arguments.length?(t=arguments[0],void 0):t?t:t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}};this._addToManager(i.scope);i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){n.ui.ddmanager.droppables[t]=n.ui.ddmanager.droppables[t]||[];n.ui.ddmanager.droppables[t].push(this)},_splice:function(n){for(var t=0;n.length>t;t++)n[t]===this&&n.splice(t,1)},_destroy:function(){var t=n.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){if("accept"===t)this.accept=n.isFunction(i)?i:function(n){return n.is(i)};else if("scope"===t){var r=n.ui.ddmanager.droppables[this.options.scope];this._splice(r);this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=n.ui.ddmanager.current;this._addActiveClass();i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=n.ui.ddmanager.current;this._removeActiveClass();i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var r=i||n.ui.ddmanager.current,u=!1;return r&&(r.currentItem||r.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=n(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===r.options.scope&&i.accept.call(i.element[0],r.currentItem||r.element)&&f(r,n.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return(u=!0,!1)}),u?!1:this.accept.call(this.element[0],r.currentItem||r.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(r)),this.element):!1):!1},ui:function(n){return{draggable:n.currentItem||n.element,helper:n.helper,position:n.position,offset:n.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});f=n.ui.intersect=function(){function n(n,t,i){return n>=t&&t+i>n}return function(t,i,r,u){if(!i.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,h=o+t.helperProportions.width,c=s+t.helperProportions.height,f=i.offset.left,e=i.offset.top,l=f+i.proportions().width,a=e+i.proportions().height;switch(r){case"fit":return o>=f&&l>=h&&s>=e&&a>=c;case"intersect":return o+t.helperProportions.width/2>f&&l>h-t.helperProportions.width/2&&s+t.helperProportions.height/2>e&&a>c-t.helperProportions.height/2;case"pointer":return n(u.pageY,e,i.proportions().height)&&n(u.pageX,f,i.proportions().width);case"touch":return(s>=e&&a>=s||c>=e&&a>=c||e>s&&c>a)&&(o>=f&&l>=o||h>=f&&l>=h||f>o&&h>l);default:return!1}}}();n.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var r,f,u=n.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,e=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();n:for(r=0;u.length>r;r++)if(!(u[r].options.disabled||t&&!u[r].accept.call(u[r].element[0],t.currentItem||t.element))){for(f=0;e.length>f;f++)if(e[f]===u[r].element[0]){u[r].proportions().height=0;continue n}u[r].visible="none"!==u[r].element.css("display");u[r].visible&&("mousedown"===o&&u[r]._activate.call(u[r],i),u[r].offset=u[r].element.offset(),u[r].proportions({width:u[r].element[0].offsetWidth,height:u[r].element[0].offsetHeight}))}},drop:function(t,i){var r=!1;return n.each((n.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&f(t,this,this.options.tolerance,i)&&(r=this._drop.call(this,i)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),r},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&n.ui.ddmanager.prepareOffsets(t,i);n.each(n.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,o,e,s=f(t,this,this.options.tolerance,i),u=!s&&this.isover?"isout":s&&!this.isover?"isover":null;u&&(this.options.greedy&&(o=this.options.scope,e=this.element.parents(":data(ui-droppable)").filter(function(){return n(this).droppable("instance").options.scope===o}),e.length&&(r=n(e[0]).droppable("instance"),r.greedyChild="isover"===u)),r&&"isover"===u&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[u]=!0,this["isout"===u?"isover":"isout"]=!1,this["isover"===u?"_over":"_out"].call(this,i),r&&"isout"===u&&(r.isout=!1,r.isover=!0,r._over.call(r,i)))}})},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable");t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)}};n.uiBackCompat!==!1&&n.widget("ui.droppable",n.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super();this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super();this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super();this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super();this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});n.ui.droppable;n.widget("ui.resizable",n.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(n){return parseFloat(n)||0},_isNumber:function(n){return!isNaN(parseFloat(n))},_hasScroll:function(t,i){if("hidden"===n(t).css("overflow"))return!1;var r=i&&"left"===i?"scrollLeft":"scrollTop",u=!1;return t[r]>0?!0:(t[r]=1,u=t[r]>0,t[r]=0,u)},_create:function(){var r,t=this.options,i=this;this._addClass("ui-resizable");n.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null});this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(n("<div class='ui-wrapper' style='overflow: hidden;'><\/div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,r={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(r),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(r),this._proportionallyResize());this._setupHandles();t.autoHide&&n(this.element).on("mouseenter",function(){t.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){t.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())});this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){n(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(n,t){switch(this._super(n,t),n){case"handles":this._removeHandles();this._setupHandles()}},_setupHandles:function(){var i,r,u,o,t,f=this.options,e=this;if(this.handles=f.handles||(n(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=n(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),u=this.handles.split(","),this.handles={},r=0;u.length>r;r++)i=n.trim(u[r]),o="ui-resizable-"+i,t=n("<div>"),this._addClass(t,"ui-resizable-handle "+o),t.css({zIndex:f.zIndex}),this.handles[i]=".ui-resizable-"+i,this.element.append(t);this._renderAxis=function(t){var i,r,u,f;t=t||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=n(this.handles[i]),this._on(this.handles[i],{mousedown:e._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(r=n(this.handles[i],this.element),f=/sw|ne|nw|se|n|s/.test(i)?r.outerHeight():r.outerWidth(),u=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(u,f),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])};this._renderAxis(this.element);this._handles=this._handles.add(this.element.find(".ui-resizable-handle"));this._handles.disableSelection();this._handles.on("mouseover",function(){e.resizing||(this.className&&(t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),e.axis=t&&t[1]?t[1]:"se")});f.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var r,i,u=!1;for(r in this.handles)i=n(this.handles[r])[0],(i===t.target||n.contains(i,t.target))&&(u=!0);return!this.options.disabled&&u},_mouseStart:function(t){var u,f,e,r=this.options,i=this.element;return this.resizing=!0,this._renderProxy(),u=this._num(this.helper.css("left")),f=this._num(this.helper.css("top")),r.containment&&(u+=n(r.containment).scrollLeft()||0,f+=n(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:u,top:f},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalPosition={left:u,top:f},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,e=n(".ui-resizable-"+this.axis).css("cursor"),n("body").css("cursor","auto"===e?this.axis+"-resize":e),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,r,u=this.originalMousePosition,e=this.axis,o=t.pageX-u.left||0,s=t.pageY-u.top||0,f=this._change[e];return this._updatePrevProperties(),f?(i=f.apply(this,[t,o,s]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),r=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),n.isEmptyObject(r)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(t){this.resizing=!1;var r,u,f,e,o,s,h,c=this.options,i=this;return this._helper&&(r=this._proportionallyResizeElements,u=r.length&&/textarea/i.test(r[0].nodeName),f=u&&this._hasScroll(r[0],"left")?0:i.sizeDiff.height,e=u?0:i.sizeDiff.width,o={width:i.helper.width()-e,height:i.helper.height()-f},s=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null,c.animate||this.element.css(n.extend(o,{top:h,left:s})),i.helper.height(i.size.height),i.helper.width(i.size.width),this._helper&&!c.animate&&this._proportionallyResize()),n("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var n={};return this.position.top!==this.prevPosition.top&&(n.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(n.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(n.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(n.height=this.size.height+"px"),this.helper.css(n),n},_updateVirtualBoundaries:function(n){var r,u,f,e,t,i=this.options;t={minWidth:this._isNumber(i.minWidth)?i.minWidth:0,maxWidth:this._isNumber(i.maxWidth)?i.maxWidth:1/0,minHeight:this._isNumber(i.minHeight)?i.minHeight:0,maxHeight:this._isNumber(i.maxHeight)?i.maxHeight:1/0};(this._aspectRatio||n)&&(r=t.minHeight*this.aspectRatio,f=t.minWidth/this.aspectRatio,u=t.maxHeight*this.aspectRatio,e=t.maxWidth/this.aspectRatio,r>t.minWidth&&(t.minWidth=r),f>t.minHeight&&(t.minHeight=f),t.maxWidth>u&&(t.maxWidth=u),t.maxHeight>e&&(t.maxHeight=e));this._vBoundaries=t},_updateCache:function(n){this.offset=this.helper.offset();this._isNumber(n.left)&&(this.position.left=n.left);this._isNumber(n.top)&&(this.position.top=n.top);this._isNumber(n.height)&&(this.size.height=n.height);this._isNumber(n.width)&&(this.size.width=n.width)},_updateRatio:function(n){var t=this.position,i=this.size,r=this.axis;return this._isNumber(n.height)?n.width=n.height*this.aspectRatio:this._isNumber(n.width)&&(n.height=n.width/this.aspectRatio),"sw"===r&&(n.left=t.left+(i.width-n.width),n.top=null),"nw"===r&&(n.top=t.top+(i.height-n.height),n.left=t.left+(i.width-n.width)),n},_respectSize:function(n){var t=this._vBoundaries,i=this.axis,r=this._isNumber(n.width)&&t.maxWidth&&t.maxWidth<n.width,u=this._isNumber(n.height)&&t.maxHeight&&t.maxHeight<n.height,f=this._isNumber(n.width)&&t.minWidth&&t.minWidth>n.width,e=this._isNumber(n.height)&&t.minHeight&&t.minHeight>n.height,o=this.originalPosition.left+this.originalSize.width,s=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return f&&(n.width=t.minWidth),e&&(n.height=t.minHeight),r&&(n.width=t.maxWidth),u&&(n.height=t.maxHeight),f&&h&&(n.left=o-t.minWidth),r&&h&&(n.left=o-t.maxWidth),e&&c&&(n.top=s-t.minHeight),u&&c&&(n.top=s-t.maxHeight),n.width||n.height||n.left||!n.top?n.width||n.height||n.top||!n.left||(n.left=null):n.top=null,n},_getPaddingPlusBorderDimensions:function(n){for(var t=0,i=[],r=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],u=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];4>t;t++)i[t]=parseFloat(r[t])||0,i[t]+=parseFloat(u[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var n,t=0,i=this.helper||this.element;this._proportionallyResizeElements.length>t;t++)n=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(n)),n.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset();this._helper?(this.helper=this.helper||n("<div style='overflow:hidden;'><\/div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(n,t){return{width:this.originalSize.width+t}},w:function(n,t){var i=this.originalSize,r=this.originalPosition;return{left:r.left+t,width:i.width-t}},n:function(n,t,i){var r=this.originalSize,u=this.originalPosition;return{top:u.top+i,height:r.height-i}},s:function(n,t,i){return{height:this.originalSize.height+i}},se:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},sw:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,r]))},ne:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},nw:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,r]))}},_propagate:function(t,i){n.ui.plugin.call(this,t,[i,this.ui()]);"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});n.ui.plugin.add("resizable","animate",{stop:function(t){var i=n(this).resizable("instance"),u=i.options,r=i._proportionallyResizeElements,f=r.length&&/textarea/i.test(r[0].nodeName),s=f&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,h=f?0:i.sizeDiff.width,c={width:i.size.width-h,height:i.size.height-s},e=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,o=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(n.extend(c,o&&e?{top:o,left:e}:{}),{duration:u.animateDuration,easing:u.animateEasing,step:function(){var u={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};r&&r.length&&n(r[0]).css({width:u.width,height:u.height});i._updateCache(u);i._propagate("resize",t)}})}});n.ui.plugin.add("resizable","containment",{start:function(){var r,f,e,o,s,h,c,t=n(this).resizable("instance"),l=t.options,a=t.element,u=l.containment,i=u instanceof n?u.get(0):/parent/.test(u)?a.parent().get(0):u;i&&(t.containerElement=n(i),/document/.test(u)||u===document?(t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:n(document),left:0,top:0,width:n(document).width(),height:n(document).height()||document.body.parentNode.scrollHeight}):(r=n(i),f=[],n(["Top","Right","Left","Bottom"]).each(function(n,i){f[n]=t._num(r.css("padding"+i))}),t.containerOffset=r.offset(),t.containerPosition=r.position(),t.containerSize={height:r.innerHeight()-f[3],width:r.innerWidth()-f[1]},e=t.containerOffset,o=t.containerSize.height,s=t.containerSize.width,h=t._hasScroll(i,"left")?i.scrollWidth:s,c=t._hasScroll(i)?i.scrollHeight:o,t.parentData={element:i,left:e.left,top:e.top,width:h,height:c}))},resize:function(t){var o,s,h,c,i=n(this).resizable("instance"),v=i.options,r=i.containerOffset,l=i.position,f=i._aspectRatio||t.shiftKey,e={top:0,left:0},a=i.containerElement,u=!0;a[0]!==document&&/static/.test(a.css("position"))&&(e=r);l.left<(i._helper?r.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-r.left:i.position.left-e.left),f&&(i.size.height=i.size.width/i.aspectRatio,u=!1),i.position.left=v.helper?r.left:0);l.top<(i._helper?r.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-r.top:i.position.top),f&&(i.size.width=i.size.height*i.aspectRatio,u=!1),i.position.top=i._helper?r.top:0);h=i.containerElement.get(0)===i.element.parent().get(0);c=/relative|absolute/.test(i.containerElement.css("position"));h&&c?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top);o=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-e.left:i.offset.left-r.left));s=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-e.top:i.offset.top-r.top));o+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-o,f&&(i.size.height=i.size.width/i.aspectRatio,u=!1));s+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-s,f&&(i.size.width=i.size.height*i.aspectRatio,u=!1));u||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=n(this).resizable("instance"),r=t.options,u=t.containerOffset,f=t.containerPosition,e=t.containerElement,i=n(t.helper),o=i.offset(),s=i.outerWidth()-t.sizeDiff.width,h=i.outerHeight()-t.sizeDiff.height;t._helper&&!r.animate&&/relative/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h});t._helper&&!r.animate&&/static/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h})}});n.ui.plugin.add("resizable","alsoResize",{start:function(){var t=n(this).resizable("instance"),i=t.options;n(i.alsoResize).each(function(){var t=n(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var r=n(this).resizable("instance"),e=r.options,u=r.originalSize,f=r.originalPosition,o={height:r.size.height-u.height||0,width:r.size.width-u.width||0,top:r.position.top-f.top||0,left:r.position.left-f.left||0};n(e.alsoResize).each(function(){var t=n(this),u=n(this).data("ui-resizable-alsoresize"),r={},f=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];n.each(f,function(n,t){var i=(u[t]||0)+(o[t]||0);i&&i>=0&&(r[t]=i||null)});t.css(r)})},stop:function(){n(this).removeData("ui-resizable-alsoresize")}});n.ui.plugin.add("resizable","ghost",{start:function(){var t=n(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone();t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0});t._addClass(t.ghost,"ui-resizable-ghost");n.uiBackCompat!==!1&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost);t.ghost.appendTo(t.helper)},resize:function(){var t=n(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=n(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}});n.ui.plugin.add("resizable","grid",{resize:function(){var h,t=n(this).resizable("instance"),i=t.options,y=t.size,o=t.originalSize,s=t.originalPosition,c=t.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,f=l[0]||1,e=l[1]||1,a=Math.round((y.width-o.width)/f)*f,v=Math.round((y.height-o.height)/e)*e,r=o.width+a,u=o.height+v,p=i.maxWidth&&r>i.maxWidth,w=i.maxHeight&&u>i.maxHeight,b=i.minWidth&&i.minWidth>r,k=i.minHeight&&i.minHeight>u;i.grid=l;b&&(r+=f);k&&(u+=e);p&&(r-=f);w&&(u-=e);/^(se|s|e)$/.test(c)?(t.size.width=r,t.size.height=u):/^(ne)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.top=s.top-v):/^(sw)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.left=s.left-a):((0>=u-e||0>=r-f)&&(h=t._getPaddingPlusBorderDimensions(this)),u-e>0?(t.size.height=u,t.position.top=s.top-v):(u=e-h.height,t.size.height=u,t.position.top=s.top+o.height-u),r-f>0?(t.size.width=r,t.position.left=s.left-a):(r=f-h.width,t.size.width=r,t.position.left=s.left+o.width-r))}});n.ui.resizable;n.widget("ui.selectable",n.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable");this.dragged=!1;this.refresh=function(){t.elementPos=n(t.element[0]).offset();t.selectees=n(t.options.filter,t.element[0]);t._addClass(t.selectees,"ui-selectee");t.selectees.each(function(){var i=n(this),u=i.offset(),r={left:u.left-t.elementPos.left,top:u.top-t.elementPos.top};n.data(this,"selectable-item",{element:this,$element:i,left:r.left,top:r.top,right:r.left+i.outerWidth(),bottom:r.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})};this.refresh();this._mouseInit();this.helper=n("<div>");this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item");this._mouseDestroy()},_mouseStart:function(t){var i=this,r=this.options;this.opos=[t.pageX,t.pageY];this.elementPos=n(this.element[0]).offset();this.options.disabled||(this.selectees=n(r.filter,this.element[0]),this._trigger("start",t),n(r.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=n.data(this,"selectable-item");r.startselected=!0;t.metaKey||t.ctrlKey||(i._removeClass(r.$element,"ui-selected"),r.selected=!1,i._addClass(r.$element,"ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",t,{unselecting:r.element}))}),n(t.target).parents().addBack().each(function(){var u,r=n.data(this,"selectable-item");if(r)return(u=!t.metaKey&&!t.ctrlKey||!r.$element.hasClass("ui-selected"),i._removeClass(r.$element,u?"ui-unselecting":"ui-selected")._addClass(r.$element,u?"ui-selecting":"ui-unselecting"),r.unselecting=!u,r.selecting=u,r.selected=u,u?i._trigger("selecting",t,{selecting:r.element}):i._trigger("unselecting",t,{unselecting:r.element}),!1)}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var o,i=this,s=this.options,r=this.opos[0],u=this.opos[1],f=t.pageX,e=t.pageY;return r>f&&(o=f,f=r,r=o),u>e&&(o=e,e=u,u=o),this.helper.css({left:r,top:u,width:f-r,height:e-u}),this.selectees.each(function(){var o=n.data(this,"selectable-item"),c=!1,h={};o&&o.element!==i.element[0]&&(h.left=o.left+i.elementPos.left,h.right=o.right+i.elementPos.left,h.top=o.top+i.elementPos.top,h.bottom=o.bottom+i.elementPos.top,"touch"===s.tolerance?c=!(h.left>f||r>h.right||h.top>e||u>h.bottom):"fit"===s.tolerance&&(c=h.left>r&&f>h.right&&h.top>u&&e>h.bottom),c?(o.selected&&(i._removeClass(o.$element,"ui-selected"),o.selected=!1),o.unselecting&&(i._removeClass(o.$element,"ui-unselecting"),o.unselecting=!1),o.selecting||(i._addClass(o.$element,"ui-selecting"),o.selecting=!0,i._trigger("selecting",t,{selecting:o.element}))):(o.selecting&&((t.metaKey||t.ctrlKey)&&o.startselected?(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,i._addClass(o.$element,"ui-selected"),o.selected=!0):(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,o.startselected&&(i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0),i._trigger("unselecting",t,{unselecting:o.element}))),o.selected&&(t.metaKey||t.ctrlKey||o.startselected||(i._removeClass(o.$element,"ui-selected"),o.selected=!1,i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0,i._trigger("unselecting",t,{unselecting:o.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,n(".ui-unselecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-unselecting");r.unselecting=!1;r.startselected=!1;i._trigger("unselected",t,{unselected:r.element})}),n(".ui-selecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-selecting")._addClass(r.$element,"ui-selected");r.selecting=!1;r.selected=!0;r.startselected=!0;i._trigger("selected",t,{selected:r.element})}),this._trigger("stop",t),this.helper.remove(),!1}});n.widget("ui.sortable",n.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(n,t,i){return n>=t&&t+i>n},_isFloating:function(n){return/left|right/.test(n.css("float"))||/inline|table-cell/.test(n.css("display"))},_create:function(){this.containerCache={};this._addClass("ui-sortable");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=!0},_setOption:function(n,t){this._super(n,t);"handle"===n&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle");n.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var n=this.items.length-1;n>=0;n--)this.items[n].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var r=null,f=!1,u=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(t),n(t.target).parents().each(function(){if(n.data(this,u.widgetName+"-item")===u)return(r=n(this),!1)}),n.data(t.target,u.widgetName+"-item")===u&&(r=n(t.target)),r?!this.options.handle||i||(n(this.options.handle,r).find("*").addBack().each(function(){this===t.target&&(f=!0)}),f)?(this.currentItem=r,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(t,i,r){var f,e,u=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,u.cursorAt&&this._adjustOffsetFromHelper(u.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),u.containment&&this._setContainment(),u.cursor&&"auto"!==u.cursor&&(e=this.document.find("body"),this.storedCursor=e.css("cursor"),e.css("cursor",u.cursor),this.storedStylesheet=n("<style>*{ cursor: "+u.cursor+" !important; }<\/style>").appendTo(e)),u.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",u.opacity)),u.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",u.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",t,this._uiHash(this));return n.ui.ddmanager&&(n.ui.ddmanager.current=this),n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,u,f,o,i=this.options,r=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(t.pageY-this.document.scrollTop()<i.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-i.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<i.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+i.scrollSpeed)),t.pageX-this.document.scrollLeft()<i.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-i.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<i.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+i.scrollSpeed))),r!==!1&&n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;e>=0;e--)if(u=this.items[e],f=u.item[0],o=this._intersectsWithPointer(u),o&&u.instance===this.currentContainer&&f!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==f&&!n.contains(this.placeholder[0],f)&&("semi-dynamic"===this.options.type?!n.contains(this.element[0],f):!0)){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(u))break;this._rearrange(t,u);this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(n.ui.ddmanager&&!this.options.dropBehaviour&&n.ui.ddmanager.drop(this,t),this.options.revert){var e=this,f=this.placeholder.offset(),r=this.options.axis,u={};r&&"x"!==r||(u.left=f.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft));r&&"y"!==r||(u.top=f.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop));this.reverting=!0;n(this.helper).animate(u,parseInt(this.options.revert,10)||500,function(){e._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new n.Event("mouseup",{target:null}));"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),n.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?n(this.domPosition.prev).after(this.currentItem):n(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n(r).each(function(){var r=(n(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);r&&i.push((t.key||r[1]+"[]")+"="+(t.key&&t.expression?r[1]:r[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},r.each(function(){i.push(n(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(n){var t=this.positionAbs.left,h=t+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,r=n.left,f=r+n.width,u=n.top,e=u+n.height,o=this.offset.click.top,s=this.offset.click.left,l="x"===this.options.axis||i+o>u&&e>i+o,a="y"===this.options.axis||t+s>r&&f>t+s,v=l&&a;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"]?v:t+this.helperProportions.width/2>r&&f>h-this.helperProportions.width/2&&i+this.helperProportions.height/2>u&&e>c-this.helperProportions.height/2},_intersectsWithPointer:function(n){var t,i,r="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top,n.height),u="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left,n.width),f=r&&u;return f?(t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1)):!1},_intersectsWithSides:function(n){var r=this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top+n.height/2,n.height),u=this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left+n.width/2,n.width),t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return this.floating&&i?"right"===i&&u||"left"===i&&!u:t&&("down"===t&&r||"up"===t&&!r)},_getDragVerticalDirection:function(){var n=this.positionAbs.top-this.lastPositionAbs.top;return 0!==n&&(n>0?"down":"up")},_getDragHorizontalDirection:function(){var n=this.positionAbs.left-this.lastPositionAbs.left;return 0!==n&&(n>0?"right":"left")},refresh:function(n){return this._refreshItems(n),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var n=this.options;return n.connectWith.constructor===String?[n.connectWith]:n.connectWith},_getItemsAsjQuery:function(t){function h(){s.push(this)}var r,u,e,i,s=[],f=[],o=this._connectWith();if(o&&t)for(r=o.length-1;r>=0;r--)for(e=n(o[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&f.push([n.isFunction(i.options.items)?i.options.items.call(i.element):n(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i]);for(f.push([n.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):n(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),r=f.length-1;r>=0;r--)f[r][0].each(h);return n(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=n.grep(this.items,function(n){for(var i=0;t.length>i;i++)if(t[i]===n.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[];this.containers=[this];var r,u,e,i,o,s,h,l,a=this.items,f=[[n.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):n(this.options.items,this.element),this]],c=this._connectWith();if(c&&this.ready)for(r=c.length-1;r>=0;r--)for(e=n(c[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&(f.push([n.isFunction(i.options.items)?i.options.items.call(i.element[0],t,{item:this.currentItem}):n(i.options.items,i.element),i]),this.containers.push(i));for(r=f.length-1;r>=0;r--)for(o=f[r][1],s=f[r][0],u=0,l=s.length;l>u;u++)h=n(s[u]),h.data(this.widgetName+"-item",o),a.push({item:h,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1;this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var r,f,u,i=this.items.length-1;i>=0;i--)r=this.items[i],r.instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0]||(f=this.options.toleranceElement?n(this.options.toleranceElement,r.item):r.item,t||(r.width=f.outerWidth(),r.height=f.outerHeight()),u=f.offset(),r.left=u.left,r.top=u.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)u=this.containers[i].element.offset(),this.containers[i].containerCache.left=u.left,this.containers[i].containerCache.top=u.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var r,i=t.options;i.placeholder&&i.placeholder.constructor!==String||(r=i.placeholder,i.placeholder={element:function(){var u=t.currentItem[0].nodeName.toLowerCase(),i=n("<"+u+">",t.document[0]);return t._addClass(i,"ui-sortable-placeholder",r||t.currentItem[0].className)._removeClass(i,"ui-sortable-helper"),"tbody"===u?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),n("<tr>",t.document[0]).appendTo(i)):"tr"===u?t._createTrPlaceholder(t.currentItem,i):"img"===u&&i.attr("src",t.currentItem.attr("src")),r||i.css("visibility","hidden"),i},update:function(n,u){(!r||i.forcePlaceholderSize)&&(u.height()||u.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),u.width()||u.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}});t.placeholder=n(i.placeholder.element.call(t.element,t.currentItem));t.currentItem.after(t.placeholder);i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var r=this;t.children().each(function(){n("<td>&#160;<\/td>",r.document[0]).attr("colspan",n(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){for(var u,c,f,a,v,o,l,s,h,e=null,i=null,r=this.containers.length-1;r>=0;r--)if(!n.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(e&&n.contains(this.containers[r].element[0],e.element[0]))continue;e=this.containers[r];i=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",t,this._uiHash(this)),this.containers[r].containerCache.over=0);if(e)if(1===this.containers.length)this.containers[i].containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash(this)),this.containers[i].containerCache.over=1);else{for(c=1e4,f=null,s=e.floating||this._isFloating(this.currentItem),a=s?"left":"top",v=s?"width":"height",h=s?"pageX":"pageY",u=this.items.length-1;u>=0;u--)n.contains(this.containers[i].element[0],this.items[u].item[0])&&this.items[u].item[0]!==this.currentItem[0]&&(o=this.items[u].item.offset()[a],l=!1,t[h]-o>this.items[u][v]/2&&(l=!0),c>Math.abs(t[h]-o)&&(c=Math.abs(t[h]-o),f=this.items[u],this.direction=l?"up":"down"));if(!f&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[i])return this.currentContainer.containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1),void 0;f?this._rearrange(t,f,null,!0):this._rearrange(t,null,this.containers[i].element,!0);this._trigger("change",t,this._uiHash());this.containers[i]._trigger("change",t,this._uiHash(this));this.currentContainer=this.containers[i];this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[i]._trigger("over",t,this._uiHash(this));this.containers[i].containerCache.over=1}},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t,this.currentItem])):"clone"===r.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||n("parent"!==r.appendTo?r.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||r.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||r.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&n.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var n=this.currentItem.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,r,u,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode);("document"===i.containment||"window"===i.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]);/^(document|window|parent)$/.test(i.containment)||(t=n(i.containment)[0],r=n(i.containment).offset(),u="hidden"!==n(t).css("overflow"),this.containment=[r.left+(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0)-this.margins.top,r.left+(u?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(u?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var r="absolute"===t?1:-1,u="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r}},_generatePosition:function(t){var r,u,i=this.options,f=t.pageX,e=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(e=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(e=this.containment[3]+this.offset.click.top)),i.grid&&(r=this.originalPageY+Math.round((e-this.originalPageY)/i.grid[1])*i.grid[1],e=this.containment?r-this.offset.click.top>=this.containment[1]&&r-this.offset.click.top<=this.containment[3]?r:r-this.offset.click.top>=this.containment[1]?r-i.grid[1]:r+i.grid[1]:r,u=this.originalPageX+Math.round((f-this.originalPageX)/i.grid[0])*i.grid[0],f=this.containment?u-this.offset.click.left>=this.containment[0]&&u-this.offset.click.left<=this.containment[2]?u:u-this.offset.click.left>=this.containment[0]?u-i.grid[0]:u+i.grid[0]:u)),{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:o.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())}},_rearrange:function(n,t,i,r){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var u=this.counter;this._delay(function(){u===this.counter&&this.refreshPositions(!r)})},_clear:function(n,t){function u(n,t,i){return function(r){i._trigger(n,r,t._uiHash(t))}}this.reverting=!1;var i,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&r.push(function(n){this._trigger("receive",n,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||r.push(function(n){this._trigger("update",n,this._uiHash())}),this!==this.currentContainer&&(t||(r.push(function(n){this._trigger("remove",n,this._uiHash())}),r.push(function(n){return function(t){n._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(n){return function(t){n._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||r.push(u("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(u("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",n,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;r.length>i;i++)r[i].call(this,n);this._trigger("stop",n,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){n.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||n([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}});n.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=n();this._addClass("ui-accordion","ui-widget ui-helper-reset");this.element.attr("role","tablist");t.collapsible||t.active!==!1&&null!=t.active||(t.active=0);this._processPanels();0>t.active&&(t.active+=this.headers.length);this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():n()}},_createIcons:function(){var i,r,t=this.options.icons;t&&(i=n("<span>"),this._addClass(i,"ui-accordion-header-icon","ui-icon "+t.header),i.prependTo(this.headers),r=this.active.children(".ui-accordion-header-icon"),this._removeClass(r,t.header)._addClass(r,null,t.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons");this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var n;this.element.removeAttr("role");this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId();this._destroyIcons();n=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId();"content"!==this.options.heightStyle&&n.css("height","")},_setOption:function(n,t){return"active"===n?(this._activate(t),void 0):("event"===n&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(n,t),"collapsible"!==n||t||this.options.active!==!1||this._activate(0),"icons"===n&&(this._destroyIcons(),t&&this._createIcons()),void 0)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n);this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!n)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=n.ui.keyCode,u=this.headers.length,f=this.headers.index(t.target),r=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(f+1)%u];break;case i.LEFT:case i.UP:r=this.headers[(f-1+u)%u];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[u-1]}r&&(n(t.target).attr("tabIndex",-1),n(r).attr("tabIndex",0),n(r).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===n.ui.keyCode.UP&&t.ctrlKey&&n(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels();t.active===!1&&t.collapsible===!0||!this.headers.length?(t.active=!1,this.active=n()):t.active===!1?this._activate(0):this.active.length&&!n.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=n()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active);this._destroyIcons();this._refresh()},_processPanels:function(){var t=this.headers,n=this.panels;this.headers=this.element.find(this.options.header);this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default");this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide();this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content");n&&(this._off(t.not(this.headers)),this._off(n.not(this.panels)))},_refresh:function(){var t,i=this.options,r=i.heightStyle,u=this.element.parent();this.active=this._findActive(i.active);this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed");this._addClass(this.active.next(),"ui-accordion-content-active");this.active.next().show();this.headers.attr("role","tab").each(function(){var t=n(this),r=t.uniqueId().attr("id"),i=t.next(),u=i.uniqueId().attr("id");t.attr("aria-controls",u);i.attr("aria-labelledby",r)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0);this._createIcons();this._setupEvents(i.event);"fill"===r?(t=u.height(),this.element.siblings(":visible").each(function(){var i=n(this),r=i.css("position");"absolute"!==r&&"fixed"!==r&&(t-=i.outerHeight(!0))}),this.headers.each(function(){t-=n(this).outerHeight(!0)}),this.headers.next().each(function(){n(this).height(Math.max(0,t-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):"auto"===r&&(t=0,this.headers.next().each(function(){var i=n(this).is(":visible");i||n(this).show();t=Math.max(t,n(this).css("height","").height());i||n(this).hide()}).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:n.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):n()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.headers.add(this.headers.next()));this._on(this.headers,i);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(t){var e,o,i=this.options,u=this.active,r=n(t.currentTarget),f=r[0]===u[0],s=f&&i.collapsible,c=s?n():r.next(),l=u.next(),h={oldHeader:u,oldPanel:l,newHeader:s?n():r,newPanel:c};t.preventDefault();f&&!i.collapsible||this._trigger("beforeActivate",t,h)===!1||(i.active=s?!1:this.headers.index(r),this.active=f?n():r,this._toggle(h),this._removeClass(u,"ui-accordion-header-active","ui-state-active"),i.icons&&(e=u.children(".ui-accordion-header-icon"),this._removeClass(e,null,i.icons.activeHeader)._addClass(e,null,i.icons.header)),f||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),i.icons&&(o=r.children(".ui-accordion-header-icon"),this._removeClass(o,null,i.icons.header)._addClass(o,null,i.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(t){var r=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0);this.prevShow=r;this.prevHide=i;this.options.animate?this._animate(r,i,t):(i.hide(),r.show(),this._toggleComplete(t));i.attr({"aria-hidden":"true"});i.prev().attr({"aria-selected":"false","aria-expanded":"false"});r.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):r.length&&this.headers.filter(function(){return 0===parseInt(n(this).attr("tabIndex"),10)}).attr("tabIndex",-1);r.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(n,t,i){var h,r,u,c=this,o=0,l=n.css("box-sizing"),a=n.length&&(!t.length||n.index()<t.index()),e=this.options.animate||{},f=a&&e.down||e,s=function(){c._toggleComplete(i)};return"number"==typeof f&&(u=f),"string"==typeof f&&(r=f),r=r||f.easing||e.easing,u=u||f.duration||e.duration,t.length?n.length?(h=n.show().outerHeight(),t.animate(this.hideProps,{duration:u,easing:r,step:function(n,t){t.now=Math.round(n)}}),n.hide().animate(this.showProps,{duration:u,easing:r,complete:s,step:function(n,i){i.now=Math.round(n);"height"!==i.prop?"content-box"===l&&(o+=i.now):"content"!==c.options.heightStyle&&(i.now=Math.round(h-t.outerHeight()-o),o=0)}}),void 0):t.animate(this.hideProps,u,r,s):n.animate(this.showProps,u,r,s)},_toggleComplete:function(n){var t=n.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active");this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed");t.length&&(t.parent()[0].className=t.parent()[0].className);this._trigger("activate",null,n)}});n.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=!1;this.element.uniqueId().attr({role:this.options.role,tabIndex:0});this._addClass("ui-menu","ui-widget ui-widget-content");this._on({"mousedown .ui-menu-item":function(n){n.preventDefault()},"click .ui-menu-item":function(t){var i=n(t.target),r=n(n.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var r=n(t.target).closest(".ui-menu-item"),i=n(t.currentTarget);r[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(n,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(n,i)},blur:function(t){this._delay(function(){var i=!n.contains(this.element[0],n.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(t)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(n){this._closeOnDocumentClick(n)&&this.collapseAll(n);this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=t.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show();i.children().each(function(){var t=n(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var i,u,r,f,e=!0;switch(t.keyCode){case n.ui.keyCode.PAGE_UP:this.previousPage(t);break;case n.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case n.ui.keyCode.HOME:this._move("first","first",t);break;case n.ui.keyCode.END:this._move("last","last",t);break;case n.ui.keyCode.UP:this.previous(t);break;case n.ui.keyCode.DOWN:this.next(t);break;case n.ui.keyCode.LEFT:this.collapse(t);break;case n.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:this._activate(t);break;case n.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=!1;u=this.previousFilter||"";f=!1;r=t.keyCode>=96&&105>=t.keyCode?""+(t.keyCode-96):String.fromCharCode(t.keyCode);clearTimeout(this.filterTimer);r===u?f=!0:r=u+r;i=this._filterMenuItems(r);i=f&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i;i.length||(r=String.fromCharCode(t.keyCode),i=this._filterMenuItems(r));i.length?(this.focus(t,i),this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}e&&t.preventDefault()},_activate:function(n){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(n):this.select(n))},refresh:function(){var u,t,f,i,e,r=this,s=this.options.icons.submenu,o=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length);f=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=n(this),i=t.prev(),u=n("<span>").data("ui-menu-submenu-caret",!0);r._addClass(u,"ui-menu-icon","ui-icon "+s);i.attr("aria-haspopup","true").prepend(u);t.attr("aria-labelledby",i.attr("id"))});this._addClass(f,"ui-menu","ui-widget ui-widget-content ui-front");u=o.add(this.element);t=u.find(this.options.items);t.not(".ui-menu-item").each(function(){var t=n(this);r._isDivider(t)&&r._addClass(t,"ui-menu-divider","ui-widget-content")});i=t.not(".ui-menu-item, .ui-menu-divider");e=i.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()});this._addClass(i,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper");t.filter(".ui-state-disabled").attr("aria-disabled","true");this.active&&!n.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(n,t){if("icons"===n){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n+"");this._toggleClass(null,"ui-state-disabled",!!n)},focus:function(n,t){var i,r,u;this.blur(n,n&&"focus"===n.type);this._scrollIntoView(t);this.active=t.first();r=this.active.children(".ui-menu-item-wrapper");this._addClass(r,null,"ui-state-active");this.options.role&&this.element.attr("aria-activedescendant",r.attr("id"));u=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper");this._addClass(u,null,"ui-state-active");n&&"keydown"===n.type?this._close():this.timer=this._delay(function(){this._close()},this.delay);i=t.children(".ui-menu");i.length&&n&&/^mouse/.test(n.type)&&this._startOpening(i);this.activeMenu=t.parent();this._trigger("focus",n,{item:t})},_scrollIntoView:function(t){var e,o,i,r,u,f;this._hasScroll()&&(e=parseFloat(n.css(this.activeMenu[0],"borderTopWidth"))||0,o=parseFloat(n.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-e-o,r=this.activeMenu.scrollTop(),u=this.activeMenu.height(),f=t.outerHeight(),0>i?this.activeMenu.scrollTop(r+i):i+f>u&&this.activeMenu.scrollTop(r+i-u+f))},blur:function(n,t){t||clearTimeout(this.timer);this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",n,{item:this.active}),this.active=null)},_startOpening:function(n){clearTimeout(this.timer);"true"===n.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close();this._open(n)},this.delay))},_open:function(t){var i=n.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true");t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer);this.timer=this._delay(function(){var r=i?this.element:n(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element);this._close(r);this.blur(t);this._removeClass(r.find(".ui-state-active"),null,"ui-state-active");this.activeMenu=r},this.delay)},_close:function(n){n||(n=this.active?this.active.parent():this.element);n.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!n(t.target).closest(".ui-menu").length},_isDivider:function(n){return!/[^\-\u2014\u2013\s]/.test(n.text())},collapse:function(n){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(n,t))},expand:function(n){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(n,t)}))},next:function(n){this._move("next","first",n)},previous:function(n){this._move("prev","last",n)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(n,t,i){var r;this.active&&(r="first"===n||"last"===n?this.active["first"===n?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[n+"All"](".ui-menu-item").eq(0));r&&r.length&&this.active||(r=this.activeMenu.find(this.options.items)[t]());this.focus(i,r)},nextPage:function(t){var i,r,u;return this.active?(this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=n(this),0>i.offset().top-r-u}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(t),void 0)},previousPage:function(t){var i,r,u;return this.active?(this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-r+u>0}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items).first())),void 0):(this.next(t),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||n(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0);this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return r.test(n.trim(n(this).children(".ui-menu-item-wrapper").text()))})}});n.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,i,r,u=this.element[0].nodeName.toLowerCase(),f="textarea"===u,e="input"===u;this.isMultiLine=f||!e&&this._isContentEditable(this.element);this.valueMethod=this.element[f||e?"val":"text"];this.isNewMenu=!0;this._addClass("ui-autocomplete-input");this.element.attr("autocomplete","off");this._on(this.element,{keydown:function(u){if(this.element.prop("readOnly"))return t=!0,r=!0,i=!0,void 0;t=!1;r=!1;i=!1;var f=n.ui.keyCode;switch(u.keyCode){case f.PAGE_UP:t=!0;this._move("previousPage",u);break;case f.PAGE_DOWN:t=!0;this._move("nextPage",u);break;case f.UP:t=!0;this._keyEvent("previous",u);break;case f.DOWN:t=!0;this._keyEvent("next",u);break;case f.ENTER:this.menu.active&&(t=!0,u.preventDefault(),this.menu.select(u));break;case f.TAB:this.menu.active&&this.menu.select(u);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(u),u.preventDefault());break;default:i=!0;this._searchTimeout(u)}},keypress:function(r){if(t)return t=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault(),void 0;if(!i){var u=n.ui.keyCode;switch(r.keyCode){case u.PAGE_UP:this._move("previousPage",r);break;case u.PAGE_DOWN:this._move("nextPage",r);break;case u.UP:this._keyEvent("previous",r);break;case u.DOWN:this._keyEvent("next",r)}}},input:function(n){return r?(r=!1,n.preventDefault(),void 0):(this._searchTimeout(n),void 0)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(n){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(n),this._change(n),void 0)}});this._initSource();this.menu=n("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance");this._addClass(this.menu.element,"ui-autocomplete","ui-front");this._on(this.menu.element,{mousedown:function(t){t.preventDefault();this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur;this.element[0]!==n.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,i){var r,u;return this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){n(t.target).trigger(t.originalEvent)}),void 0):(u=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:u})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(u.value),r=i.item.attr("aria-label")||u.value,r&&n.trim(r).length&&(this.liveRegion.children().hide(),n("<div>").text(r).appendTo(this.liveRegion)),void 0)},menuselect:function(t,i){var r=i.item.data("ui-autocomplete-item"),u=this.previous;this.element[0]!==n.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=u,this._delay(function(){this.previous=u;this.selectedItem=r}));!1!==this._trigger("select",t,{item:r})&&this._value(r.value);this.term=this._value();this.close(t);this.selectedItem=r}});this.liveRegion=n("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(n,t){this._super(n,t);"source"===n&&this._initSource();"appendTo"===n&&this.menu.element.appendTo(this._appendTo());"disabled"===n&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||n.contains(i,t.target)},_closeOnClickOutside:function(n){this._isEventTargetInWidget(n)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,r,t=this;n.isArray(this.options.source)?(i=this.options.source,this.source=function(t,r){r(n.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(r=this.options.source,this.source=function(i,u){t.xhr&&t.xhr.abort();t.xhr=n.ajax({url:r,data:i,dataType:"json",success:function(n){u(n)},error:function(){u([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching);this.searching=this._delay(function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),r=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;t&&(!t||i||r)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(n,t){return n=null!=n?n:this._value(),this.term=this._value(),n.length<this.options.minLength?this.close(t):this._trigger("search",t)!==!1?this._search(n):void 0},_search:function(n){this.pending++;this._addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:n},this._response())},_response:function(){var t=++this.requestIndex;return n.proxy(function(n){t===this.requestIndex&&this.__response(n);this.pending--;this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(n){n&&(n=this._normalize(n));this._trigger("response",null,{content:n});!this.options.disabled&&n&&n.length&&!this.cancelSearch?(this._suggest(n),this._trigger("open")):this._close()},close:function(n){this.cancelSearch=!0;this._close(n)},_close:function(n){this._off(this.document,"mousedown");this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",n))},_change:function(n){this.previous!==this._value()&&this._trigger("change",n,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:n.map(t,function(t){return"string"==typeof t?{label:t,value:t}:n.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t);this.isNewMenu=!0;this.menu.refresh();i.show();this._resizeMenu();i.position(n.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next();this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var n=this.menu.element;n.outerWidth(Math.max(n.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var r=this;n.each(i,function(n,i){r._renderItemData(t,i)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return n("<li>").append(n("<div>").text(i.label)).appendTo(t)},_move:function(n,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(n)||this.menu.isLastItem()&&/^next/.test(n)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[n](t),void 0):(this.search(null,t),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(n,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(n,t),t.preventDefault())},_isContentEditable:function(n){if(!n.length)return!1;var t=n.prop("contentEditable");return"inherit"===t?this._isContentEditable(n.parent()):"true"===t}});n.extend(n.ui.autocomplete,{escapeRegex:function(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var r=RegExp(n.ui.autocomplete.escapeRegex(i),"i");return n.grep(t,function(n){return r.test(n.label||n.value||n)})}});n.widget("ui.autocomplete",n.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(n){return n+(n>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments);this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),n("<div>").text(i).appendTo(this.liveRegion))}});n.ui.autocomplete;y=/ui-corner-([a-z]){2,6}/g;n.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar");this.refresh()},_destroy:function(){this._callChildMethod("destroy");this.childWidgets.removeData("ui-controlgroup-data");this.element.removeAttr("role");this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,i=[];n.each(this.options.items,function(r,u){var f,e={};if(u)return"controlgroupLabel"===r?(f=t.element.find(u),f.each(function(){var t=n(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'><\/span>")}),t._addClass(f,null,"ui-widget ui-widget-content ui-state-default"),i=i.concat(f.get()),void 0):(n.fn[r]&&(e=t["_"+r+"Options"]?t["_"+r+"Options"]("middle"):{classes:{}},t.element.find(u).each(function(){var u=n(this),f=u[r]("instance"),o=n.widget.extend({},e),s;"button"===r&&u.parent(".ui-spinner").length||(f||(f=u[r]()[r]("instance")),f&&(o.classes=t._resolveClassesValues(o.classes,f)),u[r](o),s=u[r]("widget"),n.data(s[0],"ui-controlgroup-data",f?f:u[r]("instance")),i.push(s[0]))})),void 0)});this.childWidgets=n(n.unique(i));this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var r=n(this),i=r.data("ui-controlgroup-data");i&&i[t]&&i[t]()})},_updateCornerClass:function(n,t){var i=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(n,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all");this._addClass(n,null,i)},_buildSimpleOptions:function(n,t){var i="vertical"===this.options.direction,r={classes:{}};return r.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[n],r},_spinnerOptions:function(n){var t=this._buildSimpleOptions(n,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(n){return this._buildSimpleOptions(n,"ui-button")},_checkboxradioOptions:function(n){return this._buildSimpleOptions(n,"ui-checkboxradio-label")},_selectmenuOptions:function(n){var t="vertical"===this.options.direction;return{width:t?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[n]}},_resolveClassesValues:function(t,i){var r={};return n.each(t,function(u){var f=i.options.classes[u]||"";f=n.trim(f.replace(y,""));r[u]=(f+" "+t[u]).replace(/\s+/g," ")}),r},_setOption:function(n,t){return"direction"===n&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(n,t),"disabled"===n?(this._callChildMethod(t?"disable":"enable"),void 0):(this.refresh(),void 0)},refresh:function(){var t,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction);"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix");this._initWidgets();t=this.childWidgets;this.options.onlyVisible&&(t=t.filter(":visible"));t.length&&(n.each(["first","last"],function(n,r){var u=t[r]().data("ui-controlgroup-data"),f;u&&i["_"+u.widgetName+"Options"]?(f=i["_"+u.widgetName+"Options"](1===t.length?"only":r),f.classes=i._resolveClassesValues(f.classes,u),u.element[u.widgetName](f)):i._updateCornerClass(t[r](),r)}),this._callChildMethod("refresh"))}});n.widget("ui.checkboxradio",[n.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,i,u=this,r=this._super()||{};return this._readType(),i=this.element.labels(),this.label=n(i[i.length-1]),this.label.length||n.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){u.originalLabel+=3===this.nodeType?n(this).text():this.outerHTML}),this.originalLabel&&(r.label=this.originalLabel),t=this.element[0].disabled,null!=t&&(r.disabled=t),r},_create:function(){var n=this.element[0].checked;this._bindFormResetHandler();null==this.options.disabled&&(this.options.disabled=this.element[0].disabled);this._setOption("disabled",this.options.disabled);this._addClass("ui-checkboxradio","ui-helper-hidden-accessible");this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget");"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label");this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel);this._enhance();n&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover"));this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type;"input"===t&&/radio|checkbox/.test(this.type)||n.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t,i=this.element[0].name,r="input[name='"+n.ui.escapeSelector(i)+"']";return i?(t=this.form.length?n(this.form[0].elements).filter(r):n(r).filter(function(){return 0===n(this).form().length}),t.not(this.element)):n([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t);this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t);"radio"===this.type&&this._getRadioGroup().each(function(){var t=n(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler();this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(n,t){if("label"!==n||t)return(this._super(n,t),"disabled"===n?(this._toggleClass(this.label,null,"ui-state-disabled",t),this.element[0].disabled=t,void 0):(this.refresh(),void 0))},_updateIcon:function(t){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=n("<span>"),this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var n=this.label.contents().not(this.element[0]);this.icon&&(n=n.not(this.icon[0]));this.iconSpace&&(n=n.not(this.iconSpace[0]));n.remove();this.label.append(this.options.label)},refresh:function(){var n=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(n);this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",n);null!==this.options.label&&this._updateLabel();t!==this.options.disabled&&this._setOptions({disabled:t})}}]);n.ui.checkboxradio;n.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var n,t=this._super()||{};return this.isInput=this.element.is("input"),n=this.element[0].disabled,null!=n&&(t.disabled=n),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0);null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1);this.hasTitle=!!this.element.attr("title");this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label));this._addClass("ui-button","ui-widget");this._setOption("disabled",this.options.disabled);this._enhance();this.element.is("a")&&this._on({keyup:function(t){t.keyCode===n.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button");this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title");this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,i){var u="iconPosition"!==t,r=u?this.options.iconPosition:i,f="top"===r||"bottom"===r;this.icon?u&&this._removeClass(this.icon,null,this.options.icon):(this.icon=n("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only"));u&&this._addClass(this.icon,null,i);this._attachIcon(r);f?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(r))},_destroy:function(){this.element.removeAttr("role");this.icon&&this.icon.remove();this.iconSpace&&this.iconSpace.remove();this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(n){this.icon[/^(?:end|bottom)/.test(n)?"before":"after"](this.iconSpace)},_attachIcon:function(n){this.element[/^(?:end|bottom)/.test(n)?"append":"prepend"](this.icon)},_setOptions:function(n){var t=void 0===n.showLabel?this.options.showLabel:n.showLabel,i=void 0===n.icon?this.options.icon:n.icon;t||i||(n.showLabel=!0);this._super(n)},_setOption:function(n,t){"icon"===n&&(t?this._updateIcon(n,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove()));"iconPosition"===n&&this._updateIcon(n,t);"showLabel"===n&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip());"label"===n&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition))));this._super(n,t);"disabled"===n&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.blur())},refresh:function(){var n=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");n!==this.options.disabled&&this._setOptions({disabled:n});this._updateTooltip()}});n.uiBackCompat!==!1&&(n.widget("ui.button",n.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text);!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel);this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end");this._super()},_setOption:function(n,t){return"text"===n?(this._super("showLabel",t),void 0):("showLabel"===n&&(this.options.text=t),"icon"===n&&(this.options.icons.primary=t),"icons"===n&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),this._superApply(arguments),void 0)}}),n.fn.button=function(t){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?t.apply(this,arguments):(n.ui.checkboxradio||n.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(n.fn.button),n.fn.buttonset=function(){return n.ui.controlgroup||n.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});n.ui.button;n.extend(n.ui,{datepicker:{version:"1.12.1"}});n.extend(c.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(n){return u(this._defaults,n||{}),this},_attachDatepicker:function(t,i){var r,f,u;r=t.nodeName.toLowerCase();f="div"===r||"span"===r;t.id||(this.uuid+=1,t.id="dp"+this.uuid);u=this._newInst(n(t),f);u.settings=n.extend({},i||{});"input"===r?this._connectDatepicker(t,u):f&&this._inlineDatepicker(t,u)},_newInst:function(t,i){var r=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?l(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>")):this.dpDiv}},_connectDatepicker:function(t,i){var r=n(t);i.append=n([]);i.trigger=n([]);r.hasClass(this.markerClassName)||(this._attachments(r,i),r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),n.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var u,r,f,e=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove();e&&(i.append=n("<span class='"+this._appendClass+"'>"+e+"<\/span>"),t[o?"before":"after"](i.append));t.off("focus",this._showDatepicker);i.trigger&&i.trigger.remove();u=this._get(i,"showOn");("focus"===u||"both"===u)&&t.on("focus",this._showDatepicker);("button"===u||"both"===u)&&(r=this._get(i,"buttonText"),f=this._get(i,"buttonImage"),i.trigger=n(this._get(i,"buttonImageOnly")?n("<img/>").addClass(this._triggerClass).attr({src:f,alt:r,title:r}):n("<button type='button'><\/button>").addClass(this._triggerClass).html(f?n("<img/>").attr({src:f,alt:r,title:r}):r)),t[o?"before":"after"](i.trigger),i.trigger.on("click",function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===t[0]?n.datepicker._hideDatepicker():n.datepicker._datepickerShowing&&n.datepicker._lastInput!==t[0]?(n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])):n.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(n){if(this._get(n,"autoSize")&&!n.inline){var r,u,f,t,i=new Date(2009,11,20),e=this._get(n,"dateFormat");e.match(/[DM]/)&&(r=function(n){for(u=0,f=0,t=0;n.length>t;t++)n[t].length>u&&(u=n[t].length,f=t);return f},i.setMonth(r(this._get(n,e.match(/MM/)?"monthNames":"monthNamesShort"))),i.setDate(r(this._get(n,e.match(/DD/)?"dayNames":"dayNamesShort"))+20-i.getDay()));n.input.attr("size",this._formatDate(n,i).length)}},_inlineDatepicker:function(t,i){var r=n(t);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(i.dpDiv),n.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,r,f,e){var s,h,c,l,a,o=this._dialogInst;return o||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=n("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),n("body").append(this._dialogInput),o=this._dialogInst=this._newInst(this._dialogInput,!1),o.settings={},n.data(this._dialogInput[0],"datepicker",o)),u(o.settings,f||{}),i=i&&i.constructor===Date?this._formatDate(o,i):i,this._dialogInput.val(i),this._pos=e?e.length?e:[e.pageX,e.pageY]:null,this._pos||(h=document.documentElement.clientWidth,c=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,a=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+l,c/2-150+a]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),o.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],"datepicker",o),this},_destroyDatepicker:function(t){var r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),n.removeData(t,"datepicker"),"input"===r?(f.append.remove(),f.trigger.remove(),u.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===r||"span"===r)&&u.removeClass(this.markerClassName).empty(),i===f&&(i=null))},_enableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(r=u.children("."+this._inlineClass),r.children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}))},_disableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(r=u.children("."+this._inlineClass),r.children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(n){if(!n)return!1;for(var t=0;this._disabledInputs.length>t;t++)if(this._disabledInputs[t]===n)return!0;return!1},_getInst:function(t){try{return n.data(t,"datepicker")}catch(i){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(t,i,r){var e,h,o,s,f=this._getInst(t);return 2===arguments.length&&"string"==typeof i?"defaults"===i?n.extend({},n.datepicker._defaults):f?"all"===i?n.extend({},f.settings):this._get(f,i):null:(e=i||{},"string"==typeof i&&(e={},e[i]=r),f&&(this._curInst===f&&this._hideDatepicker(),h=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(f,"min"),s=this._getMinMaxDate(f,"max"),u(f.settings,e),null!==o&&void 0!==e.dateFormat&&void 0===e.minDate&&(f.settings.minDate=this._formatDate(f,o)),null!==s&&void 0!==e.dateFormat&&void 0===e.maxDate&&(f.settings.maxDate=this._formatDate(f,s)),"disabled"in e&&(e.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(n(t),f),this._autoSize(f),this._setDate(f,h),this._updateAlternate(f),this._updateDatepicker(f)),void 0)},_changeDatepicker:function(n,t,i){this._optionDatepicker(n,t,i)},_refreshDatepicker:function(n){var t=this._getInst(n);t&&this._updateDatepicker(t)},_setDateDatepicker:function(n,t){var i=this._getInst(n);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(n,t){var i=this._getInst(n);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var u,e,f,i=n.datepicker._getInst(t.target),r=!0,o=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker();r=!1;break;case 13:return f=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",i.dpDiv),f[0]&&n.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,f[0]),u=n.datepicker._get(i,"onSelect"),u?(e=n.datepicker._formatDate(i),u.apply(i.input?i.input[0]:null,[e,i])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target);r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target);r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?1:-1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D");r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?-1:1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D");r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?n.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,r,u=n.datepicker._getInst(t.target);if(n.datepicker._get(u,"constrainInput"))return(i=n.datepicker._possibleChars(n.datepicker._get(u,"dateFormat")),r=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||" ">r||!i||i.indexOf(r)>-1)},_doKeyUp:function(t){var r,i=n.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{r=n.datepicker.parseDate(n.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,n.datepicker._getFormatConfig(i));r&&(n.datepicker._setDateFromField(i),n.datepicker._updateAlternate(i),n.datepicker._updateDatepicker(i))}catch(u){}return!0},_showDatepicker:function(t){if(t=t.target||t,"input"!==t.nodeName.toLowerCase()&&(t=n("input",t.parentNode)[0]),!n.datepicker._isDisabledDatepicker(t)&&n.datepicker._lastInput!==t){var i,o,s,r,f,e,h;i=n.datepicker._getInst(t);n.datepicker._curInst&&n.datepicker._curInst!==i&&(n.datepicker._curInst.dpDiv.stop(!0,!0),i&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0]));o=n.datepicker._get(i,"beforeShow");s=o?o.apply(t,[t,i]):{};s!==!1&&(u(i.settings,s),i.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(i),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),r=!1,n(t).parents().each(function(){return r|="fixed"===n(this).css("position"),!r}),f={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(i),f=n.datepicker._checkOffset(i,f,r),i.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":r?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"}),i.inline||(e=n.datepicker._get(i,"showAnim"),h=n.datepicker._get(i,"duration"),i.dpDiv.css("z-index",k(n(t))+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[e]?i.dpDiv.show(e,n.datepicker._get(i,"showOptions"),h):i.dpDiv[e||"show"](e?h:null),n.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),n.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4;i=t;t.dpDiv.empty().append(this._generateHTML(t));this._attachHandlers(t);var r,u=this._getNumberOfMonths(t),f=u[1],e=t.dpDiv.find("."+this._dayOverClass+" a");e.length>0&&a.apply(e.get(0));t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");f>1&&t.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",17*f+"em");t.dpDiv[(1!==u[0]||1!==u[1]?"add":"remove")+"Class"]("ui-datepicker-multi");t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");t===n.datepicker._curInst&&n.datepicker._datepickerShowing&&n.datepicker._shouldFocusInput(t)&&t.input.trigger("focus");t.yearshtml&&(r=t.yearshtml,setTimeout(function(){r===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml);r=t.yearshtml=null},0))},_shouldFocusInput:function(n){return n.input&&n.input.is(":visible")&&!n.input.is(":disabled")&&!n.input.is(":focus")},_checkOffset:function(t,i,r){var u=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+(r?0:n(document).scrollLeft()),s=document.documentElement.clientHeight+(r?0:n(document).scrollTop());return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left===t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top===t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&e>u?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&s>f?Math.abs(f+o):0),i},_findPos:function(t){for(var i,r=this._getInst(t),u=this._get(r,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||n.expr.filters.hidden(t));)t=t[u?"previousSibling":"nextSibling"];return i=n(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var r,f,u,e,i=this._curInst;!i||t&&i!==n.data(t,"datepicker")||this._datepickerShowing&&(r=this._get(i,"showAnim"),f=this._get(i,"duration"),u=function(){n.datepicker._tidyDialog(i)},n.effects&&(n.effects.effect[r]||n.effects[r])?i.dpDiv.hide(r,n.datepicker._get(i,"showOptions"),f,u):i.dpDiv["slideDown"===r?"slideUp":"fadeIn"===r?"fadeOut":"hide"](r?f:null,u),r||u(),this._datepickerShowing=!1,e=this._get(i,"onClose"),e&&e.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(n){n.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(n.datepicker._curInst){var i=n(t.target),r=n.datepicker._getInst(i[0]);(i[0].id===n.datepicker._mainDivId||0!==i.parents("#"+n.datepicker._mainDivId).length||i.hasClass(n.datepicker.markerClassName)||i.closest("."+n.datepicker._triggerClass).length||!n.datepicker._datepickerShowing||n.datepicker._inDialog&&n.blockUI)&&(!i.hasClass(n.datepicker.markerClassName)||n.datepicker._curInst===r)||n.datepicker._hideDatepicker()}},_adjustDate:function(t,i,r){var f=n(t),u=this._getInst(f[0]);this._isDisabledDatepicker(f[0])||(this._adjustInstDate(u,i+("M"===r?this._get(u,"showCurrentAtPos"):0),r),this._updateDatepicker(u))},_gotoToday:function(t){var r,u=n(t),i=this._getInst(u[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(r=new Date,i.selectedDay=r.getDate(),i.drawMonth=i.selectedMonth=r.getMonth(),i.drawYear=i.selectedYear=r.getFullYear());this._notifyChange(i);this._adjustDate(u)},_selectMonthYear:function(t,i,r){var f=n(t),u=this._getInst(f[0]);u["selected"+("M"===r?"Month":"Year")]=u["draw"+("M"===r?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10);this._notifyChange(u);this._adjustDate(f)},_selectDay:function(t,i,r,u){var f,e=n(t);n(u).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0])||(f=this._getInst(e[0]),f.selectedDay=f.currentDay=n("a",u).html(),f.selectedMonth=f.currentMonth=i,f.selectedYear=f.currentYear=r,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){var i=n(t);this._selectDate(i,"")},_selectDate:function(t,i){var u,f=n(t),r=this._getInst(f[0]);i=null!=i?i:this._formatDate(r);r.input&&r.input.val(i);this._updateAlternate(r);u=this._get(r,"onSelect");u?u.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change");r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],"object"!=typeof r.input[0]&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,r,u,f=this._get(t,"altField");f&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),u=this.formatDate(i,r,this._getFormatConfig(t)),n(f).val(u))},noWeekends:function(n){var t=n.getDay();return[t>0&&6>t,""]},iso8601Week:function(n){var i,t=new Date(n.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(t,i,r){if(null==t||null==i)throw"Invalid arguments";if(i="object"==typeof i?""+i:i+"",""===i)return null;for(var a,v,u,f=0,y=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,d="string"!=typeof y?y:(new Date).getFullYear()%100+parseInt(y,10),g=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,nt=(r?r.dayNames:null)||this._defaults.dayNames,tt=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,it=(r?r.monthNames:null)||this._defaults.monthNames,e=-1,s=-1,h=-1,p=-1,w=!1,l=function(n){var i=t.length>o+1&&t.charAt(o+1)===n;return i&&o++,i},c=function(n){var u=l(n),r="@"===n?14:"!"===n?20:"y"===n&&u?4:"o"===n?3:2,e="y"===n?r:1,o=RegExp("^\\d{"+e+","+r+"}"),t=i.substring(f).match(o);if(!t)throw"Missing number at position "+f;return f+=t[0].length,parseInt(t[0],10)},k=function(t,r,u){var e=-1,o=n.map(l(t)?u:r,function(n,t){return[[t,n]]}).sort(function(n,t){return-(n[1].length-t[1].length)});if(n.each(o,function(n,t){var r=t[1];if(i.substr(f,r.length).toLowerCase()===r.toLowerCase())return(e=t[0],f+=r.length,!1)}),-1!==e)return e+1;throw"Unknown name at position "+f;},b=function(){if(i.charAt(f)!==t.charAt(o))throw"Unexpected literal at position "+f;f++},o=0;t.length>o;o++)if(w)"'"!==t.charAt(o)||l("'")?b():w=!1;else switch(t.charAt(o)){case"d":h=c("d");break;case"D":k("D",g,nt);break;case"o":p=c("o");break;case"m":s=c("m");break;case"M":s=k("M",tt,it);break;case"y":e=c("y");break;case"@":u=new Date(c("@"));e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"!":u=new Date((c("!")-this._ticksTo1970)/1e4);e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"'":l("'")?b():w=!0;break;default:b()}if(i.length>f&&(v=i.substr(f),!/^\s+/.test(v)))throw"Extra/unparsed characters found in date: "+v;if(-1===e?e=(new Date).getFullYear():100>e&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d>=e?0:-100)),p>-1)for(s=1,h=p;;){if(a=this._getDaysInMonth(e,s-1),a>=h)break;s++;h-=a}if(u=this._daylightSavingAdjust(new Date(e,s-1,h)),u.getFullYear()!==e||u.getMonth()+1!==s||u.getDate()!==h)throw"Invalid date";return u},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(n,t,i){if(!t)return"";var u,h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,f=function(t){var i=n.length>u+1&&n.charAt(u+1)===t;return i&&u++,i},e=function(n,t,i){var r=""+t;if(f(n))for(;i>r.length;)r="0"+r;return r},s=function(n,t,i,r){return f(n)?r[t]:i[t]},r="",o=!1;if(t)for(u=0;n.length>u;u++)if(o)"'"!==n.charAt(u)||f("'")?r+=n.charAt(u):o=!1;else switch(n.charAt(u)){case"d":r+=e("d",t.getDate(),2);break;case"D":r+=s("D",t.getDay(),h,c);break;case"o":r+=e("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":r+=e("m",t.getMonth()+1,2);break;case"M":r+=s("M",t.getMonth(),l,a);break;case"y":r+=f("y")?t.getFullYear():(10>t.getFullYear()%100?"0":"")+t.getFullYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=1e4*t.getTime()+this._ticksTo1970;break;case"'":f("'")?r+="'":o=!0;break;default:r+=n.charAt(u)}return r},_possibleChars:function(n){for(var i="",r=!1,u=function(i){var r=n.length>t+1&&n.charAt(t+1)===i;return r&&t++,r},t=0;n.length>t;t++)if(r)"'"!==n.charAt(t)||u("'")?i+=n.charAt(t):r=!1;else switch(n.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":u("'")?i+="'":r=!0;break;default:i+=n.charAt(t)}return i},_get:function(n,t){return void 0!==n.settings[t]?n.settings[t]:this._defaults[t]},_setDateFromField:function(n,t){if(n.input.val()!==n.lastVal){var f=this._get(n,"dateFormat"),r=n.lastVal=n.input?n.input.val():null,u=this._getDefaultDate(n),i=u,e=this._getFormatConfig(n);try{i=this.parseDate(f,r,e)||u}catch(o){r=t?"":r}n.selectedDay=i.getDate();n.drawMonth=n.selectedMonth=i.getMonth();n.drawYear=n.selectedYear=i.getFullYear();n.currentDay=r?i.getDate():0;n.currentMonth=r?i.getMonth():0;n.currentYear=r?i.getFullYear():0;this._adjustInstDate(n)}},_getDefaultDate:function(n){return this._restrictMinMax(n,this._determineDate(n,this._get(n,"defaultDate"),new Date))},_determineDate:function(t,i,r){var f=function(n){var t=new Date;return t.setDate(t.getDate()+n),t},e=function(i){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),i,n.datepicker._getFormatConfig(t))}catch(h){}for(var o=(i.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,f=o.getFullYear(),e=o.getMonth(),r=o.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(i);u;){switch(u[2]||"d"){case"d":case"D":r+=parseInt(u[1],10);break;case"w":case"W":r+=7*parseInt(u[1],10);break;case"m":case"M":e+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e));break;case"y":case"Y":f+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e))}u=s.exec(i)}return new Date(f,e,r)},u=null==i||""===i?r:"string"==typeof i?e(i):"number"==typeof i?isNaN(i)?r:f(i):new Date(i.getTime());return u=u&&"Invalid Date"==""+u?r:u,u&&(u.setHours(0),u.setMinutes(0),u.setSeconds(0),u.setMilliseconds(0)),this._daylightSavingAdjust(u)},_daylightSavingAdjust:function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},_setDate:function(n,t,i){var u=!t,f=n.selectedMonth,e=n.selectedYear,r=this._restrictMinMax(n,this._determineDate(n,t,new Date));n.selectedDay=n.currentDay=r.getDate();n.drawMonth=n.selectedMonth=n.currentMonth=r.getMonth();n.drawYear=n.selectedYear=n.currentYear=r.getFullYear();f===n.selectedMonth&&e===n.selectedYear||i||this._notifyChange(n);this._adjustInstDate(n);n.input&&n.input.val(u?"":this._formatDate(n))},_getDate:function(n){return!n.currentYear||n.input&&""===n.input.val()?null:this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay))},_attachHandlers:function(t){var r=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){n.datepicker._adjustDate(i,-r,"M")},next:function(){n.datepicker._adjustDate(i,+r,"M")},hide:function(){n.datepicker._hideDatepicker()},today:function(){n.datepicker._gotoToday(i)},selectDay:function(){return n.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return n.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return n.datepicker._selectMonthYear(i,this,"Y"),!1}};n(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(n){var b,s,rt,h,ut,k,ft,et,ri,c,ot,ui,fi,ei,oi,st,g,si,ht,nt,o,y,ct,p,lt,l,u,at,vt,yt,pt,tt,wt,i,bt,kt,d,a,it,dt=new Date,gt=this._daylightSavingAdjust(new Date(dt.getFullYear(),dt.getMonth(),dt.getDate())),f=this._get(n,"isRTL"),li=this._get(n,"showButtonPanel"),hi=this._get(n,"hideIfNoPrevNext"),ni=this._get(n,"navigationAsDateFormat"),e=this._getNumberOfMonths(n),ai=this._get(n,"showCurrentAtPos"),ci=this._get(n,"stepMonths"),ti=1!==e[0]||1!==e[1],ii=this._daylightSavingAdjust(n.currentDay?new Date(n.currentYear,n.currentMonth,n.currentDay):new Date(9999,9,9)),w=this._getMinMaxDate(n,"min"),v=this._getMinMaxDate(n,"max"),t=n.drawMonth-ai,r=n.drawYear;if(0>t&&(t+=12,r--),v)for(b=this._daylightSavingAdjust(new Date(v.getFullYear(),v.getMonth()-e[0]*e[1]+1,v.getDate())),b=w&&w>b?w:b;this._daylightSavingAdjust(new Date(r,t,1))>b;)t--,0>t&&(t=11,r--);for(n.drawMonth=t,n.drawYear=r,s=this._get(n,"prevText"),s=ni?this.formatDate(s,this._daylightSavingAdjust(new Date(r,t-ci,1)),this._getFormatConfig(n)):s,rt=this._canAdjustMonth(n,-1,r,t)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"e":"w")+"'>"+s+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"e":"w")+"'>"+s+"<\/span><\/a>",h=this._get(n,"nextText"),h=ni?this.formatDate(h,this._daylightSavingAdjust(new Date(r,t+ci,1)),this._getFormatConfig(n)):h,ut=this._canAdjustMonth(n,1,r,t)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"w":"e")+"'>"+h+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"w":"e")+"'>"+h+"<\/span><\/a>",k=this._get(n,"currentText"),ft=this._get(n,"gotoCurrent")&&n.currentDay?ii:gt,k=ni?this.formatDate(k,ft,this._getFormatConfig(n)):k,et=n.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(n,"closeText")+"<\/button>",ri=li?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(f?et:"")+(this._isInRange(n,ft)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+k+"<\/button>":"")+(f?"":et)+"<\/div>":"",c=parseInt(this._get(n,"firstDay"),10),c=isNaN(c)?0:c,ot=this._get(n,"showWeek"),ui=this._get(n,"dayNames"),fi=this._get(n,"dayNamesMin"),ei=this._get(n,"monthNames"),oi=this._get(n,"monthNamesShort"),st=this._get(n,"beforeShowDay"),g=this._get(n,"showOtherMonths"),si=this._get(n,"selectOtherMonths"),ht=this._getDefaultDate(n),nt="",y=0;e[0]>y;y++){for(ct="",this.maxRows=4,p=0;e[1]>p;p++){if(lt=this._daylightSavingAdjust(new Date(r,t,n.selectedDay)),l=" ui-corner-all",u="",ti){if(u+="<div class='ui-datepicker-group",e[1]>1)switch(p){case 0:u+=" ui-datepicker-group-first";l=" ui-corner-"+(f?"right":"left");break;case e[1]-1:u+=" ui-datepicker-group-last";l=" ui-corner-"+(f?"left":"right");break;default:u+=" ui-datepicker-group-middle";l=""}u+="'>"}for(u+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+l+"'>"+(/all|left/.test(l)&&0===y?f?ut:rt:"")+(/all|right/.test(l)&&0===y?f?rt:ut:"")+this._generateMonthYearHeader(n,t,r,w,v,y>0||p>0,ei,oi)+"<\/div><table class='ui-datepicker-calendar'><thead><tr>",at=ot?"<th class='ui-datepicker-week-col'>"+this._get(n,"weekHeader")+"<\/th>":"",o=0;7>o;o++)vt=(o+c)%7,at+="<th scope='col'"+((o+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+ui[vt]+"'>"+fi[vt]+"<\/span><\/th>";for(u+=at+"<\/tr><\/thead><tbody>",yt=this._getDaysInMonth(r,t),r===n.selectedYear&&t===n.selectedMonth&&(n.selectedDay=Math.min(n.selectedDay,yt)),pt=(this._getFirstDayOfMonth(r,t)-c+7)%7,tt=Math.ceil((pt+yt)/7),wt=ti?this.maxRows>tt?this.maxRows:tt:tt,this.maxRows=wt,i=this._daylightSavingAdjust(new Date(r,t,1-pt)),bt=0;wt>bt;bt++){for(u+="<tr>",kt=ot?"<td class='ui-datepicker-week-col'>"+this._get(n,"calculateWeek")(i)+"<\/td>":"",o=0;7>o;o++)d=st?st.apply(n.input?n.input[0]:null,[i]):[!0,""],a=i.getMonth()!==t,it=a&&!si||!d[0]||w&&w>i||v&&i>v,kt+="<td class='"+((o+c+6)%7>=5?" ui-datepicker-week-end":"")+(a?" ui-datepicker-other-month":"")+(i.getTime()===lt.getTime()&&t===n.selectedMonth&&n._keyEvent||ht.getTime()===i.getTime()&&ht.getTime()===lt.getTime()?" "+this._dayOverClass:"")+(it?" "+this._unselectableClass+" ui-state-disabled":"")+(a&&!g?"":" "+d[1]+(i.getTime()===ii.getTime()?" "+this._currentClass:"")+(i.getTime()===gt.getTime()?" ui-datepicker-today":""))+"'"+(a&&!g||!d[2]?"":" title='"+d[2].replace(/'/g,"&#39;")+"'")+(it?"":" data-handler='selectDay' data-event='click' data-month='"+i.getMonth()+"' data-year='"+i.getFullYear()+"'")+">"+(a&&!g?"&#xa0;":it?"<span class='ui-state-default'>"+i.getDate()+"<\/span>":"<a class='ui-state-default"+(i.getTime()===gt.getTime()?" ui-state-highlight":"")+(i.getTime()===ii.getTime()?" ui-state-active":"")+(a?" ui-priority-secondary":"")+"' href='#'>"+i.getDate()+"<\/a>")+"<\/td>",i.setDate(i.getDate()+1),i=this._daylightSavingAdjust(i);u+=kt+"<\/tr>"}t++;t>11&&(t=0,r++);u+="<\/tbody><\/table>"+(ti?"<\/div>"+(e[0]>0&&p===e[1]-1?"<div class='ui-datepicker-row-break'><\/div>":""):"");ct+=u}nt+=ct}return nt+=ri,n._keyEvent=!1,nt},_generateMonthYearHeader:function(n,t,i,r,u,f,e,o){var k,d,h,v,y,p,s,a,w=this._get(n,"changeMonth"),b=this._get(n,"changeYear"),g=this._get(n,"showMonthAfterYear"),c="<div class='ui-datepicker-title'>",l="";if(f||!w)l+="<span class='ui-datepicker-month'>"+e[t]+"<\/span>";else{for(k=r&&r.getFullYear()===i,d=u&&u.getFullYear()===i,l+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;12>h;h++)(!k||h>=r.getMonth())&&(!d||u.getMonth()>=h)&&(l+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+o[h]+"<\/option>");l+="<\/select>"}if(g||(c+=l+(!f&&w&&b?"":"&#xa0;")),!n.yearshtml)if(n.yearshtml="",f||!b)c+="<span class='ui-datepicker-year'>"+i+"<\/span>";else{for(v=this._get(n,"yearRange").split(":"),y=(new Date).getFullYear(),p=function(n){var t=n.match(/c[+\-].*/)?i+parseInt(n.substring(1),10):n.match(/[+\-].*/)?y+parseInt(n,10):parseInt(n,10);return isNaN(t)?y:t},s=p(v[0]),a=Math.max(s,p(v[1]||"")),s=r?Math.max(s,r.getFullYear()):s,a=u?Math.min(a,u.getFullYear()):a,n.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";a>=s;s++)n.yearshtml+="<option value='"+s+"'"+(s===i?" selected='selected'":"")+">"+s+"<\/option>";n.yearshtml+="<\/select>";c+=n.yearshtml;n.yearshtml=null}return c+=this._get(n,"yearSuffix"),g&&(c+=(!f&&w&&b?"":"&#xa0;")+l),c+"<\/div>"},_adjustInstDate:function(n,t,i){var u=n.selectedYear+("Y"===i?t:0),f=n.selectedMonth+("M"===i?t:0),e=Math.min(n.selectedDay,this._getDaysInMonth(u,f))+("D"===i?t:0),r=this._restrictMinMax(n,this._daylightSavingAdjust(new Date(u,f,e)));n.selectedDay=r.getDate();n.drawMonth=n.selectedMonth=r.getMonth();n.drawYear=n.selectedYear=r.getFullYear();("M"===i||"Y"===i)&&this._notifyChange(n)},_restrictMinMax:function(n,t){var i=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max"),u=i&&i>t?i:t;return r&&u>r?r:u},_notifyChange:function(n){var t=this._get(n,"onChangeMonthYear");t&&t.apply(n.input?n.input[0]:null,[n.selectedYear,n.selectedMonth+1,n])},_getNumberOfMonths:function(n){var t=this._get(n,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(n,t){return this._determineDate(n,this._get(n,t+"Date"),null)},_getDaysInMonth:function(n,t){return 32-this._daylightSavingAdjust(new Date(n,t,32)).getDate()},_getFirstDayOfMonth:function(n,t){return new Date(n,t,1).getDay()},_canAdjustMonth:function(n,t,i,r){var f=this._getNumberOfMonths(n),u=this._daylightSavingAdjust(new Date(i,r+(0>t?t:f[0]*f[1]),1));return 0>t&&u.setDate(this._getDaysInMonth(u.getFullYear(),u.getMonth())),this._isInRange(n,u)},_isInRange:function(n,t){var i,f,e=this._getMinMaxDate(n,"min"),o=this._getMinMaxDate(n,"max"),r=null,u=null,s=this._get(n,"yearRange");return s&&(i=s.split(":"),f=(new Date).getFullYear(),r=parseInt(i[0],10),u=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=f),i[1].match(/[+\-].*/)&&(u+=f)),(!e||t.getTime()>=e.getTime())&&(!o||t.getTime()<=o.getTime())&&(!r||t.getFullYear()>=r)&&(!u||u>=t.getFullYear())},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(n,"dayNamesShort"),dayNames:this._get(n,"dayNames"),monthNamesShort:this._get(n,"monthNamesShort"),monthNames:this._get(n,"monthNames")}},_formatDate:function(n,t,i,r){t||(n.currentDay=n.selectedDay,n.currentMonth=n.selectedMonth,n.currentYear=n.selectedYear);var u=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(r,i,t)):this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay));return this.formatDate(this._get(n,"dateFormat"),u,this._getFormatConfig(n))}});n.fn.datepicker=function(t){if(!this.length)return this;n.datepicker.initialized||(n(document).on("mousedown",n.datepicker._checkExternalClick),n.datepicker.initialized=!0);0===n("#"+n.datepicker._mainDivId).length&&n("body").append(n.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)}):n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i))};n.datepicker=new c;n.datepicker.initialized=!1;n.datepicker.uuid=(new Date).getTime();n.datepicker.version="1.12.1";n.datepicker;n.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=n(this).css(t).offset().top;0>i&&n(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle);this.options.disabled&&(this.options.disabled=!1);this._createWrapper();this.element.show().removeAttr("title").appendTo(this.uiDialog);this._addClass("ui-dialog-content","ui-widget-content");this._createTitlebar();this._createButtonPane();this.options.draggable&&n.fn.draggable&&this._makeDraggable();this.options.resizable&&n.fn.resizable&&this._makeResizable();this._isOpen=!1;this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?n(t):this.document.find(t||"body").eq(0)},_destroy:function(){var n,t=this.originalPosition;this._untrackInstance();this._destroyOverlay();this.element.removeUniqueId().css(this.originalCss).detach();this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);n=t.parent.children().eq(t.index);n.length&&n[0]!==this.element[0]?n.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:n.noop,enable:n.noop,close:function(t){var i=this;this._isOpen&&this._trigger("beforeClose",t)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||n.ui.safeBlur(n.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var r=!1,f=this.uiDialog.siblings(".ui-front:visible").map(function(){return+n(this).css("z-index")}).get(),u=Math.max.apply(null,f);return u>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",u+1),r=!0),r&&!i&&this._trigger("focus",t),r},open:function(){var t=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=n(n.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable();t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var n=this._focusedElement;n||(n=this.element.find("[autofocus]"));n.length||(n=this.element.find(":tabbable"));n.length||(n=this.uiDialogButtonPane.find(":tabbable"));n.length||(n=this.uiDialogTitlebarClose.filter(":tabbable"));n.length||(n=this.uiDialog);n.eq(0).trigger("focus")},_keepFocus:function(t){function i(){var t=n.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===t||n.contains(this.uiDialog[0],t);i||this._focusTabbable()}t.preventDefault();i.call(this);this._delay(i)},_createWrapper:function(){this.uiDialog=n("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front");this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===n.ui.keyCode.ESCAPE)return t.preventDefault(),this.close(t),void 0;if(t.keyCode===n.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),r=i.filter(":first"),u=i.filter(":last");t.target!==u[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==r[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){u.trigger("focus")}),t.preventDefault()):(this._delay(function(){r.trigger("focus")}),t.preventDefault())}},mousedown:function(n){this._moveToTop(n)&&this._focusTabbable()}});this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=n("<div>");this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix");this._on(this.uiDialogTitlebar,{mousedown:function(t){n(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}});this.uiDialogTitlebarClose=n("<button type='button'><\/button>").button({label:n("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar);this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close");this._on(this.uiDialogTitlebarClose,{click:function(n){n.preventDefault();this.close(n)}});t=n("<span>").uniqueId().prependTo(this.uiDialogTitlebar);this._addClass(t,"ui-dialog-title");this._title(t);this.uiDialogTitlebar.prependTo(this.uiDialog);this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(n){this.options.title?n.text(this.options.title):n.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=n("<div>");this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix");this.uiButtonSet=n("<div>").appendTo(this.uiDialogButtonPane);this._addClass(this.uiButtonSet,"ui-dialog-buttonset");this._createButtons()},_createButtons:function(){var i=this,t=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),n.isEmptyObject(t)||n.isArray(t)&&!t.length?(this._removeClass(this.uiDialog,"ui-dialog-buttons"),void 0):(n.each(t,function(t,r){var u,f;r=n.isFunction(r)?{click:r,text:t}:r;r=n.extend({type:"button"},r);u=r.click;f={icon:r.icon,iconPosition:r.iconPosition,showLabel:r.showLabel,icons:r.icons,text:r.text};delete r.click;delete r.icon;delete r.iconPosition;delete r.showLabel;delete r.icons;"boolean"==typeof r.text&&delete r.text;n("<button><\/button>",r).button(f).appendTo(i.uiButtonSet).on("click",function(){u.apply(i.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function i(n){return{position:n.position,offset:n.offset}}var t=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(r,u){t._addClass(n(this),"ui-dialog-dragging");t._blockFrames();t._trigger("dragStart",r,i(u))},drag:function(n,r){t._trigger("drag",n,i(r))},stop:function(u,f){var e=f.offset.left-t.document.scrollLeft(),o=f.offset.top-t.document.scrollTop();r.position={my:"left top",at:"left"+(e>=0?"+":"")+e+" top"+(o>=0?"+":"")+o,of:t.window};t._removeClass(n(this),"ui-dialog-dragging");t._unblockFrames();t._trigger("dragStop",u,i(f))}})},_makeResizable:function(){function r(n){return{originalPosition:n.originalPosition,originalSize:n.originalSize,position:n.position,size:n.size}}var t=this,i=this.options,u=i.resizable,f=this.uiDialog.css("position"),e="string"==typeof u?u:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:e,start:function(i,u){t._addClass(n(this),"ui-dialog-resizing");t._blockFrames();t._trigger("resizeStart",i,r(u))},resize:function(n,i){t._trigger("resize",n,r(i))},stop:function(u,f){var e=t.uiDialog.offset(),o=e.left-t.document.scrollLeft(),s=e.top-t.document.scrollTop();i.height=t.uiDialog.height();i.width=t.uiDialog.width();i.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(s>=0?"+":"")+s,of:t.window};t._removeClass(n(this),"ui-dialog-resizing");t._unblockFrames();t._trigger("resizeStop",u,r(f))}}).css("position",f)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget();this._focusedElement=n(t.target)}})},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=n.inArray(this,t);-1!==i&&t.splice(i,1)},_trackingInstances:function(){var n=this.document.data("ui-dialog-instances");return n||(n=[],this.document.data("ui-dialog-instances",n)),n},_minHeight:function(){var n=this.options;return"auto"===n.height?n.minHeight:Math.min(n.minHeight,n.height)},_position:function(){var n=this.uiDialog.is(":visible");n||this.uiDialog.show();this.uiDialog.position(this.options.position);n||this.uiDialog.hide()},_setOptions:function(t){var i=this,r=!1,u={};n.each(t,function(n,t){i._setOption(n,t);n in i.sizeRelatedOptions&&(r=!0);n in i.resizableRelatedOptions&&(u[n]=t)});r&&(this._size(),this._position());this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",u)},_setOption:function(t,i){var f,u,r=this.uiDialog;"disabled"!==t&&(this._super(t,i),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:n("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&(f=r.is(":data(ui-draggable)"),f&&!i&&r.draggable("destroy"),!f&&i&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&(u=r.is(":data(ui-resizable)"),u&&!i&&r.resizable("destroy"),u&&"string"==typeof i&&r.resizable("option","handles",i),u||i===!1||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,i,r,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});n.minWidth>n.width&&(n.width=n.minWidth);t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight();i=Math.max(0,n.minHeight-t);r="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none";"auto"===n.height?this.element.css({minHeight:i,maxHeight:r,height:"auto"}):this.element.height(Math.max(0,n.height-t));this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=n(this);return n("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return n(t.target).closest(".ui-dialog").length?!0:!!n(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1});this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(n){t||this._allowInteraction(n)||(n.preventDefault(),this._trackingInstances()[0]._focusTabbable())}});this.overlay=n("<div>").appendTo(this._appendTo());this._addClass(this.overlay,null,"ui-widget-overlay ui-front");this._on(this.overlay,{mousedown:"_keepFocus"});this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var n=this.document.data("ui-dialog-overlays")-1;n?this.document.data("ui-dialog-overlays",n):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays"));this.overlay.remove();this.overlay=null}}});n.uiBackCompat!==!1&&n.widget("ui.dialog",n.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super();this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(n,t){"dialogClass"===n&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t);this._superApply(arguments)}});n.ui.dialog;n.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.attr({role:"progressbar","aria-valuemin":this.min});this._addClass("ui-progressbar","ui-widget ui-widget-content");this.valueDiv=n("<div>").appendTo(this.element);this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header");this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow");this.valueDiv.remove()},value:function(n){return void 0===n?this.options.value:(this.options.value=this._constrainedValue(n),this._refreshValue(),void 0)},_constrainedValue:function(n){return void 0===n&&(n=this.options.value),this.indeterminate=n===!1,"number"!=typeof n&&(n=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,n))},_setOptions:function(n){var t=n.value;delete n.value;this._super(n);this.options.value=this._constrainedValue(t);this._refreshValue()},_setOption:function(n,t){"max"===n&&(t=Math.max(this.min,t));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(i.toFixed(0)+"%");this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate);this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=n("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null));this.oldValue!==t&&(this.oldValue=t,this._trigger("change"));t===this.options.max&&this._trigger("complete")}});n.widget("ui.selectmenu",[n.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"};this._drawButton();this._drawMenu();this._bindFormResetHandler();this._rendered=!1;this.menuItems=n()},_drawButton:function(){var t,i=this,r=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button);this._on(this.labels,{click:function(n){this.button.focus();n.preventDefault()}});this.element.hide();this.button=n("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element);this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget");t=n("<span>").appendTo(this.button);this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button);this.buttonItem=this._renderButtonItem(r).appendTo(this.button);this.options.width!==!1&&this._resizeButton();this._on(this.button,this._buttonEvents);this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var t=this;this.menu=n("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu});this.menuWrap=n("<div>").append(this.menu);this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front");this.menuWrap.appendTo(this._appendTo());this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(n,i){n.preventDefault();t._setSelection();t._select(i.item.data("ui-selectmenu-item"),n)},focus:function(n,i){var r=i.item.data("ui-selectmenu-item");null!=t.focusIndex&&r.index!==t.focusIndex&&(t._trigger("focus",n,{item:r}),t.isOpen||t._select(r,n));t.focusIndex=r.index;t.button.attr("aria-activedescendant",t.menuItems.eq(r.index).attr("id"))}}).menu("instance");this.menuInstance._off(this.menu,"mouseleave");this.menuInstance._closeOnDocumentClick=function(){return!1};this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu();this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{}));null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var n,t=this.element.find("option");this.menu.empty();this._parseOptions(t);this._renderMenu(this.menu,this.items);this.menuInstance.refresh();this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper");this._rendered=!0;t.length&&(n=this._getSelectedItem(),this.menuInstance.focus(null,n),this._setAria(n.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(n){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",n)))},_position:function(){this.menuWrap.position(n.extend({of:this.button},this.options.position))},close:function(n){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",n))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var i=n("<span>");return this._setText(i,t.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(t,i){var r=this,u="";n.each(i,function(i,f){var e;f.optgroup!==u&&(e=n("<li>",{text:f.optgroup}),r._addClass(e,"ui-selectmenu-optgroup","ui-menu-divider"+(f.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),e.appendTo(t),u=f.optgroup);r._renderItemData(t,f)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var r=n("<li>"),u=n("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(r,null,"ui-state-disabled"),this._setText(u,i.label),r.append(u).appendTo(t)},_setText:function(n,t){t?n.text(t):n.html("&#160;")},_move:function(n,t){var i,r,u=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),u+=":not(.ui-state-disabled)");r="first"===n||"last"===n?i["first"===n?"prevAll":"nextAll"](u).eq(-1):i[n+"All"](u).eq(0);r.length&&this.menuInstance.focus(t,r)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(n){this[this.isOpen?"close":"open"](n)},_setSelection:function(){var n;this.range&&(window.getSelection?(n=window.getSelection(),n.removeAllRanges(),n.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(n(t.target).closest(".ui-selectmenu-menu, #"+n.ui.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var n;window.getSelection?(n=window.getSelection(),n.rangeCount&&(this.range=n.getRangeAt(0))):this.range=document.selection.createRange()},click:function(n){this._setSelection();this._toggle(n)},keydown:function(t){var i=!0;switch(t.keyCode){case n.ui.keyCode.TAB:case n.ui.keyCode.ESCAPE:this.close(t);i=!1;break;case n.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case n.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case n.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case n.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case n.ui.keyCode.LEFT:this._move("prev",t);break;case n.ui.keyCode.RIGHT:this._move("next",t);break;case n.ui.keyCode.HOME:case n.ui.keyCode.PAGE_UP:this._move("first",t);break;case n.ui.keyCode.END:case n.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t);i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(n){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),n)},_select:function(n,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=n.index;this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(n));this._setAria(n);this._trigger("select",t,{item:n});n.index!==i&&this._trigger("change",t,{item:n});this.close(t)},_setAria:function(n){var t=this.menuItems.eq(n.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t});this.menu.attr("aria-activedescendant",t)},_setOption:function(n,t){if("icons"===n){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)}this._super(n,t);"appendTo"===n&&this.menuWrap.appendTo(this._appendTo());"width"===n&&this._resizeButton()},_setOptionDisabled:function(n){this._super(n);this.menuInstance.option("disabled",n);this.button.attr("aria-disabled",n);this._toggleClass(this.button,null,"ui-state-disabled",n);this.element.prop("disabled",n);n?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen);this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen);this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var n=this.options.width;return n===!1?(this.button.css("width",""),void 0):(null===n&&(n=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(n),void 0)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var n=this._super();return n.disabled=this.element.prop("disabled"),n},_parseOptions:function(t){var r=this,i=[];t.each(function(t,u){i.push(r._parseOption(n(u),t))});this.items=i},_parseOption:function(n,t){var i=n.parent("optgroup");return{element:n,index:t,value:n.val(),label:n.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||n.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler();this.menuWrap.remove();this.button.remove();this.element.show();this.element.removeUniqueId();this.labels.attr("for",this.ids.element)}}]);n.widget("ui.slider",n.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1;this._mouseSliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content");this._refresh();this._animateOff=!1},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var r,i,u=this.options,t=this.element.find(".ui-slider-handle"),f=[];for(i=u.values&&u.values.length||1,t.length>i&&(t.slice(i).remove(),t=t.slice(0,i)),r=t.length;i>r;r++)f.push("<span tabindex='0'><\/span>");this.handles=t.add(n(f.join("")).appendTo(this.element));this._addClass(this.handles,"ui-slider-handle","ui-state-default");this.handle=this.handles.eq(0);this.handles.each(function(t){n(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(t.range===!0&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:n.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=n("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===t.range||"max"===t.range)&&this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();this.range&&this.range.remove();this._mouseDestroy()},_mouseCapture:function(t){var s,f,r,i,u,h,e,c,o=this,l=this.options;return l.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),s={x:t.pageX,y:t.pageY},f=this._normValueFromMouse(s),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(f-o.values(t));(r>e||r===e&&(t===o._lastChangedValue||o.values(t)===l.min))&&(r=e,i=n(this),u=t)}),h=this._start(t,u),h===!1?!1:(this._mouseSliding=!0,this._handleIndex=u,this._addClass(i,null,"ui-state-active"),i.trigger("focus"),e=i.offset(),c=!n(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-e.left-i.width()/2,top:t.pageY-e.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,u,f),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return"horizontal"===this.orientation?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),0>t&&(t=0),"vertical"===this.orientation&&(t=1-t),u=this._valueMax()-this._valueMin(),f=this._valueMin()+t*u,this._trimAlignValue(f)},_uiHash:function(n,t,i){var r={handle:this.handles[n],handleIndex:n,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==t?t:this.values(n),r.values=i||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(n,t){return this._trigger("start",n,this._uiHash(t))},_slide:function(n,t,i){var u,r,f=this.value(),e=this.values();this._hasMultipleValues()&&(r=this.values(t?0:1),f=this.values(t),2===this.options.values.length&&this.options.range===!0&&(i=0===t?Math.min(r,i):Math.max(r,i)),e[t]=i);i!==f&&(u=this._trigger("slide",n,this._uiHash(t,i,e)),u!==!1&&(this._hasMultipleValues()?this.values(t,i):this.value(i)))},_stop:function(n,t){this._trigger("stop",n,this._uiHash(t))},_change:function(n,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",n,this._uiHash(t)))},value:function(n){return arguments.length?(this.options.value=this._trimAlignValue(n),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(t,i){var u,f,r;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),this._change(null,t),void 0;if(!arguments.length)return this._values();if(!n.isArray(arguments[0]))return this._hasMultipleValues()?this._values(t):this.value();for(u=this.options.values,f=arguments[0],r=0;u.length>r;r+=1)u[r]=this._trimAlignValue(f[r]),this._change(null,r);this._refreshValue()},_setOption:function(t,i){var r,u=0;switch("range"===t&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),n.isArray(this.options.values)&&(u=this.options.values.length),this._super(t,i),t){case"orientation":this._detectOrientation();this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation);this._refreshValue();this.options.range&&this._refreshRange(i);this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=u-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0;this._calculateNewMax();this._refreshValue();this._animateOff=!1;break;case"range":this._animateOff=!0;this._refresh();this._animateOff=!1}},_setOptionDisabled:function(n){this._super(n);this._toggleClass(null,"ui-state-disabled",!!n)},_value:function(){var n=this.options.value;return this._trimAlignValue(n)},_values:function(n){var r,t,i;if(arguments.length)return r=this.options.values[n],r=this._trimAlignValue(r);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;t.length>i;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(this._valueMin()>=n)return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(n-this._valueMin())%t,r=n-i;return 2*Math.abs(i)>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var n=this.options.max,i=this._valueMin(),t=this.options.step,r=Math.round((n-i)/t)*t;n=r+i;n>this.options.max&&(n-=t);this.max=parseFloat(n.toFixed(this._precision()))},_precision:function(){var n=this._precisionOf(this.options.step);return null!==this.options.min&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=""+n,i=t.indexOf(".");return-1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(n){"vertical"===n&&this.range.css({width:"",left:""});"horizontal"===n&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var s,t,c,f,h,e=this.options.range,i=this.options,r=this,u=this._animateOff?!1:i.animate,o={};this._hasMultipleValues()?this.handles.each(function(f){t=100*((r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin()));o["horizontal"===r.orientation?"left":"bottom"]=t+"%";n(this).stop(1,1)[u?"animate":"css"](o,i.animate);r.options.range===!0&&("horizontal"===r.orientation?(0===f&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),1===f&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(0===f&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),1===f&&r.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:i.animate})));s=t}):(c=this.value(),f=this._valueMin(),h=this._valueMax(),t=h!==f?100*((c-f)/(h-f)):0,o["horizontal"===this.orientation?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),"min"===e&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),"max"===e&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-t+"%"},i.animate),"min"===e&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),"max"===e&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-t+"%"},i.animate))},_handleEvents:{keydown:function(t){var e,r,i,u,f=n(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(n(t.target),null,"ui-state-active"),e=this._start(t,f),e===!1))return}switch(u=this.options.step,r=i=this._hasMultipleValues()?this.values(f):this.value(),t.keyCode){case n.ui.keyCode.HOME:i=this._valueMin();break;case n.ui.keyCode.END:i=this._valueMax();break;case n.ui.keyCode.PAGE_UP:i=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(r===this._valueMax())return;i=this._trimAlignValue(r+u);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(r===this._valueMin())return;i=this._trimAlignValue(r-u)}this._slide(t,f,i)},keyup:function(t){var i=n(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(n(t.target),null,"ui-state-active"))}}});n.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);""!==this.value()&&this._value(this.element.val(),!0);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),i=this.element;return n.each(["min","max","step"],function(n,r){var u=i.attr(r);null!=u&&u.length&&(t[r]=u)}),t},_events:{keydown:function(n){this._start(n)&&this._keydown(n)&&n.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(n){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",n),void 0)},mousewheel:function(n,t){if(t){if(!this.spinning&&!this._start(n))return!1;this._spin((t>0?1:-1)*this.options.step,n);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(n)},100);n.preventDefault()}},"mousedown .ui-spinner-button":function(t){function r(){var t=this.element[0]===n.ui.safeActiveElement(this.document[0]);t||(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}var i;i=this.element[0]===n.ui.safeActiveElement(this.document[0])?this.previous:this.element.val();t.preventDefault();r.call(this);this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur;r.call(this)});this._start(t)!==!1&&this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(n(t.currentTarget).hasClass("ui-state-active"))return this._start(t)===!1?!1:(this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t),void 0)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a><\/a><a><\/a>")},_draw:function(){this._enhance();this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content");this._addClass("ui-spinner-input");this.element.attr("role","spinbutton");this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}});this._removeClass(this.buttons,"ui-corner-all");this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up");this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down");this.buttons.first().button({icon:this.options.icons.up,showLabel:!1});this.buttons.last().button({icon:this.options.icons.down,showLabel:!1});this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var r=this.options,i=n.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,r.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-r.page,t),!0}return!1},_start:function(n){return this.spinning||this._trigger("start",n)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(n,t,i){n=n||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,t,i)},n);this._spin(t*this.options.step,i)},_spin:function(n,t){var i=this.value()||0;this.counter||(this.counter=1);i=this._adjustValue(i+n*this._increment(this.counter));this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?n.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var n=this._precisionOf(this.options.step);return null!==this.options.min&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=""+n,i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(n){var r,i,t=this.options;return r=null!==t.min?t.min:0,i=n-r,i=Math.round(i/t.step)*t.step,n=r+i,n=parseFloat(n.toFixed(this._precision())),null!==t.max&&n>t.max?t.max:null!==t.min&&t.min>n?t.min:n},_stop:function(n){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",n))},_setOption:function(n,t){var u,i,r;return"culture"===n||"numberFormat"===n?(u=this._parse(this.element.val()),this.options[n]=t,this.element.val(this._format(u)),void 0):(("max"===n||"min"===n||"step"===n)&&"string"==typeof t&&(t=this._parse(t)),"icons"===n&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,t.up),r=this.buttons.last().find(".ui-icon"),this._removeClass(r,null,this.options.icons.down),this._addClass(r,null,t.down)),this._super(n,t),void 0)},_setOptionDisabled:function(n){this._super(n);this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!n);this.element.prop("disabled",!!n);this.buttons.button(n?"disable":"enable")},_setOptions:t(function(n){this._super(n)}),_parse:function(n){return"string"==typeof n&&""!==n&&(n=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(n,10,this.options.culture):+n),""===n||isNaN(n)?null:n},_format:function(n){return""===n?"":window.Globalize&&this.options.numberFormat?Globalize.format(n,this.options.numberFormat,this.options.culture):n},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var n=this.value();return null===n?!1:n===this._adjustValue(n)},_value:function(n,t){var i;""!==n&&(i=this._parse(n),null!==i&&(t||(i=this._adjustValue(i)),n=this._format(i)));this.element.val(n);this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:t(function(n){this._stepUp(n)}),_stepUp:function(n){this._start()&&(this._spin((n||1)*this.options.step),this._stop())},stepDown:t(function(n){this._stepDown(n)}),_stepDown:function(n){this._start()&&(this._spin((n||1)*-this.options.step),this._stop())},pageUp:t(function(n){this._stepUp((n||1)*this.options.page)}),pageDown:t(function(n){this._stepDown((n||1)*this.options.page)}),value:function(n){return arguments.length?(t(this._value).call(this,n),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}});n.uiBackCompat!==!1&&n.widget("ui.spinner",n.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a><\/a><a><\/a>"}});n.ui.spinner;n.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var n=/#.*$/;return function(t){var i,r;i=t.href.replace(n,"");r=location.href.replace(n,"");try{i=decodeURIComponent(i)}catch(u){}try{r=decodeURIComponent(r)}catch(u){}return t.hash.length>1&&i===r}}(),_create:function(){var i=this,t=this.options;this.running=!1;this._addClass("ui-tabs","ui-widget ui-widget-content");this._toggleClass("ui-tabs-collapsible",null,t.collapsible);this._processTabs();t.active=this._initialActive();n.isArray(t.disabled)&&(t.disabled=n.unique(t.disabled.concat(n.map(this.tabs.filter(".ui-state-disabled"),function(n){return i.tabs.index(n)}))).sort());this.active=this.options.active!==!1&&this.anchors.length?this._findActive(t.active):n();this._refresh();this.active.length&&this.load(t.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,r=location.hash.substring(1);return null===t&&(r&&this.tabs.each(function(i,u){if(n(u).attr("aria-controls")===r)return(t=i,!1)}),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===t||-1===t)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),-1===t&&(t=i?!1:0)),!i&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):n()}},_tabKeydown:function(t){var r=n(n.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(r),u=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:i++;break;case n.ui.keyCode.UP:case n.ui.keyCode.LEFT:u=!1;i--;break;case n.ui.keyCode.END:i=this.anchors.length-1;break;case n.ui.keyCode.HOME:i=0;break;case n.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),this._activate(i),void 0;case n.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),this._activate(i===this.options.active?!1:i),void 0;default:return}t.preventDefault();clearTimeout(this.activating);i=this._focusNextTab(i,u);t.ctrlKey||t.metaKey||(r.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===n.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===n.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===n.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function u(){return t>r&&(t=0),0>t&&(t=r),t}for(var r=this.tabs.length-1;-1!==n.inArray(u(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(n,t){return n=this._findNextTab(n,t),this.tabs.eq(n).trigger("focus"),n},_setOption:function(n,t){return"active"===n?(this._activate(t),void 0):(this._super(n,t),"collapsible"===n&&(this._toggleClass("ui-tabs-collapsible",null,t),t||this.options.active!==!1||this._activate(0)),"event"===n&&this._setupEvents(t),"heightStyle"===n&&this._setupHeightStyle(t),void 0)},_sanitizeSelector:function(n){return n?n.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=n.map(i.filter(".ui-state-disabled"),function(n){return i.index(n)});this._processTabs();t.active!==!1&&this.anchors.length?this.active.length&&!n.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=n()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=n());this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"});this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,r=this.anchors,u=this.panels;this.tablist=this._getList().attr("role","tablist");this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header");this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){n(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){n(this).closest("li").is(".ui-state-disabled")&&this.blur()});this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1});this._addClass(this.tabs,"ui-tabs-tab","ui-state-default");this.anchors=this.tabs.map(function(){return n("a",this)[0]}).attr({role:"presentation",tabIndex:-1});this._addClass(this.anchors,"ui-tabs-anchor");this.panels=n();this.anchors.each(function(i,r){var f,u,e,s=n(r).uniqueId().attr("id"),o=n(r).closest("li"),h=o.attr("aria-controls");t._isLocal(r)?(f=r.hash,e=f.substring(1),u=t.element.find(t._sanitizeSelector(f))):(e=o.attr("aria-controls")||n({}).uniqueId()[0].id,f="#"+e,u=t.element.find(f),u.length||(u=t._createPanel(e),u.insertAfter(t.panels[i-1]||t.tablist)),u.attr("aria-live","polite"));u.length&&(t.panels=t.panels.add(u));h&&o.data("ui-tabs-aria-controls",h);o.attr({"aria-controls":e,"aria-labelledby":s});u.attr("aria-labelledby",s)});this.panels.attr("role","tabpanel");this._addClass(this.panels,"ui-tabs-panel","ui-widget-content");i&&(this._off(i.not(this.tabs)),this._off(r.not(this.anchors)),this._off(u.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return n("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,u,r;for(n.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),r=0;u=this.tabs[r];r++)i=n(u),t===!0||-1!==n.inArray(r,t)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t;this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,t===!0)},_setupEvents:function(t){var i={};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(!0,this.anchors,{click:function(n){n.preventDefault()}});this._on(this.anchors,i);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,r=this.element.parent();"fill"===t?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=n(this),r=t.css("position");"absolute"!==r&&"fixed"!==r&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=n(this).outerHeight(!0)}),this.panels.each(function(){n(this).height(Math.max(0,i-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,n(this).height("").height())}).height(i))},_eventHandler:function(t){var u=this.options,r=this.active,c=n(t.currentTarget),i=c.closest("li"),f=i[0]===r[0],e=f&&u.collapsible,o=e?n():this._getPanelForTab(i),s=r.length?this._getPanelForTab(r):n(),h={oldTab:r,oldPanel:s,newTab:e?n():i,newPanel:o};t.preventDefault();i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||f&&!u.collapsible||this._trigger("beforeActivate",t,h)===!1||(u.active=e?!1:this.tabs.index(i),this.active=f?n():i,this.xhr&&this.xhr.abort(),s.length||o.length||n.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(i),t),this._toggle(t,h))},_toggle:function(t,i){function e(){r.running=!1;r._trigger("activate",t,i)}function o(){r._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active");u.length&&r.options.show?r._show(u,r.options.show,e):(u.show(),e())}var r=this,u=i.newPanel,f=i.oldPanel;this.running=!0;f.length&&this.options.hide?this._hide(f,this.options.hide,function(){r._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active");o()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),f.hide(),o());f.attr("aria-hidden","true");i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"});u.length&&f.length?i.oldTab.attr("tabIndex",-1):u.length&&this.tabs.filter(function(){return 0===n(this).attr("tabIndex")}).attr("tabIndex",-1);u.attr("aria-hidden","false");i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var r,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),r=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:r,currentTarget:r,preventDefault:n.noop}))},_findActive:function(t){return t===!1?n():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+n.ui.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort();this.tablist.removeAttr("role").off(this.eventNamespace);this.anchors.removeAttr("role tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){n.data(this,"ui-tabs-destroy")?n(this).remove():n(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")});this.tabs.each(function(){var t=n(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")});this.panels.show();"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;i!==!1&&(void 0===t?i=!1:(t=this._getIndex(t),i=n.isArray(i)?n.map(i,function(n){return n!==t?n:null}):n.map(this.tabs,function(n,i){return i!==t?i:null})),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(i!==!0){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==n.inArray(t,i))return;i=n.isArray(i)?n.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){t=this._getIndex(t);var r=this,u=this.tabs.eq(t),e=u.find(".ui-tabs-anchor"),f=this._getPanelForTab(u),o={tab:u,panel:f},s=function(n,t){"abort"===t&&r.panels.stop(!1,!0);r._removeClass(u,"ui-tabs-loading");f.removeAttr("aria-busy");n===r.xhr&&delete r.xhr};this._isLocal(e[0])||(this.xhr=n.ajax(this._ajaxSettings(e,i,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(u,"ui-tabs-loading"),f.attr("aria-busy","true"),this.xhr.done(function(n,t,u){setTimeout(function(){f.html(n);r._trigger("load",i,o);s(u,t)},1)}).fail(function(n,t){setTimeout(function(){s(n,t)},1)})))},_ajaxSettings:function(t,i,r){var u=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,f){return u._trigger("beforeLoad",i,n.extend({jqXHR:t,ajaxSettings:f},r))}}},_getPanelForTab:function(t){var i=n(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}});n.uiBackCompat!==!1&&n.widget("ui.tabs",n.ui.tabs,{_processTabs:function(){this._superApply(arguments);this._addClass(this.tabs,"ui-tab")}});n.ui.tabs;n.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=n(this).attr("title")||"";return n("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var r=(t.attr("aria-describedby")||"").split(/\s+/);r.push(i);t.data("ui-tooltip-id",i).attr("aria-describedby",n.trim(r.join(" ")))},_removeDescribedBy:function(t){var u=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),r=n.inArray(u,i);-1!==r&&i.splice(r,1);t.removeData("ui-tooltip-id");i=n.trim(i.join(" "));i?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};this.liveRegion=n("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this.disabledTitles=n([])},_setOption:function(t,i){var r=this;this._super(t,i);"content"===t&&n.each(this.tooltips,function(n,t){r._updateContent(t.element)})},_setOptionDisabled:function(n){this[n?"_disable":"_enable"]()},_disable:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r.element[0];t.close(u,!0)});this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=n(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=n(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))});this.disabledTitles=n([])},open:function(t){var r=this,i=n(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each(function(){var i,t=n(this);t.data("ui-tooltip-open")&&(i=n.Event("blur"),i.target=i.currentTarget=this,r.close(i,!0));t.attr("title")&&(t.uniqueId(),r.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(n,t){var r,i=this.options.content,u=this,f=t?t.type:null;return"string"==typeof i||i.nodeType||i.jquery?this._open(t,n,i):(r=i.call(n[0],function(i){u._delay(function(){n.data("ui-tooltip-open")&&(t&&(t.type=f),this._open(t,n,i))})}),r&&this._open(t,n,r),void 0)},_open:function(t,i,r){function o(n){s.of=n;u.is(":hidden")||u.position(s)}var f,u,h,e,s=n.extend({},this.options.position);if(r){if(f=this._find(i))return f.tooltip.find(".ui-tooltip-content").html(r),void 0;i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title"));f=this._tooltip(i);u=f.tooltip;this._addDescribedBy(i,u.attr("id"));u.find(".ui-tooltip-content").html(r);this.liveRegion.children().hide();e=n("<div>").html(u.find(".ui-tooltip-content").html());e.removeAttr("name").find("[name]").removeAttr("name");e.removeAttr("id").find("[id]").removeAttr("id");e.appendTo(this.liveRegion);this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:o}),o(t)):u.position(n.extend({of:i},this.options.position));u.hide();this._show(u,this.options.show);this.options.track&&this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){u.is(":visible")&&(o(s.of),clearInterval(h))},n.fx.interval));this._trigger("open",t,{tooltip:u})}},_registerCloseHandlers:function(t,i){var r={keyup:function(t){if(t.keyCode===n.ui.keyCode.ESCAPE){var r=n.Event(t);r.currentTarget=i[0];this.close(r,!0)}}};i[0]!==this.element[0]&&(r.remove=function(){this._removeTooltip(this._find(i).tooltip)});t&&"mouseover"!==t.type||(r.mouseleave="close");t&&"focusin"!==t.type||(r.focusout="close");this._on(!0,i,r)},close:function(t){var u,f=this,i=n(t?t.currentTarget:this.element),r=this._find(i);return r?(u=r.tooltip,r.closing||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),r.hiding=!0,u.stop(!0),this._hide(u,this.options.hide,function(){f._removeTooltip(n(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&n.each(this.parents,function(t,i){n(i.element).attr("title",i.title);delete f.parents[t]}),r.closing=!0,this._trigger("close",t,{tooltip:u}),r.hiding||(r.closing=!1)),void 0):(i.removeData("ui-tooltip-open"),void 0)},_tooltip:function(t){var i=n("<div>").attr("role","tooltip"),r=n("<div>").appendTo(i),u=i.uniqueId().attr("id");return this._addClass(r,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[u]={element:t,tooltip:i}},_find:function(n){var t=n.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(n){n.remove();delete this.tooltips[n.attr("id")]},_appendTo:function(n){var t=n.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;n.each(this.tooltips,function(i,r){var f=n.Event("blur"),u=r.element;f.target=f.currentTarget=u[0];t.close(f,!0);n("#"+i).remove();u.data("ui-tooltip-title")&&(u.attr("title")||u.attr("title",u.data("ui-tooltip-title")),u.removeData("ui-tooltip-title"))});this.liveRegion.remove()}});n.uiBackCompat!==!1&&n.widget("ui.tooltip",n.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var n=this._superApply(arguments);return this.options.tooltipClass&&n.tooltip.addClass(this.options.tooltipClass),n}});n.ui.tooltip;var e="ui-effects-",s="ui-effects-style",h="ui-effects-animated",p=n;n.effects={effect:{}},function(n,t){function f(n,t,i){var r=h[t.type]||{};return null==n?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n)?t.def:r.mod?(n+r.mod)%r.mod:0>n?0:n>r.max?r.max:n)}function s(f){var o=i(),s=o._rgba=[];return f=f.toLowerCase(),r(v,function(n,i){var r,h=i.re.exec(f),c=h&&i.parse(h),e=i.space||"rgba";return c?(r=o[e](c),o[u[e].cache]=r[u[e].cache],s=o._rgba=r._rgba,!1):t}),s.length?("0,0,0,0"===s.join()&&n.extend(s,e.transparent),o):e[f]}function o(n,t,i){return i=(i+1)%1,1>6*i?n+6*(t-n)*i:1>2*i?t:2>3*i?n+6*(t-n)*(2/3-i):n}var e,a=/^([\-+])=\s*(\d+\.?\d*)/,v=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[2.55*n[1],2.55*n[2],2.55*n[3],n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],i=n.Color=function(t,i,r,u){return new n.Color.fn.parse(t,i,r,u)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=i.support={},l=n("<p>")[0],r=n.each;l.style.cssText="background-color:rgba(1,1,1,.5)";c.rgba=l.style.backgroundColor.indexOf("rgba")>-1;r(u,function(n,t){t.cache="_"+n;t.props.alpha={idx:3,type:"percent",def:1}});i.fn=n.extend(i.prototype,{parse:function(o,h,c,l){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=n(o).css(h),h=t);var a=this,v=n.type(o),y=this._rgba=[];return h!==t&&(o=[o,h,c,l],v="array"),"string"===v?this.parse(s(o)||e._default):"array"===v?(r(u.rgba.props,function(n,t){y[t.idx]=f(o[t.idx],t)}),this):"object"===v?(o instanceof i?r(u,function(n,t){o[t.cache]&&(a[t.cache]=o[t.cache].slice())}):r(u,function(t,i){var u=i.cache;r(i.props,function(n,t){if(!a[u]&&i.to){if("alpha"===n||null==o[n])return;a[u]=i.to(a._rgba)}a[u][t.idx]=f(o[n],t,!0)});a[u]&&0>n.inArray(null,a[u].slice(0,3))&&(a[u][3]=1,i.from&&(a._rgba=i.from(a[u])))}),this):t},is:function(n){var o=i(n),f=!0,e=this;return r(u,function(n,i){var s,u=o[i.cache];return u&&(s=e[i.cache]||i.to&&i.to(e._rgba)||[],r(i.props,function(n,i){return null!=u[i.idx]?f=u[i.idx]===s[i.idx]:t})),f}),f},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,t){var e=i(n),c=e._space(),o=u[c],l=0===this.alpha()?i("transparent"):this,a=l[o.cache]||o.to(l._rgba),s=a.slice();return e=e[o.cache],r(o.props,function(n,i){var c=i.idx,r=a[c],u=e[c],o=h[i.type]||{};null!==u&&(null===r?s[c]=u:(o.mod&&(u-r>o.mod/2?r+=o.mod:r-u>o.mod/2&&(r-=o.mod)),s[c]=f((u-r)*t+r,i)))}),this[c](s)},blend:function(t){if(1===this._rgba[3])return this;var r=this._rgba.slice(),u=r.pop(),f=i(t)._rgba;return i(n.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var i="rgba(",t=n.map(this._rgba,function(n,t){return null==n?t>2?1:0:n});return 1===t[3]&&(t.pop(),i="rgb("),i+t.join()+")"},toHslaString:function(){var i="hsla(",t=n.map(this.hsla(),function(n,t){return null==n&&(n=t>2?1:0),t&&3>t&&(n=Math.round(100*n)+"%"),n});return 1===t[3]&&(t.pop(),i="hsl("),i+t.join()+")"},toHexString:function(t){var i=this._rgba.slice(),r=i.pop();return t&&i.push(~~(255*r)),"#"+n.map(i,function(n){return n=(n||0).toString(16),1===n.length?"0"+n:n}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}});i.fn.parse.prototype=i.fn;u.hsla.to=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var s,h,i=n[0]/255,r=n[1]/255,f=n[2]/255,c=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,l=.5*o;return s=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,h=0===t?0:.5>=l?t/o:t/(2-o),[Math.round(s)%360,h,l,null==c?1:c]};u.hsla.from=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=.5>=t?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(255*o(f,i,r+1/3)),Math.round(255*o(f,i,r)),Math.round(255*o(f,i,r-1/3)),e]};r(u,function(u,e){var s=e.props,o=e.cache,h=e.to,c=e.from;i.fn[u]=function(u){if(h&&!this[o]&&(this[o]=h(this._rgba)),u===t)return this[o].slice();var l,a=n.type(u),v="array"===a||"object"===a?u:arguments,e=this[o].slice();return r(s,function(n,t){var i=v["object"===a?n:t.idx];null==i&&(i=e[t.idx]);e[t.idx]=f(i,t)}),c?(l=i(c(e)),l[o]=e,l):i(e)};r(s,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f,e=n.type(i),h="alpha"===t?this._hsla?"hsla":"rgba":u,o=this[h](),s=o[r.idx];return"undefined"===e?s:("function"===e&&(i=i.call(this,s),e=n.type(i)),null==i&&r.empty?this:("string"===e&&(f=a.exec(i),f&&(i=s+parseFloat(f[2])*("+"===f[1]?1:-1))),o[r.idx]=i,this[h](o)))})})});i.hook=function(t){var u=t.split(" ");r(u,function(t,r){n.cssHooks[r]={set:function(t,u){var o,f,e="";if("transparent"!==u&&("string"!==n.type(u)||(o=s(u)))){if(u=i(o||u),!c.rgba&&1!==u._rgba[3]){for(f="backgroundColor"===r?t.parentNode:t;(""===e||"transparent"===e)&&f&&f.style;)try{e=n.css(f,"backgroundColor");f=f.parentNode}catch(h){}u=u.blend(e&&"transparent"!==e?e:"_default")}u=u.toRgbaString()}try{t.style[r]=u}catch(h){}}};n.fx.step[r]=function(t){t.colorInit||(t.start=i(t.elem,r),t.end=i(t.end),t.colorInit=!0);n.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})};i.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");n.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}};e=n.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(p),function(){function t(t){var r,u,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,f={};if(i&&i.length&&i[0]&&i[i[0]])for(u=i.length;u--;)r=i[u],"string"==typeof i[r]&&(f[n.camelCase(r)]=i[r]);else for(r in i)"string"==typeof i[r]&&(f[r]=i[r]);return f}function i(t,i){var r,f,e={};for(r in i)f=i[r],t[r]!==f&&(u[r]||(n.fx.step[r]||!isNaN(parseFloat(f)))&&(e[r]=f));return e}var r=["add","remove","toggle"],u={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){n.fx.step[i]=function(n){("none"===n.end||n.setAttr)&&(1!==n.pos||n.setAttr)||(p.style(n.elem,i,n.end),n.setAttr=!0)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});n.effects.animateClass=function(u,f,e,o){var s=n.speed(f,e,o);return this.queue(function(){var o,e=n(this),h=e.attr("class")||"",f=s.children?e.find("*").addBack():e;f=f.map(function(){var i=n(this);return{el:i,start:t(this)}});o=function(){n.each(r,function(n,t){u[t]&&e[t+"Class"](u[t])})};o();f=f.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this});e.attr("class",h);f=f.map(function(){var i=this,t=n.Deferred(),r=n.extend({},s,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()});n.when.apply(n,f.get()).done(function(){o();n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})});s.complete.call(e[0])})})};n.fn.extend({addClass:function(t){return function(i,r,u,f){return r?n.effects.animateClass.call(this,{add:i},r,u,f):t.apply(this,arguments)}}(n.fn.addClass),removeClass:function(t){return function(i,r,u,f){return arguments.length>1?n.effects.animateClass.call(this,{remove:i},r,u,f):t.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(t){return function(i,r,u,f,e){return"boolean"==typeof r||void 0===r?u?n.effects.animateClass.call(this,r?{add:i}:{remove:i},u,f,e):t.apply(this,arguments):n.effects.animateClass.call(this,{toggle:i},r,u,f)}}(n.fn.toggleClass),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}})}(),function(){function t(t,i,r,u){return n.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),n.isFunction(i)&&(u=i,r=null,i={}),("number"==typeof i||n.fx.speeds[i])&&(u=r,r=i,i={}),n.isFunction(r)&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:"number"==typeof r?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function i(t){return!t||"number"==typeof t||n.fx.speeds[t]?!0:"string"!=typeof t||n.effects.effect[t]?n.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}function r(n,t){var r=t.outerWidth(),u=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(n)||["",0,r,u,0];return{top:parseFloat(i[1])||0,right:"auto"===i[2]?r:parseFloat(i[2]),bottom:"auto"===i[3]?u:parseFloat(i[3]),left:parseFloat(i[4])||0}}n.expr&&n.expr.filters&&n.expr.filters.animated&&(n.expr.filters.animated=function(t){return function(i){return!!n(i).data(h)||t(i)}}(n.expr.filters.animated));n.uiBackCompat!==!1&&n.extend(n.effects,{save:function(n,t){for(var i=0,r=t.length;r>i;i++)null!==t[i]&&n.data(e+t[i],n[0].style[t[i]])},restore:function(n,t){for(var r,i=0,u=t.length;u>i;i++)null!==t[i]&&(r=n.data(e+t[i]),n.css(t[i],r))},setMode:function(n,t){return"toggle"===t&&(t=n.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).trigger("focus"),u=t.parent(),"static"===t.css("position")?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).trigger("focus")),t}});n.extend(n.effects,{version:"1.12.1",define:function(t,i,r){return r||(r=i,i="effect"),n.effects.effect[t]=r,n.effects.effect[t].mode=i,r},scaledDimensions:function(n,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==i?(t||100)/100:1,u="vertical"!==i?(t||100)/100:1;return{height:n.height()*u,width:n.width()*r,outerHeight:n.outerHeight()*u,outerWidth:n.outerWidth()*r}},clipToBox:function(n){return{width:n.clip.right-n.clip.left,height:n.clip.bottom-n.clip.top,left:n.clip.left,top:n.clip.top}},unshift:function(n,t,i){var r=n.queue();t>1&&r.splice.apply(r,[1,0].concat(r.splice(t,i)));n.dequeue()},saveStyle:function(n){n.data(s,n[0].style.cssText)},restoreStyle:function(n){n[0].style.cssText=n.data(s)||"";n.removeData(s)},mode:function(n,t){var i=n.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createPlaceholder:function(t){var i,r=t.css("position"),u=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(r)&&(r="absolute",i=n("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(e+"placeholder",i)),t.css({position:r,left:u.left,top:u.top}),i},removePlaceholder:function(n){var t=e+"placeholder",i=n.data(t);i&&(i.remove(),n.removeData(t))},cleanUp:function(t){n.effects.restoreStyle(t);n.effects.removePlaceholder(t)},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}});n.fn.extend({effect:function(){function o(t){function c(){o.removeData(h);n.effects.cleanUp(o);"hide"===i.mode&&o.hide();s()}function s(){n.isFunction(f)&&f.call(o[0]);n.isFunction(t)&&t()}var o=n(this);i.mode=l.shift();n.uiBackCompat===!1||u?"none"===i.mode?(o[r](),s()):e.call(o[0],i,c):(o.is(":hidden")?"hide"===r:"show"===r)?(o[r](),s()):e.call(o[0],i,s)}var i=t.apply(this,arguments),e=n.effects.effect[i.effect],u=e.mode,s=i.queue,c=s||"fx",f=i.complete,r=i.mode,l=[],a=function(t){var f=n(this),i=n.effects.mode(f,r)||u;f.data(h,!0);l.push(i);u&&("show"===i||i===u&&"hide"===i)&&f.show();u&&"none"===i||n.effects.saveStyle(f);n.isFunction(t)&&t()};return n.fx.off||!e?r?this[r](i.duration,f):this.each(function(){f&&f.call(this)}):s===!1?this.each(a).each(o):this.queue(c,a).queue(c,o)},show:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="show",this.effect.call(this,u)}}(n.fn.show),hide:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="hide",this.effect.call(this,u)}}(n.fn.hide),toggle:function(n){return function(r){if(i(r)||"boolean"==typeof r)return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="toggle",this.effect.call(this,u)}}(n.fn.toggle),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r},cssClip:function(n){return n?this.css("clip","rect("+n.top+"px "+n.right+"px "+n.bottom+"px "+n.left+"px)"):r(this.css("clip"),this)},transfer:function(t,i){var u=n(this),r=n(t.to),f="fixed"===r.css("position"),e=n("body"),o=f?e.scrollTop():0,s=f?e.scrollLeft():0,h=r.offset(),l={top:h.top-o,left:h.left-s,height:r.innerHeight(),width:r.innerWidth()},c=u.offset(),a=n("<div class='ui-effects-transfer'><\/div>").appendTo("body").addClass(t.className).css({top:c.top-o,left:c.left-s,height:u.innerHeight(),width:u.innerWidth(),position:f?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){a.remove();n.isFunction(i)&&i()})}});n.fx.step.clip=function(t){t.clipInit||(t.start=n(t.elem).cssClip(),"string"==typeof t.end&&(t.end=r(t.end,t.elem)),t.clipInit=!0);n(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,i){t[i]=function(t){return Math.pow(t,n+2)}});n.extend(t,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return 0===n||1===n?n:-Math.pow(2,8*(n-1))*Math.sin((80*(n-1)-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>n;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-n,2)}});n.each(t,function(t,i){n.easing["easeIn"+t]=i;n.easing["easeOut"+t]=function(n){return 1-i(1-n)};n.easing["easeInOut"+t]=function(n){return.5>n?i(2*n)/2:1-i(-2*n+2)/2}})}();w=n.effects;n.effects.define("blind","hide",function(t,i){var e={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},u=n(this),o=t.direction||"up",s=u.cssClip(),r={clip:n.extend({},s)},f=n.effects.createPlaceholder(u);r.clip[e[o][0]]=r.clip[e[o][1]];"show"===t.mode&&(u.cssClip(r.clip),f&&f.css(n.effects.clipToBox(r)),r.clip=s);f&&f.animate(n.effects.clipToBox(r),t.duration,t.easing);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});n.effects.define("bounce",function(t,i){var e,o,a,u=n(this),p=t.mode,s="hide"===p,w="show"===p,h=t.direction||"up",r=t.distance,v=t.times||5,b=2*v+(w||s?1:0),c=t.duration/b,l=t.easing,f="up"===h||"down"===h?"top":"left",y="up"===h||"left"===h,k=0,d=u.queue().length;for(n.effects.createPlaceholder(u),a=u.css(f),r||(r=u["top"===f?"outerHeight":"outerWidth"]()/3),w&&(o={opacity:1},o[f]=a,u.css("opacity",0).css(f,y?2*-r:2*r).animate(o,c,l)),s&&(r/=Math.pow(2,v-1)),o={},o[f]=a;v>k;k++)e={},e[f]=(y?"-=":"+=")+r,u.animate(e,c,l).animate(o,c,l),r=s?2*r:r/2;s&&(e={opacity:0},e[f]=(y?"-=":"+=")+r,u.animate(e,c,l));u.queue(i);n.effects.unshift(u,d,b+1)});n.effects.define("clip","hide",function(t,i){var r,u={},f=n(this),e=t.direction||"vertical",o="both"===e,s=o||"horizontal"===e,h=o||"vertical"===e;r=f.cssClip();u.clip={top:h?(r.bottom-r.top)/2:r.top,right:s?(r.right-r.left)/2:r.right,bottom:h?(r.bottom-r.top)/2:r.bottom,left:s?(r.right-r.left)/2:r.left};n.effects.createPlaceholder(f);"show"===t.mode&&(f.cssClip(u.clip),u.clip=r);f.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});n.effects.define("drop","hide",function(t,i){var e,u=n(this),h=t.mode,c="show"===h,f=t.direction||"left",o="up"===f||"down"===f?"top":"left",s="up"===f||"left"===f?"-=":"+=",l="+="===s?"-=":"+=",r={opacity:0};n.effects.createPlaceholder(u);e=t.distance||u["top"===o?"outerHeight":"outerWidth"](!0)/2;r[o]=s+e;c&&(u.css(r),r[o]=l+e,r.opacity=1);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});n.effects.define("explode","hide",function(t,i){function b(){p.push(this);p.length===e*c&&k()}function k(){o.css({visibility:"visible"});n(p).remove();i()}for(var u,l,a,v,y,e=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=e,o=n(this),d=t.mode,f="show"===d,w=o.show().css("visibility","hidden").offset(),s=Math.ceil(o.outerWidth()/c),h=Math.ceil(o.outerHeight()/e),p=[],r=0;e>r;r++)for(a=w.top+r*h,y=r-(e-1)/2,u=0;c>u;u++)l=w.left+u*s,v=u-(c-1)/2,o.clone().appendTo("body").wrap("<div><\/div>").css({position:"absolute",visibility:"visible",left:-u*s,top:-r*h}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:s,height:h,left:l+(f?v*s:0),top:a+(f?y*h:0),opacity:f?0:1}).animate({left:l+(f?0:v*s),top:a+(f?0:y*h),opacity:f?1:0},t.duration||500,t.easing,b)});n.effects.define("fade","toggle",function(t,i){var r="show"===t.mode;n(this).css("opacity",r?0:1).animate({opacity:r?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})});n.effects.define("fold","hide",function(t,i){var u=n(this),l=t.mode,v="show"===l,y="hide"===l,o=t.size||15,a=/([0-9]+)%/.exec(o),p=!!t.horizFirst,f=p?["right","bottom"]:["bottom","right"],s=t.duration/2,h=n.effects.createPlaceholder(u),e=u.cssClip(),c={clip:n.extend({},e)},r={clip:n.extend({},e)},w=[e[f[0]],e[f[1]]],b=u.queue().length;a&&(o=parseInt(a[1],10)/100*w[y?0:1]);c.clip[f[0]]=o;r.clip[f[0]]=o;r.clip[f[1]]=0;v&&(u.cssClip(r.clip),h&&h.css(n.effects.clipToBox(r)),r.clip=e);u.queue(function(i){h&&h.animate(n.effects.clipToBox(c),s,t.easing).animate(n.effects.clipToBox(r),s,t.easing);i()}).animate(c,s,t.easing).animate(r,s,t.easing).queue(i);n.effects.unshift(u,b,4)});n.effects.define("highlight","show",function(t,i){var r=n(this),u={backgroundColor:r.css("backgroundColor")};"hide"===t.mode&&(u.opacity=0);n.effects.saveStyle(r);r.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});n.effects.define("size",function(t,i){var l,r,p,u=n(this),v=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],w=t.mode,y="effect"!==w,c=t.scale||"both",b=t.origin||["middle","center"],k=u.css("position"),a=u.position(),o=n.effects.scaledDimensions(u),f=t.from||o,e=t.to||n.effects.scaledDimensions(u,0);n.effects.createPlaceholder(u);"show"===w&&(p=f,f=e,e=p);r={from:{y:f.height/o.height,x:f.width/o.width},to:{y:e.height/o.height,x:e.width/o.width}};("box"===c||"both"===c)&&(r.from.y!==r.to.y&&(f=n.effects.setTransition(u,s,r.from.y,f),e=n.effects.setTransition(u,s,r.to.y,e)),r.from.x!==r.to.x&&(f=n.effects.setTransition(u,h,r.from.x,f),e=n.effects.setTransition(u,h,r.to.x,e)));("content"===c||"both"===c)&&r.from.y!==r.to.y&&(f=n.effects.setTransition(u,v,r.from.y,f),e=n.effects.setTransition(u,v,r.to.y,e));b&&(l=n.effects.getBaseline(b,o),f.top=(o.outerHeight-f.outerHeight)*l.y+a.top,f.left=(o.outerWidth-f.outerWidth)*l.x+a.left,e.top=(o.outerHeight-e.outerHeight)*l.y+a.top,e.left=(o.outerWidth-e.outerWidth)*l.x+a.left);u.css(f);("content"===c||"both"===c)&&(s=s.concat(["marginTop","marginBottom"]).concat(v),h=h.concat(["marginLeft","marginRight"]),u.find("*[width]").each(function(){var i=n(this),u=n.effects.scaledDimensions(i),f={height:u.height*r.from.y,width:u.width*r.from.x,outerHeight:u.outerHeight*r.from.y,outerWidth:u.outerWidth*r.from.x},e={height:u.height*r.to.y,width:u.width*r.to.x,outerHeight:u.height*r.to.y,outerWidth:u.width*r.to.x};r.from.y!==r.to.y&&(f=n.effects.setTransition(i,s,r.from.y,f),e=n.effects.setTransition(i,s,r.to.y,e));r.from.x!==r.to.x&&(f=n.effects.setTransition(i,h,r.from.x,f),e=n.effects.setTransition(i,h,r.to.x,e));y&&n.effects.saveStyle(i);i.css(f);i.animate(e,t.duration,t.easing,function(){y&&n.effects.restoreStyle(i)})}));u.animate(e,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=u.offset();0===e.opacity&&u.css("opacity",f.opacity);y||(u.css("position","static"===k?"relative":k).offset(t),n.effects.saveStyle(u));i()}})});n.effects.define("scale",function(t,i){var u=n(this),f=t.mode,e=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"effect"!==f?0:100),r=n.extend(!0,{from:n.effects.scaledDimensions(u),to:n.effects.scaledDimensions(u,e,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0);n.effects.effect.size.call(this,r,i)});n.effects.define("puff","hide",function(t,i){var r=n.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});n.effects.effect.scale.call(this,r,i)});n.effects.define("pulsate","show",function(t,i){var r=n(this),e=t.mode,o="show"===e,c="hide"===e,l=o||c,f=2*(t.times||5)+(l?1:0),s=t.duration/f,u=0,h=1,a=r.queue().length;for((o||!r.is(":visible"))&&(r.css("opacity",0).show(),u=1);f>h;h++)r.animate({opacity:u},s,t.easing),u=1-u;r.animate({opacity:u},s,t.easing);r.queue(i);n.effects.unshift(r,a,f+1)});n.effects.define("shake",function(t,i){var l=1,r=n(this),f=t.direction||"left",e=t.distance||20,a=t.times||3,v=2*a+1,u=Math.round(t.duration/v),o="up"===f||"down"===f?"top":"left",s="up"===f||"left"===f,h={},c={},y={},p=r.queue().length;for(n.effects.createPlaceholder(r),h[o]=(s?"-=":"+=")+e,c[o]=(s?"+=":"-=")+2*e,y[o]=(s?"-=":"+=")+2*e,r.animate(h,u,t.easing);a>l;l++)r.animate(c,u,t.easing).animate(y,u,t.easing);r.animate(c,u,t.easing).animate(h,u/2,t.easing).queue(i);n.effects.unshift(r,p,v+1)});n.effects.define("slide","show",function(t,i){var s,o,u=n(this),h={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},c=t.mode,f=t.direction||"left",e="up"===f||"down"===f?"top":"left",l="up"===f||"left"===f,a=t.distance||u["top"===e?"outerHeight":"outerWidth"](!0),r={};n.effects.createPlaceholder(u);s=u.cssClip();o=u.position()[e];r[e]=(l?-1:1)*a+o;r.clip=u.cssClip();r.clip[h[f][1]]=r.clip[h[f][0]];"show"===c&&(u.cssClip(r.clip),u.css(e,r[e]),r.clip=s,r[e]=o);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});n.uiBackCompat!==!1&&(w=n.effects.define("transfer",function(t,i){n(this).transfer(t,i)}))}),$(document).ready(function(){$("[data-toggle=offcanvas]").click(function(){$(".row-offcanvas").toggleClass("active")})}),function(n){function o(t,i){throw n.extend(t,i),t;}function l(n){var f=[],u,e;if(t.call(n)!==r)return i;for(u=0,e=n.length;u<e;u++)f[u]=n[u].jqote_id;return f.length?f.sort().join(".").replace(/(\b\d+\b)\.(?:\1(\.|$))+/g,"$1$2"):i}function s(u,e){var h=[],e=e||f,o=t.call(u),s,c;if(o===y)return u.jqote_id?[u]:i;if(o!==r)return[n.jqotec(u,e)];if(o===r)for(s=0,c=u.length;s<c;s++)return h.length?h:i}var i=!1,h="UndefinedTemplateError",a="TemplateCompilationError",v="TemplateExecutionError",r="[object Array]",u="[object String]",y="[object Function]",c=1,f="%",e=/^[^<]*(<[\w\W]+>)[^>]*$/,t=Object.prototype.toString;n.fn.extend({jqote:function(i,u){var i=t.call(i)===r?i:[i],f="";return this.each(function(t){for(var e=n.jqotec(this,u),r=0;r<i.length;r++)f+=e.call(i[r],t,r,i,e)}),f}});n.each({app:"append",pre:"prepend",sub:"html"},function(t,i){n.fn["jqote"+t]=function(r,u,f){var o,h,c=n.jqote(r,u,f),a=e.test(c)?n:function(t){return n(document.createTextNode(t))};return!(o=l(s(r)))||(h=new RegExp("(^|\\.)"+o.split(".").join("\\.(.*)?")+"(\\.|$)")),this.each(function(){var r=a(c);n(this)[i](r);(r[0].nodeType===3?n(this):r).trigger("jqote."+t,[r,h])})}});n.extend({jqote:function(n,u,e){var v="",e=e||f,a=s(n),c,y,l;for(a===i&&o(new Error("Empty or undefined template passed to $.jqote"),{type:h}),u=t.call(u)!==r?[u]:u,c=0,y=a.length;c<y;c++)for(l=0;l<u.length;l++)v+=a[c].call(u[l],c,l,u,a[c]);return v},jqotec:function(i,r){var w,s,b,r=r||f,d=t.call(i),p,g,y,l,nt,k;if(d===u&&e.test(i)){if(s=b=i,w=n.jqotecache[i])return w}else if(s=d===u||i.nodeType?n(i):i instanceof jQuery?i:null,s[0]&&((b=s[0].innerHTML)||(b=s.text()))||o(new Error("Empty or undefined template passed to $.jqotec"),{type:h}),w=n.jqotecache[n.data(s[0],"jqote_id")])return w;for(p="",y=b.replace(/\s*<!\[CDATA\[\s*|\s*\]\]>\s*|[\r\n\t]/g,"").split("<"+r).join(r+">\x1b").split(r+">"),l=0,nt=y.length;l<nt;l++)p+=y[l].charAt(0)!=="\x1b"?"out+='"+y[l].replace(/(\\|["'])/g,"\\$1")+"'":y[l].charAt(1)==="="?";out+=("+y[l].substr(2)+");":y[l].charAt(1)==="!"?";out+=$.jqotenc(("+y[l].substr(2)+"));":";"+y[l].substr(1);p="try{"+('var out="";'+p+";return out;").split("out+='';").join("").split('var out="";out+=').join("var out=")+'}catch(e){e.type="'+v+'";e.args=arguments;e.template=arguments.callee.toString();throw e;}';try{k=new Function("i, j, data, fn",p)}catch(s){o(s,{type:a})}return g=s instanceof jQuery?n.data(s[0],"jqote_id",c):s,n.jqotecache[g]=(k.jqote_id=c++,k)},jqotefn:function(r){var f=t.call(r),o=f===u&&e.test(r)?r:n.data(n(r)[0],"jqote_id");return n.jqotecache[o]||i},jqotetag:function(n){t.call(n)===u&&(f=n)},jqotenc:function(n){return n.toString().replace(/&(?!\w+;)/g,"&#38;").split("<").join("&#60;").split(">").join("&#62;").split('"').join("&#34;").split("'").join("&#39;")},jqotecache:{}});n.event.special.jqote={add:function(n){var i,f=n.handler,u=n.data?t.call(n.data)!==r?[n.data]:n.data:[];(n.namespace||(n.namespace="app.pre.sub"),u.length&&(i=l(s(u))))&&(n.handler=function(n,t,r){return!r||r.test(i)?f.apply(this,[n,t]):null})}};n.jqotetag("*")}(jQuery),Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(n){var f="",e,t,i,s,h,o,r,u=0;for(n=Base64._utf8_encode(n);u<n.length;)e=n.charCodeAt(u++),t=n.charCodeAt(u++),i=n.charCodeAt(u++),s=e>>2,h=(e&3)<<4|t>>4,o=(t&15)<<2|i>>6,r=i&63,isNaN(t)?o=r=64:isNaN(i)&&(r=64),f=f+this._keyStr.charAt(s)+this._keyStr.charAt(h)+this._keyStr.charAt(o)+this._keyStr.charAt(r);return f},decode:function(n){var t="",e,o,s,h,u,r,f,i=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)h=this._keyStr.indexOf(n.charAt(i++)),u=this._keyStr.indexOf(n.charAt(i++)),r=this._keyStr.indexOf(n.charAt(i++)),f=this._keyStr.indexOf(n.charAt(i++)),e=h<<2|u>>4,o=(u&15)<<4|r>>2,s=(r&3)<<6|f,t=t+String.fromCharCode(e),r!=64&&(t=t+String.fromCharCode(o)),f!=64&&(t=t+String.fromCharCode(s));return Base64._utf8_decode(t)},_utf8_encode:function(n){var i,r,t;for(n=n.replace(/\r\n/g,"\n"),i="",r=0;r<n.length;r++)t=n.charCodeAt(r),t<128?i+=String.fromCharCode(t):t>127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128));return i},_utf8_decode:function(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}},JSONstringify=JSONstringify||{},JSONstringify=function(n){var i=typeof n,u,t,f,r;if(i!="object"||n===null)return i=="string"&&(n='"'+n+'"'),String(n);f=[];r=n&&n.constructor==Array;for(u in n)(t=n[u],i=typeof t,i!="function")&&(i=="string"?t='"'+t+'"':i=="object"&&t!==null&&(t=JSONstringify(t)),f.push((r?"":'"'+u+'":')+String(t)));return(r?"[":"{")+String(f)+(r?"]":"}")},String.prototype.format=String.prototype.f=function(){var n=arguments;return this.replace(/\{(\d+)\}/g,function(t,i){return n[i]})},String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")},String.prototype.ltrim=function(){return this.replace(/^\s+/,"")},String.prototype.rtrim=function(){return this.replace(/\s+$/,"")},String.prototype.fulltrim=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," ")},String.prototype.isValidEmail=function(){return/\S+@\S+\.\S+/.test(this)},$.fn.EqualizeElementHeights=function(n){var u=0,f=0,t=[],r;n&&$(this).css({"min-height":"",height:""});$(this).each(function(){if(r=$(this),topPostion=r.offset().top,f!=topPostion){for(i=0;i<t.length;i++)t[i].height(u);t.length=0;f=topPostion;u=r.height();t.push(r)}else t.push(r),u=u<r.height()?r.height():u;for(i=0;i<t.length;i++)t[i].height(u)})},function(n){n.fn.addClassDelayed=function(n,t,i){var r=this,u="addClassTimeout"+n.replace(" ",""),f;t>=0?r.data(u)||(f=setTimeout(function(){r.addClass(n);r.data(u,"");i&&(f=setTimeout(function(){r.removeClass(n);r.data(u,"")},i),r.data(u,f))},t),r.data(u,f)):r.addClass(n)};n.fn.removeDelayedClass=function(n){var t="addClassTimeout"+n.replace(" ","");this.data(t)&&(clearTimeout(this.data(t)),this.removeData(t));this.removeClass(n)}}(jQuery),function(){document.addUrlParam=function(n,t){var r=new RegExp(n+"=([^&]*)","i").exec(window.location.search),u,i;return(r=r&&r[1]||"",u=window.location,r===t)?u:(i=u.protocol+"//"+u.host+u.pathname+u.search,i=i.replace("?"+n+"="+r,""),i=i.replace("&"+n+"="+r,""),i+(i.indexOf("?")<0?"?"+n+"="+t:"&"+n+"="+t))};document.addLocationParameter=function(n,t){try{window.history.pushState("","",document.addUrlParam(n,t))}catch(i){alert(i)}};document.removeUrlParameter=function(n,t){var u=n.split("?"),f,i,r;if(u.length>=2){for(f=encodeURIComponent(t)+"=",i=u[1].split(/[&;]/g),r=i.length;r-->0;)i[r].lastIndexOf(f,0)!==-1&&i.splice(r,1);return u[0]+(i.length>0?"?"+i.join("&"):"")}return n};document.removeLocationParameter=function(n){try{window.history.pushState("","",document.removeUrlParameter(window.location.href,n))}catch(t){}};document.getUrlParam=function(n){var i=null,t=[];return location.search.substr(1).split("&").forEach(function(r){t=r.split("=");t[0]===n&&(i=decodeURIComponent(t[1]))}),i};document.removeUrlHash=function(){try{history.pushState("",document.title,window.location.pathname+window.location.search)}catch(n){}};document.getQueryStringValue=function(n){return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(n).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}}(jQuery),Array.prototype.filter||(Array.prototype.filter=function(n,t){"use strict";if(!((typeof n=="Function"||typeof n=="function")&&this))throw new TypeError;var f=this.length>>>0,u=new Array(f),r=this,e=0,i=-1;if(t===undefined)while(++i!==f)if(i in this)if(n(r[i],i,r))u[e++]=r[i];else while(++i!==f)i in this&&n.call(t,r[i],i,r)&&(u[e++]=r[i]);return u.length=e,u}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(n){var i,r,u,t,f;if(this==null)throw new TypeError('"this" is null or not defined');if(i=Object(this),r=i.length>>>0,typeof n!="function")throw new TypeError("predicate must be a function");for(u=arguments[1],t=0;t<r;){if(f=i[t],n.call(u,f,t,i))return t;t++}return-1}}),$(document).ready(function(){$(document).on("hidden.bs.modal",".modal",function(){$(this).removeClass("fv-modal-stack");$("body").data("fv_open_modals",$("body").data("fv_open_modals")-1);$("body").data("fv_open_modals")>0?$("body").addClass("modal-open"):$("html").css("overflow","visible")});$(document).on("shown.bs.modal",".modal",function(){(typeof $("body").data("fv_open_modals")=="undefined"&&($("body").data("fv_open_modals",0),$("html").css("overflow","hidden")),$(this).hasClass("fv-modal-stack"))||($(this).addClass("fv-modal-stack"),$("body").data("fv_open_modals",$("body").data("fv_open_modals")+1),$(this).css("z-index",1040+10*$("body").data("fv_open_modals")),$(".modal-backdrop").not(".fv-modal-stack").css("z-index",1039+10*$("body").data("fv_open_modals")),$(".modal-backdrop").not("fv-modal-stack").addClass("fv-modal-stack"))})}),ModalPopup=function(n){function s(e){if(t=n("#"+e.modalId),t.length==0){n("body").append('<div id="'+e.modalId+'" class="modal custom" tabindex="-1" role="dialog">                        <div class="modal-dialog modal-dialog-centered" role="document">                            <div class="modal-content">                                <div class="modal-header">                                    <h5 class="modal-title"><\/h5>                                <\/div>                                <div class="modal-body">                                <\/div>                                <div class="modal-footer">                                <\/div>                            <\/div>                        <\/div>                    <\/div>');t=n("#"+e.modalId);e.modalClass&&n(".modal-dialog",t).addClass(e.modalClass);u=n(".modal-header",t);f=n(".modal-title",u);r=n(".modal-body",t);i=n(".modal-footer",t);t.on("hidden.bs.modal",function(){e.removeAfterClose&&n(this).remove()})}}function h(n){n==""?u.hide():(u.show(),f.html(n))}function c(t){t==""?r.hide():(r.empty(),r.show(),r.html(n(t).clone(!1)))}function l(t){var e=Object.keys(t),o=!1,f,r,u;if(i.empty(),e.length>0)for(i.show(),f=0;f<e.length;f++)if(r=t[e[f]],r.show){u=n(r.html);u.addClass(r.class);u.html(r.text);u.data("options",r);u.on("click",function(){var i=n(this).data("options"),t,r;i.onClick();i.resetOnClick&&(t=n(this).closest(".modal.custom"),r=n(".modal-body",t),r.html(t.data("options").htmlBody))});i.append(u);o=!0}o?i.show():i.hide()}var t=n(),u=n(),f=n(),r=n(),i=n(),e=null,o=function(i){i=n.extend(!0,{},{buttons:{ok:{show:!1,"class":"btn btn-sm btn-default",html:'<button type="button" data-dismiss="modal"><\/button>',text:"Ok",onClick:function(){},resetOnClick:!1},close:{show:!1,"class":"btn btn-sm btn-secondary",html:'<button type="button" data-dismiss="modal"><\/button>',text:"Avbryt",onClick:function(){},resetOnClick:!1}},modalId:"modal-"+ +new Date,modalClass:"",heading:"",htmlBody:"",onOpened:function(){},onClosed:function(){return},displayDuration:0,modalWidth:"",modalSettings:{},removeAfterClose:!0},i);s(i);i.modalWidth!=""&&n(".modal-dialog",t).css("width",i.modalWidth);h(i.heading,i.iconClass);c(i.htmlBody);l(i.buttons);var r=t.modal(i.modalSettings);t.data("options",i);i.displayDuration>0&&(e=setTimeout(function(){n(".modal-backdrop").last().fadeOut(200);t.fadeOut(200,function(){t.modal("hide")})},i.displayDuration));t.on("shown.bs.modal",function(){i.onOpened(n(this))});t.on("hidden.bs.modal",function(){clearTimeout(e);i.onClosed()});t.on("keydown",function(t){var i=window.event?t.which:t.keyCode;i==13&&n("button.btn-default",n(this)).first().click()});return r};return{loadModal:o}}(jQuery),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(n){var i,u,f,t,r;if(this==null)throw new TypeError('"this" is null or not defined');if(i=Object(this),u=i.length>>>0,typeof n!="function")throw new TypeError("predicate must be a function");for(f=arguments[1],t=0;t<u;){if(r=i[t],n.call(f,r,t,i))return r;t++}return undefined},configurable:!0,writable:!0}),function(n){"use strict";function l(n,t){return t=t||Error,function(){for(var r=arguments[0],f,i,u="["+(n?n+":":"")+r+"] http://errors.angularjs.org/1.6.4/"+(n?n+"/":"")+r,r=1;r<arguments.length;r++)u=u+(1==r?"?":"&")+"p"+(r-1)+"=",f=encodeURIComponent,i=arguments[r],i="function"==typeof i?i.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof i?"undefined":"string"!=typeof i?JSON.stringify(i):i,u+=f(i);return new t(u)}}function al(n){if(s(n))r(n.objectMaxDepth)&&(gh.objectMaxDepth=sf(n.objectMaxDepth)?n.objectMaxDepth:NaN);else return gh}function sf(n){return d(n)&&0<n}function dt(n){if(null==n||ur(n))return!1;if(c(n)||h(n)||e&&n instanceof e)return!0;var t="length"in Object(n)&&n.length;return d(t)&&(0<=t&&(t-1 in n||n instanceof Array)||"function"==typeof n.item)}function t(n,i,r){var u,e,o;if(n)if(f(n))for(u in n)"prototype"!==u&&"length"!==u&&"name"!==u&&n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else if(c(n)||dt(n))for(o="object"!=typeof n,u=0,e=n.length;u<e;u++)(o||u in n)&&i.call(r,n[u],u,n);else if(n.forEach&&n.forEach!==t)n.forEach(i,r,n);else if(ho(n))for(u in n)i.call(r,n[u],u,n);else if("function"==typeof n.hasOwnProperty)for(u in n)n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else for(u in n)pt.call(n,u)&&i.call(r,n[u],u,n);return n}function oo(n,t,i){for(var r=Object.keys(n).sort(),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function so(n){return function(t,i){n(i,t)}}function vl(){return++du}function hf(n,t,i){for(var e,u,r,l=n.$$hashKey,o=0,v=t.length;o<v;++o)if(e=t[o],s(e)||f(e))for(var a=Object.keys(e),h=0,y=a.length;h<y;h++)u=a[h],r=e[u],i&&s(r)?rt(r)?n[u]=new Date(r.valueOf()):rr(r)?n[u]=new RegExp(r):r.nodeName?n[u]=r.cloneNode(!0):af(r)?n[u]=r.clone():(s(n[u])||(n[u]=c(r)?[]:{}),hf(n[u],[r],!0)):n[u]=r;return l?n.$$hashKey=l:delete n.$$hashKey,n}function v(n){return hf(n,bt.call(arguments,1),!1)}function yl(n){return hf(n,bt.call(arguments,1),!0)}function tt(n){return parseInt(n,10)}function cf(n,t){return v(Object.create(n),t)}function o(){}function ir(n){return n}function ot(n){return function(){return n}}function lf(n){return f(n.toString)&&n.toString!==ut}function u(n){return"undefined"==typeof n}function r(n){return"undefined"!=typeof n}function s(n){return null!==n&&"object"==typeof n}function ho(n){return null!==n&&"object"==typeof n&&!nc(n)}function h(n){return"string"==typeof n}function d(n){return"number"==typeof n}function rt(n){return"[object Date]"===ut.call(n)}function f(n){return"function"==typeof n}function rr(n){return"[object RegExp]"===ut.call(n)}function ur(n){return n&&n.window===n}function fr(n){return n&&n.$evalAsync&&n.$watch}function gt(n){return"boolean"==typeof n}function pl(n){return n&&d(n.length)&&wy.test(ut.call(n))}function af(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}function wl(n){var i={},t;for(n=n.split(","),t=0;t<n.length;t++)i[n[t]]=!0;return i}function lt(n){return a(n.nodeName||n[0]&&n[0].nodeName)}function er(n,t){var i=n.indexOf(t);return 0<=i&&n.splice(i,1),i}function ni(n,i,r){function h(n,t,i){var f,r,e;if(i--,0>i)return"...";if(f=t.$$hashKey,c(n))for(r=0,e=n.length;r<e;r++)t.push(u(n[r],i));else if(ho(n))for(r in n)t[r]=u(n[r],i);else if(n&&"function"==typeof n.hasOwnProperty)for(r in n)n.hasOwnProperty(r)&&(t[r]=u(n[r],i));else for(r in n)pt.call(n,r)&&(t[r]=u(n[r],i));return f?t.$$hashKey=f:delete t.$$hashKey,t}function u(n,t){var i,r;if(!s(n))return n;if(i=e.indexOf(n),-1!==i)return o[i];if(ur(n)||fr(n))throw si("cpws");return i=!1,r=l(n),void 0===r&&(r=c(n)?[]:Object.create(nc(n)),i=!0),e.push(n),o.push(r),i?h(n,r,t):r}function l(n){switch(ut.call(n)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new n.constructor(u(n.buffer),n.byteOffset,n.length);case"[object ArrayBuffer]":if(!n.slice){var t=new ArrayBuffer(n.byteLength);return new Uint8Array(t).set(new Uint8Array(n)),t}return n.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new n.constructor(n.valueOf());case"[object RegExp]":return t=new RegExp(n.source,n.toString().match(/[^/]*$/)[0]),t.lastIndex=n.lastIndex,t;case"[object Blob]":return new n.constructor([n],{type:n.type})}if(f(n.cloneNode))return n.cloneNode(!0)}var e=[],o=[];if(r=sf(r)?r:NaN,i){if(pl(i)||"[object ArrayBuffer]"===ut.call(i))throw si("cpta");if(n===i)throw si("cpi");return c(i)?i.length=0:t(i,function(n,t){"$$hashKey"!==t&&delete i[t]}),e.push(n),o.push(i),h(n,i,r)}return u(n,r)}function vf(n,t){return n===t||n!==n&&t!==t}function st(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!==n&&t!==t)return!0;var u=typeof n,i;if(u===typeof t&&"object"===u)if(c(n)){if(!c(t))return!1;if((u=n.length)===t.length){for(i=0;i<u;i++)if(!st(n[i],t[i]))return!1;return!0}}else{if(rt(n))return rt(t)?vf(n.getTime(),t.getTime()):!1;if(rr(n))return rr(t)?n.toString()===t.toString():!1;if(fr(n)||fr(t)||ur(n)||ur(t)||c(t)||rt(t)||rr(t))return!1;u=p();for(i in n)if("$"!==i.charAt(0)&&!f(n[i])){if(!st(n[i],t[i]))return!1;u[i]=!0}for(i in t)if(!(i in u)&&"$"!==i.charAt(0)&&r(t[i])&&!f(t[i]))return!1;return!0}return!1}function or(n,t,i){return n.concat(bt.call(t,i))}function sr(n,t){var i=2<arguments.length?bt.call(arguments,2):[];return!f(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,or(i,arguments,0)):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function co(t,i){var r=i;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:ur(i)?r="$WINDOW":i&&n.document===i?r="$DOCUMENT":fr(i)&&(r="$SCOPE"),r}function hr(n,t){if(!u(n))return d(t)||(t=t?2:null),JSON.stringify(n,co,t)}function lo(n){return h(n)?JSON.parse(n):n}function ao(n,t){n=n.replace(by,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return it(i)?t:i}function yf(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset();return t=ao(t,r),i*=t-r,n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+i),n}function at(n){n=e(n).clone();try{n.empty()}catch(i){}var t=e("<div>").append(n).html();try{return n[0].nodeType===ri?a(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(n,t){return"<"+a(t)})}catch(r){return a(t)}}function vo(n){try{return decodeURIComponent(n)}catch(t){}}function yo(n){var i={};return t((n||"").split("&"),function(n){var f,t,u;n&&(t=n=n.replace(/\+/g,"%20"),f=n.indexOf("="),-1!==f&&(t=n.substring(0,f),u=n.substring(f+1)),t=vo(t),r(t)&&(u=r(u)?vo(u):!0,pt.call(i,t)?c(i[t])?i[t].push(u):i[t]=[i[t],u]:i[t]=u))}),i}function pf(n){var i=[];return t(n,function(n,r){c(n)?t(n,function(n){i.push(et(r,!0)+(!0===n?"":"="+et(n,!0)))}):i.push(et(r,!0)+(!0===n?"":"="+et(n,!0)))}),i.length?i.join("&"):""}function cr(n){return et(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function et(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function bl(n,t){for(var i,u=ki.length,r=0;r<u;++r)if(i=ki[r]+t,h(i=n.getAttribute(i)))return i;return null}function kl(i,r){var u,f,e={};t(ki,function(n){n+="app";!u&&i.hasAttribute&&i.hasAttribute(n)&&(u=i,f=i.getAttribute(n))});t(ki,function(n){n+="app";var t;!u&&(t=i.querySelector("["+n.replace(":","\\:")+"]"))&&(u=t,f=t.getAttribute(n))});u&&(ky?(e.strictDi=null!==bl(u,"strict-di"),r(u,f?[f]:[],e)):n.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function po(i,r,u){s(u)||(u={});u=v({strictDi:!1},u);var o=function(){if(i=e(i),i.injector()){var t=i[0]===n.document?"document":at(i);throw si("btstrpd",t.replace(/</,"&lt;").replace(/>/,"&gt;"));}return r=r||[],r.unshift(["$provide",function(n){n.value("$rootElement",i)}]),u.debugInfoEnabled&&r.push(["$compileProvider",function(n){n.debugInfoEnabled(!0)}]),r.unshift("ng"),t=vr(r,u.strictDi),t.invoke(["$rootScope","$rootElement","$compile","$injector",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),t},h=/^NG_ENABLE_DEBUG_INFO!/,c=/^NG_DEFER_BOOTSTRAP!/;if(n&&h.test(n.name)&&(u.debugInfoEnabled=!0,n.name=n.name.replace(h,"")),n&&!c.test(n.name))return o();n.name=n.name.replace(c,"");ft.resumeBootstrap=function(n){return t(n,function(n){r.push(n)}),o()};f(ft.resumeDeferredBootstrap)&&ft.resumeDeferredBootstrap()}function dl(){n.name="NG_ENABLE_DEBUG_INFO!"+n.name;n.location.reload()}function gl(n){if(n=ft.element(n).injector(),!n)throw si("test");return n.get("$$testability")}function wo(n,t){return t=t||"_",n.replace(dy,function(n,i){return(i?t:"")+n.toLowerCase()})}function na(){var i,t;ic||(t=gu(),(ii=u(t)?n.jQuery:t?n[t]:void 0)&&ii.fn.on?(e=ii,v(ii.fn,{scope:gi.scope,isolateScope:gi.isolateScope,controller:gi.controller,injector:gi.injector,inheritedData:gi.inheritedData}),i=ii.cleanData,ii.cleanData=function(n){for(var r,u=0,t;null!=(t=n[u]);u++)(r=ii._data(t,"events"))&&r.$destroy&&ii(t).triggerHandler("$destroy");i(n)}):e=w,ft.element=e,ic=!0)}function lr(n,t,i){if(!n)throw si("areq",t||"?",i||"required");return n}function iu(n,t,i){return i&&c(n)&&(n=n[n.length-1]),lr(f(n),t,"not a function, got "+(n&&"object"==typeof n?n.constructor.name||"Object":typeof n)),n}function ai(n,t){if("hasOwnProperty"===n)throw si("badname",t);}function bo(n,t,i){if(!t)return n;t=t.split(".");for(var u,e=n,o=t.length,r=0;r<o;r++)u=t[r],n&&(n=(e=n)[u]);return!i&&f(n)?sr(e,n):n}function ru(n){for(var t=n[0],u=n[n.length-1],i,r=1;t!==u&&(t=t.nextSibling);r++)(i||n[r]!==t)&&(i||(i=e(bt.call(n,0,r))),i.push(t));return i||n}function p(){return Object.create(null)}function wf(n){if(null==n)return"";switch(typeof n){case"string":break;case"number":n=""+n;break;default:n=!lf(n)||c(n)||rt(n)?hr(n):n.toString()}return n}function ta(n){function t(n,t,i){return n[t]||(n[t]=i())}var u=l("$injector"),i=l("ng");return n=t(n,"angular",Object),n.$$minErr=n.$$minErr||l,t(n,"module",function(){var n={};return function(e,o,h){var c={};if("hasOwnProperty"===e)throw i("badname","module");return o&&n.hasOwnProperty(e)&&(n[e]=null),t(n,e,function(){function t(n,t,i,r){return r||(r=l),function(){return r[i||"push"]([n,t,arguments]),v}}function n(n,t,i){return i||(i=l),function(r,u){return u&&f(u)&&(u.$$moduleName=e),i.push([n,t,arguments]),v}}if(!o)throw u("nomod",e);var l=[],a=[],y=[],p=t("$injector","invoke","push",a),v={_invokeQueue:l,_configBlocks:a,_runBlocks:y,info:function(n){if(r(n)){if(!s(n))throw i("aobj","value");return c=n,this}return c},requires:o,name:e,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:n("$provide","decorator",a),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:p,run:function(n){return y.push(n),this}};return h&&p(h),v})}})}function vt(n,t){if(c(n)){t=t||[];for(var i=0,r=n.length;i<r;i++)t[i]=n[i]}else if(s(n))for(i in t=t||{},n)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=n[i]);return t||n}function ia(n,t){var i=[];return sf(t)&&(n=ni(n,null,t)),JSON.stringify(n,function(n,t){if(t=co(n,t),s(t)){if(0<=i.indexOf(t))return"...";i.push(t)}return t})}function ra(i){v(i,{errorHandlingConfig:al,bootstrap:po,copy:ni,extend:v,merge:yl,equals:st,element:e,forEach:t,injector:vr,noop:o,bind:sr,toJson:hr,fromJson:lo,identity:ir,isUndefined:u,isDefined:r,isString:h,isFunction:f,isObject:s,isNumber:d,isElement:af,isArray:c,version:gy,isDate:rt,lowercase:a,uppercase:ku,callbacks:{$$counter:0},getTestability:gl,reloadWithDebugInfo:dl,$$minErr:l,$$csp:hi,$$encodeUriSegment:cr,$$encodeUriQuery:et,$$stringify:wf});be=ta(n);be("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:bv});n.provider("$compile",es).directive({a:wc,input:rl,textarea:rl,form:aw,script:sk,select:lk,option:ak,ngBind:gw,ngBindHtml:tb,ngBindTemplate:nb,ngClass:rb,ngClassEven:fb,ngClassOdd:ub,ngCloak:eb,ngController:ob,ngForm:vw,ngHide:tk,ngIf:hb,ngInclude:cb,ngInit:ab,ngNonBindable:pb,ngPluralize:db,ngRepeat:gb,ngShow:nk,ngStyle:ik,ngSwitch:rk,ngSwitchWhen:uk,ngSwitchDefault:fk,ngOptions:kb,ngTransclude:ok,ngModel:el,ngList:vb,ngChange:ib,pattern:hl,ngPattern:hl,required:sl,ngRequired:sl,minlength:ll,ngMinlength:ll,maxlength:cl,ngMaxlength:cl,ngValue:dw,ngModelOptions:yb}).directive({ngInclude:lb}).directive(dr).directive(ul);n.provider({$anchorScroll:ca,$animate:yp,$animateCss:bp,$$animateJs:ap,$$animateQueue:vp,$$AnimateRunner:wp,$$animateAsyncRun:pp,$browser:va,$cacheFactory:ya,$controller:ba,$document:ka,$$isDocumentHidden:da,$exceptionHandler:ga,$filter:fh,$$forceReflow:dp,$interpolate:ev,$interval:ov,$http:iv,$httpParamSerializer:nv,$httpParamSerializerJQLike:tv,$httpBackend:uv,$xhrFactory:rv,$jsonpCallbacks:iw,$location:sv,$log:hv,$parse:av,$rootScope:wv,$q:vv,$$q:yv,$sce:gv,$sceDelegate:dv,$sniffer:ny,$templateCache:pa,$templateRequest:ty,$$testability:iy,$timeout:ry,$window:uy,$$rAF:pv,$$jqLite:sa,$$Map:ep,$$cookieReader:fy})}]).info({angularVersion:"1.6.4"})}function ar(n,t){return t.toUpperCase()}function uu(n){return n.replace(np,ar)}function bf(n){return n=n.nodeType,1===n||!n||9===n}function ko(n,i){var u,r,f=i.createDocumentFragment(),e=[];if(de.test(n)){for(u=f.appendChild(i.createElement("div")),r=(rp.exec(n)||["",""])[1].toLowerCase(),r=ht[r]||ht._default,u.innerHTML=r[1]+n.replace(up,"<$1><\/$2>")+r[2],r=r[0];r--;)u=u.lastChild;e=or(e,u.childNodes);u=f.firstChild;u.textContent=""}else e.push(i.createTextNode(n));return f.textContent="",f.innerHTML="",t(e,function(n){f.appendChild(n)}),f}function w(t){var i,r;if(t instanceof w)return t;if(h(t)&&(t=y(t),i=!0),!(this instanceof w)){if(i&&"<"!==t.charAt(0))throw ke("nosel");return new w(t)}i?(i=n.document,t=(r=ip.exec(t))?[i.createElement(r[1])]:(r=ko(t,i))?r.childNodes:[],ne(this,t)):f(t)?is(t):ne(this,t)}function kf(n){return n.cloneNode(!0)}function fu(n,t){!t&&bf(n)&&e.cleanData([n]);n.querySelectorAll&&e.cleanData(n.querySelectorAll("*"))}function go(n,i,u,f){var e,o,s;if(r(f))throw ke("offargs");if(e=(f=eu(n))&&f.events,o=f&&f.handle,o)if(i)s=function(t){var i=e[t];r(u)&&er(i||[],u);r(u)&&i&&0<i.length||(n.removeEventListener(t,o),delete e[t])},t(i.split(" "),function(n){s(n);nf[n]&&s(nf[n])});else for(i in e)"$destroy"!==i&&n.removeEventListener(i,o),delete e[i]}function df(n,t){var r=n.ng339,i=r&&di[r];i&&(t?delete i.data[t]:(i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),go(n)),delete di[r],n.ng339=void 0))}function eu(n,t){var i=n.ng339,i=i&&di[i];return t&&!i&&(n.ng339=i=++rc,i=di[i]={events:{},data:{},handle:void 0}),i}function gf(n,t,i){if(bf(n)){var u,f=r(i),e=!f&&t&&!s(t),o=!t;if(n=(n=eu(n,!e))&&n.data,f)n[uu(t)]=i;else{if(o)return n;if(e)return n&&n[uu(t)];for(u in t)n[uu(u)]=t[u]}}}function ou(n,t){return n.getAttribute?-1<(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" "):!1}function su(n,i){i&&n.setAttribute&&t(i.split(" "),function(t){n.setAttribute("class",y((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+y(t)+" "," ")))})}function hu(n,i){if(i&&n.setAttribute){var r=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");t(i.split(" "),function(n){n=y(n);-1===r.indexOf(" "+n+" ")&&(r+=n+" ")});n.setAttribute("class",y(r))}}function ne(n,t){var i,r;if(t)if(t.nodeType)n[n.length++]=t;else if(i=t.length,"number"==typeof i&&t.window!==t){if(i)for(r=0;r<i;r++)n[n.length++]=t[r]}else n[n.length++]=t}function ns(n,t){return cu(n,"$"+(t||"ngController")+"Controller")}function cu(n,t,i){for(9===n.nodeType&&(n=n.documentElement),t=c(t)?t:[t];n;){for(var u=0,f=t.length;u<f;u++)if(r(i=e.data(n,t[u])))return i;n=n.parentNode||11===n.nodeType&&n.host}}function ts(n){for(fu(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function lu(n,t){t||fu(n);var i=n.parentNode;i&&i.removeChild(n)}function ua(t,i){if(i=i||n,"complete"===i.document.readyState)i.setTimeout(t);else e(i).on("load",t)}function is(t){function i(){n.document.removeEventListener("DOMContentLoaded",i);n.removeEventListener("load",i);t()}"complete"===n.document.readyState?n.setTimeout(t):(n.document.addEventListener("DOMContentLoaded",i),n.addEventListener("load",i))}function rs(n,t){var i=tf[t.toLowerCase()];return i&&ge[lt(n)]&&i}function fa(n,t){var i=function(i,r){var f,e,s,h,o;if(i.isDefaultPrevented=function(){return i.defaultPrevented},f=t[r||i.type],e=f?f.length:0,e)for(u(i.immediatePropagationStopped)&&(s=i.stopImmediatePropagation,i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0;i.stopPropagation&&i.stopPropagation();s&&s.call(i)}),i.isImmediatePropagationStopped=function(){return!0===i.immediatePropagationStopped},h=f.specialHandlerWrapper||ea,1<e&&(f=vt(f)),o=0;o<e;o++)i.isImmediatePropagationStopped()||h(n,i,f[o])};return i.elem=n,i}function ea(n,t,i){i.call(n,t)}function oa(n,t,i){var r=t.relatedTarget;r&&(r===n||fp.call(n,r))||i.call(n,t)}function sa(){this.$get=function(){return v(w,{hasClass:function(n,t){return n.attr&&(n=n[0]),ou(n,t)},addClass:function(n,t){return n.attr&&(n=n[0]),hu(n,t)},removeClass:function(n,t){return n.attr&&(n=n[0]),su(n,t)}})}}function vi(n,t){var i=n&&n.$$hashKey;return i?("function"==typeof i&&(i=n.$$hashKey()),i):(i=typeof n,"function"===i||"object"===i&&null!==n?n.$$hashKey=i+":"+(t||vl)():i+":"+n)}function us(){this._keys=[];this._values=[];this._lastKey=NaN;this._lastIndex=-1}function fs(n){return n=Function.prototype.toString.call(n).replace(lp,""),n.match(op)||n.match(sp)}function ha(n){return(n=fs(n))?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function vr(n,i){function l(n){return function(i,r){if(s(i))t(i,so(n));else return n(i,r)}}function b(n,t){if(ai(n,"service"),(f(t)||c(t))&&(t=e.instantiate(t)),!t.$get)throw ci("pget",n);return o[n+"Provider"]=t}function it(n,t){return function(){var i=r.invoke(t,this);if(u(i))throw ci("undef",n);return i}}function v(n,t,i){return b(n,{$get:!1!==i?it(n,t):t})}function k(n){lr(u(n)||c(n),"modulesToLoad","not an array");var o=[],i;return t(n,function(n){function u(n){for(var i,r,t=0,u=n.length;t<u;t++)i=n[t],r=e.get(i[0]),r[i[1]].apply(r,i[2])}if(!g.get(n)){g.set(n,!0);try{h(n)?(i=be(n),r.modules[n]=i,o=o.concat(k(i.requires)).concat(i._runBlocks),u(i._invokeQueue),u(i._configBlocks)):f(n)?o.push(e.invoke(n)):c(n)?o.push(e.invoke(n)):iu(n,"module")}catch(t){throw c(n)&&(n=n[n.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),ci("modulerr",n,t.stack||t.message||t);}}}),o}function d(n,t){function r(i,r){if(n.hasOwnProperty(i)){if(n[i]===y)throw ci("cdep",i+" <- "+a.join(" <- "));return n[i]}try{return a.unshift(i),n[i]=y,n[i]=t(i,r),n[i]}catch(u){throw n[i]===y&&delete n[i],u;}finally{a.shift()}}function u(n,t,u){var o=[],e,s,f;for(n=vr.$$annotate(n,i,u),e=0,s=n.length;e<s;e++){if(f=n[e],"string"!=typeof f)throw ci("itkn",f);o.push(t&&t.hasOwnProperty(f)?t[f]:r(f,u))}return o}return{invoke:function(n,t,i,r){if("string"==typeof i&&(r=i,i=null),i=u(n,i,r),c(n)&&(n=n[n.length-1]),r=n,wt||"function"!=typeof r)r=!1;else{var f=r.$$ngIsClass;gt(f)||(f=r.$$ngIsClass=/^(?:class\b|constructor\()/.test(Function.prototype.toString.call(r)));r=f}return r?(i.unshift(null),new(Function.prototype.bind.apply(n,i))):n.apply(t,i)},instantiate:function(n,t,i){var r=c(n)?n[n.length-1]:n;return n=u(n,t,i),n.unshift(null),new(Function.prototype.bind.apply(r,n))},get:r,annotate:vr.$$annotate,has:function(t){return o.hasOwnProperty(t+"Provider")||n.hasOwnProperty(t)}}}var tt,r;i=!0===i;var y={},a=[],g=new rf,o={$provide:{provider:l(b),factory:l(v),service:l(function(n,t){return v(n,["$injector",function(n){return n.instantiate(t)}])}),value:l(function(n,t){return v(n,ot(t),!1)}),constant:l(function(n,t){ai(n,"constant");o[n]=t;nt[n]=t}),decorator:function(n,t){var i=e.get(n+"Provider"),u=i.$get;i.$get=function(){var n=r.invoke(u,i);return r.invoke(t,null,{$delegate:n})}}}},e=o.$injector=d(o,function(n,t){ft.isString(t)&&a.push(t);throw ci("unpr",a.join(" <- "));}),nt={},w=d(nt,function(n,t){var i=e.get(n+"Provider",t);return r.invoke(i.$get,i,void 0,n)}),r=w;return o.$injectorProvider={$get:ot(w)},r.modules=e.modules=p(),tt=k(n),r=w.get("$injector"),r.strictDi=i,t(tt,function(n){n&&r.invoke(n)}),r}function ca(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,r){function s(n){var t=null;return Array.prototype.some.call(n,function(n){if("a"===lt(n))return t=n,!0}),t}function u(n){if(n){n.scrollIntoView();var i;i=e.yOffset;f(i)?i=i():af(i)?(i=i[0],i="fixed"!==t.getComputedStyle(i).position?0:i.getBoundingClientRect().bottom):d(i)||(i=0);i&&(n=n.getBoundingClientRect().top,t.scrollBy(0,n-i))}else t.scrollTo(0,0)}function e(n){n=h(n)?n:d(n)?n.toString():i.hash();var t;n?(t=o.getElementById(n))?u(t):(t=s(o.getElementsByName(n)))?u(t):"top"===n&&u(null):u(null)}var o=t.document;return n&&r.$watch(function(){return i.hash()},function(n,t){n===t&&""===n||ua(function(){r.$evalAsync(e)})}),e}]}function yr(n,t){return!n&&!t?"":n?t?(c(n)&&(n=n.join(" ")),c(t)&&(t=t.join(" ")),n+" "+t):n:t}function la(n){h(n)&&(n=n.split(" "));var i=p();return t(n,function(n){n.length&&(i[n]=!0)}),i}function fi(n){return s(n)?n:{}}function aa(n,i,r,f){function k(n){try{n.apply(null,bt.call(arguments,1))}finally{if(l--,0===l)for(;b.length;)try{b.pop()()}catch(t){r.error(t)}}}function d(){v=null;tt()}function g(){h=ot();h=u(h)?null:h;st(h,nt)&&(h=nt);y=nt=h}function tt(){var n=y;g();(a!==s.url()||n!==h)&&(a=s.url(),y=h,t(it,function(n){n(s.url(),h)}))}var s=this,c=n.location,p=n.history,ut=n.setTimeout,ft=n.clearTimeout,w={},l,b;s.isMock=!1;l=0;b=[];s.$$completeOutstandingRequest=k;s.$$incOutstandingRequestCount=function(){l++};s.notifyWhenNoOutstandingRequests=function(n){0===l?n():b.push(n)};var h,y,a=c.href,et=i.find("base"),v=null,ot=f.history?function(){try{return p.state}catch(n){}}:o;g();s.url=function(t,i,r){var o,e;return(u(r)&&(r=null),c!==n.location&&(c=n.location),p!==n.history&&(p=n.history),t)?(o=y===r,a===t&&(!f.history||o))?s:(e=a&&ei(a)===ei(t),a=t,y=r,!f.history||e&&o?(e||(v=t),i?c.replace(t):e?(i=c,r=t.indexOf("#"),r=-1===r?"":t.substr(r),i.hash=r):c.href=t,c.href!==t&&(v=t)):(p[i?"replaceState":"pushState"](r,"",t),g()),v&&(v=t),s):v||c.href.replace(/%27/g,"'")};s.state=function(){return h};var it=[],rt=!1,nt=null;s.onUrlChange=function(t){if(!rt){if(f.history)e(n).on("popstate",d);e(n).on("hashchange",d);rt=!0}return it.push(t),t};s.$$applicationDestroyed=function(){e(n).off("hashchange popstate",d)};s.$$checkUrlChange=tt;s.baseHref=function(){var n=et.attr("href");return n?n.replace(/^(https?:)?\/\/[^/]*/,""):""};s.defer=function(n,t){var i;return l++,i=ut(function(){delete w[i];k(n)},t||0),w[i]=!0,i};s.defer.cancel=function(n){return w[n]?(delete w[n],ft(n),k(o),!0):!1}}function va(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new aa(n,r,t,i)}]}function ya(){this.$get=function(){function i(t,i){function a(n){n!==o&&(r?r===n&&(r=n.n):r=n,c(n.n,n.p),c(n,o),o=n,o.n=null)}function c(n,t){n!==t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw l("$cacheFactory")("iid",t);var s=0,y=v({},i,{id:t}),f=p(),h=i&&i.capacity||Number.MAX_VALUE,e=p(),o=null,r=null;return n[t]={put:function(n,t){if(!u(t)){if(h<Number.MAX_VALUE){var i=e[n]||(e[n]={key:n});a(i)}return n in f||s++,f[n]=t,s>h&&this.remove(r.key),t}},get:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;a(t)}return f[n]},remove:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;t===o&&(o=t.p);t===r&&(r=t.n);c(t.n,t.p);delete e[n]}n in f&&(delete f[n],s--)},removeAll:function(){f=p();s=0;e=p();o=r=null},destroy:function(){e=y=f=null;delete n[t]},info:function(){return v({},y,{size:s})}}}var n={};return i.info=function(){var i={};return t(n,function(n,t){i[t]=n.info()}),i},i.get=function(t){return n[t]},i}}function pa(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function es(i,l){function it(n,i,r){var f=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,u=p();return t(n,function(n,t){if(n in rt)u[t]=rt[n];else{var e=n.match(f);if(!e)throw k("iscp",i,t,n,r?"controller bindings definition":"isolate scope definition");u[t]={mode:e[1][0],collection:"*"===e[2],optional:"?"===e[3],attrName:e[4]||t};e[4]&&(rt[n]=u[t])}}),u}function et(n){var t=n.charAt(0);if(!t||t!==a(t))throw k("baddir",n);if(n!==n.trim())throw k("baddir",n);}function ht(n){var i=n.require||n.controller&&n.name;return!c(i)&&s(i)&&t(i,function(n,t){var r=n.match(ft);n.substring(r[0].length)||(i[t]=r[0]+t)}),i}var b={},ct=/^\s*directive:\s*([\w-]+)\s+(.*)$/,vt=/(([\w-]+)(?::([^;]+))?;?)/,kt=wl("ngSrc,ngSrcset,src,srcset"),ft=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,dt=/^(on[a-z]+|formaction)$/,rt=p(),w,g,d,nt,tt;this.directive=function ni(n,r){return lr(n,"name"),ai(n,"directive"),h(n)?(et(n),lr(r,"directiveFactory"),b.hasOwnProperty(n)||(b[n]=[],i.factory(n+"Directive",["$injector","$exceptionHandler",function(i,r){var u=[];return t(b[n],function(t,e){var o,c,s;try{if(o=i.invoke(t),f(o)?o={compile:ot(o)}:!o.compile&&o.link&&(o.compile=ot(o.link)),o.priority=o.priority||0,o.index=e,o.name=o.name||n,o.require=ht(o),c=o,s=o.restrict,s&&(!h(s)||!/[EACM]/.test(s)))throw k("badrestrict",s,n);c.restrict=s||"EA";o.$$moduleName=t.$$moduleName;u.push(o)}catch(l){r(l)}}),u}])),b[n].push(r)):t(n,so(ni)),this};this.component=function(n,i){function r(n){function r(t){return f(t)||c(t)?function(i,r){return n.invoke(t,this,{$element:i,$attrs:r})}:t}var o=i.template||i.templateUrl?i.template:"",e={controller:u,controllerAs:wa(i.controller)||i.controllerAs||"$ctrl",template:r(o),templateUrl:r(i.templateUrl),transclude:i.transclude,scope:{},bindToController:i.bindings||{},restrict:"E",require:i.require};return t(i,function(n,t){"$"===t.charAt(0)&&(e[t]=n)}),e}var u=i.controller||function(){};return t(i,function(n,t){"$"===t.charAt(0)&&(r[t]=n,f(u)&&(u[t]=n))}),r.$inject=["$injector"],this.directive(n,r)};this.aHrefSanitizationWhitelist=function(n){return r(n)?(l.aHrefSanitizationWhitelist(n),this):l.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return r(n)?(l.imgSrcSanitizationWhitelist(n),this):l.imgSrcSanitizationWhitelist()};w=!0;this.debugInfoEnabled=function(n){return r(n)?(w=n,this):w};g=!1;this.preAssignBindingsEnabled=function(n){return r(n)?(g=n,this):g};d=10;this.onChangesTtl=function(n){return arguments.length?(d=n,this):d};nt=!0;this.commentDirectivesEnabled=function(n){return arguments.length?(nt=n,this):nt};tt=!0;this.cssClassDirectivesEnabled=function(n){return arguments.length?(tt=n,this):tt};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(i,l,rt,et,ot,ht,ni,ti,ii,ui){function wr(){try{if(!--ar)throw ei=void 0,k("infchng",d);ni.$apply(function(){for(var n=[],t=0,i=ei.length;t<i;++t)try{ei[t]()}catch(r){n.push(r)}if(ei=void 0,n.length)throw n;})}finally{ar++}}function vi(n,t){if(t)for(var u=Object.keys(t),r,i=0,f=u.length;i<f;i++)r=u[i],this[r]=t[r];else this.$attr={};this.$$element=n}function br(n,t,i){cr.innerHTML="<span "+t+">";t=cr.firstChild.attributes;var r=t[0];t.removeNamedItem(r.name);r.value=i;n.attributes.setNamedItem(r)}function yi(n,t){try{n.addClass(t)}catch(i){}}function fi(n,t,i,r,u){var o,f;return n instanceof e||(n=e(n)),o=pi(n,t,n,i,r,u),fi.$$addScopeClass(n),f=null,function(t,i,r){var s,h,c;if(!n)throw k("multilink");if(lr(t,"scope"),u&&u.needsNewScope&&(t=t.$parent.$new()),r=r||{},s=r.parentBoundTranscludeFn,h=r.transcludeControllers,r=r.futureParentElement,s&&s.$$boundTransclude&&(s=s.$$boundTransclude),f||(f=(r=r&&r[0])?"foreignobject"!==lt(r)&&ut.call(r).match(/SVG/)?"svg":"html":"html"),r="html"!==f?e(ki(f,e("<div>").append(n).html())):i?gi.clone.call(n):n,h)for(c in h)r.data("$"+c+"Controller",h[c].instance);return fi.$$addScopeInfo(r,t),i&&i(r,t),o&&o(t,r,r,s),i||(n=o=null),r}}function pi(n,t,i,r,u,f){function p(n,i,r,u){var o,h,c,f,a,y,l;if(v)for(l=Array(i.length),f=0;f<s.length;f+=3)o=s[f],l[o]=i[o];else l=i;for(f=0,a=s.length;f<a;)h=l[s[f++]],i=s[f++],o=s[f++],i?(i.scope?(c=n.$new(),fi.$$addScopeInfo(e(h),c)):c=n,y=i.transcludeOnThisElement?si(n,i.transclude,u):!i.templateOnThisElement&&u?u:!u&&t?si(n,t):null,i(o,c,h,r,y)):o&&o(n,h.childNodes,void 0,u)}for(var s=[],w=c(n)||n instanceof e,h,l,a,y,v,o=0;o<n.length;o++)h=new vi,11===wt&&kr(n,o,w),l=wi(n[o],[],h,0===o?r:void 0,u),(f=l.length?tr(l,n[o],h,t,i,null,[],[],f):null)&&f.scope&&fi.$$addScopeClass(h.$$element),h=f&&f.terminal||!(a=n[o].childNodes)||!a.length?null:pi(a,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:t),(f||h)&&(s.push(o,f,h),y=!0,v=v||f),f=null;return y?p:null}function kr(n,t,i){var u=n[t],f=u.parentNode,r;if(u.nodeType===ri)for(;;){if(r=f?u.nextSibling:n[t+1],!r||r.nodeType!==ri)break;u.nodeValue+=r.nodeValue;r.parentNode&&r.parentNode.removeChild(r);i&&r===n[t+1]&&n.splice(t+1,1)}}function si(n,t,i){function u(r,u,f,e,o){return r||(r=n.$new(!1,o),r.$$transcluded=!0),t(r,u,{parentBoundTranscludeFn:i,transcludeControllers:f,futureParentElement:e})}var f=u.$$slots=p(),r;for(r in t.$$slots)f[r]=t.$$slots[r]?si(n,t.$$slots[r],i):null;return u}function wi(n,t,i,r,u){var o=i.$attr,c,w,b;switch(n.nodeType){case 1:c=lt(n);ci(t,yt(c),"E",r,u);for(var f,e,l,a,v=n.attributes,p=0,k=v&&v.length;p<k;p++)w=!1,b=!1,f=v[p],e=f.name,l=f.value,f=yt(e),(a=hu.test(f))&&(e=e.replace(ec,"").substr(8).replace(/_(.)/g,function(n,t){return t.toUpperCase()})),(f=f.match(cu))&&nu(f[1])&&(w=e,b=e.substr(0,e.length-5)+"end",e=e.substr(0,e.length-6)),f=yt(e.toLowerCase()),o[f]=e,(a||!i.hasOwnProperty(f))&&(i[f]=l,rs(n,f)&&(i[f]=!0)),fu(n,t,l,f,a),ci(t,f,"A",r,u,w,b);if("input"===c&&"hidden"===n.getAttribute("type")&&n.setAttribute("autocomplete","off"),!su)break;if(o=n.className,s(o)&&(o=o.animVal),h(o)&&""!==o)for(;n=vt.exec(o);)f=yt(n[2]),ci(t,f,"C",r,u)&&(i[f]=y(n[3])),o=o.substr(n.index+n[0].length);break;case ri:ru(t,n.nodeValue);break;case 8:if(!ou)break;dr(n,t,i,r,u)}return t.sort(iu),t}function dr(n,t,i,r,u){var f,e;try{f=ct.exec(n.nodeValue);f&&(e=yt(f[1]),ci(t,e,"M",r,u)&&(i[e]=y(f[2])))}catch(o){}}function di(n,t,i){var r=[],u=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw k("uterdir",t,i);1===n.nodeType&&(n.hasAttribute(t)&&u++,n.hasAttribute(i)&&u--);r.push(n);n=n.nextSibling}while(0<u)}else r.push(n);return e(r)}function nr(n,t,i){return function(r,u,f,e,o){return u=di(u[0],t,i),n(r,u,f,e,o)}}function bi(n,t,i,r,u,f){var e;return n?fi(t,i,r,u,f):function(){return e||(e=fi(t,i,r,u,f),t=i=f=null),e.apply(this,arguments)}}function tr(n,i,r,o,h,l,a,w,b){function tr(n,t,i,r){n&&(i&&(n=nr(n,i,r)),n.require=d.require,n.directiveName=st,(nt===d||d.$$isolateScope)&&(n=or(n,{isolateScope:!0})),a.push(n));t&&(i&&(t=nr(t,i,r)),t.require=d.require,t.directiveName=st,(nt===d||d.$$isolateScope)&&(t=or(t,{isolateScope:!0})),w.push(t))}function pt(n,o,h,l,y){function yt(n,t,i,r){var e,f;if(fr(n)||(r=i,i=t,t=n,n=void 0),ii&&(e=ut),i||(i=ii?b.parent():b),r){if(f=y.$$slots[r],f)return f(n,t,e,i,lt);if(u(f))throw k("noslot",r,at(b));}else return y(n,t,e,i,lt)}var tt,d,p,it,et,ut,st,b,ct,vt,lt;i===h?(l=r,b=r.$$element):(b=e(h),l=new vi(b,r));et=o;nt?it=o.$new(!0):ft&&(et=o.$parent);y&&(st=yt,st.$$boundTransclude=y,st.isSlotFilled=function(n){return!!y.$$slots[n]});ot&&(ut=gr(b,l,st,ot,it,o,nt));nt&&(fi.$$addScopeInfo(b,it,!0,!(ht&&(ht===nt||ht===nt.$$originalDirective))),fi.$$addScopeClass(b,!0),it.$$isolateBindings=nt.$$isolateBindings,d=ai(o,l,it,it.$$isolateBindings,nt),d.removeWatches&&it.$on("$destroy",d.removeWatches));for(tt in ut)d=ot[tt],p=ut[tt],ct=d.$$bindings.bindToController,g?(p.bindingInfo=ct?ai(et,l,p.instance,ct,d):{},vt=p(),vt!==p.instance&&(p.instance=vt,b.data("$"+d.name+"Controller",vt),p.bindingInfo.removeWatches&&p.bindingInfo.removeWatches(),p.bindingInfo=ai(et,l,p.instance,ct,d))):(p.instance=p(),b.data("$"+d.name+"Controller",p.instance),p.bindingInfo=ai(et,l,p.instance,ct,d));for(t(ot,function(n,t){var i=n.require;n.bindToController&&!c(i)&&s(i)&&v(ut[t].instance,hi(t,i,b,ut))}),t(ut,function(n){var t=n.instance;if(f(t.$onChanges))try{t.$onChanges(n.bindingInfo.initialChanges)}catch(i){rt(i)}if(f(t.$onInit))try{t.$onInit()}catch(r){rt(r)}f(t.$doCheck)&&(et.$watch(function(){t.$doCheck()}),t.$doCheck());f(t.$onDestroy)&&et.$on("$destroy",function(){t.$onDestroy()})}),tt=0,d=a.length;tt<d;tt++)p=a[tt],hr(p,p.isolateScope?it:o,b,l,p.require&&hi(p.directiveName,p.require,b,ut),st);for(lt=o,nt&&(nt.template||null===nt.templateUrl)&&(lt=it),n&&n(lt,h.childNodes,void 0,y),tt=w.length-1;0<=tt;tt--)p=w[tt],hr(p,p.isolateScope?it:o,b,l,p.require&&hi(p.directiveName,p.require,b,ut),st);t(ut,function(n){n=n.instance;f(n.$postLink)&&n.$postLink()})}var ni,ui,et,gi,ei,si,ir,ci;b=b||{};for(var gt=-Number.MAX_VALUE,ft=b.newScopeDirective,ot=b.controllerDirectives,nt=b.newIsolateScopeDirective,ht=b.templateDirective,ti=b.nonTlbTranscludeDirective,yi=!1,pi=!1,ii=b.hasElementTranscludeDirective,tt=r.$$element=e(i),d,st,ut,wt=o,kt,ct=!1,ri=!1,it,vt=0,dt=n.length;vt<dt;vt++){if(d=n[vt],ni=d.$$start,ui=d.$$end,ni&&(tt=di(i,ni,ui)),ut=void 0,gt>d.priority)break;if((it=d.scope)&&(d.templateUrl||(s(it)?(oi("new/isolated scope",nt||ft,d,tt),nt=d):oi("new/isolated scope",nt,d,tt)),ft=ft||d),st=d.name,!ct&&(d.replace&&(d.templateUrl||d.template)||d.transclude&&!d.$$tlb)){for(it=vt+1;ct=n[it++];)if(ct.transclude&&!ct.$$tlb||ct.replace&&(ct.templateUrl||ct.template)){ri=!0;break}ct=!0}if(!d.templateUrl&&d.controller&&(ot=ot||p(),oi("'"+st+"' controller",ot[st],d,tt),ot[st]=d),it=d.transclude)if(yi=!0,d.$$tlb||(oi("transclusion",ti,d,tt),ti=d),"element"===it)ii=!0,gt=d.priority,ut=tt,tt=r.$$element=e(fi.$$createComment(st,r[st])),i=tt[0],li(h,bt.call(ut,0),i),ut[0].$$parentNode=ut[0].parentNode,wt=bi(ri,ut,o,gt,l&&l.name,{nonTlbTranscludeDirective:ti});else{if(et=p(),s(it)){ut=[];gi=p();ei=p();t(it,function(n,t){var i="?"===n.charAt(0);n=i?n.substring(1):n;gi[n]=t;et[t]=null;ei[t]=i});t(tt.contents(),function(n){var t=gi[yt(lt(n))];t?(ei[t]=!0,et[t]=et[t]||[],et[t].push(n)):ut.push(n)});t(ei,function(n,t){if(!n)throw k("reqslot",t);});for(si in et)et[si]&&(et[si]=bi(ri,et[si],o))}else ut=e(kf(i)).contents();tt.empty();wt=bi(ri,ut,o,void 0,void 0,{needsNewScope:d.$$isolateScope||d.$$newScope});wt.$$slots=et}if(d.template)if(pi=!0,oi("template",ht,d,tt),ht=d,it=f(d.template)?d.template(tt,r):d.template,it=pr(it),d.replace){if(l=d,ut=de.test(it)?ss(ki(d.templateNamespace,y(it))):[],i=ut[0],1!==ut.length||1!==i.nodeType)throw k("tplrt",st,"");li(h,tt,i);dt={$attr:{}};it=wi(i,[],dt);ir=n.splice(vt+1,n.length-(vt+1));(nt||ft)&&rr(it,nt,ft);n=n.concat(it).concat(ir);ur(r,dt);dt=n.length}else tt.html(it);if(d.templateUrl)pi=!0,oi("template",ht,d,tt),ht=d,d.replace&&(l=d),pt=tu(n.splice(vt,n.length-vt),tt,r,h,yi&&wt,a,w,{controllerDirectives:ot,newScopeDirective:ft!==d&&ft,newIsolateScopeDirective:nt,templateDirective:ht,nonTlbTranscludeDirective:ti}),dt=n.length;else if(d.compile)try{kt=d.compile(tt,r,wt);ci=d.$$originalDirective||d;f(kt)?tr(null,sr(ci,kt),ni,ui):kt&&tr(sr(ci,kt.pre),sr(ci,kt.post),ni,ui)}catch(er){rt(er,at(tt))}d.terminal&&(pt.terminal=!0,gt=Math.max(gt,d.priority))}return pt.scope=ft&&!0===ft.scope,pt.transcludeOnThisElement=yi,pt.templateOnThisElement=pi,pt.transclude=wt,b.hasElementTranscludeDirective=ii,pt}function hi(n,i,r,u){var f,o,e,l;if(h(i)){if(e=i.match(ft),i=i.substring(e[0].length),o=e[1]||e[3],e="?"===e[2],"^^"===o?r=r.parent():f=(f=u&&u[i])&&f.instance,f||(l="$"+i+"Controller",f=o?r.inheritedData(l):r.data(l)),!f&&!e)throw k("ctreq",i,n);}else if(c(i))for(f=[],o=0,e=i.length;o<e;o++)f[o]=hi(n,i[o],r,u);else s(i)&&(f={},t(i,function(t,i){f[i]=hi(n,t,r,u)}));return f||null}function gr(n,t,i,r,u,f,e){var c=p(),l;for(l in r){var o=r[l],s={$scope:o===e||o.$$isolateScope?u:f,$element:n,$attrs:t,$transclude:i},h=o.controller;"@"===h&&(h=t[o.name]);s=ht(h,s,!0,o.controllerAs);c[o.name]=s;n.data("$"+o.name+"Controller",s.instance)}return c}function rr(n,t,i){for(var r=0,u=n.length;r<u;r++)n[r]=cf(n[r],{$$isolateScope:t,$$newScope:i})}function ci(n,t,r,f,e,o,h){var c,v,p;if(t===e)return null;if(c=null,b.hasOwnProperty(t))for(e=i.get(t+"Directive"),v=0,p=e.length;v<p;v++)if(t=e[v],(u(f)||f>t.priority)&&-1!==t.restrict.indexOf(r)){if(o&&(t=cf(t,{$$start:o,$$end:h})),!t.$$bindings){var l=c=t,y=t.name,a={isolateScope:null,bindToController:null};if(s(l.scope)&&(!0===l.bindToController?(a.bindToController=it(l.scope,y,!0),a.isolateScope={}):a.isolateScope=it(l.scope,y,!1)),s(l.bindToController)&&(a.bindToController=it(l.bindToController,y,!0)),a.bindToController&&!l.controller)throw k("noctrl",y);c=c.$$bindings=a;s(c.isolateScope)&&(t.$$isolateBindings=c.isolateScope)}n.push(t);c=t}return c}function nu(n){if(b.hasOwnProperty(n))for(var r=i.get(n+"Directive"),t=0,u=r.length;t<u;t++)if(n=r[t],n.multiElement)return!0;return!1}function ur(n,i){var r=i.$attr,u=n.$attr;t(n,function(t,u){"$"!==u.charAt(0)&&(i[u]&&i[u]!==t&&(t=t.length?t+(("style"===u?";":" ")+i[u]):i[u]),n.$set(u,t,!0,r[u]))});t(i,function(t,i){n.hasOwnProperty(i)||"$"===i.charAt(0)||(n[i]=t,"class"!==i&&"style"!==i&&(u[i]=r[i]))})}function tu(n,i,r,u,o,h,c,l){var v=[],p,w,b=i[0],a=n.shift(),g=cf(a,{templateUrl:null,transclude:null,replace:null,$$originalDirective:a}),d=f(a.templateUrl)?a.templateUrl(i,r):a.templateUrl,nt=a.templateNamespace;return i.empty(),et(d).then(function(f){var tt,rt,it,ft;if(f=pr(f),a.replace){if(f=de.test(f)?ss(ki(nt,y(f))):[],tt=f[0],1!==f.length||1!==tt.nodeType)throw k("tplrt",a.name,d);f={$attr:{}};li(u,i,tt);it=wi(tt,[],f);s(a.scope)&&rr(it,!0);n=it.concat(n);ur(r,f)}else tt=b,i.html(f);for(n.unshift(g),p=tr(n,tt,r,o,i,a,h,c,l),t(u,function(n,t){n===tt&&(u[t]=i[0])}),w=pi(i[0].childNodes,o);v.length;){f=v.shift();rt=v.shift();var et=v.shift(),ut=v.shift(),it=i[0];f.$$destroyed||(rt!==b&&(ft=rt.className,l.hasElementTranscludeDirective&&a.replace||(it=kf(tt)),li(et,e(rt),it),yi(e(it),ft)),rt=p.transcludeOnThisElement?si(f,p.transclude,ut):ut,p(w,f,it,u,rt))}v=null}).catch(function(n){n instanceof Error&&rt(n)}),function(n,t,i,r,u){n=u;t.$$destroyed||(v?v.push(t,i,r,n):(p.transcludeOnThisElement&&(n=si(t,p.transclude,u)),p(w,t,i,r,n)))}}function iu(n,t){var i=t.priority-n.priority;return 0!==i?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function oi(n,t,i,r){function u(n){return n?" (module: "+n+")":""}if(t)throw k("multidir",t.name,u(t.$$moduleName),i.name,u(i.$$moduleName),n,at(r));}function ru(n,t){var i=l(t,!0);i&&n.push({priority:0,compile:function(n){n=n.parent();var t=!!n.length;return t&&fi.$$addBindingClass(n),function(n,r){var u=r.parent();t||fi.$$addBindingClass(u);fi.$$addBindingInfo(u,i.expressions);n.$watch(i,function(n){r[0].nodeValue=n})}}})}function ki(t,i){t=a(t||"html");switch(t){case"svg":case"math":var r=n.document.createElement("div");return r.innerHTML="<"+t+">"+i+"<\/"+t+">",r.childNodes[0].childNodes;default:return i}}function uu(n,t){if("srcdoc"===t)return ti.HTML;var i=lt(n);if("src"===t||"ngSrc"===t){if(-1===["img","video","audio","source","track"].indexOf(i))return ti.RESOURCE_URL}else if("xlinkHref"===t||"form"===i&&"action"===t||"link"===i&&"href"===t)return ti.RESOURCE_URL}function fu(n,t,i,r,u){var e=uu(n,r),o=kt[r]||u,f=l(i,!u,e,o);if(f){if("multiple"===r&&"select"===lt(n))throw k("selmulti",at(n));if(dt.test(r))throw k("nodomevents");t.push({priority:100,compile:function(){return{pre:function(n,t,u){t=u.$$observers||(u.$$observers=p());var s=u[r];s!==i&&(f=s&&l(s,!0,e,o),i=s);f&&(u[r]=f(n),(t[r]||(t[r]=[])).$$inter=!0,(u.$$observers&&u.$$observers[r].$$scope||n).$watch(f,function(n,t){"class"===r&&n!==t?u.$updateClass(n,t):u.$set(r,n)}))}}}})}}function li(t,i,r){var f=i[0],s=i.length,c=f.parentNode,u,o,h;if(t)for(u=0,o=t.length;u<o;u++)if(t[u]===f){for(t[u++]=r,o=u+s-1,h=t.length;u<h;u++,o++)o<h?t[u]=t[o]:delete t[u];t.length-=s-1;t.context===f&&(t.context=r);break}for(c&&c.replaceChild(r,f),t=n.document.createDocumentFragment(),u=0;u<s;u++)t.appendChild(i[u]);for(e.hasData(f)&&(e.data(r,e.data(f)),e(f).off("$destroy")),e.cleanData(t.querySelectorAll("*")),u=1;u<s;u++)delete i[u];i[0]=r;i.length=1}function or(n,t){return v(function(){return n.apply(null,arguments)},n,t)}function hr(n,t,i,r,u,f){try{n(t,i,r,u,f)}catch(e){rt(e,at(i))}}function ai(n,i,r,u,e){function v(t,i,u){f(r.$onChanges)&&!vf(i,u)&&(ei||(n.$$postDigest(wr),ei=[]),s||(s={},ei.push(y)),s[t]&&(u=s[t].previousValue),s[t]=new au(u,i))}function y(){r.$onChanges(s);s=void 0}var c=[],a={},s;return t(u,function(t,u){var f=t.attrName,s=t.optional,p,y,g,b,d,w;switch(t.mode){case"@":s||pt.call(i,f)||(r[u]=i[f]=void 0);s=i.$observe(f,function(n){(h(n)||gt(n))&&(v(u,n,r[u]),r[u]=n)});i.$$observers[f].$$scope=n;p=i[f];h(p)?r[u]=l(p)(n):gt(p)&&(r[u]=p);a[u]=new au(to,r[u]);c.push(s);break;case"=":if(!pt.call(i,f)){if(s)break;i[f]=void 0}if(s&&!i[f])break;y=ot(i[f]);b=y.literal?st:vf;g=y.assign||function(){p=r[u]=y(n);throw k("nonassign",i[f],f,e.name);};p=r[u]=y(n);s=function(t){return b(t,r[u])||(b(t,p)?g(n,t=r[u]):r[u]=t),p=t};s.$stateful=!0;s=t.collection?n.$watchCollection(i[f],s):n.$watch(ot(i[f],s),null,y.literal);c.push(s);break;case"<":if(!pt.call(i,f)){if(s)break;i[f]=void 0}if(s&&!i[f])break;y=ot(i[f]);d=y.literal;w=r[u]=y(n);a[u]=new au(to,r[u]);s=n.$watch(y,function(n,t){if(t===n){if(t===w||d&&st(t,w))return;t=w}v(u,n,t);r[u]=n},d);c.push(s);break;case"&":if(y=i.hasOwnProperty(f)?ot(i[f]):o,y===o&&s)break;r[u]=function(t){return y(n,t)}}}),{initialChanges:a,removeWatches:c.length&&function(){for(var n=0,t=c.length;n<t;++n)c[n]()}}}var eu=/^\w/,cr=n.document.createElement("div"),ou=nt,su=tt,ar=d,ei;vi.prototype={$normalize:yt,$addClass:function(n){n&&0<n.length&&ii.addClass(this.$$element,n)},$removeClass:function(n){n&&0<n.length&&ii.removeClass(this.$$element,n)},$updateClass:function(n,t){var i=os(n,t);i&&i.length&&ii.addClass(this.$$element,i);(i=os(t,n))&&i.length&&ii.removeClass(this.$$element,i)},$set:function(n,i,f,e){var s=rs(this.$$element[0],n),o=no[n],l=n;if(s?(this.$$element.prop(n,i),e=s):o&&(this[o]=i,l=o),this[n]=i,e?this.$attr[n]=e:(e=this.$attr[n])||(this.$attr[n]=e=wo(n,"-")),s=lt(this.$$element),"a"===s&&("href"===n||"xlinkHref"===n)||"img"===s&&"src"===n)this[n]=i=ui(i,"src"===n);else if("img"===s&&"srcset"===n&&r(i)){for(var s="",o=y(i),h=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,h=/\s/.test(o)?h:/(,)/,o=o.split(h),h=Math.floor(o.length/2),c=0;c<h;c++)var a=2*c,s=s+ui(y(o[a]),!0),s=s+(" "+y(o[a+1]));o=y(o[2*c]).split(/\s/);s+=ui(y(o[0]),!0);2===o.length&&(s+=" "+y(o[1]));this[n]=i=s}!1!==f&&(null===i||u(i)?this.$$element.removeAttr(e):eu.test(e)?this.$$element.attr(e,i):br(this.$$element[0],e,i));(n=this.$$observers)&&t(n[l],function(n){try{n(i)}catch(t){rt(t)}})},$observe:function(n,t){var i=this,f=i.$$observers||(i.$$observers=p()),r=f[n]||(f[n]=[]);return r.push(t),ni.$evalAsync(function(){r.$$inter||!i.hasOwnProperty(n)||u(i[n])||t(i[n])}),function(){er(r,t)}}};var vr=l.startSymbol(),yr=l.endSymbol(),pr="{{"===vr&&"}}"===yr?ir:function(n){return n.replace(/\{\{/g,vr).replace(/}}/g,yr)},hu=/^ngAttr[A-Z]/,cu=/^(.+)Start$/;return fi.$$addBindingInfo=w?function(n,t){var i=n.data("$binding")||[];c(t)?i=i.concat(t):i.push(t);n.data("$binding",i)}:o,fi.$$addBindingClass=w?function(n){yi(n,"ng-binding")}:o,fi.$$addScopeInfo=w?function(n,t,i,r){n.data(i?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:o,fi.$$addScopeClass=w?function(n,t){yi(n,t?"ng-isolate-scope":"ng-scope")}:o,fi.$$createComment=function(t,i){var r="";return w&&(r=" "+(t||"")+": ",i&&(r+=i+" ")),n.document.createComment(r)},fi}]}function au(n,t){this.previousValue=n;this.currentValue=t}function yt(n){return n.replace(ec,"").replace(kp,ar)}function os(n,t){var r="",e=n.split(/\s+/),o=t.split(/\s+/),u=0,f,i;n:for(;u<e.length;u++){for(f=e[u],i=0;i<o.length;i++)if(f===o[i])continue n;r+=(0<r.length?" ":"")+f}return r}function ss(n){var t,i;if(n=e(n),t=n.length,1>=t)return n;for(;t--;)i=n[t],(8===i.nodeType||i.nodeType===ri&&""===i.nodeValue.trim())&&yy.call(n,t,1);return n}function wa(n,t){if(t&&h(t))return t;if(h(n)){var i=sc.exec(n);if(i)return i[3]}}function ba(){var n={},t=!1;this.has=function(t){return n.hasOwnProperty(t)};this.register=function(t,i){ai(t,"controller");s(t)?v(n,t):n[t]=i};this.allowGlobals=function(){t=!0};this.$get=["$injector","$window",function(i,r){function u(n,t,i,r){if(!n||!s(n.$scope))throw l("$controller")("noscp",r,t);n.$scope[t]=i}return function(e,o,l,a){var p,y,w;if(l=!0===l,a&&h(a)&&(w=a),h(e)){if(a=e.match(sc),!a)throw oc("ctrlfmt",e);if(y=a[1],w=w||a[3],e=n.hasOwnProperty(y)?n[y]:bo(o.$scope,y,!0)||(t?bo(r,y,!0):void 0),!e)throw oc("ctrlreg",y);iu(e,y,!0)}return l?(l=(c(e)?e[e.length-1]:e).prototype,p=Object.create(l||null),w&&u(o,w,p,y||e.name),v(function(){var n=i.invoke(e,p,o,y);return n!==p&&(s(n)||f(n))&&(p=n,w&&u(o,w,p,y||e.name)),p},{instance:p,identifier:w})):(p=i.instantiate(e,o,y),w&&u(o,w,p,y||e.name),p)}}]}function ka(){this.$get=["$window",function(n){return e(n.document)}]}function da(){this.$get=["$document","$rootScope",function(n,t){function r(){u=i.hidden}var i=n[0],u=i&&i.hidden;n.on("visibilitychange",r);return t.$on("$destroy",function(){n.off("visibilitychange",r)}),function(){return u}}]}function ga(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function te(n){return s(n)?rt(n)?n.toISOString():hr(n):n}function nv(){this.$get=function(){return function(n){if(!n)return"";var i=[];return oo(n,function(n,r){null===n||u(n)||(c(n)?t(n,function(n){i.push(et(r)+"="+et(te(n)))}):i.push(et(r)+"="+et(te(n))))}),i.join("&")}}}function tv(){this.$get=function(){return function(n){function i(n,f,e){null===n||u(n)||(c(n)?t(n,function(n,t){i(n,f+"["+(s(n)?t:"")+"]")}):s(n)&&!rt(n)?oo(n,function(n,t){i(n,f+(e?"":"[")+t+(e?"":"]"))}):r.push(et(f)+"="+et(te(n))))}if(!n)return"";var r=[];return i(n,"",!0),r.join("&")}}}function ie(n,t){var r,i;if(h(n)&&(r=n.replace(tw,"").trim(),r&&(i=t("Content-Type"),(i=i&&0===i.indexOf(hc))||(i=(i=r.match(gp))&&nw[i[0]].test(r)),i)))try{n=lo(r)}catch(u){throw ro("baddata",n,u);}return n}function hs(n){var i=p(),r;return h(n)?t(n.split("\n"),function(n){r=n.indexOf(":");var t=a(y(n.substr(0,r)));n=y(n.substr(r+1));t&&(i[t]=i[t]?i[t]+", "+n:n)}):s(n)&&t(n,function(n,t){var r=a(t),u=y(n);r&&(i[r]=i[r]?i[r]+", "+u:u)}),i}function cs(n){var t;return function(i){return t||(t=hs(n)),i?(i=t[a(i)],void 0===i&&(i=null),i):t}}function ls(n,i,r,u){return f(u)?u(n,i,r):(t(u,function(t){n=t(n,i,r)}),n)}function iv(){var n=this.defaults={transformResponse:[ie],transformRequest:[function(n){return s(n)&&"[object File]"!==ut.call(n)&&"[object Blob]"!==ut.call(n)&&"[object FormData]"!==ut.call(n)?hr(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:vt(io),put:vt(io),patch:vt(io)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},i=!1,e;this.useApplyAsync=function(n){return r(n)?(i=!!n,this):i};e=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(y,p,w,b,k,d,g,nt){function tt(i){function p(n,t){for(var u,f,i=0,r=t.length;i<r;)u=t[i++],f=t[i++],n=n.then(u,f);return t.length=0,n}function b(n,i){var r,u={};return t(n,function(n,t){f(n)?(r=n(i),null!=r&&(u[t]=r)):u[t]=n}),u}function w(n){var t=v({},n);return t.data=ls(n.data,n.headers,n.status,r.transformResponse),n=n.status,200<=n&&300>n?t:d.reject(t)}var r,e,c;if(!s(i))throw l("$http")("badreq",i);if(!h(nt.valueOf(i.url)))throw l("$http")("badreq",i.url);return r=v({method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse,paramSerializer:n.paramSerializer,jsonpCallbackParam:n.jsonpCallbackParam},i),r.headers=function(t){var i=n.headers,u=v({},t.headers),r,f,e,i=v({},i.common,i[a(t.method)]);n:for(r in i){f=a(r);for(e in u)if(a(e)===f)continue n;u[r]=i[r]}return b(u,vt(t))}(i),r.method=ku(r.method),r.paramSerializer=h(r.paramSerializer)?g.get(r.paramSerializer):r.paramSerializer,y.$$incOutstandingRequestCount(),e=[],c=[],i=d.resolve(r),t(it,function(n){(n.request||n.requestError)&&e.unshift(n.request,n.requestError);(n.response||n.responseError)&&c.push(n.response,n.responseError)}),i=p(i,e),i=i.then(function(i){var r=i.headers,f=ls(i.data,cs(r),void 0,i.transformRequest);return u(f)&&t(r,function(n,t){"content-type"===a(t)&&delete r[t]}),u(i.withCredentials)&&!u(n.withCredentials)&&(i.withCredentials=n.withCredentials),rt(i,f).then(w,w)}),i=p(i,c),i.finally(function(){y.$$completeOutstandingRequest(o)})}function rt(e,o){function rt(n){if(n){var r={};return t(n,function(n,t){r[t]=function(t){function r(){n(t)}i?k.$applyAsync(r):k.$$phase?r():k.$apply(r)}}),r}}function lt(n,t,r,u){function f(){b(t,n,r,u)}y&&(200<=n&&300>n?y.put(v,[n,t,hs(r),u]):y.remove(v));i?k.$applyAsync(f):(f(),k.$$phase||k.$apply())}function b(n,t,i,r){t=-1<=t?t:0;(200<=t&&300>t?g.resolve:g.reject)({data:n,status:t,headers:cs(i),config:e,statusText:r})}function ot(n){b(n.data,n.status,vt(n.headers()),n.statusText)}function st(){var n=tt.pendingRequests.indexOf(e);-1!==n&&tt.pendingRequests.splice(n,1)}var g=d.defer(),it=g.promise,y,l,ht=e.headers,ct="jsonp"===a(e.method),v=e.url;return ct?v=nt.getTrustedResourceUrl(v):h(v)||(v=nt.valueOf(v)),v=ut(v,e.paramSerializer(e.params)),ct&&(v=ft(v,e.jsonpCallbackParam)),tt.pendingRequests.push(e),it.then(st,st),(e.cache||n.cache)&&!1!==e.cache&&("GET"===e.method||"JSONP"===e.method)&&(y=s(e.cache)?e.cache:s(n.cache)?n.cache:et),y&&(l=y.get(v),r(l)?l&&f(l.then)?l.then(ot,ot):c(l)?b(l[1],l[0],vt(l[2]),l[3]):b(l,200,{},"OK"):y.put(v,it)),u(l)&&((l=rh(e.url)?w()[e.xsrfCookieName||n.xsrfCookieName]:void 0)&&(ht[e.xsrfHeaderName||n.xsrfHeaderName]=l),p(e.method,v,o,lt,ht,e.timeout,e.withCredentials,e.responseType,rt(e.eventHandlers),rt(e.uploadEventHandlers))),it}function ut(n,t){return 0<t.length&&(n+=(-1===n.indexOf("?")?"?":"&")+t),n}function ft(n,t){if(/[&?][^=]+=JSON_CALLBACK/.test(n))throw ro("badjsonp",n);if(new RegExp("[&?]"+t+"=").test(n))throw ro("badjsonp",t,n);return n+((-1===n.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK")}var et=b("$http"),it;return n.paramSerializer=h(n.paramSerializer)?g.get(n.paramSerializer):n.paramSerializer,it=[],t(e,function(n){it.unshift(h(n)?g.get(n):g.invoke(n))}),tt.pendingRequests=[],function(){t(arguments,function(n){tt[n]=function(t,i){return tt(v({},i||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){t(arguments,function(n){tt[n]=function(t,i,r){return tt(v({},r||{},{method:n,url:t,data:i}))}})}("post","put","patch"),tt.defaults=n,tt}]}function rv(){this.$get=function(){return function(){return new n.XMLHttpRequest}}}function uv(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(n,t,i,r){return fv(n,r,n.defer,t,i[0])}]}function fv(n,i,e,o,s){function h(n,t,i){n=n.replace("JSON_CALLBACK",t);var r=s.createElement("script"),u=null;return r.type="text/javascript",r.src=n,r.async=!0,u=function(n){r.removeEventListener("load",u);r.removeEventListener("error",u);s.body.removeChild(r);r=null;var f=-1,e="unknown";n&&("load"!==n.type||o.wasCalled(t)||(n={type:"error"}),e=n.type,f="error"===n.type?404:200);i&&i(f,e)},r.addEventListener("load",u),r.addEventListener("error",u),s.body.appendChild(r),u}return function(s,c,l,v,y,p,w,b,k,d){function rt(){tt&&tt();g&&g.abort()}var it,tt,g,nt;if(c=c||n.url(),"jsonp"===a(s))it=o.createCallback(c),tt=h(c,it,function(n,t){var i=200===n&&o.getResponse(it);r(nt)&&e.cancel(nt);tt=g=null;v(n,i,"",t);o.removeCallback(it)});else{if(g=i(s,c),g.open(s,c,!0),t(y,function(n,t){r(n)&&g.setRequestHeader(t,n)}),g.onload=function(){var u=g.statusText||"",t="response"in g?g.response:g.responseText,n=1223===g.status?204:g.status,i;0===n&&(n=t?200:"file"===ti(c).protocol?404:0);i=g.getAllResponseHeaders();r(nt)&&e.cancel(nt);tt=g=null;v(n,t,i,u)},s=function(){r(nt)&&e.cancel(nt);tt=g=null;v(-1,null,null,"")},g.onerror=s,g.onabort=s,g.ontimeout=s,t(k,function(n,t){g.addEventListener(t,n)}),t(d,function(n,t){g.upload.addEventListener(t,n)}),w&&(g.withCredentials=!0),b)try{g.responseType=b}catch(ut){if("json"!==b)throw ut;}g.send(u(l)?null:l)}0<p?nt=e(rt,p):p&&f(p.then)&&p.then(rt)}}function ev(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,e,o){function c(n){return"\\\\\\"+n}function s(i){return i.replace(p,n).replace(w,t)}function a(n,t,i,r){var u=n.$watch(function(n){return u(),r(n)},t,i);return u}function h(h,c,p,w){function ft(n){try{var t=n;return n=p?o.getTrusted(p,t):o.valueOf(t),w&&!r(n)?n:wf(n)}catch(i){e(li.interr(h,i))}}var k,d,rt,ut;if(!h.length||-1===h.indexOf(n))return c||(c=s(h),k=ot(c),k.exp=h,k.expressions=[],k.$$watchDelegate=a),k;w=!!w;var g,tt,b=0,nt=[],it=[];for(k=h.length,d=[],rt=[];b<k;)if(-1!==(g=h.indexOf(n,b))&&-1!==(tt=h.indexOf(t,g+l)))b!==g&&d.push(s(h.substring(b,g))),b=h.substring(g+l,tt),nt.push(b),it.push(i(b,ft)),b=tt+y,rt.push(d.length),d.push("");else{b!==k&&d.push(s(h.substring(b)));break}return p&&1<d.length&&li.throwNoconcat(h),!c||nt.length?(ut=function(n){for(var t=0,i=nt.length;t<i;t++){if(w&&u(n[t]))return;d[rt[t]]=n[t]}return d.join("")},v(function(n){var t=0,i=nt.length,r=Array(i);try{for(;t<i;t++)r[t]=it[t](n);return ut(r)}catch(u){e(li.interr(h,u))}},{exp:h,expressions:nt,$$watchDelegate:function(n,t){var i;return n.$watchGroup(it,function(r,u){var e=ut(r);f(t)&&t.call(this,e,r!==u?i:e,n);i=e})}})):void 0}var l=n.length,y=t.length,p=new RegExp(n.replace(/./g,c),"g"),w=new RegExp(t.replace(/./g,c),"g");return h.startSymbol=function(){return n},h.endSymbol=function(){return t},h}]}function ov(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(n,t,i,u,f){function s(o,s,h,c){function p(){w?o.apply(null,b):o(a)}var w=4<arguments.length,b=w?bt.call(arguments,4):[],k=t.setInterval,d=t.clearInterval,a=0,y=r(c)&&!c,v=(y?u:i).defer(),l=v.promise;return h=r(h)?h:0,l.$$intervalId=k(function(){y?f.defer(p):n.$evalAsync(p);v.notify(a++);0<h&&a>=h&&(v.resolve(a),d(l.$$intervalId),delete e[l.$$intervalId]);y||n.$apply()},s),e[l.$$intervalId]=v,l}var e={};return s.cancel=function(n){return n&&n.$$intervalId in e?(e[n.$$intervalId].promise.catch(o),e[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete e[n.$$intervalId],!0):!1},s}]}function re(n){n=n.split("/");for(var t=n.length;t--;)n[t]=cr(n[t]);return n.join("/")}function as(n,t){var i=ti(n);t.$$protocol=i.protocol;t.$$host=i.hostname;t.$$port=tt(i.port)||uw[i.protocol]||null}function vs(n,t){var r,i;if(fw.test(n))throw kr("badpath",n);r="/"!==n.charAt(0);r&&(n="/"+n);i=ti(n);t.$$path=decodeURIComponent(r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname);t.$$search=yo(i.search);t.$$hash=decodeURIComponent(i.hash);t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function ue(n,t){return n.slice(0,t.length)===t}function kt(n,t){if(ue(t,n))return t.substr(n.length)}function ei(n){var t=n.indexOf("#");return-1===t?n:n.substr(0,t)}function pr(n){return n.replace(/(#.+)|#$/,"$1")}function fe(n,t,i){this.$$html5=!0;i=i||"";as(n,this);this.$$parse=function(n){var i=kt(t,n);if(!h(i))throw kr("ipthprfx",n,t);vs(i,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=pf(this.$$search),i=this.$$hash?"#"+cr(this.$$hash):"";this.$$url=re(this.$$path)+(n?"?"+n:"")+i;this.$$absUrl=t+this.$$url.substr(1);this.$$urlUpdatedByLocation=!0};this.$$parseLinkUrl=function(u,f){if(f&&"#"===f[0])return this.hash(f.slice(1)),!0;var e,o;return r(e=kt(n,u))?(o=e,o=i&&r(e=kt(i,e))?t+(kt("/",e)||e):n+o):r(e=kt(t,u))?o=t+e:t===u+"/"&&(o=t),o&&this.$$parse(o),!!o}}function ee(n,t,i){as(n,this);this.$$parse=function(r){var e=kt(n,r)||kt(t,r),f,o;u(e)||"#"!==e.charAt(0)?this.$$html5?f=e:(f="",u(e)&&(n=r,this.replace())):(f=kt(i,e),u(f)&&(f=e));vs(f,this);r=this.$$path;e=n;o=/^\/[A-Z]:(\/.*)/;ue(f,e)&&(f=f.replace(e,""));o.exec(f)||(r=(f=o.exec(r))?f[1]:r);this.$$path=r;this.$$compose()};this.$$compose=function(){var t=pf(this.$$search),r=this.$$hash?"#"+cr(this.$$hash):"";this.$$url=re(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+(this.$$url?i+this.$$url:"");this.$$urlUpdatedByLocation=!0};this.$$parseLinkUrl=function(t){return ei(n)===ei(t)?(this.$$parse(t),!0):!1}}function ys(n,t,i){this.$$html5=!0;ee.apply(this,arguments);this.$$parseLinkUrl=function(r,u){if(u&&"#"===u[0])return this.hash(u.slice(1)),!0;var f,e;return n===ei(r)?f=r:(e=kt(t,r))?f=n+i+e:t===r+"/"&&(f=t),f&&this.$$parse(f),!!f};this.$$compose=function(){var t=pf(this.$$search),r=this.$$hash?"#"+cr(this.$$hash):"";this.$$url=re(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+i+this.$$url;this.$$urlUpdatedByLocation=!0}}function vu(n){return function(){return this[n]}}function ps(n,t){return function(i){return u(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function sv(){var t="!",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(n){return r(n)?(t=n,this):t};this.html5Mode=function(t){return gt(t)?(n.enabled=t,this):s(t)?(gt(t.enabled)&&(n.enabled=t.enabled),gt(t.requireBase)&&(n.requireBase=t.requireBase),(gt(t.rewriteLinks)||h(t.rewriteLinks))&&(n.rewriteLinks=t.rewriteLinks),this):n};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,r,f,o,c){function b(n,t,i){var u=l.url(),f=l.$$state;try{r.url(n,t,i);l.$$state=r.state()}catch(e){throw l.url(u),l.$$state=f,e;}}function k(n,t){i.$broadcast("$locationChangeSuccess",l.absUrl(),n,l.$$state,t)}var l,v,a,y,w,d,p;if(v=r.baseHref(),a=r.url(),n.enabled){if(!v&&n.requireBase)throw kr("nobase");y=a.substring(0,a.indexOf("/",a.indexOf("//")+2))+(v||"/");v=f.history?fe:ys}else y=ei(a),v=ee;w=y.substr(0,ei(y).lastIndexOf("/")+1);l=new v(y,w,"#"+t);l.$$parseLinkUrl(a,a);l.$$state=r.state();d=/^\s*(javascript|mailto):/i;o.on("click",function(t){var f=n.rewriteLinks,a,v;if(f&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(a=e(t.target);"a"!==lt(a[0]);)if(a[0]===o[0]||!(a=a.parent())[0])return;h(f)&&u(a.attr(f))||(f=a.prop("href"),v=a.attr("href")||a.attr("xlink:href"),s(f)&&"[object SVGAnimatedString]"===f.toString()&&(f=ti(f.animVal).href),d.test(f)||!f||a.attr("target")||t.isDefaultPrevented()||!l.$$parseLinkUrl(f,v)||(t.preventDefault(),l.absUrl()!==r.url()&&(i.$apply(),c.angular["ff-684208-preventDefault"]=!0)))}});pr(l.absUrl())!==pr(a)&&r.url(l.absUrl(),!0);p=!0;r.onUrlChange(function(n,t){ue(n,w)?(i.$evalAsync(function(){var r=l.absUrl(),u=l.$$state,f;n=pr(n);l.$$parse(n);l.$$state=t;f=i.$broadcast("$locationChangeStart",n,r,t,u).defaultPrevented;l.absUrl()===n&&(f?(l.$$parse(r),l.$$state=u,b(r,!1,u)):(p=!1,k(r,u)))}),i.$$phase||i.$digest()):c.location.href=n});return i.$watch(function(){if(p||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var t=pr(r.url()),e=pr(l.absUrl()),n=r.state(),o=l.$$replace,u=t!==e||l.$$html5&&f.history&&n!==l.$$state;(p||u)&&(p=!1,i.$evalAsync(function(){var r=l.absUrl(),f=i.$broadcast("$locationChangeStart",r,t,l.$$state,n).defaultPrevented;l.absUrl()===r&&(f?(l.$$parse(t),l.$$state=n):(u&&b(r,o,n===l.$$state?null:l.$$state),k(t,n)))}))}l.$$replace=!1}),l}]}function hv(){var n=!0,i=this;this.debugEnabled=function(t){return r(t)?(n=t,this):n};this.$get=["$window",function(r){function f(n){return n instanceof Error&&(n.stack&&e?n=n.message&&-1===n.stack.indexOf(n.message)?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var i=r.console||{},u=i[n]||i.log||o;n=!1;try{n=!!u.apply}catch(e){}return n?function(){var n=[];return t(arguments,function(t){n.push(f(t))}),u.apply(i,n)}:function(n,t){u(n,null==t?"":t)}}var e=wt||/\bEdge\//.test(r.navigator&&r.navigator.userAgent);return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var t=u("debug");return function(){n&&t.apply(i,arguments)}}()}}]}function cv(n){return n+""}function lv(n,t){return"undefined"!=typeof n?n:t}function ws(n,t){return"undefined"==typeof n?t:"undefined"==typeof t?n:n+t}function b(n,r){var u,f,e;switch(n.type){case i.Program:u=!0;t(n.body,function(n){b(n.expression,r);u=u&&n.expression.constant});n.constant=u;break;case i.Literal:n.constant=!0;n.toWatch=[];break;case i.UnaryExpression:b(n.argument,r);n.constant=n.argument.constant;n.toWatch=n.argument.toWatch;break;case i.BinaryExpression:b(n.left,r);b(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.left.toWatch.concat(n.right.toWatch);break;case i.LogicalExpression:b(n.left,r);b(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.constant?[]:[n];break;case i.ConditionalExpression:b(n.test,r);b(n.alternate,r);b(n.consequent,r);n.constant=n.test.constant&&n.alternate.constant&&n.consequent.constant;n.toWatch=n.constant?[]:[n];break;case i.Identifier:n.constant=!1;n.toWatch=[n];break;case i.MemberExpression:b(n.object,r);n.computed&&b(n.property,r);n.constant=n.object.constant&&(!n.computed||n.property.constant);n.toWatch=[n];break;case i.CallExpression:u=e=n.filter?!r(n.callee.name).$stateful:!1;f=[];t(n.arguments,function(n){b(n,r);u=u&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=u;n.toWatch=e?f:[n];break;case i.AssignmentExpression:b(n.left,r);b(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=[n];break;case i.ArrayExpression:u=!0;f=[];t(n.elements,function(n){b(n,r);u=u&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=u;n.toWatch=f;break;case i.ObjectExpression:u=!0;f=[];t(n.properties,function(n){b(n.value,r);u=u&&n.value.constant&&!n.computed;n.value.constant||f.push.apply(f,n.value.toWatch);n.computed&&(b(n.key,r),n.key.constant||f.push.apply(f,n.key.toWatch))});n.constant=u;n.toWatch=f;break;case i.ThisExpression:n.constant=!1;n.toWatch=[];break;case i.LocalsExpression:n.constant=!1;n.toWatch=[]}}function bs(n){if(1===n.length){n=n[0].expression;var t=n.toWatch;return 1!==t.length?t:t[0]!==n?t:void 0}}function ks(n){return n.type===i.Identifier||n.type===i.MemberExpression}function ds(n){if(1===n.body.length&&ks(n.body[0].expression))return{type:i.AssignmentExpression,left:n.body[0].expression,right:{type:i.NGValueParameter},operator:"="}}function gs(n){this.$filter=n}function nh(n){this.$filter=n}function oe(n,t,r){this.ast=new i(n,r);this.astCompiler=r.csp?new nh(t):new gs(t)}function se(n){return f(n.valueOf)?n.valueOf():ow.call(n)}function av(){var u=p(),e={"true":!0,"false":!1,"null":null,undefined:void 0},n,i;this.addLiteral=function(n,t){e[n]=t};this.setIdentifierFns=function(t,r){return n=t,i=r,this};this.$get=["$filter",function(s){function h(n,t,i){return null==n||null==t?n===t:"object"!=typeof n||(n=se(n),"object"!=typeof n||i)?n===t||n!==n&&t!==t:!1}function c(n,t,i,r,u){var f=r.inputs,e,s;if(1===f.length)return s=h,f=f[0],n.$watch(function(n){var t=f(n);return h(t,s,r.literal)||(e=r(n,void 0,void 0,[t]),s=t&&se(t)),e},t,i,u);for(var c=[],l=[],o=0,a=f.length;o<a;o++)c[o]=h,l[o]=null;return n.$watch(function(n){for(var i,u=!1,t=0,o=f.length;t<o;t++)i=f[t](n),(u||(u=!h(i,c[t],r.literal)))&&(l[t]=i,c[t]=i&&se(i));return u&&(e=r(n,void 0,void 0,l)),e},t,i,u)}function y(n,t,i,u,e){function v(n){return u(n)}function o(n,i,r){l=n;f(t)&&t(n,i,r);s(n)&&r.$$postDigest(function(){s(l)&&h()})}var s=u.literal?a:r,h,l;return h=u.inputs?c(n,o,i,u,e):n.$watch(v,o,i)}function a(n){var i=!0;return t(n,function(n){r(n)||(i=!1)}),i}function p(n,t,i,r){var u=n.$watch(function(n){return u(),r(n)},t,i);return u}function l(n,t){function e(i,r,u,e){return u=f&&e?e[0]:n(i,r,u,e),t(u,i,r)}function o(i,r,u,e){return u=f&&e?e[0]:n(i,r,u,e),i=t(u,i,r),s(u)?i:u}if(!t)return n;var u=n.$$watchDelegate,f=!1,s=n.literal?a:r,i=n.oneTime?o:e;return i.literal=n.literal,i.oneTime=n.oneTime,f=!n.inputs,u&&u!==c?(i.$$watchDelegate=u,i.inputs=n.inputs):t.$stateful||(i.$$watchDelegate=c,i.inputs=n.inputs?n.inputs:[n]),i}var v={csp:hi().noUnsafeEval,literals:ni(e),isIdentifierStart:f(n)&&n,isIdentifierContinue:f(i)&&i};return function(n,t){var i,f,r;switch(typeof n){case"string":return r=n=n.trim(),i=u[r],i||(":"===n.charAt(0)&&":"===n.charAt(1)&&(f=!0,n=n.substring(2)),i=new ff(v),i=new oe(i,s,v).parse(n),i.constant?i.$$watchDelegate=p:f?(i.oneTime=!0,i.$$watchDelegate=y):i.inputs&&(i.$$watchDelegate=c),u[r]=i),l(i,t);case"function":return l(n,t);default:return l(o,t)}}}]}function vv(){var n=!0;this.$get=["$rootScope","$exceptionHandler",function(t,i){return th(function(n){t.$evalAsync(n)},i,n)}];this.errorOnUnhandledRejections=function(t){return r(t)?(n=t,this):n}}function yv(){var n=!0;this.$get=["$browser","$exceptionHandler",function(t,i){return th(function(n){t.defer(n)},i,n)}];this.errorOnUnhandledRejections=function(t){return r(t)?(n=t,this):n}}function th(n,i,r){function tt(){return new et}function et(){var n=this.promise=new e;this.resolve=function(t){h(n,t)};this.reject=function(t){a(n,t)};this.notify=function(t){g(n,t)}}function e(){this.$$state={status:0}}function it(){for(var t,n;!y&&b.length;)t=b.shift(),t.pur||(t.pur=!0,n=t.value,n="Possibly unhandled rejection: "+("function"==typeof n?n.toString().replace(/ \{[\s\S]*$/,""):u(n)?"undefined":"string"!=typeof n?ia(n,void 0):n),t.value instanceof Error?i(t.value,n):i(n))}function k(t){!r||t.pending||2!==t.status||t.pur||(0===y&&0===b.length&&n(it),b.push(t));!t.processScheduled&&t.pending&&(t.processScheduled=!0,++y,n(function(){var o,i,e,u,s;e=t.pending;t.processScheduled=!1;t.pending=void 0;try{for(u=0,s=e.length;u<s;++u){t.pur=!0;i=e[u][0];o=e[u][t.status];try{f(o)?h(i,o(t.value)):1===t.status?h(i,t.value):a(i,t.value)}catch(c){a(i,c)}}}finally{--y;r&&0===y&&n(it)}}))}function h(n,t){n.$$state.status||(t===n?d(n,ft("qcycle",t)):rt(n,t))}function rt(n,t){function e(t){i||(i=!0,rt(n,t))}function u(t){i||(i=!0,d(n,t))}function o(t){g(n,t)}var r,i=!1;try{(s(t)||f(t))&&(r=t.then);f(r)?(n.$$state.status=-1,r.call(t,e,u,o)):(n.$$state.value=t,n.$$state.status=1,k(n.$$state))}catch(h){u(h)}}function a(n,t){n.$$state.status||d(n,t)}function d(n,t){n.$$state.value=t;n.$$state.status=2;k(n.$$state)}function g(t,r){var u=t.$$state.pending;0>=t.$$state.status&&u&&u.length&&n(function(){for(var t,e,n=0,o=u.length;n<o;n++){e=u[n][0];t=u[n][3];try{g(e,f(t)?t(r):r)}catch(s){i(s)}}})}function p(n){var t=new e;return a(t,n),t}function ut(n,t,i){var r=null;try{f(i)&&(r=i())}catch(u){return p(u)}return r&&f(r.then)?r.then(function(){return t(n)},p):t(n)}function w(n,t,i,r){var u=new e;return h(u,n),u.then(t,i,r)}function o(n){if(!f(n))throw ft("norslvr",n);var t=new e;return n(function(n){h(t,n)},function(n){a(t,n)}),t}var ft=l("$q",TypeError),y=0,b=[],nt;return v(e.prototype,{then:function(n,t,i){if(u(n)&&u(t)&&u(i))return this;var r=new e;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,n,t,i]),0<this.$$state.status&&k(this.$$state),r},"catch":function(n){return this.then(null,n)},"finally":function(n,t){return this.then(function(t){return ut(t,nt,n)},function(t){return ut(t,p,n)},t)}}),nt=w,o.prototype=e.prototype,o.defer=tt,o.reject=p,o.when=w,o.resolve=nt,o.all=function(n){var i=new e,r=0,u=c(n)?[]:{};return t(n,function(n,t){r++;w(n).then(function(n){u[t]=n;--r||h(i,u)},function(n){a(i,n)})}),0===r&&h(i,u),i},o.race=function(n){var i=tt();return t(n,function(n){w(n).then(i.resolve,i.reject)}),i.promise},o}function pv(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function wv(){function h(n){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++du;this.$$ChildScope=null}return t.prototype=n,t}var r=10,e=l("$rootScope"),n=null,i=null;this.digestTtl=function(n){return arguments.length&&(r=n),r};this.$get=["$exceptionHandler","$parse","$browser",function(c,l,a){function ft(n){n.currentScope.$$destroyed=!0}function b(n){9===wt&&(n.$$childHead&&b(n.$$childHead),n.$$nextSibling&&b(n.$$nextSibling));n.$parent=n.$$nextSibling=n.$$prevSibling=n.$$childHead=n.$$childTail=n.$root=n.$$watchers=null}function p(){this.$id=++du;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function nt(n){if(v.$$phase)throw e("inprog",v.$$phase);v.$$phase=n}function k(n,t){do n.$$watchersCount+=t;while(n=n.$parent)}function tt(n,t,i){do n.$$listenerCount[i]-=t,0===n.$$listenerCount[i]&&delete n.$$listenerCount[i];while(n=n.$parent)}function rt(){}function ut(){for(;d.length;)try{d.shift()()}catch(n){c(n)}i=null}function et(){null===i&&(i=a.defer(function(){v.$apply(ut)}))}p.prototype={constructor:p,$new:function(n,t){var i;return t=t||this,n?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=h(this)),i=new this.$$ChildScope),i.$parent=t,i.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=i,t.$$childTail=i):t.$$childHead=t.$$childTail=i,(n||t!==this)&&i.$on("$destroy",ft),i},$watch:function(t,i,r,u){var s=l(t);if(s.$$watchDelegate)return s.$$watchDelegate(this,i,r,s,t);var h=this,e=h.$$watchers,c={fn:i,last:rt,get:s,exp:u||t,eq:!!r};return n=null,f(i)||(c.fn=o),e||(e=h.$$watchers=[],e.$$digestWatchIndex=-1),e.unshift(c),e.$$digestWatchIndex++,k(this,1),function(){var t=er(e,c);0<=t&&(k(h,-1),t<e.$$digestWatchIndex&&e.$$digestWatchIndex--);n=null}},$watchGroup:function(n,i){function c(){o=!1;h?(h=!1,i(r,r,u)):i(r,f,u)}var f=Array(n.length),r=Array(n.length),e=[],u=this,o=!1,h=!0,s;return n.length?1===n.length?this.$watch(n[0],function(n,t,u){r[0]=n;f[0]=t;i(r,n===t?r:f,u)}):(t(n,function(n,t){var i=u.$watch(n,function(n,i){r[t]=n;f[t]=i;o||(o=!0,u.$evalAsync(c))});e.push(i)}),function(){for(;e.length;)e.shift()()}):(s=!0,u.$evalAsync(function(){s&&i(r,r,u)}),function(){s=!1})},$watchCollection:function(n,t){function h(n){i=n;var t,c,o,h;if(!u(i)){if(s(i))if(dt(i))for(r!==a&&(r=a,e=r.length=0,f++),n=i.length,e!==n&&(f++,r.length=e=n),t=0;t<n;t++)h=r[t],o=i[t],c=h!==h&&o!==o,c||h===o||(f++,r[t]=o);else{r!==v&&(r=v={},e=0,f++);n=0;for(t in i)pt.call(i,t)&&(n++,o=i[t],h=r[t],t in r?(c=h!==h&&o!==o,c||h===o||(f++,r[t]=o)):(e++,r[t]=o,f++));if(e>n)for(t in f++,r)pt.call(i,t)||(e--,delete r[t])}else r!==i&&(r=i,f++);return f}}h.$stateful=!0;var c=this,i,r,o,p=1<t.length,f=0,w=l(n,h),a=[],v={},y=!0,e=0;return this.$watch(w,function(){if(y?(y=!1,t(i,i,c)):t(i,o,c),p)if(s(i))if(dt(i)){o=Array(i.length);for(var n=0;n<i.length;n++)o[n]=i[n]}else for(n in o={},i)pt.call(i,n)&&(o[n]=i[n]);else o=i})},$digest:function(){var t,s,h,p,ft,u,l,tt=r,o,b=[],k,d;nt("$digest");a.$$checkUrlChange();this===v&&null!==i&&(a.defer.cancel(i),ut());n=null;do{for(l=!1,o=this,u=0;u<y.length;u++){try{d=y[u];p=d.fn;p(d.scope,d.locals)}catch(et){c(et)}n=null}y.length=0;n:do{if(u=o.$$watchers)for(u.$$digestWatchIndex=u.length;u.$$digestWatchIndex--;)try{if(t=u[u.$$digestWatchIndex])if(ft=t.get,(s=ft(o))===(h=t.last)||(t.eq?st(s,h):it(s)&&it(h))){if(t===n){l=!1;break n}}else l=!0,n=t,t.last=t.eq?ni(s,null):s,p=t.fn,p(s,h===rt?s:h,o),5>tt&&(k=4-tt,b[k]||(b[k]=[]),b[k].push({msg:f(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:s,oldVal:h}))}catch(ot){c(ot)}if(!(u=o.$$watchersCount&&o.$$childHead||o!==this&&o.$$nextSibling))for(;o!==this&&!(u=o.$$nextSibling);)o=o.$parent}while(o=u);if((l||y.length)&&!tt--)throw v.$$phase=null,e("infdig",r,b);}while(l||y.length);for(v.$$phase=null;g<w.length;)try{w[g++]()}catch(ht){c(ht)}w.length=g=0;a.$$checkUrlChange()},$destroy:function(){var n,t;if(!this.$$destroyed){n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===v&&a.$$applicationDestroyed();k(this,-this.$$watchersCount);for(t in this.$$listenerCount)tt(this,this.$$listenerCount[t],t);n&&n.$$childHead===this&&(n.$$childHead=this.$$nextSibling);n&&n.$$childTail===this&&(n.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=o;this.$on=this.$watch=this.$watchGroup=function(){return o};this.$$listeners={};this.$$nextSibling=null;b(this)}},$eval:function(n,t){return l(n)(this,t)},$evalAsync:function(n,t){v.$$phase||y.length||a.defer(function(){y.length&&v.$digest()});y.push({scope:this,fn:l(n),locals:t})},$$postDigest:function(n){w.push(n)},$apply:function(n){try{nt("$apply");try{return this.$eval(n)}finally{v.$$phase=null}}catch(i){c(i)}finally{try{v.$digest()}catch(t){throw c(t),t;}}},$applyAsync:function(n){function t(){i.$eval(n)}var i=this;n&&d.push(t);n=l(n);et()},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){var i=r.indexOf(t);-1!==i&&(r[i]=null,tt(u,1,n))}},$emit:function(n){var o=[],u,r=this,e=!1,t={name:n,targetScope:r,stopPropagation:function(){e=!0},preventDefault:function(){t.defaultPrevented=!0},defaultPrevented:!1},s=or([t],arguments,1),i,f;do{for(u=r.$$listeners[n]||o,t.currentScope=r,i=0,f=u.length;i<f;i++)if(u[i])try{u[i].apply(null,s)}catch(h){c(h)}else u.splice(i,1),i--,f--;if(e)return t.currentScope=null,t;r=r.$parent}while(r);return t.currentScope=null,t},$broadcast:function(n){var t=this,i=this,u={name:n,targetScope:this,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},e,r,f;if(!this.$$listenerCount[n])return u;for(e=or([u],arguments,1);t=i;){for(u.currentScope=t,i=t.$$listeners[n]||[],r=0,f=i.length;r<f;r++)if(i[r])try{i[r].apply(null,e)}catch(o){c(o)}else i.splice(r,1),r--,f--;if(!(i=t.$$listenerCount[n]&&t.$$childHead||t!==this&&t.$$nextSibling))for(;t!==this&&!(i=t.$$nextSibling);)t=t.$parent}return u.currentScope=null,u}};var v=new p,y=v.$$asyncQueue=[],w=v.$$postDigestQueue=[],d=v.$$applyAsyncQueue=[],g=0;return v}]}function bv(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return r(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return r(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return u=ti(i).href,""===u||u.match(f)?i:"unsafe:"+u}}}function kv(n){if("self"===n)return n;if(h(n)){if(-1<n.indexOf("***"))throw ui("iwcard",n);return n=tc(n).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+n+"$")}if(rr(n))return new RegExp("^"+n.source+"$");throw ui("imatcher");}function ih(n){var i=[];return r(n)&&t(n,function(n){i.push(kv(n))}),i}function dv(){this.SCE_CONTEXTS=ct;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=ih(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=ih(n)),t};this.$get=["$injector",function(i){function o(n,t){return"self"===n?rh(t):!!n.exec(t.href)}function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var s=function(){throw ui("unsafe");},e,r;return i.has("$sanitize")&&(s=i.get("$sanitize")),e=f(),r={},r[ct.HTML]=f(e),r[ct.CSS]=f(e),r[ct.URL]=f(e),r[ct.JS]=f(e),r[ct.RESOURCE_URL]=f(r[ct.URL]),{trustAs:function(n,t){var i=r.hasOwnProperty(n)?r[n]:null;if(!i)throw ui("icontext",n,t);if(null===t||u(t)||""===t)return t;if("string"!=typeof t)throw ui("itype",n);return new i(t)},getTrusted:function(i,f){var h,e,l,c;if(null===f||u(f)||""===f)return f;if(h=r.hasOwnProperty(i)?r[i]:null,h&&f instanceof h)return f.$$unwrapTrustedValue();if(i===ct.RESOURCE_URL){for(h=ti(f.toString()),c=!1,e=0,l=n.length;e<l;e++)if(o(n[e],h)){c=!0;break}if(c)for(e=0,l=t.length;e<l;e++)if(o(t[e],h)){c=!1;break}if(c)return f;throw ui("insecurl",f.toString());}if(i===ct.HTML)return s(f);throw ui("unsafe");},valueOf:function(n){return n instanceof e?n.$$unwrapTrustedValue():n}}}]}function gv(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sceDelegate",function(i,r){var u;if(n&&8>wt)throw ui("iequirks");u=vt(ct);u.isEnabled=function(){return n};u.trustAs=r.trustAs;u.getTrusted=r.getTrusted;u.valueOf=r.valueOf;n||(u.trustAs=u.getTrusted=function(n,t){return t},u.valueOf=ir);u.parseAs=function(n,t){var r=i(t);return r.literal&&r.constant?r:i(t,function(t){return u.getTrusted(n,t)})};var f=u.parseAs,e=u.getTrusted,o=u.trustAs;return t(ct,function(n,t){var i=a(t);u[("parse_as_"+i).replace(uo,ar)]=function(t){return f(n,t)};u[("get_trusted_"+i).replace(uo,ar)]=function(t){return e(n,t)};u[("trust_as_"+i).replace(uo,ar)]=function(t){return o(n,t)}}),u}]}function ny(){this.$get=["$window","$document",function(n,t){var r={},h=!((!n.nw||!n.nw.process)&&n.chrome&&(n.chrome.app&&n.chrome.app.runtime||!n.chrome.app&&n.chrome.runtime&&n.chrome.runtime.id))&&n.history&&n.history.pushState,e=tt((/android (\d+)/.exec(a((n.navigator||{}).userAgent))||[])[1]),c=/Boxee/i.test((n.navigator||{}).userAgent),f=t[0]||{},i=f.body&&f.body.style,o=!1,s=!1;return i&&(o=!!("transition"in i||"webkitTransition"in i),s=!!("animation"in i||"webkitAnimation"in i)),{history:!(!h||4>e||c),hasEvent:function(n){if("input"===n&&wt)return!1;if(u(r[n])){var t=f.createElement("div");r[n]="on"+n in t}return r[n]},csp:hi(),transitions:o,animations:s,android:e}}]}function ty(){var n;this.httpOptions=function(t){return t?(n=t,this):n};this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,i,r,f,e){function o(s,l){o.totalPendingRequests++;(!h(s)||u(i.get(s)))&&(s=e.getTrustedResourceUrl(s));var a=r.defaults&&r.defaults.transformResponse;return c(a)?a=a.filter(function(n){return n!==ie}):a===ie&&(a=null),r.get(s,v({cache:i,transformResponse:a},n)).finally(function(){o.totalPendingRequests--}).then(function(n){return i.put(s,n.data),n.data},function(n){return l||(n=sw("tpload",s,n.status,n.statusText),t(n)),f.reject(n)})}return o.totalPendingRequests=0,o}]}function iy(){this.$get=["$rootScope","$browser","$location",function(n,i,r){return{findBindings:function(n,i,r){n=n.getElementsByClassName("ng-binding");var u=[];return t(n,function(n){var f=ft.element(n).data("$binding");f&&t(f,function(t){r?new RegExp("(^|\\s)"+tc(i)+"(\\s|\\||$)").test(t)&&u.push(n):-1!==t.indexOf(i)&&u.push(n)})}),u},findModels:function(n,t,i){for(var f,u=["ng-","data-ng-","ng\\:"],r=0;r<u.length;++r)if(f=n.querySelectorAll("["+u[r]+"model"+(i?"=":"*=")+'"'+t+'"]'),f.length)return f},getLocation:function(){return r.url()},setLocation:function(t){t!==r.url()&&(r.url(t),n.$digest())},whenStable:function(n){i.notifyWhenNoOutstandingRequests(n)}}}]}function ry(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,u,e){function h(h,c,l){f(h)||(l=c,c=h,h=o);var w=bt.call(arguments,3),p=r(l)&&!l,a=(p?u:i).defer(),v=a.promise,y;return y=t.defer(function(){try{a.resolve(h.apply(null,w))}catch(t){a.reject(t);e(t)}finally{delete s[v.$$timeoutId]}p||n.$apply()},c),v.$$timeoutId=y,s[y]=a,v}var s={};return h.cancel=function(n){return n&&n.$$timeoutId in s?(s[n.$$timeoutId].promise.catch(o),s[n.$$timeoutId].reject("canceled"),delete s[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},h}]}function ti(n){return wt&&(nt.setAttribute("href",n),n=nt.href),nt.setAttribute("href",n),{href:nt.href,protocol:nt.protocol?nt.protocol.replace(/:$/,""):"",host:nt.host,search:nt.search?nt.search.replace(/^\?/,""):"",hash:nt.hash?nt.hash.replace(/^#/,""):"",hostname:nt.hostname,port:nt.port,pathname:"/"===nt.pathname.charAt(0)?nt.pathname:"/"+nt.pathname}}function rh(n){return n=h(n)?ti(n):n,n.protocol===lc.protocol&&n.host===lc.host}function uy(){this.$get=ot(n)}function uh(n){function r(n){try{return decodeURIComponent(n)}catch(t){return n}}var f=n[0]||{},t={},i="";return function(){var n,e,o,s,h;try{n=f.cookie||""}catch(c){n=""}if(n!==i)for(i=n,n=i.split("; "),t={},o=0;o<n.length;o++)e=n[o],s=e.indexOf("="),0<s&&(h=r(e.substring(0,s)),u(t[h])&&(t[h]=r(e.substring(s+1))));return t}}function fy(){this.$get=uh}function fh(n){function i(r,u){if(s(r)){var f={};return t(r,function(n,t){f[t]=i(t,n)}),f}return n.factory(r+"Filter",u)}this.register=i;this.$get=["$injector",function(n){return function(t){return n.get(t+"Filter")}}];i("currency",eh);i("date",lh);i("filter",ey);i("json",cy);i("limitTo",ly);i("lowercase",yc);i("number",oh);i("orderBy",ah);i("uppercase",pc)}function ey(){return function(n,t,i,r){if(!dt(n)){if(null==n)return n;throw l("filter")("notarray",n);}r=r||"$";var u;switch(he(t)){case"function":break;case"boolean":case"null":case"number":case"string":u=!0;case"object":t=oy(t,i,r,u);break;default:return n}return Array.prototype.filter.call(n,t)}}function oy(n,t,i,r){var e=s(n)&&i in n;return!0===t?t=st:f(t)||(t=function(n,t){return u(n)?!1:null===n||null===t?n===t:s(t)||s(n)&&!lf(n)?!1:(n=a(""+n),t=a(""+t),-1!==n.indexOf(t))}),function(u){return e&&!s(u)?oi(u,n[i],t,i,!1):oi(u,n,t,i,r)}}function oi(n,t,i,r,e,o){var h=he(n),l=he(t),s;if("string"===l&&"!"===t.charAt(0))return!oi(n,t.substring(1),i,r,e);if(c(n))return n.some(function(n){return oi(n,t,i,r,e)});switch(h){case"object":if(e){for(s in n)if(s.charAt&&"$"!==s.charAt(0)&&oi(n[s],t,i,r,!0))return!0;return o?!1:oi(n,t,i,r,!1)}if("object"===l){for(s in t)if(o=t[s],!f(o)&&!u(o)&&(h=s===r,!oi(h?n:n[s],o,i,r,h,h)))return!1;return!0}return i(n,t);case"function":return!1;default:return i(n,t)}}function he(n){return null===n?"null":typeof n}function eh(n){var t=n.NUMBER_FORMATS;return function(n,i,r){return u(i)&&(i=t.CURRENCY_SYM),u(r)&&(r=t.PATTERNS[1].maxFrac),null==n?n:sh(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,i)}}function oh(n){var t=n.NUMBER_FORMATS;return function(n,i){return null==n?n:sh(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function sy(n){var e=0,r,t,i,f,u;for(-1<(t=n.indexOf(vc))&&(n=n.replace(vc,"")),0<(i=n.search(/e/i))?(0>t&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):0>t&&(t=n.length),i=0;n.charAt(i)===fo;i++);if(i===(u=n.length))r=[0],t=1;else{for(u--;n.charAt(u)===fo;)u--;for(t-=i,r=[],f=0;i<=u;i++,f++)r[f]=+n.charAt(i)}return t>ac&&(r=r.splice(0,ac-1),e=t-1,t=1),{d:r,e:e,i:t}}function hy(n,t,i,r){var f=n.d,o=f.length-n.i,e;if(t=u(t)?Math.min(Math.max(i,o),r):+t,i=t+n.i,r=f[i],0<i)for(f.splice(Math.max(n.i,i)),e=i;e<f.length;e++)f[e]=0;else for(o=Math.max(0,o),n.i=1,f.length=Math.max(1,i=t+1),f[0]=0,e=1;e<i;e++)f[e]=0;if(5<=r)if(0>i-1){for(r=0;r>i;r--)f.unshift(0),n.i++;f.unshift(1);n.i++}else f[i-1]++;for(;o<Math.max(0,t);o++)f.push(0);(t=f.reduceRight(function(n,t,i,r){return t+=n,r[i]=t%10,Math.floor(t/10)},0))&&(f.unshift(t),n.i++)}function sh(n,t,i,r,u){if(!h(n)&&!d(n)||isNaN(n))return"";var s=!isFinite(n),o=!1,e=Math.abs(n)+"",f="";if(s)f="∞";else{for(o=sy(e),hy(o,u,t.minFrac,t.maxFrac),f=o.d,e=o.i,u=o.e,s=[],o=f.reduce(function(n,t){return n&&!t},!0);0>e;)f.unshift(0),e++;for(0<e?s=f.splice(e,f.length):(s=f,f=[0]),e=[],f.length>=t.lgSize&&e.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)e.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&e.unshift(f.join(""));f=e.join(i);s.length&&(f+=r+s.join(""));u&&(f+="e+"+u)}return 0>n&&!o?t.negPre+f+t.negSuf:t.posPre+f+t.posSuf}function yu(n,t,i,r){var u="";for((0>n||r&&0>=n)&&(r?n=-n+1:(n=-n,u="-")),n=""+n;n.length<t;)n=fo+n;return i&&(n=n.substr(n.length-t)),u+n}function g(n,t,i,r,u){return i=i||0,function(f){return f=f["get"+n](),(0<i||f>-i)&&(f+=i),0===f&&-12===i&&(f=12),yu(f,t,r,u)}}function wr(n,t,i){return function(r,u){var f=r["get"+n](),e=ku((i?"STANDALONE":"")+(t?"SHORT":"")+n);return u[e][f]}}function hh(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(4>=t?5:12)-t)}function ch(n){return function(t){var i=hh(t.getFullYear());return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+i,t=1+Math.round(t/6048e5),yu(t,n)}}function ce(n,t){return 0>=n.getFullYear()?t.ERAS[0]:t.ERAS[1]}function lh(n){function i(n){var t;if(t=n.match(r)){n=new Date(0);var i=0,u=0,f=t[8]?n.setUTCFullYear:n.setFullYear,e=t[8]?n.setUTCHours:n.setHours;t[9]&&(i=tt(t[9]+t[10]),u=tt(t[9]+t[11]));f.call(n,tt(t[1]),tt(t[2])-1,tt(t[3]));i=tt(t[4]||0)-i;u=tt(t[5]||0)-u;f=tt(t[6]||0);t=Math.round(1e3*parseFloat("0."+(t[7]||0)));e.call(n,i,u,f,t)}return n}var r=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(r,u,f){var c="",e=[],s,l,o;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,h(r)&&(r=lw.test(r)?tt(r):i(r)),d(r)&&(r=new Date(r)),!rt(r)||!isFinite(r.getTime()))return r;for(;u;)(l=cw.exec(u))?(e=or(e,l,1),u=e.pop()):(e.push(u),u=null);return o=r.getTimezoneOffset(),f&&(o=ao(f,o),r=yf(r,f,!0)),t(e,function(t){s=hw[t];c+=s?s(r,n.DATETIME_FORMATS,o):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}}function cy(){return function(n,t){return u(t)&&(t=2),hr(n,t)}}function ly(){return function(n,t,i){return(t=Infinity===Math.abs(Number(t))?Number(t):tt(t),it(t))?n:(d(n)&&(n=n.toString()),!dt(n))?n:(i=!i||isNaN(i)?0:tt(i),i=0>i?Math.max(0,n.length+i):i,0<=t?le(n,i,i+t):0===i?le(n,t,n.length):le(n,Math.max(0,i+t),i))}}function le(n,t,i){return h(n)?n.slice(t,i):bt.call(n,t,i)}function ah(n){function i(t){return t.map(function(t){var r=1,i=ir,u;return f(t)?i=t:h(t)&&(("+"===t.charAt(0)||"-"===t.charAt(0))&&(r="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=n(t),i.constant)&&(u=i(),i=function(n){return n[u]})),{get:i,descending:r}})}function t(n){switch(typeof n){case"number":case"boolean":case"string":return!0;default:return!1}}function r(n,t){var f=0,u=n.type,i=t.type,r;return u===i?(i=n.value,r=t.value,"string"===u?(i=i.toLowerCase(),r=r.toLowerCase()):"object"===u&&(s(i)&&(i=n.index),s(r)&&(r=t.index)),i!==r&&(f=i<r?-1:1)):f=u<i?-1:1,f}return function(n,u,e,o){if(null==n)return n;if(!dt(n))throw l("orderBy")("notarray",n);c(u)||(u=[u]);0===u.length&&(u=["+"]);var s=i(u),h=e?-1:1,a=f(o)?o:r;return n=Array.prototype.map.call(n,function(n,i){return{value:n,tieBreaker:{value:i,type:"number",index:i},predicateValues:s.map(function(r){var u=r.get(n);if(r=typeof u,null===u)r="string",u="null";else if("object"===r)n:{if(f(u.valueOf)&&(u=u.valueOf(),t(u)))break n;lf(u)&&(u=u.toString(),t(u))}return{value:u,type:r,index:i}})}}),n.sort(function(n,t){for(var r,i=0,u=s.length;i<u;i++)if(r=a(n.predicateValues[i],t.predicateValues[i]),r)return r*s[i].descending*h;return a(n.tieBreaker,t.tieBreaker)*h}),n.map(function(n){return n.value})}}function yi(n){return f(n)&&(n={link:n}),n.restrict=n.restrict||"AC",ot(n)}function pu(n,t,i,r,u){this.$$controls=[];this.$error={};this.$$success={};this.$pending=void 0;this.$name=u(t.name||t.ngForm||"")(i);this.$dirty=!1;this.$valid=this.$pristine=!0;this.$submitted=this.$invalid=!1;this.$$parentForm=gr;this.$$element=n;this.$$animate=r;vh(this)}function vh(n){n.$$classCache={};n.$$classCache[fl]=!(n.$$classCache[nu]=n.$$element.hasClass(nu))}function yh(n){function i(n,t,i){i&&!n.$$classCache[t]?(n.$$animate.addClass(n.$$element,t),n.$$classCache[t]=!0):!i&&n.$$classCache[t]&&(n.$$animate.removeClass(n.$$element,t),n.$$classCache[t]=!1)}function r(n,t,r){t=t?"-"+wo(t,"-"):"";i(n,nu+t,!0===r);i(n,fl+t,!1===r)}var f=n.set,t=n.unset;n.clazz.prototype.$setValidity=function(n,e,o){u(e)?(this.$pending||(this.$pending={}),f(this.$pending,n,o)):(this.$pending&&t(this.$pending,n,o),ph(this.$pending)&&(this.$pending=void 0));gt(e)?e?(t(this.$error,n,o),f(this.$$success,n,o)):(f(this.$error,n,o),t(this.$$success,n,o)):(t(this.$error,n,o),t(this.$$success,n,o));this.$pending?(i(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,r(this,"",null)):(i(this,"ng-pending",!1),this.$valid=ph(this.$error),this.$invalid=!this.$valid,r(this,"",this.$valid));e=this.$pending&&this.$pending[n]?void 0:this.$error[n]?!1:this.$$success[n]?!0:null;r(this,n,e);this.$$parentForm.$setValidity(n,e,this)}}function ph(n){if(n)for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function ae(n){n.$formatters.push(function(t){return n.$isEmpty(t)?t:t.toString()})}function pi(n,t,i,r,u,f){var h=a(t[0].type),s,e,o,c;if(!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(n){if(e&&(f.defer.cancel(e),e=null),!s){var u=t.val();n=n&&n.type;"password"===h||i.ngTrim&&"false"===i.ngTrim||(u=y(u));(r.$viewValue!==u||""===u&&r.$$hasNativeValidators)&&r.$setViewValue(u,n)}},u.hasEvent("input"))t.on("input",o);else{c=function(n,t,i){e||(e=f.defer(function(){e=null;t&&t.value===i||o(n)}))};t.on("keydown",function(n){var t=n.keyCode;91===t||15<t&&19>t||37<=t&&40>=t||c(n,this,this.value)});if(u.hasEvent("paste"))t.on("paste cut",c)}t.on("change",o);if(tl[h]&&r.$$hasNativeValidators&&h===i.type)t.on("keydown wheel mousedown",function(n){if(!e){var t=this.validity,i=t.badInput,r=t.typeMismatch;e=f.defer(function(){e=null;t.badInput===i&&t.typeMismatch===r||o(n)})}});r.$render=function(){var n=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==n&&t.val(n)}}function wu(n,i){return function(r,u){var e,f;if(rt(r))return r;if(h(r)){if('"'===r.charAt(0)&&'"'===r.charAt(r.length-1)&&(r=r.substring(1,r.length-1)),yw.test(r))return new Date(r);if(n.lastIndex=0,e=n.exec(r))return e.shift(),f=u?{yyyy:u.getFullYear(),MM:u.getMonth()+1,dd:u.getDate(),HH:u.getHours(),mm:u.getMinutes(),ss:u.getSeconds(),sss:u.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},t(e,function(n,t){t<i.length&&(f[i[t]]=+n)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1e3*f.sss||0)}return NaN}}function br(n,t,i,f){return function(e,o,s,h,c,l,a){function p(n){return n&&!(n.getTime&&n.getTime()!==n.getTime())}function k(n){return r(n)&&!rt(n)?i(n)||void 0:n}var v,y,w,b;ve(e,o,s,h);pi(e,o,s,h,c,l);v=h&&h.$options.getOption("timezone");h.$$parserName=n;h.$parsers.push(function(n){return h.$isEmpty(n)?null:t.test(n)?(n=i(n,y),v&&(n=yf(n,v)),n):void 0});h.$formatters.push(function(n){if(n&&!rt(n))throw tu("datefmt",n);return p(n)?((y=n)&&v&&(y=yf(y,v,!0)),a("date")(n,f,v)):(y=null,"")});(r(s.min)||s.ngMin)&&(h.$validators.min=function(n){return!p(n)||u(w)||i(n)>=w},s.$observe("min",function(n){w=k(n);h.$validate()}));(r(s.max)||s.ngMax)&&(h.$validators.max=function(n){return!p(n)||u(b)||i(n)<=b},s.$observe("max",function(n){b=k(n);h.$validate()}))}}function ve(n,t,i,r){(r.$$hasNativeValidators=s(t[0].validity))&&r.$parsers.push(function(n){var i=t.prop("validity")||{};if(!i.badInput&&!i.typeMismatch)return n})}function wh(n){n.$$parserName="number";n.$parsers.push(function(t){return n.$isEmpty(t)?null:bw.test(t)?parseFloat(t):void 0});n.$formatters.push(function(t){if(!n.$isEmpty(t)){if(!d(t))throw tu("numfmt",t);t=t.toString()}return t})}function wi(n){return r(n)&&!d(n)&&(n=parseFloat(n)),it(n)?void 0:n}function ye(n){var t=n.toString(),i=t.indexOf(".");return-1===i?-1<n&&1>n&&(n=/e-(\d+)$/.exec(t))?Number(n[1]):0:t.length-i-1}function bh(n,t,i){n=Number(n);var u=(n|0)!==n,f=(t|0)!==t,e=(i|0)!==i;if(u||f||e){var r=u?ye(n):0,o=f?ye(t):0,s=e?ye(i):0,r=Math.max(r,o,s),r=Math.pow(10,r);n*=r;t*=r;i*=r;u&&(n=Math.round(n));f&&(t=Math.round(t));e&&(i=Math.round(i))}return 0==(n-t)%i}function kh(n,t,i,u,f){if(r(u)){if(n=n(u),!n.constant)throw tu("constexpr",i,u);return n(t)}return f}function pe(n,i){function f(n,t){var u,i,f,r;if(!n||!n.length)return[];if(!t||!t.length)return n;u=[];i=0;n:for(;i<n.length;i++){for(f=n[i],r=0;r<t.length;r++)if(f===t[r])continue n;u.push(f)}return u}function r(n){var t=n;return c(n)?t=n.map(r).join(" "):s(n)&&(t=Object.keys(n).filter(function(t){return n[t]}).join(" ")),t}n="ngClass"+n;var u;return["$parse",function(e){return{restrict:"AC",link:function(o,s,c){function v(n,i){var r=[];return t(n,function(n){(0<i||l[n])&&(l[n]=(l[n]||0)+i,l[n]===+(0<i)&&r.push(n))}),r.join(" ")}function w(n){if(n===i){var t=a,t=v(t&&t.split(" "),1);c.$addClass(t)}else t=a,t=v(t&&t.split(" "),-1),c.$removeClass(t);y=n}var l=s.data("$classCounts"),y=!0,a;l||(l=p(),s.data("$classCounts",l));"ngClass"!==n&&(u||(u=e("$index",function(n){return n&1})),o.$watch(u,w));o.$watch(e(c[n],r),function(n){if(h(n)||(n=r(n)),y===i){var t=n,u=a&&a.split(" "),e=t&&t.split(" "),t=f(u,e),u=f(e,u),t=v(t,-1),u=v(u,1);c.$addClass(u);c.$removeClass(t)}a=n})}}}]}function bu(n,t,i,r,u,f,e,o,s){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=void 0;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=void 0;this.$name=s(i.name||"",!1)(n);this.$$parentForm=gr;this.$options=of;this.$$parsedNgModel=u(i.ngModel);this.$$parsedNgModelAssign=this.$$parsedNgModel.assign;this.$$ngModelGet=this.$$parsedNgModel;this.$$ngModelSet=this.$$parsedNgModelAssign;this.$$pendingDebounce=null;this.$$parserValid=void 0;this.$$currentValidationRunId=0;Object.defineProperty(this,"$$scope",{value:n});this.$$attr=i;this.$$element=r;this.$$animate=f;this.$$timeout=e;this.$$parse=u;this.$$q=o;this.$$exceptionHandler=t;vh(this);ay(this)}function ay(n){n.$$scope.$watch(function(t){if(t=n.$$ngModelGet(t),t!==n.$modelValue&&(n.$modelValue===n.$modelValue||t===t)){n.$modelValue=n.$$rawModelValue=t;n.$$parserValid=void 0;for(var r=n.$formatters,u=r.length,i=t;u--;)i=r[u](i);n.$viewValue!==i&&(n.$$updateEmptyClasses(i),n.$viewValue=n.$$lastCommittedViewValue=i,n.$render(),n.$$runValidators(n.$modelValue,n.$viewValue,o))}return t})}function we(n){this.$$options=n}function dh(n,i){t(i,function(t,i){r(n[i])||(n[i]=t)})}function bi(n,t){n.prop("selected",t);n.attr("selected",t)}var vy=/^\/(.+)\/([a-z]*)$/,pt=Object.prototype.hasOwnProperty,gh={objectMaxDepth:5},a=function(n){return h(n)?n.toLowerCase():n},ku=function(n){return h(n)?n.toUpperCase():n},wt,e,ii,bt=[].slice,yy=[].splice,py=[].push,ut=Object.prototype.toString,nc=Object.getPrototypeOf,si=l("ng"),ft=n.angular||(n.angular={}),be,du=0,it,di,rc,ge,no,uc,cc,ff,i,yc,pc,wc,dr,gr,el,of,ol;wt=n.document.documentMode;it=Number.isNaN||function(n){return n!==n};o.$inject=[];ir.$inject=[];var c=Array.isArray,wy=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,y=function(n){return h(n)?n.trim():n},tc=function(n){return n.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},hi=function(){var i,t;if(!r(hi.rules))if(i=n.document.querySelector("[ng-csp]")||n.document.querySelector("[data-ng-csp]"),i)t=i.getAttribute("ng-csp")||i.getAttribute("data-ng-csp"),hi.rules={noUnsafeEval:!t||-1!==t.indexOf("no-unsafe-eval"),noInlineStyle:!t||-1!==t.indexOf("no-inline-style")};else{i=hi;try{new Function("");t=!1}catch(u){t=!0}i.rules={noUnsafeEval:t,noInlineStyle:!1}}return hi.rules},gu=function(){if(r(gu.name_))return gu.name_;for(var u,e=ki.length,i,f,t=0;t<e;++t)if(i=ki[t],u=n.document.querySelector("["+i.replace(":","\\:")+"jq]")){f=u.getAttribute(i+"jq");break}return gu.name_=f},by=/:/g,ki=["ng-","data-ng-","ng:","x-ng-"],ky=function(t){var i=t.currentScript;return i?(i instanceof n.HTMLScriptElement||i instanceof n.SVGScriptElement)?(i=i.attributes,[i.getNamedItem("src"),i.getNamedItem("href"),i.getNamedItem("xlink:href")].every(function(n){if(!n)return!0;if(!n.value)return!1;var i=t.createElement("a");if(i.href=n.value,t.location.origin===i.origin)return!0;switch(i.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})):!1:!0}(n.document),dy=/[A-Z]/g,ic=!1,ri=3,gy={full:"1.6.4",major:1,minor:6,dot:4,codeName:"phenomenal-footnote"};w.expando="ng339";di=w.cache={};rc=1;w._data=function(n){return this.cache[n[this.expando]]||{}};var np=/-([a-z])/g,tp=/^-ms-/,nf={mouseleave:"mouseout",mouseenter:"mouseover"},ke=l("jqLite"),ip=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,de=/<|&#?\w+;/,rp=/<([\w:-]+)/,up=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ht={option:[1,'<select multiple="multiple">',"<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};ht.optgroup=ht.option;ht.tbody=ht.tfoot=ht.colgroup=ht.caption=ht.thead;ht.th=ht.td;var fp=n.Node.prototype.contains||function(n){return!!(this.compareDocumentPosition(n)&16)},gi=w.prototype={ready:is,toString:function(){var n=[];return t(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return 0<=n?e(this[n]):e(this[this.length+n])},length:0,push:py,sort:[].sort,splice:[].splice},tf={};t("multiple selected checked disabled readOnly required open".split(" "),function(n){tf[a(n)]=n});ge={};t("input select option textarea button form details".split(" "),function(n){ge[n]=!0});no={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};t({data:gf,removeData:df,hasData:function(n){for(var t in di[n.ng339])return!0;return!1},cleanData:function(n){for(var t=0,i=n.length;t<i;t++)df(n[t])}},function(n,t){w[t]=n});t({data:gf,inheritedData:cu,scope:function(n){return e.data(n,"$scope")||cu(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return e.data(n,"$isolateScope")||e.data(n,"$isolateScopeNoTemplate")},controller:ns,injector:function(n){return cu(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:ou,css:function(n,t,i){if(t=uu(t.replace(tp,"ms-")),r(i))n.style[t]=i;else return n.style[t]},attr:function(n,t,i){var u=n.nodeType,f;if(u!==ri&&2!==u&&8!==u&&n.getAttribute)if(u=a(t),f=tf[u],r(i))null===i||!1===i&&f?n.removeAttribute(t):n.setAttribute(t,f?u:i);else return n=n.getAttribute(t),f&&null!==n&&(n=u),null===n?void 0:n},prop:function(n,t,i){if(r(i))n[t]=i;else return n[t]},text:function(){function n(n,t){if(u(t)){var i=n.nodeType;return 1===i||i===ri?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,i){if(u(i)){if(n.multiple&&"select"===lt(n)){var r=[];return t(n.options,function(n){n.selected&&r.push(n.value||n.text)}),r}return n.value}n.value=i},html:function(n,t){if(u(t))return n.innerHTML;fu(n,!0);n.innerHTML=t},empty:ts},function(n,t){w.prototype[t]=function(t,i){var r,f,e=this.length,o;if(n!==ts&&u(2===n.length&&n!==ou&&n!==ns?t:i)){if(s(t)){for(r=0;r<e;r++)if(n===gf)n(this[r],t);else for(f in t)n(this[r],f,t[f]);return this}for(r=n.$dv,e=u(r)?Math.min(e,1):e,f=0;f<e;f++)o=n(this[f],t,i),r=r?r+o:o;return r}for(r=0;r<e;r++)n(this[r],t,i);return this}});t({removeData:df,on:function(n,t,i,u){var f,e,s,o;if(r(u))throw ke("onargs");if(bf(n))for(u=eu(n,!0),f=u.events,e=u.handle,e||(e=u.handle=fa(n,f)),u=0<=t.indexOf(" ")?t.split(" "):[t],s=u.length,o=function(t,r,u){var o=f[t];o||(o=f[t]=[],o.specialHandlerWrapper=r,"$destroy"===t||u||n.addEventListener(t,e));o.push(i)};s--;)t=u[s],nf[t]?(o(nf[t],oa),o(t,void 0,!0)):o(t)},off:go,one:function(n,t,i){n=e(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,i){var r,u=n.parentNode;fu(n);t(new w(i),function(t){r?u.insertBefore(t,r.nextSibling):u.replaceChild(t,n);r=t})},children:function(n){var i=[];return t(n.childNodes,function(n){1===n.nodeType&&i.push(n)}),i},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){var i=n.nodeType,r;if(1===i||11===i)for(t=new w(t),i=0,r=t.length;i<r;i++)n.appendChild(t[i])},prepend:function(n,i){if(1===n.nodeType){var r=n.firstChild;t(new w(i),function(t){n.insertBefore(t,r)})}},wrap:function(n,t){var i=e(t).eq(0).clone()[0],r=n.parentNode;r&&r.replaceChild(i,n);i.appendChild(n)},remove:lu,detach:function(n){lu(n,!0)},after:function(n,t){var u=n,f=n.parentNode,i,e,r;if(f)for(t=new w(t),i=0,e=t.length;i<e;i++)r=t[i],f.insertBefore(r,u.nextSibling),u=r},addClass:hu,removeClass:su,toggleClass:function(n,i,r){i&&t(i.split(" "),function(t){var i=r;u(i)&&(i=!ou(n,t));(i?hu:su)(n,t)})},parent:function(n){return(n=n.parentNode)&&11!==n.nodeType?n:null},next:function(n){return n.nextElementSibling},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:kf,triggerHandler:function(n,i,r){var u,e,s=i.type||i,f=eu(n);(f=(f=f&&f.events)&&f[s])&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:o,type:s,target:n},i.type&&(u=v(u,i)),i=vt(f),e=r?[u].concat(r):[u],t(i,function(t){u.isImmediatePropagationStopped()||t.apply(n,e)}))}},function(n,t){w.prototype[t]=function(t,i,f){for(var o,s=0,h=this.length;s<h;s++)u(o)?(o=n(this[s],t,i,f),r(o)&&(o=e(o))):ne(o,n(this[s],t,i,f));return r(o)?o:this}});w.prototype.bind=w.prototype.on;w.prototype.unbind=w.prototype.off;uc=Object.create(null);us.prototype={_idx:function(n){return n===this._lastKey?this._lastIndex:(this._lastKey=n,this._lastIndex=this._keys.indexOf(n))},_transformKey:function(n){return it(n)?uc:n},get:function(n){return n=this._transformKey(n),n=this._idx(n),-1!==n?this._values[n]:void 0},set:function(n,t){n=this._transformKey(n);var i=this._idx(n);-1===i&&(i=this._lastIndex=this._keys.length);this._keys[i]=n;this._values[i]=t},"delete":function(n){return(n=this._transformKey(n),n=this._idx(n),-1===n)?!1:(this._keys.splice(n,1),this._values.splice(n,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var rf=us,ep=[function(){this.$get=[function(){return rf}]}],op=/^([^(]+?)=>/,sp=/^[^(]*\(\s*([^)]*)\)/m,hp=/,/,cp=/^\s*(_?)(\S+?)\1\s*$/,lp=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,ci=l("$injector");vr.$$annotate=function(n,i,r){var u;if("function"==typeof n){if(!(u=n.$inject)){if(u=[],n.length){if(i)throw h(r)&&r||(r=n.name||ha(n)),ci("strictdi",r);i=fs(n);t(i[1].split(hp),function(n){n.replace(cp,function(n,t,i){u.push(i)})})}n.$inject=u}}else c(n)?(i=n.length-1,iu(n[i],"fn"),u=n.slice(0,i)):iu(n,"fn",!0);return u};var fc=l("$animate"),ap=function(){this.$get=o},vp=function(){var n=new rf,i=[];this.$get=["$$AnimateRunner","$rootScope",function(r,u){function f(n,i,r){var u=!1;return i&&(i=h(i)?i.split(" "):c(i)?i:[],t(i,function(t){t&&(u=!0,n[t]=r)})),u}function e(){t(i,function(i){var f=n.get(i);if(f){var e=la(i.attr("class")),r="",u="";t(f,function(n,t){n!==!!e[t]&&(n?r+=(r.length?" ":"")+t:u+=(u.length?" ":"")+t)});t(i,function(n){r&&hu(n,r);u&&su(n,u)});n.delete(i)}});i.length=0}return{enabled:o,on:o,off:o,pin:o,push:function(t,o,s,h){return h&&h(),s=s||{},s.from&&t.css(s.from),s.to&&t.css(s.to),(s.addClass||s.removeClass)&&(o=s.addClass,h=s.removeClass,s=n.get(t)||{},o=f(s,o,!0),h=f(s,h,!1),o||h)&&(n.set(t,s),i.push(t),1===i.length&&u.$$postDigest(e)),t=new r,t.complete(),t}}}]},yp=["$provide",function(n){var i=this,t=null;this.$$registeredAnimations=Object.create(null);this.register=function(t,r){if(t&&"."!==t.charAt(0))throw fc("notcsel",t);var u=t+"-animation";i.$$registeredAnimations[t.substr(1)]=u;n.factory(u,r)};this.classNameFilter=function(n){if(1===arguments.length&&(t=n instanceof RegExp?n:null)&&/[(\s|\/)]ng-animate[(\s|\/)]/.test(t.toString()))throw t=null,fc("nongcls","ng-animate");return t};this.$get=["$$animateQueue",function(n){function t(n,t,i){var r,u;if(i){n:{for(r=0;r<i.length;r++)if(u=i[r],1===u.nodeType){r=u;break n}r=void 0}!r||r.parentNode||r.previousElementSibling||(i=null)}i?i.after(n):t.prepend(n)}return{on:n.on,off:n.off,pin:n.pin,enabled:n.enabled,cancel:function(n){n.end&&n.end()},enter:function(i,r,u,f){return r=r&&e(r),u=u&&e(u),r=r||u.parent(),t(i,r,u),n.push(i,"enter",fi(f))},move:function(i,r,u,f){return r=r&&e(r),u=u&&e(u),r=r||u.parent(),t(i,r,u),n.push(i,"move",fi(f))},leave:function(t,i){return n.push(t,"leave",fi(i),function(){t.remove()})},addClass:function(t,i,r){return r=fi(r),r.addClass=yr(r.addclass,i),n.push(t,"addClass",r)},removeClass:function(t,i,r){return r=fi(r),r.removeClass=yr(r.removeClass,i),n.push(t,"removeClass",r)},setClass:function(t,i,r,u){return u=fi(u),u.addClass=yr(u.addClass,i),u.removeClass=yr(u.removeClass,r),n.push(t,"setClass",u)},animate:function(t,i,r,u,f){return f=fi(f),f.from=f.from?v(f.from,i):i,f.to=f.to?v(f.to,r):r,f.tempClasses=yr(f.tempClasses,u||"ng-inline-animate"),n.push(t,"animate",f)}}}]}],pp=function(){this.$get=["$$rAF",function(n){function i(i){t.push(i);1<t.length||n(function(){for(var n=0;n<t.length;n++)t[n]();t=[]})}var t=[];return function(){var n=!1;return i(function(){n=!0}),function(t){n?t():i(t)}}}]},wp=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(n,i,r,u,f){function e(n){this.setHost(n);var t=r();this._doneCallbacks=[];this._tick=function(n){u()?f(n,0,!1):t(n)};this._state=0}return e.chain=function(n,t){function r(){i===n.length?t(!0):n[i](function(n){!1===n?t(!1):(i++,r())})}var i=0;r()},e.all=function(n,i){function u(t){r=r&&t;++f===n.length&&i(r)}var f=0,r=!0;t(n,function(n){n.done(u)})},e.prototype={setHost:function(n){this.host=n||{}},done:function(n){2===this._state?n():this._doneCallbacks.push(n)},progress:o,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,i){t.done(function(t){!1===t?i():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise()["catch"](n)},"finally":function(n){return this.getPromise()["finally"](n)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(n){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(n)}))},_resolve:function(n){2!==this._state&&(t(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=2)}},e}]},bp=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(n,t,i){return function(t,r){function e(){return n(function(){u.addClass&&(t.addClass(u.addClass),u.addClass=null);u.removeClass&&(t.removeClass(u.removeClass),u.removeClass=null);u.to&&(t.css(u.to),u.to=null);o||f.complete();o=!0}),f}var u=r||{},o,f;return u.$$prepared||(u=ni(u)),u.cleanupStyles&&(u.from=u.to=null),u.from&&(t.css(u.from),u.from=null),f=new i,{start:e,end:e}}}]},k=l("$compile"),to=new function(){};es.$inject=["$provide","$$sanitizeUriProvider"];au.prototype.isFirstChange=function(){return this.previousValue===to};var ec=/^((?:x|data)[:\-_])/i,kp=/[:\-_]+(.)/g,oc=l("$controller"),sc=/^(\S+)(\s+as\s+([\w$]+))?$/,dp=function(){this.$get=["$document",function(n){return function(t){return t?!t.nodeType&&t instanceof e&&(t=t[0]):t=n[0].body,t.offsetWidth+1}}]},hc="application/json",io={"Content-Type":hc+";charset=utf-8"},gp=/^\[|^\{(?!\{)/,nw={"[":/]$/,"{":/}$/},tw=/^\)]\}',?\n/,ro=l("$http"),li=ft.$interpolateMinErr=l("$interpolate");li.throwNoconcat=function(n){throw li("noconcat",n);};li.interr=function(n,t){return li("interr",n,t.toString())};var iw=function(){this.$get=function(){function i(n){var t=function(n){t.data=n;t.called=!0};return t.id=n,t}var t=ft.callbacks,n={};return{createCallback:function(r){r="_"+(t.$$counter++).toString(36);var u="angular.callbacks."+r,f=i(r);return n[u]=t[r]=f,u},wasCalled:function(t){return n[t].called},getResponse:function(t){return n[t].data},removeCallback:function(i){delete t[n[i].id];delete n[i]}}}},rw=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,uw={http:80,https:443,ftp:21},kr=l("$location"),fw=/^\s*[\\/]{2,}/,ew={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:vu("$$absUrl"),url:function(n){if(u(n))return this.$$url;var t=rw.exec(n);return(t[1]||""===n)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===n)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:vu("$$protocol"),host:vu("$$host"),port:vu("$$port"),path:ps("$$path",function(n){return n=null!==n?n.toString():"","/"===n.charAt(0)?n:"/"+n}),search:function(n,i){switch(arguments.length){case 0:return this.$$search;case 1:if(h(n)||d(n))n=n.toString(),this.$$search=yo(n);else if(s(n))n=ni(n,{}),t(n,function(t,i){null==t&&delete n[i]}),this.$$search=n;else throw kr("isrcharg");break;default:u(i)||null===i?delete this.$$search[n]:this.$$search[n]=i}return this.$$compose(),this},hash:ps("$$hash",function(n){return null!==n?n.toString():""}),replace:function(){return this.$$replace=!0,this}};t([ys,ee,fe],function(n){n.prototype=Object.create(ew);n.prototype.state=function(t){if(!arguments.length)return this.$$state;if(n!==fe||!this.$$html5)throw kr("nostate");return this.$$state=u(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});var nr=l("$parse"),ow={}.constructor.prototype.valueOf,uf=p();t("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(n){uf[n]=!0});cc={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};ff=function(n){this.options=n};ff.prototype={constructor:ff,lex:function(n){for(this.text=n,this.index=0,this.tokens=[];this.index<this.text.length;)if(n=this.text.charAt(this.index),'"'===n||"'"===n)this.readString(n);else if(this.isNumber(n)||"."===n&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(n,"(){}[].,;:?"))this.tokens.push({index:this.index,text:n}),this.index++;else if(this.isWhitespace(n))this.index++;else{var t=n+this.peek(),i=t+this.peek(2),r=uf[t],u=uf[i];uf[n]||r||u?(n=u?i:r?t:n,this.tokens.push({index:this.index,text:n,operator:!0}),this.index+=n.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(n,t){return-1!==t.indexOf(n)},peek:function(n){return n=n||1,this.index+n<this.text.length?this.text.charAt(this.index+n):!1},isNumber:function(n){return"0"<=n&&"9">=n&&"string"==typeof n},isWhitespace:function(n){return" "===n||"\r"===n||"\t"===n||"\n"===n||"\v"===n||" "===n},isIdentifierStart:function(n){return this.options.isIdentifierStart?this.options.isIdentifierStart(n,this.codePointAt(n)):this.isValidIdentifierStart(n)},isValidIdentifierStart:function(n){return"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"_"===n||"$"===n},isIdentifierContinue:function(n){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(n,this.codePointAt(n)):this.isValidIdentifierContinue(n)},isValidIdentifierContinue:function(n,t){return this.isValidIdentifierStart(n,t)||this.isNumber(n)},codePointAt:function(n){return 1===n.length?n.charCodeAt(0):(n.charCodeAt(0)<<10)+n.charCodeAt(1)-56613888},peekMultichar:function(){var n=this.text.charAt(this.index),t=this.peek(),i,r;return t?(i=n.charCodeAt(0),r=t.charCodeAt(0),55296<=i&&56319>=i&&56320<=r&&57343>=r?n+t:n):n},isExpOperator:function(n){return"-"===n||"+"===n||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;t=r(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw nr("lexerr",n,t,this.text);},readNumber:function(){for(var t,i,n="",r=this.index;this.index<this.text.length;){if(t=a(this.text.charAt(this.index)),"."===t||this.isNumber(t))n+=t;else if(i=this.peek(),"e"===t&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&"e"===n.charAt(n.length-1))n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||"e"!==n.charAt(n.length-1))break;else this.throwError("Invalid exponent");this.index++}this.tokens.push({index:r,text:n,constant:!0,value:Number(n)})},readIdent:function(){var t=this.index,n;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){if(n=this.peekMultichar(),!this.isIdentifierContinue(n))break;this.index+=n.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(n){var f=this.index,t,u;this.index++;for(var r="",u=n,i=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),u=u+t,i)"u"===t?(i=this.text.substring(this.index+1,this.index+5),i.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,r+=String.fromCharCode(parseInt(i,16))):r+=cc[t]||t,i=!1;else if("\\"===t)i=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:u,constant:!0,value:r});return}r+=t}this.index++}this.throwError("Unterminated quote",f)}};i=function(n,t){this.lexer=n;this.options=t};i.Program="Program";i.ExpressionStatement="ExpressionStatement";i.AssignmentExpression="AssignmentExpression";i.ConditionalExpression="ConditionalExpression";i.LogicalExpression="LogicalExpression";i.BinaryExpression="BinaryExpression";i.UnaryExpression="UnaryExpression";i.CallExpression="CallExpression";i.MemberExpression="MemberExpression";i.Identifier="Identifier";i.Literal="Literal";i.ArrayExpression="ArrayExpression";i.Property="Property";i.ObjectExpression="ObjectExpression";i.ThisExpression="ThisExpression";i.LocalsExpression="LocalsExpression";i.NGValueParameter="NGValueParameter";i.prototype={ast:function(n){return this.text=n,this.tokens=this.lexer.lex(n),n=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),n},program:function(){for(var n=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&n.push(this.expressionStatement()),!this.expect(";"))return{type:i.Program,body:n}},expressionStatement:function(){return{type:i.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var n=this.expression();this.expect("|");)n=this.filter(n);return n},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary();if(this.expect("=")){if(!ks(n))throw nr("lval");n={type:i.AssignmentExpression,left:n,right:this.assignment(),operator:"="}}return n},ternary:function(){var n=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:i.ConditionalExpression,test:n,alternate:t,consequent:r}):n},logicalOR:function(){for(var n=this.logicalAND();this.expect("||");)n={type:i.LogicalExpression,operator:"||",left:n,right:this.logicalAND()};return n},logicalAND:function(){for(var n=this.equality();this.expect("&&");)n={type:i.LogicalExpression,operator:"&&",left:n,right:this.equality()};return n},equality:function(){for(var n=this.relational(),t;t=this.expect("==","!=","===","!==");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.relational()};return n},relational:function(){for(var n=this.additive(),t;t=this.expect("<",">","<=",">=");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.additive()};return n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.multiplicative()};return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.unary()};return n},unary:function(){var n;return(n=this.expect("+","-","!"))?{type:i.UnaryExpression,operator:n.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var n,t;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?n=ni(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?n={type:i.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?n=this.identifier():this.peek().constant?n=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(n={type:i.CallExpression,callee:n,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(n={type:i.MemberExpression,object:n,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?n={type:i.MemberExpression,object:n,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return n},filter:function(n){n=[n];for(var t={type:i.CallExpression,callee:this.identifier(),arguments:n,filter:!0};this.expect(":");)n.push(this.expression());return t},parseArguments:function(){var n=[];if(")"!==this.peekToken().text)do n.push(this.filterChain());while(this.expect(","));return n},identifier:function(){var n=this.consume();return n.identifier||this.throwError("is not a valid identifier",n),{type:i.Identifier,name:n.text}},constant:function(){return{type:i.Literal,value:this.consume().value}},arrayDeclaration:function(){var n=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;n.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:i.ArrayExpression,elements:n}},object:function(){var t=[],n;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;n={type:i.Property,kind:"init"};this.peek().constant?(n.key=this.constant(),n.computed=!1,this.consume(":"),n.value=this.expression()):this.peek().identifier?(n.key=this.identifier(),n.computed=!1,this.peek(":")?(this.consume(":"),n.value=this.expression()):n.value=n.key):this.peek("[")?(this.consume("["),n.key=this.expression(),this.consume("]"),n.computed=!0,this.consume(":"),n.value=this.expression()):this.throwError("invalid key",this.peek());t.push(n)}while(this.expect(","));return this.consume("}"),{type:i.ObjectExpression,properties:t}},throwError:function(n,t){throw nr("syntax",t.text,n,t.index+1,this.text,this.text.substring(t.index));},consume:function(n){if(0===this.tokens.length)throw nr("ueoe",this.text);var t=this.expect(n);return t||this.throwError("is unexpected, expecting ["+n+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw nr("ueoe",this.text);return this.tokens[0]},peek:function(n,t,i,r){return this.peekAhead(0,n,t,i,r)},peekAhead:function(n,t,i,r,u){if(this.tokens.length>n){n=this.tokens[n];var f=n.text;if(f===t||f===i||f===r||f===u||!(t||i||r||u))return n}return!1},expect:function(n,t,i,r){return(n=this.peek(n,t,i,r))?(this.tokens.shift(),n):!1},selfReferential:{"this":{type:i.ThisExpression},$locals:{type:i.LocalsExpression}}};gs.prototype={compile:function(n){var i=this,r,u;return this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},b(n,i.$filter),r="",this.stage="assign",(u=ds(n))&&(this.state.computing="assign",r=this.nextId(),this.recurse(u,r),this.return_(r),r="fn.assign="+this.generateFunction("assign","s,v,l")),u=bs(n.body),i.stage="inputs",t(u,function(n,t){var r="fn"+t,u;i.state[r]={vars:[],body:[],own:{}};i.state.computing=r;u=i.nextId();i.recurse(n,u);i.return_(u);i.state.inputs.push(r);n.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(n),n='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",n=new Function("$filter","getStringValue","ifDefined","plus",n)(this.$filter,cv,lv,ws),this.state=this.stage=void 0,n},USE:"use",STRICT:"strict",watchFns:function(){var n=[],i=this.state.inputs,r=this;return t(i,function(t){n.push("var "+t+"="+r.generateFunction(t,"s"))}),i.length&&n.push("fn.inputs=["+i.join(",")+"];"),n.join("")},generateFunction:function(n,t){return"function("+t+"){"+this.varsPrefix(n)+this.body(n)+"};"},filterPrefix:function(){var n=[],i=this;return t(this.state.filters,function(t,r){n.push(t+"=$filter("+i.escape(r)+")")}),n.length?"var "+n.join(",")+";":""},varsPrefix:function(n){return this.state[n].vars.length?"var "+this.state[n].vars.join(",")+";":""},body:function(n){return this.state[n].body.join("")},recurse:function(n,u,f,e,s,h){var l,a,c=this,y,v,p;if(e=e||o,!h&&r(n.watchId))u=u||this.nextId(),this.if_("i",this.lazyAssign(u,this.computedMember("i",n.watchId)),this.lazyRecurse(n,u,f,e,s,!0));else switch(n.type){case i.Program:t(n.body,function(t,i){c.recurse(t.expression,void 0,void 0,function(n){a=n});i!==n.body.length-1?c.current().body.push(a,";"):c.return_(a)});break;case i.Literal:v=this.escape(n.value);this.assign(u,v);e(u||v);break;case i.UnaryExpression:this.recurse(n.argument,void 0,void 0,function(n){a=n});v=n.operator+"("+this.ifDefined(a,0)+")";this.assign(u,v);e(v);break;case i.BinaryExpression:this.recurse(n.left,void 0,void 0,function(n){l=n});this.recurse(n.right,void 0,void 0,function(n){a=n});v="+"===n.operator?this.plus(l,a):"-"===n.operator?this.ifDefined(l,0)+n.operator+this.ifDefined(a,0):"("+l+")"+n.operator+"("+a+")";this.assign(u,v);e(v);break;case i.LogicalExpression:u=u||this.nextId();c.recurse(n.left,u);c.if_("&&"===n.operator?u:c.not(u),c.lazyRecurse(n.right,u));e(u);break;case i.ConditionalExpression:u=u||this.nextId();c.recurse(n.test,u);c.if_(u,c.lazyRecurse(n.alternate,u),c.lazyRecurse(n.consequent,u));e(u);break;case i.Identifier:u=u||this.nextId();f&&(f.context="inputs"===c.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),f.computed=!1,f.name=n.name);c.if_("inputs"===c.stage||c.not(c.getHasOwnProperty("l",n.name)),function(){c.if_("inputs"===c.stage||"s",function(){s&&1!==s&&c.if_(c.isNull(c.nonComputedMember("s",n.name)),c.lazyAssign(c.nonComputedMember("s",n.name),"{}"));c.assign(u,c.nonComputedMember("s",n.name))})},u&&c.lazyAssign(u,c.nonComputedMember("l",n.name)));e(u);break;case i.MemberExpression:l=f&&(f.context=this.nextId())||this.nextId();u=u||this.nextId();c.recurse(n.object,l,void 0,function(){c.if_(c.notNull(l),function(){n.computed?(a=c.nextId(),c.recurse(n.property,a),c.getStringValue(a),s&&1!==s&&c.if_(c.not(c.computedMember(l,a)),c.lazyAssign(c.computedMember(l,a),"{}")),v=c.computedMember(l,a),c.assign(u,v),f&&(f.computed=!0,f.name=a)):(s&&1!==s&&c.if_(c.isNull(c.nonComputedMember(l,n.property.name)),c.lazyAssign(c.nonComputedMember(l,n.property.name),"{}")),v=c.nonComputedMember(l,n.property.name),c.assign(u,v),f&&(f.computed=!1,f.name=n.property.name))},function(){c.assign(u,"undefined")});e(u)},!!s);break;case i.CallExpression:u=u||this.nextId();n.filter?(a=c.filter(n.callee.name),y=[],t(n.arguments,function(n){var t=c.nextId();c.recurse(n,t);y.push(t)}),v=a+"("+y.join(",")+")",c.assign(u,v),e(u)):(a=c.nextId(),l={},y=[],c.recurse(n.callee,a,l,function(){c.if_(c.notNull(a),function(){t(n.arguments,function(t){c.recurse(t,n.constant?void 0:c.nextId(),void 0,function(n){y.push(n)})});v=l.name?c.member(l.context,l.name,l.computed)+"("+y.join(",")+")":a+"("+y.join(",")+")";c.assign(u,v)},function(){c.assign(u,"undefined")});e(u)}));break;case i.AssignmentExpression:a=this.nextId();l={};this.recurse(n.left,void 0,l,function(){c.if_(c.notNull(l.context),function(){c.recurse(n.right,a);v=c.member(l.context,l.name,l.computed)+n.operator+a;c.assign(u,v);e(u||v)})},1);break;case i.ArrayExpression:y=[];t(n.elements,function(t){c.recurse(t,n.constant?void 0:c.nextId(),void 0,function(n){y.push(n)})});v="["+y.join(",")+"]";this.assign(u,v);e(u||v);break;case i.ObjectExpression:y=[];p=!1;t(n.properties,function(n){n.computed&&(p=!0)});p?(u=u||this.nextId(),this.assign(u,"{}"),t(n.properties,function(n){n.computed?(l=c.nextId(),c.recurse(n.key,l)):l=n.key.type===i.Identifier?n.key.name:""+n.key.value;a=c.nextId();c.recurse(n.value,a);c.assign(c.member(u,l,n.computed),a)})):(t(n.properties,function(t){c.recurse(t.value,n.constant?void 0:c.nextId(),void 0,function(n){y.push(c.escape(t.key.type===i.Identifier?t.key.name:""+t.key.value)+":"+n)})}),v="{"+y.join(",")+"}",this.assign(u,v));e(u||v);break;case i.ThisExpression:this.assign(u,"s");e(u||"s");break;case i.LocalsExpression:this.assign(u,"l");e(u||"l");break;case i.NGValueParameter:this.assign(u,"v");e(u||"v")}},getHasOwnProperty:function(n,t){var i=n+"."+t,r=this.current().own;return r.hasOwnProperty(i)||(r[i]=this.nextId(!1,n+"&&("+this.escape(t)+" in "+n+")")),r[i]},assign:function(n,t){if(n)return this.current().body.push(n,"=",t,";"),n},filter:function(n){return this.state.filters.hasOwnProperty(n)||(this.state.filters[n]=this.nextId(!0)),this.state.filters[n]},ifDefined:function(n,t){return"ifDefined("+n+","+this.escape(t)+")"},plus:function(n,t){return"plus("+n+","+t+")"},return_:function(n){this.current().body.push("return ",n,";")},if_:function(n,t,i){if(!0===n)t();else{var r=this.current().body;r.push("if(",n,"){");t();r.push("}");i&&(r.push("else{"),i(),r.push("}"))}},not:function(n){return"!("+n+")"},isNull:function(n){return n+"==null"},notNull:function(n){return n+"!=null"},nonComputedMember:function(n,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?n+"."+t:n+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(n,t){return n+"["+t+"]"},member:function(n,t,i){return i?this.computedMember(n,t):this.nonComputedMember(n,t)},getStringValue:function(n){this.assign(n,"getStringValue("+n+")")},lazyRecurse:function(n,t,i,r,u,f){var e=this;return function(){e.recurse(n,t,i,r,u,f)}},lazyAssign:function(n,t){var i=this;return function(){i.assign(n,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)},escape:function(n){if(h(n))return"'"+n.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(d(n))return n.toString();if(!0===n)return"true";if(!1===n)return"false";if(null===n)return"null";if("undefined"==typeof n)return"undefined";throw nr("esc");},nextId:function(n,t){var i="v"+this.state.nextId++;return n||this.current().vars.push(i+(t?"="+t:"")),i},current:function(){return this.state[this.state.computing]}};nh.prototype={compile:function(n){var f=this,i,e,r,u;return b(n,f.$filter),(i=ds(n))&&(e=this.recurse(i)),i=bs(n.body),i&&(r=[],t(i,function(n,t){var i=f.recurse(n);n.input=i;r.push(i);n.watchId=t})),u=[],t(n.body,function(n){u.push(f.recurse(n.expression))}),n=0===n.body.length?o:1===n.body.length?u[0]:function(n,i){var r;return t(u,function(t){r=t(n,i)}),r},e&&(n.assign=function(n,t,i){return e(n,i,t)}),r&&(n.inputs=r),n},recurse:function(n,r,u){var o,e,s=this,f;if(n.input)return this.inputs(n.input,n.watchId);switch(n.type){case i.Literal:return this.value(n.value,r);case i.UnaryExpression:return e=this.recurse(n.argument),this["unary"+n.operator](e,r);case i.BinaryExpression:return o=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](o,e,r);case i.LogicalExpression:return o=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](o,e,r);case i.ConditionalExpression:return this["ternary?:"](this.recurse(n.test),this.recurse(n.alternate),this.recurse(n.consequent),r);case i.Identifier:return s.identifier(n.name,r,u);case i.MemberExpression:return o=this.recurse(n.object,!1,!!u),n.computed||(e=n.property.name),n.computed&&(e=this.recurse(n.property)),n.computed?this.computedMember(o,e,r,u):this.nonComputedMember(o,e,r,u);case i.CallExpression:return f=[],t(n.arguments,function(n){f.push(s.recurse(n))}),n.filter&&(e=this.$filter(n.callee.name)),n.filter||(e=this.recurse(n.callee,!0)),n.filter?function(n,t,i,u){for(var s=[],o=0;o<f.length;++o)s.push(f[o](n,t,i,u));return n=e.apply(void 0,s,u),r?{context:void 0,name:void 0,value:n}:n}:function(n,t,i,u){var h=e(n,t,i,u),o,s;if(null!=h.value){for(o=[],s=0;s<f.length;++s)o.push(f[s](n,t,i,u));o=h.value.apply(h.context,o)}return r?{value:o}:o};case i.AssignmentExpression:return o=this.recurse(n.left,!0,1),e=this.recurse(n.right),function(n,t,i,u){var f=o(n,t,i,u);return n=e(n,t,i,u),f.context[f.name]=n,r?{value:n}:n};case i.ArrayExpression:return f=[],t(n.elements,function(n){f.push(s.recurse(n))}),function(n,t,i,u){for(var e=[],o=0;o<f.length;++o)e.push(f[o](n,t,i,u));return r?{value:e}:e};case i.ObjectExpression:return f=[],t(n.properties,function(n){n.computed?f.push({key:s.recurse(n.key),computed:!0,value:s.recurse(n.value)}):f.push({key:n.key.type===i.Identifier?n.key.name:""+n.key.value,computed:!1,value:s.recurse(n.value)})}),function(n,t,i,u){for(var o={},e=0;e<f.length;++e)f[e].computed?o[f[e].key(n,t,i,u)]=f[e].value(n,t,i,u):o[f[e].key]=f[e].value(n,t,i,u);return r?{value:o}:o};case i.ThisExpression:return function(n){return r?{value:n}:n};case i.LocalsExpression:return function(n,t){return r?{value:t}:t};case i.NGValueParameter:return function(n,t,i){return r?{value:i}:i}}},"unary+":function(n,t){return function(i,u,f,e){return i=n(i,u,f,e),i=r(i)?+i:0,t?{value:i}:i}},"unary-":function(n,t){return function(i,u,f,e){return i=n(i,u,f,e),i=r(i)?-i:-0,t?{value:i}:i}},"unary!":function(n,t){return function(i,r,u,f){return i=!n(i,r,u,f),t?{value:i}:i}},"binary+":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e);return r=t(r,u,f,e),o=ws(o,r),i?{value:o}:o}},"binary-":function(n,t,i){return function(u,f,e,o){var s=n(u,f,e,o);return u=t(u,f,e,o),s=(r(s)?s:0)-(r(u)?u:0),i?{value:s}:s}},"binary*":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)*t(r,u,f,e),i?{value:r}:r}},"binary/":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)/t(r,u,f,e),i?{value:r}:r}},"binary%":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)%t(r,u,f,e),i?{value:r}:r}},"binary===":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)===t(r,u,f,e),i?{value:r}:r}},"binary!==":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)!==t(r,u,f,e),i?{value:r}:r}},"binary==":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)==t(r,u,f,e),i?{value:r}:r}},"binary!=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)!=t(r,u,f,e),i?{value:r}:r}},"binary<":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)<t(r,u,f,e),i?{value:r}:r}},"binary>":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)>t(r,u,f,e),i?{value:r}:r}},"binary<=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)<=t(r,u,f,e),i?{value:r}:r}},"binary>=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)>=t(r,u,f,e),i?{value:r}:r}},"binary&&":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)&&t(r,u,f,e),i?{value:r}:r}},"binary||":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)||t(r,u,f,e),i?{value:r}:r}},"ternary?:":function(n,t,i,r){return function(u,f,e,o){return u=n(u,f,e,o)?t(u,f,e,o):i(u,f,e,o),r?{value:u}:u}},value:function(n,t){return function(){return t?{context:void 0,name:void 0,value:n}:n}},identifier:function(n,t,i){return function(r,u){return r=u&&n in u?u:r,i&&1!==i&&r&&null==r[n]&&(r[n]={}),u=r?r[n]:void 0,t?{context:r,name:n,value:u}:u}},computedMember:function(n,t,i,r){return function(u,f,e,o){var s=n(u,f,e,o),h,c;return null!=s&&(h=t(u,f,e,o),h+="",r&&1!==r&&s&&!s[h]&&(s[h]={}),c=s[h]),i?{context:s,name:h,value:c}:c}},nonComputedMember:function(n,t,i,r){return function(u,f,e,o){return u=n(u,f,e,o),r&&1!==r&&u&&null==u[t]&&(u[t]={}),f=null!=u?u[t]:void 0,i?{context:u,name:t,value:f}:f}},inputs:function(n,t){return function(i,r,u,f){return f?f[t]:n(i,r,u)}}};oe.prototype={constructor:oe,parse:function(n){n=this.ast.ast(n);var t=this.astCompiler.compile(n);return t.literal=0===n.body.length||1===n.body.length&&(n.body[0].expression.type===i.Literal||n.body[0].expression.type===i.ArrayExpression||n.body[0].expression.type===i.ObjectExpression),t.constant=n.constant,t}};var ui=l("$sce"),ct={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},uo=/_([a-z])/g,sw=l("$compile"),nt=n.document.createElement("a"),lc=ti(n.location.href);uh.$inject=["$document"];fh.$inject=["$provide"];var ac=22,vc=".",fo="0";eh.$inject=["$locale"];oh.$inject=["$locale"];var hw={yyyy:g("FullYear",4,0,!1,!0),yy:g("FullYear",2,0,!0,!0),y:g("FullYear",1,0,!1,!0),MMMM:wr("Month"),MMM:wr("Month",!0),MM:g("Month",2,1),M:g("Month",1,1),LLLL:wr("Month",!1,!0),dd:g("Date",2),d:g("Date",1),HH:g("Hours",2),H:g("Hours",1),hh:g("Hours",2,-12),h:g("Hours",1,-12),mm:g("Minutes",2),m:g("Minutes",1),ss:g("Seconds",2),s:g("Seconds",1),sss:g("Milliseconds",3),EEEE:wr("Day"),EEE:wr("Day",!0),a:function(n,t){return 12>n.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(n,t,i){return n=-1*i,(0<=n?"+":"")+(yu(Math[0<n?"floor":"ceil"](n/60),2)+yu(Math.abs(n%60),2))},ww:ch(2),w:ch(1),G:ce,GG:ce,GGG:ce,GGGG:function(n,t){return 0>=n.getFullYear()?t.ERANAMES[0]:t.ERANAMES[1]}},cw=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,lw=/^-?\d+$/;lh.$inject=["$locale"];yc=ot(a);pc=ot(ku);ah.$inject=["$parse"];wc=ot({restrict:"E",compile:function(n,t){if(!t.href&&!t.xlinkHref)return function(n,t){if("a"===t[0].nodeName.toLowerCase()){var i="[object SVGAnimatedString]"===ut.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}}}});dr={};t(tf,function(n,t){function r(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}if("multiple"!==n){var i=yt("ng-"+t),u=r;"checked"===n&&(u=function(n,t,u){u.ngModel!==u[i]&&r(n,t,u)});dr[i]=function(){return{restrict:"A",priority:100,link:u}}}});t(no,function(n,t){dr[t]=function(){return{priority:100,link:function(n,i,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)&&(i=r.ngPattern.match(vy))){r.$set("ngPattern",new RegExp(i[1],i[2]));return}n.$watch(r[t],function(n){r.$set(t,n)})}}}});t(["src","srcset","href"],function(n){var t=yt("ng-"+n);dr[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;"href"===n&&"[object SVGAnimatedString]"===ut.call(r.prop("href"))&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){t?(u.$set(f,t),wt&&e&&r.prop(e,u[f])):"href"===n&&u.$set(f,null)})}}}});gr={$addControl:o,$$renameControl:function(n,t){n.$name=t},$removeControl:o,$setValidity:o,$setDirty:o,$setPristine:o,$setSubmitted:o};pu.$inject=["$element","$attrs","$scope","$animate","$interpolate"];pu.prototype={$rollbackViewValue:function(){t(this.$$controls,function(n){n.$rollbackViewValue()})},$commitViewValue:function(){t(this.$$controls,function(n){n.$commitViewValue()})},$addControl:function(n){ai(n.$name,"input");this.$$controls.push(n);n.$name&&(this[n.$name]=n);n.$$parentForm=this},$$renameControl:function(n,t){var i=n.$name;this[i]===n&&delete this[i];this[t]=n;n.$name=t},$removeControl:function(n){n.$name&&this[n.$name]===n&&delete this[n.$name];t(this.$pending,function(t,i){this.$setValidity(i,null,n)},this);t(this.$error,function(t,i){this.$setValidity(i,null,n)},this);t(this.$$success,function(t,i){this.$setValidity(i,null,n)},this);er(this.$$controls,n);n.$$parentForm=gr},$setDirty:function(){this.$$animate.removeClass(this.$$element,tr);this.$$animate.addClass(this.$$element,ef);this.$dirty=!0;this.$pristine=!1;this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,tr,ef+" ng-submitted");this.$dirty=!1;this.$pristine=!0;this.$submitted=!1;t(this.$$controls,function(n){n.$setPristine()})},$setUntouched:function(){t(this.$$controls,function(n){n.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted");this.$submitted=!0;this.$$parentForm.$setSubmitted()}};yh({clazz:pu,set:function(n,t,i){var r=n[t];r?-1===r.indexOf(i)&&r.push(i):n[t]=[i]},unset:function(n,t,i){var r=n[t];r&&(er(r,i),0===r.length&&delete n[t])}});var bc=function(n){return["$timeout","$parse",function(t,i){function r(n){return""===n?i('this[""]').assign:i(n).assign||o}return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:pu,compile:function(i,u){i.addClass(tr).addClass(nu);var f=u.name?"name":n&&u.ngForm?"ngForm":!1;return{pre:function(n,i,u,e){var s=e[0],c,h;if(!("action"in u)){c=function(t){n.$apply(function(){s.$commitViewValue();s.$setSubmitted()});t.preventDefault()};i[0].addEventListener("submit",c);i.on("$destroy",function(){t(function(){i[0].removeEventListener("submit",c)},0,!1)})}(e[1]||s.$$parentForm).$addControl(s);h=f?r(s.$name):o;f&&(h(n,s),u.$observe(f,function(t){s.$name!==t&&(h(n,void 0),s.$$parentForm.$$renameControl(s,t),h=r(s.$name),h(n,s))}));i.on("$destroy",function(){s.$$parentForm.$removeControl(s);h(n,void 0);v(s,gr)})}}}}}]},aw=bc(),vw=bc(!0),yw=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,pw=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ww=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,bw=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,kc=/^(\d{4,})-(\d{2})-(\d{2})$/,dc=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,eo=/^(\d{4,})-W(\d\d)$/,gc=/^(\d{4,})-(\d\d)$/,nl=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,tl=p();t(["date","datetime-local","month","time","week"],function(n){tl[n]=!0});var il={text:function(n,t,i,r,u,f){pi(n,t,i,r,u,f);ae(r)},date:br("date",kc,wu(kc,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":br("datetimelocal",dc,wu(dc,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:br("time",nl,wu(nl,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:br("week",eo,function(n,t){var i;if(rt(n))return n;if(h(n)&&(eo.lastIndex=0,i=eo.exec(n),i)){var u=+i[1],r=+i[2],f=i=0,e=0,o=0,s=hh(u),r=7*(r-1);return t&&(i=t.getHours(),f=t.getMinutes(),e=t.getSeconds(),o=t.getMilliseconds()),new Date(u,0,s.getDate()+r,i,f,e,o)}return NaN},"yyyy-Www"),month:br("month",gc,wu(gc,["yyyy","MM"]),"yyyy-MM"),number:function(n,t,i,f,e,o){var s,h,c;ve(n,t,i,f);wh(f);pi(n,t,i,f,e,o);(r(i.min)||i.ngMin)&&(f.$validators.min=function(n){return f.$isEmpty(n)||u(s)||n>=s},i.$observe("min",function(n){s=wi(n);f.$validate()}));(r(i.max)||i.ngMax)&&(f.$validators.max=function(n){return f.$isEmpty(n)||u(h)||n<=h},i.$observe("max",function(n){h=wi(n);f.$validate()}));(r(i.step)||i.ngStep)&&(f.$validators.step=function(n,t){return f.$isEmpty(t)||u(c)||bh(t,s||0,c)},i.$observe("step",function(n){c=wi(n);f.$validate()}))},url:function(n,t,i,r,u,f){pi(n,t,i,r,u,f);ae(r);r.$$parserName="url";r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||pw.test(i)}},email:function(n,t,i,r,u,f){pi(n,t,i,r,u,f);ae(r);r.$$parserName="email";r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||ww.test(i)}},radio:function(n,t,i,r){var f=!i.ngTrim||"false"!==y(i.ngTrim);u(i.name)&&t.attr("name",++du);t.on("click",function(n){var u;t[0].checked&&(u=i.value,f&&(u=y(u)),r.$setViewValue(u,n&&n.type))});r.$render=function(){var n=i.value;f&&(n=y(n));t[0].checked=n===r.$viewValue};i.$observe("value",r.$render)},range:function(n,t,i,f,e,o){function l(n,r){t.attr(n,i[n]);i.$observe(n,r)}function p(n){h=wi(n);it(f.$modelValue)||(s?(n=t.val(),h>n&&(n=h,t.val(n)),f.$setViewValue(n)):f.$validate())}function w(n){c=wi(n);it(f.$modelValue)||(s?(n=t.val(),c<n&&(t.val(c),n=c<h?h:c),f.$setViewValue(n)):f.$validate())}function b(n){a=wi(n);it(f.$modelValue)||(s&&f.$viewValue!==t.val()?f.$setViewValue(t.val()):f.$validate())}var y;ve(n,t,i,f);wh(f);pi(n,t,i,f,e,o);var s=f.$$hasNativeValidators&&"range"===t[0].type,h=s?0:void 0,c=s?100:void 0,a=s?1:void 0,v=t[0].validity;n=r(i.min);e=r(i.max);o=r(i.step);y=f.$render;f.$render=s&&r(v.rangeUnderflow)&&r(v.rangeOverflow)?function(){y();f.$setViewValue(t.val())}:y;n&&(f.$validators.min=s?function(){return!0}:function(n,t){return f.$isEmpty(t)||u(h)||t>=h},l("min",p));e&&(f.$validators.max=s?function(){return!0}:function(n,t){return f.$isEmpty(t)||u(c)||t<=c},l("max",w));o&&(f.$validators.step=s?function(){return!v.stepMismatch}:function(n,t){return f.$isEmpty(t)||u(a)||bh(t,h||0,a)},l("step",b))},checkbox:function(n,t,i,r,u,f,e,o){var s=kh(o,n,"ngTrueValue",i.ngTrueValue,!0),h=kh(o,n,"ngFalseValue",i.ngFalseValue,!1);t.on("click",function(n){r.$setViewValue(t[0].checked,n&&n.type)});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return!1===n};r.$formatters.push(function(n){return st(n,s)});r.$parsers.push(function(n){return n?s:h})},hidden:o,button:o,submit:o,reset:o,file:o},rl=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(u,f,e,o){o[0]&&(il[a(e.type)]||il.text)(u,f,e,o[0],t,n,i,r)}}}}],kw=/^(true|false|\d+)$/,dw=function(){function n(n,t,i){var u=r(i)?i:9===wt?"":null;n.prop("value",u);t.$set("value",i)}return{restrict:"A",priority:100,compile:function(t,i){return kw.test(i.ngValue)?function(t,i,r){t=t.$eval(r.ngValue);n(i,r,t)}:function(t,i,r){t.$watch(r.ngValue,function(t){n(i,r,t)})}}}},gw=["$compile",function(n){return{restrict:"AC",compile:function(t){return n.$$addBindingClass(t),function(t,i,r){n.$$addBindingInfo(i,r.ngBind);i=i[0];t.$watch(r.ngBind,function(n){i.textContent=wf(n)})}}}}],nb=["$interpolate","$compile",function(n,t){return{compile:function(i){return t.$$addBindingClass(i),function(i,r,f){i=n(r.attr(f.$attr.ngBindTemplate));t.$$addBindingInfo(r,i.expressions);r=r[0];f.$observe("ngBindTemplate",function(n){r.textContent=u(n)?"":n})}}}}],tb=["$sce","$parse","$compile",function(n,t,i){return{restrict:"A",compile:function(r,u){var f=t(u.ngBindHtml),e=t(u.ngBindHtml,function(t){return n.valueOf(t)});return i.$$addBindingClass(r),function(t,r,u){i.$$addBindingInfo(r,u.ngBindHtml);t.$watch(e,function(){var i=f(t);r.html(n.getTrustedHtml(i)||"")})}}}}],ib=ot({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}}),rb=pe("",!0),ub=pe("Odd",0),fb=pe("Even",1),eb=yi({compile:function(n,t){t.$set("ngCloak",void 0);n.removeClass("ng-cloak")}}),ob=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ul={},sb={blur:!0,focus:!0};t("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=yt("ng-"+n);ul[t]=["$parse","$rootScope",function(i,r){return{restrict:"A",compile:function(u,f){var e=i(f[t]);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};sb[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var hb=["$animate","$compile",function(n,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,s,o;i.$watch(u.ngIf,function(i){i?s||e(function(i,f){s=f;i[i.length++]=t.$$createComment("end ngIf",u.ngIf);h={clone:i};n.enter(i,r.parent(),r)}):(o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),h&&(o=ru(h.clone),n.leave(o).done(function(n){!1!==n&&(o=null)}),h=null))})}}}],cb=["$templateRequest","$anchorScroll","$animate",function(n,t,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ft.noop,compile:function(u,f){var o=f.ngInclude||f.src,s=f.onload||"",e=f.autoscroll;return function(u,f,h,c,l){var p=0,a,v,y,w=function(){v&&(v.remove(),v=null);a&&(a.$destroy(),a=null);y&&(i.leave(y).done(function(n){!1!==n&&(v=null)}),v=y,y=null)};u.$watch(o,function(o){var v=function(n){!1!==n&&r(e)&&(!e||u.$eval(e))&&t()},h=++p;o?(n(o,!0).then(function(n){if(!u.$$destroyed&&h===p){var t=u.$new();c.template=n;n=l(t,function(n){w();i.enter(n,null,f).done(v)});a=t;y=n;a.$emit("$includeContentLoaded",o);u.$eval(s)}},function(){u.$$destroyed||h!==p||(w(),u.$emit("$includeContentError",o))}),u.$emit("$includeContentRequested",o)):(w(),c.template=null)})}}}}],lb=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,r,u,f){ut.call(r[0]).match(/SVG/)?(r.empty(),t(ko(f.template,n.document).childNodes)(i,function(n){r.append(n)},{futureParentElement:r})):(r.html(f.template),t(r.contents())(i))}}}],ab=yi({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),vb=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(n,i,r,f){var e=r.ngList||", ",o="false"!==r.ngTrim,s=o?y(e):e;f.$parsers.push(function(n){if(!u(n)){var i=[];return n&&t(n.split(s),function(n){n&&i.push(o?y(n):n)}),i}});f.$formatters.push(function(n){if(c(n))return n.join(e)});f.$isEmpty=function(n){return!n||!n.length}}}},nu="ng-valid",fl="ng-invalid",tr="ng-pristine",ef="ng-dirty",tu=l("ngModel");bu.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" ");bu.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var n=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var i=this.$$parsedNgModel(t);return f(i)&&(i=n(t)),i};this.$$ngModelSet=function(n,i){f(this.$$parsedNgModel(n))?t(n,{$$$p:i}):this.$$parsedNgModelAssign(n,i)}}else if(!this.$$parsedNgModel.assign)throw tu("nonassign",this.$$attr.ngModel,at(this.$$element));},$render:o,$isEmpty:function(n){return u(n)||""===n||null===n||n!==n},$$updateEmptyClasses:function(n){this.$isEmpty(n)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1;this.$pristine=!0;this.$$animate.removeClass(this.$$element,ef);this.$$animate.addClass(this.$$element,tr)},$setDirty:function(){this.$dirty=!0;this.$pristine=!1;this.$$animate.removeClass(this.$$element,tr);this.$$animate.addClass(this.$$element,ef);this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1;this.$untouched=!0;this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0;this.$untouched=!1;this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce);this.$viewValue=this.$$lastCommittedViewValue;this.$render()},$validate:function(){if(!it(this.$modelValue)){var i=this.$$lastCommittedViewValue,t=this.$$rawModelValue,r=this.$valid,u=this.$modelValue,f=this.$options.getOption("allowInvalid"),n=this;this.$$runValidators(t,i,function(i){f||r===i||(n.$modelValue=i?t:void 0,n.$modelValue!==u&&n.$$writeModelToScope())})}},$$runValidators:function(n,i,r){function l(){var r=!0;return t(e.$validators,function(t,u){var f=Boolean(t(n,i));r=r&&f;s(u,f)}),r?!0:(t(e.$asyncValidators,function(n,t){s(t,null)}),!1)}function a(){var r=[],u=!0;t(e.$asyncValidators,function(t,e){var o=t(n,i);if(!o||!f(o.then))throw tu("nopromise",o);s(e,void 0);r.push(o.then(function(){s(e,!0)},function(){u=!1;s(e,!1)}))});r.length?e.$$q.all(r).then(function(){h(u)},o):h(!0)}function s(n,t){c===e.$$currentValidationRunId&&e.$setValidity(n,t)}function h(n){c===e.$$currentValidationRunId&&r(n)}this.$$currentValidationRunId++;var c=this.$$currentValidationRunId,e=this;(function(){var n=e.$$parserName||"parse";if(u(e.$$parserValid))s(n,null);else return e.$$parserValid||(t(e.$validators,function(n,t){s(t,null)}),t(e.$asyncValidators,function(n,t){s(t,null)})),s(n,e.$$parserValid),e.$$parserValid;return!0})()?l()?a():h(!1):h(!1)},$commitViewValue:function(){var n=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce);(this.$$lastCommittedViewValue!==n||""===n&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(n),this.$$lastCommittedViewValue=n,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var n=this.$$lastCommittedViewValue,t=this,i,r,f;if(this.$$parserValid=u(n)?void 0:!0)for(i=0;i<this.$parsers.length;i++)if(n=this.$parsers[i](n),u(n)){this.$$parserValid=!1;break}it(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));r=this.$modelValue;f=this.$options.getOption("allowInvalid");this.$$rawModelValue=n;f&&(this.$modelValue=n,t.$modelValue!==r&&t.$$writeModelToScope());this.$$runValidators(n,this.$$lastCommittedViewValue,function(i){f||(t.$modelValue=i?n:void 0,t.$modelValue!==r&&t.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue);t(this.$viewChangeListeners,function(n){try{n()}catch(t){this.$$exceptionHandler(t)}},this)},$setViewValue:function(n,t){this.$viewValue=n;this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(n){var t=this.$options.getOption("debounce"),i;d(t[n])?t=t[n]:d(t["default"])&&(t=t["default"]);this.$$timeout.cancel(this.$$pendingDebounce);i=this;0<t?this.$$pendingDebounce=this.$$timeout(function(){i.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){i.$commitViewValue()})},$overrideModelOptions:function(n){this.$options=this.$options.createChild(n)}};yh({clazz:bu,set:function(n,t){n[t]=!0},unset:function(n,t){delete n[t]}});el=["$rootScope",function(n){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:bu,priority:1,compile:function(t){return t.addClass(tr).addClass("ng-untouched").addClass(nu),{pre:function(n,t,i,r){var u=r[0];t=r[1]||u.$$parentForm;(r=r[2])&&(u.$options=r.$options);u.$$initGetterSetters();t.$addControl(u);i.$observe("name",function(n){u.$name!==n&&u.$$parentForm.$$renameControl(u,n)});n.$on("$destroy",function(){u.$$parentForm.$removeControl(u)})},post:function(t,i,r,u){function e(){f.$setTouched()}var f=u[0];if(f.$options.getOption("updateOn"))i.on(f.$options.getOption("updateOn"),function(n){f.$$debounceViewValueCommit(n&&n.type)});i.on("blur",function(){f.$touched||(n.$$phase?t.$evalAsync(e):t.$apply(e))})}}}}}];ol=/(\s+|^)default(\s+|$)/;we.prototype={getOption:function(n){return this.$$options[n]},createChild:function(n){var i=!1;return n=v({},n),t(n,function(t,r){"$inherit"===t?"*"===r?i=!0:(n[r]=this.$$options[r],"updateOn"===r&&(n.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(n.updateOnDefault=!1,n[r]=y(t.replace(ol,function(){return n.updateOnDefault=!0," "})))},this),i&&(delete n["*"],dh(n,this.$$options)),dh(n,of.$$options),new we(n)}};of=new we({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var yb=function(){function n(n,t){this.$$attrs=n;this.$$scope=t}return n.$inject=["$attrs","$scope"],n.prototype={$onInit:function(){var n=this.parentCtrl?this.parentCtrl.$options:of,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=n.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:n}},pb=yi({terminal:!0,priority:1e3}),wb=l("ngOptions"),bb=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,kb=["$compile","$document","$parse",function(i,u,f){function h(n,t,i){function w(n,t,i,r,u){this.selectValue=n;this.viewValue=t;this.label=i;this.group=r;this.disabled=u}function l(n){var t,i;if(!s&&dt(n))t=n;else{t=[];for(i in n)n.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t.push(i)}return t}var r=n.match(bb),o,s,u;if(!r)throw wb("iexp",n,at(t));o=r[5]||r[7];s=r[6];n=/ as /.test(r[0])&&r[1];u=r[9];t=f(r[2]?r[1]:o);var b=n&&f(n)||t,k=u&&f(u),h=u?function(n,t){return k(i,t)}:function(n){return vi(n)},a=function(n,t){return h(n,c(n,t))},v=f(r[2]||r[1]),d=f(r[3]||""),y=f(r[4]||""),p=f(r[8]),e={},c=s?function(n,t){return e[s]=t,e[o]=n,e}:function(n){return e[o]=n,e};return{trackBy:u,getTrackByValue:a,getWatchables:f(p,function(n){var f=[];n=n||[];for(var o=l(n),s=o.length,e=0;e<s;e++){var t=n===o?e:o[e],u=n[t],t=c(u,t),u=h(u,t);f.push(u);(r[2]||r[1])&&(u=v(i,t),f.push(u));r[4]&&(t=y(i,t),f.push(t))}return f}),getOptions:function(){for(var k=[],e={},o=p(i)||[],s=l(o),g=s.length,f=0;f<g;f++){var t=o===s?f:s[f],n=c(o[t],t),r=b(i,n),t=h(r,n),nt=v(i,n),tt=d(i,n),n=y(i,n),r=new w(t,r,nt,tt,n);k.push(r);e[t]=r}return{items:k,selectValueMap:e,getOptionFromViewValue:function(n){return e[a(n)]},getViewValueFromOption:function(n){return u?ni(n.viewValue):n.viewValue}}}}}var s=n.document.createElement("option"),l=n.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(n,t,i,r){r[0].registerOption=o},post:function(n,f,o,a){function it(n){var t=(n=y.getOptionFromViewValue(n))&&n.element;return t&&!t.selected&&(t.selected=!0),n}function rt(n,t){n.element=t;t.disabled=n.disabled;n.label!==t.label&&(t.label=n.label,t.textContent=n.label);t.value=n.selectValue}function g(){var i=y&&v.readValue(),n,t,u;if(y)for(n=y.items.length-1;0<=n;n--)t=y.items[n],r(t.group)?lu(t.element.parentNode):lu(t.element);y=w.getOptions();u={};k&&f.prepend(v.emptyOption);y.items.forEach(function(n){var t,i;r(n.group)?(t=u[n.group],t||(t=l.cloneNode(!1),d.appendChild(t),t.label=null===n.group?"null":n.group,u[n.group]=t),i=s.cloneNode(!1)):(t=d,i=s.cloneNode(!1));t.appendChild(i);rt(n,i)});f[0].appendChild(d);p.$render();p.$isEmpty(i)||(n=v.readValue(),(w.trackBy||nt?st(i,n):i===n)||(p.$setViewValue(n),p.$render()))}var v=a[0],p=a[1],nt=o.multiple,b,tt,k,y,w,d;for(a=0,b=f.children(),tt=b.length;a<tt;a++)if(""===b[a].value){v.hasEmptyOption=!0;v.emptyOption=b.eq(a);break}k=!!v.emptyOption;e(s.cloneNode(!1)).val("?");w=h(o.ngOptions,f,n);d=u[0].createDocumentFragment();v.generateUnknownOptionValue=function(){return"?"};nt?(v.writeValue=function(n){var t=n&&n.map(it)||[];y.items.forEach(function(n){n.element.selected&&-1===Array.prototype.indexOf.call(t,n)&&(n.element.selected=!1)})},v.readValue=function(){var i=f.val()||[],n=[];return t(i,function(t){(t=y.selectValueMap[t])&&!t.disabled&&n.push(y.getViewValueFromOption(t))}),n},w.trackBy&&n.$watchCollection(function(){if(c(p.$viewValue))return p.$viewValue.map(function(n){return w.getTrackByValue(n)})},function(){p.$render()})):(v.writeValue=function(n){var i=y.selectValueMap[f.val()],t=y.getOptionFromViewValue(n);i&&i.element.removeAttribute("selected");t?(f[0].value!==t.selectValue&&(v.removeUnknownOption(),v.unselectEmptyOption(),f[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):k?v.selectEmptyOption():v.unknownOption.parent().length?v.updateUnknownOption(n):v.renderUnknownOption(n)},v.readValue=function(){var n=y.selectValueMap[f.val()];return n&&!n.disabled?(v.unselectEmptyOption(),v.removeUnknownOption(),y.getViewValueFromOption(n)):null},w.trackBy&&n.$watch(function(){return w.getTrackByValue(p.$viewValue)},function(){p.$render()}));k&&(v.emptyOption.remove(),i(v.emptyOption)(n),8===v.emptyOption[0].nodeType?(v.hasEmptyOption=!1,v.registerOption=function(n,t){""===t.val()&&(v.hasEmptyOption=!0,v.emptyOption=t,v.emptyOption.removeClass("ng-scope"),p.$render(),t.on("$destroy",function(){v.hasEmptyOption=!1;v.emptyOption=void 0}))}):v.emptyOption.removeClass("ng-scope"));f.empty();g();n.$watchCollection(w.getWatchables,g)}}}}],db=["$locale","$interpolate","$log",function(n,i,r){var f=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(s,h,c){function p(n){h.text(n||"")}var w=c.count,b=c.$attr.when&&h.attr(c.$attr.when),k=c.offset||0,l=s.$eval(b)||{},d={},g=i.startSymbol(),nt=i.endSymbol(),tt=g+w+"-"+k+nt,v=ft.noop,y;t(c,function(n,t){var i=e.exec(t);i&&(i=(i[1]?"-":"")+a(i[2]),l[i]=h.attr(c.$attr[t]))});t(l,function(n,t){d[t]=i(n.replace(f,tt))});s.$watch(w,function(t){var i=parseFloat(t),f=it(i);f||i in l||(i=n.pluralCat(i-k));i===y||f&&it(y)||(v(),f=d[i],u(f)?(null!=t&&r.debug("ngPluralize: no rule defined for '"+i+"' in "+b),v=o,p()):v=s.$watch(f,p),y=i)})}}}],gb=["$parse","$animate","$compile",function(n,i,r){var u=l("ngRepeat"),f=function(n,t,i,r,u,f,e){n[i]=r;u&&(n[u]=f);n.$index=t;n.$first=0===t;n.$last=t===e-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=0==(t&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,o){var a=o.ngRepeat,nt=r.$$createComment("end ngRepeat",a),s=a.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),v,c,y,w,d,g,l;if(!s)throw u("iexp",a);var b=s[1],tt=s[2],h=s[3],k=s[4],s=b.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);if(!s)throw u("iidexp",b);if(v=s[3]||s[1],c=s[2],h&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(h)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(h)))throw u("badident",h);return l={$id:vi},k?y=n(k):(d=function(n,t){return vi(t)},g=function(n){return n}),function(n,r,e,o,s){y&&(w=function(t,i,r){return c&&(l[c]=t),l[v]=i,l.$index=r,y(n,l)});var b=p();n.$watchCollection(tt,function(e){var o,et,ot=r[0],tt,st=p(),ut,rt,ft,y,it,l,k;if(h&&(n[h]=e),dt(e))it=e,et=w||d;else for(k in et=w||g,it=[],e)pt.call(e,k)&&"$"!==k.charAt(0)&&it.push(k);for(ut=it.length,k=Array(ut),o=0;o<ut;o++)if(rt=e===it?o:it[o],ft=e[rt],y=et(rt,ft,o),b[y])l=b[y],delete b[y],st[y]=l,k[o]=l;else{if(st[y])throw t(k,function(n){n&&n.scope&&(b[n.id]=n)}),u("dupes",a,y,ft);k[o]={id:y,scope:void 0,clone:void 0};st[y]=!0}for(tt in b){if(l=b[tt],y=ru(l.clone),i.leave(y),y[0].parentNode)for(o=0,et=y.length;o<et;o++)y[o].$$NG_REMOVED=!0;l.scope.$destroy()}for(o=0;o<ut;o++)if(rt=e===it?o:it[o],ft=e[rt],l=k[o],l.scope){tt=ot;do tt=tt.nextSibling;while(tt&&tt.$$NG_REMOVED);l.clone[0]!==tt&&i.move(ru(l.clone),null,ot);ot=l.clone[l.clone.length-1];f(l.scope,o,v,ft,c,rt,ut)}else s(function(n,t){l.scope=t;var r=nt.cloneNode(!1);n[n.length++]=r;i.enter(n,null,ot);ot=r;l.clone=n;st[l.id]=l;f(l.scope,o,v,ft,c,rt,ut)});b=st})}}}}],nk=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],tk=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ik=yi(function(n,i,r){n.$watch(r.ngStyle,function(n,r){r&&n!==r&&t(r,function(n,t){i.css(t,"")});n&&i.css(n)},!0)}),rk=["$animate","$compile",function(n,i){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(r,u,f,e){var c=[],h=[],o=[],s=[],l=function(n,t){return function(i){!1!==i&&n.splice(t,1)}};r.$watch(f.ngSwitch||f.on,function(r){for(var u,f,a;o.length;)n.cancel(o.pop());for(u=0,f=s.length;u<f;++u)a=ru(h[u].clone),s[u].$destroy(),(o[u]=n.leave(a)).done(l(o,u));h.length=0;s.length=0;(c=e.cases["!"+r]||e.cases["?"])&&t(c,function(t){t.transclude(function(r,u){s.push(u);var f=t.element;r[r.length++]=i.$$createComment("end ngSwitchWhen");h.push({clone:r});n.enter(r,f.parent(),f)})})})}}}],uk=yi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,i,r,u,f){n=r.ngSwitchWhen.split(r.ngSwitchWhenSeparator).sort().filter(function(n,t,i){return i[t-1]!==n});t(n,function(n){u.cases["!"+n]=u.cases["!"+n]||[];u.cases["!"+n].push({transclude:f,element:i})})}}),fk=yi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),ek=l("ngTransclude"),ok=["$compile",function(n){return{restrict:"EAC",terminal:!0,compile:function(t){var i=n(t.contents());return t.empty(),function(n,t,r,u,f){function e(){i(n,function(n){t.append(n)})}if(!f)throw ek("orphan",at(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");r=r.ngTransclude||r.ngTranscludeSlot;f(function(n,i){var r,f,u;if(r=n.length)n:{for(r=0,f=n.length;r<f;r++)if(u=n[r],u.nodeType!==ri||u.nodeValue.trim()){r=!0;break n}r=void 0}r?t.append(n):(e(),i.$destroy())},null,r);r&&!f.isSlotFilled(r)&&e()}}}}],sk=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){"text/ng-template"===i.type&&n.put(i.id,t[0].text)}}}],hk={$setViewValue:o,$render:o},ck=["$element","$scope",function(t,i){function l(){h||(h=!0,i.$$postDigest(function(){h=!1;u.ngModelCtrl.$render()}))}function s(n){c||(c=!0,i.$$postDigest(function(){i.$$destroyed||(c=!1,u.ngModelCtrl.$setViewValue(u.readValue()),n&&u.ngModelCtrl.$render())}))}var u=this,f=new rf,h,c;u.selectValueMap={};u.ngModelCtrl=hk;u.multiple=!1;u.unknownOption=e(n.document.createElement("option"));u.hasEmptyOption=!1;u.emptyOption=void 0;u.renderUnknownOption=function(n){n=u.generateUnknownOptionValue(n);u.unknownOption.val(n);t.prepend(u.unknownOption);bi(u.unknownOption,!0);t.val(n)};u.updateUnknownOption=function(n){n=u.generateUnknownOptionValue(n);u.unknownOption.val(n);bi(u.unknownOption,!0);t.val(n)};u.generateUnknownOptionValue=function(n){return"? "+vi(n)+" ?"};u.removeUnknownOption=function(){u.unknownOption.parent()&&u.unknownOption.remove()};u.selectEmptyOption=function(){u.emptyOption&&(t.val(""),bi(u.emptyOption,!0))};u.unselectEmptyOption=function(){u.hasEmptyOption&&u.emptyOption.removeAttr("selected")};i.$on("$destroy",function(){u.renderUnknownOption=o});u.readValue=function(){var n=t.val(),n=n in u.selectValueMap?u.selectValueMap[n]:n;return u.hasOption(n)?n:null};u.writeValue=function(n){var i=t[0].options[t[0].selectedIndex];i&&bi(e(i),!1);u.hasOption(n)?(u.removeUnknownOption(),i=vi(n),t.val(i in u.selectValueMap?i:n),bi(e(t[0].options[t[0].selectedIndex]),!0)):null==n&&u.emptyOption?(u.removeUnknownOption(),u.selectEmptyOption()):u.unknownOption.parent().length?u.updateUnknownOption(n):u.renderUnknownOption(n)};u.addOption=function(n,t){if(8!==t[0].nodeType){ai(n,'"option value"');""===n&&(u.hasEmptyOption=!0,u.emptyOption=t);var i=f.get(n)||0;f.set(n,i+1);l()}};u.removeOption=function(n){var t=f.get(n);t&&(1===t?(f.delete(n),""===n&&(u.hasEmptyOption=!1,u.emptyOption=void 0)):f.set(n,t-1))};u.hasOption=function(n){return!!f.get(n)};h=!1;c=!1;u.registerOption=function(n,t,i,f,e){if(i.$attr.ngValue){var o,h=NaN;i.$observe("value",function(n){var i,f=t.prop("selected");r(h)&&(u.removeOption(o),delete u.selectValueMap[h],i=!0);h=vi(n);o=n;u.selectValueMap[h]=n;u.addOption(n,t);t.attr("value",h);i&&f&&s()})}else f?i.$observe("value",function(n){u.readValue();var i,f=t.prop("selected");r(o)&&(u.removeOption(o),i=!0);o=n;u.addOption(n,t);i&&f&&s()}):e?n.$watch(e,function(n,r){i.$set("value",n);var f=t.prop("selected");r!==n&&u.removeOption(r);u.addOption(n,t);r&&f&&s()}):u.addOption(i.value,t);i.$observe("disabled",function(n){("true"===n||n&&t.prop("selected"))&&(u.multiple?s(!0):(u.ngModelCtrl.$setViewValue(null),u.ngModelCtrl.$render()))});t.on("$destroy",function(){var n=u.readValue(),t=i.value;u.removeOption(t);l();(u.multiple&&n&&-1!==n.indexOf(t)||n===t)&&s(!0)})}}],lk=function(){return{restrict:"E",require:["select","?ngModel"],controller:ck,priority:1,link:{pre:function(n,i,r,u){var f=u[0],s=u[1],c,h;s?(f.ngModelCtrl=s,i.on("change",function(){f.removeUnknownOption();n.$apply(function(){s.$setViewValue(f.readValue())})}),r.multiple)&&(f.multiple=!0,f.readValue=function(){var n=[];return t(i.find("option"),function(t){t.selected&&!t.disabled&&(t=t.value,n.push(t in f.selectValueMap?f.selectValueMap[t]:t))}),n},f.writeValue=function(n){t(i.find("option"),function(t){var i=!!n&&(-1!==Array.prototype.indexOf.call(n,t.value)||-1!==Array.prototype.indexOf.call(n,f.selectValueMap[t.value]));i!==t.selected&&bi(e(t),i)})},h=NaN,n.$watch(function(){h!==s.$viewValue||st(c,s.$viewValue)||(c=vt(s.$viewValue),s.$render());h=s.$viewValue}),s.$isEmpty=function(n){return!n||0===n.length}):f.registerOption=o},post:function(n,t,i,r){var u=r[1],f;u&&(f=r[0],u.$render=function(){f.writeValue(u.$viewValue)})}}}},ak=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,i){var u,f;return r(i.ngValue)||(r(i.value)?u=n(i.value,!0):(f=n(t.text(),!0))||i.$set("value",t.text())),function(n,t,i){var r=t.parent();(r=r.data("$selectController")||r.parent().data("$selectController"))&&r.registerOption(n,t,i,u,f)}}}}],sl=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){r&&(i.required=!0,r.$validators.required=function(n,t){return!i.required||!r.$isEmpty(t)},i.$observe("required",function(){r.$validate()}))}}},hl=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var f,e=i.ngPattern||i.pattern;i.$observe("pattern",function(n){if(h(n)&&0<n.length&&(n=new RegExp("^"+n+"$")),n&&!n.test)throw l("ngPattern")("noregexp",e,n,at(t));f=n||void 0;r.$validate()});r.$validators.pattern=function(n,t){return r.$isEmpty(t)||u(f)||f.test(t)}}}}},cl=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=-1;i.$observe("maxlength",function(n){n=tt(n);u=it(n)?-1:n;r.$validate()});r.$validators.maxlength=function(n,t){return 0>u||r.$isEmpty(t)||t.length<=u}}}}},ll=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=0;i.$observe("minlength",function(n){u=tt(n)||0;r.$validate()});r.$validators.minlength=function(n,t){return r.$isEmpty(t)||t.length>=u}}}}};n.angular.bootstrap?n.console&&console.log("WARNING: Tried to load angular more than once."):(na(),ra(ft),ft.module("ngLocale",[],["$provide",function(n){function t(n){n+="";var t=n.indexOf(".");return-1==t?0:n.length-t-1}n.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(n,i){var u=n|0,r=i;return void 0===r&&(r=Math.min(t(n),3)),Math.pow(10,r),1==u&&0==r?"one":"other"}})}]),e(function(){kl(n.document,po)}))}(window),window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}<\/style>'),function(n,t,i){"use strict";function e(n){return u(n)?n:Object.keys(n).map(function(t){return n[t]})}function k(n){return n===null}function l(n,t){var r=Object.keys(n);return r.map(function(r){return t[r]!==i&&t[r]==n[r]}).indexOf(!1)==-1}function a(n,t){if(t==="")return n;var i=n.indexOf(t.charAt(0));return i===-1?!1:a(n.substr(i+1),t.substr(1))}function d(n,t,i){var r=0;return n.filter(function(n){var u=y(i)?r<t&&i(n):r<t;return r=u?r+1:r,u})}function h(n,t,i){return i.round(n*i.pow(10,t))/i.pow(10,t)}function g(n,t,i){t=t||[];var f=Object.keys(n);return f.forEach(function(f){var e,o;r(n[f])&&!u(n[f])?(e=i?i+"."+f:i,g(n[f],t,e||f)):(o=i?i+"."+f:f,t.push(o))}),t}function nt(n){return n&&n.$evalAsync&&n.$watch}function tt(){return function(n,t){return n>t}}function it(){return function(n,t){return n>=t}}function rt(){return function(n,t){return n<t}}function ut(){return function(n,t){return n<=t}}function ft(){return function(n,t){return n==t}}function et(){return function(n,t){return n!=t}}function ot(){return function(n,t){return n===t}}function st(){return function(n,t){return n!==t}}function ht(n){return function(t,i){return(t=r(t)?e(t):t,!u(t)||f(i))?!1:t.some(function(t){return r(t)||p(i)?n(i)(t):t===i})}}function v(n,t){return(t=t||0,t>=n.length)?n:u(n[t])?v(n.slice(0,t).concat(n[t],n.slice(t+1)),t):v(n,t+1)}function ct(n){return function(t,i){function h(n,t){return f(t)?!1:n.some(function(n){return c(n,t)})}if(t=r(t)?e(t):t,!u(t))return t;var o=[],s=n(i);return f(i)?t.filter(function(n,t,i){return i.indexOf(n)===t}):t.filter(function(n){var t=s(n);return h(o,t)?!1:(o.push(t),!0)})}}function lt(n,t,i){return t?n+i+lt(n,--t,i):n}var y=t.isDefined,f=t.isUndefined,p=t.isFunction,o=t.isString,s=t.isNumber,r=t.isObject,u=t.isArray,w=t.forEach,b=t.extend,at=t.copy,c=t.equals;String.prototype.contains||(String.prototype.contains=function(){return String.prototype.indexOf.apply(this,arguments)!==-1});t.module("a8m.angular",[]).filter("isUndefined",function(){return function(n){return t.isUndefined(n)}}).filter("isDefined",function(){return function(n){return t.isDefined(n)}}).filter("isFunction",function(){return function(n){return t.isFunction(n)}}).filter("isString",function(){return function(n){return t.isString(n)}}).filter("isNumber",function(){return function(n){return t.isNumber(n)}}).filter("isArray",function(){return function(n){return t.isArray(n)}}).filter("isObject",function(){return function(n){return t.isObject(n)}}).filter("isEqual",function(){return function(n,i){return t.equals(n,i)}});t.module("a8m.conditions",[]).filter({isGreaterThan:tt,">":tt,isGreaterThanOrEqualTo:it,">=":it,isLessThan:rt,"<":rt,isLessThanOrEqualTo:ut,"<=":ut,isEqualTo:ft,"==":ft,isNotEqualTo:et,"!=":et,isIdenticalTo:ot,"===":ot,isNotIdenticalTo:st,"!==":st});t.module("a8m.is-null",[]).filter("isNull",function(){return function(n){return k(n)}});t.module("a8m.after-where",[]).filter("afterWhere",function(){return function(n,t){if(n=r(n)?e(n):n,!u(n)||f(t))return n;var i=n.map(function(n){return l(t,n)}).indexOf(!0);return n.slice(i===-1?0:i)}});t.module("a8m.after",[]).filter("after",function(){return function(n,t){return n=r(n)?e(n):n,u(n)?n.slice(t):n}});t.module("a8m.before-where",[]).filter("beforeWhere",function(){return function(n,t){if(n=r(n)?e(n):n,!u(n)||f(t))return n;var i=n.map(function(n){return l(t,n)}).indexOf(!0);return n.slice(0,i===-1?n.length:++i)}});t.module("a8m.before",[]).filter("before",function(){return function(n,t){return n=r(n)?e(n):n,u(n)?n.slice(0,t?--t:t):n}});t.module("a8m.chunk-by",["a8m.filter-watcher"]).filter("chunkBy",["filterWatcher",function(n){return function(t,i,r){function e(n,t){for(var i=[];n--;)i[n]=t;return i}function o(n,t,i){return u(n)?n.map(function(n,r,u){return r=r*t,n=u.slice(r,r+t),!f(i)&&n.length<t?n.concat(e(t-n.length,i)):n}).slice(0,Math.ceil(n.length/t)):n}return n.isMemoized("chunkBy",arguments)||n.memoize("chunkBy",arguments,this,o(t,i,r))}}]);t.module("a8m.concat",[]).filter("concat",[function(){return function(n,t){if(f(t))return n;if(u(n))return r(t)?n.concat(e(t)):n.concat(t);if(r(n)){var i=e(n);return r(t)?i.concat(e(t)):i.concat(t)}return n}}]);t.module("a8m.contains",[]).filter({contains:["$parse",ht],some:["$parse",ht]});t.module("a8m.count-by",[]).filter("countBy",["$parse",function(n){return function(t,i){var o={},h=n(i),s;return(t=r(t)?e(t):t,!u(t)||f(i))?t:(t.forEach(function(n){s=h(n);o[s]||(o[s]=0);o[s]++}),o)}}]);t.module("a8m.defaults",[]).filter("defaults",["$parse",function(n){return function(t,i){if(t=r(t)?e(t):t,!u(t)||!r(i))return t;var o=g(i);return t.forEach(function(t){o.forEach(function(r){var u=n(r),e=u.assign;f(u(t))&&e(t,u(i))})}),t}}]);t.module("a8m.every",[]).filter("every",["$parse",function(n){return function(t,i){return(t=r(t)?e(t):t,!u(t)||f(i))?!0:t.every(function(t){return r(t)||p(i)?n(i)(t):t===i})}}]);t.module("a8m.filter-by",[]).filter("filterBy",["$parse",function(n){return function(t,h,c){var l;return(c=o(c)||s(c)?String(c).toLowerCase():i,t=r(t)?e(t):t,!u(t)||f(c))?t:t.filter(function(t){return h.some(function(i){if(~i.indexOf("+")){var r=i.replace(new RegExp("\\s","g"),"").split("+");l=r.reduce(function(i,r,u){return u===1?n(i)(t)+" "+n(r)(t):i+" "+n(r)(t)})}else l=n(i)(t);return o(l)||s(l)?String(l).toLowerCase().contains(c):!1})})}}]);t.module("a8m.first",[]).filter("first",["$parse",function(n){return function(t){var h,o,f;return(t=r(t)?e(t):t,!u(t))?t:(f=Array.prototype.slice.call(arguments,1),h=s(f[0])?f[0]:1,o=s(f[0])?s(f[1])?i:f[1]:f[0],f.length?d(t,h,o?n(o):o):t[0])}}]);t.module("a8m.flatten",[]).filter("flatten",function(){return function(n,t){return(t=t||!1,n=r(n)?e(n):n,!u(n))?n:t?[].concat.apply([],n):v(n,0)}});t.module("a8m.fuzzy-by",[]).filter("fuzzyBy",["$parse",function(n){return function(t,i,s,h){var l=h||!1,c,v;return(t=r(t)?e(t):t,!u(t)||f(i)||f(s))?t:(v=n(i),t.filter(function(n){return(c=v(n),!o(c))?!1:(c=l?c:c.toLowerCase(),s=l?s:s.toLowerCase(),a(c,s)!==!1)}))}}]);t.module("a8m.fuzzy",[]).filter("fuzzy",function(){return function(n,t,i){function h(n,t){var u=Object.keys(n),i,r;return 0<u.filter(function(u){return(i=n[u],r)?!0:o(i)?(i=s?i:i.toLowerCase(),r=a(i,t)!==!1):!1}).length}var s=i||!1;return(n=r(n)?e(n):n,!u(n)||f(t))?n:(t=s?t:t.toLowerCase(),n.filter(function(n){return o(n)?(n=s?n:n.toLowerCase(),a(n,t)!==!1):r(n)?h(n,t):!1}))}});t.module("a8m.group-by",["a8m.filter-watcher"]).filter("groupBy",["$parse","filterWatcher",function(n,t){return function(i,u){function e(n,t){var i={},r;return w(n,function(n){r=t(n);i[r]||(i[r]=[]);i[r].push(n)}),i}return!r(i)||f(u)?i:t.isMemoized("groupBy",arguments)||t.memoize("groupBy",arguments,this,e(i,n(u)))}}]);t.module("a8m.is-empty",[]).filter("isEmpty",function(){return function(n){return r(n)?!e(n).length:!n.length}});t.module("a8m.join",[]).filter("join",function(){return function(n,t){return f(n)||!u(n)?n:(f(t)&&(t=" "),n.join(t))}});t.module("a8m.last",[]).filter("last",["$parse",function(n){return function(t){var c,h,o,f=at(t);return(f=r(f)?e(f):f,!u(f))?f:(o=Array.prototype.slice.call(arguments,1),c=s(o[0])?o[0]:1,h=s(o[0])?s(o[1])?i:o[1]:o[0],o.length?d(f.reverse(),c,h?n(h):h).reverse():f[f.length-1])}}]);t.module("a8m.map",[]).filter("map",["$parse",function(n){return function(t,i){return(t=r(t)?e(t):t,!u(t)||f(i))?t:t.map(function(t){return n(i)(t)})}}]);t.module("a8m.omit",[]).filter("omit",["$parse",function(n){return function(t,i){return(t=r(t)?e(t):t,!u(t)||f(i))?t:t.filter(function(t){return!n(i)(t)})}}]);t.module("a8m.pick",[]).filter("pick",["$parse",function(n){return function(t,i){return(t=r(t)?e(t):t,!u(t)||f(i))?t:t.filter(function(t){return n(i)(t)})}}]);t.module("a8m.range",[]).filter("range",function(){return function(n,t){for(var i=0;i<parseInt(t);i++)n.push(i);return n}});t.module("a8m.remove-with",[]).filter("removeWith",function(){return function(n,t){return f(t)?n:(n=r(n)?e(n):n,n.filter(function(n){return!l(t,n)}))}});t.module("a8m.remove",[]).filter("remove",function(){return function(n){n=r(n)?e(n):n;var t=Array.prototype.slice.call(arguments,1);return u(n)?n.filter(function(n){return!t.some(function(t){return c(t,n)})}):n}});t.module("a8m.reverse",[]).filter("reverse",[function(){return function(n){return(n=r(n)?e(n):n,o(n))?n.split("").reverse().join(""):u(n)?n.slice().reverse():n}}]);t.module("a8m.search-field",[]).filter("searchField",["$parse",function(n){return function(t){var f,o,i;return(t=r(t)?e(t):t,i=Array.prototype.slice.call(arguments,1),!u(t)||!i.length)?t:t.map(function(t){return o=i.map(function(i){return f=n(i),f(t)}).join(" "),b(t,{searchField:o})})}}]);t.module("a8m.to-array",[]).filter("toArray",function(){return function(n,t){return r(n)?t?Object.keys(n).map(function(t){return b(n[t],{$key:t})}):e(n):n}});t.module("a8m.unique",[]).filter({unique:["$parse",ct],uniq:["$parse",ct]});t.module("a8m.where",[]).filter("where",function(){return function(n,t){return f(t)?n:(n=r(n)?e(n):n,n.filter(function(n){return l(t,n)}))}});t.module("a8m.xor",[]).filter("xor",["$parse",function(n){return function(t,i,f){function o(t,i){var r=n(f);return i.some(function(n){return f?c(r(n),r(t)):c(n,t)})}return(f=f||!1,t=r(t)?e(t):t,i=r(i)?e(i):i,!u(t)||!u(i))?t:t.concat(i).filter(function(n){return!(o(n,t)&&o(n,i))})}}]);t.module("a8m.math.byteFmt",["a8m.math"]).filter("byteFmt",["$math",function(n){return function(t,i){return s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)?t<1024?h(t,i,n)+" B":t<1048576?h(t/1024,i,n)+" KB":t<1073741824?h(t/1048576,i,n)+" MB":h(t/1073741824,i,n)+" GB":"NaN"}}]);t.module("a8m.math.degrees",["a8m.math"]).filter("degrees",["$math",function(n){return function(t,i){if(s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)){var r=t*180/n.PI;return n.round(r*n.pow(10,i))/n.pow(10,i)}return"NaN"}}]);t.module("a8m.math.kbFmt",["a8m.math"]).filter("kbFmt",["$math",function(n){return function(t,i){return s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)?t<1024?h(t,i,n)+" KB":t<1048576?h(t/1024,i,n)+" MB":h(t/1048576,i,n)+" GB":"NaN"}}]);t.module("a8m.math",[]).factory("$math",["$window",function(n){return n.Math}]);t.module("a8m.math.max",["a8m.math"]).filter("max",["$math","$parse",function(n,t){function i(i,r){var u=i.map(function(n){return t(r)(n)});return u.indexOf(n.max.apply(n,u))}return function(t,r){return u(t)?f(r)?n.max.apply(n,t):t[i(t,r)]:t}}]);t.module("a8m.math.min",["a8m.math"]).filter("min",["$math","$parse",function(n,t){function i(i,r){var u=i.map(function(n){return t(r)(n)});return u.indexOf(n.min.apply(n,u))}return function(t,r){return u(t)?f(r)?n.min.apply(n,t):t[i(t,r)]:t}}]);t.module("a8m.math.percent",["a8m.math"]).filter("percent",["$math","$window",function(n,t){return function(i,r,u){var f=o(i)?t.Number(i):i;return(r=r||100,u=u||!1,!s(f)||t.isNaN(f))?i:u?n.round(f/r*100):f/r*100}}]);t.module("a8m.math.radians",["a8m.math"]).filter("radians",["$math",function(n){return function(t,i){if(s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)){var r=t*3.14159265359/180;return n.round(r*n.pow(10,i))/n.pow(10,i)}return"NaN"}}]);t.module("a8m.math.radix",[]).filter("radix",function(){return function(n,t){return!s(n)||!/^[2-9]$|^[1-2]\d$|^3[0-6]$/.test(t)?n:n.toString(t).toUpperCase()}});t.module("a8m.math.shortFmt",["a8m.math"]).filter("shortFmt",["$math",function(n){return function(t,i){return s(i)&&isFinite(i)&&i%1==0&&i>=0&&s(t)&&isFinite(t)?t<1e3?t:t<1e6?h(t/1e3,i,n)+" K":t<1e9?h(t/1e6,i,n)+" M":h(t/1e9,i,n)+" B":"NaN"}}]);t.module("a8m.math.sum",[]).filter("sum",function(){return function(n,t){return u(n)?n.reduce(function(n,t){return n+t},t||0):n}});t.module("a8m.ends-with",[]).filter("endsWith",function(){return function(n,t,i){var r=i||!1,u;return!o(n)||f(t)?n:(n=r?n:n.toLowerCase(),u=n.length-t.length,n.indexOf(r?t:t.toLowerCase(),u)!==-1)}});t.module("a8m.latinize",[]).filter("latinize",[function(){function f(n){return n.replace(/[^\u0000-\u007E]/g,function(n){return u[n]||n})}for(var i=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],u={},r,t,n=0;n<i.length;n++)for(r=i[n].letters.split(""),t=0;t<r.length;t++)u[r[t]]=i[n].base;return function(n){return o(n)?f(n):n}}]);t.module("a8m.ltrim",[]).filter("ltrim",function(){return function(n,t){var i=t||"\\s";return o(n)?n.replace(new RegExp("^"+i+"+"),""):n}});t.module("a8m.match",[]).filter("match",function(){return function(n,t,i){var r=new RegExp(t,i);return o(n)?n.match(r):null}});t.module("a8m.repeat",[]).filter("repeat",[function(){return function(n,t,i){var r=~~t;return o(n)?r?lt(n,--t,i||""):n:n}}]);t.module("a8m.rtrim",[]).filter("rtrim",function(){return function(n,t){var i=t||"\\s";return o(n)?n.replace(new RegExp(i+"+$"),""):n}});t.module("a8m.slugify",[]).filter("slugify",[function(){return function(n,t){var i=f(t)?"-":t;return o(n)?n.toLowerCase().replace(/\s+/g,i):n}}]);t.module("a8m.starts-with",[]).filter("startsWith",function(){return function(n,t,i){var r=i||!1;return!o(n)||f(t)?n:(n=r?n:n.toLowerCase(),!n.indexOf(r?t:t.toLowerCase()))}});t.module("a8m.stringular",[]).filter("stringular",function(){return function(n){var t=Array.prototype.slice.call(arguments,1);return n.replace(/{(\d+)}/g,function(n,i){return f(t[i])?n:t[i]})}});t.module("a8m.strip-tags",[]).filter("stripTags",function(){return function(n){return o(n)?n.replace(/<\S[^><]*>/g,""):n}});t.module("a8m.test",[]).filter("test",function(){return function(n,t,i){var r=new RegExp(t,i);return o(n)?r.test(n):n}});t.module("a8m.trim",[]).filter("trim",function(){return function(n,t){var i=t||"\\s";return o(n)?n.replace(new RegExp("^"+i+"+|"+i+"+$","g"),""):n}});t.module("a8m.truncate",[]).filter("truncate",function(){return function(n,t,i,r){return(t=f(t)?n.length:t,r=r||!1,i=i||"",!o(n)||n.length<=t)?n:n.substring(0,r?n.indexOf(" ",t)===-1?n.length:n.indexOf(" ",t):t)+i}});t.module("a8m.ucfirst",[]).filter("ucfirst",[function(){return function(n){return o(n)?n.split(" ").map(function(n){return n.charAt(0).toUpperCase()+n.substring(1)}).join(" "):n}}]);t.module("a8m.uri-component-encode",[]).filter("uriComponentEncode",["$window",function(n){return function(t){return o(t)?n.encodeURIComponent(t):t}}]);t.module("a8m.uri-encode",[]).filter("uriEncode",["$window",function(n){return function(t){return o(t)?n.encodeURI(t):t}}]);t.module("a8m.wrap",[]).filter("wrap",function(){return function(n,t,i){return o(n)&&y(t)?[t,n,i||t].join(""):n}});t.module("a8m.filter-watcher",[]).provider("filterWatcher",function(){this.$get=["$window","$rootScope",function(n,t){function e(t,i){function u(){var t=[];return function(i,u){if(r(u)&&!k(u)){if(~t.indexOf(u))return"[Circular]";t.push(u)}return n==u?"$WINDOW":n.document==u?"$DOCUMENT":nt(u)?"$SCOPE":u}}return[t,JSON.stringify(i,u())].join("#").replace(/"/g,"")}function s(n){var t=n.targetScope.$id;w(i[t],function(n){delete u[n]});delete i[t]}function h(){o(function(){t.$$phase||(u={})},2e3)}function c(n,t){var r=n.$id;return f(i[r])&&(n.$on("$destroy",s),i[r]=[]),i[r].push(t)}function l(n,t){var i=e(n,t);return u[i]}function a(n,t,i,r){var f=e(n,t);return u[f]=r,nt(i)?c(i,f):h(),r}var u={},i={},o=n.setTimeout;return{isMemoized:l,memoize:a}}]});t.module("angular.filter",["a8m.ucfirst","a8m.uri-encode","a8m.uri-component-encode","a8m.slugify","a8m.latinize","a8m.strip-tags","a8m.stringular","a8m.truncate","a8m.starts-with","a8m.ends-with","a8m.wrap","a8m.trim","a8m.ltrim","a8m.rtrim","a8m.repeat","a8m.test","a8m.match","a8m.to-array","a8m.concat","a8m.contains","a8m.unique","a8m.is-empty","a8m.after","a8m.after-where","a8m.before","a8m.before-where","a8m.defaults","a8m.where","a8m.reverse","a8m.remove","a8m.remove-with","a8m.group-by","a8m.count-by","a8m.chunk-by","a8m.search-field","a8m.fuzzy-by","a8m.fuzzy","a8m.omit","a8m.pick","a8m.every","a8m.filter-by","a8m.xor","a8m.map","a8m.first","a8m.last","a8m.flatten","a8m.join","a8m.range","a8m.math","a8m.math.max","a8m.math.min","a8m.math.percent","a8m.math.radix","a8m.math.sum","a8m.math.degrees","a8m.math.radians","a8m.math.byteFmt","a8m.math.kbFmt","a8m.math.shortFmt","a8m.angular","a8m.conditions","a8m.is-null","a8m.filter-watcher"])}(window,window.angular),angular.module("kit",[]).config(["$sceDelegateProvider",function(n){n.resourceUrlWhitelist(["self","*"])}]),kit=angular.module("kit",["angular.filter"]),kit&&(kit.run(["$rootScope","$sce",function(n,t){$("form").each(function(){var n=$(this).attr("action");n&&n!=""||$(this).attr("action",location.href)});n.Array_Contains=function(n,t){for(i in n)if(n[i]==t)return!0;return!1};n.Raw=function(n){return t.trustAsHtml(n)}}]),kit.filter("orderObjectBy",function(){return function(n,t,i){var r=[];return angular.forEach(n,function(n){r.push(n)}),r.sort(function(n,i){return n[t]>i[t]?1:-1}),i&&r.reverse(),r}})),kit_directives=angular.module("kit_ng_directives",[],["$provide","$httpProvider",function(n,t){n.factory("myHttpInterceptor",["$q","$rootScope","$timeout",function(n,t,i){return function(r){return r.then(function(n){return i(function(){t.$broadcast("ajaxsuccess")}),n},function(t){return n.reject(t.data)})}}]);t.responseInterceptors.push("myHttpInterceptor")}]),kit_directives.directive("kitOnFinishRender",["$timeout",function(n){return{restrict:"A",link:function(t,i,r){t.$on("ajaxsuccess",function(){t.$last==!0&&n(function(){eval(r.kitOnFinishRender)},0,!1)})}}}]),function(n){"use strict";n(function(){var t,i,f,r,u;n(document).on("touchend mouseup",function(t){var i=n("form.search .autocomplete-wrap");i.has(t.target).length===0&&n("form.search .autocomplete-wrap").hasClass("active")&&n("form.search .autocomplete-wrap").removeClass("active")});n('#quick-search-form input[type="search"]').keyup(function(r){return n(".autocomplete-wrap").addClass("active"),r.which==27?n(".autocomplete-wrap").removeClass("active"):(i&&clearTimeout(i),i=setTimeout(function(){n('#quick-search-form input[type="search"]').val()!==""},300)),t&&clearTimeout(t),t=setTimeout(function(){n('#quick-search-form input[type="search"]').val()!==""?n(".autocomplete-wrap").addClass("active"):n(".autocomplete-wrap").removeClass("active")},1500),r.which==40?(n("#quick-search-form").find("ul:first li:first a:first").focus(),!1):void 0});n(document).on("keyup",".autocomplete",function(i){t&&clearTimeout(t);i.which==27&&n("form#quick-search-form input").focus();i.which==40&&(n("#quick-search-form ul *:focus").parents("li").next().length?n("#quick-search-form ul *:focus").parents("li").next().find("a:first").focus():n("#quick-search-form ul *:focus").parents("div.section").next().length&&n("#quick-search-formh ul *:focus").parents("div.section").next().find("li:first a:first").focus());i.which==38&&(n("#quick-search-form ul *:focus").closest("li").is(":first-child")&&n("#quick-search-form ul *:focus").closest("div.section").is(":first-child")&&n("#quick-search-form input").focus(),n("#quick-search-form ul *:focus").parents("li").prev().length?n("#quick-search-form ul *:focus").parents("li").prev().find("a:first").focus():n("#quick-search-form ul *:focus").parents("div.section").prev().length&&n("#quick-search-form ul *:focus").parents("div.section").prev().find("li:last a:first").focus())});n(document).on("keydown",".autocomplete",function(n){return(t&&clearTimeout(t),n.which==40)?!1:n.which==38?!1:void 0});f={lines:9,length:3,width:2,radius:6,corners:1,rotate:0,direction:1,color:"#000",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner"};n('#search-page-form input[type="search"]').keyup(function(r){return n(".autocomplete-wrap").addClass("active"),r.which==27?n(".autocomplete-wrap").removeClass("active"):(i&&clearTimeout(i),i=setTimeout(function(){n('#search-page-form input[type="search"]').val()!==""},300)),t&&clearTimeout(t),t=setTimeout(function(){n('#search-page-form input[type="search"]').val()!==""?n(".autocomplete-wrap").addClass("active"):n(".autocomplete-wrap").removeClass("active")},1500),r.which==40?(n("#search-page-form").find("ul:first li:first a:first").focus(),!1):void 0});n(document).on("keyup",".autocomplete",function(i){t&&clearTimeout(t);i.which==27&&n("form#search-page-form input").focus();i.which==40&&(n("#search-page-form ul *:focus").parents("li").next().length?n("#search-page-form ul *:focus").parents("li").next().find("a:first").focus():n("#search-page-form ul *:focus").parents("div.section").next().length&&n("#search-page-form ul *:focus").parents("div.section").next().find("li:first a:first").focus());i.which==38&&(n("#search-page-form ul *:focus").closest("li").is(":first-child")&&n("#search-page-form ul *:focus").closest("div.section").is(":first-child")&&n("#search-page-form input").focus(),n("#search-page-form ul *:focus").parents("li").prev().length?n("#search-page-form ul *:focus").parents("li").prev().find("a:first").focus():n("#search-page-form ul *:focus").parents("div.section").prev().length&&n("#search-page-form ul *:focus").parents("div.section").prev().find("li:last a:first").focus())});n(document).on("keydown",".autocomplete",function(n){return(t&&clearTimeout(t),n.which==40)?!1:n.which==38?!1:void 0});r=[];n(document).ready(function(){n("[data-modal]").each(function(t,i){r[n(this).data("modal")]=new u(i)})});u=function(t,i){this.parseOptions=function(t){var i={fadeDuration:250},r;if(typeof t=="undefined")return i;for(r in t)i[r]=t[r];return i.windowHeight=n(window).height(),i};this.visible=!1;this.backdrop=".trafa-modal-backdrop";this.$backdrop=n(this.backdrop);this.element=t;this.$element=n(t);this.options=this.parseOptions(i);this.show=function(){this.visible||(this.visible=!0,this.$element.css("top",(this.options.windowHeight-this.$element.height())/2-30+"px").addClass("in trafa-visible"),this.$backdrop.addClass("in trafa-visible"))};this.hide=function(){var n=this.$backdrop,t=this.$element;this.visible&&(this.visible=!1,t.removeClass("trafa-visible"),n.removeClass("trafa-visible"),setTimeout(function(){t.removeClass("in");n.removeClass("in")},this.options.fadeDuration))};this.toggle=function(){this.visible!==!0?this.show():this.hide();return};this.bindUiActions=function(){var t=this;n(document).on("click","[data-open-modal]",function(t){t.preventDefault();var i=n(this).data("open-modal");if(typeof r[i]!="undefined"){r[i].show();n(window).trigger("resize");return}console.error('Modal "'+i+'" does not exist.')});n(document).on("click","[data-close-modal]",function(t){t.preventDefault();var i=n(this).data("close-modal");if(typeof r[i]!="undefined"){r[i].hide();n("iframe").each(function(){var t=n(this).attr("src");n(this).attr("src",t)});return}console.error('Modal "'+i+'" does not exist.')});n(window).resize(function(){t.options.windowHeight=n(window).height();t.$element.css("top",(t.options.windowHeight-t.$element.height()-30)/2+"px")});n(document).on("click touchend",this.backdrop,function(n){n.stopPropagation();t.hide()});n(document).on("keyup",function(n){var i=n.keyCode?n.keyCode:n.which;i===27&&t.hide()})};this.bindUiActions()};n(".sidebar h4").first().css("margin-top","0")})}(jQuery),$("body.publicationpage")){$(".content-area .card-statistics-result h3.card-title").each(function(){$(this).replaceWith('<h4 class="card-title">'+$(this).html()+"<\/h4>")});$(".content-area .card-statistics-keyfigure-result h3").each(function(){$(this).replaceWith("<h4>"+$(this).html()+"<\/h4>")});show=!0;$(".btn-show-hide-all").on("click",function(){$(".content-area .collapse").each(function(){show===!1?($(this).removeClass("show"),$(this).parent(".accordion-wrapper").find("button span").removeClass("fa-chevron-up"),$(this).parent(".accordion-wrapper").find("button span").addClass("fa-chevron-down")):($(this).addClass("show"),$(this).parent(".accordion-wrapper").find("button span").removeClass("fa-chevron-down"),$(this).parent(".accordion-wrapper").find("button span").addClass("fa-chevron-up"))});show=show===!1?!0:!1});for(contentTitles=$(".content-area h3"),i=0;i<contentTitles.length;i++)$this=contentTitles[i],$all=$($this).nextUntil("h3"),$linkItem=$('<li><a href="#link-'+i+'">'+$this.textContent+"<\/a><\/li>"),$(".quick-links .link-list").append($linkItem),$button=$('<button class="ml-auto open-accordion" type="button" data-toggle="collapse" data-target="#content-'+i+'" aria-expanded="false" aria-controls="content-'+i+'"><span class="fa fa-chevron-down"><\/span><\/button>'),$($this).append($button),$content=$("<div/>").attr("id","content-"+i).attr("data-parent",".content-area").addClass("collapse").append($all),$wrapper=$('<div id="link-'+i+'" class="accordion-wrapper"/>').append($this).append($content),$(".content-area").append($wrapper);$(".quick-links a").on("click",function(n){n.preventDefault();$(".collapse").collapse("hide");var t=$(this).attr("href");scrollToSection(t)});$(".content-area").on("hidden.bs.collapse",toggleIcon);$(".content-area").on("shown.bs.collapse",toggleIcon)}(function(n,t){var i=n.jQuery||n.Cowboy||(n.Cowboy={}),r;i.throttle=r=function(n,r,u,f){function s(){function i(){o=+new Date;u.apply(h,c)}function l(){e=t}var h=this,s=+new Date-o,c=arguments;f&&!e&&i();e&&clearTimeout(e);f===t&&s>n?i():r!==!0&&(e=setTimeout(f?l:i,f===t?n-s:n))}var e,o=0;return typeof r!="boolean"&&(f=u,u=r,r=t),i.guid&&(s.guid=u.guid=u.guid||i.guid++),s};i.debounce=function(n,i,u){return u===t?r(n,i,!1):r(n,u,i!==!1)}})(this);$(function(){$("form.search").submit(function(n){n.preventDefault()});$("form.mobile-search").submit(function(n){n.preventDefault()});KIT_BindEvent("onAutocompleteSuccess",function(){$("#navbar .search .autocomplete-wrap").addClass("active")});KIT_BindEvent("onAutocompleteMobileSuccess",function(){$(".mobile-search .autocomplete-wrap").addClass("active")});KIT_BindEvent("onQueryQuickSuccess",function(){$("#navbar .search .autocomplete-wrap").addClass("active")});KIT_BindEvent("onStartQueryQuickMobile",function(){$(".mobile-search .autocomplete-wrap").addClass("active")});KIT_BindEvent("onStartQueryQuick",function(){$(".mobile-search .autocomplete-wrap").addClass("active")})});angular.module("kit").controller("QuickSearch_Controller",["$scope","$http","$sce",function(n,t){n.SearchContext={};n.SearchContext.Hits=[];n.SearchContext.HitsGroupedByMainFacet=[];n.SearchContext.InFacetResult={};n.SearchContext.NrOfHitsLastQuery=0;n.SearchContext.TotalNrOfHits=0;n.SearchContext.CurrentMainFacet="All";n.SearchContext.CurrentMainFacetFriendly="All";n.SearchContext.MainFacets=[];n.SearchContext.pageSize=3;n.SearchContext.take=n.SearchContext.pageSize;n.SearchContext.skip=0;n.SearchContext.totaltake=0;n.SearchContext.SortOrder="";n.SearchContext.SortDirection="";n.SearchContext.lang="sv";n.LangManager=null;n.Autocomplete=function(){(n.SearchContext.AutocompleteHits=[],n.query_text_quick&&n.query_text_quick!="*")&&t({method:"GET",url:"/sv/find/rest/autocomplete/get/"+n.query_text_quick+"?size=8"}).then(function(t){t&&t.data.Hits&&(n.SearchContext.AutocompleteHits=t.data.Hits.length>3?t.data.Hits.slice(0,8):t.data.Hits,n.SearchContext.Type=="desktop"?KIT_TriggerEvent("onAutocompleteSuccess"):KIT_TriggerEvent("onAutocompleteMobileSuccess"))})};n.$watch("query_text_quick",function(t){if(!t||t.length==0)return 0;t.length>2&&t===n.query_text_quick&&(KIT_TriggerEvent("onStartQueryQuick"),n.Autocomplete())});n.Query_KeyUp=function(t){if(!n.query_text_quick||n.query_text_quick.length==0)return 0;n.query_text_quick.length>2&&t.which==13&&(t.preventDefault(),window.location.href=window.location.protocol+"//"+window.location.host+n.initconfig.currentSearchPageLink+"?query="+n.query_text_quick);t.preventDefault()};n.submitQuery=function(){n.query_text_quick.length>2&&(window.location.href=window.location.protocol+"//"+window.location.host+n.initconfig.currentSearchPageLink+"?query="+n.query_text_quick)};$(function(){var t=n.init;t&&(n.initconfig={},n.initconfig.CurrentPageId=t.CurrentPageId?t.CurrentPageId:0,n.initconfig.SearchPageId=t.SearchPageId?t.SearchPageId:0,n.initconfig.lang=t.lang?t.lang:"sv",t.currentSearchPageLink&&(n.initconfig.currentSearchPageLink=t.currentSearchPageLink),n.SearchContext.lang=n.initconfig.lang,t.currentSearchPageLink&&(n.urlparser=document.createElement("a"),n.urlparser.href=t.currentSearchPageLink))})}]),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Popper=t()}(this,function(){"use strict";function ut(n){return n&&"[object Function]"==={}.toString.call(n)}function r(n,t){if(1!==n.nodeType)return[];var i=window.getComputedStyle(n,null);return t?i[t]:i}function y(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function o(n){if(!n||-1!==["HTML","BODY","#document"].indexOf(n.nodeName))return window.document.body;var t=r(n),i=t.overflow,u=t.overflowX,f=t.overflowY;return/(auto|scroll)/.test(i+f+u)?n:o(y(n))}function u(n){var t=n&&n.offsetParent,i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===r(t,"position")?u(t):t:window.document.documentElement}function ri(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||u(n.firstElementChild)===n)}function p(n){return null===n.parentNode?n:p(n.parentNode)}function h(n,t){var i,f;if(!n||!n.nodeType||!t||!t.nodeType)return window.document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,r=document.createRange();return(r.setStart(o,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?ri(i)?i:u(i):(f=p(n),f.host?h(f.host,t):h(n,p(t).host))}function f(n){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",t="top"===f?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return"BODY"===i||"HTML"===i?(r=window.document.documentElement,u=window.document.scrollingElement||r,u[t]):n[t]}function ui(n,t){var e=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=f(t,"top"),u=f(t,"left"),i=e?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}function ft(n,t){var i="x"===t?"Left":"Top",r="Left"==i?"Right":"Bottom";return+n["border"+i+"Width"].split("px")[0]+ +n["border"+r+"Width"].split("px")[0]}function et(n,t,r,u){return i(t["offset"+n],t["scroll"+n],r["client"+n],r["offset"+n],r["scroll"+n],l()?r["offset"+n]+u["margin"+("Height"===n?"Top":"Left")]+u["margin"+("Height"===n?"Bottom":"Right")]:0)}function ot(){var t=window.document.body,n=window.document.documentElement,i=l()&&window.getComputedStyle(n);return{height:et("Height",t,n,i),width:et("Width",t,n,i)}}function t(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function w(n){var i={},e,o,c;if(l())try{i=n.getBoundingClientRect();e=f(n,"top");o=f(n,"left");i.top+=e;i.left+=o;i.bottom+=e;i.right+=o}catch(n){}else i=n.getBoundingClientRect();var u={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},a="HTML"===n.nodeName?ot():{},v=a.width||n.clientWidth||u.right-u.left,y=a.height||n.clientHeight||u.bottom-u.top,s=n.offsetWidth-v,h=n.offsetHeight-y;return(s||h)&&(c=r(n),s-=ft(c,"x"),h-=ft(c,"y"),u.width-=s,u.height-=h),t(u)}function b(n,i){var y=l(),b="HTML"===i.nodeName,f=w(n),p=w(i),c=o(n),e=r(i),a=+e.borderTopWidth.split("px")[0],v=+e.borderLeftWidth.split("px")[0],u=t({top:f.top-p.top-a,left:f.left-p.left-v,width:f.width,height:f.height}),s,h;return(u.marginTop=0,u.marginLeft=0,!y&&b)&&(s=+e.marginTop.split("px")[0],h=+e.marginLeft.split("px")[0],u.top-=a-s,u.bottom-=a-s,u.left-=v-h,u.right-=v-h,u.marginTop=s,u.marginLeft=h),(y?i.contains(c):i===c&&"BODY"!==c.nodeName)&&(u=ui(u,i)),u}function fi(n){var r=window.document.documentElement,u=b(n,r),e=i(r.clientWidth,window.innerWidth||0),o=i(r.clientHeight,window.innerHeight||0),s=f(r),h=f(r,"left"),c={top:s-u.top+u.marginTop,left:h-u.left+u.marginLeft,width:e,height:o};return t(c)}function st(n){var t=n.nodeName;return"BODY"===t||"HTML"===t?!1:"fixed"===r(n,"position")||st(y(n))}function k(n,t,i,r){var u={top:0,left:0},s=h(n,t),e,f;if("viewport"===r)u=fi(s);else if("scrollParent"===r?(e=o(y(n)),"BODY"===e.nodeName&&(e=window.document.documentElement)):e="window"===r?window.document.documentElement:r,f=b(e,s),"HTML"!==e.nodeName||st(s))u=f;else{var c=ot(),l=c.height,a=c.width;u.top+=f.top-f.marginTop;u.bottom=l+f.top;u.left+=f.left-f.marginLeft;u.right=a+f.left}return u.left+=i,u.top+=i,u.right-=i,u.bottom-=i,u}function ei(n){var t=n.width,i=n.height;return t*i}function ht(t,i,r,u,f){var l=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var e=k(r,u,l,f),o={top:{width:e.width,height:i.top-e.top},right:{width:e.right-i.right,height:e.height},bottom:{width:e.width,height:e.bottom-i.bottom},left:{width:i.left-e.left,height:e.height}},s=Object.keys(o).map(function(t){return n({key:t},o[t],{area:ei(o[t])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=0<h.length?h[0].key:s[0].key,c=t.split("-")[1];return a+(c?"-"+c:"")}function ct(n,t,i){var r=h(t,i);return b(i,r)}function lt(n){var t=window.getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function c(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function at(n,t,i){i=i.split("-")[0];var r=lt(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[c(f)],e}function s(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function oi(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=s(n,function(n){return n[t]===i});return n.indexOf(r)}function vt(n,i,r){var u=void 0===r?n:n.slice(0,oi(n,"name",r));return u.forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=n.function||n.fn;n.enabled&&ut(r)&&(i.offsets.popper=t(i.offsets.popper),i.offsets.reference=t(i.offsets.reference),i=r(i,n))}),i}function si(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=ct(this.state,this.popper,this.reference);n.placement=ht(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.offsets.popper=at(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position="absolute";n=vt(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function yt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function pt(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length-1;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof window.document.body.style[r])return r;return null}function hi(){return this.state.isDestroyed=!0,yt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[pt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function wt(n,t,i,r){var f="BODY"===n.nodeName,u=f?window:n;u.addEventListener(t,i,{passive:!0});f||wt(o(u.parentNode),t,i,r);r.push(u)}function ci(n,t,i,r){i.updateBound=r;window.addEventListener("resize",i.updateBound,{passive:!0});var u=o(n);return wt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function li(){this.state.eventsEnabled||(this.state=ci(this.reference,this.options,this.state,this.scheduleUpdate))}function ai(n,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function vi(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=ai(this.reference,this.state))}function d(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function g(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&d(t[i])&&(r="px");n.style[i]=t[i]+r})}function yi(n,t){Object.keys(t).forEach(function(i){var r=t[i];!1===r?n.removeAttribute(i):n.setAttribute(i,t[i])})}function bt(n,t,i){var u=s(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r;return f||(r="`"+t+"`",console.warn("`"+i+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function pi(n){return"end"===n?"start":"start"===n?"end":n}function kt(n){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=it.indexOf(n),i=it.slice(t+1).concat(it.slice(0,t));return r?i.reverse():i}function wi(n,r,u,f){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+h[1],e=h[2],s,c,l;if(!o)return n;if(0===e.indexOf("%")){switch(e){case"%p":s=u;break;case"%":case"%r":default:s=f}return c=t(s),c[r]/100*o}return"vh"===e||"vw"===e?(l="vh"===e?i(document.documentElement.clientHeight,window.innerHeight||0):i(document.documentElement.clientWidth,window.innerWidth||0),l/100*o):o}function bi(n,t,i,r){var h=[0,0],c=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(s(u,function(n){return-1!==n.search(/,|\s/)})),o,e;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=-1===f?[u]:[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))],e=e.map(function(n,r){var f=(1===r?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return wi(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){d(i)&&(h[t]+=i*("-"===n[r-1]?-1:1))})}),h}function ki(n,t){var r,f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0];return r=d(+f)?[+f,0]:bi(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}for(var dt=Math.min,e=Math.floor,i=Math.max,di=["native code","[object MutationObserverConstructor]"],gi=function(n){return di.some(function(t){return-1<(n||"").toString().indexOf(t)})},gt="undefined"!=typeof window,ni=["Edge","Trident","Firefox"],ti=0,nt=0;nt<ni.length;nt+=1)if(gt&&0<=navigator.userAgent.indexOf(ni[nt])){ti=1;break}var tt,nr=gt&&gi(window.MutationObserver),tr=nr?function(n){var t=!1,i=0,r=document.createElement("span"),u=new MutationObserver(function(){n();t=!1});return u.observe(r,{attributes:!0}),function(){t||(t=!0,r.setAttribute("x-index",i),++i)}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ti))}},l=function(){return void 0==tt&&(tt=-1!==navigator.appVersion.indexOf("MSIE 10")),tt},ir=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},rr=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},n=Object.assign||function(n){for(var t,r,i=1;i<arguments.length;i++)for(r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},ii=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],it=ii.slice(3),rt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},v=function(){function t(i,r){var u=this,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e;ir(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=tr(this.update.bind(this));this.options=n({},t.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=i.jquery?i[0]:i;this.popper=r.jquery?r[0]:r;this.options.modifiers={};Object.keys(n({},t.Defaults.modifiers,f.modifiers)).forEach(function(i){u.options.modifiers[i]=n({},t.Defaults.modifiers[i]||{},f.modifiers?f.modifiers[i]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return n({name:t},u.options.modifiers[t])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&ut(n.onLoad)&&n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return rr(t,[{key:"update",value:function(){return si.call(this)}},{key:"destroy",value:function(){return hi.call(this)}},{key:"enableEventListeners",value:function(){return li.call(this)}},{key:"disableEventListeners",value:function(){return vi.call(this)}}]),t}();return v.Utils=("undefined"==typeof window?global:window).PopperUtils,v.placements=ii,v.Defaults={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var u=t.placement,c=u.split("-")[0],f=u.split("-")[1];if(f){var e=t.offsets,r=e.reference,o=e.popper,s=-1!==["bottom","top"].indexOf(c),i=s?"left":"top",h=s?"width":"height",l={start:a({},i,r[i]),end:a({},i,r[i]+r[h]-o[h])};t.offsets.popper=n({},o,l[f])}return t}},offset:{order:200,enabled:!0,fn:ki,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,r){var o=r.boundariesElement||u(t.instance.popper),e;t.instance.reference===o&&(o=u(o));e=k(t.instance.popper,t.instance.reference,r.padding,o);r.boundaries=e;var s=r.priority,f=t.offsets.popper,h={primary:function(n){var t=f[n];return f[n]<e[n]&&!r.escapeWithReference&&(t=i(f[n],e[n])),a({},n,t)},secondary:function(n){var t="right"===n?"left":"top",i=f[t];return f[n]>e[n]&&!r.escapeWithReference&&(i=dt(f[t],e[n]-("right"===n?f.width:f.height))),a({},t,i)}};return s.forEach(function(t){var i=-1===["left","top"].indexOf(t)?"secondary":"primary";f=n({},f,h[i](t))}),t.offsets.popper=f,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var s=n.offsets,u=s.popper,i=s.reference,h=n.placement.split("-")[0],r=e,f=-1!==["top","bottom"].indexOf(h),o=f?"right":"bottom",t=f?"left":"top",c=f?"width":"height";return u[o]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[c]),u[t]>r(i[o])&&(n.offsets.popper[t]=r(i[o])),n}},arrow:{order:500,enabled:!0,fn:function(n,u){var e;if(!bt(n.instance.modifiers,"arrow","keepTogether"))return n;if(e=u.element,"string"==typeof e){if(e=n.instance.popper.querySelector(e),!e)return n}else if(!n.instance.popper.contains(e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var w=n.placement.split("-")[0],y=n.offsets,h=y.popper,o=y.reference,c=-1!==["left","right"].indexOf(w),a=c?"height":"width",p=c?"Top":"Left",f=p.toLowerCase(),b=c?"left":"top",l=c?"bottom":"right",s=lt(e)[a];o[l]-s<h[f]&&(n.offsets.popper[f]-=h[f]-(o[l]-s));o[f]+s>h[l]&&(n.offsets.popper[f]+=o[f]+s-h[l]);var k=o[f]+o[a]/2-s/2,d=r(n.instance.popper,"margin"+p).replace("px",""),v=k-t(n.offsets.popper)[f]-d;return v=i(dt(h[a]-s,v),0),n.arrowElement=e,n.offsets.arrow={},n.offsets.arrow[f]=Math.round(v),n.offsets.arrow[b]="",n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,i){if(yt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var o=k(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement),r=t.placement.split("-")[0],s=c(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case rt.FLIP:f=[r,s];break;case rt.CLOCKWISE:f=kt(r);break;case rt.COUNTERCLOCKWISE:f=kt(r,!0);break;default:f=i.behavior}return f.forEach(function(h,l){if(r!==h||f.length===l+1)return t;r=t.placement.split("-")[0];s=c(r);var v=t.offsets.popper,y=t.offsets.reference,a=e,w="left"===r&&a(v.right)>a(y.left)||"right"===r&&a(v.left)<a(y.right)||"top"===r&&a(v.bottom)>a(y.top)||"bottom"===r&&a(v.top)<a(y.bottom),b=a(v.left)<a(o.left),k=a(v.right)>a(o.right),d=a(v.top)<a(o.top),g=a(v.bottom)>a(o.bottom),nt="left"===r&&b||"right"===r&&k||"top"===r&&d||"bottom"===r&&g,p=-1!==["top","bottom"].indexOf(r),tt=!!i.flipVariations&&(p&&"start"===u&&b||p&&"end"===u&&k||!p&&"start"===u&&d||!p&&"end"===u&&g);(w||nt||tt)&&(t.flipped=!0,(w||nt)&&(r=f[l+1]),tt&&(u=pi(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,at(t.instance.popper,t.offsets.reference,t.placement)),t=vt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(n){var u=n.placement,i=u.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=-1!==["left","right"].indexOf(i),s=-1===["top","left"].indexOf(i);return r[e?"left":"top"]=o[i]-(s?r[e?"width":"height"]:0),n.placement=c(u),n.offsets.popper=t(r),n}},hide:{order:800,enabled:!0,fn:function(n){if(!bt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=s(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(t,i){var g=i.x,nt=i.y,f=t.offsets.popper,l=s(t.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,b,k,d;void 0!==l&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,v,tt=void 0===l?i.gpuAcceleration:l,it=u(t.instance.popper),y=w(it),r={position:f.position},c={left:e(f.left),top:e(f.top),bottom:e(f.bottom),right:e(f.right)},o="bottom"===g?"top":"bottom",h="right"===nt?"left":"right",p=pt("transform");return(v="bottom"==o?-y.height+c.bottom:c.top,a="right"==h?-y.width+c.right:c.left,tt&&p)?(r[p]="translate3d("+a+"px, "+v+"px, 0)",r[o]=0,r[h]=0,r.willChange="transform"):(b="bottom"==o?-1:1,k="right"==h?-1:1,r[o]=v*b,r[h]=a*k,r.willChange=o+", "+h),d={"x-placement":t.placement},t.attributes=n({},d,t.attributes),t.styles=n({},r,t.styles),t.arrowStyles=n({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){return g(n.instance.popper,n.styles),yi(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&g(n.arrowElement,n.arrowStyles),n},onLoad:function(n,t,i,r,u){var f=ct(u,t,n),e=ht(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),g(t,{position:"absolute"}),i},gpuAcceleration:void 0}}},v});bootstrap=function(n,t,i){"use strict";function e(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}t=t&&t.hasOwnProperty("default")?t.default:t;i=i&&i.hasOwnProperty("default")?i.default:i;var r=function(){function u(n){return{}.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function f(){return{bindType:i.end,delegateType:i.end,handle:function(n){if(t(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}}}function e(){var t,n;if(window.QUnit)return!1;t=document.createElement("bootstrap");for(n in r)if("undefined"!=typeof t.style[n])return{end:r[n]};return!1}function o(i){var u=this,r=!1;return t(this).one(n.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||n.triggerTransitionEnd(u)},i),this}var i=!1,r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n},getSelectorFromElement:function(n){var i=n.getAttribute("data-target");i&&"#"!==i||(i=n.getAttribute("href")||"");try{return t(document).find(i).length>0?i:null}catch(n){return null}},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(i.end)},supportsTransitionEnd:function(){return Boolean(i)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(t,i,r){var f;for(f in r)if(Object.prototype.hasOwnProperty.call(r,f)){var o=r[f],e=i[f],s=e&&n.isElement(e)?"element":u(e);if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+f+'" provided type "'+s+'" but expected type "'+o+'".');}}};return i=e(),t.fn.emulateTransitionEnd=o,n.supportsTransitionEnd()&&(t.event.special[n.TRANSITION_END]=f()),n}(),u=function(n,t,i){return t&&e(n.prototype,t),i&&e(n,i),n},o=function(n,t){n.prototype=Object.create(t.prototype);n.prototype.constructor=n;n.__proto__=t},s=function(){var i="alert",o=t.fn[i],f={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},e={ALERT:"alert",FADE:"fade",SHOW:"show"},n=function(){function n(n){this._element=n}var i=n.prototype;return i.close=function(n){n=n||this._element;var t=this._getRootElement(n);this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},i.dispose=function(){t.removeData(this._element,"bs.alert");this._element=null},i._getRootElement=function(n){var u=r.getSelectorFromElement(n),i=!1;return u&&(i=t(u)[0]),i||(i=t(n).closest("."+e.ALERT)[0]),i},i._triggerCloseEvent=function(n){var i=t.Event(f.CLOSE);return t(n).trigger(i),i},i._removeElement=function(n){var i=this;t(n).removeClass(e.SHOW);r.supportsTransitionEnd()&&t(n).hasClass(e.FADE)?t(n).one(r.TRANSITION_END,function(t){return i._destroyElement(n,t)}).emulateTransitionEnd(150):this._destroyElement(n)},i._destroyElement=function(n){t(n).detach().trigger(f.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data("bs.alert");r||(r=new n(this),u.data("bs.alert",r));"close"===i&&r[i](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},u(n,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),n}();return t(document).on(f.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,n._handleDismiss(new n)),t.fn[i]=n._jQueryInterface,t.fn[i].Constructor=n,t.fn[i].noConflict=function(){return t.fn[i]=o,n._jQueryInterface},n}(),h=function(){var r="button",o=t.fn[r],n={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},i={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},e={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},f=function(){function r(n){this._element=n}var f=r.prototype;return f.toggle=function(){var f=!0,o=!0,u=t(this._element).closest(i.DATA_TOGGLE)[0],r,e;if(u&&(r=t(this._element).find(i.INPUT)[0],r)){if("radio"===r.type&&(r.checked&&t(this._element).hasClass(n.ACTIVE)?f=!1:(e=t(u).find(i.ACTIVE)[0],e&&t(e).removeClass(n.ACTIVE))),f){if(r.hasAttribute("disabled")||u.hasAttribute("disabled")||r.classList.contains("disabled")||u.classList.contains("disabled"))return;r.checked=!t(this._element).hasClass(n.ACTIVE);t(r).trigger("change")}r.focus();o=!1}o&&this._element.setAttribute("aria-pressed",!t(this._element).hasClass(n.ACTIVE));f&&t(this._element).toggleClass(n.ACTIVE)},f.dispose=function(){t.removeData(this._element,"bs.button");this._element=null},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.button");i||(i=new r(this),t(this).data("bs.button",i));"toggle"===n&&i[n]()})},u(r,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),r}();return t(document).on(e.CLICK_DATA_API,i.DATA_TOGGLE_CARROT,function(r){r.preventDefault();var u=r.target;t(u).hasClass(n.BUTTON)||(u=t(u).closest(i.BUTTON));f._jQueryInterface.call(t(u),"toggle")}).on(e.FOCUS_BLUR_DATA_API,i.DATA_TOGGLE_CARROT,function(r){var u=t(r.target).closest(i.BUTTON)[0];t(u).toggleClass(n.FOCUS,/^focus(in)?$/.test(r.type))}),t.fn[r]=f._jQueryInterface,t.fn[r].Constructor=f,t.fn[r].noConflict=function(){return t.fn[r]=o,f._jQueryInterface},f}(),c=function(){var s="carousel",c="bs.carousel",o="."+c,a=t.fn[s],l={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},v={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},i={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},f={SLIDE:"slide"+o,SLID:"slid"+o,KEYDOWN:"keydown"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o,TOUCHEND:"touchend"+o,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},n={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},e={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},h=function(){function a(n,i){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this._config=this._getConfig(i);this._element=t(n)[0];this._indicatorsElement=t(this._element).find(e.INDICATORS)[0];this._addEventListeners()}var h=a.prototype;return h.next=function(){this._isSliding||this._slide(i.NEXT)},h.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},h.prev=function(){this._isSliding||this._slide(i.PREV)},h.pause=function(n){n||(this._isPaused=!0);t(this._element).find(e.NEXT_PREV)[0]&&r.supportsTransitionEnd()&&(r.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},h.cycle=function(n){n||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},h.to=function(n){var o=this,r,u;if(this._activeElement=t(this._element).find(e.ACTIVE_ITEM)[0],r=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)t(this._element).one(f.SLID,function(){return o.to(n)});else{if(r===n)return this.pause(),void this.cycle();u=n>r?i.NEXT:i.PREV;this._slide(u,this._items[n])}},h.dispose=function(){t(this._element).off(o);t.removeData(this._element,c);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},h._getConfig=function(n){return n=t.extend({},l,n),r.typeCheckConfig(s,n,v),n},h._addEventListeners=function(){var n=this;this._config.keyboard&&t(this._element).on(f.KEYDOWN,function(t){return n._keydown(t)});"hover"===this._config.pause&&(t(this._element).on(f.MOUSEENTER,function(t){return n.pause(t)}).on(f.MOUSELEAVE,function(t){return n.cycle(t)}),"ontouchstart"in document.documentElement&&t(this._element).on(f.TOUCHEND,function(){n.pause();n.touchTimeout&&clearTimeout(n.touchTimeout);n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval)}))},h._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault();this.prev();break;case 39:n.preventDefault();this.next();break;default:return}},h._getItemIndex=function(n){return this._items=t.makeArray(t(n).parent().find(e.ITEM)),this._items.indexOf(n)},h._getItemByDirection=function(n,t){var f=n===i.NEXT,e=n===i.PREV,r=this._getItemIndex(t),o=this._items.length-1,u;return(e&&0===r||f&&r===o)&&!this._config.wrap?t:(u=(r+(n===i.PREV?-1:1))%this._items.length,-1===u?this._items[this._items.length-1]:this._items[u])},h._triggerSlideEvent=function(n,i){var u=this._getItemIndex(n),o=this._getItemIndex(t(this._element).find(e.ACTIVE_ITEM)[0]),r=t.Event(f.SLIDE,{relatedTarget:n,direction:i,from:o,to:u});return t(this._element).trigger(r),r},h._setActiveIndicatorElement=function(i){if(this._indicatorsElement){t(this._indicatorsElement).find(e.ACTIVE).removeClass(n.ACTIVE);var r=this._indicatorsElement.children[this._getItemIndex(i)];r&&t(r).addClass(n.ACTIVE)}},h._slide=function(u,o){var c,l,a,y=this,h=t(this._element).find(e.ACTIVE_ITEM)[0],w=this._getItemIndex(h),s=o||h&&this._getItemByDirection(u,h),b=this._getItemIndex(s),p=Boolean(this._interval),v;(u===i.NEXT?(c=n.LEFT,l=n.NEXT,a=i.LEFT):(c=n.RIGHT,l=n.PREV,a=i.RIGHT),s&&t(s).hasClass(n.ACTIVE))?this._isSliding=!1:!this._triggerSlideEvent(s,a).isDefaultPrevented()&&h&&s&&(this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(s),v=t.Event(f.SLID,{relatedTarget:s,direction:a,from:w,to:b}),r.supportsTransitionEnd()&&t(this._element).hasClass(n.SLIDE)?(t(s).addClass(l),r.reflow(s),t(h).addClass(c),t(s).addClass(c),t(h).one(r.TRANSITION_END,function(){t(s).removeClass(c+" "+l).addClass(n.ACTIVE);t(h).removeClass(n.ACTIVE+" "+l+" "+c);y._isSliding=!1;setTimeout(function(){return t(y._element).trigger(v)},0)}).emulateTransitionEnd(600)):(t(h).removeClass(n.ACTIVE),t(s).addClass(n.ACTIVE),this._isSliding=!1,t(this._element).trigger(v)),p&&this.cycle())},a._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(c),u=t.extend({},l,t(this).data()),r;if("object"==typeof n&&t.extend(u,n),r="string"==typeof n?n:u.slide,i||(i=new a(this,u),t(this).data(c,i)),"number"==typeof n)i.to(n);else if("string"==typeof r){if("undefined"==typeof i[r])throw new Error('No method named "'+r+'"');i[r]()}else u.interval&&(i.pause(),i.cycle())})},a._dataApiClickHandler=function(i){var o=r.getSelectorFromElement(this),u,e,f;o&&(u=t(o)[0],u&&t(u).hasClass(n.CAROUSEL)&&(e=t.extend({},t(u).data(),t(this).data()),f=this.getAttribute("data-slide-to"),f&&(e.interval=!1),a._jQueryInterface.call(t(u),e),f&&t(u).data(c).to(f),i.preventDefault()))},u(a,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return l}}]),a}();return t(document).on(f.CLICK_DATA_API,e.DATA_SLIDE,h._dataApiClickHandler),t(window).on(f.LOAD_DATA_API,function(){t(e.DATA_RIDE).each(function(){var n=t(this);h._jQueryInterface.call(n,n.data())})}),t.fn[s]=h._jQueryInterface,t.fn[s].Constructor=h,t.fn[s].noConflict=function(){return t.fn[s]=a,h._jQueryInterface},h}(),l=function(){var i="collapse",f="bs.collapse",l=t.fn[i],s={toggle:!0,parent:""},a={toggle:"boolean",parent:"(string|element)"},e={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},n={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},h={WIDTH:"width",HEIGHT:"height"},c={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},o=function(){function l(n,i){var f,u,e,o;for(this._isTransitioning=!1,this._element=n,this._config=this._getConfig(i),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]')),f=t(c.DATA_TOGGLE),u=0;u<f.length;u++)e=f[u],o=r.getSelectorFromElement(e),null!==o&&t(o).filter(n).length>0&&this._triggerArray.push(e);this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var o=l.prototype;return o.toggle=function(){t(this._element).hasClass(n.SHOW)?this.hide():this.show()},o.show=function(){var o=this,i,s,h,u,a,v;this._isTransitioning||t(this._element).hasClass(n.SHOW)||(this._parent&&((i=t.makeArray(t(this._parent).children().children(c.ACTIVES))).length||(i=null)),i&&(s=t(i).data(f))&&s._isTransitioning)||(h=t.Event(e.SHOW),(t(this._element).trigger(h),h.isDefaultPrevented())||(i&&(l._jQueryInterface.call(t(i),"hide"),s||t(i).data(f,null)),u=this._getDimension(),t(this._element).removeClass(n.COLLAPSE).addClass(n.COLLAPSING),this._element.style[u]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(n.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),a=function(){t(o._element).removeClass(n.COLLAPSING).addClass(n.COLLAPSE).addClass(n.SHOW);o._element.style[u]="";o.setTransitioning(!1);t(o._element).trigger(e.SHOWN)},r.supportsTransitionEnd()?(v="scroll"+(u[0].toUpperCase()+u.slice(1)),t(this._element).one(r.TRANSITION_END,a).emulateTransitionEnd(600),this._element.style[u]=this._element[v]+"px"):a()))},o.hide=function(){var c=this,f,i,u,o,s,h;if(!this._isTransitioning&&t(this._element).hasClass(n.SHOW)&&(f=t.Event(e.HIDE),t(this._element).trigger(f),!f.isDefaultPrevented())){if(i=this._getDimension(),this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",r.reflow(this._element),t(this._element).addClass(n.COLLAPSING).removeClass(n.COLLAPSE).removeClass(n.SHOW),this._triggerArray.length)for(u=0;u<this._triggerArray.length;u++)o=this._triggerArray[u],s=r.getSelectorFromElement(o),null!==s&&(t(s).hasClass(n.SHOW)||t(o).addClass(n.COLLAPSED).attr("aria-expanded",!1));this.setTransitioning(!0);h=function(){c.setTransitioning(!1);t(c._element).removeClass(n.COLLAPSING).addClass(n.COLLAPSE).trigger(e.HIDDEN)};this._element.style[i]="";r.supportsTransitionEnd()?t(this._element).one(r.TRANSITION_END,h).emulateTransitionEnd(600):h()}},o.setTransitioning=function(n){this._isTransitioning=n},o.dispose=function(){t.removeData(this._element,f);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},o._getConfig=function(n){return n=t.extend({},s,n),n.toggle=Boolean(n.toggle),r.typeCheckConfig(i,n,a),n},o._getDimension=function(){return t(this._element).hasClass(h.WIDTH)?h.WIDTH:h.HEIGHT},o._getParent=function(){var u=this,n=null,i;return r.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=t(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',t(n).find(i).each(function(n,t){u._addAriaAndCollapsedClass(l._getTargetFromElement(t),[t])}),n},o._addAriaAndCollapsedClass=function(i,r){if(i){var u=t(i).hasClass(n.SHOW);r.length&&t(r).toggleClass(n.COLLAPSED,!u).attr("aria-expanded",u)}},l._getTargetFromElement=function(n){var i=r.getSelectorFromElement(n);return i?t(i)[0]:null},l._jQueryInterface=function(n){return this.each(function(){var r=t(this),i=r.data(f),u=t.extend({},s,r.data(),"object"==typeof n&&n);if(!i&&u.toggle&&/show|hide/.test(n)&&(u.toggle=!1),i||(i=new l(this,u),r.data(f,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new Error('No method named "'+n+'"');i[n]()}})},u(l,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return s}}]),l}();return t(document).on(e.CLICK_DATA_API,c.DATA_TOGGLE,function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var i=t(this),u=r.getSelectorFromElement(this);t(u).each(function(){var n=t(this),r=n.data(f)?"toggle":i.data();o._jQueryInterface.call(n,r)})}),t.fn[i]=o._jQueryInterface,t.fn[i].Constructor=o,t.fn[i].noConflict=function(){return t.fn[i]=l,o._jQueryInterface},o}(),a=function(){if("undefined"==typeof i)throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var s="dropdown",c="bs.dropdown",h="."+c,a=t.fn[s],v=new RegExp("38|40|27"),f={HIDE:"hide"+h,HIDDEN:"hidden"+h,SHOW:"show"+h,SHOWN:"shown"+h,CLICK:"click"+h,CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},n={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left"},e={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},l={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},y={offset:0,flip:!0},p={offset:"(number|string|function)",flip:"boolean"},o=function(){function o(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var a=o.prototype;return a.toggle=function(){var r,c,u,s,h;this._element.disabled||t(this._element).hasClass(n.DISABLED)||(r=o._getParentFromElement(this._element),c=t(this._menu).hasClass(n.SHOW),(o._clearMenus(),c)||(u={relatedTarget:this._element},s=t.Event(f.SHOW,u),(t(r).trigger(s),s.isDefaultPrevented())||(h=this._element,t(r).hasClass(n.DROPUP)&&(t(this._menu).hasClass(n.MENULEFT)||t(this._menu).hasClass(n.MENURIGHT))&&(h=r),this._popper=new i(h,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!t(r).closest(e.NAVBAR_NAV).length&&t("body").children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(n.SHOW),t(r).toggleClass(n.SHOW).trigger(t.Event(f.SHOWN,u)))))},a.dispose=function(){t.removeData(this._element,c);t(this._element).off(h);this._element=null;this._menu=null;null!==this._popper&&this._popper.destroy();this._popper=null},a.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},a._addEventListeners=function(){var n=this;t(this._element).on(f.CLICK,function(t){t.preventDefault();t.stopPropagation();n.toggle()})},a._getConfig=function(n){return n=t.extend({},this.constructor.Default,t(this._element).data(),n),r.typeCheckConfig(s,n,this.constructor.DefaultType),n},a._getMenuElement=function(){if(!this._menu){var n=o._getParentFromElement(this._element);this._menu=t(n).find(e.MENU)[0]}return this._menu},a._getPlacement=function(){var r=t(this._element).parent(),i=l.BOTTOM;return r.hasClass(n.DROPUP)?(i=l.TOP,t(this._menu).hasClass(n.MENURIGHT)&&(i=l.TOPEND)):t(this._menu).hasClass(n.MENURIGHT)&&(i=l.BOTTOMEND),i},a._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},a._getPopperConfig=function(){var r=this,n={},i;return"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=t.extend({},n.offsets,r._config.offset(n.offsets)||{}),n}:n.offset=this._config.offset,i={placement:this._getPlacement(),modifiers:{offset:n,flip:{enabled:this._config.flip}}},this._inNavbar&&(i.modifiers.applyStyle={enabled:!this._inNavbar}),i},o._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(c),r="object"==typeof n?n:null;if(i||(i=new o(this,r),t(this).data(c,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new Error('No method named "'+n+'"');i[n]()}})},o._clearMenus=function(i){var u,r,v,h;if(!i||3!==i.which&&("keyup"!==i.type||9===i.which))for(u=t.makeArray(t(e.DATA_TOGGLE)),r=0;r<u.length;r++){var s=o._getParentFromElement(u[r]),l=t(u[r]).data(c),a={relatedTarget:u[r]};l&&(v=l._menu,!t(s).hasClass(n.SHOW)||i&&("click"===i.type&&/input|textarea/i.test(i.target.tagName)||"keyup"===i.type&&9===i.which)&&t.contains(s,i.target)||(h=t.Event(f.HIDE,a),t(s).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),u[r].setAttribute("aria-expanded","false"),t(v).removeClass(n.SHOW),t(s).removeClass(n.SHOW).trigger(t.Event(f.HIDDEN,a)))))}},o._getParentFromElement=function(n){var i,u=r.getSelectorFromElement(n);return u&&(i=t(u)[0]),i||n.parentNode},o._dataApiKeydownHandler=function(i){var f,s,u,r,h;!v.test(i.which)||/button/i.test(i.target.tagName)&&32===i.which||/input|textarea/i.test(i.target.tagName)||(i.preventDefault(),i.stopPropagation(),this.disabled||t(this).hasClass(n.DISABLED))||(f=o._getParentFromElement(this),s=t(f).hasClass(n.SHOW),(s||27===i.which&&32===i.which)&&(!s||27!==i.which&&32!==i.which)?(u=t(f).find(e.VISIBLE_ITEMS).get(),u.length&&(r=u.indexOf(i.target),38===i.which&&r>0&&r--,40===i.which&&r<u.length-1&&r++,r<0&&(r=0),u[r].focus())):(27===i.which&&(h=t(f).find(e.DATA_TOGGLE)[0],t(h).trigger("focus")),t(this).trigger("click")))},u(o,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return y}},{key:"DefaultType",get:function(){return p}}]),o}();return t(document).on(f.KEYDOWN_DATA_API,e.DATA_TOGGLE,o._dataApiKeydownHandler).on(f.KEYDOWN_DATA_API,e.MENU,o._dataApiKeydownHandler).on(f.CLICK_DATA_API+" "+f.KEYUP_DATA_API,o._clearMenus).on(f.CLICK_DATA_API,e.DATA_TOGGLE,function(n){n.preventDefault();n.stopPropagation();o._jQueryInterface.call(t(this),"toggle")}).on(f.CLICK_DATA_API,e.FORM_CHILD,function(n){n.stopPropagation()}),t.fn[s]=o._jQueryInterface,t.fn[s].Constructor=o,t.fn[s].noConflict=function(){return t.fn[s]=a,o._jQueryInterface},o}(),v=function(){var e="modal",h=".bs.modal",c=t.fn[e],s={backdrop:!0,keyboard:!0,focus:!0,show:!0},l={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},n={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},i={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},f={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},o=function(){function c(n,i){this._config=this._getConfig(i);this._element=n;this._dialog=t(n).find(f.DIALOG)[0];this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._originalBodyPadding=0;this._scrollbarWidth=0}var o=c.prototype;return o.toggle=function(n){return this._isShown?this.hide():this.show(n)},o.show=function(u){var e=this,o;this._isTransitioning||this._isShown||(r.supportsTransitionEnd()&&t(this._element).hasClass(i.FADE)&&(this._isTransitioning=!0),o=t.Event(n.SHOW,{relatedTarget:u}),t(this._element).trigger(o),this._isShown||o.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),t(document.body).addClass(i.OPEN),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(n.CLICK_DISMISS,f.DATA_DISMISS,function(n){return e.hide(n)}),t(this._dialog).on(n.MOUSEDOWN_DISMISS,function(){t(e._element).one(n.MOUSEUP_DISMISS,function(n){t(n.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(u)})))},o.hide=function(u){var o=this,f,e;(u&&u.preventDefault(),!this._isTransitioning&&this._isShown)&&(f=t.Event(n.HIDE),(t(this._element).trigger(f),this._isShown&&!f.isDefaultPrevented())&&(this._isShown=!1,e=r.supportsTransitionEnd()&&t(this._element).hasClass(i.FADE),e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(n.FOCUSIN),t(this._element).removeClass(i.SHOW),t(this._element).off(n.CLICK_DISMISS),t(this._dialog).off(n.MOUSEDOWN_DISMISS),e?t(this._element).one(r.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(300):this._hideModal()))},o.dispose=function(){t.removeData(this._element,"bs.modal");t(window,document,this._element,this._backdrop).off(h);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null},o.handleUpdate=function(){this._adjustDialog()},o._getConfig=function(n){return n=t.extend({},s,n),r.typeCheckConfig(e,n,l),n},o._showElement=function(u){var f=this,o=r.supportsTransitionEnd()&&t(this._element).hasClass(i.FADE),s,e;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.scrollTop=0;o&&r.reflow(this._element);t(this._element).addClass(i.SHOW);this._config.focus&&this._enforceFocus();s=t.Event(n.SHOWN,{relatedTarget:u});e=function(){f._config.focus&&f._element.focus();f._isTransitioning=!1;t(f._element).trigger(s)};o?t(this._dialog).one(r.TRANSITION_END,e).emulateTransitionEnd(300):e()},o._enforceFocus=function(){var i=this;t(document).off(n.FOCUSIN).on(n.FOCUSIN,function(n){document===n.target||i._element===n.target||t(i._element).has(n.target).length||i._element.focus()})},o._setEscapeEvent=function(){var i=this;this._isShown&&this._config.keyboard?t(this._element).on(n.KEYDOWN_DISMISS,function(n){27===n.which&&(n.preventDefault(),i.hide())}):this._isShown||t(this._element).off(n.KEYDOWN_DISMISS)},o._setResizeEvent=function(){var i=this;this._isShown?t(window).on(n.RESIZE,function(n){return i.handleUpdate(n)}):t(window).off(n.RESIZE)},o._hideModal=function(){var r=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._isTransitioning=!1;this._showBackdrop(function(){t(document.body).removeClass(i.OPEN);r._resetAdjustments();r._resetScrollbar();t(r._element).trigger(n.HIDDEN)})},o._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},o._showBackdrop=function(u){var f=this,e=t(this._element).hasClass(i.FADE)?i.FADE:"",o,s;if(this._isShown&&this._config.backdrop){if(o=r.supportsTransitionEnd()&&e,this._backdrop=document.createElement("div"),this._backdrop.className=i.BACKDROP,e&&t(this._backdrop).addClass(e),t(this._backdrop).appendTo(document.body),t(this._element).on(n.CLICK_DISMISS,function(n){f._ignoreBackdropClick?f._ignoreBackdropClick=!1:n.target===n.currentTarget&&("static"===f._config.backdrop?f._element.focus():f.hide())}),o&&r.reflow(this._backdrop),t(this._backdrop).addClass(i.SHOW),!u)return;if(!o)return void u();t(this._backdrop).one(r.TRANSITION_END,u).emulateTransitionEnd(150)}else!this._isShown&&this._backdrop?(t(this._backdrop).removeClass(i.SHOW),s=function(){f._removeBackdrop();u&&u()},r.supportsTransitionEnd()&&t(this._element).hasClass(i.FADE)?t(this._backdrop).one(r.TRANSITION_END,s).emulateTransitionEnd(150):s()):u&&u()},o._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},o._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},o._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},o._setScrollbar=function(){var n=this,i,r;this._isBodyOverflowing&&(t(f.FIXED_CONTENT).each(function(i,r){var u=t(r)[0].style.paddingRight,f=t(r).css("padding-right");t(r).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),t(f.STICKY_CONTENT).each(function(i,r){var u=t(r)[0].style.marginRight,f=t(r).css("margin-right");t(r).data("margin-right",u).css("margin-right",parseFloat(f)-n._scrollbarWidth+"px")}),t(f.NAVBAR_TOGGLER).each(function(i,r){var u=t(r)[0].style.marginRight,f=t(r).css("margin-right");t(r).data("margin-right",u).css("margin-right",parseFloat(f)+n._scrollbarWidth+"px")}),i=document.body.style.paddingRight,r=t("body").css("padding-right"),t("body").data("padding-right",i).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px"))},o._resetScrollbar=function(){t(f.FIXED_CONTENT).each(function(n,i){var r=t(i).data("padding-right");"undefined"!=typeof r&&t(i).css("padding-right",r).removeData("padding-right")});t(f.STICKY_CONTENT+", "+f.NAVBAR_TOGGLER).each(function(n,i){var r=t(i).data("margin-right");"undefined"!=typeof r&&t(i).css("margin-right",r).removeData("margin-right")});var n=t("body").data("padding-right");"undefined"!=typeof n&&t("body").css("padding-right",n).removeData("padding-right")},o._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=i.SCROLLBAR_MEASURER,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},c._jQueryInterface=function(n,i){return this.each(function(){var r=t(this).data("bs.modal"),u=t.extend({},c.Default,t(this).data(),"object"==typeof n&&n);if(r||(r=new c(this,u),t(this).data("bs.modal",r)),"string"==typeof n){if("undefined"==typeof r[n])throw new Error('No method named "'+n+'"');r[n](i)}else u.show&&r.show(i)})},u(c,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return s}}]),c}();return t(document).on(n.CLICK_DATA_API,f.DATA_TOGGLE,function(i){var u,f=this,e=r.getSelectorFromElement(this),s,h;e&&(u=t(e)[0]);s=t(u).data("bs.modal")?"toggle":t.extend({},t(u).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||i.preventDefault();h=t(u).one(n.SHOW,function(i){i.isDefaultPrevented()||h.one(n.HIDDEN,function(){t(f).is(":visible")&&f.focus()})});o._jQueryInterface.call(t(u),s,this)}),t.fn[e]=o._jQueryInterface,t.fn[e].Constructor=o,t.fn[e].noConflict=function(){return t.fn[e]=c,o._jQueryInterface},o}(),f=function(){if("undefined"==typeof i)throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var s="tooltip",n=".bs.tooltip",l=t.fn[s],a=new RegExp("(^|\\s)bs-tooltip\\S+","g"),v={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)"},y={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},p={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip"},o={SHOW:"show",OUT:"out"},w={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},f={FADE:"fade",SHOW:"show"},c={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},e={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},h=function(){function l(n,t){this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var h=l.prototype;return h.enable=function(){this._isEnabled=!0},h.disable=function(){this._isEnabled=!1},h.toggleEnabled=function(){this._isEnabled=!this._isEnabled},h.toggle=function(n){if(this._isEnabled)if(n){var r=this.constructor.DATA_KEY,i=t(n.currentTarget).data(r);i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));i._activeTrigger.click=!i._activeTrigger.click;i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(f.SHOW))return void this._leave(null,this);this._enter(null,this)}},h.dispose=function(){clearTimeout(this._timeout);t.removeData(this.element,this.constructor.DATA_KEY);t(this.element).off(this.constructor.EVENT_KEY);t(this.element).closest(".modal").off("hide.bs.modal");this.tip&&t(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;null!==this._popper&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},h.show=function(){var n=this,e,v,u,s,y,h,p,a;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");if(e=t.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(t(this.element).trigger(e),v=t.contains(this.element.ownerDocument.documentElement,this.element),e.isDefaultPrevented()||!v)return;u=this.getTipElement();s=r.getUID(this.constructor.NAME);u.setAttribute("id",s);this.element.setAttribute("aria-describedby",s);this.setContent();this.config.animation&&t(u).addClass(f.FADE);y="function"==typeof this.config.placement?this.config.placement.call(this,u,this.element):this.config.placement;h=this._getAttachment(y);this.addAttachmentClass(h);p=!1===this.config.container?document.body:t(this.config.container);t(u).data(this.constructor.DATA_KEY,this);t.contains(this.element.ownerDocument.documentElement,this.tip)||t(u).appendTo(p);t(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new i(this.element,u,{placement:h,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:c.ARROW}},onCreate:function(t){t.originalPlacement!==t.placement&&n._handlePopperPlacementChange(t)},onUpdate:function(t){n._handlePopperPlacementChange(t)}});t(u).addClass(f.SHOW);"ontouchstart"in document.documentElement&&t("body").children().on("mouseover",null,t.noop);a=function(){n.config.animation&&n._fixTransition();var i=n._hoverState;n._hoverState=null;t(n.element).trigger(n.constructor.Event.SHOWN);i===o.OUT&&n._leave(null,n)};r.supportsTransitionEnd()&&t(this.tip).hasClass(f.FADE)?t(this.tip).one(r.TRANSITION_END,a).emulateTransitionEnd(l._TRANSITION_DURATION):a()}},h.hide=function(n){var i=this,u=this.getTipElement(),s=t.Event(this.constructor.Event.HIDE),h=function(){i._hoverState!==o.SHOW&&u.parentNode&&u.parentNode.removeChild(u);i._cleanTipClass();i.element.removeAttribute("aria-describedby");t(i.element).trigger(i.constructor.Event.HIDDEN);null!==i._popper&&i._popper.destroy();n&&n()};t(this.element).trigger(s);s.isDefaultPrevented()||(t(u).removeClass(f.SHOW),"ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),this._activeTrigger[e.CLICK]=!1,this._activeTrigger[e.FOCUS]=!1,this._activeTrigger[e.HOVER]=!1,r.supportsTransitionEnd()&&t(this.tip).hasClass(f.FADE)?t(u).one(r.TRANSITION_END,h).emulateTransitionEnd(150):h(),this._hoverState="")},h.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},h.isWithContent=function(){return Boolean(this.getTitle())},h.addAttachmentClass=function(n){t(this.getTipElement()).addClass("bs-tooltip-"+n)},h.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},h.setContent=function(){var n=t(this.getTipElement());this.setElementContent(n.find(c.TOOLTIP_INNER),this.getTitle());n.removeClass(f.FADE+" "+f.SHOW)},h.setElementContent=function(n,i){var r=this.config.html;"object"==typeof i&&(i.nodeType||i.jquery)?r?t(i).parent().is(n)||n.empty().append(i):n.text(t(i).text()):n[r?"html":"text"](i)},h.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),n},h._getAttachment=function(n){return y[n.toUpperCase()]},h._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)t(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(i!==e.MANUAL){var r=i===e.HOVER?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,u=i===e.HOVER?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;t(n.element).on(r,n.config.selector,function(t){return n._enter(t)}).on(u,n.config.selector,function(t){return n._leave(t)})}t(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})});this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},h._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},h._enter=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusin"===n.type?e.FOCUS:e.HOVER]=!0);t(i.getTipElement()).hasClass(f.SHOW)||i._hoverState===o.SHOW?i._hoverState=o.SHOW:(clearTimeout(i._timeout),i._hoverState=o.SHOW,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(function(){i._hoverState===o.SHOW&&i.show()},i.config.delay.show):i.show())},h._leave=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusout"===n.type?e.FOCUS:e.HOVER]=!1);i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=o.OUT,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(function(){i._hoverState===o.OUT&&i.hide()},i.config.delay.hide):i.hide())},h._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},h._getConfig=function(n){return"number"==typeof(n=t.extend({},this.constructor.Default,t(this.element).data(),n)).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),r.typeCheckConfig(s,n,this.constructor.DefaultType),n},h._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},h._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(a);null!==n&&n.length>0&&i.removeClass(n.join(""))},h._handlePopperPlacementChange=function(n){this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},h._fixTransition=function(){var n=this.getTipElement(),i=this.config.animation;null===n.getAttribute("x-placement")&&(t(n).removeClass(f.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},l._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.tooltip"),r="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new l(this,r),t(this).data("bs.tooltip",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new Error('No method named "'+n+'"');i[n]()}})},u(l,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return p}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return w}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return v}}]),l}();return t.fn[s]=h._jQueryInterface,t.fn[s].Constructor=h,t.fn[s].noConflict=function(){return t.fn[s]=l,h._jQueryInterface},h}(),y=function(){var i="popover",n=".bs.popover",h=t.fn[i],c=new RegExp("(^|\\s)bs-popover\\S+","g"),l=t.extend({},f.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-header"><\/h3><div class="popover-body"><\/div><\/div>'}),a=t.extend({},f.DefaultType,{content:"(string|element|function)"}),e={FADE:"fade",SHOW:"show"},s={TITLE:".popover-header",CONTENT:".popover-body"},v={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},r=function(r){function f(){return r.apply(this,arguments)||this}o(f,r);var h=f.prototype;return h.isWithContent=function(){return this.getTitle()||this._getContent()},h.addAttachmentClass=function(n){t(this.getTipElement()).addClass("bs-popover-"+n)},h.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},h.setContent=function(){var n=t(this.getTipElement());this.setElementContent(n.find(s.TITLE),this.getTitle());this.setElementContent(n.find(s.CONTENT),this._getContent());n.removeClass(e.FADE+" "+e.SHOW)},h._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},h._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(c);null!==n&&n.length>0&&i.removeClass(n.join(""))},f._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.popover"),r="object"==typeof n?n:null;if((i||!/destroy|hide/.test(n))&&(i||(i=new f(this,r),t(this).data("bs.popover",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new Error('No method named "'+n+'"');i[n]()}})},u(f,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return i}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return v}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return a}}]),f}(f);return t.fn[i]=r._jQueryInterface,t.fn[i].Constructor=r,t.fn[i].noConflict=function(){return t.fn[i]=h,r._jQueryInterface},r}(),p=function(){var i="scrollspy",c=t.fn[i],h={offset:10,method:"auto",target:""},l={offset:"number",method:"string",target:"(string|element)"},o={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},f={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},n={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},s={OFFSET:"offset",POSITION:"position"},e=function(){function c(i,r){var u=this;this._element=i;this._scrollElement="BODY"===i.tagName?window:i;this._config=this._getConfig(r);this._selector=this._config.target+" "+n.NAV_LINKS+","+this._config.target+" "+n.LIST_ITEMS+","+this._config.target+" "+n.DROPDOWN_ITEMS;this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;t(this._scrollElement).on(o.SCROLL,function(n){return u._process(n)});this.refresh();this._process()}var e=c.prototype;return e.refresh=function(){var n=this,u=this._scrollElement!==this._scrollElement.window?s.POSITION:s.OFFSET,i="auto"===this._config.method?u:this._config.method,f=i===s.POSITION?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();t.makeArray(t(this._selector)).map(function(n){var u,e=r.getSelectorFromElement(n),o;return(e&&(u=t(e)[0]),u)&&(o=u.getBoundingClientRect(),o.width||o.height)?[t(u)[i]().top+f,e]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(t){n._offsets.push(t[0]);n._targets.push(t[1])})},e.dispose=function(){t.removeData(this._element,"bs.scrollspy");t(this._scrollElement).off(".bs.scrollspy");this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},e._getConfig=function(n){if("string"!=typeof(n=t.extend({},h,n)).target){var u=t(n.target).attr("id");u||(u=r.getUID(i),t(n.target).attr("id",u));n.target="#"+u}return r.typeCheckConfig(i,n,l),n},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),u=this._config.offset+r-this._getOffsetHeight(),i,n;if(this._scrollHeight!==r&&this.refresh(),t>=u)i=this._targets[this._targets.length-1],this._activeTarget!==i&&this._activate(i);else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&("undefined"==typeof this._offsets[n+1]||t<this._offsets[n+1])&&this._activate(this._targets[n])}},e._activate=function(i){var u,r;this._activeTarget=i;this._clear();u=this._selector.split(",");u=u.map(function(n){return n+'[data-target="'+i+'"],'+n+'[href="'+i+'"]'});r=t(u.join(","));r.hasClass(f.DROPDOWN_ITEM)?(r.closest(n.DROPDOWN).find(n.DROPDOWN_TOGGLE).addClass(f.ACTIVE),r.addClass(f.ACTIVE)):(r.addClass(f.ACTIVE),r.parents(n.NAV_LIST_GROUP).prev(n.NAV_LINKS+", "+n.LIST_ITEMS).addClass(f.ACTIVE),r.parents(n.NAV_LIST_GROUP).prev(n.NAV_ITEMS).children(n.NAV_LINKS).addClass(f.ACTIVE));t(this._scrollElement).trigger(o.ACTIVATE,{relatedTarget:i})},e._clear=function(){t(this._selector).filter(n.ACTIVE).removeClass(f.ACTIVE)},c._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.scrollspy"),r="object"==typeof n&&n;if(i||(i=new c(this,r),t(this).data("bs.scrollspy",i)),"string"==typeof n){if("undefined"==typeof i[n])throw new Error('No method named "'+n+'"');i[n]()}})},u(c,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}},{key:"Default",get:function(){return h}}]),c}();return t(window).on(o.LOAD_DATA_API,function(){for(var u,i=t.makeArray(t(n.DATA_SPY)),r=i.length;r--;)u=t(i[r]),e._jQueryInterface.call(u,u.data())}),t.fn[i]=e._jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=function(){return t.fn[i]=c,e._jQueryInterface},e}(),w=function(){var o=t.fn.tab,f={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},n={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},i={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},e=function(){function e(n){this._element=n}var o=e.prototype;return o.show=function(){var a=this,o,u,e,s,v,h,c,l;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(n.ACTIVE)||t(this._element).hasClass(n.DISABLED)||(e=t(this._element).closest(i.NAV_LIST_GROUP)[0],s=r.getSelectorFromElement(this._element),e&&(v="UL"===e.nodeName?i.ACTIVE_UL:i.ACTIVE,u=t.makeArray(t(e).find(v)),u=u[u.length-1]),h=t.Event(f.HIDE,{relatedTarget:this._element}),c=t.Event(f.SHOW,{relatedTarget:u}),(u&&t(u).trigger(h),t(this._element).trigger(c),c.isDefaultPrevented()||h.isDefaultPrevented())||(s&&(o=t(s)[0]),this._activate(this._element,e),l=function(){var n=t.Event(f.HIDDEN,{relatedTarget:a._element}),i=t.Event(f.SHOWN,{relatedTarget:u});t(u).trigger(n);t(a._element).trigger(i)},o?this._activate(o,o.parentNode,l):l()))},o.dispose=function(){t.removeData(this._element,"bs.tab");this._element=null},o._activate=function(u,f,e){var c,l=this,o=(c="UL"===f.nodeName?t(f).find(i.ACTIVE_UL):t(f).children(i.ACTIVE))[0],s=e&&r.supportsTransitionEnd()&&o&&t(o).hasClass(n.FADE),h=function(){return l._transitionComplete(u,o,s,e)};o&&s?t(o).one(r.TRANSITION_END,h).emulateTransitionEnd(150):h();o&&t(o).removeClass(n.SHOW)},o._transitionComplete=function(u,f,e,o){var s,h;f&&(t(f).removeClass(n.ACTIVE),s=t(f.parentNode).find(i.DROPDOWN_ACTIVE_CHILD)[0],s&&t(s).removeClass(n.ACTIVE),"tab"===f.getAttribute("role")&&f.setAttribute("aria-selected",!1));(t(u).addClass(n.ACTIVE),"tab"===u.getAttribute("role")&&u.setAttribute("aria-selected",!0),e?(r.reflow(u),t(u).addClass(n.SHOW)):t(u).removeClass(n.FADE),u.parentNode&&t(u.parentNode).hasClass(n.DROPDOWN_MENU))&&(h=t(u).closest(i.DROPDOWN)[0],h&&t(h).find(i.DROPDOWN_TOGGLE).addClass(n.ACTIVE),u.setAttribute("aria-expanded",!0));o&&o()},e._jQueryInterface=function(n){return this.each(function(){var r=t(this),i=r.data("bs.tab");if(i||(i=new e(this),r.data("bs.tab",i)),"string"==typeof n){if("undefined"==typeof i[n])throw new Error('No method named "'+n+'"');i[n]()}})},u(e,null,[{key:"VERSION",get:function(){return"4.0.0-beta.2"}}]),e}();return t(document).on(f.CLICK_DATA_API,i.DATA_TOGGLE,function(n){n.preventDefault();e._jQueryInterface.call(t(this),"show")}),t.fn.tab=e._jQueryInterface,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=o,e._jQueryInterface},e}();return function(){if("undefined"==typeof t)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var n=t.fn.jquery.split(" ")[0].split(".");if(n[0]<2&&n[1]<9||1===n[0]&&9===n[1]&&n[2]<1||n[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}(),n.Util=r,n.Alert=s,n.Button=h,n.Carousel=c,n.Collapse=l,n.Dropdown=a,n.Modal=v,n.Popover=y,n.Scrollspy=p,n.Tab=w,n.Tooltip=f,n}({},$,Popper);!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.hopscotch=t()}(this,function(){"use strict";var y,s,p,w,h,c,a,n,e,f,b,u,t,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},l="bubble_default",k=window.Sizzle||null,r="undefined",d=!1,g=("undefined"==typeof jQuery?"undefined":i(jQuery))!==r,o=!1,v=!1,nt=/^[a-zA-Z]+[a-zA-Z0-9_-]*$/,tt={left:"right",right:"left"};try{i(window.sessionStorage)!==r&&(o=!0,sessionStorage.setItem("hopscotch.test.storage","ok"),sessionStorage.removeItem("hopscotch.test.storage"),v=!0)}catch(it){}return u={smoothScroll:!0,scrollDuration:1e3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!1,showNextButton:!0,bubbleWidth:280,bubblePadding:15,arrowWidth:20,skipIfNoElement:!0,isRtl:!1,cookieName:"hopscotch.tour.state"},Array.isArray||(Array.isArray=function(n){return"[object Array]"===Object.prototype.toString.call(n)}),b=function(){d&&t.startTour()},n={addClass:function(n,t){var r,u,i,f;if(n.className){for(u=t.split(/\s+/),r=" "+n.className+" ",i=0,f=u.length;f>i;++i)r.indexOf(" "+u[i]+" ")<0&&(r+=u[i]+" ");n.className=r.replace(/^\s+|\s+$/g,"")}else n.className=t},removeClass:function(n,t){var i,u,r,f;for(u=t.split(/\s+/),i=" "+n.className+" ",r=0,f=u.length;f>r;++r)i=i.replace(" "+u[r]+" "," ");n.className=i.replace(/^\s+|\s+$/g,"")},hasClass:function(n,t){var i;return n.className?(i=" "+n.className+" ",-1!==i.indexOf(" "+t+" ")):!1},getPixelValue:function(n){var t="undefined"==typeof n?"undefined":i(n);return"number"===t?n:"string"===t?parseInt(n,10):0},valOrDefault:function(n,t){return("undefined"==typeof n?"undefined":i(n))!==r?n:t},invokeCallbackArrayHelper:function(n){var t;if(Array.isArray(n)&&(t=f[n[0]],"function"==typeof t))return t.apply(this,n.slice(1))},invokeCallbackArray:function(t){var i,r;if(Array.isArray(t)){if("string"==typeof t[0])return n.invokeCallbackArrayHelper(t);for(i=0,r=t.length;r>i;++i)n.invokeCallback(t[i])}},invokeCallback:function(t){return"function"==typeof t?t():"string"==typeof t&&f[t]?f[t]():n.invokeCallbackArray(t)},invokeEventCallbacks:function(n,t){var i,r,u=e[n];if(t)return this.invokeCallback(t);for(i=0,r=u.length;r>i;++i)this.invokeCallback(u[i].cb)},getScrollTop:function(){return i(window.pageYOffset)!==r?window.pageYOffset:document.documentElement.scrollTop},getScrollLeft:function(){return i(window.pageXOffset)!==r?window.pageXOffset:document.documentElement.scrollLeft},getWindowHeight:function(){return window.innerHeight||document.documentElement.clientHeight},addEvtListener:function(n,t,i){if(n)return n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent("on"+t,i)},removeEvtListener:function(n,t,i){if(n)return n.removeEventListener?n.removeEventListener(t,i,!1):n.detachEvent("on"+t,i)},documentIsReady:function(){return"complete"===document.readyState},evtPreventDefault:function(n){n.preventDefault?n.preventDefault():event&&(event.returnValue=!1)},extend:function(n,t){var i;for(i in t)t.hasOwnProperty(i)&&(n[i]=t[i])},getStepTargetHelper:function(n){var t=document.getElementById(n);if(t)return t;if(g)return t=jQuery(n),t.length?t[0]:null;if(k)return t=new k(n),t.length?t[0]:null;if(document.querySelector)try{return document.querySelector(n)}catch(i){}return/^#[a-zA-Z][\w-_:.]*$/.test(n)?document.getElementById(n.substring(1)):null},getStepTarget:function(t){var r,i,u;if(!t||!t.target)return null;if("string"==typeof t.target)return n.getStepTargetHelper(t.target);if(Array.isArray(t.target)){for(i=0,u=t.target.length;u>i;i++)if("string"==typeof t.target[i]&&(r=n.getStepTargetHelper(t.target[i])))return r;return null}return t.target},getI18NString:function(n){return h[n]||w[n]},setState:function(n,t,i){var r,u="";if(o&&v)try{sessionStorage.setItem(n,t)}catch(f){v=!1;this.setState(n,t,i)}else o&&sessionStorage.removeItem(n),i&&(r=new Date,r.setTime(r.getTime()+864e5*i),u="; expires="+r.toGMTString()),document.cookie=n+"="+t+u+"; path=/"},getState:function(n){var i,t,r,u=n+"=",f=document.cookie.split(";");if(o&&(r=sessionStorage.getItem(n)))return r;for(i=0;i<f.length;i++){for(t=f[i];" "===t.charAt(0);)t=t.substring(1,t.length);if(0===t.indexOf(u)){r=t.substring(u.length,t.length);break}}return r},clearState:function(n){o?sessionStorage.removeItem(n):this.setState(n,"",-1)},normalizePlacement:function(n){!n.placement&&n.orientation&&(n.placement=n.orientation)},flipPlacement:function(n){if(n.isRtl&&!n._isFlipped){var t,i,r=["orientation","placement"];n.xOffset&&(n.xOffset=-1*this.getPixelValue(n.xOffset));for(i in r)t=r[i],n.hasOwnProperty(t)&&tt.hasOwnProperty(n[t])&&(n[t]=tt[n[t]]);n._isFlipped=!0}}},n.addEvtListener(window,"load",b),e={next:[],prev:[],start:[],end:[],show:[],error:[],close:[]},f={},w={stepNums:null,nextBtn:"Next",prevBtn:"Back",doneBtn:"Done",skipBtn:"Skip",closeTooltip:"Close"},h={},s=function(n){this.init(n)},s.prototype={isShowing:!1,currStep:void 0,setPosition:function(t){var h,s,i,r,u,e,c,l=n.getStepTarget(t),o=this.element,f=this.arrowEl,a=t.isRtl?"right":"left";if(n.flipPlacement(t),n.normalizePlacement(t),s=o.offsetWidth,h=o.offsetHeight,n.removeClass(o,"fade-in-down fade-in-up fade-in-left fade-in-right"),i=l.getBoundingClientRect(),c=t.isRtl?i.right-s:i.left,"top"===t.placement)r=i.top-h-this.opt.arrowWidth,u=c;else if("bottom"===t.placement)r=i.bottom+this.opt.arrowWidth,u=c;else if("left"===t.placement)r=i.top,u=i.left-s-this.opt.arrowWidth;else{if("right"!==t.placement)throw new Error("Bubble placement failed because step.placement is invalid or undefined!");r=i.top;u=i.right+this.opt.arrowWidth}e="center"!==t.arrowOffset?n.getPixelValue(t.arrowOffset):t.arrowOffset;e?"top"===t.placement||"bottom"===t.placement?(f.style.top="",f.style[a]="center"===e?Math.floor(s/2-f.offsetWidth/2)+"px":e+"px"):("left"===t.placement||"right"===t.placement)&&(f.style[a]="",f.style.top="center"===e?Math.floor(h/2-f.offsetHeight/2)+"px":e+"px"):(f.style.top="",f.style[a]="");"center"===t.xOffset?u=i.left+l.offsetWidth/2-s/2:u+=n.getPixelValue(t.xOffset);"center"===t.yOffset?r=i.top+l.offsetHeight/2-h/2:r+=n.getPixelValue(t.yOffset);t.fixedElement||(r+=n.getScrollTop(),u+=n.getScrollLeft());o.style.position=t.fixedElement?"fixed":"absolute";o.style.top=r+"px";o.style.left=u+"px"},render:function(i,r,u){var e,v,y,f,h,k,d,p,a,s,o=this.element,w,b,g;if(i?this.currStep=i:this.currStep&&(i=this.currStep),this.opt.isTourBubble?(f=t.getCurrTour(),f&&(v=f.customData,e=f.customRenderer,i.isRtl=i.hasOwnProperty("isRtl")?i.isRtl:f.hasOwnProperty("isRtl")?f.isRtl:this.opt.isRtl,y=f.unsafe,Array.isArray(f.steps)&&(h=f.steps.length,k=this._getStepI18nNum(this._getStepNum(h-1)),p=this._getStepNum(r)===this._getStepNum(h-1)))):(v=i.customData,e=i.customRenderer,y=i.unsafe,i.isRtl=i.hasOwnProperty("isRtl")?i.isRtl:this.opt.isRtl),d=p?n.getI18NString("doneBtn"):i.showSkip?n.getI18NString("skipBtn"):n.getI18NString("nextBtn"),n.flipPlacement(i),n.normalizePlacement(i),this.placement=i.placement,s={i18n:{prevBtn:n.getI18NString("prevBtn"),nextBtn:d,closeTooltip:n.getI18NString("closeTooltip"),stepNum:this._getStepI18nNum(this._getStepNum(r)),numSteps:k},buttons:{showPrev:n.valOrDefault(i.showPrevButton,this.opt.showPrevButton)&&this._getStepNum(r)>0,showNext:n.valOrDefault(i.showNextButton,this.opt.showNextButton),showCTA:n.valOrDefault(i.showCTAButton&&i.ctaLabel,!1),ctaLabel:i.ctaLabel,showClose:n.valOrDefault(this.opt.showCloseButton,!0)},step:{num:r,isLast:n.valOrDefault(p,!1),title:i.title||"",content:i.content||"",isRtl:i.isRtl,placement:i.placement,padding:n.valOrDefault(i.padding,this.opt.bubblePadding),width:n.getPixelValue(i.width)||this.opt.bubbleWidth,customData:i.customData||{}},tour:{isTour:this.opt.isTourBubble,numSteps:h,unsafe:n.valOrDefault(y,!1),customData:v||{}}},"function"==typeof e)o.innerHTML=e(s);else if("string"==typeof e){if(!t.templates||"function"!=typeof t.templates[e])throw new Error('Bubble rendering failed - template "'+e+'" is not a function.');o.innerHTML=t.templates[e](s)}else if(c)o.innerHTML=c(s);else{if(!t.templates||"function"!=typeof t.templates[l])throw new Error('Bubble rendering failed - template "'+l+'" is not a function.');o.innerHTML=t.templates[l](s)}for(b=o.children,g=b.length,a=0;g>a;a++)w=b[a],n.hasClass(w,"hopscotch-arrow")&&(this.arrowEl=w);return o.style.zIndex="number"==typeof i.zindex?i.zindex:"",this._setArrow(i.placement),this.hide(!1),this.setPosition(i),u&&u(!i.fixedElement),this},_getStepNum:function(n){for(var r,u=0,f=t.getSkippedStepsIndexes(),e=f.length,i=0;e>i;i++)r=f[i],n>r&&u++;return n-u},_getStepI18nNum:function(t){var i=n.getI18NString("stepNums");return i&&t<i.length?t=i[t]:t+=1,t},_setArrow:function(t){n.removeClass(this.arrowEl,"down up right left");"top"===t?n.addClass(this.arrowEl,"down"):"bottom"===t?n.addClass(this.arrowEl,"up"):"left"===t?n.addClass(this.arrowEl,"right"):"right"===t&&n.addClass(this.arrowEl,"left")},_getArrowDirection:function(){return"top"===this.placement?"down":"bottom"===this.placement?"up":"left"===this.placement?"right":"right"===this.placement?"left":void 0},show:function(){var t=this,i="fade-in-"+this._getArrowDirection();return n.removeClass(this.element,"hide"),n.addClass(this.element,i),setTimeout(function(){n.removeClass(t.element,"invisible")},50),setTimeout(function(){n.removeClass(t.element,i)},1e3),this.isShowing=!0,this},hide:function(t){var i=this.element;return t=n.valOrDefault(t,!0),i.style.top="",i.style.left="",t?(n.addClass(i,"hide"),n.removeClass(i,"invisible")):(n.removeClass(i,"hide"),n.addClass(i,"invisible")),n.removeClass(i,"animate fade-in-up fade-in-down fade-in-right fade-in-left"),this.isShowing=!1,this},destroy:function(){var t=this.element;t&&t.parentNode.removeChild(t);n.removeEvtListener(t,"click",this.clickCb)},_handleBubbleClick:function(i){function u(t){return t===i.currentTarget?null:n.hasClass(t,"hopscotch-cta")?"cta":n.hasClass(t,"hopscotch-next")?"next":n.hasClass(t,"hopscotch-prev")?"prev":n.hasClass(t,"hopscotch-close")?"close":u(t.parentElement)}var r,f;if(i=i||window.event,f=i.target||i.srcElement,r=u(f),"cta"===r)this.opt.isTourBubble||t.getCalloutManager().removeCallout(this.currStep.id),this.currStep.onCTA&&n.invokeCallback(this.currStep.onCTA);else if("next"===r)t.nextStep(!0);else if("prev"===r)t.prevStep(!0);else if("close"===r){if(this.opt.isTourBubble){var e=t.getCurrStepNum(),o=t.getCurrTour(),s=e===o.steps.length-1;n.invokeEventCallbacks("close");t.endTour(!0,s)}else this.opt.onClose&&n.invokeCallback(this.opt.onClose),this.opt.id&&!this.opt.isTourBubble?t.getCalloutManager().removeCallout(this.opt.id):this.destroy();n.evtPreventDefault(i)}},init:function(f){var a,e,c,s,o=document.createElement("div"),h=this,l=!1;this.element=o;s={showPrevButton:u.showPrevButton,showNextButton:u.showNextButton,bubbleWidth:u.bubbleWidth,bubblePadding:u.bubblePadding,arrowWidth:u.arrowWidth,isRtl:u.isRtl,showNumber:!0,isTourBubble:!0};f=("undefined"==typeof f?"undefined":i(f))===r?{}:f;n.extend(s,f);this.opt=s;o.className="hopscotch-bubble animated";s.isTourBubble?(c=t.getCurrTour(),c&&n.addClass(o,"tour-"+c.id)):n.addClass(o,"hopscotch-callout no-number");a=function(){!l&&h.isShowing&&(l=!0,setTimeout(function(){h.setPosition(h.currStep);l=!1},100))};n.addEvtListener(window,"resize",a);this.clickCb=function(n){h._handleBubbleClick(n)};n.addEvtListener(o,"click",this.clickCb);this.hide();n.documentIsReady()?document.body.appendChild(o):(document.addEventListener?(e=function(){document.removeEventListener("DOMContentLoaded",e);window.removeEventListener("load",e);document.body.appendChild(o)},document.addEventListener("DOMContentLoaded",e,!1)):(e=function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",e),window.detachEvent("onload",e),document.body.appendChild(o))},document.attachEvent("onreadystatechange",e)),n.addEvtListener(window,"load",e))}},p=function(){var t={},i={};this.createCallout=function(r){var u;if(!r.id)throw new Error("Must specify a callout id.");if(!nt.test(r.id))throw new Error("Callout ID is using an invalid format. Use alphanumeric, underscores, and/or hyphens only. First character must be a letter.");if(t[r.id])throw new Error("Callout by that id already exists. Please choose a unique id.");if(!n.getStepTarget(r))throw new Error("Must specify existing target element via 'target' option.");return r.showNextButton=r.showPrevButton=!1,r.isTourBubble=!1,u=new s(r),t[r.id]=u,i[r.id]=r,u.render(r,null,function(){u.show();r.onShow&&n.invokeCallback(r.onShow)}),u};this.getCallout=function(n){return t[n]};this.removeAllCallouts=function(){var n;for(n in t)t.hasOwnProperty(n)&&this.removeCallout(n)};this.removeCallout=function(n){var r=t[n];t[n]=null;i[n]=null;r&&r.destroy()};this.refreshCalloutPositions=function(){var n,r,u;for(n in t)t.hasOwnProperty(n)&&i.hasOwnProperty(n)&&(r=t[n],u=i[n],r&&u&&r.setPosition(u))}},y=function(o){var k,ft,tt,w,v,ht,it,st,yt=this,ut={},et=[],rt=function(t){return k&&k.element&&k.element.parentNode||(k=new s(tt)),t&&n.extend(k.opt,{bubblePadding:y("bubblePadding"),bubbleWidth:y("bubbleWidth"),showNextButton:y("showNextButton"),showPrevButton:y("showPrevButton"),showCloseButton:y("showCloseButton"),arrowWidth:y("arrowWidth"),isRtl:y("isRtl")}),k},pt=function(){k&&(k.destroy(),k=null)},y=function(t){return"undefined"==typeof tt?u[t]:n.valOrDefault(tt[t],u[t])},b=function(){return!w||0>v||v>=w.steps.length?null:w.steps[v]},ot=function(){yt.nextStep()},wt=function(t){var c,s,l,e,a,v,tt=rt(),p=tt.element,h=n.getPixelValue(p.style.top),w=h+n.getPixelValue(p.offsetHeight),it=n.getStepTarget(b()),k=it.getBoundingClientRect(),d=k.top+n.getScrollTop(),nt=k.bottom+n.getScrollTop(),o=d>h?h:d,ut=w>nt?w:nt,f=n.getScrollTop(),ft=f+n.getWindowHeight(),u=o-y("scrollTopMargin");o>=f&&(o<=f+y("scrollTopMargin")||ft>=ut)?t&&t():y("smoothScroll")?("undefined"==typeof YAHOO?"undefined":i(YAHOO))!==r&&i(YAHOO.env)!==r&&i(YAHOO.env.ua)!==r&&i(YAHOO.util)!==r&&i(YAHOO.util.Scroll)!==r?(c=YAHOO.env.ua.webkit?document.body:document.documentElement,l=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:void 0,s=new YAHOO.util.Scroll(c,{scroll:{to:[0,u]}},y("scrollDuration")/1e3,l),s.onComplete.subscribe(t),s.animate()):g?jQuery("body, html").animate({scrollTop:u},y("scrollDuration"),t):(0>u&&(u=0),e=f>o?-1:1,a=Math.abs(f-u)/(y("scrollDuration")/10),(v=function(){var r=n.getScrollTop(),i=r+e*a;return e>0&&i>=u||0>e&&u>=i?(i=u,t&&t(),void window.scrollTo(0,i)):(window.scrollTo(0,i),n.getScrollTop()===r?void(t&&t()):void setTimeout(v,10))})()):(window.scrollTo(0,u),t&&t())},ct=function bt(t,i){var f,r,u;v+t>=0&&v+t<w.steps.length?(v+=t,r=b(),u=function(){f=n.getStepTarget(r);f?(ut[v]&&delete ut[v],i(v)):(ut[v]=!0,n.invokeEventCallbacks("error"),bt(t,i))},r.delay?setTimeout(u,r.delay):u()):i(-1)},lt=function(t,i){var r,u,f,e,o=rt(),s=this;if(o.hide(),t=n.valOrDefault(t,!0),r=b(),r.nextOnTargetClick&&n.removeEvtListener(n.getStepTarget(r),"click",ot),u=r,f=i>0?u.multipage:v>0&&w.steps[v-1].multipage,e=function(r){var e;if(-1===r)return this.endTour(!0);if(t&&(e=i>0?n.invokeEventCallbacks("next",u.onNext):n.invokeEventCallbacks("prev",u.onPrev)),r===v){if(f)return void vt();e=n.valOrDefault(e,!0);e?this.showStep(r):this.endTour(!1)}},!f&&y("skipIfNoElement"))ct(i,function(n){e.call(s,n)});else if(v+i>=0&&v+i<w.steps.length){if(v+=i,r=b(),!n.getStepTarget(r)&&!f)return n.invokeEventCallbacks("error"),this.endTour(!0,!1);e.call(this,v)}else if(v+i===w.steps.length)return this.endTour();return this},kt=function(t){var i,u,r,f={};for(i in t)t.hasOwnProperty(i)&&"id"!==i&&"steps"!==i&&(f[i]=t[i]);return st.call(this,f,!0),u=n.getState(y("cookieName")),u&&(r=u.split(":"),ht=r[0],it=r[1],r.length>2&&(et=r[2].split(",")),it=parseInt(it,10)),this},dt=function(t,i,r){var u,f;if(v=t||0,ut=i||{},u=b(),f=n.getStepTarget(u))return void r(v);if(!f){if(n.invokeEventCallbacks("error"),ut[v]=!0,y("skipIfNoElement"))return void ct(1,r);v=-1;r(v)}},at=function(t){function u(){r.show();n.invokeEventCallbacks("show",i.onShow)}var i=w.steps[t],r=rt(),f=n.getStepTarget(i);v!==t&&b().nextOnTargetClick&&n.removeEvtListener(n.getStepTarget(b()),"click",ot);v=t;r.hide(!1);r.render(i,t,function(t){t?wt(u):u();i.nextOnTargetClick&&n.addEvtListener(f,"click",ot)});vt()},vt=function(){var r=w.id+":"+v,i=t.getSkippedStepsIndexes();i&&i.length>0&&(r+=":"+i.join(","));n.setState(y("cookieName"),r,1)},gt=function(n){n&&this.configure(n)};this.getCalloutManager=function(){return("undefined"==typeof ft?"undefined":i(ft))===r&&(ft=new p),ft};this.startTour=function(t,u){var s,f,h={},e=this,o,c;if(!w){if(!t)throw new Error("Tour data is required for startTour.");if(!t.id||!nt.test(t.id))throw new Error("Tour ID is using an invalid format. Use alphanumeric, underscores, and/or hyphens only. First character must be a letter.");w=t;kt.call(this,t)}if(("undefined"==typeof u?"undefined":i(u))!==r){if(u>=w.steps.length)throw new Error("Specified step number out of bounds.");f=u}if(!n.documentIsReady())return d=!0,this;if("undefined"==typeof f&&w.id===ht&&("undefined"==typeof it?"undefined":i(it))!==r){if(f=it,et.length>0)for(o=0,c=et.length;c>o;o++)h[et[o]]=!0}else f||(f=0);return dt(f,h,function(t){var i=-1!==t&&n.getStepTarget(w.steps[t]);return i?(n.invokeEventCallbacks("start"),s=rt(),s.hide(!1),e.isActive=!0,void(n.getStepTarget(b())?e.showStep(t):(n.invokeEventCallbacks("error"),y("skipIfNoElement")&&e.nextStep(!1)))):void e.endTour(!1,!1)}),this};this.showStep=function(t){var i=w.steps[t],r=v;return n.getStepTarget(i)?(i.delay?setTimeout(function(){at(t)},i.delay):at(t),this):(v=t,n.invokeEventCallbacks("error"),void(v=r))};this.prevStep=function(n){return lt.call(this,n,-1),this};this.nextStep=function(n){return lt.call(this,n,1),this};this.endTour=function(t,i){var r,u=rt();return t=n.valOrDefault(t,!0),i=n.valOrDefault(i,!0),w&&(r=b(),r&&r.nextOnTargetClick&&n.removeEvtListener(n.getStepTarget(r),"click",ot)),v=0,it=void 0,u.hide(),t&&n.clearState(y("cookieName")),this.isActive&&(this.isActive=!1,w&&i&&n.invokeEventCallbacks("end")),this.removeCallbacks(null,!0),this.resetDefaultOptions(),pt(),w=null,this};this.getCurrTour=function(){return w};this.getCurrTarget=function(){return n.getStepTarget(b())};this.getCurrStepNum=function(){return v};this.getSkippedStepsIndexes=function(){var n,t=[];for(n in ut)t.push(n);return t};this.refreshBubblePosition=function(){var n=b();return n&&rt().setPosition(n),this.getCalloutManager().refreshCalloutPositions(),this};this.listen=function(n,t,i){return n&&e[n].push({cb:t,fromTour:i}),this};this.unlisten=function(n,t){for(var r=e[n],i=0,u=r.length;u>i;++i)r[i].cb===t&&r.splice(i,1);return this};this.removeCallbacks=function(n,t){var r,i,f,u;for(u in e)if(!n||n===u)if(t)for(r=e[u],i=0,f=r.length;f>i;++i)r[i].fromTour&&(r.splice(i--,1),--f);else e[u]=[];return this};this.registerHelper=function(n,t){"string"==typeof n&&"function"==typeof t&&(f[n]=t)};this.unregisterHelper=function(n){f[n]=null};this.invokeHelper=function(n){for(var r=[],t=1,i=arguments.length;i>t;++t)r.push(arguments[t]);f[n]&&f[n].call(null,r)};this.setCookieName=function(n){return tt.cookieName=n,this};this.resetDefaultOptions=function(){return tt={},this};this.resetDefaultI18N=function(){return h={},this};this.getState=function(){return n.getState(y("cookieName"))};st=function(t,i){var o,f,r,e,u=["next","prev","start","end","show","error","close"];for(tt||this.resetDefaultOptions(),n.extend(tt,t),t&&n.extend(h,t.i18n),r=0,e=u.length;e>r;++r)f="on"+u[r].charAt(0).toUpperCase()+u[r].substring(1),t[f]&&this.listen(u[r],t[f],i);return o=rt(!0),this};this.configure=function(n){return st.call(this,n,!1)};this.setRenderer=function(n){var t="undefined"==typeof n?"undefined":i(n);return"string"===t?(l=n,c=void 0):"function"===t&&(c=n),this};this.setEscaper=function(n){return"function"==typeof n&&(a=n),this};gt.call(this,o)},t=new y,function(){var n={};n.escape=function(n){return a?a(n):null==n?"":(""+n).replace(new RegExp("[&<>\"']","g"),function(n){return"&"==n?"&amp;":"<"==n?"&lt;":">"==n?"&gt;":'"'==n?"&quot;":"'"==n?"&#x27;":void 0})};this.templates=this.templates||{};this.templates.bubble_default=function(t){function s(t,i){return i?n.escape(t):t}var i,r="";n.escape;Array.prototype.join;r+="\n";var e=t.i18n,f=t.buttons,u=t.step,o=t.tour;return r+='\n<div class="hopscotch-bubble-container" style="width: '+(null==(i=u.width)?"":i)+"px; padding: "+(null==(i=u.padding)?"":i)+'px;">\n  ',o.isTour&&(r+='<span class="hopscotch-bubble-number">'+(null==(i=e.stepNum)?"":i)+"<\/span>"),r+='\n  <div class="hopscotch-bubble-content">\n    ',""!==u.title&&(r+='<h3 class="hopscotch-title">'+(null==(i=s(u.title,o.unsafe))?"":i)+"<\/h3>"),r+="\n    ",""!==u.content&&(r+='<div class="hopscotch-content">'+(null==(i=s(u.content,o.unsafe))?"":i)+"<\/div>"),r+='\n  <\/div>\n  <div class="hopscotch-actions">\n    ',f.showPrev&&(r+='<button class="hopscotch-nav-button prev hopscotch-prev">'+(null==(i=e.prevBtn)?"":i)+"<\/button>"),r+="\n    ",f.showCTA&&(r+='<button class="hopscotch-nav-button next hopscotch-cta">'+(null==(i=f.ctaLabel)?"":i)+"<\/button>"),r+="\n    ",f.showNext&&(r+='<button class="hopscotch-nav-button next hopscotch-next">'+(null==(i=e.nextBtn)?"":i)+"<\/button>"),r+="\n  <\/div>\n  ",f.showClose&&(r+='<button class="hopscotch-bubble-close hopscotch-close">'+(null==(i=e.closeTooltip)?"":i)+"<\/button>"),r+'\n<\/div>\n<div class="hopscotch-bubble-arrow-container hopscotch-arrow">\n  <div class="hopscotch-bubble-arrow-border"><\/div>\n  <div class="hopscotch-bubble-arrow"><\/div>\n<\/div>\n'}}.call(t),t});mobileSearchContainer=$(".search-bar");desktopSearchContainer=$(".desktop-search");$(document).ready(function(){$(".card-banner").click(function(n){n.preventDefault();window.location.href=$("a",this).attr("href")});$(".card-report").click(function(n){n.preventDefault();window.location.href=$("a",this).attr("href")});$(".black-box").height($(document).height());$(".black-box").click(function(){$(this).removeClass("on");$(".menu-sub").removeClass("active");$(".menu-toggle").removeClass("open")});$(".toggle-main").click(function(){$(this).find("span").toggleClass("fa-bars fa-times")});checkToMoveSearch();$(".toggle-sub").click(function(n){n.preventDefault();$(this).find("span").toggleClass("fa-plus fa-minus");$(this).siblings(".menu-sub").toggleClass("show")});$(".menu-toggle").click(function(n){$(window).width()>767&&n.preventDefault();let t=$(this).attr("data-tab");$("#"+t).hasClass("active")?($(".menu-sub").removeClass("active"),$(this).removeClass("open"),$(".black-box").removeClass("on")):($(".menu-sub").removeClass("active"),$("#"+t).addClass("active"),$(window).width()>767&&($(".menu-toggle").removeClass("open"),$(this).addClass("open"),$(".black-box").height($(document).height()),$(".black-box").removeClass("on"),$(".black-box").addClass("on")))});$(".menu-sub-2 .toggle-sub").click(function(){$(this).siblings("ul").toggleClass("show")});$(".close-sub a").click(function(n){n.preventDefault();$(this).parents(".menu-sub").removeClass("active");$(this).parents(".menu-sub").siblings(".menu-toggle").removeClass("open");$(".black-box").removeClass("on")});$(".search-btn").click(function(){$(".menu-sub.active").removeClass("active");$(".black-box").removeClass("on");$(".menu-toggle").removeClass("open");setTimeout(function(){$("input#quicksearchinput").focus()},400)});$(".toggle-search").click(function(){setTimeout(function(){$("input#quicksearchinput").focus()},400)});moveStatisticsButton();$("body").removeClass("js-disabled");$(".collapse").on("shown.bs.collapse",function(){$(this).parent().find(".fa-plus-circle").removeClass("fa-plus-circle").addClass("fa-minus-circle")}).on("hidden.bs.collapse",function(){$(this).parent().find(".fa-minus-circle").removeClass("fa-minus-circle").addClass("fa-plus-circle")});$("#downloaditemslist").on("click","#showmoredownload",function(){return $.get($(this).attr("href"),function(n){$("#downloaditemslist table tbody").append($("tbody",n).html());$("#downloaditemslist #moredownload").replaceWith($("#moredownload",n))}),!1});$("#statisticsitemslist").on("click","#showmorestatistics",function(){return $.get($(this).attr("href"),function(n){$("#statisticsitemslist ul").append($("ul",n).html());$("#statisticsitemslist #morestatistics").replaceWith($("#morestatistics",n))}),!1});$("div.overlay").addClass("overlay-js");$("div.overlay-js").on("click",function(){window.location=$(this).find("a:first").attr("href")});if($.cookies.get("trafacookiebar")===null?$("#cookie-bar").removeClass("cookie-hidden"):$("#cookie-bar").addClass("cookie-hidden"),$("#cookieBtn").click(function(){$("#cookie-bar").addClass("cookie-hidden");$.cookie("trafacookiebar","1",{expires:365,path:"/"})}),$(".grid").imagesLoaded(function(){$(".grid").masonry({itemSelector:".item",columnWidth:".item"})}),$(".no-hidden-js").removeClass("hidden"),$(".row.startpage-statistics .overlay").not(".preview").EqualizeElementHeights(),$("div.print-share.hidden").removeClass("hidden"),$(".btn-print").click(function(){window.print()}),$(".social-print").click(function(n){n.preventDefault();window.print()}),$(".btn-share").click(function(){addthis.init()}),$("body.statisticspage hr.replace-stat").replaceWith("<p>&nbsp;<\/p>"),$("h1.cal-page-heading + p").addClass("d-print-none"),$("#subscribe").length){var n=$("#subscribe").attr("data-timer"),t=$.cookies.get("trafasubscription");t==null&&setTimeout(function(){$("#subscribe").modal()},n*1e3);$(".btn-no-subscribe").click(function(){$.cookie("trafasubscription","1",{expires:1,path:"/"})});$("#mce-EMAIL-modal").on("input",function(){console.log("changes are made");$(this).val()&&$(".ConsentCheckbox").is(":checked")?$(".btn-subscribe").removeClass("disabled"):$(".btn-subscribe").addClass("disabled")});$(".ConsentCheckbox").click(function(){this.checked&&$("#mce-EMAIL-modal").val()?$(".btn-subscribe").removeClass("disabled"):$(".btn-subscribe").addClass("disabled")});$(".btn-subscribe").click(function(n){$(this).hasClass("disabled")&&n.preventDefault()});$("#mc-embedded-subscribe-form-modal").submit(function(n){n.preventDefault(n);var t=$(this).serialize(),i=$("#mce-EMAIL-modal").val();$.ajax({url:"/checkstatus",type:"POST",data:t,success:function(n){n=="True"?($("#mc_embed_signup_message").empty(),$("#mc_embed_signup_message").append("<p>Din e-postadress "+i+" finns redan i vår lista för nyhetsbrev<\/p>")):$.ajax({url:"/subscribe",type:"POST",data:t,success:function(){$("#mc-embedded-subscribe-form-modal").remove();$(".modal-body h4:first").text("Tack!");$(".modal-body p:first").html("Tusen tack för att du prenumererar på vårt nyhetsbrev. <br/>Din e-postadress "+i+" är lagrad i vår lista.");$.cookie("trafasubscription","1",{expires:1,path:"/"})},error:function(){$("#mc-embedded-subscribe-form-modal").remove();$(".modal-body h4:first").text("Något gick fel");$(".modal-body p:first").text("Tyvärr gick något fel med att lägga till din e-postadress. Ladda om sidan och försök igen eller kontakta trafikanalys@trafa.se, så hjälper vi dig.")}})},error:function(){$.ajax({url:"/subscribe",type:"POST",data:t,success:function(){$("#mc-embedded-subscribe-form-modal").remove();$(".modal-body h4:first").text("Tack!");$(".modal-body p:first").html("Tusen tack för att du prenumererar på vårt nyhetsbrev. <br/>Din e-postadress "+i+" är lagrad i vår lista.");$.cookie("trafasubscription","1",{expires:1,path:"/"})},error:function(){$("#mc-embedded-subscribe-form-modal").remove();$(".modal-body h4:first").text("Något gick fel");$(".modal-body p:first").text("Tyvärr gick något fel med att lägga till din e-postadress. Ladda om sidan och försök igen eller kontakta trafikanalys@trafa.se, så hjälper vi dig.")}})}})})}});$(window).on("load",function(){$(".row .card-statistics-keyfigure-result").not(".exclude .card-statistics-keyfigure-result").not(".preview").EqualizeElementHeights();$(".row .card-banner").not(".preview").EqualizeElementHeights()});$(window).resize(function(){checkToMoveSearch();moveStatisticsButton()});$(".menu-toggle").click(function(){$(".desktop-search.show").removeClass("show")});$.fn.EqualizeElementHeights=function(){var r=0,u=0,n=[],t;$(this).css({"min-height":"",height:""});$(this).sort(function(n,t){return $(n).offset().top<$(t).offset().top?-1:1}).each(function(){if(t=$(this),topPostion=t.offset().top,u!==topPostion){for(i=0;i<n.length&&n.length>1;i++)n[i].height(r);n.length=0;u=topPostion;r=t.height();n.push(t)}else n.push(t),r=r<t.height()?t.height():r;for(i=0;i<n.length&&n.length>1;i++)n[i].height(r)})},function(n){var t=[],r,i;n(document).ajaxSend(function(n,i){t.push(i)});n(document).ajaxComplete(function(i,r){t=n.grep(t,function(n){return n!=r})});r=function(){n.each(t,function(n,t){t.abort()})};i=window.onbeforeunload;window.onbeforeunload=function(){var n=i?i():undefined;return n==undefined&&r(),n}}(jQuery);"use strict";$(document).on("click",".dropdown-menu a[data-value]",function(n){var r=$(this).attr("data-value"),u=$(this).attr("data-value-type"),t,i;if(n.preventDefault(),!r||u=="H")return!1;t=$(this).closest(".dropdown");i=$(this).attr("data-value");$("button>div",t).text($(this).text());t.data("value",i);t.trigger("changed",[i])});!function(n){function i(){}function t(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(i,u){n.fn[i]=function(f){var h,e,s;if("string"==typeof f){for(var c=r.call(arguments,1),o=0,l=this.length;l>o;o++)if(h=this[o],e=n.data(h,i),e)if(n.isFunction(e[f])&&"_"!==f.charAt(0)){if(s=e[f].apply(e,c),void 0!==s)return s}else t("no such method '"+f+"' for "+i+" instance");else t("cannot call methods on "+i+" prior to initialization; attempted to call '"+f+"'");return this}return this.each(function(){var t=n.data(this,i);t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,i,t))})}}if(n){var t="undefined"==typeof console?i:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var r=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],t):t("object"==typeof exports?require("jquery"):n.jQuery)}(window),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,u=function(){},i,r;t.addEventListener?u=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(u=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});r={bind:u,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:n.eventie=r}(window),function(){function t(){}function u(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,r=this,f=r.EventEmitter;n.getListeners=function(n){var r,t,i=this._getEvents();if(n instanceof RegExp){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;t<n.length;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,r=this.getListenersAsObject(n),f="object"==typeof t;for(i in r)r.hasOwnProperty(i)&&-1===u(r[i],t)&&r[i].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;t<n.length;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,r=this.getListenersAsObject(n);for(i in r)r.hasOwnProperty(i)&&(f=u(r[i],t),-1!==f&&r[i].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if(n instanceof RegExp)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return r.EventEmitter=f,t};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:r.EventEmitter=t}.call(this),function(n){function t(n){if(n){if("string"==typeof r[n])return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var t,u=0,f=i.length;f>u;u++)if(t=i[u]+n,"string"==typeof r[t])return t}}var i="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):"object"==typeof exports?module.exports=t:n.getStyleProperty=t}(window),function(n){function i(n){var t=parseFloat(n),i=-1===n.indexOf("%")&&!isNaN(t);return i&&t}function u(){}function f(){for(var r,i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0,u=t.length;u>n;n++)r=t[n],i[r]=0;return i}function r(r){function c(){var f,t,c,l;h||(h=!0,f=n.getComputedStyle,(o=function(){var n=f?function(n){return f(n,null)}:function(n){return n.currentStyle};return function(t){var i=n(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),u=r("boxSizing"))&&(t=document.createElement("div"),t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[u]="border-box",c=document.body||document.documentElement,c.appendChild(t),l=o(t),s=200===i(l.width),c.removeChild(t)))}function l(n){var e,r,v,h,y,p;if(c(),"string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){if(e=o(n),"none"===e.display)return f();r={};r.width=n.offsetWidth;r.height=n.offsetHeight;for(var tt=r.isBorderBox=!(!u||!e[u]||"border-box"!==e[u]),l=0,it=t.length;it>l;l++)v=t[l],h=e[v],h=a(n,h),y=parseFloat(h),r[v]=isNaN(y)?0:y;var w=r.paddingLeft+r.paddingRight,b=r.paddingTop+r.paddingBottom,rt=r.marginLeft+r.marginRight,ut=r.marginTop+r.marginBottom,k=r.borderLeftWidth+r.borderRightWidth,d=r.borderTopWidth+r.borderBottomWidth,g=tt&&s,nt=i(e.width);return nt!==!1&&(r.width=nt+(g?0:w+k)),p=i(e.height),p!==!1&&(r.height=p+(g?0:b+d)),r.innerWidth=r.width-(w+k),r.innerHeight=r.height-(b+d),r.outerWidth=r.width+rt,r.outerHeight=r.height+ut,r}}function a(t,i){if(n.getComputedStyle||-1===i.indexOf("%"))return i;var r=t.style,e=r.left,u=t.runtimeStyle,f=u&&u.left;return f&&(u.left=t.currentStyle.left),r.left=i,i=r.pixelLeft,r.left=e,f&&(u.left=f),i}var o,u,s,h=!1;return l}var e="undefined"==typeof console?u:function(n){console.error(n)},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],r):"object"==typeof exports?module.exports=r(require("desandro-get-style-property")):n.getSize=r(n.getStyleProperty)}(window),function(n){function t(n){"function"==typeof n&&(t.isReady?n():f.push(n))}function r(n){var r="readystatechange"===n.type&&"complete"!==i.readyState;t.isReady||r||e()}function e(){var n,i,r;for(t.isReady=!0,n=0,i=f.length;i>n;n++)r=f[n],r()}function u(u){return"complete"===i.readyState?e():(u.bind(i,"DOMContentLoaded",r),u.bind(i,"readystatechange",r),u.bind(n,"load",r)),t}var i=n.document,f=[];t.isReady=!1;"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],u):"object"==typeof exports?module.exports=u(require("eventie")):n.docReady=u(n.eventie)}(window),function(n){function i(n,t){return n[u](t)}function r(n){if(!n.parentNode){var t=document.createDocumentFragment();t.appendChild(n)}}function o(n,t){r(n);for(var u=n.parentNode.querySelectorAll(t),i=0,f=u.length;f>i;i++)if(u[i]===n)return!0;return!1}function s(n,t){return r(n),i(n,t)}var t,u=function(){var u,i;if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(var r=["webkit","moz","ms","o"],t=0,f=r.length;f>t;t++)if(u=r[t],i=u+"MatchesSelector",n[i])return i}(),f,e;u?(f=document.createElement("div"),e=i(f,"div"),t=e?i:s):t=o;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):"object"==typeof exports?module.exports=t:window.matchesSelector=t}(Element.prototype),function(n,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(i,r){return t(n,i,r)}):"object"==typeof exports?module.exports=t(n,require("doc-ready"),require("desandro-matches-selector")):n.fizzyUIUtils=t(n,n.docReady,n.matchesSelector)}(window,function(n,t,i){var r={},f,u;return r.extend=function(n,t){for(var i in t)n[i]=t[i];return n},r.modulo=function(n,t){return(n%t+t)%t},f=Object.prototype.toString,r.isArray=function(n){return"[object Array]"==f.call(n)},r.makeArray=function(n){var t=[],i,u;if(r.isArray(n))t=n;else if(n&&"number"==typeof n.length)for(i=0,u=n.length;u>i;i++)t.push(n[i]);else t.push(n);return t},r.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},r.removeFrom=function(n,t){var i=r.indexOf(n,t);-1!=i&&n.splice(i,1)},r.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(n){return n instanceof HTMLElement}:function(n){return n&&"object"==typeof n&&1==n.nodeType&&"string"==typeof n.nodeName},r.setText=function(){function t(t,i){n=n||(void 0!==document.documentElement.textContent?"textContent":"innerText");t[n]=i}var n;return t}(),r.getParent=function(n,t){for(;n!=document.body;)if(n=n.parentNode,i(n,t))return n},r.getQueryElement=function(n){return"string"==typeof n?document.querySelector(n):n},r.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},r.filterFindElements=function(n,t){var u;n=r.makeArray(n);for(var f=[],e=0,h=n.length;h>e;e++)if(u=n[e],r.isElement(u))if(t){i(u,t)&&f.push(u);for(var s=u.querySelectorAll(t),o=0,c=s.length;c>o;o++)f.push(s[o])}else f.push(u);return f},r.debounceMethod=function(n,t,i){var u=n.prototype[t],r=t+"Timeout";n.prototype[t]=function(){var t=this[r],f,n;t&&clearTimeout(t);f=arguments;n=this;this[r]=setTimeout(function(){u.apply(n,f);delete n[r]},i||100)}},r.toDashed=function(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()},u=n.console,r.htmlInit=function(i,f){t(function(){for(var a,t,o,v,s,h=r.toDashed(f),c=document.querySelectorAll(".js-"+h),l="data-"+h+"-options",e=0,y=c.length;y>e;e++){t=c[e];o=t.getAttribute(l);try{a=o&&JSON.parse(o)}catch(p){u&&u.error("Error parsing "+l+" on "+t.nodeName.toLowerCase()+(t.id?"#"+t.id:"")+": "+p);continue}v=new i(t,a);s=n.jQuery;s&&s.data(t,f,v)}})},r}),function(n,t){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(i,r,u,f){return t(n,i,r,u,f)}):"object"==typeof exports?module.exports=t(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=t(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))}(window,function(n,t,i,r,u){function p(n){for(var t in n)return!1;return t=null,!0}function f(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}var s=n.getComputedStyle,w=s?function(n){return s(n,null)}:function(n){return n.currentStyle},e=r("transition"),o=r("transform"),b=e&&o,k=!!r("perspective"),h={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[e],c=["transform","transition","transitionDuration","transitionProperty"],d=function(){for(var n,t,u={},i=0,f=c.length;f>i;i++)n=c[i],t=r(n),t&&t!==n&&(u[n]=t);return u}(),l,a,v,y;return u.extend(f.prototype,t.prototype),f.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},f.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},f.prototype.getSize=function(){this.size=i(this.element)},f.prototype.css=function(n){var r=this.element.style,t,i;for(t in n)i=d[t]||t,r[i]=n[t]},f.prototype.getPosition=function(){var r=w(this.element),u=this.layout.options,f=u.isOriginLeft,e=u.isOriginTop,n=parseInt(r[f?"left":"right"],10),t=parseInt(r[e?"top":"bottom"],10),i;n=isNaN(n)?0:n;t=isNaN(t)?0:t;i=this.layout.size;n-=f?i.paddingLeft:i.paddingRight;t-=e?i.paddingTop:i.paddingBottom;this.position.x=n;this.position.y=t},f.prototype.layoutPosition=function(){var i=this.layout.size,n=this.layout.options,t={},f=n.isOriginLeft?"paddingLeft":"paddingRight",e=n.isOriginLeft?"left":"right",o=n.isOriginLeft?"right":"left",r=this.position.x+i[f];r=n.percentPosition&&!n.isHorizontal?r/i.width*100+"%":r+"px";t[e]=r;t[o]="";var s=n.isOriginTop?"paddingTop":"paddingBottom",h=n.isOriginTop?"top":"bottom",c=n.isOriginTop?"bottom":"top",u=this.position.y+i[s];u=n.percentPosition&&n.isHorizontal?u/i.height*100+"%":u+"px";t[h]=u;t[c]="";this.css(t);this.emitEvent("layout",[this])},l=k?function(n,t){return"translate3d("+n+"px, "+t+"px, 0)"}:function(n,t){return"translate("+n+"px, "+t+"px)"},f.prototype._transitionTo=function(n,t){this.getPosition();var e=this.position.x,o=this.position.y,s=parseInt(n,10),h=parseInt(t,10),c=s===this.position.x&&h===this.position.y;if(this.setPosition(n,t),c&&!this.isTransitioning)return void this.layoutPosition();var i=n-e,r=t-o,u={},f=this.layout.options;i=f.isOriginLeft?i:-i;r=f.isOriginTop?r:-r;u.transform=l(i,r);this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},f.prototype.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},f.prototype.moveTo=b?f.prototype._transitionTo:f.prototype.goTo,f.prototype.setPosition=function(n,t){this.position.x=parseInt(n,10);this.position.y=parseInt(t,10)},f.prototype._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},f.prototype._transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(n);i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},a=o&&u.toDashed(o)+",opacity",f.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:a,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(h,this,!1))},f.prototype.transition=f.prototype[e?"_transition":"_nonTransition"],f.prototype.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},f.prototype.onotransitionend=function(n){this.ontransitionend(n)},v={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"},f.prototype.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=v[n.propertyName]||n.propertyName,(delete t.ingProperties[i],p(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd)&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},f.prototype.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(h,this,!1);this.isTransitioning=!1},f.prototype._removeStyles=function(n){var t={},i;for(i in n)t[i]="";this.css(t)},y={transitionProperty:"",transitionDuration:""},f.prototype.removeTransitionStyles=function(){this.css(y)},f.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])},f.prototype.remove=function(){if(!e||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var n=this;this.once("transitionEnd",function(){n.removeElem()});this.hide()},f.prototype.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("visibleStyle");t[i]=this.onRevealTransitionEnd;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.prototype.getHideRevealTransitionEndProperty=function(n){var t=this.layout.options[n],i;if(t.opacity)return"opacity";for(i in t)return i},f.prototype.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");t[i]=this.onHideTransitionEnd;this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},f}),function(n,t){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,r,u,f,e){return t(n,i,r,u,f,e)}):"object"==typeof exports?module.exports=t(n,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=t(n,n.eventie,n.EventEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)}(window,function(n,t,i,r,u,f){function e(n,t){var i=u.getQueryElement(n),r;if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||n)));this.element=i;o&&(this.$element=o(this.element));this.options=u.extend({},this.constructor.defaults);this.option(t);r=++l;this.element.outlayerGUID=r;s[r]=this;this._create();this.options.isInitLayout&&this.layout()}var h=n.console,o=n.jQuery,c=function(){},l=0,s={};return e.namespace="outlayer",e.Item=f,e.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},u.extend(e.prototype,i.prototype),e.prototype.option=function(n){u.extend(this.options,n)},e.prototype._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);u.extend(this.element.style,this.options.containerStyle);this.options.isResizeBound&&this.bindResize()},e.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},e.prototype._itemize=function(n){for(var u,f,i=this._filterFindItemElements(n),e=this.constructor.Item,r=[],t=0,o=i.length;o>t;t++)u=i[t],f=new e(u,this),r.push(f);return r},e.prototype._filterFindItemElements=function(n){return u.filterFindElements(n,this.options.itemSelector)},e.prototype.getItemElements=function(){for(var t=[],n=0,i=this.items.length;i>n;n++)t.push(this.items[n].element);return t},e.prototype.layout=function(){this._resetLayout();this._manageStamps();var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,n);this._isLayoutInited=!0},e.prototype._init=e.prototype.layout,e.prototype._resetLayout=function(){this.getSize()},e.prototype.getSize=function(){this.size=r(this.element)},e.prototype._getMeasurement=function(n,t){var f,i=this.options[n];i?("string"==typeof i?f=this.element.querySelector(i):u.isElement(i)&&(f=i),this[n]=f?r(f)[t]:i):this[n]=0},e.prototype.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},e.prototype._getItemsForLayout=function(n){for(var i,r=[],t=0,u=n.length;u>t;t++)i=n[t],i.isIgnored||r.push(i);return r},e.prototype._layoutItems=function(n,t){var i,r;if(this._emitCompleteOnItems("layout",n),n&&n.length){for(var f=[],u=0,e=n.length;e>u;u++)i=n[u],r=this._getItemLayoutPosition(i),r.item=i,r.isInstant=t||i.isLayoutInstant,f.push(r);this._processLayoutQueue(f)}},e.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},e.prototype._processLayoutQueue=function(n){for(var t,i=0,r=n.length;r>i;i++)t=n[i],this._positionItem(t.item,t.x,t.y,t.isInstant)},e.prototype._positionItem=function(n,t,i,r){r?n.goTo(t,i):n.moveTo(t,i)},e.prototype._postLayout=function(){this.resizeContainer()},e.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var n=this._getContainerSize();n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1))}},e.prototype._getContainerSize=c,e.prototype._setContainerMeasure=function(n,t){if(void 0!==n){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},e.prototype._emitCompleteOnItems=function(n,t){function r(){s.emitEvent(n+"Complete",[t])}function o(){f++;f===u&&r()}var s=this,u=t.length,e;if(!t||!u)return void r();for(var f=0,i=0,h=t.length;h>i;i++){e=t[i];e.once(n,o)}},e.prototype.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},e.prototype.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},e.prototype.stamp=function(n){var t,i,r;if(n=this._find(n))for(this.stamps=this.stamps.concat(n),t=0,i=n.length;i>t;t++)r=n[t],this.ignore(r)},e.prototype.unstamp=function(n){var t,r,i;if(n=this._find(n))for(t=0,r=n.length;r>t;t++)i=n[t],u.removeFrom(this.stamps,i),this.unignore(i)},e.prototype._find=function(n){if(n)return("string"==typeof n&&(n=this.element.querySelectorAll(n)),n=u.makeArray(n))},e.prototype._manageStamps=function(){var n,t,i;if(this.stamps&&this.stamps.length)for(this._getBoundingRect(),n=0,t=this.stamps.length;t>n;n++)i=this.stamps[n],this._manageStamp(i)},e.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},e.prototype._manageStamp=c,e.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=this._boundingRect,u=r(n);return{left:t.left-i.left-u.marginLeft,top:t.top-i.top-u.marginTop,right:i.right-t.right-u.marginRight,bottom:i.bottom-t.bottom-u.marginBottom}},e.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},e.prototype.bindResize=function(){this.isResizeBound||(t.bind(n,"resize",this),this.isResizeBound=!0)},e.prototype.unbindResize=function(){this.isResizeBound&&t.unbind(n,"resize",this);this.isResizeBound=!1},e.prototype.onresize=function(){function t(){n.resize();delete n.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var n=this;this.resizeTimeout=setTimeout(t,100)},e.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},e.prototype.needsResizeLayout=function(){var n=r(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},e.prototype.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},e.prototype.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},e.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},e.prototype.reveal=function(n){var i,t,r;for(this._emitCompleteOnItems("reveal",n),i=n&&n.length,t=0;i&&i>t;t++)r=n[t],r.reveal()},e.prototype.hide=function(n){var i,t,r;for(this._emitCompleteOnItems("hide",n),i=n&&n.length,t=0;i&&i>t;t++)r=n[t],r.hide()},e.prototype.revealItemElements=function(n){var t=this.getItems(n);this.reveal(t)},e.prototype.hideItemElements=function(n){var t=this.getItems(n);this.hide(t)},e.prototype.getItem=function(n){for(var i,t=0,r=this.items.length;r>t;t++)if(i=this.items[t],i.element===n)return i},e.prototype.getItems=function(n){var f,i;n=u.makeArray(n);for(var r=[],t=0,e=n.length;e>t;t++)f=n[t],i=this.getItem(f),i&&r.push(i);return r},e.prototype.remove=function(n){var t=this.getItems(n),i,f,r;if(this._emitCompleteOnItems("remove",t),t&&t.length)for(i=0,f=t.length;f>i;i++)r=t[i],r.remove(),u.removeFrom(this.items,r)},e.prototype.destroy=function(){var t=this.element.style,n,i,r,u;for(t.height="",t.position="",t.width="",n=0,i=this.items.length;i>n;n++)r=this.items[n],r.destroy();this.unbindResize();u=this.element.outlayerGUID;delete s[u];delete this.element.outlayerGUID;o&&o.removeData(this.element,this.constructor.namespace)},e.data=function(n){n=u.getQueryElement(n);var t=n&&n.outlayerGUID;return t&&s[t]},e.create=function(n,t){function i(){e.apply(this,arguments)}return Object.create?i.prototype=Object.create(e.prototype):u.extend(i.prototype,e.prototype),i.prototype.constructor=i,i.defaults=u.extend({},e.defaults),u.extend(i.defaults,t),i.prototype.settings={},i.namespace=n,i.data=e.data,i.Item=function(){f.apply(this,arguments)},i.Item.prototype=new f,u.htmlInit(i,n),o&&o.bridget&&o.bridget(n,i),i},e.Item=f,e}),function(n,t){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],t):"object"==typeof exports?module.exports=t(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):n.Masonry=t(n.Outlayer,n.getSize,n.fizzyUIUtils)}(window,function(n,t,i){var r=n.create("masonry");return r.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();var n=this.cols;for(this.colYs=[];n--;)this.colYs.push(0);this.maxY=0},r.prototype.measureColumns=function(){var n,i;(this.getContainerWidth(),this.columnWidth)||(n=this.items[0],i=n&&n.element,this.columnWidth=i&&t(i).outerWidth||this.containerWidth);var r=this.columnWidth+=this.gutter,f=this.containerWidth+this.gutter,u=f/r,e=r-f%r,o=e&&1>e?"round":"floor";u=Math[o](u);this.cols=Math.max(u,1)},r.prototype.getContainerWidth=function(){var i=this.options.isFitWidth?this.element.parentNode:this.element,n=t(i);this.containerWidth=n&&n.innerWidth},r.prototype._getItemLayoutPosition=function(n){n.getSize();var e=n.size.outerWidth%this.columnWidth,s=e&&1>e?"round":"ceil",t=Math[s](n.size.outerWidth/this.columnWidth);t=Math.min(t,this.cols);for(var r=this._getColGroup(t),u=Math.min.apply(Math,r),o=i.indexOf(r,u),h={x:this.columnWidth*o,y:u},c=u+n.size.outerHeight,l=this.cols+1-r.length,f=0;l>f;f++)this.colYs[o+f]=c;return h},r.prototype._getColGroup=function(n){var r;if(2>n)return this.colYs;for(var i=[],u=this.cols+1-n,t=0;u>t;t++)r=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,r);return i},r.prototype._manageStamp=function(n){var e=t(n),u=this._getElementOffset(n),o=this.options.isOriginLeft?u.left:u.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i,h,r;for(f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i),h=(this.options.isOriginTop?u.top:u.bottom)+e.outerHeight,r=f;i>=r;r++)this.colYs[r]=Math.max(h,this.colYs[r])},r.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this.options.isFitWidth&&(n.width=this._getContainerFitWidth()),n},r.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t&&0===this.colYs[t];)n++;return(this.cols-n)*this.columnWidth-this.gutter},r.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!==this.containerWidth},r}),function(){function t(){}function r(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,u=this,f=u.EventEmitter;n.getListeners=function(n){var r,t,i=this._getEvents();if("object"==typeof n){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;n.length>t;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,u=this.getListenersAsObject(n),f="object"==typeof t;for(i in u)u.hasOwnProperty(i)&&-1===r(u[i],t)&&u[i].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;n.length>t;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,u=this.getListenersAsObject(n);for(i in u)u.hasOwnProperty(i)&&(f=r(u[i],t),-1!==f&&u[i].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if("object"===r)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return u.EventEmitter=f,t};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,r=function(){},i,u;t.addEventListener?r=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(r=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});u={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",u):n.eventie=u}(this),function(n,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(i,r){return t(n,i,r)}):"object"==typeof exports?module.exports=t(n,require("wolfy87-eventemitter"),require("eventie")):n.imagesLoaded=t(n,n.EventEmitter,n.eventie)}(window,function(n,t,i){function s(n,t){for(var i in t)n[i]=t[i];return n}function c(n){return"[object Array]"===v.call(n)}function l(n){var t=[],i,r;if(c(n))t=n;else if("number"==typeof n.length)for(i=0,r=n.length;r>i;i++)t.push(n[i]);else t.push(n);return t}function r(n,t,i){if(!(this instanceof r))return new r(n,t);"string"==typeof n&&(n=document.querySelectorAll(n));this.elements=l(n);this.options=s({},this.options);"function"==typeof t?i=t:s(this.options,t);i&&this.on("always",i);this.getImages();f&&(this.jqDeferred=new f.Deferred);var u=this;setTimeout(function(){u.check()})}function e(n){this.img=n}function u(n){this.src=n;o[n]=this}var f=n.jQuery,h=n.console,a=h!==void 0,v=Object.prototype.toString,o;return r.prototype=new t,r.prototype.options={},r.prototype.getImages=function(){var i,u,n,t,e;for(this.images=[],i=0,u=this.elements.length;u>i;i++)if(n=this.elements[i],"IMG"===n.nodeName&&this.addImage(n),t=n.nodeType,t&&(1===t||9===t||11===t))for(var f=n.querySelectorAll("img"),r=0,o=f.length;o>r;r++)e=f[r],this.addImage(e)},r.prototype.addImage=function(n){var t=new e(n);this.images.push(t)},r.prototype.check=function(){function f(n,r){return t.options.debug&&a&&h.log("confirm",n,r),t.progress(n),u++,u===i&&t.complete(),!0}var t=this,u=0,i=this.images.length,n,r;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(n=0;i>n;n++)r=this.images[n],r.on("confirm",f),r.check()},r.prototype.progress=function(n){this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,n);t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,n)})},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;this.isComplete=!0;n=this;setTimeout(function(){if(n.emit(t,n),n.emit("always",n),n.jqDeferred){var i=n.hasAnyBroken?"reject":"resolve";n.jqDeferred[i](n)}})},f&&(f.fn.imagesLoaded=function(n,t){var i=new r(this,n,t);return i.jqDeferred.promise(f(this))}),e.prototype=new t,e.prototype.check=function(){var n=o[this.img.src]||new u(this.img.src),t;if(n.isConfirmed)return this.confirm(n.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;t=this;n.on("confirm",function(n,i){return t.confirm(n.isLoaded,i),!0});n.check()},e.prototype.confirm=function(n,t){this.isLoaded=n;this.emit("confirm",this,t)},o={},u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var n=new Image;i.bind(n,"load",this);i.bind(n,"error",this);n.src=this.src;this.isChecked=!0}},u.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},u.prototype.onload=function(n){this.confirm(!0,"onload");this.unbindProxyEvents(n)},u.prototype.onerror=function(n){this.confirm(!1,"onerror");this.unbindProxyEvents(n)},u.prototype.confirm=function(n,t){this.isConfirmed=!0;this.isLoaded=n;this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(n){i.unbind(n.target,"load",this);i.unbind(n.target,"error",this)},r});jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};jaaulde.utils.cookies=function(){var i,u,r,n,t={expiresAt:null,path:"/",domain:null,secure:!1};return i=function(n){var i,r;return typeof n!="object"||n===null?i=t:(i={expiresAt:t.expiresAt,path:t.path,domain:t.domain,secure:t.secure},typeof n.expiresAt=="object"&&n.expiresAt instanceof Date?i.expiresAt=n.expiresAt:typeof n.hoursToLive=="number"&&n.hoursToLive!==0&&(r=new Date,r.setTime(r.getTime()+n.hoursToLive*36e5),i.expiresAt=r),typeof n.path=="string"&&n.path!==""&&(i.path=n.path),typeof n.domain=="string"&&n.domain!==""&&(i.domain=n.domain),n.secure===!0&&(i.secure=n.secure)),i},u=function(n){return n=i(n),(typeof n.expiresAt=="object"&&n.expiresAt instanceof Date?"; expires="+n.expiresAt.toGMTString():"")+"; path="+n.path+(typeof n.domain=="string"?"; domain="+n.domain:"")+(n.secure===!0?"; secure":"")},r=function(){for(var r={},i,u,n,f=document.cookie.split(";"),e,t=0;t<f.length;t=t+1){i=f[t].split("=");u=i[0].replace(/^\s*/,"").replace(/\s*$/,"");try{n=decodeURIComponent(i[1])}catch(o){n=i[1]}if(typeof JSON=="object"&&JSON!==null&&typeof JSON.parse=="function")try{e=n;n=JSON.parse(n)}catch(s){n=e}r[u]=n}return r},n=function(){},n.prototype.get=function(n){var t,u,i=r();if(typeof n=="string")t=typeof i[n]!="undefined"?i[n]:null;else if(typeof n=="object"&&n!==null){t={};for(u in n)t[n[u]]=typeof i[n[u]]!="undefined"?i[n[u]]:null}else t=i;return t},n.prototype.filter=function(n){var t,i={},u=r();typeof n=="string"&&(n=new RegExp(n));for(t in u)t.match(n)&&(i[t]=u[t]);return i},n.prototype.set=function(n,t,i){if((typeof i!="object"||i===null)&&(i={}),typeof t=="undefined"||t===null)t="",i.hoursToLive=-8760;else if(typeof t!="string")if(typeof JSON=="object"&&JSON!==null&&typeof JSON.stringify=="function")t=JSON.stringify(t);else throw new Error("cookies.set() received non-string value and could not serialize.");var r=u(i);document.cookie=n+"="+encodeURIComponent(t)+r},n.prototype.del=function(n,t){var r={},i;(typeof t!="object"||t===null)&&(t={});typeof n=="boolean"&&n===!0?r=this.get():typeof n=="string"&&(r[n]=!0);for(i in r)typeof i=="string"&&i!==""&&this.set(i,null,t)},n.prototype.test=function(){var t=!1,n="cT",i="data";return this.set(n,i),this.get(n)===i&&(this.del(n),t=!0),t},n.prototype.setOptions=function(n){typeof n!="object"&&(n=null);t=i(n)},new n}(),function(){window.jQuery&&function(n){n.cookies=jaaulde.utils.cookies;var t={cookify:function(t){return this.each(function(){var f,e=["name","id"],u,i=n(this),r;for(f in e)if(!isNaN(f)&&(u=i.attr(e[f]),typeof u=="string"&&u!=="")){i.is(":checkbox, :radio")?i.attr("checked")&&(r=i.val()):r=i.is(":input")?i.val():i.html();(typeof r!="string"||r==="")&&(r=null);n.cookies.set(u,r,t);break}})},cookieFill:function(){return this.each(function(){for(var u,e=["name","id"],r,t=n(this),i,f=function(){return u=e.pop(),!!u};f();)if(r=t.attr(u),typeof r=="string"&&r!==""){i=n.cookies.get(r);i!==null&&(t.is(":checkbox, :radio")?t.val()===i?t.attr("checked","checked"):t.removeAttr("checked"):t.is(":input")?t.val(i):t.html(i));break}})},cookieBind:function(t){return this.each(function(){var i=n(this);i.cookieFill().change(function(){i.cookify(t)})})}};n.each(t,function(t){n.fn[t]=this})}(window.jQuery)}(),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)===undefined?!1:(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?module.exports=function(t,i){return i===undefined&&(i=typeof window!="undefined"?require("jquery"):require("jquery")(t)),n(i),i}:n(jQuery)}(function(n){var t=function(){var t;return n&&n.fn&&n.fn.select2&&n.fn.select2.amd&&(t=n.fn.select2.amd),function(){if(!t||!t.requirejs){t?i=t:t={};var n,i,r;(function(t){function e(n,t){return d.call(n,t)}function l(n,t){var o,s,u,e,h,y,c,b,i,l,p,k,r=t&&t.split("/"),a=f.map,v=a&&a["*"]||{};if(n){for(n=n.split("/"),h=n.length-1,f.nodeIdCompat&&w.test(n[h])&&(n[h]=n[h].replace(w,"")),n[0].charAt(0)==="."&&r&&(k=r.slice(0,r.length-1),n=k.concat(n)),i=0;i<n.length;i++)if(p=n[i],p===".")n.splice(i,1),i-=1;else if(p==="..")if(i===0||i===1&&n[2]===".."||n[i-1]==="..")continue;else i>0&&(n.splice(i-1,2),i-=2);n=n.join("/")}if((r||v)&&a){for(o=n.split("/"),i=o.length;i>0;i-=1){if(s=o.slice(0,i).join("/"),r)for(l=r.length;l>0;l-=1)if(u=a[r.slice(0,l).join("/")],u&&(u=u[s],u)){e=u;y=i;break}if(e)break;!c&&v&&v[s]&&(c=v[s],b=i)}!e&&c&&(e=c,y=b);e&&(o.splice(0,y,e),n=o.join("/"))}return n}function b(n,i){return function(){var r=g.call(arguments,0);return typeof r[0]!="string"&&r.length===1&&r.push(null),o.apply(t,r.concat([n,i]))}}function nt(n){return function(t){return l(t,n)}}function tt(n){return function(t){u[n]=t}}function a(n){if(e(h,n)){var i=h[n];delete h[n];y[n]=!0;c.apply(t,i)}if(!e(u,n)&&!e(y,n))throw new Error("No "+n);return u[n]}function p(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function k(n){return n?p(n):[]}function it(n){return function(){return f&&f.config&&f.config[n]||{}}}var c,o,v,s,u={},h={},f={},y={},d=Object.prototype.hasOwnProperty,g=[].slice,w=/\.js$/;v=function(n,t){var r,u=p(n),i=u[0],f=t[1];return n=u[1],i&&(i=l(i,f),r=a(i)),i?n=r&&r.normalize?r.normalize(n,nt(f)):l(n,f):(n=l(n,f),u=p(n),i=u[0],n=u[1],i&&(r=a(i))),{f:i?i+"!"+n:n,n:n,pr:i,p:r}};s={require:function(n){return b(n)},exports:function(n){var t=u[n];return typeof t!="undefined"?t:u[n]={}},module:function(n){return{id:n,uri:"",exports:u[n],config:it(n)}}};c=function(n,i,r,f){var p,o,d,w,c,g,l=[],nt=typeof r,it;if(f=f||n,g=k(f),nt==="undefined"||nt==="function"){for(i=!i.length&&r.length?["require","exports","module"]:i,c=0;c<i.length;c+=1)if(w=v(i[c],g),o=w.f,o==="require")l[c]=s.require(n);else if(o==="exports")l[c]=s.exports(n),it=!0;else if(o==="module")p=l[c]=s.module(n);else if(e(u,o)||e(h,o)||e(y,o))l[c]=a(o);else if(w.p)w.p.load(w.n,b(f,!0),tt(o),{}),l[c]=u[o];else throw new Error(n+" missing "+o);d=r?r.apply(u[n],l):undefined;n&&(p&&p.exports!==t&&p.exports!==u[n]?u[n]=p.exports:d===t&&it||(u[n]=d))}else n&&(u[n]=r)};n=i=o=function(n,i,r,u,e){if(typeof n=="string")return s[n]?s[n](i):a(v(n,k(i)).f);if(!n.splice){if(f=n,f.deps&&o(f.deps,f.callback),!i)return;i.splice?(n=i,i=r,r=null):n=t}return i=i||function(){},typeof r=="function"&&(r=u,u=e),u?c(t,n,i,r):setTimeout(function(){c(t,n,i,r)},4),o};o.config=function(n){return o(n)};n._defined=u;r=function(n,t,i){if(typeof n!="string")throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]);e(u,n)||e(h,n)||(h[n]=[n,t,i])};r.amd={jQuery:!0}})();t.requirejs=n;t.require=i;t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=n||$;return t==null&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(n){function r(n){var i=n.prototype,r=[],t,u;for(t in i)(u=i[t],typeof u=="function")&&t!=="constructor"&&r.push(t);return r}var t={},i;return t.Extend=function(n,t){function r(){this.constructor=n}var u={}.hasOwnProperty,i;for(i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},t.Decorate=function(n,t){function i(){var r=Array.prototype.unshift,u=t.prototype.constructor.length,i=n.prototype.constructor;u>0&&(r.call(arguments,n.prototype.constructor),i=t.prototype.constructor);i.apply(this,arguments)}function l(){this.constructor=i}var s=r(t),h=r(n),u,e,c,f,o;for(t.displayName=n.displayName,i.prototype=new l,u=0;u<h.length;u++)e=h[u],i.prototype[e]=n.prototype[e];for(c=function(n){var r=function(){},u;return n in i.prototype&&(r=i.prototype[n]),u=t.prototype[n],function(){var n=Array.prototype.unshift;return n.call(arguments,r),u.apply(this,arguments)}},f=0;f<s.length;f++)o=s[f],i.prototype[o]=c(o);return i},i=function(){this.listeners={}},i.prototype.on=function(n,t){this.listeners=this.listeners||{};n in this.listeners?this.listeners[n].push(t):this.listeners[n]=[t]},i.prototype.trigger=function(n){var i=Array.prototype.slice,t=i.call(arguments,1);this.listeners=this.listeners||{};t==null&&(t=[]);t.length===0&&t.push({});t[0]._type=n;n in this.listeners&&this.invoke(this.listeners[n],i.call(arguments,1));"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(n,t){for(var i=0,r=n.length;i<r;i++)n[i].apply(this,t)},t.Observable=i,t.generateChars=function(n){for(var i="",r,t=0;t<n;t++)r=Math.floor(Math.random()*36),i+=r.toString(36);return i},t.bind=function(n,t){return function(){n.apply(t,arguments)}},t._convertData=function(n){var f,r,i,u,t;for(f in n)if(r=f.split("-"),i=n,r.length!==1){for(u=0;u<r.length;u++)t=r[u],t=t.substring(0,1).toLowerCase()+t.substring(1),t in i||(i[t]={}),u==r.length-1&&(i[t]=n[f]),i=i[t];delete n[f]}return n},t.hasScroll=function(t,i){var u=n(i),f=i.style.overflowX,r=i.style.overflowY;return f===r&&(r==="hidden"||r==="visible")?!1:f==="scroll"||r==="scroll"?!0:u.innerHeight()<i.scrollHeight||u.innerWidth()<i.scrollWidth},t.escapeMarkup=function(n){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return typeof n!="string"?n:String(n).replace(/[&<>"'\/\\]/g,function(n){return t[n]})},t.appendMany=function(t,i){if(n.fn.jquery.substr(0,3)==="1.7"){var r=n();n.map(i,function(n){r=r.add(n)});i=r}t.append(i)},t}),t.define("select2/results",["jquery","./utils"],function(n,t){function i(n,t,r){this.$element=n;this.data=r;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<ul class="select2-results__options" role="tree"><\/ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var u=this.options.get("escapeMarkup"),i,r;this.clear();this.hideLoading();i=n('<li role="treeitem" aria-live="assertive" class="select2-results__option"><\/li>');r=this.options.get("translations").get(t.message);i.append(u(r(t.args)));i[0].className+=" select2-results__message";this.$results.append(i)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(n){var i,t,r,u;if(this.hideLoading(),i=[],n.results==null||n.results.length===0){this.$results.children().length===0&&this.trigger("results:message",{message:"noResults"});return}for(n.results=this.sort(n.results),t=0;t<n.results.length;t++)r=n.results[t],u=this.option(r),i.push(u);this.$results.append(i)},i.prototype.position=function(n,t){var i=t.find(".select2-results");i.append(n)},i.prototype.sort=function(n){var t=this.options.get("sorter");return t(n)},i.prototype.highlightFirstItem=function(){var n=this.$results.find(".select2-results__option[aria-selected]"),t=n.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):n.first().trigger("mouseenter");this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(i){var r=n.map(i,function(n){return n.id.toString()}),u=t.$results.find(".select2-results__option[aria-selected]");u.each(function(){var i=n(this),t=n.data(this,"data"),u=""+t.id;t.element!=null&&t.element.selected||t.element==null&&n.inArray(u,r)>-1?i.attr("aria-selected","true"):i.attr("aria-selected","false")})})},i.prototype.showLoading=function(n){this.hideLoading();var i=this.options.get("translations").get("searching"),r={disabled:!0,loading:!0,text:i(n)},t=this.option(r);t.className+=" loading-results";this.$results.prepend(t)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(t){var r=document.createElement("li"),i,e,c,o,u,v,s,f,l,a,h;r.className="select2-results__option";i={role:"treeitem","aria-selected":"false"};t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true");t.id==null&&delete i["aria-selected"];t._resultId!=null&&(r.id=t._resultId);t.title&&(r.title=t.title);t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]);for(e in i)c=i[e],r.setAttribute(e,c);if(t.children){for(o=n(r),u=document.createElement("strong"),u.className="select2-results__group",v=n(u),this.template(t,u),s=[],f=0;f<t.children.length;f++)l=t.children[f],a=this.option(l),s.push(a);h=n("<ul><\/ul>",{"class":"select2-results__options select2-results__options--nested"});h.append(s);o.append(u);o.append(h)}else this.template(t,r);return n.data(r,"data",t),r},i.prototype.bind=function(t){var i=this,r=t.id+"-results";this.$results.attr("id",r);t.on("results:all",function(n){i.clear();i.append(n.data);t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("results:append",function(n){i.append(n.data);t.isOpen()&&i.setClasses()});t.on("query",function(n){i.hideMessages();i.showLoading(n)});t.on("select",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("open",function(){i.$results.attr("aria-expanded","true");i.$results.attr("aria-hidden","false");i.setClasses();i.ensureHighlightVisible()});t.on("close",function(){i.$results.attr("aria-expanded","false");i.$results.attr("aria-hidden","true");i.$results.removeAttr("aria-activedescendant")});t.on("results:toggle",function(){var n=i.getHighlightedResults();n.length!==0&&n.trigger("mouseup")});t.on("results:select",function(){var n=i.getHighlightedResults(),t;n.length!==0&&(t=n.data("data"),n.attr("aria-selected")=="true"?i.trigger("close",{}):i.trigger("select",{data:t}))});t.on("results:previous",function(){var r=i.getHighlightedResults(),u=i.$results.find("[aria-selected]"),f=u.index(r),n,t;if(f!==0){n=f-1;r.length===0&&(n=0);t=u.eq(n);t.trigger("mouseenter");var e=i.$results.offset().top,o=t.offset().top,s=i.$results.scrollTop()+(o-e);n===0?i.$results.scrollTop(0):o-e<0&&i.$results.scrollTop(s)}});t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),o=t.index(e),r=o+1,n;if(!(r>=t.length)){n=t.eq(r);n.trigger("mouseenter");var u=i.$results.offset().top+i.$results.outerHeight(!1),f=n.offset().top+n.outerHeight(!1),s=i.$results.scrollTop()+f-u;r===0?i.$results.scrollTop(0):f>u&&i.$results.scrollTop(s)}});t.on("results:focus",function(n){n.element.addClass("select2-results__option--highlighted")});t.on("results:message",function(n){i.displayMessage(n)});if(n.fn.mousewheel)this.$results.on("mousewheel",function(n){var t=i.$results.scrollTop(),r=i.$results.get(0).scrollHeight-t+n.deltaY,u=n.deltaY>0&&t-n.deltaY<=0,f=n.deltaY<0&&r<=i.$results.height();u?(i.$results.scrollTop(0),n.preventDefault(),n.stopPropagation()):f&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),n.preventDefault(),n.stopPropagation())});this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var r=n(this),u=r.data("data");if(r.attr("aria-selected")==="true"){i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:u}):i.trigger("close",{});return}i.trigger("select",{originalEvent:t,data:u})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var t=n(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted");i.trigger("results:focus",{data:t,element:n(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var n=this.getHighlightedResults();if(n.length!==0){var f=this.$results.find("[aria-selected]"),e=f.index(n),t=this.$results.offset().top,i=n.offset().top,r=this.$results.scrollTop()+(i-t),u=i-t;r-=n.outerHeight(!1)*2;e<=2?this.$results.scrollTop(0):(u>this.$results.outerHeight()||u<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(t,i){var u=this.options.get("templateResult"),f=this.options.get("escapeMarkup"),r=u(t,i);r==null?i.style.display="none":typeof r=="string"?i.innerHTML=f(r):n(i).append(r)},i}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"><\/span>');return this._tabindex=0,this.$element.data("old-tabindex")!=null?this._tabindex=this.$element.data("old-tabindex"):this.$element.attr("tabindex")!=null&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},r.prototype.bind=function(n){var t=this,u=n.id+"-container",r=n.id+"-results";this.container=n;this.$selection.on("focus",function(n){t.trigger("focus",n)});this.$selection.on("blur",function(n){t._handleBlur(n)});this.$selection.on("keydown",function(n){t.trigger("keypress",n);n.which===i.SPACE&&n.preventDefault()});n.on("results:focus",function(n){t.$selection.attr("aria-activedescendant",n.data._resultId)});n.on("selection:update",function(n){t.update(n.data)});n.on("open",function(){t.$selection.attr("aria-expanded","true");t.$selection.attr("aria-owns",r);t._attachCloseHandler(n)});n.on("close",function(){t.$selection.attr("aria-expanded","false");t.$selection.removeAttr("aria-activedescendant");t.$selection.removeAttr("aria-owns");t.$selection.focus();t._detachCloseHandler(n)});n.on("enable",function(){t.$selection.attr("tabindex",t._tabindex)});n.on("disable",function(){t.$selection.attr("tabindex","-1")})},r.prototype._handleBlur=function(t){var i=this;window.setTimeout(function(){document.activeElement==i.$selection[0]||n.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(t){var i=this;n(document.body).on("mousedown.select2."+t.id,function(t){var i=n(t.target),r=i.closest(".select2"),u=n(".select2.select2-container--open");u.each(function(){var i=n(this),t;this!=r[0]&&(t=i.data("element"),t.select2("close"))})})},r.prototype._detachCloseHandler=function(t){n(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(n,t){var i=t.find(".selection");i.append(n)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.");},r}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--single"),n.html('<span class="select2-selection__rendered"><\/span><span class="select2-selection__arrow" role="presentation"><strong role="presentation"><\/strong><\/span>'),n},r.prototype.bind=function(n){var t=this,i;r.__super__.bind.apply(this,arguments);i=n.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i);this.$selection.attr("aria-labelledby",i);this.$selection.on("mousedown",function(n){n.which===1&&t.trigger("toggle",{originalEvent:n})});this.$selection.on("focus",function(){});this.$selection.on("blur",function(){});n.on("focus",function(){n.isOpen()||t.$selection.focus()});n.on("selection:update",function(n){t.update(n.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n("<span><\/span>")},r.prototype.update=function(n){if(n.length===0){this.clear();return}var t=n[0],i=this.$selection.find(".select2-selection__rendered"),r=this.display(t,i);i.empty().append(r);i.prop("title",t.title||t.text)},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--multiple"),n.html('<ul class="select2-selection__rendered"><\/ul>'),n},r.prototype.bind=function(){var t=this;r.__super__.bind.apply(this,arguments);this.$selection.on("click",function(n){t.trigger("toggle",{originalEvent:n})});this.$selection.on("click",".select2-selection__choice__remove",function(i){if(!t.options.get("disabled")){var r=n(this),u=r.parent(),f=u.data("data");t.trigger("unselect",{originalEvent:i,data:f})}})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;<\/span><\/li>')},r.prototype.update=function(n){var f,r,e;if(this.clear(),n.length!==0){for(f=[],r=0;r<n.length;r++){var u=n[r],t=this.selectionContainer(),o=this.display(u,t);t.append(o);t.prop("title",u.title||u.text);t.data("data",u);f.push(t)}e=this.$selection.find(".select2-selection__rendered");i.appendMany(e,f)}},r}),t.define("select2/selection/placeholder",["../utils"],function(){function n(n,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i)}return n.prototype.normalizePlaceholder=function(n,t){return typeof t=="string"&&(t={id:"",text:t}),t},n.prototype.createPlaceholder=function(n,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},n.prototype.update=function(n,t){var r=t.length==1&&t[0].id!=this.placeholder.id,u=t.length>1,i;if(u||r)return n.call(this,t);this.clear();i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},n}),t.define("select2/selection/allowClear",["jquery","../keys"],function(n,t){function i(){}return i.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);this.placeholder==null&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option.");this.$selection.on("mousedown",".select2-selection__clear",function(n){r._handleClear(n)});t.on("keypress",function(n){r._handleKeyboardClear(n,t)})},i.prototype._handleClear=function(n,t){var r,u,i,f;if(!this.options.get("disabled")&&(r=this.$selection.find(".select2-selection__clear"),r.length!==0)){for(t.stopPropagation(),u=r.data("data"),i=0;i<u.length;i++)if(f={data:u[i]},this.trigger("unselect",f),f.prevented)return;this.$element.val(this.placeholder.id).trigger("change");this.trigger("toggle",{})}},i.prototype._handleKeyboardClear=function(n,i,r){r.isOpen()||(i.which==t.DELETE||i.which==t.BACKSPACE)&&this._handleClear(i)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0)&&i.length!==0){var r=n('<span class="select2-selection__clear">&times;<\/span>');r.data("data",i);this.$selection.find(".select2-selection__rendered").prepend(r)}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(n,t,i){function r(n,t,i){n.call(this,t,i)}return r.prototype.render=function(t){var i=n('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /><\/li>'),r;return this.$searchContainer=i,this.$search=i.find("input"),r=t.call(this),this._transferTabIndex(),r},r.prototype.bind=function(n,t,r){var u=this,f,e;n.call(this,t,r);t.on("open",function(){u.$search.trigger("focus")});t.on("close",function(){u.$search.val("");u.$search.removeAttr("aria-activedescendant");u.$search.trigger("focus")});t.on("enable",function(){u.$search.prop("disabled",!1);u._transferTabIndex()});t.on("disable",function(){u.$search.prop("disabled",!0)});t.on("focus",function(){u.$search.trigger("focus")});t.on("results:focus",function(n){u.$search.attr("aria-activedescendant",n.id)});this.$selection.on("focusin",".select2-search--inline",function(n){u.trigger("focus",n)});this.$selection.on("focusout",".select2-search--inline",function(n){u._handleBlur(n)});this.$selection.on("keydown",".select2-search--inline",function(n){var r,t,f;n.stopPropagation();u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented();r=n.which;r===i.BACKSPACE&&u.$search.val()===""&&(t=u.$searchContainer.prev(".select2-selection__choice"),t.length>0&&(f=t.data("data"),u.searchRemoveChoice(f),n.preventDefault()))});f=document.documentMode;e=f&&f<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(){if(e){u.$selection.off("input.search input.searchcheck");return}u.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(n){if(e&&n.type==="input"){u.$selection.off("input.search input.searchcheck");return}var t=n.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&u.handleSearch(n)})},r.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(n,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(n,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");n.call(this,t);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch();i&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(n,t){this.trigger("unselect",{data:t});this.$search.val(t.text);this.handleSearch()},r.prototype.resizeSearch=function(){var n,t;this.$search.css("width","25px");n="";this.$search.attr("placeholder")!==""?n=this.$selection.find(".select2-selection__rendered").innerWidth():(t=this.$search.val().length+1,n=t*.75+"em");this.$search.css("width",n)},r}),t.define("select2/selection/eventRelay",["jquery"],function(n){function t(){}return t.prototype.bind=function(t,i,r){var u=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],e=["opening","closing","selecting","unselecting"];t.call(this,i,r);i.on("*",function(t,i){if(n.inArray(t,f)!==-1){i=i||{};var r=n.Event("select2:"+t,{params:i});(u.$element.trigger(r),n.inArray(t,e)!==-1)&&(i.prevented=r.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(n,t){function i(n){this.dict=n||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(n){return this.dict[n]},i.prototype.extend=function(t){this.dict=n.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(n){if(!(n in i._cache)){var r=t(n);i._cache[n]=r}return new i(i._cache[n])},i}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(n){function t(){t.__super__.constructor.call(this)}return n.Extend(t,n.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.");},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.");},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var r=t.id+"-result-";return r+=n.generateChars(4),r+(i.id!=null?"-"+i.id.toString():"-"+n.generateChars(4))},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,n),r.prototype.current=function(n){var t=[],r=this;this.$element.find(":selected").each(function(){var n=i(this),u=r.item(n);t.push(u)});n(t)},r.prototype.select=function(n){var t=this,r;if(n.selected=!0,i(n.element).is("option")){n.element.selected=!0;this.$element.trigger("change");return}this.$element.prop("multiple")?this.current(function(r){var f=[],u,e;for(n=[n],n.push.apply(n,r),u=0;u<n.length;u++)e=n[u].id,i.inArray(e,f)===-1&&f.push(e);t.$element.val(f);t.$element.trigger("change")}):(r=n.id,this.$element.val(r),this.$element.trigger("change"))},r.prototype.unselect=function(n){var t=this;if(this.$element.prop("multiple")){if(n.selected=!1,i(n.element).is("option")){n.element.selected=!1;this.$element.trigger("change");return}this.current(function(r){for(var e=[],f,u=0;u<r.length;u++)f=r[u].id,f!==n.id&&i.inArray(f,e)===-1&&e.push(f);t.$element.val(e);t.$element.trigger("change")})}},r.prototype.bind=function(n){var t=this;this.container=n;n.on("select",function(n){t.select(n.data)});n.on("unselect",function(n){t.unselect(n.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){i.removeData(this,"data")})},r.prototype.query=function(n,t){var r=[],u=this,f=this.$element.children();f.each(function(){var t=i(this),e,f;(t.is("option")||t.is("optgroup"))&&(e=u.item(t),f=u.matches(n,e),f!==null&&r.push(f))});t({results:r})},r.prototype.addOptions=function(n){t.appendMany(this.$element,n)},r.prototype.option=function(n){var t,u,r;return n.children?(t=document.createElement("optgroup"),t.label=n.text):(t=document.createElement("option"),t.textContent!==undefined?t.textContent=n.text:t.innerText=n.text),n.id!==undefined&&(t.value=n.id),n.disabled&&(t.disabled=!0),n.selected&&(t.selected=!0),n.title&&(t.title=n.title),u=i(t),r=this._normalizeItem(n),r.element=t,i.data(t,"data",r),u},r.prototype.item=function(n){var t={},u,f,r,e,o;if(t=i.data(n[0],"data"),t!=null)return t;if(n.is("option"))t={id:n.val(),text:n.text(),disabled:n.prop("disabled"),selected:n.prop("selected"),title:n.prop("title")};else if(n.is("optgroup")){for(t={text:n.prop("label"),children:[],title:n.prop("title")},u=n.children("option"),f=[],r=0;r<u.length;r++)e=i(u[r]),o=this.item(e),f.push(o);t.children=f}return t=this._normalizeItem(t),t.element=n[0],i.data(n[0],"data",t),t},r.prototype._normalizeItem=function(n){i.isPlainObject(n)||(n={id:n,text:n});n=i.extend({},{text:""},n);return n.id!=null&&(n.id=n.id.toString()),n.text!=null&&(n.text=n.text.toString()),n._resultId==null&&n.id&&this.container!=null&&(n._resultId=this.generateResultId(this.container,n)),i.extend({},{selected:!1,disabled:!1},n)},r.prototype.matches=function(n,t){var i=this.options.get("matcher");return i(n,t)},r}),t.define("select2/data/array",["./select","../utils","jquery"],function(n,t,i){function r(n,t){var i=t.get("data")||[];r.__super__.constructor.call(this,n,t);this.addOptions(this.convertToOptions(i))}return t.Extend(r,n),r.prototype.select=function(n){var t=this.$element.find("option").filter(function(t,i){return i.value==n.id.toString()});t.length===0&&(t=this.option(n),this.addOptions(t));r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(n){function a(n){return function(){return i(this).val()==n.id}}for(var c=this,e=this.$element.find("option"),l=e.map(function(){return c.item(i(this)).id}).get(),o=[],r,f,h,u=0;u<n.length;u++){if(r=this._normalizeItem(n[u]),i.inArray(r.id,l)>=0){var s=e.filter(a(r)),v=this.item(s),y=i.extend(!0,{},r,v),p=this.option(y);s.replaceWith(p);continue}f=this.option(r);r.children&&(h=this.convertToOptions(r.children),t.appendMany(f,h));o.push(f)}return o},r}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(n,t,i){function r(n,t){this.ajaxOptions=this._applyDefaults(t.get("ajax"));this.ajaxOptions.processResults!=null&&(this.processResults=this.ajaxOptions.processResults);r.__super__.constructor.call(this,n,t)}return t.Extend(r,n),r.prototype._applyDefaults=function(n){var t={data:function(n){return i.extend({},n,{q:n.term})},transport:function(n,t,r){var u=i.ajax(n);return u.then(t),u.fail(r),u}};return i.extend({},t,n,!0)},r.prototype.processResults=function(n){return n},r.prototype.query=function(n,t){function f(){var f=r.transport(r,function(r){var f=u.processResults(r,n);u.options.get("debug")&&window.console&&console.error&&(f&&f.results&&i.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response."));t(f)},function(){f.status&&f.status==="0"||u.trigger("results:message",{message:"errorLoading"})});u._request=f}var u=this,r;this._request!=null&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);r=i.extend({type:"GET"},this.ajaxOptions);typeof r.url=="function"&&(r.url=r.url.call(this.$element,n));typeof r.data=="function"&&(r.data=r.data.call(this.$element,n));this.ajaxOptions.delay&&n.term!=null?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(f,this.ajaxOptions.delay)):f()},r}),t.define("select2/data/tags",["jquery"],function(n){function t(t,i,r){var f=r.get("tags"),o=r.get("createTag"),e,u;if(o!==undefined&&(this.createTag=o),e=r.get("insertTag"),e!==undefined&&(this.insertTag=e),t.call(this,i,r),n.isArray(f))for(u=0;u<f.length;u++){var s=f[u],h=this._normalizeItem(s),c=this.option(h);this.$element.append(c)}}return t.prototype.query=function(n,t,i){function u(n,f){for(var e=n.results,s,c,o=0;o<e.length;o++){var h=e[o],l=h.children!=null&&!u({results:h.children},!0),a=(h.text||"").toUpperCase(),v=(t.term||"").toUpperCase(),y=a===v;if(y||l){if(f)return!1;n.data=e;i(n);return}}if(f)return!0;s=r.createTag(t);s!=null&&(c=r.option(s),c.attr("data-select2-tag",!0),r.addOptions([c]),r.insertTag(e,s));n.results=e;i(n)}var r=this;if(this._removeOldTags(),t.term==null||t.page!=null){n.call(this,t,i);return}n.call(this,t,u)},t.prototype.createTag=function(t,i){var r=n.trim(i.term);return r===""?null:{id:r,text:r}},t.prototype.insertTag=function(n,t,i){t.unshift(i)},t.prototype._removeOldTags=function(){var i=this._lastTag,t=this.$element.find("option[data-select2-tag]");t.each(function(){this.selected||n(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(n){function t(n,t,i){var r=i.get("tokenizer");r!==undefined&&(this.tokenizer=r);n.call(this,t,i)}return t.prototype.bind=function(n,t,i){n.call(this,t,i);this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(t,i,r){function e(t){var i=u._normalizeItem(t),f=u.$element.find("option").filter(function(){return n(this).val()===i.id}),r;f.length||(r=u.option(i),r.attr("data-select2-tag",!0),u._removeOldTags(),u.addOptions([r]));o(i)}function o(n){u.trigger("select",{data:n})}var u=this,f;i.term=i.term||"";f=this.tokenizer(i,this.options,e);f.term!==i.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.focus()),i.term=f.term);t.call(this,i,r)},t.prototype.tokenizer=function(t,i,r,u){for(var h=r.get("tokenSeparators")||[],e=i.term,f=0,c=this.createTag||function(n){return{id:n.term,text:n.term}},o;f<e.length;){if(o=e[f],n.inArray(o,h)===-1){f++;continue}var l=e.substr(0,f),a=n.extend({},i,{term:l}),s=c(a);if(s==null){f++;continue}u(s);e=e.substr(f+1)||"";f=0}return{term:e}},t}),t.define("select2/data/minimumInputLength",[],function(){function n(n,t,i){this.minimumInputLength=i.get("minimumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){if(t.term=t.term||"",t.term.length<this.minimumInputLength){this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}});return}n.call(this,t,i)},n}),t.define("select2/data/maximumInputLength",[],function(){function n(n,t,i){this.maximumInputLength=i.get("maximumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){if(t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}});return}n.call(this,t,i)},n}),t.define("select2/data/maximumSelectionLength",[],function(){function n(n,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){var r=this;this.current(function(u){var f=u!=null?u.length:0;if(r.maximumSelectionLength>0&&f>=r.maximumSelectionLength){r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}});return}n.call(r,t,i)})},n}),t.define("select2/dropdown",["jquery","./utils"],function(n,t){function i(n,t){this.$element=n;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<span class="select2-dropdown"><span class="select2-results"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(n){function t(){}return t.prototype.render=function(t){var r=t.call(this),i=n('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /><\/span>');return this.$searchContainer=i,this.$search=i.find("input"),r.prepend(i),r},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);this.$search.on("keydown",function(n){u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented()});this.$search.on("input",function(){n(this).off("keyup")});this.$search.on("keyup input",function(n){u.handleSearch(n)});i.on("open",function(){u.$search.attr("tabindex",0);u.$search.focus();window.setTimeout(function(){u.$search.focus()},0)});i.on("close",function(){u.$search.attr("tabindex",-1);u.$search.val("")});i.on("focus",function(){i.isOpen()||u.$search.focus()});i.on("results:all",function(n){if(n.query.term==null||n.query.term===""){var t=u.showSearch(n);t?u.$searchContainer.removeClass("select2-search--hide"):u.$searchContainer.addClass("select2-search--hide")}})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function n(n,t,i,r){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i,r)}return n.prototype.append=function(n,t){t.results=this.removePlaceholder(t.results);n.call(this,t)},n.prototype.normalizePlaceholder=function(n,t){return typeof t=="string"&&(t={id:"",text:t}),t},n.prototype.removePlaceholder=function(n,t){for(var r=t.slice(0),u,i=t.length-1;i>=0;i--)u=t[i],this.placeholder.id===u.id&&r.splice(i,1);return r},n}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function t(n,t,i,r){this.lastParams={};n.call(this,t,i,r);this.$loadingMore=this.createLoadingMore();this.loading=!1}return t.prototype.append=function(n,t){this.$loadingMore.remove();this.loading=!1;n.call(this,t);this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);i.on("query",function(n){u.lastParams=n;u.loading=!0});i.on("query:append",function(n){u.lastParams=n;u.loading=!0});this.$results.on("scroll",function(){var r=n.contains(document.documentElement,u.$loadingMore[0]),t,i;!u.loading&&r&&(t=u.$results.offset().top+u.$results.outerHeight(!1),i=u.$loadingMore.offset().top+u.$loadingMore.outerHeight(!1),t+50>=i&&u.loadMore())})},t.prototype.loadMore=function(){this.loading=!0;var t=n.extend({},{page:1},this.lastParams);t.page++;this.trigger("query:append",t)},t.prototype.showLoadingMore=function(n,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=n('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"><\/li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(n,t){function i(t,i,r){this.$dropdownParent=r.get("dropdownParent")||n(document.body);t.call(this,i,r)}return i.prototype.bind=function(n,t,i){var r=this,u=!1;n.call(this,t,i);t.on("open",function(){if(r._showDropdown(),r._attachPositioningHandler(t),!u){u=!0;t.on("results:all",function(){r._positionDropdown();r._resizeDropdown()});t.on("results:append",function(){r._positionDropdown();r._resizeDropdown()})}});t.on("close",function(){r._hideDropdown();r._detachPositioningHandler(t)});this.$dropdownContainer.on("mousedown",function(n){n.stopPropagation()})},i.prototype.destroy=function(n){n.call(this);this.$dropdownContainer.remove()},i.prototype.position=function(n,t,i){t.attr("class",i.attr("class"));t.removeClass("select2");t.addClass("select2-container--open");t.css({position:"absolute",top:-999999});this.$container=i},i.prototype.render=function(t){var i=n("<span><\/span>"),r=t.call(this);return i.append(r),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,r){var u=this,f="scroll.select2."+r.id,o="resize.select2."+r.id,s="orientationchange.select2."+r.id,e=this.$container.parents().filter(t.hasScroll);e.each(function(){n(this).data("select2-scroll-position",{x:n(this).scrollLeft(),y:n(this).scrollTop()})});e.on(f,function(){var t=n(this).data("select2-scroll-position");n(this).scrollTop(t.y)});n(window).on(f+" "+o+" "+s,function(){u._positionDropdown();u._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i,r){var u="scroll.select2."+r.id,f="resize.select2."+r.id,e="orientationchange.select2."+r.id,o=this.$container.parents().filter(t.hasScroll);o.off(u);n(window).off(u+" "+f+" "+e)},i.prototype._positionDropdown=function(){var s=n(window),u=this.$dropdown.hasClass("select2-dropdown--above"),v=this.$dropdown.hasClass("select2-dropdown--below"),t=null,i=this.$container.offset(),r,o;i.bottom=i.top+this.$container.outerHeight(!1);r={height:this.$container.outerHeight(!1)};r.top=i.top;r.bottom=i.top+r.height;var h={height:this.$dropdown.outerHeight(!1)},c={top:s.scrollTop(),bottom:s.scrollTop()+s.height()},l=c.top<i.top-h.height,a=c.bottom>i.bottom+h.height,f={left:i.left,top:r.bottom},e=this.$dropdownParent;e.css("position")==="static"&&(e=e.offsetParent());o=e.offset();f.top-=o.top;f.left-=o.left;u||v||(t="below");a||!l||u?!l&&a&&u&&(t="below"):t="above";(t=="above"||u&&t!=="below")&&(f.top=r.top-o.top-h.height);t!=null&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+t),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+t));this.$dropdownContainer.css(f)},i.prototype._resizeDropdown=function(){var n={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(n.minWidth=n.width,n.position="relative",n.width="auto");this.$dropdown.css(n)},i.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()},i}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function n(t){for(var r=0,u,i=0;i<t.length;i++)u=t[i],u.children?r+=n(u.children):r++;return r}function t(n,t,i,r){this.minimumResultsForSearch=i.get("minimumResultsForSearch");this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=Infinity);n.call(this,t,i,r)}return t.prototype.showSearch=function(t,i){return n(i.data.results)<this.minimumResultsForSearch?!1:t.call(this,i)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("close",function(n){r._handleSelectOnClose(n)})},n.prototype._handleSelectOnClose=function(n,t){var r,u,i;t&&t.originalSelect2Event!=null&&(r=t.originalSelect2Event,r._type==="select"||r._type==="unselect")||(u=this.getHighlightedResults(),u.length<1)||(i=u.data("data"),i.element!=null&&i.element.selected||i.element==null&&i.selected)||this.trigger("select",{data:i})},n}),t.define("select2/dropdown/closeOnSelect",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("select",function(n){r._selectTriggered(n)});t.on("unselect",function(n){r._selectTriggered(n)})},n.prototype._selectTriggered=function(n,t){var i=t.originalEvent;i&&i.ctrlKey||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},n}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(n){var t=n.input.length-n.maximum,i="Please delete "+t+" character";return t!=1&&(i+="s"),i},inputTooShort:function(n){var t=n.minimum-n.input.length;return"Please enter "+t+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(n){var t="You can only select "+n.maximum+" item";return n.maximum!=1&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot){function st(){this.reset()}st.prototype.apply=function(l){var vt,yt,pt,wt,bt,kt,dt,ct,lt,st,ot,ht,gt,at;if(l=n.extend(!0,{},this.defaults,l),l.dataAdapter==null&&(l.dataAdapter=l.ajax!=null?y:l.data!=null?v:a,l.minimumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,b)),l.maximumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,k)),l.maximumSelectionLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,d)),l.tags&&(l.dataAdapter=h.Decorate(l.dataAdapter,p)),(l.tokenSeparators!=null||l.tokenizer!=null)&&(l.dataAdapter=h.Decorate(l.dataAdapter,w)),l.query!=null&&(vt=t(l.amdBase+"compat/query"),l.dataAdapter=h.Decorate(l.dataAdapter,vt)),l.initSelection!=null&&(yt=t(l.amdBase+"compat/initSelection"),l.dataAdapter=h.Decorate(l.dataAdapter,yt))),l.resultsAdapter==null&&(l.resultsAdapter=i,l.ajax!=null&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,it)),l.placeholder!=null&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,tt)),l.selectOnClose&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,ft))),l.dropdownAdapter==null&&(l.multiple?l.dropdownAdapter=g:(pt=h.Decorate(g,nt),l.dropdownAdapter=pt),l.minimumResultsForSearch!==0&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,ut)),l.closeOnSelect&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,et)),(l.dropdownCssClass!=null||l.dropdownCss!=null||l.adaptDropdownCssClass!=null)&&(wt=t(l.amdBase+"compat/dropdownCss"),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,wt)),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,rt)),l.selectionAdapter==null&&(l.selectionAdapter=l.multiple?u:r,l.placeholder!=null&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,e)),l.multiple&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,o)),(l.containerCssClass!=null||l.containerCss!=null||l.adaptContainerCssClass!=null)&&(bt=t(l.amdBase+"compat/containerCss"),l.selectionAdapter=h.Decorate(l.selectionAdapter,bt)),l.selectionAdapter=h.Decorate(l.selectionAdapter,s)),typeof l.language=="string"&&(l.language.indexOf("-")>0?(kt=l.language.split("-"),dt=kt[0],l.language=[l.language,dt]):l.language=[l.language]),n.isArray(l.language)){for(ct=new c,l.language.push("en"),lt=l.language,st=0;st<lt.length;st++){ot=lt[st];ht={};try{ht=c.loadPath(ot)}catch(ni){try{ot=this.defaults.amdLanguageBase+ot;ht=c.loadPath(ot)}catch(ti){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+ot+'" could not be automatically loaded. A fallback will be used instead.');continue}}ct.extend(ht)}l.translations=ct}else gt=c.loadPath(this.defaults.amdLanguageBase+"en"),at=new c(l.language),at.extend(gt),l.translations=at;return l};st.prototype.reset=function(){function i(n){function t(n){return l[n]||n}return n.replace(/[^\u0000-\u007E]/g,t)}function t(r,u){var f,e,o,s,h,c;if(n.trim(r.term)==="")return u;if(u.children&&u.children.length>0){for(f=n.extend(!0,{},u),e=u.children.length-1;e>=0;e--)o=u.children[e],s=t(r,o),s==null&&f.children.splice(e,1);return f.children.length>0?f:t(r,f)}return(h=i(u.text).toUpperCase(),c=i(r.term).toUpperCase(),h.indexOf(c)>-1)?u:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:h.escapeMarkup,language:ot,matcher:t,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(n){return n},templateResult:function(n){return n.text},templateSelection:function(n){return n.text},theme:"default",width:"resolve"}};st.prototype.set=function(t,i){var f=n.camelCase(t),r={},u;r[f]=i;u=h._convertData(r);n.extend(this.defaults,u)};return new st}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(n,t,i,r){function u(t,u){if(this.options=t,u!=null&&this.fromElement(u),this.options=i.apply(this.options),u&&u.is("input")){var f=n(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,f)}}return u.prototype.fromElement=function(n){var e=["select2"],f,u,i;this.options.multiple==null&&(this.options.multiple=n.prop("multiple"));this.options.disabled==null&&(this.options.disabled=n.prop("disabled"));this.options.language==null&&(n.prop("lang")?this.options.language=n.prop("lang").toLowerCase():n.closest("[lang]").prop("lang")&&(this.options.language=n.closest("[lang]").prop("lang")));this.options.dir==null&&(this.options.dir=n.prop("dir")?n.prop("dir"):n.closest("[dir]").prop("dir")?n.closest("[dir]").prop("dir"):"ltr");n.prop("disabled",this.options.disabled);n.prop("multiple",this.options.multiple);n.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.data("data",n.data("select2Tags")),n.data("tags",!0));n.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),n.attr("ajax--url",n.data("ajaxUrl")),n.data("ajax--url",n.data("ajaxUrl")));f={};f=t.fn.jquery&&t.fn.jquery.substr(0,2)=="1."&&n[0].dataset?t.extend(!0,{},n[0].dataset,n.data()):n.data();u=t.extend(!0,{},f);u=r._convertData(u);for(i in u)t.inArray(i,e)>-1||(t.isPlainObject(this.options[i])?t.extend(this.options[i],u[i]):this.options[i]=u[i]);return this},u.prototype.get=function(n){return this.options[n]},u.prototype.set=function(n,t){this.options[n]=t},u}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(n,t,i,r){var u=function(n,i){var f,e,r,o,s,h,c;n.data("select2")!=null&&n.data("select2").destroy();this.$element=n;this.id=this._generateId(n);i=i||{};this.options=new t(i,n);u.__super__.constructor.call(this);f=n.attr("tabindex")||0;n.data("old-tabindex",f);n.attr("tabindex","-1");e=this.options.get("dataAdapter");this.dataAdapter=new e(n,this.options);r=this.render();this._placeContainer(r);o=this.options.get("selectionAdapter");this.selection=new o(n,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,r);s=this.options.get("dropdownAdapter");this.dropdown=new s(n,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,r);h=this.options.get("resultsAdapter");this.results=new h(n,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);c=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(n){c.trigger("selection:update",{data:n})});n.addClass("select2-hidden-accessible");n.attr("aria-hidden","true");this._syncAttributes();n.data("select2",this)};return i.Extend(u,i.Observable),u.prototype._generateId=function(n){var t="";return t=n.attr("id")!=null?n.attr("id"):n.attr("name")!=null?n.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),"select2-"+t},u.prototype._placeContainer=function(n){n.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));t!=null&&n.css("width",t)},u.prototype._resolveWidth=function(n,t){var u,f,e,o,i,s,h,r;if(t=="resolve")return(u=this._resolveWidth(n,"style"),u!=null)?u:this._resolveWidth(n,"element");if(t=="element")return(f=n.outerWidth(!1),f<=0)?"auto":f+"px";if(t=="style"){if(e=n.attr("style"),typeof e!="string")return null;for(o=e.split(";"),i=0,s=o.length;i<s;i=i+1)if(h=o[i].replace(/\s/g,""),r=h.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),r!==null&&r.length>=1)return r[1];return null}return t},u.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var t=this,r;this.$element.on("change.select2",function(){t.dataAdapter.current(function(n){t.trigger("selection:update",{data:n})})});this.$element.on("focus.select2",function(n){t.trigger("focus",n)});this._syncA=i.bind(this._syncAttributes,this);this._syncS=i.bind(this._syncSubtree,this);this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;r!=null?(this._observer=new r(function(i){n.each(i,t._syncA);n.each(i,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerSelectionEvents=function(){var t=this,i=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()});this.selection.on("focus",function(n){t.focus(n)});this.selection.on("*",function(r,u){n.inArray(r,i)===-1&&t.trigger(r,u)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")});this.on("close",function(){n.$container.removeClass("select2-container--open")});this.on("enable",function(){n.$container.removeClass("select2-container--disabled")});this.on("disable",function(){n.$container.addClass("select2-container--disabled")});this.on("blur",function(){n.$container.removeClass("select2-container--focus")});this.on("query",function(t){n.isOpen()||n.trigger("open",{});this.dataAdapter.query(t,function(i){n.trigger("results:all",{data:i,query:t})})});this.on("query:append",function(t){this.dataAdapter.query(t,function(i){n.trigger("results:append",{data:i,query:t})})});this.on("keypress",function(t){var i=t.which;n.isOpen()?i===r.ESC||i===r.TAB||i===r.UP&&t.altKey?(n.close(),t.preventDefault()):i===r.ENTER?(n.trigger("results:select",{}),t.preventDefault()):i===r.SPACE&&t.ctrlKey?(n.trigger("results:toggle",{}),t.preventDefault()):i===r.UP?(n.trigger("results:previous",{}),t.preventDefault()):i===r.DOWN&&(n.trigger("results:next",{}),t.preventDefault()):(i===r.ENTER||i===r.SPACE||i===r.DOWN&&t.altKey)&&(n.open(),t.preventDefault())})},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},u.prototype._syncSubtree=function(n,t){var i=!1,f=this,r,u;if(!n||!n.target||n.target.nodeName==="OPTION"||n.target.nodeName==="OPTGROUP"){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(r=0;r<t.addedNodes.length;r++)u=t.addedNodes[r],u.selected&&(i=!0);else t.removedNodes&&t.removedNodes.length>0&&(i=!0);else i=!0;i&&this.dataAdapter.current(function(n){f.trigger("selection:update",{data:n})})}},u.prototype.trigger=function(n,t){var r=u.__super__.trigger,f={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"},e,i;if(t===undefined&&(t={}),n in f&&(e=f[n],i={prevented:!1,name:n,args:t},r.call(this,e,i),i.prevented)){t.prevented=!0;return}r.call(this,n,t)},u.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||this.trigger("query",{})},u.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},u.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},u.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},u.prototype.focus=function(){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},u.prototype.enable=function(n){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');(n==null||n.length===0)&&(n=[!0]);var t=!n[0];this.$element.prop("disabled",t)},u.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var n=[];return this.dataAdapter.current(function(t){n=t}),n},u.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),t==null||t.length===0)return this.$element.val();var i=t[0];n.isArray(i)&&(i=n.map(i,function(n){return n.toString()}));this.$element.val(i).trigger("change")},u.prototype.destroy=function(){this.$container.remove();this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA);this._observer!=null?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1));this._syncA=null;this._syncS=null;this.$element.off(".select2");this.$element.attr("tabindex",this.$element.data("old-tabindex"));this.$element.removeClass("select2-hidden-accessible");this.$element.attr("aria-hidden","false");this.$element.removeData("select2");this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.dataAdapter=null;this.selection=null;this.dropdown=null;this.results=null},u.prototype.render=function(){var t=n('<span class="select2 select2-container"><span class="selection"><\/span><span class="dropdown-wrapper" aria-hidden="true"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},u}),t.define("select2/compat/utils",["jquery"],function(n){function t(t,i,r){var u,f=[],e;u=n.trim(t.attr("class"));u&&(u=""+u,n(u.split(/\s+/)).each(function(){this.indexOf("select2-")===0&&f.push(this)}));u=n.trim(i.attr("class"));u&&(u=""+u,n(u.split(/\s+/)).each(function(){this.indexOf("select2-")!==0&&(e=r(this),e!=null&&f.push(e))}));t.attr("class",f.join(" "))}return{syncCssClasses:t}}),t.define("select2/compat/containerCss",["jquery","./utils"],function(n,t){function r(){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),u=this.options.get("containerCssClass")||"",f,s,e;return n.isFunction(u)&&(u=u(this.$element)),f=this.options.get("adaptContainerCssClass"),f=f||r,u.indexOf(":all:")!==-1&&(u=u.replace(":all:",""),s=f,f=function(n){var t=s(n);return t!=null?t+" "+n:n}),e=this.options.get("containerCss")||{},n.isFunction(e)&&(e=e(this.$element)),t.syncCssClasses(o,this.$element,f),o.css(e),o.addClass(u),o},i}),t.define("select2/compat/dropdownCss",["jquery","./utils"],function(n,t){function r(){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),u=this.options.get("dropdownCssClass")||"",f,s,e;return n.isFunction(u)&&(u=u(this.$element)),f=this.options.get("adaptDropdownCssClass"),f=f||r,u.indexOf(":all:")!==-1&&(u=u.replace(":all:",""),s=f,f=function(n){var t=s(n);return t!=null?t+" "+n:n}),e=this.options.get("dropdownCss")||{},n.isFunction(e)&&(e=e(this.$element)),t.syncCssClasses(o,this.$element,f),o.css(e),o.addClass(u),o},i}),t.define("select2/compat/initSelection",["jquery"],function(n){function t(n,t,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2");this.initSelection=i.get("initSelection");this._isInitialized=!1;n.call(this,t,i)}return t.prototype.current=function(t,i){var r=this;if(this._isInitialized){t.call(this,i);return}this.initSelection.call(null,this.$element,function(t){r._isInitialized=!0;n.isArray(t)||(t=[t]);i(t)})},t}),t.define("select2/compat/inputData",["jquery"],function(n){function t(n,t,i){this._currentData=[];this._valueSeparator=i.get("valueSeparator")||",";t.prop("type")==="hidden"&&i.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead.");n.call(this,t,i)}return t.prototype.current=function(t,i){function f(t,i){var r=[];return t.selected||n.inArray(t.id,i)!==-1?(t.selected=!0,r.push(t)):t.selected=!1,t.children&&r.push.apply(r,f(t.children,i)),r}for(var u=[],e,r=0;r<this._currentData.length;r++)e=this._currentData[r],u.push.apply(u,f(e,this.$element.val().split(this._valueSeparator)));i(u)},t.prototype.select=function(t,i){if(this.options.get("multiple")){var r=this.$element.val();r+=this._valueSeparator+i.id;this.$element.val(r);this.$element.trigger("change")}else this.current(function(t){n.map(t,function(n){n.selected=!1})}),this.$element.val(i.id),this.$element.trigger("change")},t.prototype.unselect=function(n,t){var i=this;t.selected=!1;this.current(function(n){for(var f=[],u,r=0;r<n.length;r++)(u=n[r],t.id!=u.id)&&f.push(u.id);i.$element.val(f.join(i._valueSeparator));i.$element.trigger("change")})},t.prototype.query=function(n,t,i){for(var f=[],e,u,r=0;r<this._currentData.length;r++)e=this._currentData[r],u=this.matches(t,e),u!==null&&f.push(u);i({results:f})},t.prototype.addOptions=function(t,i){var r=n.map(i,function(t){return n.data(t[0],"data")});this._currentData.push.apply(this._currentData,r)},t}),t.define("select2/compat/matcher",["jquery"],function(n){function t(t){function i(i,r){var u=n.extend(!0,{},r),f,e,o;if(i.term==null||n.trim(i.term)==="")return u;if(r.children){for(f=r.children.length-1;f>=0;f--)e=r.children[f],o=t(i.term,e.text,e),o||u.children.splice(f,1);if(u.children.length>0)return u}return t(i.term,r.text,r)?u:null}return i}return t}),t.define("select2/compat/query",[],function(){function n(n,t,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2.");n.call(this,t,i)}return n.prototype.query=function(n,t,i){t.callback=i;var r=this.options.get("query");r.call(null,t)},n}),t.define("select2/dropdown/attachContainer",[],function(){function n(n,t,i){n.call(this,t,i)}return n.prototype.position=function(n,t,i){var r=i.find(".dropdown-wrapper");r.append(t);t.addClass("select2-dropdown--below");i.addClass("select2-container--below")},n}),t.define("select2/dropdown/stopPropagation",[],function(){function n(){}return n.prototype.bind=function(n,t,i){n.call(this,t,i);this.$dropdown.on("blur change click dblclick focus focusin focusout input keydown keyup keypress mousedown mouseenter mouseleave mousemove mouseover mouseup search touchend touchstart",function(n){n.stopPropagation()})},n}),t.define("select2/selection/stopPropagation",[],function(){function n(){}return n.prototype.bind=function(n,t,i){n.call(this,t,i);this.$selection.on("blur change click dblclick focus focusin focusout input keydown keyup keypress mousedown mouseenter mouseleave mousemove mouseover mouseup search touchend touchstart",function(n){n.stopPropagation()})},n}),function(i){typeof t.define=="function"&&t.define.amd?t.define("jquery-mousewheel",["jquery"],i):typeof exports=="object"?module.exports=i:i(n)}(function(n){function e(r){var f=r||window.event,w=h.call(arguments,1),l=0,o=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(f),r.type="mousewheel","detail"in f&&(e=f.detail*-1),"wheelDelta"in f&&(e=f.wheelDelta),"wheelDeltaY"in f&&(e=f.wheelDeltaY),"wheelDeltaX"in f&&(o=f.wheelDeltaX*-1),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(o=e*-1,e=0),l=e===0?o:e,"deltaY"in f&&(e=f.deltaY*-1,l=e),"deltaX"in f&&(o=f.deltaX,e===0&&(l=o*-1)),e!==0||o!==0)return f.deltaMode===1?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,o*=v):f.deltaMode===2&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,o*=y),a=Math.max(Math.abs(e),Math.abs(o)),(!t||a<t)&&(t=a,s(f,a)&&(t/=40)),s(f,a)&&(l/=40,o/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),o=Math[o>=1?"floor":"ceil"](o/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=o,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,o,e),u&&clearTimeout(u),u=setTimeout(c,200),(n.event.dispatch||n.event.handle).apply(this,w)}function c(){t=null}function s(n,t){return i.settings.adjustOldDeltas&&n.type==="mousewheel"&&t%120==0}var o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice,u,t,f,i;if(n.event.fixHooks)for(f=o.length;f;)n.event.fixHooks[o[--f]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],e,!1);else this.onmousewheel=e;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],e,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(n,t,i,r){if(n.fn.select2==null){var u=["open","close","destroy"];n.fn.select2=function(t){if(t=t||{},typeof t=="object")return this.each(function(){var r=n.extend(!0,{},t),u=new i(n(this),r)}),this;if(typeof t=="string"){var r,f=Array.prototype.slice.call(arguments,1);return(this.each(function(){var i=n(this).data("select2");i==null&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2.");r=i[t].apply(i,f)}),n.inArray(t,u)>-1)?this:r}throw new Error("Invalid arguments for Select2: "+t);}}return n.fn.select2.defaults==null&&(n.fn.select2.defaults=r),i}),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return n.fn.select2.amd=t,i}),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;return n.define("select2/i18n/sv",[],function(){return{errorLoading:function(){return"Resultat kunde inte laddas."},inputTooLong:function(n){var t=n.input.length-n.maximum;return"Vänligen sudda ut "+t+" tecken"},inputTooShort:function(n){var t=n.minimum-n.input.length;return"Vänligen skriv in "+t+" eller fler tecken"},loadingMore:function(){return"Laddar fler resultat…"},maximumSelected:function(n){return"Du kan max välja "+n.maximum+" element"},noResults:function(){return"Inga träffar"},searching:function(){return"Söker…"}}}),{define:n.define,require:n.require}}(),function(n){"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,i){return t||(t=window),i||(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),n(i,t,t.document)}:n(jQuery,window,document)}(function(n,t,i,r){function ct(t){var i,r,u={};n.each(t,function(n){(i=n.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(i[1]+" ")&&(r=n.replace(i[0],i[2].toLowerCase()),u[r]=n,"o"===i[1]&&ct(t[n]))});t._hungarianMap=u}function g(t,i,u){t._hungarianMap||ct(t);var f;n.each(i,function(e){f=t._hungarianMap[e];f!==r&&(u||i[f]===r)&&("o"===f.charAt(0)?(i[f]||(i[f]={}),n.extend(!0,i[f],i[e]),g(t[f],i[f],u)):i[f]=i[e])})}function nr(n){var t=u.defaults.oLanguage,i=n.sZeroRecords;!n.sEmptyTable&&i&&"No data available in table"===t.sEmptyTable&&k(n,n,"sZeroRecords","sEmptyTable");!n.sLoadingRecords&&i&&"Loading..."===t.sLoadingRecords&&k(n,n,"sZeroRecords","sLoadingRecords");n.sInfoThousands&&(n.sThousands=n.sInfoThousands);(n=n.sDecimal)&&te(n)}function hu(n){if(p(n,"ordering","bSort"),p(n,"orderMulti","bSortMulti"),p(n,"orderClasses","bSortClasses"),p(n,"orderCellsTop","bSortCellsTop"),p(n,"order","aaSorting"),p(n,"orderFixed","aaSortingFixed"),p(n,"paging","bPaginate"),p(n,"pagingType","sPaginationType"),p(n,"pageLength","iDisplayLength"),p(n,"searching","bFilter"),"boolean"==typeof n.sScrollX&&(n.sScrollX=n.sScrollX?"100%":""),"boolean"==typeof n.scrollX&&(n.scrollX=n.scrollX?"100%":""),n=n.aoSearchCols)for(var t=0,i=n.length;t<i;t++)n[t]&&g(u.models.oSearch,n[t])}function cu(t){p(t,"orderable","bSortable");p(t,"orderData","aDataSort");p(t,"orderSequence","asSorting");p(t,"orderDataType","sortDataType");var i=t.aDataSort;"number"!=typeof i||n.isArray(i)||(t.aDataSort=[i])}function lu(i){var r;if(!u.__browser){r={};u.__browser=r;var e=n("<div/>").css({position:"fixed",top:0,left:-1*n(t).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(n("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(n("<div/>").css({width:"100%",height:10}))).appendTo("body"),f=e.children(),o=f.children();r.barWidth=f[0].offsetWidth-f[0].clientWidth;r.bScrollOversize=100===o[0].offsetWidth&&100!==f[0].clientWidth;r.bScrollbarLeft=1!==Math.round(o.offset().left);r.bBounding=e[0].getBoundingClientRect().width?!0:!1;e.remove()}n.extend(i.oBrowser,u.__browser);i.oScroll.iBarWidth=u.__browser.barWidth}function au(n,t,i,u,f,e){var o,s=!1;for(i!==r&&(o=i,s=!0);u!==f;)n.hasOwnProperty(u)&&(o=s?t(o,n[u],u,n):n[u],s=!0,u+=e);return o}function tr(t,r){var f=u.defaults.column,e=t.aoColumns.length,f=n.extend({},u.models.oColumn,f,{nTh:r?r:i.createElement("th"),sTitle:f.sTitle?f.sTitle:r?r.innerHTML:"",aDataSort:f.aDataSort?f.aDataSort:[e],mData:f.mData?f.mData:e,idx:e});t.aoColumns.push(f);f=t.aoPreSearchCols;f[e]=n.extend({},u.models.oSearch,f[e]);ri(t,e,n(r).data())}function ri(t,i,f){var i=t.aoColumns[i],e=t.oClasses,s=n(i.nTh),h;i.sWidthOrig||(i.sWidthOrig=s.attr("width")||null,h=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/),h&&(i.sWidthOrig=h[1]));f!==r&&null!==f&&(cu(f),g(u.defaults.column,f),f.mDataProp!==r&&!f.mData&&(f.mData=f.mDataProp),f.sType&&(i._sManualType=f.sType),f.className&&!f.sClass&&(f.sClass=f.className),f.sClass&&s.addClass(f.sClass),n.extend(i,f),k(i,f,"sWidth","sWidthOrig"),f.iDataSort!==r&&(i.aDataSort=[f.iDataSort]),k(i,f,"aDataSort"));var o=i.mData,l=ut(o),c=i.mRender?ut(i.mRender):null,f=function(n){return"string"==typeof n&&-1!==n.indexOf("@")};i._bAttrSrc=n.isPlainObject(o)&&(f(o.sort)||f(o.type)||f(o.filter));i._setter=null;i.fnGetData=function(n,t,i){var u=l(n,t,r,i);return c&&t?c(u,t,n,i):u};i.fnSetData=function(n,t,i){return ft(o)(n,t,i)};"number"!=typeof o&&(t._rowReadObject=!0);t.oFeatures.bSort||(i.bSortable=!1,s.addClass(e.sSortableNone));t=-1!==n.inArray("asc",i.asSorting);f=-1!==n.inArray("desc",i.asSorting);!i.bSortable||!t&&!f?(i.sSortingClass=e.sSortableNone,i.sSortingClassJUI=""):t&&!f?(i.sSortingClass=e.sSortableAsc,i.sSortingClassJUI=e.sSortJUIAscAllowed):!t&&f?(i.sSortingClass=e.sSortableDesc,i.sSortingClassJUI=e.sSortJUIDescAllowed):(i.sSortingClass=e.sSortable,i.sSortingClassJUI=e.sSortJUI)}function lt(n){var t,i,r;if(!1!==n.oFeatures.bAutoWidth)for(t=n.aoColumns,lr(n),i=0,r=t.length;i<r;i++)t[i].nTh.style.width=t[i].sWidth;t=n.oScroll;(""!==t.sY||""!==t.sX)&&ai(n);o(n,null,"column-sizing",[n])}function at(n,t){var i=ui(n,"bVisible");return"number"==typeof i[t]?i[t]:null}function vt(t,i){var r=ui(t,"bVisible"),r=n.inArray(i,r);return-1!==r?r:null}function yt(t){var i=0;return n.each(t.aoColumns,function(t,r){r.bVisible&&"none"!==n(r.nTh).css("display")&&i++}),i}function ui(t,i){var r=[];return n.map(t.aoColumns,function(n,t){n[i]&&r.push(t)}),r}function ir(n){for(var c=n.aoColumns,p=n.aoData,h=u.ext.type.detect,e,a,i,v,t,o,s,f=0,l=c.length;f<l;f++)if(t=c[f],s=[],!t.sType&&t._sManualType)t.sType=t._sManualType;else if(!t.sType){for(e=0,a=h.length;e<a;e++){for(i=0,v=p.length;i<v;i++){if(s[i]===r&&(s[i]=y(n,i,f,"type")),o=h[e](s[i],n),!o&&e!==h.length-1)break;if("html"===o)break}if(o){t.sType=o;break}}t.sType||(t.sType="string")}}function vu(t,i,u,f){var s,o,a,c,v,h,l=t.aoColumns,e;if(i)for(s=i.length-1;0<=s;s--)for(h=i[s],e=h.targets!==r?h.targets:h.aTargets,n.isArray(e)||(e=[e]),o=0,a=e.length;o<a;o++)if("number"==typeof e[o]&&0<=e[o]){for(;l.length<=e[o];)tr(t);f(e[o],h)}else if("number"==typeof e[o]&&0>e[o])f(l.length+e[o],h);else if("string"==typeof e[o])for(c=0,v=l.length;c<v;c++)("_all"==e[o]||n(l[c].nTh).hasClass(e[o]))&&f(c,h);if(u)for(s=0,t=u.length;s<t;s++)f(s,u[s])}function it(t,i,f,e){var o=t.aoData.length,s=n.extend(!0,{},u.models.oRow,{src:f?"dom":"data",idx:o});s._aData=i;t.aoData.push(s);for(var c=t.aoColumns,h=0,l=c.length;h<l;h++)c[h].sType=null;return t.aiDisplayMaster.push(o),i=t.rowIdFn(i),i!==r&&(t.aIds[i]=s),(f||!t.oFeatures.bDeferRender)&&er(t,o,f,e),o}function fi(t,i){var r;return i instanceof n||(i=n(i)),i.map(function(n,i){return r=fr(t,i),it(t,r.data,i,r.cells)})}function y(n,t,i,u){var h=n.iDraw,e=n.aoColumns[i],s=n.aoData[t]._aData,o=e.sDefaultContent,f=e.fnGetData(s,u,{settings:n,row:t,col:i});if(f===r)return n.iDrawError!=h&&null===o&&(nt(n,0,"Requested unknown parameter "+("function"==typeof e.mData?"{function}":"'"+e.mData+"'")+" for row "+t+", column "+i,4),n.iDrawError=h),o;if((f===s||null===f)&&null!==o&&u!==r)f=o;else if("function"==typeof f)return f.call(s);return null===f&&"display"==u?"":f}function yu(n,t,i,r){n.aoColumns[i].fnSetData(n.aoData[t]._aData,r,{settings:n,row:t,col:i})}function rr(t){return n.map(t.match(/(\\.|[^\.])+/g)||[""],function(n){return n.replace(/\\\./g,".")})}function ut(t){var i,u;return n.isPlainObject(t)?(i={},n.each(t,function(n,t){t&&(i[n]=ut(t))}),function(n,t,u,f){var e=i[t]||i._;return e!==r?e(n,t,u,f):n}):null===t?function(n){return n}:"function"==typeof t?function(n,i,r,u){return t(n,i,r,u)}:"string"==typeof t&&(-1!==t.indexOf(".")||-1!==t.indexOf("[")||-1!==t.indexOf("("))?(u=function(t,i,f){var s,o,e,h;if(""!==f)for(o=rr(f),e=0,h=o.length;e<h;e++){if(f=o[e].match(ti),s=o[e].match(ht),f){if(o[e]=o[e].replace(ti,""),""!==o[e]&&(t=t[o[e]]),s=[],o.splice(0,e+1),o=o.join("."),n.isArray(t))for(e=0,h=t.length;e<h;e++)s.push(u(t[e],i,o));t=f[0].substring(1,f[0].length-1);t=""===t?s:s.join(t);break}else if(s){o[e]=o[e].replace(ht,"");t=t[o[e]]();continue}if(null===t||t[o[e]]===r)return r;t=t[o[e]]}return t},function(n,i){return u(n,i,t)}):function(n){return n[t]}}function ft(t){if(n.isPlainObject(t))return ft(t._);if(null===t)return function(){};if("function"==typeof t)return function(n,i,r){t(n,"set",i,r)};if("string"==typeof t&&(-1!==t.indexOf(".")||-1!==t.indexOf("[")||-1!==t.indexOf("("))){var i=function(t,u,f){var f=rr(f),o,h,s,e,c;for(o=f[f.length-1],e=0,c=f.length-1;e<c;e++){if(h=f[e].match(ti),s=f[e].match(ht),h){if(f[e]=f[e].replace(ti,""),t[f[e]]=[],o=f.slice(),o.splice(0,e+1),h=o.join("."),n.isArray(u))for(s=0,c=u.length;s<c;s++)o={},i(o,u[s],h),t[f[e]].push(o);else t[f[e]]=u;return}s&&(f[e]=f[e].replace(ht,""),t=t[f[e]](u));(null===t[f[e]]||t[f[e]]===r)&&(t[f[e]]={});t=t[f[e]]}o.match(ht)?t[o.replace(ht,"")](u):t[o.replace(ti,"")]=u};return function(n,r){return i(n,r,t)}}return function(n,i){n[t]=i}}function ur(n){return b(n.aoData,"_aData")}function ei(n){n.aoData.length=0;n.aiDisplayMaster.length=0;n.aiDisplay.length=0;n.aIds={}}function oi(n,t,i){for(var f=-1,u=0,e=n.length;u<e;u++)n[u]==t?f=u:n[u]>t&&n[u]--;-1!=f&&i===r&&n.splice(f,1)}function pt(n,t,i,u){var f=n.aoData[t],s,e=function(i,r){for(;i.childNodes.length;)i.removeChild(i.firstChild);i.innerHTML=y(n,t,r,"display")},o;if("dom"!==i&&(i&&"auto"!==i||"dom"!==f.src)){if(o=f.anCells,o)if(u!==r)e(o[u],u);else for(i=0,s=o.length;i<s;i++)e(o[i],i)}else f._aData=fr(n,f,u,u===r?r:f._aData).data;if(f._aSortData=null,f._aFilterData=null,e=n.aoColumns,u!==r)e[u].sType=null;else{for(i=0,s=e.length;i<s;i++)e[i].sType=null;or(n,f)}}function fr(t,i,u,f){var s=[],e=i.firstChild,h,o,c=0,l,p=t.aoColumns,v=t._rowReadObject,f=f!==r?f:v?{}:[],a=function(n,t){if("string"==typeof n){var i=n.indexOf("@");-1!==i&&(i=n.substring(i+1),ft(n)(f,t.getAttribute(i)))}},y=function(t){(u===r||u===c)&&(o=p[c],l=n.trim(t.innerHTML),o&&o._bAttrSrc?(ft(o.mData._)(f,l),a(o.mData.sort,t),a(o.mData.type,t),a(o.mData.filter,t)):v?(o._setter||(o._setter=ft(o.mData)),o._setter(f,l)):f[c]=l);c++};if(e)for(;e;)h=e.nodeName.toUpperCase(),("TD"==h||"TH"==h)&&(y(e),s.push(e)),e=e.nextSibling;else for(s=i.anCells,e=0,h=s.length;e<h;e++)y(s[e]);return(i=i.firstChild?i:i.nTr)&&(i=i.getAttribute("id"))&&ft(t.rowId)(f,i),{data:f,cells:s}}function er(t,r,u,f){var c=t.aoData[r],a=c._aData,v=[],l,h,e,s,p;if(null===c.nTr){for(l=u||i.createElement("tr"),c.nTr=l,c.anCells=v,l._DT_RowIndex=r,or(t,c),s=0,p=t.aoColumns.length;s<p;s++)e=t.aoColumns[s],h=u?f[s]:i.createElement(e.sCellType),h._DT_CellIndex={row:r,column:s},v.push(h),u&&!e.mRender&&e.mData===s||n.isPlainObject(e.mData)&&e.mData._===s+".display"||(h.innerHTML=y(t,r,s,"display")),e.sClass&&(h.className+=" "+e.sClass),e.bVisible&&!u?l.appendChild(h):!e.bVisible&&u&&h.parentNode.removeChild(h),e.fnCreatedCell&&e.fnCreatedCell.call(t.oInstance,h,y(t,r,s),a,r,s);o(t,"aoRowCreatedCallback",null,[l,a,r])}c.nTr.setAttribute("role","row")}function or(t,i){var f=i.nTr,r=i._aData,u;f&&(u=t.rowIdFn(r),u&&(f.id=u),r.DT_RowClass&&(u=r.DT_RowClass.split(" "),i.__rowc=i.__rowc?bi(i.__rowc.concat(u)):u,n(f).removeClass(i.__rowc.join(" ")).addClass(r.DT_RowClass)),r.DT_RowAttr&&n(f).attr(r.DT_RowAttr),r.DT_RowData&&n(f).data(r.DT_RowData))}function pu(t){var r,e,u,c,i,f=t.nTHead,l=t.nTFoot,o=0===n("th, td",f).length,s=t.oClasses,h=t.aoColumns;for(o&&(c=n("<tr/>").appendTo(f)),r=0,e=h.length;r<e;r++)i=h[r],u=n(i.nTh).addClass(i.sClass),o&&u.appendTo(c),t.oFeatures.bSort&&(u.addClass(i.sSortingClass),!1!==i.bSortable&&(u.attr("tabindex",t.iTabIndex).attr("aria-controls",t.sTableId),vr(t,i.nTh,r))),i.sTitle!=u[0].innerHTML&&u.html(i.sTitle),wr(t,"header")(t,u,i,s);if(o&&bt(t.aoHeader,f),n(f).find(">tr").attr("role","row"),n(f).find(">tr>th, >tr>td").addClass(s.sHeaderTH),n(l).find(">tr>th, >tr>td").addClass(s.sFooterTH),null!==l)for(t=t.aoFooter[0],r=0,e=t.length;r<e;r++)i=h[r],i.nTf=t[r].cell,i.sClass&&n(i.nTf).addClass(i.sClass)}function wt(t,i,u){var f,l,e,o=[],c=[],s=t.aoColumns.length,h;if(i){for(u===r&&(u=!1),f=0,l=i.length;f<l;f++){for(o[f]=i[f].slice(),o[f].nTr=i[f].nTr,e=s-1;0<=e;e--)t.aoColumns[e].bVisible||u||o[f].splice(e,1);c.push([])}for(f=0,l=o.length;f<l;f++){if(t=o[f].nTr)for(;e=t.firstChild;)t.removeChild(e);for(e=0,i=o[f].length;e<i;e++)if(h=s=1,c[f][e]===r){for(t.appendChild(o[f][e].cell),c[f][e]=1;o[f+s]!==r&&o[f][e].cell==o[f+s][e].cell;)c[f+s][e]=1,s++;for(;o[f][e+h]!==r&&o[f][e].cell==o[f][e+h].cell;){for(u=0;u<s;u++)c[f+u][e+h]=1;h++}n(o[f][e].cell).attr("rowspan",s).attr("colspan",h)}}}}function rt(t){var l=o(t,"aoPreDrawCallback","preDraw",[t]),i,y,e,s,p;if(-1!==n.inArray(!1,l))w(t,!1);else{var l=[],f=0,h=t.asStripeClasses,b=h.length,c=t.oLanguage,i=t.iInitDisplayStart,u="ssp"==v(t),a=t.aiDisplay;if(t.bDrawing=!0,i!==r&&-1!==i&&(t._iDisplayStart=u?i:i>=t.fnRecordsDisplay()?0:i,t.iInitDisplayStart=-1),i=t._iDisplayStart,y=t.fnDisplayEnd(),t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,w(t,!1);else if(u){if(!t.bDestroying&&!bu(t))return}else t.iDraw++;if(0!==a.length)for(c=u?t.aoData.length:y,u=u?0:i;u<c;u++)e=a[u],s=t.aoData[e],null===s.nTr&&er(t,e),e=s.nTr,0!==b&&(p=h[f%b],s._sRowStripe!=p&&(n(e).removeClass(s._sRowStripe).addClass(p),s._sRowStripe=p)),o(t,"aoRowCallback",null,[e,s._aData,f,u]),l.push(e),f++;else f=c.sZeroRecords,1==t.iDraw&&"ajax"==v(t)?f=c.sLoadingRecords:c.sEmptyTable&&0===t.fnRecordsTotal()&&(f=c.sEmptyTable),l[0]=n("<tr/>",{"class":b?h[0]:""}).append(n("<td />",{valign:"top",colSpan:yt(t),"class":t.oClasses.sRowEmpty}).html(f))[0];o(t,"aoHeaderCallback","header",[n(t.nTHead).children("tr")[0],ur(t),i,y,a]);o(t,"aoFooterCallback","footer",[n(t.nTFoot).children("tr")[0],ur(t),i,y,a]);h=n(t.nTBody);h.children().detach();h.append(n(l));o(t,"aoDrawCallback","draw",[t]);t.bSorted=!1;t.bFiltered=!1;t.bDrawing=!1}}function et(n,t){var i=n.oFeatures,r=i.bFilter;i.bSort&&bf(n);r?kt(n,n.oPreviousSearch):n.aiDisplay=n.aiDisplayMaster.slice();!0!==t&&(n._iDisplayStart=0);n._drawHold=t;rt(n);n._drawHold=!1}function wu(t){var v=t.oClasses,y=n(t.nTable),y=n("<div/>").insertBefore(y),l=t.oFeatures,c=n("<div/>",{id:t.sTableId+"_wrapper","class":v.sWrapper+(t.nTFoot?"":" "+v.sNoFooter)}),a,e,r,i,o,f,s,h;for(t.nHolding=y[0],t.nTableWrapper=c[0],t.nTableReinsertBefore=t.nTable.nextSibling,a=t.sDom.split(""),h=0;h<a.length;h++){if(e=null,r=a[h],"<"==r){if(i=n("<div/>")[0],o=a[h+1],"'"==o||'"'==o){for(f="",s=2;a[h+s]!=o;)f+=a[h+s],s++;"H"==f?f=v.sJUIHeader:"F"==f&&(f=v.sJUIFooter);-1!=f.indexOf(".")?(o=f.split("."),i.id=o[0].substr(1,o[0].length-1),i.className=o[1]):"#"==f.charAt(0)?i.id=f.substr(1,f.length-1):i.className=f;h+=s}c.append(i);c=n(i)}else if(">"==r)c=c.parent();else if("l"==r&&l.bPaginate&&l.bLengthChange)e=cf(t);else if("f"==r&&l.bFilter)e=gu(t);else if("r"==r&&l.bProcessing)e=af(t);else if("t"==r)e=vf(t);else if("i"==r&&l.bInfo)e=of(t);else if("p"==r&&l.bPaginate)e=lf(t);else if(0!==u.ext.feature.length)for(i=u.ext.feature,s=0,o=i.length;s<o;s++)if(r==i[s].cFeature){e=i[s].fnInit(t);break}e&&(i=t.aanFeatures,i[r]||(i[r]=[]),i[r].push(e),c.append(e))}y.replaceWith(c);t.nHolding=null}function bt(t,i){var c=n(i).children("tr"),l,u,r,f,s,h,a,e,o,v;for(t.splice(0,t.length),r=0,h=c.length;r<h;r++)t.push([]);for(r=0,h=c.length;r<h;r++)for(l=c[r],u=l.firstChild;u;){if("TD"==u.nodeName.toUpperCase()||"TH"==u.nodeName.toUpperCase()){for(e=1*u.getAttribute("colspan"),o=1*u.getAttribute("rowspan"),e=!e||0===e||1===e?1:e,o=!o||0===o||1===o?1:o,f=0,s=t[r];s[f];)f++;for(a=f,v=1===e?!0:!1,s=0;s<e;s++)for(f=0;f<o;f++)t[r+f][a+s]={cell:u,unique:v},t[r+f].nTr=l}u=u.nextSibling}}function si(n,t,i){var u=[],t,f,r,e;for(i||(i=n.aoHeader,t&&(i=[],bt(i,t))),t=0,f=i.length;t<f;t++)for(r=0,e=i[t].length;r<e;r++)!i[t][r].unique||u[r]&&n.bSortCellsTop||(u[r]=i[t][r].cell);return u}function hi(t,i,r){var e,c,f,i;o(t,"aoServerParams","serverParams",[i]);i&&n.isArray(i)&&(e={},c=/(.*?)\[\]$/,n.each(i,function(n,t){var i=t.name.match(c);i?(i=i[0],e[i]||(e[i]=[]),e[i].push(t.value)):e[t.name]=t.value}),i=e);var s,u=t.ajax,l=t.oInstance,h=function(n){o(t,null,"xhr",[t,n,t.jqXHR]);r(n)};n.isPlainObject(u)&&u.data&&(s=u.data,f=n.isFunction(s)?s(i,t):s,i=n.isFunction(s)&&f?f:n.extend(!0,i,f),delete u.data);f={data:i,success:function(n){var i=n.error||n.sError;i&&nt(t,0,i);t.json=n;h(n)},dataType:"json",cache:!1,type:t.sServerMethod,error:function(i,r){var u=o(t,null,"xhr",[t,null,t.jqXHR]);-1===n.inArray(!0,u)&&("parsererror"==r?nt(t,0,"Invalid JSON response",1):4===i.readyState&&nt(t,0,"Ajax error",7));w(t,!1)}};t.oAjaxData=i;o(t,null,"preXhr",[t,i]);t.fnServerData?t.fnServerData.call(l,t.sAjaxSource,n.map(i,function(n,t){return{name:t,value:n}}),h,t):t.sAjaxSource||"string"==typeof u?t.jqXHR=n.ajax(n.extend(f,{url:u||t.sAjaxSource})):n.isFunction(u)?t.jqXHR=u.call(l,i,h,t):(t.jqXHR=n.ajax(n.extend(f,u)),u.data=s)}function bu(n){return n.bAjaxDataGet?(n.iDraw++,w(n,!0),hi(n,ku(n),function(t){du(n,t)}),!1):!0}function ku(t){var e=t.aoColumns,v=e.length,s=t.oFeatures,l=t.oPreviousSearch,p=t.aoPreSearchCols,r,a=[],o,f,h,y=ot(t),i,c;for(r=t._iDisplayStart,o=!1!==s.bPaginate?t._iDisplayLength:-1,i=function(n,t){a.push({name:n,value:t})},i("sEcho",t.iDraw),i("iColumns",v),i("sColumns",b(e,"sName").join(",")),i("iDisplayStart",r),i("iDisplayLength",o),c={draw:t.iDraw,columns:[],order:[],start:r,length:o,search:{value:l.sSearch,regex:l.bRegex}},r=0;r<v;r++)f=e[r],h=p[r],o="function"==typeof f.mData?"function":f.mData,c.columns.push({data:o,name:f.sName,searchable:f.bSearchable,orderable:f.bSortable,search:{value:h.sSearch,regex:h.bRegex}}),i("mDataProp_"+r,o),s.bFilter&&(i("sSearch_"+r,h.sSearch),i("bRegex_"+r,h.bRegex),i("bSearchable_"+r,f.bSearchable)),s.bSort&&i("bSortable_"+r,f.bSortable);return s.bFilter&&(i("sSearch",l.sSearch),i("bRegex",l.bRegex)),s.bSort&&(n.each(y,function(n,t){c.order.push({column:t.col,dir:t.dir});i("iSortCol_"+n,t.col);i("sSortDir_"+n,t.dir)}),i("iSortingCols",y.length)),e=u.ext.legacy.ajax,null===e?t.sAjaxSource?a:c:e?a:c}function du(n,t){var f=ci(n,t),i=t.sEcho!==r?t.sEcho:t.draw,u=t.iTotalRecords!==r?t.iTotalRecords:t.recordsTotal,e=t.iTotalDisplayRecords!==r?t.iTotalDisplayRecords:t.recordsFiltered;if(i){if(1*i<n.iDraw)return;n.iDraw=1*i}for(ei(n),n._iRecordsTotal=parseInt(u,10),n._iRecordsDisplay=parseInt(e,10),i=0,u=f.length;i<u;i++)it(n,f[i]);n.aiDisplay=n.aiDisplayMaster.slice();n.bAjaxDataGet=!1;rt(n);n._bInitComplete||li(n,t);n.bAjaxDataGet=!0;w(n,!1)}function ci(t,i){var u=n.isPlainObject(t.ajax)&&t.ajax.dataSrc!==r?t.ajax.dataSrc:t.sAjaxDataProp;return"data"===u?i.aaData||i[u]:""!==u?ut(u)(i):i}function gu(t){var u=t.oClasses,s=t.sTableId,h=t.oLanguage,r=t.oPreviousSearch,o=t.aanFeatures,f='<input type="search" class="'+u.sFilterInput+'"/>',e=h.sSearch,e=e.match(/_INPUT_/)?e.replace("_INPUT_",f):e+f,u=n("<div/>",{id:o.f?null:s+"_filter","class":u.sFilter}).append(n("<label/>").append(e)),o=function(){var n=this.value?this.value:"";n!=r.sSearch&&(kt(t,{sSearch:n,bRegex:r.bRegex,bSmart:r.bSmart,bCaseInsensitive:r.bCaseInsensitive}),t._iDisplayStart=0,rt(t))},f=null!==t.searchDelay?t.searchDelay:"ssp"===v(t)?400:0,c=n("input",u).val(r.sSearch).attr("placeholder",h.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",f?nu(o,f):o).on("keypress.DT",function(n){if(13==n.keyCode)return!1}).attr("aria-controls",s);n(t.nTable).on("search.dt.DT",function(n,u){if(t===u)try{c[0]!==i.activeElement&&c.val(r.sSearch)}catch(f){}});return u[0]}function kt(n,t,i){var f=n.oPreviousSearch,u=n.aoPreSearchCols,e=function(n){f.sSearch=n.sSearch;f.bRegex=n.bRegex;f.bSmart=n.bSmart;f.bCaseInsensitive=n.bCaseInsensitive};if(ir(n),"ssp"!=v(n)){for(rf(n,t.sSearch,i,t.bEscapeRegex!==r?!t.bEscapeRegex:t.bRegex,t.bSmart,t.bCaseInsensitive),e(t),t=0;t<u.length;t++)tf(n,u[t].sSearch,t,u[t].bEscapeRegex!==r?!u[t].bEscapeRegex:u[t].bRegex,u[t].bSmart,u[t].bCaseInsensitive);nf(n)}else e(t);n.bFiltered=!0;o(n,null,"search",[n])}function nf(t){for(var s=u.ext.search,i=t.aiDisplay,e,r,o=0,c=s.length;o<c;o++){for(var h=[],f=0,l=i.length;f<l;f++)r=i[f],e=t.aoData[r],s[o](t,e._aFilterData,r,e._aData,f)&&h.push(r);i.length=0;n.merge(i,h)}}function tf(n,t,i,r,u,f){if(""!==t){for(var o=[],e=n.aiDisplay,r=sr(t,r,u,f),u=0;u<e.length;u++)t=n.aoData[e[u]]._aFilterData[i],r.test(t)&&o.push(e[u]);n.aiDisplay=o}}function rf(n,t,i,r,f,e){var r=sr(t,r,f,e),e=n.oPreviousSearch.sSearch,o=n.aiDisplayMaster,s,f=[];if(0!==u.ext.search.length&&(i=!0),s=uf(n),0>=t.length)n.aiDisplay=o.slice();else{for((s||i||e.length>t.length||0!==t.indexOf(e)||n.bSorted)&&(n.aiDisplay=o.slice()),t=n.aiDisplay,i=0;i<t.length;i++)r.test(n.aoData[t[i]]._sFilterRow)&&f.push(t[i]);n.aiDisplay=f}}function sr(t,i,r,u){return t=i?t:gr(t),r&&(t="^(?=.*?"+n.map(t.match(/"[^"]+"|[^ ]+/g)||[""],function(n){if('"'===n.charAt(0))var t=n.match(/^"(.*)"$/),n=t?t[1]:n;return n.replace('"',"")}).join(")(?=.*?")+").*$"),RegExp(t,u?"i":"")}function uf(n){var s=n.aoColumns,i,r,f,h,c,e,t,o,l=u.ext.type.search;for(i=!1,r=0,h=n.aoData.length;r<h;r++)if(o=n.aoData[r],!o._aFilterData){for(e=[],f=0,c=s.length;f<c;f++)i=s[f],i.bSearchable?(t=y(n,r,f,"filter"),l[i.sType]&&(t=l[i.sType](t)),null===t&&(t=""),"string"!=typeof t&&t.toString&&(t=t.toString())):t="",t.indexOf&&-1!==t.indexOf("&")&&(ki.innerHTML=t,t=ae?ki.textContent:ki.innerText),t.replace&&(t=t.replace(/[\r\n]/g,"")),e.push(t);o._aFilterData=e;o._sFilterRow=e.join("  ");i=!0}return i}function ff(n){return{search:n.sSearch,smart:n.bSmart,regex:n.bRegex,caseInsensitive:n.bCaseInsensitive}}function ef(n){return{sSearch:n.search,bSmart:n.smart,bRegex:n.regex,bCaseInsensitive:n.caseInsensitive}}function of(t){var i=t.sTableId,r=t.aanFeatures.i,u=n("<div/>",{"class":t.oClasses.sInfo,id:r?null:i+"_info"});return r||(t.aoDrawCallback.push({fn:sf,sName:"information"}),u.attr("role","status").attr("aria-live","polite"),n(t.nTable).attr("aria-describedby",i+"_info")),u[0]}function sf(t){var f=t.aanFeatures.i;if(0!==f.length){var i=t.oLanguage,o=t._iDisplayStart+1,s=t.fnDisplayEnd(),e=t.fnRecordsTotal(),u=t.fnRecordsDisplay(),r=u?i.sInfo:i.sInfoEmpty;u!==e&&(r+=" "+i.sInfoFiltered);r+=i.sInfoPostFix;r=hf(t,r);i=i.fnInfoCallback;null!==i&&(r=i.call(t.oInstance,t,o,s,e,u,r));n(f).html(r)}}function hf(n,t){var i=n.fnFormatNumber,u=n._iDisplayStart+1,r=n._iDisplayLength,f=n.fnRecordsDisplay(),e=-1===r;return t.replace(/_START_/g,i.call(n,u)).replace(/_END_/g,i.call(n,n.fnDisplayEnd())).replace(/_MAX_/g,i.call(n,n.fnRecordsTotal())).replace(/_TOTAL_/g,i.call(n,f)).replace(/_PAGE_/g,i.call(n,e?1:Math.ceil(u/r))).replace(/_PAGES_/g,i.call(n,e?1:Math.ceil(f/r)))}function dt(n){var t,r,e=n.iInitDisplayStart,i=n.aoColumns,u,f;if(r=n.oFeatures,f=n.bDeferLoading,n.bInitialised){for(wu(n),pu(n),wt(n,n.aoHeader),wt(n,n.aoFooter),w(n,!0),r.bAutoWidth&&lr(n),t=0,r=i.length;t<r;t++)u=i[t],u.sWidth&&(u.nTh.style.width=h(u.sWidth));o(n,null,"preInit",[n]);et(n);i=v(n);("ssp"!=i||f)&&("ajax"==i?hi(n,[],function(i){var r=ci(n,i);for(t=0;t<r.length;t++)it(n,r[t]);n.iInitDisplayStart=e;et(n);w(n,!1);li(n,i)},n):(w(n,!1),li(n)))}else setTimeout(function(){dt(n)},200)}function li(n,t){n._bInitComplete=!0;(t||n.oInit.aaData)&&lt(n);o(n,null,"plugin-init",[n,t]);o(n,"aoInitComplete","init",[n,t])}function hr(n,t){var i=parseInt(t,10);n._iDisplayLength=i;pr(n);o(n,null,"length",[n,i])}function cf(t){for(var u,o=t.oClasses,e=t.sTableId,i=t.aLengthMenu,f=n.isArray(i[0]),s=f?i[0]:i,i=f?i[1]:i,f=n("<select/>",{name:e+"_length","aria-controls":e,"class":o.sLengthSelect}),r=0,h=s.length;r<h;r++)f[0][r]=new Option("number"==typeof i[r]?t.fnFormatNumber(i[r]):i[r],s[r]);u=n("<div><label/><\/div>").addClass(o.sLength);t.aanFeatures.l||(u[0].id=e+"_length");u.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",f[0].outerHTML));n("select",u).val(t._iDisplayLength).on("change.DT",function(){hr(t,n(this).val());rt(t)});n(t.nTable).on("length.dt.DT",function(i,r,f){t===r&&n("select",u).val(f)});return u[0]}function lf(t){var i=t.sPaginationType,r=u.ext.pager[i],e="function"==typeof r,o=function(n){rt(n)},i=n("<div/>").addClass(t.oClasses.sPaging+i)[0],f=t.aanFeatures;return e||r.fnInit(t,i,o),f.p||(i.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(n){if(e)for(var u=n._iDisplayStart,i=n._iDisplayLength,s=n.fnRecordsDisplay(),t=-1===i,u=t?0:Math.ceil(u/i),i=t?1:Math.ceil(s/i),s=r(u,i),t=0,h=f.p.length;t<h;t++)wr(n,"pageButton")(n,f.p[t],t,s,u,i);else r.fnUpdate(n,o)},sName:"pagination"})),i}function cr(n,t,i){var r=n._iDisplayStart,u=n._iDisplayLength,f=n.fnRecordsDisplay();return 0===f||-1===u?r=0:"number"==typeof t?(r=t*u,r>f&&(r=0)):"first"==t?r=0:"previous"==t?(r=0<=u?r-u:0,0>r&&(r=0)):"next"==t?r+u<f&&(r+=u):"last"==t?r=Math.floor((f-1)/u)*u:nt(n,0,"Unknown paging action: "+t,5),t=n._iDisplayStart!==r,n._iDisplayStart=r,t&&(o(n,null,"page",[n]),i&&rt(n)),t}function af(t){return n("<div/>",{id:t.aanFeatures.r?null:t.sTableId+"_processing","class":t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function w(t,i){t.oFeatures.bProcessing&&n(t.aanFeatures.r).css("display",i?"block":"none");o(t,null,"processing",[t,i])}function vf(t){var i=n(t.nTable),f;if(i.attr("role","grid"),f=t.oScroll,""===f.sX&&""===f.sY)return t.nTable;var u=f.sX,c=f.sY,r=t.oClasses,s=i.children("caption"),l=s.length?s[0]._captionSide:null,e=n(i[0].cloneNode(!1)),y=n(i[0].cloneNode(!1)),o=i.children("tfoot");o.length||(o=null);e=n("<div/>",{"class":r.sScrollWrapper}).append(n("<div/>",{"class":r.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:u?u?h(u):null:"100%"}).append(n("<div/>",{"class":r.sScrollHeadInner}).css({"box-sizing":"content-box",width:f.sXInner||"100%"}).append(e.removeAttr("id").css("margin-left",0).append("top"===l?s:null).append(i.children("thead"))))).append(n("<div/>",{"class":r.sScrollBody}).css({position:"relative",overflow:"auto",width:u?h(u):null}).append(i));o&&e.append(n("<div/>",{"class":r.sScrollFoot}).css({overflow:"hidden",border:0,width:u?u?h(u):null:"100%"}).append(n("<div/>",{"class":r.sScrollFootInner}).append(y.removeAttr("id").css("margin-left",0).append("bottom"===l?s:null).append(i.children("tfoot")))));var i=e.children(),a=i[0],r=i[1],v=o?i[2]:null;if(u)n(r).on("scroll.DT",function(){var n=this.scrollLeft;a.scrollLeft=n;o&&(v.scrollLeft=n)});return n(r).css(c&&f.bCollapse?"max-height":"height",c),t.nScrollHead=a,t.nScrollBody=r,t.nScrollFoot=v,t.aoDrawCallback.push({fn:ai,sName:"scrolling"}),e[0]}function ai(t){var f=t.oScroll,s=f.sX,v=f.sXInner,p=f.sY,f=f.iBarWidth,e=n(t.nScrollHead),pt=e[0].style,i=e.children("div"),et=i[0].style,wt=i.children("table"),i=t.nScrollBody,y=n(i),tt=i.style,it=n(t.nScrollFoot).children("div"),bt=it.children("table"),w=n(t.nTHead),u=n(t.nTable),ot=u[0],k=ot.style,c=t.nTFoot?n(t.nTFoot):null,st=t.oBrowser,rt=st.bScrollOversize,kt=b(t.aoColumns,"nTh"),l,o,a,g,ut=[],ft=[],ht=[],ct=[],vt,yt=function(n){n=n.style;n.paddingTop="0";n.paddingBottom="0";n.borderTopWidth="0";n.borderBottomWidth="0";n.height=0};o=i.scrollHeight>i.clientHeight;t.scrollBarVis!==o&&t.scrollBarVis!==r?(t.scrollBarVis=o,lt(t)):(t.scrollBarVis=o,u.children("thead, tfoot").remove(),c&&(a=c.clone().prependTo(u),l=c.find("tr"),a=a.find("tr")),g=w.clone().prependTo(u),w=w.find("tr"),o=g.find("tr"),g.find("th, td").removeAttr("tabindex"),s||(tt.width="100%",e[0].style.width="100%"),n.each(si(t,g),function(n,i){vt=at(t,n);i.style.width=t.aoColumns[vt].sWidth}),c&&d(function(n){n.style.width=""},a),e=u.outerWidth(),""===s?(k.width="100%",rt&&(u.find("tbody").height()>i.offsetHeight||"scroll"==y.css("overflow-y"))&&(k.width=h(u.outerWidth()-f)),e=u.outerWidth()):""!==v&&(k.width=h(v),e=u.outerWidth()),d(yt,o),d(function(t){ht.push(t.innerHTML);ut.push(h(n(t).css("width")))},o),d(function(t,i){n.inArray(t,kt)!==-1&&(t.style.width=ut[i])},w),n(o).height(0),c&&(d(yt,a),d(function(t){ct.push(t.innerHTML);ft.push(h(n(t).css("width")))},a),d(function(n,t){n.style.width=ft[t]},l),n(a).height(0)),d(function(n,t){n.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+ht[t]+"<\/div>";n.style.width=ut[t]},o),c&&d(function(n,t){n.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+ct[t]+"<\/div>";n.style.width=ft[t]},a),u.outerWidth()<e?(l=i.scrollHeight>i.offsetHeight||"scroll"==y.css("overflow-y")?e+f:e,rt&&(i.scrollHeight>i.offsetHeight||"scroll"==y.css("overflow-y"))&&(k.width=h(l-f)),(""===s||""!==v)&&nt(t,1,"Possible column misalignment",6)):l="100%",tt.width=h(l),pt.width=h(l),c&&(t.nScrollFoot.style.width=h(l)),!p&&rt&&(tt.height=h(ot.offsetHeight+f)),s=u.outerWidth(),wt[0].style.width=h(s),et.width=h(s),v=u.height()>i.clientHeight||"scroll"==y.css("overflow-y"),p="padding"+(st.bScrollbarLeft?"Left":"Right"),et[p]=v?f+"px":"0px",c&&(bt[0].style.width=h(s),it[0].style.width=h(s),it[0].style[p]=v?f+"px":"0px"),u.children("colgroup").insertBefore(u.children("thead")),y.scroll(),(t.bSorted||t.bFiltered)&&!t._drawHold&&(i.scrollTop=0))}function d(n,t,i){for(var e=0,u=0,o=t.length,r,f;u<o;){for(r=t[u].firstChild,f=i?i[u].firstChild:null;r;)1===r.nodeType&&(i?n(r,f,e):n(r,e),e++),r=r.nextSibling,f=i?f.nextSibling:null;u++}}function lr(i){var s=i.nTable,a=i.aoColumns,v=i.oScroll,y=v.sY,p=v.sX,b=v.sXInner,u=a.length,o=ui(i,"bVisible"),c=n("th",i.nTHead),l=s.getAttribute("width"),e=s.parentNode,w=!1,r,f,k=i.oBrowser,v=k.bScrollOversize,d;for((r=s.style.width)&&-1!==r.indexOf("%")&&(l=r),r=0;r<o.length;r++)f=a[o[r]],null!==f.sWidth&&(f.sWidth=yf(f.sWidthOrig,e),w=!0);if(!v&&(w||p||y||u!=yt(i)||u!=c.length)){for(u=n(s).clone().css("visibility","hidden").removeAttr("id"),u.find("tbody tr").remove(),d=n("<tr/>").appendTo(u.find("tbody")),u.find("thead, tfoot").remove(),u.append(n(i.nTHead).clone()).append(n(i.nTFoot).clone()),u.find("tfoot th, tfoot td").css("width",""),c=si(i,u.find("thead")[0]),r=0;r<o.length;r++)f=a[o[r]],c[r].style.width=null!==f.sWidthOrig&&""!==f.sWidthOrig?h(f.sWidthOrig):"",f.sWidthOrig&&p&&n(c[r]).append(n("<div/>").css({width:f.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(i.aoData.length)for(r=0;r<o.length;r++)w=o[r],f=a[w],n(pf(i,w)).clone(!1).append(f.sContentPadding).appendTo(d);for(n("[name]",u).removeAttr("name"),f=n("<div/>").css(p||y?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(u).appendTo(e),p&&b?u.width(b):p?(u.css("width","auto"),u.removeAttr("width"),u.width()<e.clientWidth&&l&&u.width(e.clientWidth)):y?u.width(e.clientWidth):l&&u.width(l),r=y=0;r<o.length;r++)e=n(c[r]),b=e.outerWidth()-e.width(),e=k.bBounding?Math.ceil(c[r].getBoundingClientRect().width):e.outerWidth(),y+=e,a[o[r]].sWidth=h(e-b);s.style.width=h(y);f.remove()}else for(r=0;r<u;r++)o=at(i,r),null!==o&&(a[o].sWidth=h(c.eq(r).width()));l&&(s.style.width=h(l));(l||p)&&!i._reszEvt&&(s=function(){n(t).on("resize.DT-"+i.sInstance,nu(function(){lt(i)}))},v?setTimeout(s,1e3):s(),i._reszEvt=!0)}function yf(t,r){if(!t)return 0;var u=n("<div/>").css("width",h(t)).appendTo(r||i.body),f=u[0].offsetWidth;return u.remove(),f}function pf(t,i){var r=wf(t,i),u;return 0>r?null:(u=t.aoData[r],u.nTr?u.anCells[i]:n("<td/>").html(y(t,r,i,"display"))[0])}function wf(n,t){for(var i,u=-1,f=-1,r=0,e=n.aoData.length;r<e;r++)i=y(n,r,t,"display")+"",i=i.replace(ve,""),i=i.replace(/&nbsp;/g," "),i.length>u&&(u=i.length,f=r);return f}function h(n){return null===n?"0px":"number"==typeof n?0>n?"0px":n+"px":n.match(/\d$/)?n+"px":n}function ot(t){var i,o,a=[],h=t.aoColumns,e,s,c,l,f;for(i=t.aaSortingFixed,o=n.isPlainObject(i),f=[],e=function(t){t.length&&!n.isArray(t[0])?f.push(t):n.merge(f,t)},n.isArray(i)&&e(i),o&&i.pre&&e(i.pre),e(t.aaSorting),o&&i.post&&e(i.post),t=0;t<f.length;t++)for(l=f[t][0],e=h[l].aDataSort,i=0,o=e.length;i<o;i++)s=e[i],c=h[s].sType||"string",f[t]._idx===r&&(f[t]._idx=n.inArray(f[t][1],h[s].asSorting)),a.push({src:l,col:s,dir:f[t][1],index:f[t]._idx,type:c,formatter:u.ext.type.order[c+"-pre"]});return a}function bf(n){var t,f,r=[],h=u.ext.type.order,e=n.aoData,c=0,s,o=n.aiDisplayMaster,i;for(ir(n),i=ot(n),t=0,f=i.length;t<f;t++)s=i[t],s.formatter&&c++,df(n,s.col);if("ssp"!=v(n)&&0!==i.length){for(t=0,f=o.length;t<f;t++)r[o[t]]=t;c===i.length?o.sort(function(n,t){for(var u,f,s,h=i.length,c=e[n]._aSortData,l=e[t]._aSortData,o=0;o<h;o++)if(s=i[o],u=c[s.col],f=l[s.col],u=u<f?-1:u>f?1:0,0!==u)return"asc"===s.dir?u:-u;return u=r[n],f=r[t],u<f?-1:u>f?1:0}):o.sort(function(n,t){for(var u,o,f,c=i.length,l=e[n]._aSortData,a=e[t]._aSortData,s=0;s<c;s++)if(f=i[s],u=l[f.col],o=a[f.col],f=h[f.type+"-"+f.dir]||h["string-"+f.dir],u=f(u,o),0!==u)return u;return u=r[n],o=r[t],u<o?-1:u>o?1:0})}n.bSorted=!0}function kf(n){for(var u,f,e,t,o=n.aoColumns,i=ot(n),n=n.oLanguage.oAria,r=0,s=o.length;r<s;r++)t=o[r],u=t.asSorting,e=t.sTitle.replace(/<.*?>/g,""),f=t.nTh,f.removeAttribute("aria-sort"),t.bSortable&&(0<i.length&&i[0].col==r?(f.setAttribute("aria-sort","asc"==i[0].dir?"ascending":"descending"),t=u[i[0].index+1]||u[0]):t=u[0],e+="asc"===t?n.sSortAscending:n.sSortDescending),f.setAttribute("aria-label",e)}function ar(t,i,u,f){var e=t.aaSorting,o=t.aoColumns[i].asSorting,s=function(t,i){var u=t._idx;return u===r&&(u=n.inArray(t[1],o)),u+1<o.length?u+1:i?null:0};"number"==typeof e[0]&&(e=t.aaSorting=[e]);u&&t.oFeatures.bSortMulti?(u=n.inArray(i,b(e,"0")),-1!==u?(i=s(e[u],!0),null===i&&1===e.length&&(i=0),null===i?e.splice(u,1):(e[u][1]=o[i],e[u]._idx=i)):(e.push([i,o[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==i?(i=s(e[0]),e.length=1,e[0][1]=o[i],e[0]._idx=i):(e.length=0,e.push([i,o[0]]),e[0]._idx=0);et(t);"function"==typeof f&&f(t)}function vr(n,t,i,r){var u=n.aoColumns[i];yr(t,{},function(t){!1!==u.bSortable&&(n.oFeatures.bProcessing?(w(n,!0),setTimeout(function(){ar(n,i,t.shiftKey,r);"ssp"!==v(n)&&w(n,!1)},0)):ar(n,i,t.shiftKey,r))})}function vi(t){var e=t.aLastSort,o=t.oClasses.sSortColumn,f=ot(t),i=t.oFeatures,r,u;if(i.bSort&&i.bSortClasses){for(i=0,r=e.length;i<r;i++)u=e[i].src,n(b(t.aoData,"anCells",u)).removeClass(o+(2>i?i+1:3));for(i=0,r=f.length;i<r;i++)u=f[i].src,n(b(t.aoData,"anCells",u)).addClass(o+(2>i?i+1:3))}t.aLastSort=f}function df(n,t){var i=n.aoColumns[t],f=u.ext.order[i.sSortDataType],o;f&&(o=f.call(n.oInstance,n,t,vt(n,t)));for(var e,s=u.ext.type.order[i.sType+"-pre"],r=0,h=n.aoData.length;r<h;r++)(i=n.aoData[r],i._aSortData||(i._aSortData=[]),!i._aSortData[t]||f)&&(e=f?o[r]:y(n,r,t,"sort"),i._aSortData[t]=s?s(e):e)}function yi(t){if(t.oFeatures.bStateSave&&!t.bDestroying){var i={time:+new Date,start:t._iDisplayStart,length:t._iDisplayLength,order:n.extend(!0,[],t.aaSorting),search:ff(t.oPreviousSearch),columns:n.map(t.aoColumns,function(n,i){return{visible:n.bVisible,search:ff(t.aoPreSearchCols[i])}})};o(t,"aoStateSaveParams","stateSaveParams",[t,i]);t.oSavedState=i;t.fnStateSaveCallback.call(t.oInstance,t,i)}}function gf(t,i,u){var f,h,e=t.aoColumns,i=function(i){if(i&&i.time){var s=o(t,"aoStateLoadParams","stateLoadParams",[t,i]);if(-1===n.inArray(!1,s)&&(s=t.iStateDuration,!(0<s&&i.time<+new Date-1e3*s)&&!(i.columns&&e.length!==i.columns.length))){if(t.oLoadedState=n.extend(!0,{},i),i.start!==r&&(t._iDisplayStart=i.start,t.iInitDisplayStart=i.start),i.length!==r&&(t._iDisplayLength=i.length),i.order!==r&&(t.aaSorting=[],n.each(i.order,function(n,i){t.aaSorting.push(i[0]>=e.length?[0,i[1]]:i)})),i.search!==r&&n.extend(t.oPreviousSearch,ef(i.search)),i.columns)for(f=0,h=i.columns.length;f<h;f++)s=i.columns[f],s.visible!==r&&(e[f].bVisible=s.visible),s.search!==r&&n.extend(t.aoPreSearchCols[f],ef(s.search));o(t,"aoStateLoaded","stateLoaded",[t,i])}}u()},s;t.oFeatures.bStateSave?(s=t.fnStateLoadCallback.call(t.oInstance,t,i),s!==r&&i(s)):u()}function pi(t){var i=u.settings,t=n.inArray(t,b(i,"nTable"));return-1!==t?i[t]:null}function nt(n,i,r,f){if(r="DataTables warning: "+(n?"table id="+n.sTableId+" - ":"")+r,f&&(r+=". For more information about this error, please see http://datatables.net/tn/"+f),i)t.console&&console.log&&console.log(r);else if(i=u.ext,i=i.sErrMode||i.errMode,n&&o(n,null,"error",[n,f,r]),"alert"==i)alert(r);else{if("throw"==i)throw Error(r);"function"==typeof i&&i(n,f,r)}}function k(t,i,u,f){n.isArray(u)?n.each(u,function(r,u){n.isArray(u)?k(t,i,u[0],u[1]):k(t,i,u)}):(f===r&&(f=u),i[u]!==r&&(t[f]=i[u]))}function ne(t,i,r){var f,u;for(u in i)i.hasOwnProperty(u)&&(f=i[u],n.isPlainObject(f)?(n.isPlainObject(t[u])||(t[u]={}),n.extend(!0,t[u],f)):t[u]=r&&"data"!==u&&"aaData"!==u&&n.isArray(f)?f.slice():f);return t}function yr(t,i,r){n(t).on("click.DT",i,function(n){t.blur();r(n)}).on("keypress.DT",i,function(n){13===n.which&&(n.preventDefault(),r(n))}).on("selectstart.DT",function(){return!1})}function a(n,t,i,r){i&&n[t].push({fn:i,sName:r})}function o(t,i,r,u){var f=[];return i&&(f=n.map(t[i].slice().reverse(),function(n){return n.fn.apply(t.oInstance,u)})),null!==r&&(i=n.Event(r+".dt"),n(t.nTable).trigger(i,u),f.push(i.result)),f}function pr(n){var t=n._iDisplayStart,r=n.fnDisplayEnd(),i=n._iDisplayLength;t>=r&&(t=r-i);t-=t%i;(-1===i||0>t)&&(t=0);n._iDisplayStart=t}function wr(t,i){var r=t.renderer,f=u.ext.renderer[i];return n.isPlainObject(r)&&r[i]?f[r[i]]||f._:"string"==typeof r?f[r]||f._:f._}function v(n){return n.oFeatures.bServerSide?"ssp":n.ajax||n.sAjaxSource?"ajax":"dom"}function gt(n,t){var i=[],i=ou.numbers_length,r=Math.floor(i/2);return t<=i?i=st(0,t):n<=r?(i=st(0,i-2),i.push("ellipsis"),i.push(t-1)):(n>=t-1-r?i=st(t-(i-2),t):(i=st(n-r+2,n+r-1),i.push("ellipsis"),i.push(t-1)),i.splice(0,0,"ellipsis"),i.splice(0,0,0)),i.DT_el="span",i}function te(t){n.each({num:function(n){return ii(n,t)},"num-fmt":function(n){return ii(n,t,kr)},"html-num":function(n){return ii(n,t,wi)},"html-num-fmt":function(n){return ii(n,t,wi,kr)}},function(n,i){c.type.order[n+t+"-pre"]=i;n.match(/^html\-/)&&(c.type.search[n+t]=c.type.search.html)})}function ie(n){return function(){var t=[pi(this[u.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return u.ext.internal[n].apply(this,t)}}var u=function(t){var f;this.$=function(n,t){return this.api(!0).$(n,t)};this._=function(n,t){return this.api(!0).rows(n,t).data()};this.api=function(n){return n?new e(pi(this[c.iApiIndex])):new e(this)};this.fnAddData=function(t,i){var u=this.api(!0),f=n.isArray(t)&&(n.isArray(t[0])||n.isPlainObject(t[0]))?u.rows.add(t):u.row.add(t);return(i===r||i)&&u.draw(),f.flatten().toArray()};this.fnAdjustColumnSizing=function(n){var t=this.api(!0).columns.adjust(),i=t.settings()[0],u=i.oScroll;n===r||n?t.draw(!1):(""!==u.sX||""!==u.sY)&&ai(i)};this.fnClearTable=function(n){var t=this.api(!0).clear();(n===r||n)&&t.draw()};this.fnClose=function(n){this.api(!0).row(n).child.hide()};this.fnDeleteRow=function(n,t,i){var u=this.api(!0),n=u.rows(n),f=n.settings()[0],e=f.aoData[n[0][0]];return n.remove(),t&&t.call(this,f,e),(i===r||i)&&u.draw(),e};this.fnDestroy=function(n){this.api(!0).destroy(n)};this.fnDraw=function(n){this.api(!0).draw(n)};this.fnFilter=function(n,t,i,u,f,e){f=this.api(!0);null===t||t===r?f.search(n,i,u,e):f.column(t).search(n,i,u,e);f.draw()};this.fnGetData=function(n,t){var i=this.api(!0),u;return n!==r?(u=n.nodeName?n.nodeName.toLowerCase():"",t!==r||"td"==u||"th"==u?i.cell(n,t).data():i.row(n).data()||null):i.data().toArray()};this.fnGetNodes=function(n){var t=this.api(!0);return n!==r?t.row(n).node():t.rows().nodes().flatten().toArray()};this.fnGetPosition=function(n){var i=this.api(!0),t=n.nodeName.toUpperCase();return"TR"==t?i.row(n).index():"TD"==t||"TH"==t?(n=i.cell(n).index(),[n.row,n.columnVisible,n.column]):null};this.fnIsOpen=function(n){return this.api(!0).row(n).child.isShown()};this.fnOpen=function(n,t,i){return this.api(!0).row(n).child(t,i).show().child()[0]};this.fnPageChange=function(n,t){var i=this.api(!0).page(n);(t===r||t)&&i.draw(!1)};this.fnSetColumnVis=function(n,t,i){n=this.api(!0).column(n).visible(t);(i===r||i)&&n.columns.adjust().draw()};this.fnSettings=function(){return pi(this[c.iApiIndex])};this.fnSort=function(n){this.api(!0).order(n).draw()};this.fnSortListener=function(n,t,i){this.api(!0).order.listener(n,t,i)};this.fnUpdate=function(n,t,i,u,f){var e=this.api(!0);return i===r||null===i?e.row(t).data(n):e.cell(t,i).data(n),(f===r||f)&&e.columns.adjust(),(u===r||u)&&e.draw(),0};this.fnVersionCheck=c.fnVersionCheck;var i=this,s=t===r,h=this.length;s&&(t={});this.oApi=this.internal=c.internal;for(f in u.ext.internal)f&&(this[f]=ie(f));return this.each(function(){var c={},e=1<h?ne(c,t,!0):t,l=0,d,c=this.getAttribute("id"),ht=!1,w=u.defaults,y=n(this),p,b,ct,f,tt,rt,et,ft,st;if("table"!=this.nodeName.toLowerCase())nt(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{for(hu(w),cu(w.column),g(w,w,!0),g(w.column,w.column,!0),g(w,n.extend(e,y.data())),p=u.settings,l=0,d=p.length;l<d;l++){if(b=p[l],b.nTable==this||b.nTHead.parentNode==this||b.nTFoot&&b.nTFoot.parentNode==this){if(ct=e.bRetrieve!==r?e.bRetrieve:w.bRetrieve,s||ct)return b.oInstance;if(e.bDestroy!==r?e.bDestroy:w.bDestroy){b.oInstance.fnDestroy();break}else{nt(b,0,"Cannot reinitialise DataTable",3);return}}if(b.sTableId==this.id){p.splice(l,1);break}}if((null===c||""===c)&&(this.id=c="DataTables_Table_"+u.ext._unique++),f=n.extend(!0,{},u.models.oSettings,{sDestroyWidth:y[0].style.width,sInstance:c,sTableId:c}),f.nTable=this,f.oApi=i.internal,f.oInit=e,p.push(f),f.oInstance=1===i.length?i:y.dataTable(),hu(e),e.oLanguage&&nr(e.oLanguage),e.aLengthMenu&&!e.iDisplayLength&&(e.iDisplayLength=n.isArray(e.aLengthMenu[0])?e.aLengthMenu[0][0]:e.aLengthMenu[0]),e=ne(n.extend(!0,{},w),e),k(f.oFeatures,e,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),k(f,e,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),k(f.oScroll,e,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),k(f.oLanguage,e,"fnInfoCallback"),a(f,"aoDrawCallback",e.fnDrawCallback,"user"),a(f,"aoServerParams",e.fnServerParams,"user"),a(f,"aoStateSaveParams",e.fnStateSaveParams,"user"),a(f,"aoStateLoadParams",e.fnStateLoadParams,"user"),a(f,"aoStateLoaded",e.fnStateLoaded,"user"),a(f,"aoRowCallback",e.fnRowCallback,"user"),a(f,"aoRowCreatedCallback",e.fnCreatedRow,"user"),a(f,"aoHeaderCallback",e.fnHeaderCallback,"user"),a(f,"aoFooterCallback",e.fnFooterCallback,"user"),a(f,"aoInitComplete",e.fnInitComplete,"user"),a(f,"aoPreDrawCallback",e.fnPreDrawCallback,"user"),f.rowIdFn=ut(e.rowId),lu(f),tt=f.oClasses,n.extend(tt,u.ext.classes,e.oClasses),y.addClass(tt.sTable),f.iInitDisplayStart===r&&(f.iInitDisplayStart=e.iDisplayStart,f._iDisplayStart=e.iDisplayStart),null!==e.iDeferLoading&&(f.bDeferLoading=!0,c=n.isArray(e.iDeferLoading),f._iRecordsDisplay=c?e.iDeferLoading[0]:e.iDeferLoading,f._iRecordsTotal=c?e.iDeferLoading[1]:e.iDeferLoading),rt=f.oLanguage,n.extend(!0,rt,e.oLanguage),rt.sUrl&&(n.ajax({dataType:"json",url:rt.sUrl,success:function(t){nr(t);g(w.oLanguage,t);n.extend(!0,rt,t);dt(f)},error:function(){dt(f)}}),ht=!0),null===e.asStripeClasses&&(f.asStripeClasses=[tt.sStripeOdd,tt.sStripeEven]),c=f.asStripeClasses,et=y.children("tbody").find("tr").eq(0),-1!==n.inArray(!0,n.map(c,function(n){return et.hasClass(n)}))&&(n("tbody tr",this).removeClass(c.join(" ")),f.asDestroyStripes=c.slice()),c=[],p=this.getElementsByTagName("thead"),0!==p.length&&(bt(f.aoHeader,p[0]),c=si(f)),null===e.aoColumns)for(p=[],l=0,d=c.length;l<d;l++)p.push(null);else p=e.aoColumns;for(l=0,d=p.length;l<d;l++)tr(f,c?c[l]:null);vu(f,e.aoColumnDefs,p,function(n,t){ri(f,n,t)});et.length&&(ft=function(n,t){return n.getAttribute("data-"+t)!==null?t:null},n(et[0]).children("th, td").each(function(n,t){var e=f.aoColumns[n],i,u;e.mData===n&&(i=ft(t,"sort")||ft(t,"order"),u=ft(t,"filter")||ft(t,"search"),(i!==null||u!==null)&&(e.mData={_:n+".display",sort:i!==null?n+".@data-"+i:r,type:i!==null?n+".@data-"+i:r,filter:u!==null?n+".@data-"+u:r},ri(f,n)))}));st=f.oFeatures;c=function(){var i,t;if(e.aaSorting===r)for(i=f.aaSorting,l=0,d=i.length;l<d;l++)i[l][1]=f.aoColumns[l].asSorting[0];if(vi(f),st.bSort&&a(f,"aoDrawCallback",function(){if(f.bSorted){var t=ot(f),i={};n.each(t,function(n,t){i[t.src]=t.dir});o(f,null,"order",[f,t,i]);kf(f)}}),a(f,"aoDrawCallback",function(){(f.bSorted||v(f)==="ssp"||st.bDeferRender)&&vi(f)},"sc"),i=y.children("caption").each(function(){this._captionSide=n(this).css("caption-side")}),t=y.children("thead"),t.length===0&&(t=n("<thead/>").appendTo(y)),f.nTHead=t[0],t=y.children("tbody"),t.length===0&&(t=n("<tbody/>").appendTo(y)),f.nTBody=t[0],t=y.children("tfoot"),t.length===0&&i.length>0&&(f.oScroll.sX!==""||f.oScroll.sY!=="")&&(t=n("<tfoot/>").appendTo(y)),t.length===0||t.children().length===0?y.addClass(tt.sNoFooter):t.length>0&&(f.nTFoot=t[0],bt(f.aoFooter,f.nTFoot)),e.aaData)for(l=0;l<e.aaData.length;l++)it(f,e.aaData[l]);else(f.bDeferLoading||v(f)=="dom")&&fi(f,n(f.nTBody).children("tr"));f.aiDisplay=f.aiDisplayMaster.slice();f.bInitialised=!0;ht===!1&&dt(f)};e.bStateSave?(st.bStateSave=!0,a(f,"aoDrawCallback",yi,"state_save"),gf(f,e,c)):c()}}),i=null,this},c,e,f,s,br={},re=/[\r\n]/g,wi=/<.*?>/g,ce=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,le=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),kr=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,tt=function(n){return!n||!0===n||"-"===n?!0:!1},ue=function(n){var t=parseInt(n,10);return!isNaN(t)&&isFinite(n)?t:null},fe=function(n,t){return br[t]||(br[t]=RegExp(gr(t),"g")),"string"==typeof n&&"."!==t?n.replace(/\./g,"").replace(br[t],"."):n},dr=function(n,t,i){var r="string"==typeof n;return tt(n)?!0:(t&&r&&(n=fe(n,t)),i&&r&&(n=n.replace(kr,"")),!isNaN(parseFloat(n))&&isFinite(n))},ee=function(n,t,i){return tt(n)?!0:(tt(n)||"string"==typeof n)?dr(n.replace(wi,""),t,i)?!0:null:null},b=function(n,t,i){var f=[],u=0,e=n.length;if(i!==r)for(;u<e;u++)n[u]&&n[u][t]&&f.push(n[u][t][i]);else for(;u<e;u++)n[u]&&f.push(n[u][t]);return f},ni=function(n,t,i,u){var e=[],f=0,o=t.length;if(u!==r)for(;f<o;f++)n[t[f]][i]&&e.push(n[t[f]][i][u]);else for(;f<o;f++)e.push(n[t[f]][i]);return e},st=function(n,t){var f=[],u,i;for(t===r?(t=0,u=n):(u=t,t=n),i=t;i<u;i++)f.push(i);return f},oe=function(n){for(var i=[],t=0,r=n.length;t<r;t++)n[t]&&i.push(n[t]);return i},bi=function(n){var t;n:{if(!(2>n.length)){t=n.slice().sort();for(var r=t[0],i=1,f=t.length;i<f;i++){if(t[i]===r){t=!1;break n}r=t[i]}}t=!0}if(t)return n.slice();t=[];var f=n.length,u,e=0,i=0;n:for(;i<f;i++){for(r=n[i],u=0;u<e;u++)if(t[u]===r)continue n;t.push(r);e++}return t},tu,gi,fu,he,eu,ou,ii,su;u.util={throttle:function(n,t){var u=t!==r?t:200,i,f;return function(){var t=this,e=+new Date,o=arguments;i&&e<i+u?(clearTimeout(f),f=setTimeout(function(){i=r;n.apply(t,o)},u)):(i=e,n.apply(t,o))}},escapeRegex:function(n){return n.replace(le,"\\$1")}};var p=function(n,t,i){n[t]!==r&&(n[i]=n[t])},ti=/\[.*?\]$/,ht=/\(\)$/,gr=u.util.escapeRegex,ki=n("<div>")[0],ae=ki.textContent!==r,ve=/<.*?>/g,nu=u.util.throttle,se=[],l=Array.prototype,ye=function(t){var i,r,f=u.settings,e=n.map(f,function(n){return n.nTable});if(t){if(t.nTable&&t.oApi)return[t];if(t.nodeName&&"table"===t.nodeName.toLowerCase())return i=n.inArray(t,e),-1!==i?[f[i]]:null;if(t&&"function"==typeof t.settings)return t.settings().toArray();"string"==typeof t?r=n(t):t instanceof n&&(r=t)}else return[];if(r)return r.map(function(){return i=n.inArray(this,e),-1!==i?f[i]:null}).toArray()};e=function(t,i){var r,f,u,o;if(!(this instanceof e))return new e(t,i);if(r=[],f=function(n){(n=ye(n))&&(r=r.concat(n))},n.isArray(t))for(u=0,o=t.length;u<o;u++)f(t[u]);else f(t);this.context=bi(r);i&&n.merge(this,i);this.selector={rows:null,cols:null,opts:null};e.extend(this,this,se)};u.Api=e;n.extend(e.prototype,{any:function(){return 0!==this.count()},concat:l.concat,context:[],count:function(){return this.flatten().length},each:function(n){for(var t=0,i=this.length;t<i;t++)n.call(this,this[t],t,this);return this},eq:function(n){var t=this.context;return t.length>n?new e(t[n],this[n]):null},filter:function(n){var i=[],t,r;if(l.filter)i=l.filter.call(this,n,this);else for(t=0,r=this.length;t<r;t++)n.call(this,this[t],t,this)&&i.push(this[t]);return new e(this.context,i)},flatten:function(){var n=[];return new e(this.context,n.concat.apply(n,this.toArray()))},join:l.join,indexOf:l.indexOf||function(n,t){for(var i=t||0,r=this.length;i<r;i++)if(this[i]===n)return i;return-1},iterator:function(n,t,i,u){var h=[],o,f,y,c,p,s=this.context,w,v,a=this.selector,l;for("string"==typeof n&&(u=i,i=t,t=n,n=!1),f=0,y=s.length;f<y;f++)if(l=new e(s[f]),"table"===t)o=i.call(l,s[f],f),o!==r&&h.push(o);else if("columns"===t||"rows"===t)o=i.call(l,s[f],this[f],f),o!==r&&h.push(o);else if("column"===t||"column-rows"===t||"row"===t||"cell"===t)for(v=this[f],"column-rows"===t&&(w=di(s[f],a.opts)),c=0,p=v.length;c<p;c++)o=v[c],o="cell"===t?i.call(l,s[f],o.row,o.column,f,c):i.call(l,s[f],o,f,c,w),o!==r&&h.push(o);return h.length||u?(n=new e(s,n?h.concat.apply([],h):h),t=n.selector,t.rows=a.rows,t.cols=a.cols,t.opts=a.opts,n):this},lastIndexOf:l.lastIndexOf||function(){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(n){var i=[],t,r;if(l.map)i=l.map.call(this,n,this);else for(t=0,r=this.length;t<r;t++)i.push(n.call(this,this[t],t));return new e(this.context,i)},pluck:function(n){return this.map(function(t){return t[n]})},pop:l.pop,push:l.push,reduce:l.reduce||function(n,t){return au(this,n,t,0,this.length,1)},reduceRight:l.reduceRight||function(n,t){return au(this,n,t,this.length-1,-1,-1)},reverse:l.reverse,selector:null,shift:l.shift,slice:function(){return new e(this.context,this)},sort:l.sort,splice:l.splice,toArray:function(){return l.slice.call(this)},to$:function(){return n(this)},toJQuery:function(){return n(this)},unique:function(){return new e(this.context,bi(this))},unshift:l.unshift});e.extend=function(t,i,r){if(r.length&&i&&(i instanceof e||i.__dt_wrapper))for(var u,s=function(n,t,i){return function(){var r=t.apply(n,arguments);return e.extend(r,r,i.methodExt),r}},f=0,o=r.length;f<o;f++)u=r[f],i[u.name]="function"==typeof u.val?s(t,u.val,u):n.isPlainObject(u.val)?{}:u.val,i[u.name].__dt_wrapper=!0,e.extend(t,i[u.name],u.propExt)};e.register=f=function(t,i){var u,f,r,l;if(n.isArray(t))for(u=0,f=t.length;u<f;u++)e.register(t[u],i);else for(var s=t.split("."),o=se,h,c,u=0,f=s.length;u<f;u++){h=(c=-1!==s[u].indexOf("()"))?s[u].replace("()",""):s[u];n:{for(r=0,l=o.length;r<l;r++)if(o[r].name===h){r=o[r];break n}r=null}r||(r={name:h,val:{},methodExt:[],propExt:[]},o.push(r));u===f-1?r.val=i:o=c?r.methodExt:r.propExt}};e.registerPlural=s=function(t,i,u){e.register(t,u);e.register(i,function(){var t=u.apply(this,arguments);return t===this?this:t instanceof e?t.length?n.isArray(t[0])?new e(t.context,t[0]):t[0]:r:t})};f("tables()",function(t){var i,r,u,t;return t?(i=e,r=this.context,"number"==typeof t?t=[r[t]]:(u=n.map(r,function(n){return n.nTable}),t=n(u).filter(t).map(function(){var t=n.inArray(this,u);return r[t]}).toArray()),i=new i(t)):i=this,i});f("table()",function(n){var n=this.tables(n),t=n.context;return t.length?new e(t[0]):n});s("tables().nodes()","table().node()",function(){return this.iterator("table",function(n){return n.nTable},1)});s("tables().body()","table().body()",function(){return this.iterator("table",function(n){return n.nTBody},1)});s("tables().header()","table().header()",function(){return this.iterator("table",function(n){return n.nTHead},1)});s("tables().footer()","table().footer()",function(){return this.iterator("table",function(n){return n.nTFoot},1)});s("tables().containers()","table().container()",function(){return this.iterator("table",function(n){return n.nTableWrapper},1)});f("draw()",function(n){return this.iterator("table",function(t){"page"===n?rt(t):("string"==typeof n&&(n="full-hold"===n?!1:!0),et(t,!1===n))})});f("page()",function(n){return n===r?this.page.info().page:this.iterator("table",function(t){cr(t,n)})});f("page.info()",function(){if(0===this.context.length)return r;var n=this.context[0],i=n._iDisplayStart,t=n.oFeatures.bPaginate?n._iDisplayLength:-1,u=n.fnRecordsDisplay(),f=-1===t;return{page:f?0:Math.floor(i/t),pages:f?1:Math.ceil(u/t),start:i,end:n.fnDisplayEnd(),length:t,recordsTotal:n.fnRecordsTotal(),recordsDisplay:u,serverSide:"ssp"===v(n)}});f("page.len()",function(n){return n===r?0!==this.context.length?this.context[0]._iDisplayLength:r:this.iterator("table",function(t){hr(t,n)})});tu=function(n,t,i){var u,r;if(i){u=new e(n);u.one("draw",function(){i(u.ajax.json())})}"ssp"==v(n)?et(n,t):(w(n,!0),r=n.jqXHR,r&&4!==r.readyState&&r.abort(),hi(n,[],function(i){ei(n);for(var i=ci(n,i),r=0,u=i.length;r<u;r++)it(n,i[r]);et(n,t);w(n,!1)}))};f("ajax.json()",function(){var n=this.context;if(0<n.length)return n[0].json});f("ajax.params()",function(){var n=this.context;if(0<n.length)return n[0].oAjaxData});f("ajax.reload()",function(n,t){return this.iterator("table",function(i){tu(i,!1===t,n)})});f("ajax.url()",function(t){var i=this.context;return t===r?0===i.length?r:(i=i[0],i.ajax?n.isPlainObject(i.ajax)?i.ajax.url:i.ajax:i.sAjaxSource):this.iterator("table",function(i){n.isPlainObject(i.ajax)?i.ajax.url=t:i.ajax=t})});f("ajax.url().load()",function(n,t){return this.iterator("table",function(i){tu(i,!1===t,n)})});var iu=function(t,i,u,f,e){var h=[],v,l,o,a,s,y;for(o=typeof i,i&&"string"!==o&&"function"!==o&&i.length!==r||(i=[i]),o=0,a=i.length;o<a;o++)for(l=i[o]&&i[o].split&&!i[o].match(/[\[\(:]/)?i[o].split(","):[i[o]],s=0,y=l.length;s<y;s++)(v=u("string"==typeof l[s]?n.trim(l[s]):l[s]))&&v.length&&(h=h.concat(v));if(t=c.selector[t],t.length)for(o=0,a=t.length;o<a;o++)h=t[o](f,e,h);return bi(h)},ru=function(t){return t||(t={}),t.filter&&t.search===r&&(t.search=t.filter),n.extend({search:"none",order:"current",page:"all"},t)},uu=function(n){for(var t=0,i=n.length;t<i;t++)if(0<n[t].length)return n[0]=n[t],n[0].length=1,n.length=1,n.context=[n.context[t]],n;return n.length=0,n},di=function(t,i){var r,u,e,o=[],s=t.aiDisplay,f;if(r=t.aiDisplayMaster,f=i.search,u=i.order,e=i.page,"ssp"==v(t))return"removed"===f?[]:st(0,r.length);if("current"==e)for(r=t._iDisplayStart,u=t.fnDisplayEnd();r<u;r++)o.push(s[r]);else if("current"==u||"applied"==u)o="none"==f?r.slice():"applied"==f?s.slice():n.map(r,function(t){return-1===n.inArray(t,s)?t:null});else if("index"==u||"original"==u)for(r=0,u=t.aoData.length;r<u;r++)"none"==f?o.push(r):(e=n.inArray(r,s),(-1===e&&"removed"==f||0<=e&&"applied"==f)&&o.push(r));return o};return f("rows()",function(t,i){t===r?t="":n.isPlainObject(t)&&(i=t,t="");var i=ru(i),u=this.iterator("table",function(u){var e=i,f;return iu("row",t,function(t){var i=ue(t),o;return i!==null&&!e?[i]:(f||(f=di(u,e)),i!==null&&n.inArray(i,f)!==-1)?[i]:t===null||t===r||t===""?f:typeof t=="function"?n.map(f,function(n){var i=u.aoData[n];return t(n,i._aData,i.nTr)?n:null}):(i=oe(ni(u.aoData,f,"nTr")),t.nodeName)?t._DT_RowIndex!==r?[t._DT_RowIndex]:t._DT_CellIndex?[t._DT_CellIndex.row]:(i=n(t).closest("*[data-dt-row]"),i.length?[i.data("dt-row")]:[]):typeof t=="string"&&t.charAt(0)==="#"&&(o=u.aIds[t.replace(/^#/,"")],o!==r)?[o.idx]:n(i).filter(t).map(function(){return this._DT_RowIndex}).toArray()},u,e)},1);return u.selector.rows=t,u.selector.opts=i,u}),f("rows().nodes()",function(){return this.iterator("row",function(n,t){return n.aoData[t].nTr||r},1)}),f("rows().data()",function(){return this.iterator(!0,"rows",function(n,t){return ni(n.aoData,t,"_aData")},1)}),s("rows().cache()","row().cache()",function(n){return this.iterator("row",function(t,i){var r=t.aoData[i];return"search"===n?r._aFilterData:r._aSortData},1)}),s("rows().invalidate()","row().invalidate()",function(n){return this.iterator("row",function(t,i){pt(t,i,n)})}),s("rows().indexes()","row().index()",function(){return this.iterator("row",function(n,t){return t},1)}),s("rows().ids()","row().id()",function(n){for(var r,f,o,u=[],i=this.context,t=0,s=i.length;t<s;t++)for(r=0,f=this[t].length;r<f;r++)o=i[t].rowIdFn(i[t].aoData[this[t][r]]._aData),u.push((!0===n?"#":"")+o);return new e(i,u)}),s("rows().remove()","row().remove()",function(){var n=this;return this.iterator("row",function(t,i,u){var o=t.aoData,l=o[i],e,h,f,c,s;for(o.splice(i,1),e=0,h=o.length;e<h;e++)if(f=o[e],s=f.anCells,null!==f.nTr&&(f.nTr._DT_RowIndex=e),null!==s)for(f=0,c=s.length;f<c;f++)s[f]._DT_CellIndex.row=e;oi(t.aiDisplayMaster,i);oi(t.aiDisplay,i);oi(n[u],i,!1);0<t._iRecordsDisplay&&t._iRecordsDisplay--;pr(t);i=t.rowIdFn(l._aData);i!==r&&delete t.aIds[i]}),this.iterator("table",function(n){for(var t=0,i=n.aoData.length;t<i;t++)n.aoData[t].idx=t}),this}),f("rows.add()",function(t){var r=this.iterator("table",function(n){for(var i,u=[],r=0,f=t.length;r<f;r++)i=t[r],i.nodeName&&"TR"===i.nodeName.toUpperCase()?u.push(fi(n,i)[0]):u.push(it(n,i));return u},1),i=this.rows(-1);return i.pop(),n.merge(i,r),i}),f("row()",function(n,t){return uu(this.rows(n,t))}),f("row().data()",function(n){var t=this.context;return n===r?t.length&&this.length?t[0].aoData[this[0]]._aData:r:(t[0].aoData[this[0]]._aData=n,pt(t[0],this[0],"data"),this)}),f("row().node()",function(){var n=this.context;return n.length&&this.length?n[0].aoData[this[0]].nTr||null:null}),f("row.add()",function(t){t instanceof n&&t.length&&(t=t[0]);var i=this.iterator("table",function(n){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?fi(n,t)[0]:it(n,t)});return this.row(i[0])}),gi=function(n,t){var i=n.context;i.length&&(i=i[0].aoData[t!==r?t:n[0]])&&i._details&&(i._details.remove(),i._detailsShow=r,i._details=r)},fu=function(n,t){var o=n.context,i;if(o.length&&n.length&&(i=o[0].aoData[n[0]],i._details)){(i._detailsShow=t)?i._details.insertAfter(i.nTr):i._details.detach();var f=o[0],r=new e(f),u=f.aoData;r.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<b(u,"_details").length&&(r.on("draw.dt.DT_details",function(n,t){f===t&&r.rows({page:"current"}).eq(0).each(function(n){n=u[n];n._detailsShow&&n._details.insertAfter(n.nTr)})}),r.on("column-visibility.dt.DT_details",function(n,t){if(f===t)for(var i,e=yt(t),r=0,o=u.length;r<o;r++)i=u[r],i._details&&i._details.children("td[colspan]").attr("colspan",e)}),r.on("destroy.dt.DT_details",function(n,t){if(f===t)for(var i=0,e=u.length;i<e;i++)u[i]._details&&gi(r,i)}))}},f("row().child()",function(t,i){var u=this.context;if(t===r)return u.length&&this.length?u[0].aoData[this[0]]._details:r;if(!0===t)this.child.show();else if(!1===t)gi(this);else if(u.length&&this.length){var o=u[0],u=u[0].aoData[this[0]],f=[],e=function(t,i){if(n.isArray(t)||t instanceof n)for(var r=0,u=t.length;r<u;r++)e(t[r],i);else t.nodeName&&"tr"===t.nodeName.toLowerCase()?f.push(t):(r=n("<tr><td/><\/tr>").addClass(i),n("td",r).addClass(i).html(t)[0].colSpan=yt(o),f.push(r[0]))};e(t,i);u._details&&u._details.detach();u._details=n(f);u._detailsShow&&u._details.insertAfter(u.nTr)}return this}),f(["row().child.show()","row().child().show()"],function(){return fu(this,!0),this}),f(["row().child.hide()","row().child().hide()"],function(){return fu(this,!1),this}),f(["row().child.remove()","row().child().remove()"],function(){return gi(this),this}),f("row().child.isShown()",function(){var n=this.context;return n.length&&this.length?n[0].aoData[this[0]]._detailsShow||!1:!1}),he=/^([^:]+):(name|visIdx|visible)$/,eu=function(n,t,i,r,u){for(var i=[],r=0,f=u.length;r<f;r++)i.push(y(n,u[r],t));return i},f("columns()",function(t,i){t===r?t="":n.isPlainObject(t)&&(i=t,t="");var i=ru(i),u=this.iterator("table",function(r){var o=t,e=i,u=r.aoColumns,s=b(u,"sName"),f=b(u,"nTh");return iu("column",o,function(t){var i=ue(t),c,o,h;if(t==="")return st(u.length);if(i!==null)return[i>=0?i:u.length+i];if(typeof t=="function")return c=di(r,e),n.map(u,function(n,i){return t(i,eu(r,i,0,0,c),f[i])?i:null});if(o=typeof t=="string"?t.match(he):"",o)switch(o[2]){case"visIdx":case"visible":return(i=parseInt(o[1],10),i<0)?(h=n.map(u,function(n,t){return n.bVisible?t:null}),[h[h.length+i]]):[at(r,i)];case"name":return n.map(s,function(n,t){return n===o[1]?t:null});default:return[]}return t.nodeName&&t._DT_CellIndex?[t._DT_CellIndex.column]:(i=n(f).filter(t).map(function(){return n.inArray(this,f)}).toArray(),i.length||!t.nodeName)?i:(i=n(t).closest("*[data-dt-column]"),i.length?[i.data("dt-column")]:[])},r,e)},1);return u.selector.cols=t,u.selector.opts=i,u}),s("columns().header()","column().header()",function(){return this.iterator("column",function(n,t){return n.aoColumns[t].nTh},1)}),s("columns().footer()","column().footer()",function(){return this.iterator("column",function(n,t){return n.aoColumns[t].nTf},1)}),s("columns().data()","column().data()",function(){return this.iterator("column-rows",eu,1)}),s("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(n,t){return n.aoColumns[t].mData},1)}),s("columns().cache()","column().cache()",function(n){return this.iterator("column-rows",function(t,i,r,u,f){return ni(t.aoData,f,"search"===n?"_aFilterData":"_aSortData",i)},1)}),s("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(n,t,i,r,u){return ni(n.aoData,u,"anCells",t)},1)}),s("columns().visible()","column().visible()",function(t,i){var u=this.iterator("column",function(i,u){var l;if(t===r)return i.aoColumns[u].bVisible;var f=i.aoColumns,h=f[u],o=i.aoData,e,c,s;if(t!==r&&h.bVisible!==t){if(t)for(l=n.inArray(!0,b(f,"bVisible"),u+1),e=0,c=o.length;e<c;e++)s=o[e].nTr,f=o[e].anCells,s&&s.insertBefore(f[u],f[l]||null);else n(b(i.aoData,"anCells",u)).detach();h.bVisible=t;wt(i,i.aoHeader);wt(i,i.aoFooter);yi(i)}});return t!==r&&(this.iterator("column",function(n,r){o(n,null,"column-visibility",[n,r,t,i])}),(i===r||i)&&this.columns.adjust()),u}),s("columns().indexes()","column().index()",function(n){return this.iterator("column",function(t,i){return"visible"===n?vt(t,i):i},1)}),f("columns.adjust()",function(){return this.iterator("table",function(n){lt(n)},1)}),f("column.index()",function(n,t){if(0!==this.context.length){var i=this.context[0];if("fromVisible"===n||"toData"===n)return at(i,t);if("fromData"===n||"toVisible"===n)return vt(i,t)}}),f("column()",function(n,t){return uu(this.columns(n,t))}),f("cells()",function(t,i,u){if(n.isPlainObject(t)&&(t.row===r?(u=t,t=null):(u=i,i=null)),n.isPlainObject(i)&&(u=i,i=null),null===i||i===r)return this.iterator("table",function(i){var w=t,a=ru(u),v=i.aoData,l=di(i,a),b=oe(ni(v,l,"anCells")),k=n([].concat.apply([],b)),o,d=i.aoColumns.length,s,h,p,e,c,f;return iu("cell",w,function(t){var u=typeof t=="function";if(t===null||t===r||u){for(s=[],h=0,p=l.length;h<p;h++)for(o=l[h],e=0;e<d;e++)c={row:o,column:e},u?(f=v[o],t(c,y(i,o,e),f.anCells?f.anCells[e]:null)&&s.push(c)):s.push(c);return s}return n.isPlainObject(t)?[t]:(u=k.filter(t).map(function(n,t){return{row:t._DT_CellIndex.row,column:t._DT_CellIndex.column}}).toArray(),u.length||!t.nodeName)?u:(f=n(t).closest("*[data-dt-row]"),f.length?[{row:f.data("dt-row"),column:f.data("dt-column")}]:[])},i,a)});var s=this.columns(i,u),h=this.rows(t,u),o,f,c,e,l,a=this.iterator("table",function(n,t){for(o=[],f=0,c=h[t].length;f<c;f++)for(e=0,l=s[t].length;e<l;e++)o.push({row:h[t][f],column:s[t][e]});return o},1);return n.extend(a.selector,{cols:i,rows:t,opts:u}),a}),s("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(n,t,i){return(n=n.aoData[t])&&n.anCells?n.anCells[i]:r},1)}),f("cells().data()",function(){return this.iterator("cell",function(n,t,i){return y(n,t,i)},1)}),s("cells().cache()","cell().cache()",function(n){return n="search"===n?"_aFilterData":"_aSortData",this.iterator("cell",function(t,i,r){return t.aoData[i][n][r]},1)}),s("cells().render()","cell().render()",function(n){return this.iterator("cell",function(t,i,r){return y(t,i,r,n)},1)}),s("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(n,t,i){return{row:t,column:i,columnVisible:vt(n,i)}},1)}),s("cells().invalidate()","cell().invalidate()",function(n){return this.iterator("cell",function(t,i,r){pt(t,i,n,r)})}),f("cell()",function(n,t,i){return uu(this.cells(n,t,i))}),f("cell().data()",function(n){var i=this.context,t=this[0];return n===r?i.length&&t.length?y(i[0],t[0].row,t[0].column):r:(yu(i[0],t[0].row,t[0].column,n),pt(i[0],t[0].row,"data",t[0].column),this)}),f("order()",function(t,i){var u=this.context;return t===r?0!==u.length?u[0].aaSorting:r:("number"==typeof t?t=[[t,i]]:t.length&&!n.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",function(n){n.aaSorting=t.slice()}))}),f("order.listener()",function(n,t,i){return this.iterator("table",function(r){vr(r,n,t,i)})}),f("order.fixed()",function(t){if(!t){var i=this.context,i=i.length?i[0].aaSortingFixed:r;return n.isArray(i)?{pre:i}:i}return this.iterator("table",function(i){i.aaSortingFixed=n.extend(!0,{},t)})}),f(["columns().order()","column().order()"],function(t){var i=this;return this.iterator("table",function(r,u){var f=[];n.each(i[u],function(n,i){f.push([i,t])});r.aaSorting=f})}),f("search()",function(t,i,u,f){var e=this.context;return t===r?0!==e.length?e[0].oPreviousSearch.sSearch:r:this.iterator("table",function(r){r.oFeatures.bFilter&&kt(r,n.extend({},r.oPreviousSearch,{sSearch:t+"",bRegex:null===i?!1:i,bSmart:null===u?!0:u,bCaseInsensitive:null===f?!0:f}),1)})}),s("columns().search()","column().search()",function(t,i,u,f){return this.iterator("column",function(e,o){var s=e.aoPreSearchCols;if(t===r)return s[o].sSearch;e.oFeatures.bFilter&&(n.extend(s[o],{sSearch:t+"",bRegex:null===i?!1:i,bSmart:null===u?!0:u,bCaseInsensitive:null===f?!0:f}),kt(e,e.oPreviousSearch,1))})}),f("state()",function(){return this.context.length?this.context[0].oSavedState:null}),f("state.clear()",function(){return this.iterator("table",function(n){n.fnStateSaveCallback.call(n.oInstance,n,{})})}),f("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),f("state.save()",function(){return this.iterator("table",function(n){yi(n)})}),u.versionCheck=u.fnVersionCheck=function(n){for(var f=u.version.split("."),n=n.split("."),i,r,t=0,e=n.length;t<e;t++)if(i=parseInt(f[t],10)||0,r=parseInt(n[t],10)||0,i!==r)return i>r;return!0},u.isDataTable=u.fnIsDataTable=function(t){var i=n(t).get(0),r=!1;return t instanceof u.Api?!0:(n.each(u.settings,function(t,u){var f=u.nScrollHead?n("table",u.nScrollHead)[0]:null,e=u.nScrollFoot?n("table",u.nScrollFoot)[0]:null;(u.nTable===i||f===i||e===i)&&(r=!0)}),r)},u.tables=u.fnTables=function(t){var r=!1,i;return n.isPlainObject(t)&&(r=t.api,t=t.visible),i=n.map(u.settings,function(i){if(!t||t&&n(i.nTable).is(":visible"))return i.nTable}),r?new e(i):i},u.camelToHungarian=g,f("$()",function(t,i){var r=this.rows(i).nodes(),r=n(r);return n([].concat(r.filter(t).toArray(),r.find(t).toArray()))}),n.each(["on","one","off"],function(t,i){f(i+"()",function(){var t=Array.prototype.slice.call(arguments),r;return t[0]=n.map(t[0].split(/\s/),function(n){return n.match(/\.dt\b/)?n:n+".dt"}).join(" "),r=n(this.tables().nodes()),r[i].apply(r,t),this})}),f("clear()",function(){return this.iterator("table",function(n){ei(n)})}),f("settings()",function(){return new e(this.context,this.context)}),f("init()",function(){var n=this.context;return n.length?n[0].oInit:null}),f("data()",function(){return this.iterator("table",function(n){return b(n.aoData,"_aData")}).flatten()}),f("destroy()",function(i){return i=i||!1,this.iterator("table",function(r){var h=r.nTableWrapper.parentNode,c=r.oClasses,a=r.nTable,l=r.nTBody,f=r.nTHead,v=r.nTFoot,s=n(a),l=n(l),y=n(r.nTableWrapper),p=n.map(r.aoData,function(n){return n.nTr}),w;r.bDestroying=!0;o(r,"aoDestroyCallback","destroy",[r]);i||new e(r).columns().visible(!0);y.off(".DT").find(":not(tbody *)").off(".DT");n(t).off(".DT-"+r.sInstance);a!=f.parentNode&&(s.children("thead").detach(),s.append(f));v&&a!=v.parentNode&&(s.children("tfoot").detach(),s.append(v));r.aaSorting=[];r.aaSortingFixed=[];vi(r);n(p).removeClass(r.asStripeClasses.join(" "));n("th, td",f).removeClass(c.sSortable+" "+c.sSortableAsc+" "+c.sSortableDesc+" "+c.sSortableNone);l.children().detach();l.append(p);f=i?"remove":"detach";s[f]();y[f]();!i&&h&&(h.insertBefore(a,r.nTableReinsertBefore),s.css("width",r.sDestroyWidth).removeClass(c.sTable),(w=r.asDestroyStripes.length)&&l.children().each(function(t){n(this).addClass(r.asDestroyStripes[t%w])}));h=n.inArray(r,u.settings);-1!==h&&u.settings.splice(h,1)})}),n.each(["column","row","cell"],function(n,t){f(t+"s().every()",function(n){var i=this.selector.opts,u=this;return this.iterator(t,function(f,e,o,s,h){n.call(u[t](e,"cell"===t?o:i,"cell"===t?i:r),e,o,s,h)})})}),f("i18n()",function(t,i,u){var f=this.context[0],t=ut(t)(f.oLanguage);return t===r&&(t=i),u!==r&&n.isPlainObject(t)&&(t=t[u]!==r?t[u]:t._),t.replace("%d",u)}),u.version="1.10.16",u.settings=[],u.models={},u.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},u.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},u.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},u.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(n){return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(n){try{return JSON.parse((-1===n.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+n.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(n,t){try{(-1===n.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+n.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(i){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:n.extend({},u.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},ct(u.defaults),u.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},ct(u.defaults.column),u.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:r,oAjaxData:r,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==v(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==v(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var n=this._iDisplayLength,t=this._iDisplayStart,r=t+n,i=this.aiDisplay.length,u=this.oFeatures,f=u.bPaginate;return u.bServerSide?!1===f||-1===n?t+i:Math.min(t+n,this._iRecordsDisplay):!f||r>i||-1===n?i:r},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},u.ext=c={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:u.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:u.version},n.extend(c,{afnFiltering:c.search,aTypes:c.type.detect,ofnSearch:c.type.search,oSort:c.type.order,afnSortData:c.order,aoFeatures:c.feature,oApi:c.internal,oStdClasses:c.classes,oPagination:c.pager}),n.extend(u.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),ou=u.ext.pager,n.extend(ou,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(n,t){return[gt(n,t)]},simple_numbers:function(n,t){return["previous",gt(n,t),"next"]},full_numbers:function(n,t){return["first","previous",gt(n,t),"next","last"]},first_last_numbers:function(n,t){return["first",gt(n,t),"last"]},_numbers:gt,numbers_length:7}),n.extend(!0,u.ext.renderer,{pageButton:{_:function(t,u,f,e,o,s){var l=t.oClasses,a=t.oLanguage.oPaginate,w=t.oLanguage.oAria.paginate||{},h,c,y=0,p=function(i,r){for(var v,u,k=function(n){cr(t,n.data.action,!0)},e=0,b=r.length;e<b;e++)if(u=r[e],n.isArray(u))v=n("<"+(u.DT_el||"div")+"/>").appendTo(i),p(v,u);else{h=null;c="";switch(u){case"ellipsis":i.append('<span class="ellipsis">&#x2026;<\/span>');break;case"first":h=a.sFirst;c=u+(o>0?"":" "+l.sPageButtonDisabled);break;case"previous":h=a.sPrevious;c=u+(o>0?"":" "+l.sPageButtonDisabled);break;case"next":h=a.sNext;c=u+(o<s-1?"":" "+l.sPageButtonDisabled);break;case"last":h=a.sLast;c=u+(o<s-1?"":" "+l.sPageButtonDisabled);break;default:h=u+1;c=o===u?l.sPageButtonActive:""}h!==null&&(v=n("<a>",{"class":l.sPageButton+" "+c,"aria-controls":t.sTableId,"aria-label":w[u],"data-dt-idx":y,tabindex:t.iTabIndex,id:f===0&&typeof u=="string"?t.sTableId+"_"+u:null}).html(h).appendTo(i),yr(v,{action:u},k),y++)}},v;try{v=n(u).find(i.activeElement).data("dt-idx")}catch(b){}p(n(u).empty(),e);v!==r&&n(u).find("[data-dt-idx="+v+"]").focus()}}}),n.extend(u.ext.type.detect,[function(n,t){var i=t.oLanguage.sDecimal;return dr(n,i)?"num"+i:null},function(n){if(n&&!(n instanceof Date)&&!ce.test(n))return null;var t=Date.parse(n);return null!==t&&!isNaN(t)||tt(n)?"date":null},function(n,t){var i=t.oLanguage.sDecimal;return dr(n,i,!0)?"num-fmt"+i:null},function(n,t){var i=t.oLanguage.sDecimal;return ee(n,i)?"html-num"+i:null},function(n,t){var i=t.oLanguage.sDecimal;return ee(n,i,!0)?"html-num-fmt"+i:null},function(n){return tt(n)||"string"==typeof n&&-1!==n.indexOf("<")?"html":null}]),n.extend(u.ext.type.search,{html:function(n){return tt(n)?n:"string"==typeof n?n.replace(re," ").replace(wi,""):""},string:function(n){return tt(n)?n:"string"==typeof n?n.replace(re," "):n}}),ii=function(n,t,i,r){return 0!==n&&(!n||"-"===n)?-Infinity:(t&&(n=fe(n,t)),n.replace&&(i&&(n=n.replace(i,"")),r&&(n=n.replace(r,""))),1*n)},n.extend(c.type.order,{"date-pre":function(n){return Date.parse(n)||-Infinity},"html-pre":function(n){return tt(n)?"":n.replace?n.replace(/<.*?>/g,"").toLowerCase():n+""},"string-pre":function(n){return tt(n)?"":"string"==typeof n?n.toLowerCase():n.toString?n.toString():""},"string-asc":function(n,t){return n<t?-1:n>t?1:0},"string-desc":function(n,t){return n<t?1:n>t?-1:0}}),te(""),n.extend(!0,u.ext.renderer,{header:{_:function(t,i,r,u){n(t.nTable).on("order.dt.DT",function(n,f,e,o){t===f&&(n=r.idx,i.removeClass(r.sSortingClass+" "+u.sSortAsc+" "+u.sSortDesc).addClass(o[n]=="asc"?u.sSortAsc:o[n]=="desc"?u.sSortDesc:r.sSortingClass))})},jqueryui:function(t,i,r,u){n("<div/>").addClass(u.sSortJUIWrapper).append(i.contents()).append(n("<span/>").addClass(u.sSortIcon+" "+r.sSortingClassJUI)).appendTo(i);n(t.nTable).on("order.dt.DT",function(n,f,e,o){t===f&&(n=r.idx,i.removeClass(u.sSortAsc+" "+u.sSortDesc).addClass(o[n]=="asc"?u.sSortAsc:o[n]=="desc"?u.sSortDesc:r.sSortingClass),i.find("span."+u.sSortIcon).removeClass(u.sSortJUIAsc+" "+u.sSortJUIDesc+" "+u.sSortJUI+" "+u.sSortJUIAscAllowed+" "+u.sSortJUIDescAllowed).addClass(o[n]=="asc"?u.sSortJUIAsc:o[n]=="desc"?u.sSortJUIDesc:r.sSortingClassJUI))})}}}),su=function(n){return"string"==typeof n?n.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):n},u.render={number:function(n,t,i,r,u){return{display:function(f){if("number"!=typeof f&&"string"!=typeof f)return f;var o=0>f?"-":"",e=parseFloat(f);return isNaN(e)?su(f):(e=e.toFixed(i),f=Math.abs(e),e=parseInt(f,10),f=i?t+(f-e).toFixed(i).substring(2):"",o+(r||"")+e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,n)+f+(u||""))}}},text:function(){return{display:su}}},n.extend(u.ext.internal,{_fnExternApiFunc:ie,_fnBuildAjax:hi,_fnAjaxUpdate:bu,_fnAjaxParameters:ku,_fnAjaxUpdateDraw:du,_fnAjaxDataSrc:ci,_fnAddColumn:tr,_fnColumnOptions:ri,_fnAdjustColumnSizing:lt,_fnVisibleToColumnIndex:at,_fnColumnIndexToVisible:vt,_fnVisbleColumns:yt,_fnGetColumns:ui,_fnColumnTypes:ir,_fnApplyColumnDefs:vu,_fnHungarianMap:ct,_fnCamelToHungarian:g,_fnLanguageCompat:nr,_fnBrowserDetect:lu,_fnAddData:it,_fnAddTr:fi,_fnNodeToDataIndex:function(n,t){return t._DT_RowIndex!==r?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,i,r){return n.inArray(r,t.aoData[i].anCells)},_fnGetCellData:y,_fnSetCellData:yu,_fnSplitObjNotation:rr,_fnGetObjectDataFn:ut,_fnSetObjectDataFn:ft,_fnGetDataMaster:ur,_fnClearTable:ei,_fnDeleteIndex:oi,_fnInvalidate:pt,_fnGetRowElements:fr,_fnCreateTr:er,_fnBuildHead:pu,_fnDrawHead:wt,_fnDraw:rt,_fnReDraw:et,_fnAddOptionsHtml:wu,_fnDetectHeader:bt,_fnGetUniqueThs:si,_fnFeatureHtmlFilter:gu,_fnFilterComplete:kt,_fnFilterCustom:nf,_fnFilterColumn:tf,_fnFilter:rf,_fnFilterCreateSearch:sr,_fnEscapeRegex:gr,_fnFilterData:uf,_fnFeatureHtmlInfo:of,_fnUpdateInfo:sf,_fnInfoMacros:hf,_fnInitialise:dt,_fnInitComplete:li,_fnLengthChange:hr,_fnFeatureHtmlLength:cf,_fnFeatureHtmlPaginate:lf,_fnPageChange:cr,_fnFeatureHtmlProcessing:af,_fnProcessingDisplay:w,_fnFeatureHtmlTable:vf,_fnScrollDraw:ai,_fnApplyToChildren:d,_fnCalculateColumnWidths:lr,_fnThrottle:nu,_fnConvertToWidth:yf,_fnGetWidestNode:pf,_fnGetMaxLenString:wf,_fnStringToCss:h,_fnSortFlatten:ot,_fnSort:bf,_fnSortAria:kf,_fnSortListener:ar,_fnSortAttachListener:vr,_fnSortingClasses:vi,_fnSortData:df,_fnSaveState:yi,_fnLoadState:gf,_fnSettingsFromNode:pi,_fnLog:nt,_fnMap:k,_fnBindAction:yr,_fnCallbackReg:a,_fnCallbackFire:o,_fnLengthOverflow:pr,_fnRenderer:wr,_fnDataSource:v,_fnRowAttributes:or,_fnCalculateEnd:function(){}}),n.fn.dataTable=u,u.$=n,n.fn.dataTableSettings=u.settings,n.fn.dataTableExt=u.ext,n.fn.DataTable=function(t){return n(this).dataTable(t).api()},n.each(u,function(t,i){n.fn.DataTable[t]=i}),n.fn.dataTable}),function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,i){return t||(t=window),i&&i.fn.dataTable||(i=require("datatables.net")(t,i).$),n(i,t,t.document)}:n(jQuery,window,document)}(function(n,t,i,r){var u=n.fn.dataTable;return n.extend(!0,u.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),n.extend(u.ext.classes,{sWrapper:"dataTables_wrapper container-fluid dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),u.ext.renderer.pageButton.bootstrap=function(t,f,e,o,s,h){var y=new u.Api(t),b=t.oClasses,a=t.oLanguage.oPaginate,k=t.oLanguage.oAria.paginate||{},c,l,p=0,w=function(i,r){for(var v,u,d=function(t){t.preventDefault();n(t.currentTarget).hasClass("disabled")||y.page()==t.data.action||y.page(t.data.action).draw("page")},f=0,o=r.length;f<o;f++)if(u=r[f],n.isArray(u))w(i,u);else{l=c="";switch(u){case"ellipsis":c="&#x2026;";l="disabled";break;case"first":c=a.sFirst;l=u+(0<s?"":" disabled");break;case"previous":c=a.sPrevious;l=u+(0<s?"":" disabled");break;case"next":c=a.sNext;l=u+(s<h-1?"":" disabled");break;case"last":c=a.sLast;l=u+(s<h-1?"":" disabled");break;default:c=u+1;l=s===u?"active":""}c&&(v=n("<li>",{"class":b.sPageButton+" "+l,id:0===e&&"string"==typeof u?t.sTableId+"_"+u:null}).append(n("<a>",{href:"#","aria-controls":t.sTableId,"aria-label":k[u],"data-dt-idx":p,tabindex:t.iTabIndex,"class":"page-link"}).html(c)).appendTo(i),t.oApi._fnBindAction(v,{action:u},d),p++)}},v;try{v=n(f).find(i.activeElement).data("dt-idx")}catch(d){}w(n(f).empty().html('<ul class="pagination"/>').children("ul"),o);v!==r&&n(f).find("[data-dt-idx="+v+"]").focus()},u}),function(n){typeof define=="function"&&define.amd?define(["jquery","datatables.net"],function(t){return n(t,window,document)}):typeof exports=="object"?module.exports=function(t,i){return t||(t=window),i&&i.fn.dataTable||(i=require("datatables.net")(t,i).$),n(i,t,t.document)}:n(jQuery,window,document)}(function(n,t,i,r){"use strict";function e(n){for(var i=[],t=0,r=n.length;t<r;t++)i[n[t]]=t;return i}function f(n,t,i){var r=n.splice(t,1)[0];n.splice(i,0,r)}function o(n,t,i){for(var u=[],f,r=0,e=n.childNodes.length;r<e;r++)n.childNodes[r].nodeType==1&&u.push(n.childNodes[r]);f=u[t];i!==null?n.insertBefore(f,u[i]):n.appendChild(f)}var s=n.fn.dataTable,u;n.fn.dataTableExt.oApi.fnColReorder=function(t,i,u,s,h){var c,l,y,it,rt,p=t.aoColumns.length,b,a,g=function(n,t,i){if(n[t]&&typeof n[t]!="function"){var r=n[t].split("."),u=r.shift();isNaN(u*1)||(n[t]=i[u*1]+"."+r.join("."))}},nt,v,tt,k,d,w;if(i!=u){if(i<0||i>=p){this.oApi._fnLog(t,1,"ColReorder 'from' index is out of bounds: "+i);return}if(u<0||u>=p){this.oApi._fnLog(t,1,"ColReorder 'to' index is out of bounds: "+u);return}for(nt=[],c=0,l=p;c<l;c++)nt[c]=c;for(f(nt,i,u),v=e(nt),c=0,l=t.aaSorting.length;c<l;c++)t.aaSorting[c][0]=v[t.aaSorting[c][0]];if(t.aaSortingFixed!==null)for(c=0,l=t.aaSortingFixed.length;c<l;c++)t.aaSortingFixed[c][0]=v[t.aaSortingFixed[c][0]];for(c=0,l=p;c<l;c++){for(a=t.aoColumns[c],y=0,it=a.aDataSort.length;y<it;y++)a.aDataSort[y]=v[a.aDataSort[y]];a.idx=v[a.idx]}for(n.each(t.aLastSort,function(n,i){t.aLastSort[n].src=v[i.src]}),c=0,l=p;c<l;c++)a=t.aoColumns[c],typeof a.mData=="number"?a.mData=v[a.mData]:n.isPlainObject(a.mData)&&(g(a.mData,"_",v),g(a.mData,"filter",v),g(a.mData,"sort",v),g(a.mData,"type",v));if(t.aoColumns[i].bVisible){for(tt=this.oApi._fnColumnIndexToVisible(t,i),k=null,c=u<i?u:u+1;k===null&&c<p;)k=this.oApi._fnColumnIndexToVisible(t,c),c++;for(b=t.nTHead.getElementsByTagName("tr"),c=0,l=b.length;c<l;c++)o(b[c],tt,k);if(t.nTFoot!==null)for(b=t.nTFoot.getElementsByTagName("tr"),c=0,l=b.length;c<l;c++)o(b[c],tt,k);for(c=0,l=t.aoData.length;c<l;c++)t.aoData[c].nTr!==null&&o(t.aoData[c].nTr,tt,k)}for(f(t.aoColumns,i,u),c=0,l=p;c<l;c++)t.oApi._fnColumnOptions(t,c,{});for(f(t.aoPreSearchCols,i,u),c=0,l=t.aoData.length;c<l;c++){if(d=t.aoData[c],w=d.anCells,w)for(f(w,i,u),y=0,rt=w.length;y<rt;y++)w[y]&&w[y]._DT_CellIndex&&(w[y]._DT_CellIndex.column=y);d.src!=="dom"&&n.isArray(d._aData)&&f(d._aData,i,u)}for(c=0,l=t.aoHeader.length;c<l;c++)f(t.aoHeader[c],i,u);if(t.aoFooter!==null)for(c=0,l=t.aoFooter.length;c<l;c++)f(t.aoFooter[c],i,u);for((h||h===r)&&n.fn.dataTable.Api(t).rows().invalidate(),c=0,l=p;c<l;c++)n(t.aoColumns[c].nTh).off("click.DT"),this.oApi._fnSortAttachListener(t,t.aoColumns[c].nTh,c);n(t.oInstance).trigger("column-reorder.dt",[t,{from:i,to:u,mapping:v,drop:s,iFrom:i,iTo:u,aiInvertMapping:v}])}};u=function(t,i){var f=new n.fn.dataTable.Api(t).settings()[0],r;return f._colReorder?f._colReorder:(i===!0&&(i={}),r=n.fn.dataTable.camelToHungarian,r&&(r(u.defaults,u.defaults,!0),r(u.defaults,i||{})),this.s={dt:null,init:n.extend(!0,{},u.defaults,i),fixed:0,fixedRight:0,reorderCallback:null,mouse:{startX:-1,startY:-1,offsetX:-1,offsetY:-1,target:-1,targetIndex:-1,fromIndex:-1},aoTargets:[]},this.dom={drag:null,pointer:null},this.s.dt=f,this.s.dt._colReorder=this,this._fnConstruct(),this)};n.extend(u.prototype,{fnReset:function(){return this._fnOrderColumns(this.fnOrder()),this},fnGetCurrentOrder:function(){return this.fnOrder()},fnOrder:function(t,i){var f=[],u,o,s=this.s.dt.aoColumns,h;if(t===r){for(u=0,o=s.length;u<o;u++)f.push(s[u]._ColReorder_iOrigCol);return f}if(i){for(h=this.fnOrder(),u=0,o=t.length;u<o;u++)f.push(n.inArray(t[u],h));t=f}return this._fnOrderColumns(e(t)),this},fnTranspose:function(t,i){i||(i="toCurrent");var r=this.fnOrder(),u=this.s.dt.aoColumns;return i==="toCurrent"?n.isArray(t)?n.map(t,function(t){return n.inArray(t,r)}):n.inArray(t,r):n.isArray(t)?n.map(t,function(n){return u[n]._ColReorder_iOrigCol}):u[t]._ColReorder_iOrigCol},_fnConstruct:function(){var t=this,o=this.s.dt.aoColumns.length,u=this.s.dt.nTable,i,r,f,s;for(this.s.init.iFixedColumns&&(this.s.fixed=this.s.init.iFixedColumns),this.s.init.iFixedColumnsLeft&&(this.s.fixed=this.s.init.iFixedColumnsLeft),this.s.fixedRight=this.s.init.iFixedColumnsRight?this.s.init.iFixedColumnsRight:0,this.s.init.fnReorderCallback&&(this.s.reorderCallback=this.s.init.fnReorderCallback),i=0;i<o;i++)i>this.s.fixed-1&&i<o-this.s.fixedRight&&this._fnMouseListener(i,this.s.dt.aoColumns[i].nTh),this.s.dt.aoColumns[i]._ColReorder_iOrigCol=i;if(this.s.dt.oApi._fnCallbackReg(this.s.dt,"aoStateSaveParams",function(n,i){t._fnStateSave.call(t,i)},"ColReorder_State"),r=null,this.s.init.aiOrder&&(r=this.s.init.aiOrder.slice()),this.s.dt.oLoadedState&&typeof this.s.dt.oLoadedState.ColReorder!="undefined"&&this.s.dt.oLoadedState.ColReorder.length==this.s.dt.aoColumns.length&&(r=this.s.dt.oLoadedState.ColReorder),r)if(t.s.dt._bInitComplete)s=e(r),t._fnOrderColumns.call(t,s);else{f=!1;n(u).on("draw.dt.colReorder",function(){if(!t.s.dt._bInitComplete&&!f){f=!0;var n=e(r);t._fnOrderColumns.call(t,n)}})}else this._fnSetColumnIndexes();n(u).on("destroy.dt.colReorder",function(){n(u).off("destroy.dt.colReorder draw.dt.colReorder");n(t.s.dt.nTHead).find("*").off(".ColReorder");n.each(t.s.dt.aoColumns,function(t,i){n(i.nTh).removeAttr("data-column-index")});t.s.dt._colReorder=null;t.s=null})},_fnOrderColumns:function(t){var u=!1,i,e,r;if(t.length!=this.s.dt.aoColumns.length){this.s.dt.oInstance.oApi._fnLog(this.s.dt,1,"ColReorder - array reorder does not match known number of columns. Skipping.");return}for(i=0,e=t.length;i<e;i++)r=n.inArray(i,t),i!=r&&(f(t,r,i),this.s.dt.oInstance.fnColReorder(r,i,!0,!1),u=!0);(n.fn.dataTable.Api(this.s.dt).rows().invalidate(),this._fnSetColumnIndexes(),u)&&((this.s.dt.oScroll.sX!==""||this.s.dt.oScroll.sY!=="")&&this.s.dt.oInstance.fnAdjustColumnSizing(!1),this.s.dt.oInstance.oApi._fnSaveState(this.s.dt),this.s.reorderCallback!==null&&this.s.reorderCallback.call(this))},_fnStateSave:function(t){var i,f,r,s=this.s.dt,u=s.aoColumns,e,o;if(t.ColReorder=[],t.aaSorting){for(i=0;i<t.aaSorting.length;i++)t.aaSorting[i][0]=u[t.aaSorting[i][0]]._ColReorder_iOrigCol;for(e=n.extend(!0,[],t.aoSearchCols),i=0,f=u.length;i<f;i++)r=u[i]._ColReorder_iOrigCol,t.aoSearchCols[r]=e[i],t.abVisCols[r]=u[i].bVisible,t.ColReorder.push(r)}else if(t.order){for(i=0;i<t.order.length;i++)t.order[i][0]=u[t.order[i][0]]._ColReorder_iOrigCol;for(o=n.extend(!0,[],t.columns),i=0,f=u.length;i<f;i++)r=u[i]._ColReorder_iOrigCol,t.columns[r]=o[i],t.ColReorder.push(r)}},_fnMouseListener:function(t,i){var r=this;n(i).on("mousedown.ColReorder",function(n){r._fnMouseDown.call(r,n,i)}).on("touchstart.ColReorder",function(n){r._fnMouseDown.call(r,n,i)})},_fnMouseDown:function(t,u){var f=this,s=n(t.target).closest("th, td"),o=s.offset(),e=parseInt(n(u).attr("data-column-index"),10);if(e!==r){this.s.mouse.startX=this._fnCursorPosition(t,"pageX");this.s.mouse.startY=this._fnCursorPosition(t,"pageY");this.s.mouse.offsetX=this._fnCursorPosition(t,"pageX")-o.left;this.s.mouse.offsetY=this._fnCursorPosition(t,"pageY")-o.top;this.s.mouse.target=this.s.dt.aoColumns[e].nTh;this.s.mouse.targetIndex=e;this.s.mouse.fromIndex=e;this._fnRegions();n(i).on("mousemove.ColReorder touchmove.ColReorder",function(n){f._fnMouseMove.call(f,n)}).on("mouseup.ColReorder touchend.ColReorder",function(n){f._fnMouseUp.call(f,n)})}},_fnMouseMove:function(n){var f=this,i,r,t,u;if(this.dom.drag===null){if(Math.pow(Math.pow(this._fnCursorPosition(n,"pageX")-this.s.mouse.startX,2)+Math.pow(this._fnCursorPosition(n,"pageY")-this.s.mouse.startY,2),.5)<5)return;this._fnCreateDragNode()}for(this.dom.drag.css({left:this._fnCursorPosition(n,"pageX")-this.s.mouse.offsetX,top:this._fnCursorPosition(n,"pageY")-this.s.mouse.offsetY}),i=!1,r=this.s.mouse.toIndex,t=1,u=this.s.aoTargets.length;t<u;t++)if(this._fnCursorPosition(n,"pageX")<this.s.aoTargets[t-1].x+(this.s.aoTargets[t].x-this.s.aoTargets[t-1].x)/2){this.dom.pointer.css("left",this.s.aoTargets[t-1].x);this.s.mouse.toIndex=this.s.aoTargets[t-1].to;i=!0;break}i||(this.dom.pointer.css("left",this.s.aoTargets[this.s.aoTargets.length-1].x),this.s.mouse.toIndex=this.s.aoTargets[this.s.aoTargets.length-1].to);this.s.init.bRealtime&&r!==this.s.mouse.toIndex&&(this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex,!1),this.s.mouse.fromIndex=this.s.mouse.toIndex,this._fnRegions())},_fnMouseUp:function(){var t=this;n(i).off(".ColReorder");this.dom.drag!==null&&(this.dom.drag.remove(),this.dom.pointer.remove(),this.dom.drag=null,this.dom.pointer=null,this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex,!0),this._fnSetColumnIndexes(),(this.s.dt.oScroll.sX!==""||this.s.dt.oScroll.sY!=="")&&this.s.dt.oInstance.fnAdjustColumnSizing(!1),this.s.dt.oInstance.oApi._fnSaveState(this.s.dt),this.s.reorderCallback!==null&&this.s.reorderCallback.call(this))},_fnRegions:function(){var i=this.s.dt.aoColumns,r,u,t,f;for(this.s.aoTargets.splice(0,this.s.aoTargets.length),this.s.aoTargets.push({x:n(this.s.dt.nTable).offset().left,to:0}),r=0,u=this.s.aoTargets[0].x,t=0,f=i.length;t<f;t++)t!=this.s.mouse.fromIndex&&r++,i[t].bVisible&&i[t].nTh.style.display!=="none"&&(u+=n(i[t].nTh).outerWidth(),this.s.aoTargets.push({x:u,to:r}));this.s.fixedRight!==0&&this.s.aoTargets.splice(this.s.aoTargets.length-this.s.fixedRight);this.s.fixed!==0&&this.s.aoTargets.splice(0,this.s.fixed)},_fnCreateDragNode:function(){var i=this.s.dt.oScroll.sX!==""||this.s.dt.oScroll.sY!=="",t=this.s.dt.aoColumns[this.s.mouse.targetIndex].nTh,r=t.parentNode,u=r.parentNode,f=u.parentNode,e=n(t).clone();this.dom.drag=n(f.cloneNode(!1)).addClass("DTCR_clonedTable").append(n(u.cloneNode(!1)).append(n(r.cloneNode(!1)).append(e[0]))).css({position:"absolute",top:0,left:0,width:n(t).outerWidth(),height:n(t).outerHeight()}).appendTo("body");this.dom.pointer=n("<div><\/div>").addClass("DTCR_pointer").css({position:"absolute",top:i?n("div.dataTables_scroll",this.s.dt.nTableWrapper).offset().top:n(this.s.dt.nTable).offset().top,height:i?n("div.dataTables_scroll",this.s.dt.nTableWrapper).height():n(this.s.dt.nTable).height()}).appendTo("body")},_fnSetColumnIndexes:function(){n.each(this.s.dt.aoColumns,function(t,i){n(i.nTh).attr("data-column-index",t)})},_fnCursorPosition:function(n,t){return n.type.indexOf("touch")!==-1?n.originalEvent.touches[0][t]:n[t]}});u.defaults={aiOrder:null,bRealtime:!0,iFixedColumnsLeft:0,iFixedColumnsRight:0,fnReorderCallback:null};u.version="1.4.1";n.fn.dataTable.ColReorder=u;n.fn.DataTable.ColReorder=u;typeof n.fn.dataTable=="function"&&typeof n.fn.dataTableExt.fnVersionCheck=="function"&&n.fn.dataTableExt.fnVersionCheck("1.10.8")?n.fn.dataTableExt.aoFeatures.push({fnInit:function(n){var r=n.oInstance,t,i;return n._colReorder?r.oApi._fnLog(n,1,"ColReorder attempted to initialise twice. Ignoring second"):(t=n.oInit,i=t.colReorder||t.oColReorder||{},new u(n,i)),null},cFeature:"R",sFeature:"ColReorder"}):alert("Warning: ColReorder requires DataTables 1.10.8 or greater - www.datatables.net/download");n(i).on("preInit.dt.colReorder",function(t,i){var r,f,e;t.namespace==="dt"&&(r=i.oInit.colReorder,f=s.defaults.colReorder,(r||f)&&(e=n.extend({},r,f),r!==!1&&new u(i,e)))});return n.fn.dataTable.Api.register("colReorder.reset()",function(){return this.iterator("table",function(n){n._colReorder.fnReset()})}),n.fn.dataTable.Api.register("colReorder.order()",function(n,t){return n?this.iterator("table",function(i){i._colReorder.fnOrder(n,t)}):this.context.length?this.context[0]._colReorder.fnOrder():null}),n.fn.dataTable.Api.register("colReorder.transpose()",function(n,t){return this.context.length&&this.context[0]._colReorder?this.context[0]._colReorder.fnTranspose(n,t):n}),n.fn.dataTable.Api.register("colReorder.move()",function(n,t,i,r){return this.context.length&&this.context[0]._colReorder.s.dt.oInstance.fnColReorder(n,t,i,r),this}),u}),function(){var r,t=[].indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===n)return t;return-1},u=[].slice,i=function(n,t){return function(){return n.apply(t,arguments)}},n={}.hasOwnProperty;(r=function(n){return"object"==typeof exports&&"object"==typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)})(function(r){var v,nt,f,b,tt,it,y,o,rt,s,p,c,w,k,d,g,ut,e,l,h,a;return nt=function(n,t,i){var f,u,r,e;for(n+="",u=n.split("."),r=u[0],e=u.length>1?i+u[1]:"",f=/(\d+)(\d{3})/;f.test(r);)r=r.replace(f,"$1"+t+"$2");return r+e},p=function(n){var t;return t={digitsAfterDecimal:2,scaler:1,thousandsSep:",",decimalSep:".",prefix:"",suffix:""},n=r.extend({},t,n),function(t){var i;return isNaN(t)||!isFinite(t)?"":(i=nt((n.scaler*t).toFixed(n.digitsAfterDecimal),n.thousandsSep,n.decimalSep),""+n.prefix+i+n.suffix)}},e=p(),l=p({digitsAfterDecimal:0}),h=p({digitsAfterDecimal:1,scaler:100,suffix:"%"}),f={count:function(n){return null==n&&(n=l),function(){return function(){return{count:0,push:function(){return this.count++},value:function(){return this.count},format:n}}}},uniques:function(n,i){return null==i&&(i=l),function(r){var u;return u=r[0],function(){return{uniq:[],push:function(n){var i;if(i=n[u],t.call(this.uniq,i)<0)return this.uniq.push(n[u])},value:function(){return n(this.uniq)},format:i,numInputs:null!=u?0:1}}}},sum:function(n){return null==n&&(n=e),function(t){var i;return i=t[0],function(){return{sum:0,push:function(n){if(!isNaN(parseFloat(n[i])))return this.sum+=parseFloat(n[i])},value:function(){return this.sum},format:n,numInputs:null!=i?0:1}}}},extremes:function(n,t){return null==t&&(t=e),function(i){var r;return r=i[0],function(i){return{val:null,sorter:y(null!=i?i.sorters:void 0,r),push:function(t){var u,f,e,i;if(i=t[r],"min"!==n&&"max"!==n||(i=parseFloat(i),isNaN(i)||(this.val=Math[n](i,null!=(u=this.val)?u:i))),"first"===n&&this.sorter(i,null!=(f=this.val)?f:i)<=0&&(this.val=i),"last"===n&&this.sorter(i,null!=(e=this.val)?e:i)>=0)return this.val=i},value:function(){return this.val},format:function(n){return isNaN(n)?n:t(n)},numInputs:null!=r?0:1}}}},quantile:function(n,t){return null==t&&(t=e),function(i){var r;return r=i[0],function(){return{vals:[],push:function(n){var t;if(t=parseFloat(n[r]),!isNaN(t))return this.vals.push(t)},value:function(){var t;return 0===this.vals.length?null:(this.vals.sort(function(n,t){return n-t}),t=(this.vals.length-1)*n,(this.vals[Math.floor(t)]+this.vals[Math.ceil(t)])/2)},format:t,numInputs:null!=r?0:1}}}},runningStat:function(n,t,i){return null==n&&(n="mean"),null==t&&(t=1),null==i&&(i=e),function(r){var u;return u=r[0],function(){return{n:0,m:0,s:0,push:function(n){var i,t;if(t=parseFloat(n[u]),!isNaN(t))return this.n+=1,1===this.n?this.m=t:(i=this.m+(t-this.m)/this.n,this.s=this.s+(t-this.m)*(t-i),this.m=i)},value:function(){if("mean"===n)return 0===this.n?NaN:this.m;if(this.n<=t)return 0;switch(n){case"var":return this.s/(this.n-t);case"stdev":return Math.sqrt(this.s/(this.n-t))}},format:i,numInputs:null!=u?0:1}}}},sumOverSum:function(n){return null==n&&(n=e),function(t){var i,r;return r=t[0],i=t[1],function(){return{sumNum:0,sumDenom:0,push:function(n){if(isNaN(parseFloat(n[r]))||(this.sumNum+=parseFloat(n[r])),!isNaN(parseFloat(n[i])))return this.sumDenom+=parseFloat(n[i])},value:function(){return this.sumNum/this.sumDenom},format:n,numInputs:null!=r&&null!=i?0:2}}}},sumOverSumBound80:function(n,t){return null==n&&(n=!0),null==t&&(t=e),function(i){var r,u;return u=i[0],r=i[1],function(){return{sumNum:0,sumDenom:0,push:function(n){if(isNaN(parseFloat(n[u]))||(this.sumNum+=parseFloat(n[u])),!isNaN(parseFloat(n[r])))return this.sumDenom+=parseFloat(n[r])},value:function(){var t;return t=n?1:-1,(.821187207574908/this.sumDenom+this.sumNum/this.sumDenom+1.2815515655446004*t*Math.sqrt(.410593603787454/(this.sumDenom*this.sumDenom)+this.sumNum*(1-this.sumNum/this.sumDenom)/(this.sumDenom*this.sumDenom)))/(1+1.6423744151498161/this.sumDenom)},format:t,numInputs:null!=u&&null!=r?0:2}}}},fractionOf:function(n,t,i){return null==t&&(t="total"),null==i&&(i=h),function(){var r;return r=1<=arguments.length?u.call(arguments,0):[],function(u,f,e){return{selector:{total:[[],[]],row:[f,[]],col:[[],e]}[t],inner:n.apply(null,r)(u,f,e),push:function(n){return this.inner.push(n)},format:i,value:function(){return this.inner.value()/u.getAggregator.apply(u,this.selector).inner.value()},numInputs:n.apply(null,r)().numInputs}}}}},f.countUnique=function(n){return f.uniques(function(n){return n.length},n)},f.listUnique=function(n){return f.uniques(function(t){return t.sort(s).join(n)},function(n){return n})},f.max=function(n){return f.extremes("max",n)},f.min=function(n){return f.extremes("min",n)},f.first=function(n){return f.extremes("first",n)},f.last=function(n){return f.extremes("last",n)},f.median=function(n){return f.quantile(.5,n)},f.average=function(n){return f.runningStat("mean",1,n)},f["var"]=function(n,t){return f.runningStat("var",n,t)},f.stdev=function(n,t){return f.runningStat("stdev",n,t)},b=function(n){return{Count:n.count(l),"Count Unique Values":n.countUnique(l),"List Unique Values":n.listUnique(", "),Sum:n.sum(e),"Integer Sum":n.sum(l),Average:n.average(e),Median:n.median(e),"Sample Variance":n["var"](1,e),"Sample Standard Deviation":n.stdev(1,e),Minimum:n.min(e),Maximum:n.max(e),First:n.first(e),Last:n.last(e),"Sum over Sum":n.sumOverSum(e),"80% Upper Bound":n.sumOverSumBound80(!0,e),"80% Lower Bound":n.sumOverSumBound80(!1,e),"Sum as Fraction of Total":n.fractionOf(n.sum(),"total",h),"Sum as Fraction of Rows":n.fractionOf(n.sum(),"row",h),"Sum as Fraction of Columns":n.fractionOf(n.sum(),"col",h),"Count as Fraction of Total":n.fractionOf(n.count(),"total",h),"Count as Fraction of Rows":n.fractionOf(n.count(),"row",h),"Count as Fraction of Columns":n.fractionOf(n.count(),"col",h)}}(f),k={Table:function(n,t){return c(n,t)},"Table Barchart":function(n,t){return r(c(n,t)).barchart()},Heatmap:function(n,t){return r(c(n,t)).heatmap("heatmap",t)},"Row Heatmap":function(n,t){return r(c(n,t)).heatmap("rowheatmap",t)},"Col Heatmap":function(n,t){return r(c(n,t)).heatmap("colheatmap",t)}},o={en:{aggregators:b,renderers:k,localeStrings:{renderError:"An error occurred rendering the PivotTable results.",computeError:"An error occurred computing the PivotTable results.",uiRenderError:"An error occurred rendering the PivotTable UI.",selectAll:"Select All",selectNone:"Select None",tooMany:"(too many to list)",filterResults:"Filter values",apply:"Apply",cancel:"Cancel",totals:"Totals",vs:"vs",by:"by"}}},rt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],a=function(n){return("0"+n).substr(-2,2)},it={bin:function(n,t){return function(i){return i[n]-i[n]%t}},dateFormat:function(n,t,i,r,u){var f;return null==i&&(i=!1),null==r&&(r=rt),null==u&&(u=tt),f=i?"UTC":"",function(i){var e;return e=new Date(Date.parse(i[n])),isNaN(e)?"":t.replace(/%(.)/g,function(n,t){switch(t){case"y":return e["get"+f+"FullYear"]();case"m":return a(e["get"+f+"Month"]()+1);case"n":return r[e["get"+f+"Month"]()];case"d":return a(e["get"+f+"Date"]());case"w":return u[e["get"+f+"Day"]()];case"x":return e["get"+f+"Day"]();case"H":return a(e["get"+f+"Hours"]());case"M":return a(e["get"+f+"Minutes"]());case"S":return a(e["get"+f+"Seconds"]());default:return"%"+t}})}}},d=/(\d+)|(\D+)/g,w=/\d/,g=/^0/,s=function(){return function(n,t){var i,u,r,f,e,o;if(null!=t&&null==n)return-1;if(null!=n&&null==t)return 1;if("number"==typeof n&&isNaN(n))return-1;if("number"==typeof t&&isNaN(t))return 1;if(e=+n,o=+t,e<o)return-1;if(e>o)return 1;if("number"==typeof n&&"number"!=typeof t)return-1;if("number"==typeof t&&"number"!=typeof n)return 1;if("number"==typeof n&&"number"==typeof t)return 0;if(isNaN(o)&&!isNaN(e))return-1;if(isNaN(e)&&!isNaN(o))return 1;if(i=String(n),r=String(t),i===r)return 0;if(!w.test(i)||!w.test(r))return i>r?1:-1;for(i=i.match(d),r=r.match(d);i.length&&r.length;)if(u=i.shift(),f=r.shift(),u!==f)return w.test(u)&&w.test(f)?u.replace(g,".0")-f.replace(g,".0"):u>f?1:-1;return i.length-r.length}}(this),ut=function(n){var r,t,i,u;i={};t={};for(r in n)u=n[r],i[u]=r,"string"==typeof u&&(t[u.toLowerCase()]=r);return function(n,r){return null!=i[n]&&null!=i[r]?i[n]-i[r]:null!=i[n]?-1:null!=i[r]?1:null!=t[n]&&null!=t[r]?t[n]-t[r]:null!=t[n]?-1:null!=t[r]?1:s(n,r)}},y=function(n,t){var i;if(null!=n)if(r.isFunction(n)){if(i=n(t),r.isFunction(i))return i}else if(null!=n[t])return n[t];return s},v=function(){function t(n,r){var u,e,o,s,h,c,l,a,v,y;null==r&&(r={});this.getAggregator=i(this.getAggregator,this);this.getRowKeys=i(this.getRowKeys,this);this.getColKeys=i(this.getColKeys,this);this.sortKeys=i(this.sortKeys,this);this.arrSort=i(this.arrSort,this);this.input=n;this.aggregator=null!=(u=r.aggregator)?u:f.count()();this.aggregatorName=null!=(e=r.aggregatorName)?e:"Count";this.colAttrs=null!=(o=r.cols)?o:[];this.rowAttrs=null!=(s=r.rows)?s:[];this.valAttrs=null!=(h=r.vals)?h:[];this.sorters=null!=(c=r.sorters)?c:{};this.rowOrder=null!=(l=r.rowOrder)?l:"key_a_to_z";this.colOrder=null!=(a=r.colOrder)?a:"key_a_to_z";this.derivedAttributes=null!=(v=r.derivedAttributes)?v:{};this.filter=null!=(y=r.filter)?y:function(){return!0};this.tree={};this.rowKeys=[];this.colKeys=[];this.rowTotals={};this.colTotals={};this.allTotal=this.aggregator(this,[],[]);this.sorted=!1;t.forEachRecord(this.input,this.derivedAttributes,function(n){return function(t){if(n.filter(t))return n.processRecord(t)}}(this))}return t.forEachRecord=function(t,i,u){var e,y,o,s,p,h,w,f,c,l,a,v;if(e=r.isEmptyObject(i)?u:function(n){var t,r,f;for(t in i)f=i[t],n[t]=null!=(r=f(n))?r:n[t];return u(n)},r.isFunction(t))return t(e);if(r.isArray(t)){if(r.isArray(t[0])){l=[];for(o in t)if(n.call(t,o)&&(y=t[o],o>0)){f={};c=t[0];for(s in c)n.call(c,s)&&(p=c[s],f[p]=y[s]);l.push(e(f))}return l}for(a=[],h=0,w=t.length;h<w;h++)f=t[h],a.push(e(f));return a}if(t instanceof r)return v=[],r("thead > tr > th",t).each(function(){return v.push(r(this).text())}),r("tbody > tr",t).each(function(){return f={},r("td",this).each(function(n){return f[v[n]]=r(this).text()}),e(f)});throw new Error("unknown input format");},t.prototype.forEachMatchingRecord=function(n,i){return t.forEachRecord(this.input,this.derivedAttributes,function(t){return function(r){var u,f,e;if(t.filter(r)){for(u in n)if(e=n[u],e!==(null!=(f=r[u])?f:"null"))return;return i(r)}}}(this))},t.prototype.arrSort=function(t){var r,i;return i=function(){var n,u,i;for(i=[],n=0,u=t.length;n<u;n++)r=t[n],i.push(y(this.sorters,r));return i}.call(this),function(t,r){var f,u,e;for(u in i)if(n.call(i,u)&&(e=i[u],f=e(t[u],r[u]),0!==f))return f;return 0}},t.prototype.sortKeys=function(){var n;if(!this.sorted){switch(this.sorted=!0,n=function(n){return function(t,i){return n.getAggregator(t,i).value()}}(this),this.rowOrder){case"value_a_to_z":this.rowKeys.sort(function(){return function(t,i){return s(n(t,[]),n(i,[]))}}(this));break;case"value_z_to_a":this.rowKeys.sort(function(){return function(t,i){return-s(n(t,[]),n(i,[]))}}(this));break;default:this.rowKeys.sort(this.arrSort(this.rowAttrs))}switch(this.colOrder){case"value_a_to_z":return this.colKeys.sort(function(){return function(t,i){return s(n([],t),n([],i))}}(this));case"value_z_to_a":return this.colKeys.sort(function(){return function(t,i){return-s(n([],t),n([],i))}}(this));default:return this.colKeys.sort(this.arrSort(this.colAttrs))}}},t.prototype.getColKeys=function(){return this.sortKeys(),this.colKeys},t.prototype.getRowKeys=function(){return this.sortKeys(),this.rowKeys},t.prototype.processRecord=function(n){var i,u,t,f,c,l,e,s,a,h,v,r,o;for(i=[],r=[],s=this.colAttrs,f=0,c=s.length;f<c;f++)o=s[f],i.push(null!=(a=n[o])?a:"null");for(h=this.rowAttrs,e=0,l=h.length;e<l;e++)o=h[e],r.push(null!=(v=n[o])?v:"null");if(t=r.join(String.fromCharCode(0)),u=i.join(String.fromCharCode(0)),this.allTotal.push(n),0!==r.length&&(this.rowTotals[t]||(this.rowKeys.push(r),this.rowTotals[t]=this.aggregator(this,r,[])),this.rowTotals[t].push(n)),0!==i.length&&(this.colTotals[u]||(this.colKeys.push(i),this.colTotals[u]=this.aggregator(this,[],i)),this.colTotals[u].push(n)),0!==i.length&&0!==r.length)return this.tree[t]||(this.tree[t]={}),this.tree[t][u]||(this.tree[t][u]=this.aggregator(this,r,i)),this.tree[t][u].push(n)},t.prototype.getAggregator=function(n,t){var i,r,u;return u=n.join(String.fromCharCode(0)),r=t.join(String.fromCharCode(0)),i=0===n.length&&0===t.length?this.allTotal:0===n.length?this.colTotals[r]:0===t.length?this.rowTotals[u]:this.tree[u][r],null!=i?i:{value:function(){return null},format:function(){return""}}},t}(),r.pivotUtilities={aggregatorTemplates:f,aggregators:b,renderers:k,derivers:it,locales:o,naturalSort:s,numberFormat:p,sortAs:ut,PivotData:v},c=function(t,i){var tt,rt,c,p,a,ut,v,l,e,ft,b,h,w,k,it,g,f,u,nt,y,o,et,s,d;ut={table:{clickCallback:null},localeStrings:{totals:"Totals"}};i=r.extend(!0,{},ut,i);c=t.colAttrs;h=t.rowAttrs;k=t.getRowKeys();a=t.getColKeys();i.table.clickCallback&&(v=function(r,u,f){var o,s,e;s={};for(e in c)n.call(c,e)&&(o=c[e],null!=f[e]&&(s[o]=f[e]));for(e in h)n.call(h,e)&&(o=h[e],null!=u[e]&&(s[o]=u[e]));return function(n){return i.table.clickCallback(n,r,s,t)}});b=document.createElement("table");b.className="pvtTable";it=function(n,t,i){var u,f,e,h,o,s,c,r;if(0!==t){for(h=!0,r=u=0,o=i;0<=o?u<=o:u>=o;r=0<=o?++u:--u)n[t-1][r]!==n[t][r]&&(h=!1);if(h)return-1}for(f=0;t+f<n.length;){for(c=!1,r=e=0,s=i;0<=s?e<=s:e>=s;r=0<=s?++e:--e)n[t][r]!==n[t+f][r]&&(c=!0);if(c)break;f++}return f};nt=document.createElement("thead");for(e in c)if(n.call(c,e)){rt=c[e];o=document.createElement("tr");0===parseInt(e)&&0!==h.length&&(u=document.createElement("th"),u.setAttribute("colspan",h.length),u.setAttribute("rowspan",c.length),o.appendChild(u));u=document.createElement("th");u.className="pvtAxisLabel";u.textContent=rt;o.appendChild(u);for(l in a)n.call(a,l)&&(p=a[l],d=it(a,parseInt(l),parseInt(e)),d!==-1&&(u=document.createElement("th"),u.className="pvtColLabel",u.textContent=p[e],u.setAttribute("colspan",d),parseInt(e)===c.length-1&&0!==h.length&&u.setAttribute("rowspan",2),o.appendChild(u)));0===parseInt(e)&&(u=document.createElement("th"),u.className="pvtTotalLabel pvtRowTotalLabel",u.innerHTML=i.localeStrings.totals,u.setAttribute("rowspan",c.length+(0===h.length?0:1)),o.appendChild(u));nt.appendChild(o)}if(0!==h.length){o=document.createElement("tr");for(l in h)n.call(h,l)&&(ft=h[l],u=document.createElement("th"),u.className="pvtAxisLabel",u.textContent=ft,o.appendChild(u));u=document.createElement("th");0===c.length&&(u.className="pvtTotalLabel pvtRowTotalLabel",u.innerHTML=i.localeStrings.totals);o.appendChild(u);nt.appendChild(o)}b.appendChild(nt);g=document.createElement("tbody");for(l in k)if(n.call(k,l)){w=k[l];o=document.createElement("tr");for(e in w)n.call(w,e)&&(et=w[e],d=it(k,parseInt(l),parseInt(e)),d!==-1&&(u=document.createElement("th"),u.className="pvtRowLabel",u.textContent=et,u.setAttribute("rowspan",d),parseInt(e)===h.length-1&&0!==c.length&&u.setAttribute("colspan",2),o.appendChild(u)));for(e in a)n.call(a,e)&&(p=a[e],tt=t.getAggregator(w,p),s=tt.value(),f=document.createElement("td"),f.className="pvtVal row"+l+" col"+e,f.textContent=tt.format(s),f.setAttribute("data-value",s),null!=v&&(f.onclick=v(s,w,p)),o.appendChild(f));y=t.getAggregator(w,[]);s=y.value();f=document.createElement("td");f.className="pvtTotal rowTotal";f.textContent=y.format(s);f.setAttribute("data-value",s);null!=v&&(f.onclick=v(s,w,[]));f.setAttribute("data-for","row"+l);o.appendChild(f);g.appendChild(o)}o=document.createElement("tr");u=document.createElement("th");u.className="pvtTotalLabel pvtColTotalLabel";u.innerHTML=i.localeStrings.totals;u.setAttribute("colspan",h.length+(0===c.length?0:1));o.appendChild(u);for(e in a)n.call(a,e)&&(p=a[e],y=t.getAggregator([],p),s=y.value(),f=document.createElement("td"),f.className="pvtTotal colTotal",f.textContent=y.format(s),f.setAttribute("data-value",s),null!=v&&(f.onclick=v(s,[],p)),f.setAttribute("data-for","col"+e),o.appendChild(f));return y=t.getAggregator([],[]),s=y.value(),f=document.createElement("td"),f.className="pvtGrandTotal",f.textContent=y.format(s),f.setAttribute("data-value",s),null!=v&&(f.onclick=v(s,[],[])),o.appendChild(f),g.appendChild(o),b.appendChild(g),b.setAttribute("data-numrows",k.length),b.setAttribute("data-numcols",a.length),b},r.fn.pivot=function(n,t,i){var a,s,y,l,u,p,e,h;null==i&&(i="en");null==o[i]&&(i="en");a={cols:[],rows:[],vals:[],rowOrder:"key_a_to_z",colOrder:"key_a_to_z",dataClass:v,filter:function(){return!0},aggregator:f.count()(),aggregatorName:"Count",sorters:{},derivedAttributes:{},renderer:c};l=r.extend(!0,{},o.en.localeStrings,o[i].localeStrings);y={rendererOptions:{localeStrings:l},localeStrings:l};u=r.extend(!0,{},y,r.extend({},a,t));e=null;try{p=new u.dataClass(n,u);try{e=u.renderer(p,u.rendererOptions)}catch(w){s=w;"undefined"!=typeof console&&null!==console&&console.error(s.stack);e=r("<span>").html(u.localeStrings.renderError)}}catch(w){s=w;"undefined"!=typeof console&&null!==console&&console.error(s.stack);e=r("<span>").html(u.localeStrings.computeError)}for(h=this[0];h.hasChildNodes();)h.removeChild(h.lastChild);return this.append(e)},r.fn.pivotUI=function(i,u,f,e){var tt,w,it,at,l,g,vt,ei,oi,yt,si,b,pt,ut,hi,ci,li,ai,wt,bt,ft,et,h,k,ot,st,kt,dt,gt,ni,a,vi,ht,ct,ti,rt,ii,p,ri,ui,d,nt,fi,lt,c;null==f&&(f=!1);null==e&&(e="en");null==o[e]&&(e="en");ei={derivedAttributes:{},aggregators:o[e].aggregators,renderers:o[e].renderers,hiddenAttributes:[],hiddenFromAggregators:[],hiddenFromDragDrop:[],menuLimit:500,cols:[],rows:[],vals:[],rowOrder:"key_a_to_z",colOrder:"key_a_to_z",dataClass:v,exclusions:{},inclusions:{},unusedAttrsVertical:85,autoSortUnusedAttrs:!1,onRefresh:null,filter:function(){return!0},sorters:{}};wt=r.extend(!0,{},o.en.localeStrings,o[e].localeStrings);ai={rendererOptions:{localeStrings:wt},localeStrings:wt};yt=this.data("pivotUIOptions");h=null==yt||f?r.extend(!0,{},ai,r.extend({},ei,u)):yt;try{l={};bt=[];st=0;v.forEachRecord(i,h.derivedAttributes,function(t){var i,u,f,r;if(h.filter(t)){bt.push(t);for(i in t)n.call(t,i)&&null==l[i]&&(l[i]={},st>0&&(l[i]["null"]=st));for(i in l)r=null!=(f=t[i])?f:"null",null==(u=l[i])[r]&&(u[r]=0),l[i][r]++;return st++}});d=r("<table>",{"class":"pvtUi"}).attr("cellpadding",5);ct=r("<td>");ht=r("<select>").addClass("pvtRenderer").appendTo(ct).bind("change",function(){return a()});kt=h.renderers;for(c in kt)n.call(kt,c)&&r("<option>").val(c).html(c).appendTo(ht);if(nt=r("<td>").addClass("pvtAxisContainer pvtUnused"),rt=function(){var n=[];for(tt in l)t.call(h.hiddenAttributes,tt)<0&&n.push(tt);return n}(),ii=function(){var n,r,i;for(i=[],n=0,r=rt.length;n<r;n++)g=rt[n],t.call(h.hiddenFromAggregators,g)<0&&i.push(g);return i}(),p=function(){var n,r,i;for(i=[],n=0,r=rt.length;n<r;n++)g=rt[n],t.call(h.hiddenFromDragDrop,g)<0&&i.push(g);return i}(),lt=!1,fi="auto"===h.unusedAttrsVertical?120:parseInt(h.unusedAttrsVertical),!isNaN(fi)){for(at=0,ut=0,hi=p.length;ut<hi;ut++)tt=p[ut],at+=tt.length;lt=at>fi}h.unusedAttrsVertical===!0||lt?nt.addClass("pvtVertList"):nt.addClass("pvtHorizList");si=function(n){var e,g,w,o,s,c,k,v,tt,p,it,d,rt,ut,ft,u,et,i,f;if(f=function(){var t=[];for(ft in l[n])t.push(ft);return t}(),v=!1,i=r("<div>").addClass("pvtFilterBox").hide(),i.append(r("<h4>").append(r("<span>").text(n),r("<span>").addClass("count").text("("+f.length+")"))),f.length>h.menuLimit)i.append(r("<p>").html(h.localeStrings.tooMany));else for(f.length>5&&(o=r("<p>").appendTo(i),rt=y(h.sorters,n),it=h.localeStrings.filterResults,r("<input>",{type:"text"}).appendTo(o).attr({placeholder:it,"class":"pvtSearch"}).bind("keyup",function(){var f,u,n;return n=r(this).val().toLowerCase().trim(),u=function(i,r){return function(u){var f,e;return f=n.substring(i.length).trim(),0===f.length||(e=Math.sign(rt(u.toLowerCase(),f)),t.call(r,e)>=0)}},f=0===n.indexOf(">=")?u(">=",[1,0]):0===n.indexOf("<=")?u("<=",[-1,0]):0===n.indexOf(">")?u(">",[1]):0===n.indexOf("<")?u("<",[-1]):0===n.indexOf("~")?function(t){return 0===n.substring(1).trim().length||t.toLowerCase().match(n.substring(1))}:function(t){return t.toLowerCase().indexOf(n)!==-1},i.find(".pvtCheckContainer p label span.value").each(function(){return f(r(this).text())?r(this).parent().parent().show():r(this).parent().parent().hide()})}),o.append(r("<br>")),r("<button>",{type:"button"}).appendTo(o).html(h.localeStrings.selectAll).bind("click",function(){return i.find("input:visible:not(:checked)").prop("checked",!0).toggleClass("changed"),!1}),r("<button>",{type:"button"}).appendTo(o).html(h.localeStrings.selectNone).bind("click",function(){return i.find("input:visible:checked").prop("checked",!1).toggleClass("changed"),!1})),g=r("<div>").addClass("pvtCheckContainer").appendTo(i),d=f.sort(y(h.sorters,n)),p=0,tt=d.length;p<tt;p++)u=d[p],et=l[n][u],s=r("<label>"),c=!1,h.inclusions[n]?c=t.call(h.inclusions[n],u)<0:h.exclusions[n]&&(c=t.call(h.exclusions[n],u)>=0),v||(v=c),r("<input>").attr("type","checkbox").addClass("pvtFilter").attr("checked",!c).data("filter",[n,u]).appendTo(s).bind("change",function(){return r(this).toggleClass("changed")}),s.append(r("<span>").addClass("value").text(u)),s.append(r("<span>").addClass("count").text("("+et+")")),g.append(r("<p>").append(s));return w=function(){return i.find("[type='checkbox']").length>i.find("[type='checkbox']:checked").length?e.addClass("pvtFilteredAttribute"):e.removeClass("pvtFilteredAttribute"),i.find(".pvtSearch").val(""),i.find(".pvtCheckContainer p").show(),i.hide()},k=r("<p>").appendTo(i),f.length<=h.menuLimit&&r("<button>",{type:"button"}).text(h.localeStrings.apply).appendTo(k).bind("click",function(){return i.find(".changed").removeClass("changed").length&&a(),w()}),r("<button>",{type:"button"}).text(h.localeStrings.cancel).appendTo(k).bind("click",function(){return i.find(".changed:checked").removeClass("changed").prop("checked",!1),i.find(".changed:not(:checked)").removeClass("changed").prop("checked",!0),w()}),ut=r("<span>").addClass("pvtTriangle").html(" &#x25BE;").bind("click",function(n){var u,t,f;return t=r(n.currentTarget).position(),u=t.left,f=t.top,i.css({left:u+10,top:f+10}).show()}),e=r("<li>").addClass("axis_"+b).append(r("<span>").addClass("pvtAttr").text(n).data("attrName",n).append(ut)),v&&e.addClass("pvtFilteredAttribute"),nt.append(e).append(i)};for(b in p)n.call(p,b)&&(it=p[b],si(it));ri=r("<tr>").appendTo(d);w=r("<select>").addClass("pvtAggregator").bind("change",function(){return a()});dt=h.aggregators;for(c in dt)n.call(dt,c)&&w.append(r("<option>").val(c).html(c));for(k={key_a_to_z:{rowSymbol:"&varr;",colSymbol:"&harr;",next:"value_a_to_z"},value_a_to_z:{rowSymbol:"&darr;",colSymbol:"&rarr;",next:"value_z_to_a"},value_z_to_a:{rowSymbol:"&uarr;",colSymbol:"&larr;",next:"key_a_to_z"}},ti=r("<a>",{role:"button"}).addClass("pvtRowOrder").data("order",h.rowOrder).html(k[h.rowOrder].rowSymbol).bind("click",function(){return r(this).data("order",k[r(this).data("order")].next),r(this).html(k[r(this).data("order")].rowSymbol),a()}),vt=r("<a>",{role:"button"}).addClass("pvtColOrder").data("order",h.colOrder).html(k[h.colOrder].colSymbol).bind("click",function(){return r(this).data("order",k[r(this).data("order")].next),r(this).html(k[r(this).data("order")].colSymbol),a()}),r("<td>").addClass("pvtVals").appendTo(ri).append(w).append(ti).append(vt).append(r("<br>")),r("<td>").addClass("pvtAxisContainer pvtHorizList pvtCols").appendTo(ri),ui=r("<tr>").appendTo(d),ui.append(r("<td>").addClass("pvtAxisContainer pvtRows").attr("valign","top")),ot=r("<td>").attr("valign","top").addClass("pvtRendererArea").appendTo(ui),h.unusedAttrsVertical===!0||lt?(d.find("tr:nth-child(1)").prepend(ct),d.find("tr:nth-child(2)").prepend(nt)):d.prepend(r("<tr>").append(ct).append(nt)),this.html(d),gt=h.cols,ft=0,ci=gt.length;ft<ci;ft++)c=gt[ft],this.find(".pvtCols").append(this.find(".axis_"+r.inArray(c,p)));for(ni=h.rows,et=0,li=ni.length;et<li;et++)c=ni[et],this.find(".pvtRows").append(this.find(".axis_"+r.inArray(c,p)));null!=h.aggregatorName&&this.find(".pvtAggregator").val(h.aggregatorName);null!=h.rendererName&&this.find(".pvtRenderer").val(h.rendererName);pt=!0;vi=function(n){return function(){var u,e,g,p,o,k,nt,tt,l,i,v,y,d,f;if(i={derivedAttributes:h.derivedAttributes,localeStrings:h.localeStrings,rendererOptions:h.rendererOptions,sorters:h.sorters,cols:[],rows:[],dataClass:h.dataClass},o=null!=(tt=h.aggregators[w.val()]([])().numInputs)?tt:0,f=[],n.find(".pvtRows li span.pvtAttr").each(function(){return i.rows.push(r(this).data("attrName"))}),n.find(".pvtCols li span.pvtAttr").each(function(){return i.cols.push(r(this).data("attrName"))}),n.find(".pvtVals select.pvtAttrDropdown").each(function(){return 0===o?r(this).remove():(o--,""!==r(this).val()?f.push(r(this).val()):void 0)}),0!==o)for(nt=n.find(".pvtVals"),c=v=0,l=o;0<=l?v<l:v>l;c=0<=l?++v:--v){for(p=r("<select>").addClass("pvtAttrDropdown").append(r("<option>")).bind("change",function(){return a()}),y=0,g=ii.length;y<g;y++)it=ii[y],p.append(r("<option>").val(it).text(it));nt.append(p)}if(pt&&(f=h.vals,b=0,n.find(".pvtVals select.pvtAttrDropdown").each(function(){return r(this).val(f[b]),b++}),pt=!1),i.aggregatorName=w.val(),i.vals=f,i.aggregator=h.aggregators[w.val()](f),i.renderer=h.renderers[ht.val()],i.rowOrder=ti.data("order"),i.colOrder=vt.data("order"),u={},n.find("input.pvtFilter").not(":checked").each(function(){var n;return n=r(this).data("filter"),null!=u[n[0]]?u[n[0]].push(n[1]):u[n[0]]=[n[1]]}),e={},n.find("input.pvtFilter:checked").each(function(){var n;if(n=r(this).data("filter"),null!=u[n[0]])return null!=e[n[0]]?e[n[0]].push(n[1]):e[n[0]]=[n[1]]}),i.filter=function(n){var r,i,f,e;if(!h.filter(n))return!1;for(i in u)if(r=u[i],f=""+(null!=(e=n[i])?e:"null"),t.call(r,f)>=0)return!1;return!0},ot.pivot(bt,i),k=r.extend({},h,{cols:i.cols,rows:i.rows,colOrder:i.colOrder,rowOrder:i.rowOrder,vals:f,exclusions:u,inclusions:e,inclusionsInfo:e,aggregatorName:w.val(),rendererName:ht.val()}),n.data("pivotUIOptions",k),h.autoSortUnusedAttrs&&(d=n.find("td.pvtUnused.pvtAxisContainer"),r(d).children("li").sort(function(n,t){return s(r(n).text(),r(t).text())}).appendTo(d)),ot.css("opacity",1),null!=h.onRefresh)return h.onRefresh(k)}}(this);a=function(){return function(){return ot.css("opacity",.5),setTimeout(vi,10)}}(this);a();this.find(".pvtAxisContainer").sortable({update:function(n,t){if(null==t.sender)return a()},connectWith:this.find(".pvtAxisContainer"),items:"li",placeholder:"pvtPlaceholder"})}catch(yi){oi=yi;"undefined"!=typeof console&&null!==console&&console.error(oi.stack);this.html(h.localeStrings.uiRenderError)}return this},r.fn.heatmap=function(n,t){var s,i,h,c,u,f,l,a,v,e,o;switch(null==n&&(n="heatmap"),a=this.data("numrows"),l=this.data("numcols"),s=null!=t&&null!=(v=t.heatmap)?v.colorScaleGenerator:void 0,null==s&&(s=function(n){var i,t;return t=Math.min.apply(Math,n),i=Math.max.apply(Math,n),function(n){var r;return r=255-Math.round(255*(n-t)/(i-t)),"rgb(255,"+r+","+r+")"}}),i=function(n){return function(t){var f,i,u;return i=function(i){return n.find(t).each(function(){var n;if(n=r(this).data("value"),null!=n&&isFinite(n))return i(n,r(this))})},u=[],i(function(n){return u.push(n)}),f=s(u),i(function(n,t){return t.css("background-color",f(n))})}}(this),n){case"heatmap":i(".pvtVal");break;case"rowheatmap":for(h=u=0,e=a;0<=e?u<e:u>e;h=0<=e?++u:--u)i(".pvtVal.row"+h);break;case"colheatmap":for(c=f=0,o=l;0<=o?f<o:f>o;c=0<=o?++f:--f)i(".pvtVal.col"+c)}return i(".pvtTotal.rowTotal"),i(".pvtTotal.colTotal"),this},r.fn.barchart=function(){var i,u,n,e,f,t;for(f=this.data("numrows"),e=this.data("numcols"),i=function(n){return function(t){var o,i,u,s,f,e;return o=function(i){return n.find(t).each(function(){var n;if(n=r(this).data("value"),null!=n&&isFinite(n))return i(n,r(this))})},e=[],o(function(n){return e.push(n)}),i=Math.max.apply(Math,e),i<0&&(i=0),s=i,u=Math.min.apply(Math,e),u<0&&(s=i-u),f=function(n){return 100*n/(1.4*s)},o(function(n,t){var i,o,s,e;return s=t.text(),e=r("<div>").css({position:"relative",height:"55px"}),o="gray",i=0,u<0&&(i=f(-u)),n<0&&(i+=f(n),o="darkred",n=-n),e.append(r("<div>").css({position:"absolute",bottom:i+"%",left:0,right:0,height:f(n)+"%","background-color":o})),e.append(r("<div>").text(s).css({position:"relative","padding-left":"5px","padding-right":"5px"})),t.css({padding:0,"padding-top":"5px","text-align":"center"}).html(e)})}}(this),u=n=0,t=f;0<=t?n<t:n>t;u=0<=t?++n:--n)i(".pvtVal.row"+u);return i(".pvtTotal.colTotal"),this}})}.call(this),function(n,t){typeof module=="object"&&module.exports?(t["default"]=t,module.exports=n.document?t(n):t):typeof define=="function"&&define.amd?define(function(){return t(n)}):n.Highcharts=t(n)}(typeof window!="undefined"?window:this,function(n){var t=function(){var t=typeof n=="undefined"?window:n,r=t.document,u="http://www.w3.org/2000/svg",i=t.navigator&&t.navigator.userAgent||"",o=r&&r.createElementNS&&!!r.createElementNS(u,"svg").createSVGRect,s=/(edge|msie|trident)/i.test(i)&&!t.opera,f=i.indexOf("Firefox")!==-1,e=i.indexOf("Chrome")!==-1,h=f&&parseInt(i.split("Firefox/")[1],10)<4;return t.Highcharts?t.Highcharts.error(16,!0):{product:"Highcharts",version:"7.0.2",deg2rad:Math.PI/180,doc:r,hasBidiBug:h,hasTouch:r&&r.documentElement.ontouchstart!==undefined,isMS:s,isWebKit:i.indexOf("AppleWebKit")!==-1,isFirefox:f,isChrome:e,isSafari:!e&&i.indexOf("Safari")!==-1,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(i),SVG_NS:u,chartCount:0,seriesTypes:{},symbolSizes:{},svg:o,win:t,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){return undefined},charts:[]}}(),i;return function(n){n.timers=[];var r=n.charts,i=n.doc,t=n.win;n.error=function(i,r,u){var f=n.isNumber(i)?"Highcharts error #"+i+": www.highcharts.com/errors/"+i:i;if(u&&n.fireEvent(u,"displayError",{code:i}),r)throw new Error(f);t.console&&console.log(f)};n.Fx=function(n,t,i){this.options=t;this.elem=n;this.prop=i};n.Fx.prototype={dSetter:function(){var f=this.paths[0],t=this.paths[1],i=[],u=this.now,n=f.length,r;if(u===1)i=this.toD;else if(n===t.length&&u<1)while(n--)r=parseFloat(f[n]),i[n]=isNaN(r)?t[n]:u*parseFloat(t[n]-r)+r;else i=t;this.elem.attr("d",i,null,!0)},update:function(){var n=this.elem,t=this.prop,i=this.now,r=this.options.step;this[t+"Setter"]?this[t+"Setter"]():n.attr?n.element&&n.attr(t,i,null,!0):n.style[t]=i+this.unit;r&&r.call(n,i,this)},run:function(i,r,u){var o=this,e=o.options,f=function(n){return f.stopped?!1:o.step(n)},s=t.requestAnimationFrame||function(n){setTimeout(n,13)},h=function(){for(var t=0;t<n.timers.length;t++)n.timers[t]()||n.timers.splice(t--,1);n.timers.length&&s(h)};i!==r||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=i,this.end=r,this.unit=u,this.now=this.start,this.pos=0,f.elem=this.elem,f.prop=this.prop,f()&&n.timers.push(f)===1&&s(h)):(delete e.curAnim[this.prop],e.complete&&Object.keys(e.curAnim).length===0&&e.complete.call(this.elem))},step:function(t){var e=+new Date,i,u,r=this.options,f=this.elem,o=r.complete,s=r.duration,h=r.curAnim;return f.attr&&!f.element?i=!1:t||e>=s+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,u=!0,n.objectEach(h,function(n){n!==!0&&(u=!1)}),u&&o&&o.call(f),i=!1):(this.pos=r.easing((e-this.startTime)/s),this.now=this.start+(this.end-this.start)*this.pos,this.update(),i=!0),i},initPath:function(t,i,r){function k(n){var t,i;for(u=n.length;u--;)t=n[u]==="M"||n[u]==="L",i=/[a-zA-Z]/.test(n[u+3]),t&&i&&n.splice(u+1,0,n[u+1],n[u+2],n[u+1],n[u+2])}function w(n,t,i){[].splice.apply(n,[i,0].concat(t))}function d(n,t){while(n.length<l)n[0]=t[l-n.length],w(n,n.slice(0,f),0),p&&(w(n,n.slice(n.length-f),n.length),u--);n[0]="M"}function g(n,t){for(var i=(l-n.length)/f;i>0&&i--;)o=n.slice().splice(n.length/v-f,f*v),o[0]=t[l-f-i*f],y&&(o[f-6]=o[f-2],o[f-5]=o[f-1]),w(n,o,n.length/v),p&&i--}i=i||"";var h,c=t.startX,a=t.endX,y=i.indexOf("C")>-1,f=y?7:3,l,o,u,e=i.split(" "),s=r.slice(),p=t.isArea,v=p?2:1,b;if(y&&(k(e),k(s)),c&&a){for(u=0;u<c.length;u++)if(c[u]===a[0]){h=u;break}else if(c[0]===a[a.length-c.length+u]){h=u;b=!0;break}h===undefined&&(e=[])}return e.length&&n.isNumber(h)&&(l=s.length+h*v*f,b?(d(e,s),g(s,e)):(d(s,e),g(e,s))),[e,s]},fillSetter:function(){n.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,n.color(this.start).tweenTo(n.color(this.end),this.pos),null,!0)}};n.merge=function(){var i,t=arguments,u,r={},f=function(t,i){return typeof t!="object"&&(t={}),n.objectEach(i,function(r,u){t[u]=!n.isObject(r,!0)||n.isClass(r)||n.isDOMElement(r)?i[u]:f(t[u]||{},r)}),t};for(t[0]===!0&&(r=t[1],t=Array.prototype.slice.call(t,2)),u=t.length,i=0;i<u;i++)r=f(r,t[i]);return r};n.pInt=function(n,t){return parseInt(n,t||10)};n.isString=function(n){return typeof n=="string"};n.isArray=function(n){var t=Object.prototype.toString.call(n);return t==="[object Array]"||t==="[object Array Iterator]"};n.isObject=function(t,i){return!!t&&typeof t=="object"&&(!i||!n.isArray(t))};n.isDOMElement=function(t){return n.isObject(t)&&typeof t.nodeType=="number"};n.isClass=function(t){var i=t&&t.constructor;return!!(n.isObject(t,!0)&&!n.isDOMElement(t)&&i&&i.name&&i.name!=="Object")};n.isNumber=function(n){return typeof n=="number"&&!isNaN(n)&&n<Infinity&&n>-Infinity};n.erase=function(n,t){for(var i=n.length;i--;)if(n[i]===t){n.splice(i,1);break}};n.defined=function(n){return n!==undefined&&n!==null};n.attr=function(t,i,r){var u;return n.isString(i)?n.defined(r)?t.setAttribute(i,r):t&&t.getAttribute&&(u=t.getAttribute(i),u||i!=="class"||(u=t.getAttribute(i+"Name"))):n.defined(i)&&n.isObject(i)&&n.objectEach(i,function(n,i){t.setAttribute(i,n)}),u};n.splat=function(t){return n.isArray(t)?t:[t]};n.syncTimeout=function(n,t,i){if(t)return setTimeout(n,t,i);n.call(0,i)};n.clearTimeout=function(t){n.defined(t)&&clearTimeout(t)};n.extend=function(n,t){var i;n||(n={});for(i in t)n[i]=t[i];return n};n.pick=function(){for(var i=arguments,t,r=i.length,n=0;n<r;n++)if(t=i[n],t!==undefined&&t!==null)return t};n.css=function(t,i){n.isMS&&!n.svg&&i&&i.opacity!==undefined&&(i.filter="alpha(opacity="+i.opacity*100+")");n.extend(t.style,i)};n.createElement=function(t,r,u,f,e){var o=i.createElement(t),s=n.css;return r&&n.extend(o,r),e&&s(o,{padding:0,border:"none",margin:0}),u&&s(o,u),f&&f.appendChild(o),o};n.extendClass=function(t,i){var r=function(){};return r.prototype=new t,n.extend(r.prototype,i),r};n.pad=function(n,t,i){return new Array((t||2)+1-String(n).replace("-","").length).join(i||0)+n};n.relativeLength=function(n,t,i){return/%$/.test(n)?t*parseFloat(n)/100+(i||0):parseFloat(n)};n.wrap=function(n,t,i){var r=n[t];n[t]=function(){var t=Array.prototype.slice.call(arguments),f=arguments,n=this,u;return n.proceed=function(){r.apply(n,arguments.length?arguments:f)},t.unshift(r),u=i.apply(this,t),n.proceed=null,u}};n.datePropsToTimestamps=function(t){n.objectEach(t,function(i,r){n.isObject(i)&&typeof i.getTime=="function"?t[r]=i.getTime():(n.isObject(i)||n.isArray(i))&&n.datePropsToTimestamps(i)})};n.formatSingle=function(t,i,r){var f=n.defaultOptions.lang,u;return/f$/.test(t)?(u=t.match(/\.([0-9])/),u=u?u[1]:-1,i!==null&&(i=n.numberFormat(i,u,f.decimalPoint,t.indexOf(",")>-1?f.thousandsSep:""))):i=(r||n.time).dateFormat(t,i),i};n.format=function(t,i,r){for(var a="{",f=!1,c,e,l,o,v,s=[],u,h;t;){if(h=t.indexOf(a),h===-1)break;if(c=t.slice(0,h),f){for(e=c.split(":"),l=e.shift().split("."),v=l.length,u=i,o=0;o<v;o++)u&&(u=u[l[o]]);e.length&&(u=n.formatSingle(e.join(":"),u,r));s.push(u)}else s.push(c);t=t.slice(h+1);f=!f;a=f?"}":"{"}return s.push(t),s.join("")};n.getMagnitude=function(n){return Math.pow(10,Math.floor(Math.log(n)/Math.LN10))};n.normalizeTickInterval=function(t,i,r,u,f){var s,e,o=t;for(r=n.pick(r,1),s=t/r,i||(i=f?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],u===!1&&(r===1?i=i.filter(function(n){return n%1==0}):r<=.1&&(i=[1/r]))),e=0;e<i.length;e++)if(o=i[e],f&&o*r>=t||!f&&s<=(i[e]+(i[e+1]||i[e]))/2)break;return n.correctFloat(o*r,-Math.round(Math.log(.001)/Math.LN10))};n.stableSort=function(n,t){for(var u=n.length,r,i=0;i<u;i++)n[i].safeI=i;for(n.sort(function(n,i){return r=t(n,i),r===0?n.safeI-i.safeI:r}),i=0;i<u;i++)delete n[i].safeI};n.arrayMin=function(n){for(var t=n.length,i=n[0];t--;)n[t]<i&&(i=n[t]);return i};n.arrayMax=function(n){for(var t=n.length,i=n[0];t--;)n[t]>i&&(i=n[t]);return i};n.destroyObjectProperties=function(t,i){n.objectEach(t,function(n,r){n&&n!==i&&n.destroy&&n.destroy();delete t[r]})};n.discardElement=function(t){var i=n.garbageBin;i||(i=n.createElement("div"));t&&i.appendChild(t);i.innerHTML=""};n.correctFloat=function(n,t){return parseFloat(n.toPrecision(t||14))};n.setAnimation=function(t,i){i.renderer.globalAnimation=n.pick(t,i.options.chart.animation,!0)};n.animObject=function(t){return n.isObject(t)?n.merge(t):{duration:t?500:0}};n.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5};n.numberFormat=function(t,i,r,u){t=+t||0;i=+i;var l=n.defaultOptions.lang,a=(t.toString().split(".")[1]||"").split("e")[0].length,o,s,e,c,f=t.toString().split("e"),h;return i===-1?i=Math.min(a,20):n.isNumber(i)?i&&f[1]&&f[1]<0&&(h=i+ +f[1],h>=0?(f[0]=(+f[0]).toExponential(h).split("e")[0],i=h):(f[0]=f[0].split(".")[0]||0,t=i<20?(f[0]*Math.pow(10,f[1])).toFixed(i):0,f[1]=0)):i=2,c=(Math.abs(f[1]?f[0]:t)+Math.pow(10,-Math.max(i,a)-1)).toFixed(i),o=String(n.pInt(c)),s=o.length>3?o.length%3:0,r=n.pick(r,l.decimalPoint),u=n.pick(u,l.thousandsSep),e=t<0?"-":"",e+=s?o.substr(0,s)+u:"",e+=o.substr(s).replace(/(\d{3})(?=\d)/g,"$1"+u),i&&(e+=r+c.slice(-i)),f[1]&&+e!=0&&(e+="e"+f[1]),e};Math.easeInOutSine=function(n){return-.5*(Math.cos(Math.PI*n)-1)};n.getStyle=function(i,r,u){var f;return r==="width"?Math.max(0,Math.min(i.offsetWidth,i.scrollWidth,i.getBoundingClientRect&&n.getStyle(i,"transform",!1)==="none"?Math.floor(i.getBoundingClientRect().width):Infinity)-n.getStyle(i,"padding-left")-n.getStyle(i,"padding-right")):r==="height"?Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-n.getStyle(i,"padding-top")-n.getStyle(i,"padding-bottom")):(t.getComputedStyle||n.error(27,!0),f=t.getComputedStyle(i,undefined),f&&(f=f.getPropertyValue(r),n.pick(u,r!=="opacity")&&(f=n.pInt(f))),f)};n.inArray=function(n,t,i){return t.indexOf(n,i)};n.find=Array.prototype.find?function(n,t){return n.find(t)}:function(n,t){for(var r=n.length,i=0;i<r;i++)if(t(n[i],i))return n[i]};n.keys=Object.keys;n.offset=function(n){var r=i.documentElement,u=n.parentElement||n.parentNode?n.getBoundingClientRect():{top:0,left:0};return{top:u.top+(t.pageYOffset||r.scrollTop)-(r.clientTop||0),left:u.left+(t.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}};n.stop=function(t,i){for(var r=n.timers.length;r--;)n.timers[r].elem!==t||i&&i!==n.timers[r].prop||(n.timers[r].stopped=!0)};n.objectEach=function(n,t,i){for(var r in n)n.hasOwnProperty(r)&&t.call(i||n[r],n[r],r,n)};n.objectEach({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){n[i]=function(n){return Array.prototype[t].apply(n,[].slice.call(arguments,1))}});n.addEvent=function(t,i,r,u){var f,e=t.addEventListener||n.addEventListenerPolyfill;return f=typeof t=="function"&&t.prototype?t.prototype.protoEvents=t.prototype.protoEvents||{}:t.hcEvents=t.hcEvents||{},n.Point&&t instanceof n.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0),e&&e.call(t,i,r,!1),f[i]||(f[i]=[]),f[i].push(r),u&&n.isNumber(u.order)&&(r.order=u.order,f[i].sort(function(n,t){return n.order-t.order})),function(){n.removeEvent(t,i,r)}};n.removeEvent=function(t,i,r){function e(i,r){var u=t.removeEventListener||n.removeEventListenerPolyfill;u&&u.call(t,i,r,!1)}function o(r){var u,f;t.nodeName&&(i?(u={},u[i]=!0):u=r,n.objectEach(u,function(n,t){if(r[t])for(f=r[t].length;f--;)e(t,r[t][f])}))}var u,f;["protoEvents","hcEvents"].forEach(function(n){var s=t[n];s&&(i?(u=s[i]||[],r?(f=u.indexOf(r),f>-1&&(u.splice(f,1),s[i]=u),e(i,r)):(o(s),s[i]=[])):(o(s),t[n]={}))})};n.fireEvent=function(t,r,u,f){var e,s,c,o,h;u=u||{};i.createEvent&&(t.dispatchEvent||t.fireEvent)?(e=i.createEvent("Events"),e.initEvent(r,!0,!0),n.extend(e,u),t.dispatchEvent?t.dispatchEvent(e):t.fireEvent(r,e)):["protoEvents","hcEvents"].forEach(function(i){if(t[i])for(s=t[i][r]||[],c=s.length,u.target||n.extend(u,{preventDefault:function(){u.defaultPrevented=!0},target:t,type:r}),o=0;o<c;o++)h=s[o],h&&h.call(t,u)===!1&&u.preventDefault()});f&&!u.defaultPrevented&&f.call(t,u)};n.animate=function(t,i,r){var e,s="",u,f,o;n.isObject(r)||(o=arguments,r={duration:o[2],easing:o[3],complete:o[4]});n.isNumber(r.duration)||(r.duration=400);r.easing=typeof r.easing=="function"?r.easing:Math[r.easing]||Math.easeInOutSine;r.curAnim=n.merge(i);n.objectEach(i,function(o,h){n.stop(t,h);f=new n.Fx(t,r,h);u=null;h==="d"?(f.paths=f.initPath(t,t.d,i.d),f.toD=i.d,e=0,u=1):t.attr?e=t.attr(h):(e=parseFloat(n.getStyle(t,h))||0,h!=="opacity"&&(s="px"));u||(u=o);u&&u.match&&u.match("px")&&(u=u.replace(/px/g,""));f.run(e,u,s)})};n.seriesType=function(t,i,r,u,f){var o=n.getOptions(),e=n.seriesTypes;return o.plotOptions[t]=n.merge(o.plotOptions[i],r),e[t]=n.extendClass(e[i]||function(){},u),e[t].prototype.type=t,f&&(e[t].prototype.pointClass=n.extendClass(n.Point,f)),e[t]};n.uniqueKey=function(){var n=Math.random().toString(36).substring(2,9),t=0;return function(){return"highcharts-"+n+"-"+t++}}();n.isFunction=function(n){return typeof n=="function"};t.jQuery&&(t.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new n[n.isString(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):r[n.attr(this[0],"data-highcharts-chart")]})}(t),function(n){var i=n.isNumber,r=n.merge,t=n.pInt;n.Color=function(t){if(!(this instanceof n.Color))return new n.Color(t);this.init(t)};n.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(n){return[t(n[1]),t(n[2]),t(n[3]),parseFloat(n[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(n){return[t(n[1]),t(n[2]),t(n[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(t){var r,i,u,f,e;if(this.input=t=this.names[t&&t.toLowerCase?t.toLowerCase():""]||t,t&&t.stops)this.stops=t.stops.map(function(t){return new n.Color(t[1])});else if(t&&t.charAt&&t.charAt()==="#"&&(e=t.length,t=parseInt(t.substr(1),16),e===7?i=[(t&16711680)>>16,(t&65280)>>8,t&255,1]:e===4&&(i=[(t&3840)>>4|(t&3840)>>8,(t&240)>>4|t&240,(t&15)<<4|t&15,1])),!i)for(u=this.parsers.length;u--&&!i;)f=this.parsers[u],r=f.regex.exec(t),r&&(i=f.parse(r));this.rgba=i||[]},get:function(n){var f=this.input,t=this.rgba,u;return this.stops?(u=r(f),u.stops=[].concat(u.stops),this.stops.forEach(function(t,i){u.stops[i]=[u.stops[i][0],t.get(n)]})):u=t&&i(t[0])?n!=="rgb"&&(n||t[3]!==1)?n==="a"?t[3]:"rgba("+t.join(",")+")":"rgb("+t[0]+","+t[1]+","+t[2]+")":f,u},brighten:function(n){var r,u=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(n)});else if(i(n)&&n!==0)for(r=0;r<3;r++)u[r]+=t(n*255),u[r]<0&&(u[r]=0),u[r]>255&&(u[r]=255);return this},setOpacity:function(n){return this.rgba[3]=n,this},tweenTo:function(n,t){var r=this.rgba,i=n.rgba,u,f;return i.length&&r&&r.length?(u=i[3]!==1||r[3]!==1,f=(u?"rgba(":"rgb(")+Math.round(i[0]+(r[0]-i[0])*(1-t))+","+Math.round(i[1]+(r[1]-i[1])*(1-t))+","+Math.round(i[2]+(r[2]-i[2])*(1-t))+(u?","+(i[3]+(r[3]-i[3])*(1-t)):"")+")"):f=n.input||"none",f}};n.color=function(t){return new n.Color(t)}}(t),function(n){var i,w,y=n.addEvent,ft=n.animate,u=n.attr,et=n.charts,ot=n.color,h=n.css,d=n.createElement,t=n.defined,b=n.deg2rad,st=n.destroyObjectProperties,f=n.doc,e=n.extend,k=n.erase,ht=n.hasTouch,g=n.isArray,nt=n.isFirefox,tt=n.isMS,a=n.isObject,ct=n.isString,lt=n.isWebKit,s=n.merge,at=n.noop,o=n.objectEach,r=n.pick,c=n.pInt,it=n.removeEvent,vt=n.splat,rt=n.stop,ut=n.svg,p=n.SVG_NS,v=n.symbolSizes,l=n.win;i=n.SVGElement=function(){return this};e(i.prototype,{opacity:1,SVG_NS:p,textProps:["direction","fontSize","fontWeight","fontFamily","fontStyle","color","lineHeight","width","textAlign","textDecoration","textOverflow","textOutline","cursor"],init:function(t,i){this.element=i==="span"?d(i):f.createElementNS(this.SVG_NS,i);this.renderer=t;n.fireEvent(this,"afterInit")},animate:function(t,i,u){var e=n.animObject(r(i,this.renderer.globalAnimation,!0));return r(f.hidden,f.msHidden,f.webkitHidden,!1)&&(e.duration=0),e.duration!==0?(u&&(e.complete=u),ft(this,t,e)):(this.attr(t,null,u),e.step&&e.step.call(this)),this},complexColor:function(i,r,u){var c=this.renderer,v,h,f,y,a,l,p,w,b,k,d,e=[],nt;n.fireEvent(this.renderer,"complexColor",{args:arguments},function(){i.radialGradient?h="radialGradient":i.linearGradient&&(h="linearGradient");h&&(f=i[h],a=c.gradients,p=i.stops,k=u.radialReference,g(f)&&(i[h]=f={x1:f[0],y1:f[1],x2:f[2],y2:f[3],gradientUnits:"userSpaceOnUse"}),h==="radialGradient"&&k&&!t(f.gradientUnits)&&(y=f,f=s(f,c.getRadialAttr(k,y),{gradientUnits:"userSpaceOnUse"})),o(f,function(n,t){t!=="id"&&e.push(t,n)}),o(p,function(n){e.push(n)}),e=e.join(","),a[e]?d=a[e].attr("id"):(f.id=d=n.uniqueKey(),a[e]=l=c.createElement(h).attr(f).add(c.defs),l.radAttr=y,l.stops=[],p.forEach(function(t){var i;t[1].indexOf("rgba")===0?(v=n.color(t[1]),w=v.get("rgb"),b=v.get("a")):(w=t[1],b=1);i=c.createElement("stop").attr({offset:t[0],"stop-color":w,"stop-opacity":b}).add(l);l.stops.push(i)})),nt="url("+c.url+"#"+d+")",u.setAttribute(r,nt),u.gradient=e,i.toString=function(){return nt})})},applyTextOutline:function(t){var i=this.element,f,e,c=t.indexOf("contrast")!==-1,o,r,h,s;if(c&&({}.textOutline=t=t.replace(/contrast/g,this.renderer.getContrast(i.style.fill))),t=t.split(" "),o=t[t.length-1],r=t[0],r&&r!=="none"&&n.svg){for(this.fakeTS=!0,f=[].slice.call(i.getElementsByTagName("tspan")),this.ySetter=this.xSetter,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(n,t,i){return 2*t+i}),s=f.length;s--;)e=f[s],e.getAttribute("class")==="highcharts-text-outline"&&k(f,i.removeChild(e));h=i.firstChild;f.forEach(function(n,t){var f;t===0&&(n.setAttribute("x",i.getAttribute("x")),t=i.getAttribute("y"),n.setAttribute("y",t||0),t===null&&i.setAttribute("y",0));f=n.cloneNode(1);u(f,{"class":"highcharts-text-outline",fill:o,stroke:o,"stroke-width":r,"stroke-linejoin":"round"});i.insertBefore(f,h)})}},symbolCustomAttribs:["x","y","width","height","r","start","end","innerR","anchorX","anchorY","rounded"],attr:function(t,i,r,u){var s,h=this.element,c,l=this,f,e,a=this.symbolCustomAttribs;return typeof t=="string"&&i!==undefined&&(s=t,t={},t[s]=i),typeof t=="string"?l=(this[t+"Getter"]||this._defaultGetter).call(this,t,h):(o(t,function(i,r){f=!1;u||rt(this,r);this.symbolName&&n.inArray(r,a)!==-1&&(c||(this.symbolAttr(t),c=!0),f=!0);this.rotation&&(r==="x"||r==="y")&&(this.doTransform=!0);f||(e=this[r+"Setter"]||this._defaultSetter,e.call(this,i,r,h),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(r)&&this.updateShadows(r,i,e))},this),this.afterSetters()),r&&r.call(this),l},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(n,t,i){for(var r=this.shadows,u=r.length;u--;)i.call(r[u],n==="height"?Math.max(t-(r[u].cutHeight||0),0):n==="d"?this.d:t,n,r[u])},addClass:function(n,t){var i=this.attr("class")||"";return i.indexOf(n)===-1&&(t||(n=(i+(i?" ":"")+n).replace("  "," ")),this.attr("class",n)),this},hasClass:function(n){return(this.attr("class")||"").split(" ").indexOf(n)!==-1},removeClass:function(n){return this.attr("class",(this.attr("class")||"").replace(n,""))},symbolAttr:function(n){var t=this;["x","y","r","start","end","width","height","innerR","anchorX","anchorY"].forEach(function(i){t[i]=r(n[i],t[i])});t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})},clip:function(n){return this.attr("clip-path",n?"url("+this.renderer.url+"#"+n.id+")":"none")},crisp:function(n,i){var u=this,r;return i=i||n.strokeWidth||0,r=Math.round(i)%2/2,n.x=Math.floor(n.x||u.x||0)+r,n.y=Math.floor(n.y||u.y||0)+r,n.width=Math.floor((n.width||u.width||0)-2*r),n.height=Math.floor((n.height||u.height||0)-2*r),t(n.strokeWidth)&&(n.strokeWidth=i),n},css:function(n){var t=this.styles,f={},i=this.element,s,r="",l,a=!t,v=["textOutline","textOverflow","width"];return n&&n.color&&(n.fill=n.color),t&&o(n,function(n,i){n!==t[i]&&(f[i]=n,a=!0)}),a&&(t&&(n=e(t,f)),n&&(n.width===null||n.width==="auto"?delete this.textWidth:i.nodeName.toLowerCase()==="text"&&n.width&&(s=this.textWidth=c(n.width))),this.styles=n,s&&!ut&&this.renderer.forExport&&delete n.width,i.namespaceURI===this.SVG_NS?(l=function(n,t){return"-"+t.toLowerCase()},o(n,function(n,t){v.indexOf(t)===-1&&(r+=t.replace(/([A-Z])/g,l)+":"+n+";")}),r&&u(i,"style",r)):h(i,n),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),n&&n.textOutline&&this.applyTextOutline(n.textOutline))),this},getStyle:function(n){return l.getComputedStyle(this.element||this,"").getPropertyValue(n)},strokeWidth:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),i,n;return t.indexOf("px")===t.length-2?i=c(t):(n=f.createElementNS(p,"rect"),u(n,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(n),i=n.getBBox().width,n.parentNode.removeChild(n)),i},on:function(n,t){var r=this,i=r.element;return ht&&n==="click"?(i.ontouchstart=function(n){r.touchEventFired=Date.now();n.preventDefault();t.call(i,n)},i.onclick=function(n){(l.navigator.userAgent.indexOf("Android")===-1||Date.now()-(r.touchEventFired||0)>1100)&&t.call(i,n)}):i["on"+n]=t,this},setRadialReference:function(n){var t=this.renderer.gradients[this.element.gradient];return this.element.radialReference=n,t&&t.radAttr&&t.animate(this.renderer.getRadialAttr(n,t.radAttr)),this},translate:function(n,t){return this.attr({translateX:n,translateY:t})},invert:function(n){var t=this;return t.inverted=n,t.updateTransform(),t},updateTransform:function(){var n=this,f=n.translateX||0,e=n.translateY||0,o=n.scaleX,s=n.scaleY,h=n.inverted,c=n.rotation,l=n.matrix,u=n.element,i;h&&(f+=n.width,e+=n.height);i=["translate("+f+","+e+")"];t(l)&&i.push("matrix("+l.join(",")+")");h?i.push("rotate(90) scale(-1,1)"):c&&i.push("rotate("+c+" "+r(this.rotationOriginX,u.getAttribute("x"),0)+" "+r(this.rotationOriginY,u.getAttribute("y")||0)+")");(t(o)||t(s))&&i.push("scale("+r(o,1)+" "+r(s,1)+")");i.length&&u.setAttribute("transform",i.join(" "))},toFront:function(){var n=this.element;return n.parentNode.appendChild(n),this},align:function(n,t,i){var o,s,h,c,u={},l,a=this.renderer,v=a.alignedObjects,f,e;return n?(this.alignOptions=n,this.alignByTranslate=t,(!i||ct(i))&&(this.alignTo=l=i||"renderer",k(v,this),v.push(this),i=null)):(n=this.alignOptions,t=this.alignByTranslate,l=this.alignTo),i=r(i,a[l],a),o=n.align,s=n.verticalAlign,h=(i.x||0)+(n.x||0),c=(i.y||0)+(n.y||0),o==="right"?f=1:o==="center"&&(f=2),f&&(h+=(i.width-(n.width||0))/f),u[t?"translateX":"x"]=Math.round(h),s==="bottom"?e=1:s==="middle"&&(e=2),e&&(c+=(i.height-(n.height||0))/e),u[t?"translateY":"y"]=Math.round(c),this[this.placed?"animate":"attr"](u),this.placed=!0,this.alignAttr=u,this},getBBox:function(n,u){var s=this,f,a=s.renderer,k,c,p,v,h=s.element,l=s.styles,g,nt=s.textStr,y,w=a.cache,d=a.cacheKeys,tt=h.namespaceURI===s.SVG_NS,o;if(p=r(u,s.rotation),v=p*b,g=a.styledMode?h&&i.prototype.getStyle.call(h,"font-size"):l&&l.fontSize,t(nt)&&(o=nt.toString(),o.indexOf("<")===-1&&(o=o.replace(/[0-9]/g,"0")),o+=["",p||0,g,s.textWidth,l&&l.textOverflow].join(",")),o&&!n&&(f=w[o]),!f){if(tt||a.forExport){try{y=this.fakeTS&&function(n){[].forEach.call(h.querySelectorAll(".highcharts-text-outline"),function(t){t.style.display=n})};y&&y("none");f=h.getBBox?e({},h.getBBox()):{width:h.offsetWidth,height:h.offsetHeight};y&&y("")}catch(it){}(!f||f.width<0)&&(f={width:0,height:0})}else f=s.htmlGetBBox();if(a.isSVG&&(k=f.width,c=f.height,tt&&(f.height=c={"11px,17":14,"13px,20":16}[l&&l.fontSize+","+Math.round(c)]||c),p&&(f.width=Math.abs(c*Math.sin(v))+Math.abs(k*Math.cos(v)),f.height=Math.abs(c*Math.cos(v))+Math.abs(k*Math.sin(v)))),o&&f.height>0){while(d.length>250)delete w[d.shift()];w[o]||d.push(o);w[o]=f}}return f},show:function(n){return this.attr({visibility:n?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(n){var t=this;t.animate({opacity:0},{duration:n||150,complete:function(){t.attr({y:-9999})}})},add:function(n){var t=this.renderer,r=this.element,i;return n&&(this.parentGroup=n),this.parentInverted=n&&n.inverted,this.textStr!==undefined&&t.buildText(this),this.added=!0,(!n||n.handleZ||this.zIndex)&&(i=this.zIndexSetter()),i||(n?n.element:t.box).appendChild(r),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(n){var t=n.parentNode;t&&t.removeChild(n)},destroy:function(){var n=this,t=n.element||{},u=n.renderer,i=u.isSVG&&t.nodeName==="SPAN"&&n.parentGroup,e,s=t.ownerSVGElement,r,f=n.clipPath;if(t.onclick=t.onmouseout=t.onmouseover=t.onmousemove=t.point=null,rt(n),f&&s&&([].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(n){var t=n.getAttribute("clip-path"),i=f.element.id;(t.indexOf("(#"+i+")")>-1||t.indexOf('("#'+i+'")')>-1)&&n.removeAttribute("clip-path")}),n.clipPath=f.destroy()),n.stops){for(r=0;r<n.stops.length;r++)n.stops[r]=n.stops[r].destroy();n.stops=null}for(n.safeRemoveChild(t),u.styledMode||n.destroyShadows();i&&i.div&&i.div.childNodes.length===0;)e=i.parentGroup,n.safeRemoveChild(i.div),delete i.div,i=e;return n.alignTo&&k(u.alignedObjects,n),o(n,function(t,i){delete n[i]}),null},shadow:function(n,t,i){var c=[],e,f,o=this.element,s,h,l,a;if(n){if(!this.shadows){for(h=r(n.width,3),l=(n.opacity||.15)/h,a=this.parentInverted?"(-1,-1)":"("+r(n.offsetX,1)+", "+r(n.offsetY,1)+")",e=1;e<=h;e++)f=o.cloneNode(0),s=h*2+1-2*e,u(f,{stroke:n.color||"#000000","stroke-opacity":l*e,"stroke-width":s,transform:"translate"+a,fill:"none"}),f.setAttribute("class",(f.getAttribute("class")||"")+" highcharts-shadow"),i&&(u(f,"height",Math.max(u(f,"height")-s,0)),f.cutHeight=s),t?t.element.appendChild(f):o.parentNode&&o.parentNode.insertBefore(f,o),c.push(f);this.shadows=c}}else this.destroyShadows();return this},destroyShadows:function(){(this.shadows||[]).forEach(function(n){this.safeRemoveChild(n)},this);this.shadows=undefined},xGetter:function(n){return this.element.nodeName==="circle"&&(n==="x"?n="cx":n==="y"&&(n="cy")),this._defaultGetter(n)},_defaultGetter:function(n){var t=r(this[n+"Value"],this[n],this.element?this.element.getAttribute(n):null,0);return/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},dSetter:function(n,t,i){n&&n.join&&(n=n.join(" "));/(NaN| {2}|^$)/.test(n)&&(n="M 0 0");this[t]!==n&&(i.setAttribute(t,n),this[t]=n)},dashstyleSetter:function(n){var t,i=this["stroke-width"];if(i==="inherit"&&(i=1),n=n&&n.toLowerCase(),n){for(n=n.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(","),t=n.length;t--;)n[t]=c(n[t])*i;n=n.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",n)}},alignSetter:function(n){this.alignValue=n;this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[n])},opacitySetter:function(n,t,i){this[t]=n;i.setAttribute(t,n)},titleSetter:function(n){var t=this.element.getElementsByTagName("title")[0];t||(t=f.createElementNS(this.SVG_NS,"title"),this.element.appendChild(t));t.firstChild&&t.removeChild(t.firstChild);t.appendChild(f.createTextNode(String(r(n),"").replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")))},textSetter:function(n){n!==this.textStr&&(delete this.bBox,this.textStr=n,this.added&&this.renderer.buildText(this))},fillSetter:function(n,t,i){typeof n=="string"?i.setAttribute(t,n):n&&this.complexColor(n,t,i)},visibilitySetter:function(n,t,i){n==="inherit"?i.removeAttribute(t):this[t]!==n&&i.setAttribute(t,n);this[t]=n},zIndexSetter:function(n,i){var s=this.renderer,h=this.parentGroup,w=h||s,o=w.element||s.box,u,l,a,f=this.element,e,v,y=o===s.box,p=this.added,r;if(t(n)?(f.setAttribute("data-z-index",n),n=+n,this[i]===n&&(p=!1)):t(this[i])&&f.removeAttribute("data-z-index"),this[i]=n,p){for(n=this.zIndex,n&&h&&(h.handleZ=!0),u=o.childNodes,r=u.length-1;r>=0&&!e;r--)l=u[r],a=l.getAttribute("data-z-index"),v=!t(a),l!==f&&(n<0&&v&&!y&&!r?(o.insertBefore(f,u[r]),e=!0):(c(a)<=n||v&&(!t(n)||n>=0))&&(o.insertBefore(f,u[r+1]||null),e=!0));e||(o.insertBefore(f,u[y?3:0]||null),e=!0)}return e},_defaultSetter:function(n,t,i){i.setAttribute(t,n)}});i.prototype.yGetter=i.prototype.xGetter;i.prototype.translateXSetter=i.prototype.translateYSetter=i.prototype.rotationSetter=i.prototype.verticalAlignSetter=i.prototype.rotationOriginXSetter=i.prototype.rotationOriginYSetter=i.prototype.scaleXSetter=i.prototype.scaleYSetter=i.prototype.matrixSetter=function(n,t){this[t]=n;this.doTransform=!0};i.prototype["stroke-widthSetter"]=i.prototype.strokeSetter=function(n,t,r){this[t]=n;this.stroke&&this["stroke-width"]?(i.prototype.fillSetter.call(this,this.stroke,"stroke",r),r.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):t==="stroke-width"&&n===0&&this.hasStroke&&(r.removeAttribute("stroke"),this.hasStroke=!1)};w=n.SVGRenderer=function(){this.init.apply(this,arguments)};e(w.prototype,{Element:i,SVG_NS:p,init:function(n,t,i,r,e,o,s){var c=this,v,p,b,w,a;v=c.createElement("svg").attr({version:"1.1","class":"highcharts-root"});s||v.css(this.getStyle(r));p=v.element;n.appendChild(p);u(n,"dir","ltr");n.innerHTML.indexOf("xmlns")===-1&&u(p,"xmlns",this.SVG_NS);c.isSVG=!0;this.box=p;this.boxWrapper=v;c.alignedObjects=[];this.url=(nt||lt)&&f.getElementsByTagName("base").length?l.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";b=this.createElement("desc").add();b.element.appendChild(f.createTextNode("Created with Highcharts 7.0.2"));c.defs=this.createElement("defs").add();c.allowHTML=o;c.forExport=e;c.styledMode=s;c.gradients={};c.cache={};c.cacheKeys=[];c.imgCount=0;c.setSize(t,i,!1);nt&&n.getBoundingClientRect&&(w=function(){h(n,{left:0,top:0});a=n.getBoundingClientRect();h(n,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})},w(),c.unSubPixelFix=y(l,"resize",w))},definition:function(n){function i(n,r){var u;return vt(n).forEach(function(n){var e=t.createElement(n.tagName),s={};o(n,function(n,t){t!=="tagName"&&t!=="children"&&t!=="textContent"&&(s[t]=n)});e.attr(s);e.add(r||t.defs);n.textContent&&e.element.appendChild(f.createTextNode(n.textContent));i(n.children||[],e);u=e}),u}var t=this;return i(n)},getStyle:function(n){return this.style=e({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},n),this.style},setStyle:function(n){this.boxWrapper.css(this.getStyle(n))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var n=this,t=n.defs;return n.box=null,n.boxWrapper=n.boxWrapper.destroy(),st(n.gradients||{}),n.gradients=null,t&&(n.defs=t.destroy()),n.unSubPixelFix&&n.unSubPixelFix(),n.alignedObjects=null,null},createElement:function(n){var t=new this.Element;return t.init(this,n),t},draw:at,getRadialAttr:function(n,t){return{cx:n[0]-n[2]/2+t.cx*n[2],cy:n[1]-n[2]/2+t.cy*n[2],r:t.r*n[2]}},truncate:function(n,t,i,r,u,e,o){var w=this,k=n.rotation,a,c=r?1:0,s=(i||r).length,h=s,v=[],y=function(n){t.firstChild&&t.removeChild(t.firstChild);n&&t.appendChild(f.createTextNode(n))},b=function(f,e){var s=e||f;if(v[s]===undefined)if(t.getSubStringLength)try{v[s]=u+t.getSubStringLength(0,r?s+1:s)}catch(h){}else w.getSpanWidth&&(y(o(i||r,f)),v[s]=u+w.getSpanWidth(n,t));return v[s]},l,p;if(n.rotation=0,l=b(t.textContent.length),p=u+l>e,p){while(c<=s)h=Math.ceil((c+s)/2),r&&(a=o(r,h)),l=b(h,a&&a.length-1),c===s?c=s+1:l>e?s=h-1:c=h;s===0?y(""):i&&s===i.length-1||y(a||o(i||r,h))}return r&&r.splice(0,h),n.actualWidth=l,n.rotation=k,p},escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},buildText:function(n){var t=n.element,i=this,ft=i.forExport,s=r(n.textStr,"").toString(),et=s.indexOf("<")!==-1,l,ot=t.childNodes,st,b=u(t,"x"),e=n.styles,a=n.textWidth,k=e&&e.lineHeight,v=e&&e.textOutline,y=e&&e.textOverflow==="ellipsis",d=e&&e.whiteSpace==="nowrap",g=e&&e.fontSize,nt,tt,ht=ot.length,w=a&&!n.added&&this.box,ct=function(n){var r;return i.styledMode||(r=/(px|em)$/.test(n&&n.style.fontSize)?n.style.fontSize:g||i.style.fontSize||12),k?c(k):i.fontMetrics(r,n.getAttribute("style")?n:t).h},it=function(n,t){return o(i.escapes,function(i,r){t&&t.indexOf(i)!==-1||(n=n.toString().replace(new RegExp(i,"g"),r))}),n},rt=function(n,t){var i,r;return i=n.indexOf("<"),n=n.substring(i,n.indexOf(">")-i),i=n.indexOf(t+"="),i!==-1&&(i=i+t.length+1,r=n.charAt(i),r==='"'||r==="'")?(n=n.substring(i+1),n.substring(0,n.indexOf(r))):void 0};if(nt=[s,y,d,k,v,g,a].join(","),nt!==n.textCache){for(n.textCache=nt;ht--;)t.removeChild(ot[ht]);et||v||y||a||s.indexOf(" ")!==-1?(w&&w.appendChild(t),et?(l=i.styledMode?s.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,'<span class="highcharts-emphasized">'):s.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">'),l=l.replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"<\/span>").split(/<br.*?>/g)):l=[s],l=l.filter(function(n){return n!==""}),l.forEach(function(r,e){var o,s=0,c=0;r=r.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"<\/span>|||");o=r.split("|||");o.forEach(function(r){var k,l,nt,v,et;if((r!==""||o.length===1)&&(k={},l=f.createElementNS(i.SVG_NS,"tspan"),nt=rt(r,"class"),nt&&u(l,"class",nt),v=rt(r,"style"),v&&(v=v.replace(/(;| |^)color([ :])/,"$1fill$2"),u(l,"style",v)),et=rt(r,"href"),et&&!ft&&(u(l,"onclick",'location.href="'+et+'"'),u(l,"class","highcharts-anchor"),i.styledMode||h(l,{cursor:"pointer"})),r=it(r.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "),r!==" ")){if(l.appendChild(f.createTextNode(r)),s?k.dx=0:e&&b!==null&&(k.x=b),u(l,k),t.appendChild(l),!s&&tt&&(!ut&&ft&&h(l,{display:"block"}),u(l,"dy",ct(l))),a){var w=r.replace(/([^\^])-/g,"$1- ").split(" "),ht=!d&&(o.length>1||e||w.length>1),ot=0,lt=ct(l);if(y)st=i.truncate(n,l,r,undefined,0,Math.max(0,a-parseInt(g||12,10)),function(n,t){return n.substring(0,t)+"…"});else if(ht)while(w.length)w.length&&!d&&ot>0&&(l=f.createElementNS(p,"tspan"),u(l,{dy:lt,x:b}),v&&u(l,"style",v),l.appendChild(f.createTextNode(w.join(" ").replace(/- /g,"-"))),t.appendChild(l)),i.truncate(n,l,null,w,ot===0?c:0,a,function(n,t){return w.slice(0,t).join(" ").replace(/- /g,"-")}),c=n.actualWidth,ot++}s++}});tt=tt||t.childNodes.length}),y&&st&&n.attr("title",it(n.textStr,["&lt;","&gt;"])),w&&w.removeChild(t),v&&n.applyTextOutline&&n.applyTextOutline(v)):t.appendChild(f.createTextNode(it(s)))}},getContrast:function(n){return n=ot(n).rgba,n[0]*=1,n[1]*=1.2,n[2]*=.5,n[0]+n[1]+n[2]>1.8*255?"#000000":"#FFFFFF"},button:function(n,t,i,r,u,f,o,h,c){var l=this.label(n,t,i,c,null,null,null,null,"button"),a=0,v=this.styledMode,p,w,b,k;l.attr(s({padding:8,r:2},u));v||(u=s({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},u),p=u.style,delete u.style,f=s(u,{fill:"#e6e6e6"},f),w=f.style,delete f.style,o=s(u,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},o),b=o.style,delete o.style,h=s(u,{style:{color:"#cccccc"}},h),k=h.style,delete h.style);y(l.element,tt?"mouseover":"mouseenter",function(){a!==3&&l.setState(1)});y(l.element,tt?"mouseout":"mouseleave",function(){a!==3&&l.setState(a)});l.setState=function(n){n!==1&&(l.state=a=n);l.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][n||0]);v||l.attr([u,f,o,h][n||0]).css([p,w,b,k][n||0])};v||l.attr(u).css(e({cursor:"default"},p));return l.on("click",function(n){a!==3&&r.call(l,n)})},crispLine:function(n,t){return n[1]===n[4]&&(n[1]=n[4]=Math.round(n[1])-t%2/2),n[2]===n[5]&&(n[2]=n[5]=Math.round(n[2])+t%2/2),n},path:function(n){var t=this.styledMode?{}:{fill:"none"};return g(n)?t.d=n:a(n)&&e(t,n),this.createElement("path").attr(t)},circle:function(n,t,i){var u=a(n)?n:n===undefined?{}:{x:n,y:t,r:i},r=this.createElement("circle");return r.xSetter=r.ySetter=function(n,t,i){i.setAttribute("c"+t,n)},r.attr(u)},arc:function(n,t,i,r,u,f){var o,e;return a(n)?(e=n,t=e.y,i=e.r,r=e.innerR,u=e.start,f=e.end,n=e.x):e={innerR:r,start:u,end:f},o=this.symbol("arc",n,t,i,i,e),o.r=i,o},rect:function(n,t,i,r,f,e){f=a(n)?n.r:f;var s=this.createElement("rect"),o=a(n)?n:n===undefined?{}:{x:n,y:t,width:Math.max(i,0),height:Math.max(r,0)};return this.styledMode||(e!==undefined&&(o.strokeWidth=e,o=s.crisp(o)),o.fill="none"),f&&(o.r=f),s.rSetter=function(n,t,i){u(i,{rx:n,ry:n})},s.attr(o)},setSize:function(n,t,i){var u=this,f=u.alignedObjects,e=f.length;for(u.width=n,u.height=t,u.boxWrapper.animate({width:n,height:t},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:r(i,!0)?undefined:0});e--;)f[e].align()},g:function(n){var t=this.createElement("g");return n?t.attr({"class":"highcharts-"+n}):t},image:function(n,t,i,r,u,f){var c={preserveAspectRatio:"none"},o,s,h=function(n,t){n.setAttributeNS?n.setAttributeNS("http://www.w3.org/1999/xlink","href",t):n.setAttribute("hc-svg-href",t)},a=function(t){h(o.element,n);f.call(o,t)};return arguments.length>1&&e(c,{x:t,y:i,width:r,height:u}),o=this.createElement("image").attr(c),f?(h(o.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),s=new l.Image,y(s,"load",a),s.src=n,s.complete&&a({})):h(o.element,n),o},symbol:function(n,i,u,o,s,c){var y=this,l,k=/^url\((.*?)\)$/,g=k.test(n),p=!g&&(this.symbols[n]?n:"circle"),w=p&&this.symbols[p],nt=t(i)&&w&&w.call(this.symbols,Math.round(i),Math.round(u),o,s,c),a,b;return w?(l=this.path(nt),y.styledMode||l.attr("fill","none"),e(l,{symbolName:p,x:i,y:u,width:o,height:s}),c&&e(l,c)):g&&(a=n.match(k)[1],l=this.image(a),l.imgwidth=r(v[a]&&v[a].width,c&&c.width),l.imgheight=r(v[a]&&v[a].height,c&&c.height),b=function(){l.attr({width:l.width,height:l.height})},["width","height"].forEach(function(n){l[n+"Setter"]=function(n,i){var u={},r=this["img"+i],f=i==="width"?"translateX":"translateY";this[i]=n;t(r)&&(this.element&&this.element.setAttribute(i,r),this.alignByTranslate||(u[f]=((this[i]||0)-r)/2,this.attr(u)))}}),t(i)&&l.attr({x:i,y:u}),l.isImg=!0,t(l.imgwidth)&&t(l.imgheight)?b():(l.attr({width:0,height:0}),d("img",{onload:function(){var n=et[y.chartIndex];this.width===0&&(h(this,{position:"absolute",top:"-999em"}),f.body.appendChild(this));v[a]={width:this.width,height:this.height};l.imgwidth=this.width;l.imgheight=this.height;l.element&&b();this.parentNode&&this.parentNode.removeChild(this);y.imgCount--;!y.imgCount&&n&&n.onload&&n.onload()},src:a}),this.imgCount++)),l},symbols:{circle:function(n,t,i,r){return this.arc(n+i/2,t+r/2,i/2,r/2,{start:0,end:Math.PI*2,open:!1})},square:function(n,t,i,r){return["M",n,t,"L",n+i,t,n+i,t+r,n,t+r,"Z"]},triangle:function(n,t,i,r){return["M",n+i/2,t,"L",n+i,t+r,n,t+r,"Z"]},"triangle-down":function(n,t,i,r){return["M",n,t,"L",n+i,t,n+i/2,t+r,"Z"]},diamond:function(n,t,i,r){return["M",n+i/2,t,"L",n+i,t+r/2,n+i/2,t+r,n,t+r/2,"Z"]},arc:function(n,i,u,f,e){var h=e.start,c=e.r||u,l=e.r||f||u,a=.001,g=Math.abs(e.end-e.start-2*Math.PI)<a,v=e.end-a,o=e.innerR,y=r(e.open,g),p=Math.cos(h),w=Math.sin(h),b=Math.cos(v),k=Math.sin(v),d=e.end-h-Math.PI<a?0:1,s;return s=["M",n+c*p,i+l*w,"A",c,l,0,d,1,n+c*b,i+l*k],t(o)&&s.push(y?"M":"L",n+o*b,i+o*k,"A",o,o,0,d,0,n+o*p,i+o*w),s.push(y?"":"Z"),s},callout:function(n,t,i,r,u){var l=6,s=6,f=Math.min(u&&u.r||0,i,r),h=f+s,e=u&&u.anchorX,o=u&&u.anchorY,c;return c=["M",n+f,t,"L",n+i-f,t,"C",n+i,t,n+i,t,n+i,t+f,"L",n+i,t+r-f,"C",n+i,t+r,n+i,t+r,n+i-f,t+r,"L",n+f,t+r,"C",n,t+r,n,t+r,n,t+r-f,"L",n,t+f,"C",n,t,n,t,n+f,t],e&&e>i?o>t+h&&o<t+r-h?c.splice(13,3,"L",n+i,o-s,n+i+l,o,n+i,o+s,n+i,t+r-f):c.splice(13,3,"L",n+i,r/2,e,o,n+i,r/2,n+i,t+r-f):e&&e<0?o>t+h&&o<t+r-h?c.splice(33,3,"L",n,o+s,n-l,o,n,o-s,n,t+f):c.splice(33,3,"L",n,r/2,e,o,n,r/2,n,t+f):o&&o>r&&e>n+h&&e<n+i-h?c.splice(23,3,"L",e+s,t+r,e,t+r+l,e-s,t+r,n+f,t+r):o&&o<0&&e>n+h&&e<n+i-h&&c.splice(3,3,"L",e-s,t,e,t-l,e+s,t,i-f,t),c}},clipRect:function(t,i,r,u){var f,e=n.uniqueKey(),o=this.createElement("clipPath").attr({id:e}).add(this.defs);return f=this.rect(t,i,r,u,0).add(o),f.id=e,f.clipPath=o,f.count=0,f},text:function(n,i,r,u){var f=this,o,e={};return u&&(f.allowHTML||!f.forExport)?f.html(n,i,r):(e.x=Math.round(i||0),r&&(e.y=Math.round(r)),t(n)&&(e.text=n),o=f.createElement("text").attr(e),u||(o.xSetter=function(n,t,i){for(var f=i.getElementsByTagName("tspan"),u,e=i.getAttribute(t),r=0;r<f.length;r++)u=f[r],u.getAttribute(t)===e&&u.setAttribute(t,n);i.setAttribute(t,n)}),o)},fontMetrics:function(n,t){var r,u;return n=(this.styledMode||!/px/.test(n))&&l.getComputedStyle?t&&i.prototype.getStyle.call(t,"font-size"):n||t&&t.style&&t.style.fontSize||this.style&&this.style.fontSize,n=/px/.test(n)?c(n):12,r=n<24?n+3:Math.round(n*1.2),u=Math.round(r*.8),{h:r,b:u,f:n}},rotCorr:function(n,t,i){var r=n;return t&&i&&(r=Math.max(r*Math.cos(t*b),4)),{x:-n/3*Math.sin(t*b),y:r}},label:function(r,u,f,o,h,c,l,a,v){var d=this,ft=d.styledMode,y=d.g(v!=="button"&&"label"),p=y.text=d.text("",0,0,l).attr({zIndex:1}),w,b,et=0,k=3,ot=0,tt,ht,st,ct,ut,lt={},at,vt,wt=/^url\((.*?)\)$/.test(o),yt=ft||wt,bt=function(){return ft?w.strokeWidth()%2/2:(at?parseInt(at,10):0)%2/2},g,rt,nt,kt,pt;return v&&y.addClass("highcharts-"+v),g=function(){var r=p.element.style,i,n={};b=(tt===undefined||ht===undefined||ut)&&t(p.textStr)&&p.getBBox();y.width=(tt||b.width||0)+2*k+ot;y.height=(ht||b.height||0)+2*k;vt=k+Math.min(d.fontMetrics(r&&r.fontSize,p).b,b?b.height:Infinity);yt&&(w||(y.box=w=d.symbols[o]||wt?d.symbol(o):d.rect(),w.addClass((v==="button"?"":"highcharts-label-box")+(v?" highcharts-"+v+"-box":"")),w.add(y),i=bt(),n.x=i,n.y=(a?-vt:0)+i),n.width=Math.round(y.width),n.height=Math.round(y.height),w.attr(e(n,lt)),lt={})},rt=function(){var i=ot+k,n;n=a?0:vt;t(tt)&&b&&(ut==="center"||ut==="right")&&(i+={center:.5,right:1}[ut]*(tt-b.width));(i!==p.x||n!==p.y)&&(p.attr("x",i),p.hasBoxWidthChanged&&(b=p.getBBox(!0),g()),n!==undefined&&p.attr("y",n));p.x=i;p.y=n},nt=function(n,t){w?w.attr(n,t):lt[n]=t},y.onAdd=function(){p.add(y);y.attr({text:r||r===0?r:"",x:u,y:f});w&&t(h)&&y.attr({anchorX:h,anchorY:c})},y.widthSetter=function(t){tt=n.isNumber(t)?t:null},y.heightSetter=function(n){ht=n},y["text-alignSetter"]=function(n){ut=n},y.paddingSetter=function(n){t(n)&&n!==k&&(k=y.padding=n,rt())},y.paddingLeftSetter=function(n){t(n)&&n!==ot&&(ot=n,rt())},y.alignSetter=function(n){n={left:0,center:.5,right:1}[n];n!==et&&(et=n,b&&y.attr({x:st}))},y.textSetter=function(n){n!==undefined&&p.textSetter(n);g();rt()},y["stroke-widthSetter"]=function(n,t){n&&(yt=!0);at=this["stroke-width"]=n;nt(t,n)},ft?y.rSetter=function(n,t){nt(t,n)}:y.strokeSetter=y.fillSetter=y.rSetter=function(n,t){t!=="r"&&(t==="fill"&&n&&(yt=!0),y[t]=n);nt(t,n)},y.anchorXSetter=function(n,t){h=y.anchorX=n;nt(t,Math.round(n)-bt()-st)},y.anchorYSetter=function(n,t){c=y.anchorY=n;nt(t,n-ct)},y.xSetter=function(n){y.x=n;et&&(n-=et*((tt||b.width)+2*k),y["forceAnimate:x"]=!0);st=Math.round(n);y.attr("translateX",st)},y.ySetter=function(n){ct=y.y=Math.round(n);y.attr("translateY",ct)},kt=y.css,pt={css:function(n){if(n){var t={};n=s(n);y.textProps.forEach(function(i){n[i]!==undefined&&(t[i]=n[i],delete n[i])});p.css(t);"width"in t&&g();"fontSize"in t&&(g(),rt())}return kt.call(y,n)},getBBox:function(){return{width:b.width+2*k,height:b.height+2*k,x:b.x-k,y:b.y-k}},destroy:function(){it(y.element,"mouseenter");it(y.element,"mouseleave");p&&(p=p.destroy());w&&(w=w.destroy());i.prototype.destroy.call(y);y=d=g=rt=nt=null}},ft||(pt.shadow=function(n){return n&&(g(),w&&w.shadow(n)),y}),e(y,pt)}});n.Renderer=w}(t),function(n){var s=n.attr,h=n.createElement,t=n.css,r=n.defined,i=n.extend,u=n.isFirefox,c=n.isMS,l=n.isWebKit,f=n.pick,a=n.pInt,e=n.SVGElement,v=n.SVGRenderer,o=n.win;i(e.prototype,{htmlCss:function(n){var r=this,o=r.element,u=o.tagName==="SPAN"&&n&&"width"in n,s=f(u&&n.width,undefined),e;return u&&(delete n.width,r.textWidth=s,e=!0),n&&n.textOverflow==="ellipsis"&&(n.whiteSpace="nowrap",n.overflow="hidden"),r.styles=i(r.styles,n),t(r.element,n),e&&r.htmlUpdateTransform(),r},htmlGetBBox:function(){var t=this,n=t.element;return{x:n.offsetLeft,y:n.offsetTop,width:n.offsetWidth,height:n.offsetHeight}},htmlUpdateTransform:function(){function k(){return t(i,{width:"",whiteSpace:y||"nowrap"}),i.offsetWidth}if(!this.added){this.alignOnAdd=!0;return}var n=this,o=n.renderer,i=n.element,h=n.translateX||0,c=n.translateY||0,w=n.x||0,b=n.y||0,f=n.textAlign||"left",l={left:0,center:.5,right:1}[f],v=n.styles,y=v&&v.whiteSpace;if(t(i,{marginLeft:h,marginTop:c}),!o.styledMode&&n.shadows&&n.shadows.forEach(function(n){t(n,{marginLeft:h+1,marginTop:c+1})}),n.inverted&&i.childNodes.forEach(function(n){o.invertChild(n,i)}),i.tagName==="SPAN"){var u=n.rotation,s,e=n.textWidth&&a(n.textWidth),p=[u,f,i.innerHTML,n.textWidth,n.textAlign].join(",");e!==n.oldTextWidth&&(e>n.oldTextWidth||(n.textPxLength||k())>e)&&(/[ \-]/.test(i.textContent||i.innerText)||i.style.textOverflow==="ellipsis")?(t(i,{width:e+"px",display:"block",whiteSpace:y||"normal"}),n.oldTextWidth=e,n.hasBoxWidthChanged=!0):n.hasBoxWidthChanged=!1;p!==n.cTT&&(s=o.fontMetrics(i.style.fontSize,i).b,r(u)&&(u!==(n.oldRotation||0)||f!==n.oldAlign)&&n.setSpanRotation(u,l,s),n.getSpanCorrection(!r(u)&&n.textPxLength||i.offsetWidth,s,l,u,f));t(i,{left:w+(n.xCorr||0)+"px",top:b+(n.yCorr||0)+"px"});n.cTT=p;n.oldRotation=u;n.oldAlign=f}},setSpanRotation:function(n,i,r){var f={},e=this.renderer.getTransformKey();f[e]=f.transform="rotate("+n+"deg)";f[e+(u?"Origin":"-origin")]=f.transformOrigin=i*100+"% "+r+"px";t(this.element,f)},getSpanCorrection:function(n,t,i){this.xCorr=-n*i;this.yCorr=-t}});i(v.prototype,{getTransformKey:function(){return c&&!/Edge/.test(o.navigator.userAgent)?"-ms-transform":l?"-webkit-transform":u?"MozTransform":o.opera?"-o-transform":""},html:function(t,r,u){var o=this.createElement("span"),c=o.element,l=o.renderer,a=l.isSVG,v=function(n,t){["opacity","visibility"].forEach(function(i){n[i+"Setter"]=function(n,r,u){e.prototype[i+"Setter"].call(this,n,r,u);t[r]=n}});n.addedSetters=!0},y=n.charts[l.chartIndex],p=y&&y.styledMode;return o.textSetter=function(n){n!==c.innerHTML&&delete this.bBox;this.textStr=n;c.innerHTML=f(n,"");o.doTransform=!0},a&&v(o,o.element.style),o.xSetter=o.ySetter=o.alignSetter=o.rotationSetter=function(n,t){t==="align"&&(t="textAlign");o[t]=n;o.doTransform=!0},o.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},o.attr({text:t,x:Math.round(r),y:Math.round(u)}).css({position:"absolute"}),p||o.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",o.css=o.htmlCss,a&&(o.add=function(n){var t,f=l.box.parentNode,r,u=[];if(this.parentGroup=n,n){if(t=n.div,!t){for(r=n;r;)u.push(r),r=r.parentGroup;u.reverse().forEach(function(n){function c(t,i){n[i]=t;i==="translateX"?r.left=t+"px":r.top=t+"px";n.doTransform=!0}var r,e=s(n.element,"class");e&&(e={className:e});t=n.div=n.div||h("div",e,{position:"absolute",left:(n.translateX||0)+"px",top:(n.translateY||0)+"px",display:n.display,opacity:n.opacity,pointerEvents:n.styles&&n.styles.pointerEvents},t||f);r=t.style;i(n,{classSetter:function(n){return function(t){this.element.setAttribute("class",t);n.className=t}}(t),on:function(){return u[0].div&&o.on.apply({element:u[0].div},arguments),n},translateXSetter:c,translateYSetter:c});n.addedSetters||v(n,r)})}}else t=f;return t.appendChild(c),o.added=!0,o.alignOnAdd&&o.htmlUpdateTransform(),o}),o}})}(t),function(n){var i=n,f=i.defined,e=i.extend,o=i.merge,r=i.pick,t=i.timeUnits,u=i.win;n.Time=function(n){this.update(n,!1)};n.Time.prototype={defaultOptions:{},update:function(n){var t=r(n&&n.useUTC,!0),i=this;this.options=n=o(!0,this.options||{},n);this.Date=n.Date||u.Date;this.useUTC=t;this.timezoneOffset=t&&n.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=!!(!t||n.getTimezoneOffset||n.timezone);this.variableTimezone||this.timezoneOffset?(this.get=function(n,t){var r=t.getTime(),f=r-i.getTimezoneOffset(t),u;return t.setTime(f),u=t["getUTC"+n](),t.setTime(r),u},this.set=function(n,t,r){var u,f,e;n==="Milliseconds"||n==="Seconds"||n==="Minutes"&&t.getTimezoneOffset()%60==0?t["set"+n](r):(f=i.getTimezoneOffset(t),u=t.getTime()-f,t.setTime(u),t["setUTC"+n](r),e=i.getTimezoneOffset(t),u=t.getTime()+e,t.setTime(u))}):t?(this.get=function(n,t){return t["getUTC"+n]()},this.set=function(n,t,i){return t["setUTC"+n](i)}):(this.get=function(n,t){return t["get"+n]()},this.set=function(n,t,i){return t["set"+n](i)})},makeTime:function(n,t,u,f,e,o){var s,h,c;return this.useUTC?(s=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(s),s+=h,c=this.getTimezoneOffset(s),h!==c?s+=c-h:h-36e5!==this.getTimezoneOffset(s-36e5)||i.isSafari||(s-=36e5)):s=new this.Date(n,t,r(u,1),r(f,0),r(e,0),r(o,0)).getTime(),s},timezoneOffsetFunction:function(){var r=this,n=this.options,t=u.moment;if(!this.useUTC)return function(n){return new Date(n).getTimezoneOffset()*6e4};if(n.timezone){if(t)return function(i){return-t.tz(i,n.timezone).utcOffset()*6e4};i.error(25)}return this.useUTC&&n.getTimezoneOffset?function(t){return n.getTimezoneOffset(t)*6e4}:function(){return(r.timezoneOffset||0)*6e4}},dateFormat:function(n,t,r){if(!i.defined(t)||isNaN(t))return i.defaultOptions.lang.invalidDate||"";n=i.pick(n,"%Y-%m-%d %H:%M:%S");var c=this,f=new this.Date(t),e=this.get("Hours",f),o=this.get("Day",f),l=this.get("Date",f),s=this.get("Month",f),a=this.get("FullYear",f),h=i.defaultOptions.lang,v=h.weekdays,y=h.shortWeekdays,u=i.pad,p=i.extend({a:y?y[o]:v[o].substr(0,3),A:v[o],d:u(l),e:u(l,2," "),w:o,b:h.shortMonths[s],B:h.months[s],m:u(s+1),o:s+1,y:a.toString().substr(2,2),Y:a,H:u(e),k:e,I:u(e%12||12),l:e%12||12,M:u(c.get("Minutes",f)),p:e<12?"AM":"PM",P:e<12?"am":"pm",S:u(f.getSeconds()),L:u(Math.floor(t%1e3),3)},i.dateFormats);return i.objectEach(p,function(i,r){while(n.indexOf("%"+r)!==-1)n=n.replace("%"+r,typeof i=="function"?i.call(c,t):i)}),r?n.substr(0,1).toUpperCase()+n.substr(1):n},resolveDTLFormat:function(n){return i.isObject(n,!0)?n:(n=i.splat(n),{main:n[0],from:n[1],to:n[2]})},getTimeTicks:function(n,i,u,o){var s=this,nt=s.Date,y=[],p,d={},a,h=new nt(i),c=n.unitRange,l=n.count||1,w,b,v;if(o=r(o,1),f(i)){s.set("Milliseconds",h,c>=t.second?0:l*Math.floor(s.get("Milliseconds",h)/l));c>=t.second&&s.set("Seconds",h,c>=t.minute?0:l*Math.floor(s.get("Seconds",h)/l));c>=t.minute&&s.set("Minutes",h,c>=t.hour?0:l*Math.floor(s.get("Minutes",h)/l));c>=t.hour&&s.set("Hours",h,c>=t.day?0:l*Math.floor(s.get("Hours",h)/l));c>=t.day&&s.set("Date",h,c>=t.month?1:Math.max(1,l*Math.floor(s.get("Date",h)/l)));c>=t.month&&(s.set("Month",h,c>=t.year?0:l*Math.floor(s.get("Month",h)/l)),a=s.get("FullYear",h));c>=t.year&&(a-=a%l,s.set("FullYear",h,a));c===t.week&&(b=s.get("Day",h),s.set("Date",h,s.get("Date",h)-b+o+(b<o?-7:0)));a=s.get("FullYear",h);var k=s.get("Month",h),g=s.get("Date",h),tt=s.get("Hours",h);for(i=h.getTime(),s.variableTimezone&&(w=u-i>4*t.month||s.getTimezoneOffset(i)!==s.getTimezoneOffset(u)),v=h.getTime(),p=1;v<u;)y.push(v),c===t.year?v=s.makeTime(a+p*l,0):c===t.month?v=s.makeTime(a,k+p*l):w&&(c===t.day||c===t.week)?v=s.makeTime(a,k,g+p*l*(c===t.day?1:7)):w&&c===t.hour&&l>1?v=s.makeTime(a,k,g,tt+p*l):v+=c*l,p++;y.push(v);c<=t.hour&&y.length<1e4&&y.forEach(function(n){n%18e5==0&&s.dateFormat("%H%M%S%L",n)==="000000000"&&(d[n]="day")})}return y.info=e(n,{higherRanks:d,totalRange:c*l}),y}}}(t),function(n){var i=n.color,r=n.isTouchDevice,t=n.merge,u=n.svg;n.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:n.Time.prototype.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:u,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:r?25:10,headerFormat:'<span style="font-size: 10px">{point.key}<\/span><br/>',pointFormat:'<span style="color:{point.color}">●<\/span> {series.name}: <b>{point.y}<\/b><br/>',backgroundColor:i("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};n.setOptions=function(i){return n.defaultOptions=t(!0,n.defaultOptions,i),n.time.update(t(n.defaultOptions.global,n.defaultOptions.time),!1),n.defaultOptions};n.getOptions=function(){return n.defaultOptions};n.defaultPlotOptions=n.defaultOptions.plotOptions;n.time=new n.Time(t(n.defaultOptions.global,n.defaultOptions.time));n.dateFormat=function(t,i,r){return n.time.dateFormat(t,i,r)}}(t),function(n){var e=n.correctFloat,i=n.defined,o=n.destroyObjectProperties,u=n.fireEvent,f=n.isNumber,s=n.merge,t=n.pick,r=n.deg2rad;n.Tick=function(n,t,i,r,u){this.axis=n;this.pos=t;this.type=i||"";this.isNew=!0;this.isNewLabel=!0;this.parameters=u||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;i||r||this.addLabel()};n.Tick.prototype={addLabel:function(){var u=this,f=u.axis,b=f.options,l=f.chart,k=f.categories,it=f.names,o=u.pos,h=t(u.options&&u.options.labels,b.labels),c,a=f.tickPositions,d=o===a[0],g=o===a[a.length-1],nt=this.parameters.category||(k?t(k[o],it[o],o):o),r=u.label,v=a.info,tt,y,p,w;f.isDatetimeAxis&&v&&(y=l.time.resolveDTLFormat(b.dateTimeLabelFormats[!b.grid&&v.higherRanks[o]||v.unitName]),tt=y.main);u.isFirst=d;u.isLast=g;u.formatCtx={axis:f,chart:l,isFirst:d,isLast:g,dateTimeLabelFormat:tt,tickPositionInfo:v,value:f.isLog?e(f.lin2log(nt)):nt,pos:o};c=f.labelFormatter.call(u.formatCtx,this.formatCtx);w=y&&y.list;w&&(u.shortenLabel=function(){for(p=0;p<w.length;p++)if(r.attr({text:f.labelFormatter.call(n.extend(u.formatCtx,{dateTimeLabelFormat:w[p]}))}),r.getBBox().width<f.getSlotWidth(u)-2*t(h.padding,5))return;r.attr({text:""})});i(r)?r&&r.textStr!==c&&(!r.textWidth||h.style&&h.style.width||r.styles.width||r.css({width:null}),r.attr({text:c})):(u.label=r=i(c)&&h.enabled?l.renderer.text(c,0,0,h.useHTML).add(f.labelGroup):null,r&&(l.styledMode||r.css(s(h.style)),r.textPxLength=r.getBBox().width),u.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(n){var v=this,i=this.axis,w=i.options.labels,e=n.x,b=i.chart.chartWidth,k=i.chart.spacing,l=t(i.labelLeft,Math.min(i.pos,k[3])),y=t(i.labelRight,Math.max(i.isRadial?0:i.pos+i.len,b-k[1])),a=this.label,s=this.rotation,f={left:0,center:.5,right:1}[i.labelAlign||a.attr("align")],o=a.getBBox().width,h=i.getSlotWidth(v),u=h,tt=f,d=1,g,nt,c,p={};s||t(w.overflow,"justify")!=="justify"?s<0&&e-f*o<l?c=Math.round(e/Math.cos(s*r)-l):s>0&&e+f*o>y&&(c=Math.round((b-e)/Math.cos(s*r))):(g=e-f*o,nt=e+(1-f)*o,g<l?u=n.x+u*(1-f)-l:nt>y&&(u=y-n.x+u*f,d=-1),u=Math.min(h,u),u<h&&i.labelAlign==="center"&&(n.x+=d*(h-u-tt*(h-Math.min(o,u)))),(o>u||i.autoRotation&&(a.styles||{}).width)&&(c=u));c&&(v.shortenLabel?v.shortenLabel():(p.width=Math.floor(c),(w.style||{}).textOverflow||(p.textOverflow="ellipsis"),a.css(p)))},getPosition:function(t,i,r,f){var e=this.axis,o=e.chart,h=f&&o.oldChartHeight||o.chartHeight,s;return s={x:t?n.correctFloat(e.translate(i+r,null,null,f)+e.transB):e.left+e.offset+(e.opposite?(f&&o.oldChartWidth||o.chartWidth)-e.right-e.left:0),y:t?h-e.bottom+e.offset-(e.opposite?e.height:0):n.correctFloat(h-e.translate(i+r,null,null,f)-e.transB)},u(this,"afterGetPosition",{pos:s}),s},getLabelPosition:function(n,t,f,e,o,s,h,c){var l=this.axis,b=l.transA,k=l.reversed,a=l.staggerLines,p=l.tickRotCorr||{x:0,y:0},w=o.y,d=!e&&!l.reserveSpaceDefault?-l.labelOffset*(l.labelAlign==="center"?.5:1):0,v,y={};return i(w)||(w=l.side===0?f.rotation?-8:-f.getBBox().height:l.side===2?p.y+8:Math.cos(f.rotation*r)*(p.y-f.getBBox(!1,0).height/2)),n=n+o.x+d+p.x-(s&&e?s*b*(k?-1:1):0),t=t+w-(s&&!e?s*b*(k?1:-1):0),a&&(v=h/(c||1)%a,l.opposite&&(v=a-v-1),t+=v*(l.labelOffset/a)),y.x=n,y.y=Math.round(t),u(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:s,index:h}),y},getMarkPath:function(n,t,i,r,u,f){return f.crispLine(["M",n,t,"L",n+(u?0:-i),t+(u?i:0)],r)},renderGridLine:function(n,i,r){var u=this,f=u.axis,h=f.options,e=u.gridLine,c,o={},v=u.pos,s=u.type,y=t(u.tickmarkOffset,f.tickmarkOffset),p=f.chart.renderer,l=s?s+"Grid":"grid",w=h[l+"LineWidth"],b=h[l+"LineColor"],a=h[l+"LineDashStyle"];e||(f.chart.styledMode||(o.stroke=b,o["stroke-width"]=w,a&&(o.dashstyle=a)),s||(o.zIndex=1),n&&(i=0),u.gridLine=e=p.path().attr(o).addClass("highcharts-"+(s?s+"-":"")+"grid-line").add(f.gridGroup));e&&(c=f.getPlotLinePath(v+y,e.strokeWidth()*r,n,"pass"),c&&e[n||u.isNew?"attr":"animate"]({d:c,opacity:i}))},renderMark:function(n,i,r){var f=this,u=f.axis,c=u.options,l=u.chart.renderer,e=f.type,h=e?e+"Tick":"tick",s=u.tickSize(h),o=f.mark,a=!o,v=n.x,y=n.y,p=t(c[h+"Width"],!e&&u.isXAxis?1:0),w=c[h+"Color"];s&&(u.opposite&&(s[0]=-s[0]),a&&(f.mark=o=l.path().addClass("highcharts-"+(e?e+"-":"")+"tick").add(u.axisGroup),u.chart.styledMode||o.attr({stroke:w,"stroke-width":p})),o[a?"attr":"animate"]({d:f.getMarkPath(v,y,s[0],o.strokeWidth()*r,u.horiz,l),opacity:i}))},renderLabel:function(n,i,r,u){var e=this,h=e.axis,v=h.horiz,c=h.options,o=e.label,s=c.labels,l=s.step,p=t(e.tickmarkOffset,h.tickmarkOffset),a=!0,y=n.x,w=n.y;o&&f(y)&&(o.xy=n=e.getLabelPosition(y,w,o,v,s,p,u,l),(!e.isFirst||e.isLast||t(c.showFirstLabel,1))&&(!e.isLast||e.isFirst||t(c.showLastLabel,1))?!v||s.step||s.rotation||i||r===0||e.handleOverflow(n):a=!1,l&&u%l&&(a=!1),a&&f(n.y)?(n.opacity=r,o[e.isNewLabel?"attr":"animate"](n),e.isNewLabel=!1):(o.attr("y",-9999),e.isNewLabel=!0))},render:function(i,r,u){var f=this,e=f.axis,s=e.horiz,c=f.pos,l=t(f.tickmarkOffset,e.tickmarkOffset),o=f.getPosition(s,c,l,r),a=o.x,v=o.y,h=s&&a===e.pos+e.len||!s&&v===e.pos?-1:1;u=t(u,1);this.isActive=!0;this.renderGridLine(r,u,h);this.renderMark(o,u,h);this.renderLabel(o,r,u,i);f.isNew=!1;n.fireEvent(this,"afterRender")},destroy:function(){o(this,this.axis)}}}(t),i=function(n){var p=n.addEvent,w=n.animObject,o=n.arrayMax,h=n.arrayMin,b=n.color,f=n.correctFloat,a=n.defaultOptions,i=n.defined,k=n.deg2rad,v=n.destroyObjectProperties,d=n.extend,r=n.fireEvent,g=n.format,nt=n.getMagnitude,tt=n.isArray,u=n.isNumber,y=n.isString,c=n.merge,it=n.normalizeTickInterval,e=n.objectEach,t=n.pick,rt=n.removeEvent,ut=n.splat,ft=n.syncTimeout,s=n.Tick,l=function(){this.init.apply(this,arguments)};return n.extend(l.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return n.numberFormat(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(n,u){var s=u.isX,f=this,c;f.chart=n;f.horiz=n.inverted&&!f.isZAxis?!s:s;f.isXAxis=s;f.coll=f.coll||(s?"xAxis":"yAxis");r(this,"init",{userOptions:u});f.opposite=u.opposite;f.side=u.side||(f.horiz?f.opposite?0:2:f.opposite?1:3);f.setOptions(u);var o=this.options,h=o.type,l=h==="datetime";f.labelFormatter=o.labels.formatter||f.defaultLabelFormatter;f.userOptions=u;f.minPixelPadding=0;f.reversed=o.reversed;f.visible=o.visible!==!1;f.zoomEnabled=o.zoomEnabled!==!1;f.hasNames=h==="category"||o.categories===!0;f.categories=o.categories||f.hasNames;f.names||(f.names=[],f.names.keys={});f.plotLinesAndBandsGroups={};f.isLog=h==="logarithmic";f.isDatetimeAxis=l;f.positiveValuesOnly=f.isLog&&!f.allowNegativeLog;f.isLinked=i(o.linkedTo);f.ticks={};f.labelEdge=[];f.minorTicks={};f.plotLinesAndBands=[];f.alternateBands={};f.len=0;f.minRange=f.userMinRange=o.minRange||o.maxZoom;f.range=o.range;f.offset=o.offset||0;f.stacks={};f.oldStacks={};f.stacksTouched=0;f.max=null;f.min=null;f.crosshair=t(o.crosshair,ut(n.options.tooltip.crosshairs)[s?0:1],!1);c=f.options.events;n.axes.indexOf(f)===-1&&(s?n.axes.splice(n.xAxis.length,0,f):n.axes.push(f),n[f.coll].push(f));f.series=f.series||[];n.inverted&&!f.isZAxis&&s&&f.reversed===undefined&&(f.reversed=!0);e(c,function(n,t){p(f,t,n)});f.lin2log=o.linearToLogConverter||f.lin2log;f.isLog&&(f.val2lin=f.log2lin,f.lin2val=f.lin2log);r(this,"afterInit")},setOptions:function(n){this.options=c(this.defaultOptions,this.coll==="yAxis"&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],c(a[this.coll],n));r(this,"afterSetOptions",{userOptions:n})},defaultLabelFormatter:function(){var r=this.axis,t=this.value,o=r.chart.time,v=r.categories,s=this.dateTimeLabelFormat,h=a.lang,f=h.numericSymbols,y=h.numericSymbolMagnitude||1e3,u=f&&f.length,e,i,c=r.options.labels.format,l=r.isLog?Math.abs(t):r.tickInterval;if(c)i=g(c,this,o);else if(v)i=t;else if(s)i=o.dateFormat(s,t);else if(u&&l>=1e3)while(u--&&i===undefined)e=Math.pow(y,u+1),l>=e&&t*10%e==0&&f[u]!==null&&t!==0&&(i=n.numberFormat(t/e,-1)+f[u]);return i===undefined&&(i=Math.abs(t)>=1e4?n.numberFormat(t,-1):n.numberFormat(t,-1,undefined,"")),i},getSeriesExtremes:function(){var n=this,f=n.chart;r(this,"getSeriesExtremes",null,function(){n.hasVisibleSeries=!1;n.dataMin=n.dataMax=n.threshold=null;n.softThreshold=!n.isXAxis;n.buildStacks&&n.buildStacks();n.series.forEach(function(r){if(r.visible||!f.options.chart.ignoreHiddenSeries){var a=r.options,e,l=a.threshold,s,c;n.hasVisibleSeries=!0;n.positiveValuesOnly&&l<=0&&(l=null);n.isXAxis?(e=r.xData,e.length&&(s=h(e),c=o(e),u(s)||s instanceof Date||(e=e.filter(u),s=h(e),c=o(e)),e.length&&(n.dataMin=Math.min(t(n.dataMin,e[0],s),s),n.dataMax=Math.max(t(n.dataMax,e[0],c),c)))):(r.getExtremes(),c=r.dataMax,s=r.dataMin,i(s)&&i(c)&&(n.dataMin=Math.min(t(n.dataMin,s),s),n.dataMax=Math.max(t(n.dataMax,c),c)),i(l)&&(n.threshold=l),(!a.softThreshold||n.positiveValuesOnly)&&(n.softThreshold=!1))}})});r(this,"afterGetSeriesExtremes")},translate:function(n,t,i,r,f,e){var o=this.linkedParent||this,s=1,l=0,h=r?o.oldTransA:o.transA,a=r?o.oldMin:o.min,c,v=o.minPixelPadding,y=(o.isOrdinal||o.isBroken||o.isLog&&f)&&o.lin2val;return h||(h=o.transA),i&&(s*=-1,l=o.len),o.reversed&&(s*=-1,l-=s*(o.sector||o.len)),t?(n=n*s+l,n-=v,c=n/h+a,y&&(c=o.lin2val(c))):(y&&(n=o.val2lin(n)),c=u(a)?s*(n-a)*h+l+s*v+(u(e)?h*e:0):undefined),c},toPixels:function(n,t){return this.translate(n,!1,!this.horiz,null,!0)+(t?0:this.pos)},toValue:function(n,t){return this.translate(n-(t?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(n,i,f,e,o){var s=this,h=s.chart,y=s.left,p=s.top,c,l,a,v,k=f&&h.oldChartHeight||h.chartHeight,nt=f&&h.oldChartWidth||h.chartWidth,w,d=s.transB,b,g=function(n,t,i){return(e!=="pass"&&n<t||n>i)&&(e?n=Math.min(Math.max(t,n),i):w=!0),n};return b={value:n,lineWidth:i,old:f,force:e,translatedValue:o},r(this,"getPlotLinePath",b,function(r){o=t(o,s.translate(n,null,null,f));o=Math.min(Math.max(-1e5,o),1e5);c=a=Math.round(o+d);l=v=Math.round(k-o-d);u(o)?s.horiz?(l=p,v=k-s.bottom,c=a=g(c,y,y+s.width)):(c=y,a=nt-s.right,l=v=g(l,p,p+s.height)):(w=!0,e=!1);r.path=w&&!e?null:h.renderer.crispLine(["M",c,l,"L",a,v],i||1)}),b.path},getLinearTickPositions:function(n,t,i){var r,e,u=f(Math.floor(t/n)*n),h=f(Math.ceil(i/n)*n),o=[],s;if(f(u+n)===u&&(s=20),this.single)return[t];for(r=u;r<=h;){if(o.push(r),r=f(r+n,s),r===e)break;e=r}return o},getMinorTickInterval:function(){var n=this.options;return n.minorTicks===!0?t(n.minorTickInterval,"auto"):n.minorTicks===!1?null:n.minorTickInterval},getMinorTickPositions:function(){var n=this,s=n.options,h=n.tickPositions,i=n.minorTickInterval,t=[],r,e=n.pointRangePadding||0,u=n.min-e,f=n.max+e,o=f-u;if(o&&o/i<n.len/3)if(n.isLog)this.paddedTicks.forEach(function(r,u,f){u&&t.push.apply(t,n.getLogTickPositions(i,f[u-1],f[u],!0))});else if(n.isDatetimeAxis&&this.getMinorTickInterval()==="auto")t=t.concat(n.getTimeTicks(n.normalizeTimeTickInterval(i),u,f,s.startOfWeek));else for(r=u+(h[0]-u)%i;r<=f;r+=i){if(r===t[0])break;t.push(r)}return t.length!==0&&n.trimTicks(t),t},adjustForMinRange:function(){var n=this,s=n.options,r=n.min,u=n.max,v,y,l,c,p,a,b,e,w,f;n.isXAxis&&n.minRange===undefined&&!n.isLog&&(i(s.min)||i(s.max)?n.minRange=null:(n.series.forEach(function(n){for(a=n.xData,b=n.xIncrement?1:a.length-1,c=b;c>0;c--)p=a[c]-a[c-1],(l===undefined||p<l)&&(l=p)}),n.minRange=Math.min(l*5,n.dataMax-n.dataMin)));u-r<n.minRange&&(y=n.dataMax-n.dataMin>=n.minRange,f=n.minRange,v=(f-u+r)/2,e=[r-v,t(s.min,r-v)],y&&(e[2]=n.isLog?n.log2lin(n.dataMin):n.dataMin),r=o(e),w=[r+f,t(s.max,r+f)],y&&(w[2]=n.isLog?n.log2lin(n.dataMax):n.dataMax),u=h(w),u-r<f&&(e[0]=u-f,e[1]=t(s.min,u-f),r=o(e)));n.min=r;n.max=u},getClosest:function(){var n;return this.categories?n=1:this.series.forEach(function(t){var r=t.closestPointRange,u=t.visible||!t.chart.options.chart.ignoreHiddenSeries;!t.noSharedTooltip&&i(r)&&u&&(n=i(n)?Math.min(n,r):r)}),n},nameToX:function(n){var f=tt(this.categories),e=f?this.categories:this.names,u=n.options.x,r;return n.series.requireSorting=!1,i(u)||(u=this.options.uniqueNames===!1?n.series.autoIncrement():f?e.indexOf(n.name):t(e.keys[n.name],-1)),u===-1?f||(r=e.length):r=u,r!==undefined&&(this.names[r]=n.name,this.names.keys[n.name]=r),r},updateNames:function(){var t=this,n=this.names,i=n.length;i>0&&(Object.keys(n.keys).forEach(function(t){delete n.keys[t]}),n.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(n){n.xIncrement=null;(!n.points||n.isDirtyData)&&(t.max=Math.max(t.max,n.xData.length-1),n.processData(),n.generatePoints());n.data.forEach(function(i,r){var u;i&&i.options&&i.name!==undefined&&(u=t.nameToX(i),u!==undefined&&u!==i.x&&(i.x=u,n.xData[r]=u))})}))},setAxisTranslation:function(n){var i=this,a=i.max-i.min,s=i.axisPointRange||0,e,u=0,f=0,h=i.linkedParent,c,v=!!i.categories,l=i.transA,o=i.isXAxis;(o||v||s)&&(e=i.getClosest(),h?(u=h.minPointOffset,f=h.pointRangePadding):i.series.forEach(function(n){var r=v?1:o?t(n.options.pointRange,e,0):i.axisPointRange||0,h=n.options.pointPlacement;s=Math.max(s,r);i.single||(u=Math.max(u,o&&y(h)?0:r/2),f=Math.max(f,o&&h==="on"?0:r))}),c=i.ordinalSlope&&e?i.ordinalSlope/e:1,i.minPointOffset=u=u*c,i.pointRangePadding=f=f*c,i.pointRange=Math.min(s,a),o&&(i.closestPointRange=e));n&&(i.oldTransA=l);i.translationSlope=i.transA=l=i.staticScale||i.len/(a+f||1);i.transB=i.horiz?i.left:i.bottom;i.minPixelPadding=l*u;r(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(e){var o=this,w=o.chart,s=o.options,rt=o.isLog,ut=o.isDatetimeAxis,st=o.isXAxis,y=o.isLinked,b=s.maxPadding,k=s.minPadding,p,l,c=s.tickInterval,d,g=s.tickPixelInterval,tt=o.categories,h=u(o.threshold)?o.threshold:null,ft=o.softThreshold,et,ot,a,v;ut||tt||y||this.getTickAmount();a=t(o.userMin,s.min);v=t(o.userMax,s.max);y?(o.linkedParent=w[o.coll][s.linkedTo],l=o.linkedParent.getExtremes(),o.min=t(l.min,l.dataMin),o.max=t(l.max,l.dataMax),s.type!==o.linkedParent.options.type&&n.error(11,1,w)):(!ft&&i(h)&&(o.dataMin>=h?(et=h,k=0):o.dataMax<=h&&(ot=h,b=0)),o.min=t(a,et,o.dataMin),o.max=t(v,ot,o.dataMax));rt&&(o.positiveValuesOnly&&!e&&Math.min(o.min,t(o.dataMin,o.min))<=0&&n.error(10,1,w),o.min=f(o.log2lin(o.min),15),o.max=f(o.log2lin(o.max),15));o.range&&i(o.max)&&(o.userMin=o.min=a=Math.max(o.dataMin,o.minFromRange()),o.userMax=v=o.max,o.range=null);r(o,"foundExtremes");o.beforePadding&&o.beforePadding();o.adjustForMinRange();tt||o.axisPointRange||o.usePercentage||y||!i(o.min)||!i(o.max)||(p=o.max-o.min,p&&(!i(a)&&k&&(o.min-=p*k),!i(v)&&b&&(o.max+=p*b)));u(s.softMin)&&!u(o.userMin)&&(o.min=Math.min(o.min,s.softMin));u(s.softMax)&&!u(o.userMax)&&(o.max=Math.max(o.max,s.softMax));u(s.floor)&&(o.min=Math.min(Math.max(o.min,s.floor),Number.MAX_VALUE));u(s.ceiling)&&(o.max=Math.max(Math.min(o.max,s.ceiling),t(o.userMax,-Number.MAX_VALUE)));ft&&i(o.dataMin)&&(h=h||0,!i(a)&&o.min<h&&o.dataMin>=h?o.min=h:!i(v)&&o.max>h&&o.dataMax<=h&&(o.max=h));o.tickInterval=o.min===o.max||o.min===undefined||o.max===undefined?1:y&&!c&&g===o.linkedParent.options.tickPixelInterval?c=o.linkedParent.tickInterval:t(c,this.tickAmount?(o.max-o.min)/Math.max(this.tickAmount-1,1):undefined,tt?1:(o.max-o.min)*g/Math.max(o.len,g));st&&!e&&o.series.forEach(function(n){n.processData(o.min!==o.oldMin||o.max!==o.oldMax)});o.setAxisTranslation(!0);o.beforeSetTickPositions&&o.beforeSetTickPositions();o.postProcessTickInterval&&(o.tickInterval=o.postProcessTickInterval(o.tickInterval));o.pointRange&&!c&&(o.tickInterval=Math.max(o.pointRange,o.tickInterval));d=t(s.minTickInterval,o.isDatetimeAxis&&o.closestPointRange);!c&&o.tickInterval<d&&(o.tickInterval=d);ut||rt||c||(o.tickInterval=it(o.tickInterval,null,nt(o.tickInterval),t(s.allowDecimals,!(o.tickInterval>.5&&o.tickInterval<5&&o.max>1e3&&o.max<9999)),!!this.tickAmount));this.tickAmount||(o.tickInterval=o.unsquish());this.setTickPositions()},setTickPositions:function(){var u=this.options,t,e=u.tickPositions,o=this.getMinorTickInterval(),f=u.tickPositioner,s=u.startOnTick,h=u.endOnTick;this.tickmarkOffset=this.categories&&u.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0;this.minorTickInterval=o==="auto"&&this.tickInterval?this.tickInterval/5:o;this.single=this.min===this.max&&i(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||u.allowDecimals!==!1);this.tickPositions=t=e&&e.slice();t||(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(t=[this.min,this.max],n.error(19,!1,this.chart)):t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,u.units),this.min,this.max,u.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),t.length>this.len&&(t=[t[0],t.pop()],t[0]===t[1]&&(t.length=1)),this.tickPositions=t,f&&(f=f.apply(this,[this.min,this.max]),f&&(this.tickPositions=t=f)));this.paddedTicks=t.slice(0);this.trimTicks(t,s,h);this.isLinked||(this.single&&t.length<2&&(this.min-=.5,this.max+=.5),e||f||this.adjustTickAmount());r(this,"afterSetTickPositions")},trimTicks:function(n,t,u){var f=n[0],e=n[n.length-1],o=this.minPointOffset||0;if(r(this,"trimTicks"),!this.isLinked){if(t&&f!==-Infinity)this.min=f;else while(this.min-o>n[0])n.shift();if(u)this.max=e;else while(this.max+o<n[n.length-1])n.pop();n.length===0&&i(f)&&!this.options.tickPositions&&n.push((e+f)/2)}},alignToOthers:function(){var t={},i,n=this.options;return this.chart.options.chart.alignTicks===!1||n.alignTicks===!1||n.startOnTick===!1||n.endOnTick===!1||this.isLog||this.chart[this.coll].forEach(function(n){var r=n.options,f=n.horiz,u=[f?r.left:r.top,r.width,r.height,r.pane].join(",");n.series.length&&(t[u]?i=!0:t[u]=1)}),i},getTickAmount:function(){var t=this.options,n=t.tickAmount,r=t.tickPixelInterval;!i(t.tickInterval)&&this.len<r&&!this.isRadial&&!this.isLog&&t.startOnTick&&t.endOnTick&&(n=2);!n&&this.alignToOthers()&&(n=Math.ceil(this.len/r)+1);n<4&&(this.finalTickAmt=n,n=5);this.tickAmount=n},adjustTickAmount:function(){var n=this,h=n.options,c=n.tickInterval,r=n.tickPositions,e=n.tickAmount,o=n.finalTickAmt,s=r&&r.length,v=t(n.threshold,n.softThreshold?0:null),l,a,u;if(n.hasData()){if(s<e){for(l=n.min;r.length<e;)r.length%2||l===v?r.push(f(r[r.length-1]+c)):r.unshift(f(r[0]-c));n.transA*=(s-1)/(e-1);n.min=h.startOnTick?r[0]:Math.min(n.min,r[0]);n.max=h.endOnTick?r[r.length-1]:Math.max(n.max,r[r.length-1])}else s>e&&(n.tickInterval*=2,n.setTickPositions());if(i(o)){for(u=a=r.length;u--;)(o===3&&u%2==1||o<=2&&u>0&&u<a-1)&&r.splice(u,1);n.finalTickAmt=undefined}}},setScale:function(){var n=this,i,t;n.oldMin=n.min;n.oldMax=n.max;n.oldAxisLength=n.len;n.setAxisSize();t=n.len!==n.oldAxisLength;n.series.forEach(function(n){(n.isDirtyData||n.isDirty||n.xAxis.isDirty)&&(i=!0)});t||i||n.isLinked||n.forceRedraw||n.userMin!==n.oldUserMin||n.userMax!==n.oldUserMax||n.alignToOthers()?(n.resetStacks&&n.resetStacks(),n.forceRedraw=!1,n.getSeriesExtremes(),n.setTickInterval(),n.oldUserMin=n.userMin,n.oldUserMax=n.userMax,n.isDirty||(n.isDirty=t||n.min!==n.oldMin||n.max!==n.oldMax)):n.cleanStacks&&n.cleanStacks();r(this,"afterSetScale")},setExtremes:function(n,i,u,f,e){var o=this,s=o.chart;u=t(u,!0);o.series.forEach(function(n){delete n.kdTree});e=d(e,{min:n,max:i});r(o,"setExtremes",e,function(){o.userMin=n;o.userMax=i;o.eventArgs=e;u&&s.redraw(f)})},zoom:function(n,u){var o=this.dataMin,s=this.dataMax,h=this.options,f=Math.min(o,t(h.min,o)),e=Math.max(s,t(h.max,s)),c={newMin:n,newMax:u};return r(this,"zoom",c,function(n){var t=n.newMin,r=n.newMax;(t!==this.min||r!==this.max)&&(this.allowZoomOutside||(i(o)&&(t<f&&(t=f),t>e&&(t=e)),i(s)&&(r<f&&(r=f),r>e&&(r=e))),this.displayBtn=t!==undefined||r!==undefined,this.setExtremes(t,r,!1,undefined,{trigger:"zoom"}));n.zoomed=!0}),c.zoomed},setAxisSize:function(){var i=this.chart,u=this.options,r=u.offsets||[0,0,0,0],f=this.horiz,e=this.width=Math.round(n.relativeLength(t(u.width,i.plotWidth-r[3]+r[1]),i.plotWidth)),o=this.height=Math.round(n.relativeLength(t(u.height,i.plotHeight-r[0]+r[2]),i.plotHeight)),s=this.top=Math.round(n.relativeLength(t(u.top,i.plotTop+r[0]),i.plotHeight,i.plotTop)),h=this.left=Math.round(n.relativeLength(t(u.left,i.plotLeft+r[3]),i.plotWidth,i.plotLeft));this.bottom=i.chartHeight-o-s;this.right=i.chartWidth-e-h;this.len=Math.max(f?e:o,0);this.pos=f?h:s},getExtremes:function(){var n=this,t=n.isLog;return{min:t?f(n.lin2log(n.min)):n.min,max:t?f(n.lin2log(n.max)):n.max,dataMin:n.dataMin,dataMax:n.dataMax,userMin:n.userMin,userMax:n.userMax}},getThreshold:function(n){var t=this,u=t.isLog,i=u?t.lin2log(t.min):t.min,r=u?t.lin2log(t.max):t.max;return n===null||n===-Infinity?n=i:n===Infinity?n=r:i>n?n=i:r<n&&(n=r),t.translate(n,0,1,0,1)},autoLabelAlign:function(n){var i=(t(n,0)-this.side*90+720)%360,u={align:"center"};return r(this,"autoLabelAlign",u,function(n){i>15&&i<165?n.align="right":i>195&&i<345&&(n.align="left")}),u.align},tickSize:function(n){var u=this.options,i=u[n+"Length"],e=t(u[n+"Width"],n==="tick"&&this.isXAxis?1:0),f,o;return e&&i&&(u[n+"Position"]==="inside"&&(i=-i),o=[i,e]),f={tickSize:o},r(this,"afterTickSize",f),f.tickSize},labelMetrics:function(){var n=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[n]&&this.ticks[n].label)},unsquish:function(){var n=this.options.labels,p=this.horiz,r=this.tickInterval,o=r,s=this.len/(((this.categories?1:0)+this.max-this.min)/r),c,u=n.rotation,l=this.labelMetrics(),h,a=Number.MAX_VALUE,e,v=this.max-this.min,y=function(n){var t=n/(s||1);return t=t>1?Math.ceil(t):1,t*r>v&&n!==Infinity&&s!==Infinity&&(t=Math.ceil(v/r)),f(t*r)};return p?(e=!n.staggerLines&&!n.step&&(i(u)?[u]:s<t(n.autoRotationLimit,80)&&n.autoRotation),e&&e.forEach(function(n){var t;(n===u||n&&n>=-90&&n<=90)&&(h=y(Math.abs(l.h/Math.sin(k*n))),t=h+Math.abs(n/360),t<a&&(a=t,c=n,o=h))})):n.step||(o=y(l.h)),this.autoRotation=e,this.labelRotation=t(c,u),o},getSlotWidth:function(n){var i=this.chart,r=this.horiz,t=this.options.labels,f=Math.max(this.tickPositions.length-(this.categories?0:1),1),u=i.margin[3];return n&&n.slotWidth||r&&(t.step||0)<2&&!t.rotation&&(this.staggerLines||1)*this.len/f||!r&&(t.style&&parseInt(t.style.width,10)||u&&u-i.spacing[3]||i.chartWidth*.33)},renderUnsquish:function(){var s=this.chart,b=s.renderer,u=this.tickPositions,h=this.ticks,t=this.options.labels,v=t&&t.style||{},k=this.horiz,e=this.getSlotWidth(),p=Math.max(1,Math.round(e-2*(t.padding||5))),r={},o=this.labelMetrics(),c=t.style&&t.style.textOverflow,f,l,i=0,n,a,w;if(y(t.rotation)||(r.rotation=t.rotation||0),u.forEach(function(n){n=h[n];n&&n.label&&n.label.textPxLength>i&&(i=n.label.textPxLength)}),this.maxLabelLength=i,this.autoRotation)i>p&&i>o.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(e&&(f=p,!c))for(l="clip",a=u.length;!k&&a--;)w=u[a],n=h[w].label,n&&(n.styles&&n.styles.textOverflow==="ellipsis"?n.css({textOverflow:"clip"}):n.textPxLength>e&&n.css({width:e+"px"}),n.getBBox().height>this.len/u.length-(o.h-o.f)&&(n.specificTextOverflow="ellipsis"));r.rotation&&(f=i>s.chartHeight*.5?s.chartHeight*.33:i,c||(l="ellipsis"));this.labelAlign=t.align||this.autoLabelAlign(this.labelRotation);this.labelAlign&&(r.align=this.labelAlign);u.forEach(function(n){var i=h[n],t=i&&i.label,e=v.width,u={};t&&(t.attr(r),i.shortenLabel?i.shortenLabel():f&&!e&&v.whiteSpace!=="nowrap"&&(f<t.textPxLength||t.element.tagName==="SPAN")?(u.width=f,c||(u.textOverflow=t.specificTextOverflow||l),t.css(u)):t.styles&&t.styles.width&&!u.width&&!e&&t.css({width:null}),delete t.specificTextOverflow,i.rotation=r.rotation)},this);this.tickRotCorr=b.rotCorr(o.b,this.labelRotation||0,this.side!==0)},hasData:function(){return this.hasVisibleSeries||i(this.min)&&i(this.max)&&this.tickPositions&&this.tickPositions.length>0},addTitle:function(n){var t=this,e=t.chart.renderer,o=t.horiz,u=t.opposite,s=t.options,i=s.title,r,f=t.chart.styledMode;t.axisTitle||(r=i.textAlign,r||(r=(o?{low:"left",middle:"center",high:"right"}:{low:u?"right":"left",middle:"center",high:u?"left":"right"})[i.align]),t.axisTitle=e.text(i.text,0,0,i.useHTML).attr({zIndex:7,rotation:i.rotation||0,align:r}).addClass("highcharts-axis-title"),f||t.axisTitle.css(c(i.style)),t.axisTitle.add(t.axisGroup),t.axisTitle.isNew=!0);f||i.style.width||t.isRadial||t.axisTitle.css({width:t.len});t.axisTitle[n?"show":"hide"](!0)},generateTick:function(n){var t=this.ticks;t[n]?t[n].addLabel():t[n]=new s(this,n)},getOffset:function(){var n=this,a=n.chart,w=a.renderer,f=n.options,v=n.tickPositions,y=n.ticks,b=n.horiz,u=n.side,rt=a.inverted&&!n.isZAxis?[1,0,3,2][u]:u,p,k,ut=0,d,ft=0,o=f.title,h=f.labels,s=0,c,g=a.axisOffset,et=a.clipOffset,ot,l=[-1,1,1,-1][u],nt=f.className,tt=n.axisParent,st,it;p=n.hasData();n.showAxis=k=p||t(f.showEmpty,!0);n.staggerLines=n.horiz&&h.staggerLines;n.axisGroup||(n.gridGroup=w.g("grid").attr({zIndex:f.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(nt||"")).add(tt),n.axisGroup=w.g("axis").attr({zIndex:f.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(nt||"")).add(tt),n.labelGroup=w.g("axis-labels").attr({zIndex:h.zIndex||7}).addClass("highcharts-"+n.coll.toLowerCase()+"-labels "+(nt||"")).add(tt));p||n.isLinked?(v.forEach(function(t,i){n.generateTick(t,i)}),n.renderUnsquish(),n.reserveSpaceDefault=u===0||u===2||{1:"left",3:"right"}[u]===n.labelAlign,t(h.reserveSpace,n.labelAlign==="center"?!0:null,n.reserveSpaceDefault)&&v.forEach(function(n){s=Math.max(y[n].getLabelSize(),s)}),n.staggerLines&&(s*=n.staggerLines),n.labelOffset=s*(n.opposite?-1:1)):e(y,function(n,t){n.destroy();delete y[t]});o&&o.text&&o.enabled!==!1&&(n.addTitle(k),k&&o.reserveSpace!==!1&&(n.titleOffset=ut=n.axisTitle.getBBox()[b?"height":"width"],d=o.offset,ft=i(d)?0:t(o.margin,b?5:10)));n.renderLine();n.offset=l*t(f.offset,g[u]);n.tickRotCorr=n.tickRotCorr||{x:0,y:0};st=u===0?-n.labelMetrics().h:u===2?n.tickRotCorr.y:0;c=Math.abs(s)+ft;s&&(c-=st,c+=l*(b?t(h.y,n.tickRotCorr.y+l*8):h.x));n.axisTitleMargin=t(d,c);n.getMaxLabelDimensions&&(n.maxLabelDimensions=n.getMaxLabelDimensions(y,v));it=this.tickSize("tick");g[u]=Math.max(g[u],n.axisTitleMargin+ut+l*n.offset,c,p&&v.length&&it?it[0]+l*n.offset:0);ot=f.offset?0:Math.floor(n.axisLine.strokeWidth()/2)*2;et[rt]=Math.max(et[rt],ot);r(this,"afterGetOffset")},getLinePath:function(n){var t=this.chart,r=this.opposite,u=this.offset,i=this.horiz,f=this.left+(r?this.width:0)+u,e=t.chartHeight-this.bottom-(r?this.height:0)+u;return r&&(n*=-1),t.renderer.crispLine(["M",i?this.left:f,i?e:this.top,"L",i?t.chartWidth-this.right:f,i?e:t.chartHeight-this.bottom],n)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var n=this.horiz,o=this.left,s=this.top,i=this.len,t=this.options.title,u=n?o:s,f=this.opposite,h=this.offset,c=t.x||0,l=t.y||0,a=this.axisTitle,v=this.chart.renderer.fontMetrics(t.style&&t.style.fontSize,a),e=Math.max(a.getBBox(null,0).height-v.h-1,0),y={low:u+(n?0:i),middle:u+i/2,high:u+(n?i:0)}[t.align],p=(n?s+this.height:o)+(n?1:-1)*(f?-1:1)*this.axisTitleMargin+[-e,e,v.f,-e][this.side],w={x:n?y+c:p+(f?this.width:0)+h+c,y:n?p+l-(f?this.height:0)+h:y+l};return r(this,"afterGetTitlePosition",{titlePosition:w}),w},renderMinorTick:function(n){var i=this.chart.hasRendered&&u(this.oldMin),t=this.minorTicks;t[n]||(t[n]=new s(this,n,"minor"));i&&t[n].isNew&&t[n].render(null,!0);t[n].render(null,!1,1)},renderTick:function(n,t){var r=this.isLinked,i=this.ticks,f=this.chart.hasRendered&&u(this.oldMin);(!r||n>=this.min&&n<=this.max)&&(i[n]||(i[n]=new s(this,n)),f&&i[n].isNew&&i[n].render(t,!0,-1),i[n].render(t))},render:function(){var t=this,y=t.chart,it=y.renderer,a=t.options,k=t.isLog,rt=t.isLinked,c=t.tickPositions,f=t.axisTitle,l=t.ticks,d=t.minorTicks,i=t.alternateBands,g=a.stackLabels,nt=a.alternateGridColor,o=t.tickmarkOffset,h=t.axisLine,tt=t.showAxis,ut=w(it.globalAnimation),p,v,b;t.labelEdge.length=0;t.overlap=!1;[l,d,i].forEach(function(n){e(n,function(n){n.isActive=!1})});(t.hasData()||rt)&&(t.minorTickInterval&&!t.categories&&t.getMinorTickPositions().forEach(function(n){t.renderMinorTick(n)}),c.length&&(c.forEach(function(n,i){t.renderTick(n,i)}),o&&(t.min===0||t.single)&&(l[-1]||(l[-1]=new s(t,-1,null,!0)),l[-1].render(-1))),nt&&c.forEach(function(r,u){v=c[u+1]!==undefined?c[u+1]+o:t.max-o;u%2==0&&r<t.max&&v<=t.max+(y.polar?-o:o)&&(i[r]||(i[r]=new n.PlotLineOrBand(t)),p=r+o,i[r].options={from:k?t.lin2log(p):p,to:k?t.lin2log(v):v,color:nt},i[r].render(),i[r].isActive=!0)}),t._addedPlotLB||((a.plotLines||[]).concat(a.plotBands||[]).forEach(function(n){t.addPlotBandOrLine(n)}),t._addedPlotLB=!0));[l,d,i].forEach(function(n){var t,r=[],u=ut.duration,f=function(){for(t=r.length;t--;)n[r[t]]&&!n[r[t]].isActive&&(n[r[t]].destroy(),delete n[r[t]])};e(n,function(n,t){n.isActive||(n.render(t,!1,0),n.isActive=!1,r.push(t))});ft(f,n===i||!y.hasRendered||!u?0:u)});h&&(h[h.isPlaced?"animate":"attr"]({d:this.getLinePath(h.strokeWidth())}),h.isPlaced=!0,h[tt?"show":"hide"](!0));f&&tt&&(b=t.getTitlePosition(),u(b.y)?(f[f.isNew?"attr":"animate"](b),f.isNew=!1):(f.attr("y",-9999),f.isNew=!0));g&&g.enabled&&t.renderStackTotals();t.isDirty=!1;r(this,"afterRender")},redraw:function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(n){n.render()}));this.series.forEach(function(n){n.isDirty=!0})},keepProps:["extKey","hcEvents","names","series","userMax","userMin"],destroy:function(n){var t=this,o=t.stacks,i=t.plotLinesAndBands,u,f;if(r(this,"destroy",{keepEvents:n}),n||rt(t),e(o,function(n,t){v(n);o[t]=null}),[t.ticks,t.minorTicks,t.alternateBands].forEach(function(n){v(n)}),i)for(f=i.length;f--;)i[f].destroy();["stackTotalGroup","axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(n){t[n]&&(t[n]=t[n].destroy())});for(u in t.plotLinesAndBandsGroups)t.plotLinesAndBandsGroups[u]=t.plotLinesAndBandsGroups[u].destroy();e(t,function(n,i){t.keepProps.indexOf(i)===-1&&delete t[i]})},drawCrosshair:function(n,u){var h,f=this.crosshair,c=t(f.snap,!0),o,s,e=this.cross;if(r(this,"drawCrosshair",{e:n,point:u}),n||(n=this.cross&&this.cross.e),this.crosshair&&(i(u)||!c)!==!1){if(c?i(u)&&(o=t(u.crosshairPos,this.isXAxis?u.plotX:this.len-u.plotY)):o=n&&(this.horiz?n.chartX-this.pos:this.len-n.chartY+this.pos),i(o)&&(h=this.getPlotLinePath(u&&(this.isXAxis?u.x:t(u.stackY,u.y)),null,null,null,o)||null),!i(h)){this.hideCrosshair();return}s=this.categories&&!this.isRadial;e||(this.cross=e=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(s?"category ":"thin ")+f.className).attr({zIndex:t(f.zIndex,2)}).add(),this.chart.styledMode||(e.attr({stroke:f.color||(s?b("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":t(f.width,1)}).css({"pointer-events":"none"}),f.dashStyle&&e.attr({dashstyle:f.dashStyle})));e.show().attr({d:h});s&&!f.width&&e.attr({"stroke-width":this.transA});this.cross.e=n}else this.hideCrosshair();r(this,"afterDrawCrosshair",{e:n,point:u})},hideCrosshair:function(){this.cross&&this.cross.hide();r(this,"afterHideCrosshair")}}),n.Axis=l,l}(t),function(n){var i=n.Axis,r=n.getMagnitude,u=n.normalizeTickInterval,t=n.timeUnits;i.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)};i.prototype.normalizeTimeTickInterval=function(n,i){for(var o=i||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],f=o[o.length-1],e=t[f[0]],h=f[1],c,l,s=0;s<o.length;s++)if(f=o[s],e=t[f[0]],h=f[1],o[s+1]&&(l=(e*h[h.length-1]+t[o[s+1][0]])/2,n<=l))break;return e===t.year&&n<5*e&&(h=[1,2,5]),c=u(n/e,h,f[0]==="year"?Math.max(r(n/e),1):1),{unitRange:e,count:c,unitName:f[0]}}}(t),function(n){var t=n.Axis,i=n.getMagnitude,r=n.normalizeTickInterval,u=n.pick;t.prototype.getLogTickPositions=function(n,t,f,e){var o=this,p=o.options,w=o.len,h=[],b,a,c,l,k,v,s,y;if(e||(o._minorAutoInterval=null),n>=.5)n=Math.round(n),h=o.getLinearTickPositions(n,t,f);else if(n>=.08)for(b=Math.floor(t),a=n>.3?[1,2,4]:n>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],c=b;c<f+1&&!y;c++)for(k=a.length,l=0;l<k&&!y;l++)v=o.log2lin(o.lin2log(c)*a[l]),v>t&&(!e||s<=f)&&s!==undefined&&h.push(s),s>f&&(y=!0),s=v;else{var d=o.lin2log(t),g=o.lin2log(f),nt=e?this.getMinorTickInterval():p.tickInterval,tt=nt==="auto"?null:nt,it=p.tickPixelInterval/(e?5:1),rt=e?w/o.tickPositions.length:w;n=u(tt,o._minorAutoInterval,(g-d)*it/(rt||1));n=r(n,null,i(n));h=o.getLinearTickPositions(n,d,g).map(o.log2lin);e||(o._minorAutoInterval=n/5)}return e||(o.tickInterval=n),h};t.prototype.log2lin=function(n){return Math.log(n)/Math.LN10};t.prototype.lin2log=function(n){return Math.pow(10,n)}}(t),function(n,t){var r=n.arrayMax,u=n.arrayMin,i=n.defined,e=n.destroyObjectProperties,f=n.erase,o=n.merge,s=n.pick;n.PlotLineOrBand=function(n,t){this.axis=n;t&&(this.options=t,this.id=t.id)};n.PlotLineOrBand.prototype={render:function(){n.fireEvent(this,"render");var h=this,r=h.axis,l=r.horiz,t=h.options,a=t.label,v=h.label,y=t.to,p=t.from,w=t.value,u=i(p)&&i(y),tt=i(w),e=h.svgElem,it=!e,f=[],d=t.color,g=s(t.zIndex,0),nt=t.events,c={"class":"highcharts-plot-"+(u?"band ":"line ")+(t.className||"")},rt={},ut=r.chart.renderer,b=u?"bands":"lines",k;if(r.isLog&&(p=r.log2lin(p),y=r.log2lin(y),w=r.log2lin(w)),r.chart.styledMode||(tt?(c.stroke=d,c["stroke-width"]=t.width,t.dashStyle&&(c.dashstyle=t.dashStyle)):u&&(d&&(c.fill=d),t.borderWidth&&(c.stroke=t.borderColor,c["stroke-width"]=t.borderWidth))),rt.zIndex=g,b+="-"+g,k=r.plotLinesAndBandsGroups[b],k||(r.plotLinesAndBandsGroups[b]=k=ut.g("plot-"+b).attr(rt).add()),it&&(h.svgElem=e=ut.path().attr(c).add(k)),tt)f=r.getPlotLinePath(w,e.strokeWidth());else if(u)f=r.getPlotBandPath(p,y,t);else return;return it&&f&&f.length?(e.attr({d:f}),nt&&n.objectEach(nt,function(n,t){e.on(t,function(n){nt[t].apply(h,[n])})})):e&&(f?(e.show(),e.animate({d:f})):(e.hide(),v&&(h.label=v=v.destroy()))),a&&i(a.text)&&f&&f.length&&r.width>0&&r.height>0&&!f.isFlat?(a=o({align:l&&u&&"center",x:l?!u&&4:10,verticalAlign:!l&&u&&"middle",y:l?u?16:10:u?6:-4,rotation:l&&!u&&90},a),this.renderLabel(a,f,u,g)):v&&v.hide(),h},renderLabel:function(n,t,i,f){var o=this,e=o.label,v=o.axis.chart.renderer,s,h,c,l,a;e||(s={align:n.textAlign||n.align,rotation:n.rotation,"class":"highcharts-plot-"+(i?"band":"line")+"-label "+(n.className||"")},s.zIndex=f,o.label=e=v.text(n.text,0,0,n.useHTML).attr(s).add(),this.axis.chart.styledMode||e.css(n.style));h=t.xBounds||[t[1],t[4],i?t[6]:t[1]];c=t.yBounds||[t[2],t[5],i?t[7]:t[2]];l=u(h);a=u(c);e.align(n,!1,{x:l,y:a,width:r(h)-l,height:r(c)-a});e.show()},destroy:function(){f(this.axis.plotLinesAndBands,this);delete this.axis;e(this)}};n.extend(t.prototype,{getPlotBandPath:function(n,t){var r=this.getPlotLinePath(t,null,null,!0),u=this.getPlotLinePath(n,null,null,!0),e=[],i,o=this.horiz,f=1,s,h=n<this.min&&t<this.min||n>this.max&&t>this.max;if(u&&r)for(h&&(s=u.toString()===r.toString(),f=0),i=0;i<u.length;i+=6)o&&r[i+1]===u[i+1]?(r[i+1]+=f,r[i+4]+=f):o||r[i+2]!==u[i+2]||(r[i+2]+=f,r[i+5]+=f),e.push("M",u[i+1],u[i+2],"L",u[i+4],u[i+5],r[i+4],r[i+5],r[i+1],r[i+2],"z"),e.isFlat=s;else u=null;return e},addPlotBand:function(n){return this.addPlotBandOrLine(n,"plotBands")},addPlotLine:function(n){return this.addPlotBandOrLine(n,"plotLines")},addPlotBandOrLine:function(t,i){var r=new n.PlotLineOrBand(this,t).render(),u=this.userOptions;return r&&(i&&(u[i]=u[i]||[],u[i].push(t)),this.plotLinesAndBands.push(r)),r},removePlotBandOrLine:function(n){for(var i=this.plotLinesAndBands,r=this.options,u=this.userOptions,t=i.length;t--;)i[t].id===n&&i[t].destroy();[r.plotLines||[],u.plotLines||[],r.plotBands||[],u.plotBands||[]].forEach(function(i){for(t=i.length;t--;)i[t].id===n&&f(i,i[t])})},removePlotBand:function(n){this.removePlotBandOrLine(n)},removePlotLine:function(n){this.removePlotBandOrLine(n)}})}(t,i),function(n){var i=n.doc,e=n.extend,o=n.format,s=n.isNumber,f=n.merge,t=n.pick,r=n.splat,h=n.syncTimeout,u=n.timeUnits;n.Tooltip=function(){this.init.apply(this,arguments)};n.Tooltip.prototype={init:function(n,t){this.chart=n;this.options=t;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=t.split&&!n.inverted;this.shared=t.shared||this.split;this.outside=t.outside&&!this.split},cleanSplit:function(n){this.chart.series.forEach(function(t){var i=t&&t.tt;i&&(!i.isActive||n?t.tt=i.destroy():i.isActive=!1)})},applyFilter:function(){var n=this.chart;n.renderer.definition({tagName:"filter",id:"drop-shadow-"+n.index,opacity:.5,children:[{tagName:"feGaussianBlur","in":"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode","in":"SourceGraphic"}]}]});n.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+n.index+"{filter:url(#drop-shadow-"+n.index+")}"})},getLabel:function(){var f=this,r=this.chart.renderer,e=this.chart.styledMode,t=this.options,i,u;return this.label||(this.outside&&(this.container=i=n.doc.createElement("div"),i.className="highcharts-tooltip-container",n.css(i,{position:"absolute",top:"1px",pointerEvents:t.style&&t.style.pointerEvents}),n.doc.body.appendChild(i),this.renderer=r=new n.Renderer(i,0,0)),this.split?this.label=r.g("tooltip"):(this.label=r.label("",0,0,t.shape||"callout",null,null,t.useHTML,null,"tooltip").attr({padding:t.padding,r:t.borderRadius}),e||this.label.attr({fill:t.backgroundColor,"stroke-width":t.borderWidth}).css(t.style).shadow(t.shadow)),e&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),this.outside&&(u={x:this.label.xSetter,y:this.label.ySetter},this.label.xSetter=function(n,t){u[t].call(this.label,f.distance);i.style.left=n+"px"},this.label.ySetter=function(n,t){u[t].call(this.label,f.distance);i.style.top=n+"px"}),this.label.attr({zIndex:8}).add()),this.label},update:function(n){this.destroy();f(!0,this.chart.options.tooltip.userOptions,n);this.init(this.chart,f(!0,this.options,n))},destroy:function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),n.discardElement(this.container));n.clearTimeout(this.hideTimer);n.clearTimeout(this.tooltipTimeout)},move:function(t,i,r,u){var f=this,o=f.now,s=f.options.animation!==!1&&!f.isHidden&&(Math.abs(t-o.x)>1||Math.abs(i-o.y)>1),h=f.followPointer||f.len>1;e(o,{x:s?(2*o.x+t)/3:t,y:s?(o.y+i)/2:i,anchorX:h?undefined:s?(2*o.anchorX+r)/3:r,anchorY:h?undefined:s?(o.anchorY+u)/2:u});f.getLabel().attr(o);s&&(n.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){f&&f.move(t,i,r,u)},32))},hide:function(i){var r=this;n.clearTimeout(this.hideTimer);i=t(i,this.options.hideDelay,500);this.isHidden||(this.hideTimer=h(function(){r.getLabel()[i?"fadeOut":"hide"]();r.isHidden=!0},i))},getAnchor:function(n,t){var f,i=this.chart,l=i.pointer,u=i.inverted,s=i.plotTop,a=i.plotLeft,e=0,o=0,h,c;return n=r(n),this.followPointer&&t?(t.chartX===undefined&&(t=l.normalize(t)),f=[t.chartX-i.plotLeft,t.chartY-s]):n[0].tooltipPos?f=n[0].tooltipPos:(n.forEach(function(n){h=n.series.yAxis;c=n.series.xAxis;e+=n.plotX+(!u&&c?c.left-a:0);o+=(n.plotLow?(n.plotLow+n.plotHigh)/2:n.plotY)+(!u&&h?h.top-s:0)}),e/=n.length,o/=n.length,f=[u?i.plotWidth-o:e,this.shared&&!u&&n.length>1&&t?t.chartY-s:u?i.plotHeight-e:o]),f.map(Math.round)},getPosition:function(n,r,u){var f=this.chart,o=this.distance,e={},h=f.inverted&&u.h||0,c,s=this.outside,p=s?i.documentElement.clientWidth-2*o:f.chartWidth,w=s?Math.max(i.body.scrollHeight,i.documentElement.scrollHeight,i.body.offsetHeight,i.documentElement.offsetHeight,i.documentElement.clientHeight):f.chartHeight,b=f.pointer.chartPosition,l=["y",w,r,(s?b.top-o:0)+u.plotY+f.plotTop,s?0:f.plotTop,s?w:f.plotTop+f.plotHeight],a=["x",p,n,(s?b.left-o:0)+u.plotX+f.plotLeft,s?0:f.plotLeft,s?p:f.plotLeft+f.plotWidth],k=!this.followPointer&&t(u.ttBelow,!f.inverted==!!u.negative),d=function(n,t,i,r,u,f){var l=i<r-o,a=r+o+i<t,s=r-o-i,c=r+o;if(k&&a)e[n]=c;else if(!k&&l)e[n]=s;else if(l)e[n]=Math.min(f-i,s-h<0?s:s-h);else if(a)e[n]=Math.max(u,c+h+i>t?c:c+h);else return!1},g=function(n,t,i,r){var u;return r<o||r>t-o?u=!1:e[n]=r<i/2?1:r>t-i/2?t-i-2:r-i/2,u},v=function(n){var t=l;l=a;a=t;c=n},y=function(){d.apply(0,l)!==!1?g.apply(0,a)!==!1||c||(v(!0),y()):c?e.x=e.y=0:(v(!0),y())};return(f.inverted||this.len>1)&&v(),y(),e},defaultFormatter:function(n){var i=this.points||r(this),t;return t=[n.tooltipFooterHeaderFormatter(i[0])],t=t.concat(n.bodyFormatter(i)),t.push(n.tooltipFooterHeaderFormatter(i[0],!0)),t},refresh:function(i,u){var e=this,s,h=e.options,y,p,f=i,c,l={},o,v=[],b=h.formatter||e.defaultFormatter,k=e.shared,a,w=this.chart.styledMode;h.enabled&&(n.clearTimeout(this.hideTimer),e.followPointer=r(f)[0].series.tooltipOptions.followPointer,c=e.getAnchor(f,u),y=c[0],p=c[1],!k||f.series&&f.series.noSharedTooltip?l=f.getLabelConfig():(f.forEach(function(n){n.setState("hover");v.push(n.getLabelConfig())}),l={x:f[0].category,y:f[0].y},l.points=v,f=f[0]),this.len=v.length,o=b.call(l,e),a=f.series,this.distance=t(a.tooltipOptions.distance,16),o===!1?this.hide():(s=e.getLabel(),e.isHidden&&s.attr({opacity:1}).show(),e.split?this.renderSplit(o,r(i)):((!h.style.width||w)&&s.css({width:this.chart.spacingBox.width}),s.attr({text:o&&o.join?o.join(""):o}),s.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+t(f.colorIndex,a.colorIndex)),w||s.attr({stroke:h.borderColor||f.color||a.color||"#666666"}),e.updatePosition({plotX:y,plotY:p,negative:f.negative,ttBelow:f.ttBelow,h:c[2]||0})),this.isHidden=!1))},renderSplit:function(i,r){var s=this,o=[],u=this.chart,a=u.renderer,c=!0,f=this.options,e=0,l,v=this.getLabel(),h=u.plotTop;n.isString(i)&&(i=[!1,i]);i.slice(0,r.length+1).forEach(function(n,i){if(n!==!1&&n!==""){var y=r[i-1]||{isHeader:!0,plotX:r[0].plotX,plotY:u.plotHeight},g=y.series||s,p=g.tt,tt=y.series||{},it="highcharts-color-"+t(y.colorIndex,tt.colorIndex,"none"),b,k,nt,d,w;p||(w={padding:f.padding,r:f.borderRadius},u.styledMode||(w.fill=f.backgroundColor,w.stroke=f.borderColor||y.color||tt.color||"#333333",w["stroke-width"]=f.borderWidth),g.tt=p=a.label(null,null,null,(y.isHeader?f.headerShape:f.shape)||"callout",null,null,f.useHTML).addClass("highcharts-tooltip-box "+it).attr(w).add(v));p.isActive=!0;p.attr({text:n});u.styledMode||p.css(f.style).shadow(f.shadow);nt=p.getBBox();d=nt.width+p.strokeWidth();y.isHeader?(e=nt.height,u.xAxis[0].opposite&&(l=!0,h-=e),k=Math.max(0,Math.min(y.plotX+u.plotLeft-d/2,u.chartWidth+(u.scrollablePixels?u.scrollablePixels-u.marginRight:0)-d))):k=y.plotX+u.plotLeft-t(f.distance,16)-d;k<0&&(c=!1);b=(y.series&&y.series.yAxis&&y.series.yAxis.pos)+(y.plotY||0);b-=h;y.isHeader&&(b=l?-e:u.plotHeight+e);o.push({target:b,rank:y.isHeader?1:0,size:g.tt.getBBox().height+1,point:y,x:k,tt:p})}});this.cleanSplit();f.positioner&&o.forEach(function(n){var i=f.positioner.call(s,n.tt.getBBox().width,n.size,n.point);n.x=i.x;n.align=0;n.target=i.y;n.rank=t(i.rank,n.rank)});n.distribute(o,u.plotHeight+e);o.forEach(function(n){var t=n.point,i=t.series;n.tt.attr({visibility:n.pos===undefined?"hidden":"inherit",x:c||t.isHeader||f.positioner?n.x:t.plotX+u.plotLeft+s.distance,y:n.pos+h,anchorX:t.isHeader?t.plotX+u.plotLeft:t.plotX+i.xAxis.pos,anchorY:t.isHeader?u.plotTop+u.plotHeight/2:t.plotY+i.yAxis.pos})})},updatePosition:function(n){var t=this.chart,i=this.getLabel(),r=(this.options.positioner||this.getPosition).call(this,i.width,i.height,n),f=n.plotX+t.plotLeft,e=n.plotY+t.plotTop,u;this.outside&&(u=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(i.width+u,i.height+u,!1),f+=t.pointer.chartPosition.left-r.x,e+=t.pointer.chartPosition.top-r.y);this.move(Math.round(r.x),Math.round(r.y||0),f,e)},getDateFormat:function(n,t,i,r){var e=this.chart.time,s=e.dateFormat("%m-%d %H:%M:%S.%L",t),h,f,c="01-01 00:00:00.000",o={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond";for(f in u){if(n===u.week&&+e.dateFormat("%w",t)===i&&s.substr(6)===c.substr(6)){f="week";break}if(u[f]>n){f=l;break}if(o[f]&&s.substr(o[f])!==c.substr(o[f]))break;f!=="week"&&(l=f)}return f&&(h=e.resolveDTLFormat(r[f]).main),h},getXDateFormat:function(n,t,i){var u,r=t.dateTimeLabelFormats,f=i&&i.closestPointRange;return u=f?this.getDateFormat(f,n.x,i.options.startOfWeek,r):r.day,u||r.year},tooltipFooterHeaderFormatter:function(t,i){var a=i?"footer":"header",u=t.series,e=u.tooltipOptions,f=e.xDateFormat,h=u.xAxis,c=h&&h.options.type==="datetime"&&s(t.key),r=e[a+"Format"],l={isFooter:i,labelConfig:t};return n.fireEvent(this,"headerFormatter",l,function(n){c&&!f&&(f=this.getXDateFormat(t,e,h));c&&f&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach(function(n){r=r.replace("{point."+n+"}","{point."+n+":"+f+"}")});u.chart.styledMode&&(r=this.styledModeFormat(r));n.text=o(r,{point:t,series:u},this.chart.time)}),l.text},bodyFormatter:function(n){return n.map(function(n){var t=n.series.tooltipOptions;return(t[(n.point.formatPrefix||"point")+"Formatter"]||n.point.tooltipFormatter).call(n.point,t[(n.point.formatPrefix||"point")+"Format"]||"")})},styledModeFormat:function(n){return n.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')}}}(t),function(n){var t=n,u=t.addEvent,l=t.attr,i=t.charts,a=t.color,v=t.css,s=t.defined,f=t.extend,y=t.find,e=t.fireEvent,h=t.isNumber,o=t.isObject,p=t.offset,r=t.pick,w=t.splat,c=t.Tooltip;n.Pointer=function(n,t){this.init(n,t)};n.Pointer.prototype={init:function(n,t){this.options=t;this.chart=n;this.runChartClick=t.chart.events&&!!t.chart.events.click;this.pinchDown=[];this.lastValidTouch={};c&&(n.tooltip=new c(n,t.tooltip),this.followTouchMove=r(t.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(n){var e=this.chart,o=e.options.chart,t=o.zoomType||"",i=e.inverted,u,f;/touch/.test(n.type)&&(t=r(o.pinchType,t));this.zoomX=u=/x/.test(t);this.zoomY=f=/y/.test(t);this.zoomHor=u&&!i||f&&i;this.zoomVert=f&&!i||u&&i;this.hasZoom=u||f},normalize:function(n,t){var i;return i=n.touches?n.touches.length?n.touches.item(0):n.changedTouches[0]:n,t||(this.chartPosition=t=p(this.chart.container)),f(n,{chartX:Math.round(i.pageX-t.left),chartY:Math.round(i.pageY-t.top)})},getCoordinates:function(n){var t={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(i){t[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(n[i.horiz?"chartX":"chartY"])})}),t},findNearestKDPoint:function(n,t,i){var r,u=function(n,i){var r=n.distX-i.distX,u=n.dist-i.dist,f=(i.series.group&&i.series.group.zIndex)-(n.series.group&&n.series.group.zIndex);return r!==0&&t?r:u!==0?u:f!==0?f:n.series.index>i.series.index?-1:1};return n.forEach(function(n){var e=n.noSharedTooltip&&t,s=!e&&n.options.findNearestPointBy.indexOf("y")<0,f=n.searchPoint(i,s);o(f,!0)&&(!o(r,!0)||u(r,f)>0)&&(r=f)}),r},getPointFromEvent:function(n){for(var t=n.target,i;t&&!i;)i=t.point,t=t.parentNode;return i},getChartCoordinatesFromPoint:function(n,t){var e=n.series,u=e.xAxis,f=e.yAxis,o=r(n.clientX,n.plotX),i=n.shapeArgs;return u&&f?t?{chartX:u.len+u.pos-o,chartY:f.len+f.pos-n.plotY}:{chartX:o+u.pos,chartY:n.plotY+f.pos}:i&&i.x&&i.y?{chartX:i.x,chartY:i.y}:void 0},getHoverData:function(n,t,i,u,f,e){var s,c=[],h=t,v=!!(u&&n),p=h&&!h.stickyTracking,a=function(n){return n.visible&&!(!f&&n.directTouch)&&r(n.options.enableMouseTracking,!0)},l=p?[h]:i.filter(function(n){return a(n)&&n.stickyTracking});return s=v?n:this.findNearestKDPoint(l,f,e),h=s&&s.series,s&&(f&&!h.noSharedTooltip?(l=i.filter(function(n){return a(n)&&!n.noSharedTooltip}),l.forEach(function(n){var t=y(n.points,function(n){return n.x===s.x&&!n.isNull});o(t)&&(n.chart.isBoosting&&(t=n.getPoint(t)),c.push(t))})):c.push(s)),{hoverPoint:s,hoverSeries:h,hoverPoints:c}},runPointActions:function(n,f){var l=this,e=l.chart,b=e.series,o=e.tooltip&&e.tooltip.options.enabled?e.tooltip:undefined,y=o?o.shared:!1,s=f||e.hoverPoint,h=s&&s.series||e.hoverSeries,k=n.type!=="touchmove"&&(!!f||h&&h.directTouch&&l.isDirectTouch),a=this.getHoverData(s,h,b,k,y,n),p,w,v,c;if(s=a.hoverPoint,c=a.hoverPoints,h=a.hoverSeries,w=h&&h.tooltipOptions.followPointer,p=y&&h&&!h.noSharedTooltip,s&&(s!==e.hoverPoint||o&&o.isHidden)){if((e.hoverPoints||[]).forEach(function(n){c.indexOf(n)===-1&&n.setState()}),(c||[]).forEach(function(n){n.setState("hover")}),e.hoverSeries!==h&&h.onMouseOver(),e.hoverPoint&&e.hoverPoint.firePointEvent("mouseOut"),!s.series)return;s.firePointEvent("mouseOver");e.hoverPoints=c;e.hoverPoint=s;o&&o.refresh(p?c:s,n)}else w&&o&&!o.isHidden&&(v=o.getAnchor([{}],n),o.updatePosition({plotX:v[0],plotY:v[1]}));l.unDocMouseMove||(l.unDocMouseMove=u(e.container.ownerDocument,"mousemove",function(n){var r=i[t.hoverChartIndex];if(r)r.pointer.onDocumentMouseMove(n)}));e.axes.forEach(function(i){var u=r(i.crosshair.snap,!0),f=u?t.find(c,function(n){return n.series[i.coll]===i}):undefined;f||!u?i.drawCrosshair(n,f):i.hideCrosshair()})},reset:function(n,t){var f=this,i=f.chart,s=i.hoverSeries,r=i.hoverPoint,e=i.hoverPoints,u=i.tooltip,o=u&&u.shared?e:r;n&&o&&w(o).forEach(function(t){t.series.isCartesian&&t.plotX===undefined&&(n=!1)});n?u&&o&&o.length&&(u.refresh(o),u.shared&&e?e.forEach(function(n){n.setState(n.state,!0);n.series.isCartesian&&(n.series.xAxis.crosshair&&n.series.xAxis.drawCrosshair(null,n),n.series.yAxis.crosshair&&n.series.yAxis.drawCrosshair(null,n))}):r&&(r.setState(r.state,!0),i.axes.forEach(function(n){n.crosshair&&n.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),e&&e.forEach(function(n){n.setState()}),s&&s.onMouseOut(),u&&u.hide(t),f.unDocMouseMove&&(f.unDocMouseMove=f.unDocMouseMove()),i.axes.forEach(function(n){n.hideCrosshair()}),f.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(n,t){var i=this.chart,r;i.series.forEach(function(u){r=n||u.getPlotBox();u.xAxis&&u.xAxis.zoomEnabled&&u.group&&(u.group.attr(r),u.markerGroup&&(u.markerGroup.attr(r),u.markerGroup.clip(t?i.clipRect:null)),u.dataLabelsGroup&&u.dataLabelsGroup.attr(r))});i.clipRect.attr(t||i.clipBox)},dragStart:function(n){var t=this.chart;t.mouseIsDown=n.type;t.cancelClick=!1;t.mouseDownX=this.mouseDownX=n.chartX;t.mouseDownY=this.mouseDownY=n.chartY},drag:function(n){var t=this.chart,s=t.options.chart,u=n.chartX,f=n.chartY,p=this.zoomHor,w=this.zoomVert,e=t.plotLeft,o=t.plotTop,l=t.plotWidth,v=t.plotHeight,y,r,i=this.selectionMarker,h=this.mouseDownX,c=this.mouseDownY,b=s.panKey&&n[s.panKey+"Key"];i&&i.touch||(u<e?u=e:u>e+l&&(u=e+l),f<o?f=o:f>o+v&&(f=o+v),this.hasDragged=Math.sqrt(Math.pow(h-u,2)+Math.pow(c-f,2)),this.hasDragged>10&&(y=t.isInsidePlot(h-e,c-o),t.hasCartesianSeries&&(this.zoomX||this.zoomY)&&y&&!b&&(i||(this.selectionMarker=i=t.renderer.rect(e,o,p?1:l,w?1:v,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),t.styledMode||i.attr({fill:s.selectionMarkerFill||a("#335cad").setOpacity(.25).get()}))),i&&p&&(r=u-h,i.attr({width:Math.abs(r),x:(r>0?0:r)+h})),i&&w&&(r=f-c,i.attr({height:Math.abs(r),y:(r>0?0:r)+c})),y&&!i&&s.panning&&t.pan(n,s.panning)))},drop:function(n){var a=this,i=this.chart,r=this.hasPinched;if(this.selectionMarker){var u={originalEvent:n,xAxis:[],yAxis:[]},t=this.selectionMarker,o=t.attr?t.attr("x"):t.x,c=t.attr?t.attr("y"):t.y,y=t.attr?t.attr("width"):t.width,p=t.attr?t.attr("height"):t.height,l;(this.hasDragged||r)&&(i.axes.forEach(function(t){if(t.zoomEnabled&&s(t.min)&&(r||a[{xAxis:"zoomX",yAxis:"zoomY"}[t.coll]])){var i=t.horiz,f=n.type==="touchend"?t.minPixelPadding:0,e=t.toValue((i?o:c)+f),h=t.toValue((i?o+y:c+p)-f);u[t.coll].push({axis:t,min:Math.min(e,h),max:Math.max(e,h)});l=!0}}),l&&e(i,"selection",u,function(n){i.zoom(f(n,r?{animation:!1}:null))}));h(i.index)&&(this.selectionMarker=this.selectionMarker.destroy());r&&this.scaleGroups()}i&&h(i.index)&&(v(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(n){n=this.normalize(n);n.button!==2&&(this.zoomOption(n),n.preventDefault&&n.preventDefault(),this.dragStart(n))},onDocumentMouseUp:function(n){i[t.hoverChartIndex]&&i[t.hoverChartIndex].pointer.drop(n)},onDocumentMouseMove:function(n){var t=this.chart,i=this.chartPosition;n=this.normalize(n,i);!i||this.inClass(n.target,"highcharts-tracker")||t.isInsidePlot(n.chartX-t.plotLeft,n.chartY-t.plotTop)||this.reset()},onContainerMouseLeave:function(n){var r=i[t.hoverChartIndex];r&&(n.relatedTarget||n.toElement)&&(r.pointer.reset(),r.pointer.chartPosition=null)},onContainerMouseMove:function(n){var r=this.chart;s(t.hoverChartIndex)&&i[t.hoverChartIndex]&&i[t.hoverChartIndex].mouseIsDown||(t.hoverChartIndex=r.index);n=this.normalize(n);n.returnValue=!1;r.mouseIsDown==="mousedown"&&this.drag(n);(this.inClass(n.target,"highcharts-tracker")||r.isInsidePlot(n.chartX-r.plotLeft,n.chartY-r.plotTop))&&!r.openMenu&&this.runPointActions(n)},inClass:function(n,t){for(var i;n;){if(i=l(n,"class"),i){if(i.indexOf(t)!==-1)return!0;if(i.indexOf("highcharts-container")!==-1)return!1}n=n.parentNode}},onTrackerMouseOut:function(n){var t=this.chart.hoverSeries,i=n.relatedTarget||n.toElement;this.isDirectTouch=!1;!t||!i||t.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+t.index)&&this.inClass(i,"highcharts-tracker")||t.onMouseOut()},onContainerClick:function(n){var t=this.chart,i=t.hoverPoint,r=t.plotLeft,u=t.plotTop;n=this.normalize(n);t.cancelClick||(i&&this.inClass(n.target,"highcharts-tracker")?(e(i.series,"click",f(n,{point:i})),t.hoverPoint&&i.firePointEvent("click",n)):(f(n,this.getCoordinates(n)),t.isInsidePlot(n.chartX-r,n.chartY-u)&&e(t,"click",n)))},setDOMEvents:function(){var n=this,i=n.chart.container,r=i.ownerDocument;i.onmousedown=function(t){n.onContainerMouseDown(t)};i.onmousemove=function(t){n.onContainerMouseMove(t)};i.onclick=function(t){n.onContainerClick(t)};this.unbindContainerMouseLeave=u(i,"mouseleave",n.onContainerMouseLeave);t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=u(r,"mouseup",n.onDocumentMouseUp));t.hasTouch&&(i.ontouchstart=function(t){n.onContainerTouchStart(t)},i.ontouchmove=function(t){n.onContainerTouchMove(t)},t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=u(r,"touchend",n.onDocumentTouchEnd)))},destroy:function(){var n=this;n.unDocMouseMove&&n.unDocMouseMove();this.unbindContainerMouseLeave();t.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd()));clearInterval(n.tooltipTimeout);t.objectEach(n,function(t,i){n[i]=null})}}}(t),function(n){var i=n.charts,r=n.extend,u=n.noop,t=n.pick,f=n.Pointer;r(f.prototype,{pinchTranslate:function(n,t,i,r,u,f){this.zoomHor&&this.pinchTranslateDirection(!0,n,t,i,r,u,f);this.zoomVert&&this.pinchTranslateDirection(!1,n,t,i,r,u,f)},pinchTranslateDirection:function(n,t,i,r,u,f,e,o){var v=this.chart,l=n?"x":"y",d=n?"X":"Y",y="chart"+d,ut=n?"width":"height",g=v["plot"+(n?"Left":"Top")],a,s,nt,h=o||1,tt=v.inverted,p=v.bounds[n?"h":"v"],w=t.length===1,b=t[0][y],c=i[0][y],ft=!w&&t[1][y],k=!w&&i[1][y],it,rt,et,ot=function(){!w&&Math.abs(b-ft)>20&&(h=o||Math.abs(c-k)/Math.abs(b-ft));nt=(g-c)/h+b;a=v["plot"+(n?"Width":"Height")]/h};ot();s=nt;s<p.min?(s=p.min,it=!0):s+a>p.max&&(s=p.max-a,it=!0);it?(c-=.8*(c-e[l][0]),w||(k-=.8*(k-e[l][1])),ot()):e[l]=[c,k];tt||(f[l]=nt-g,f[ut]=a);et=tt?n?"scaleY":"scaleX":"scale"+d;rt=tt?1/h:h;u[ut]=a;u[l]=s;r[et]=h;r["translate"+d]=rt*g+(c-rt*b)},pinch:function(n){var i=this,e=i.chart,f=i.pinchDown,o=n.touches,s=o.length,h=i.lastValidTouch,l=i.hasZoom,c=i.selectionMarker,a={},y=s===1&&(i.inClass(n.target,"highcharts-tracker")&&e.runTrackerClick||i.runChartClick),v={};s>1&&(i.initiated=!0);l&&i.initiated&&!y&&n.preventDefault();[].map.call(o,function(n){return i.normalize(n)});n.type==="touchstart"?([].forEach.call(o,function(n,t){f[t]={chartX:n.chartX,chartY:n.chartY}}),h.x=[f[0].chartX,f[1]&&f[1].chartX],h.y=[f[0].chartY,f[1]&&f[1].chartY],e.axes.forEach(function(n){if(n.zoomEnabled){var i=e.bounds[n.horiz?"h":"v"],r=n.minPixelPadding,u=n.toPixels(t(n.options.min,n.dataMin)),f=n.toPixels(t(n.options.max,n.dataMax)),o=Math.min(u,f),s=Math.max(u,f);i.min=Math.min(n.pos,o-r);i.max=Math.max(n.pos+n.len,s+r)}}),i.res=!0):i.followTouchMove&&s===1?this.runPointActions(i.normalize(n)):f.length&&(c||(i.selectionMarker=c=r({destroy:u,touch:!0},e.plotBox)),i.pinchTranslate(f,o,a,c,v,h),i.hasPinched=l,i.scaleGroups(a,v),i.res&&(i.res=!1,this.reset(!1,0)))},touch:function(i,r){var u=this.chart,e,f,o;if(u.index!==n.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0});n.hoverChartIndex=u.index;i.touches.length===1?(i=this.normalize(i),o=u.isInsidePlot(i.chartX-u.plotLeft,i.chartY-u.plotTop),o&&!u.openMenu?(r&&this.runPointActions(i),i.type==="touchmove"&&(f=this.pinchDown,e=f[0]?Math.sqrt(Math.pow(f[0].chartX-i.chartX,2)+Math.pow(f[0].chartY-i.chartY,2))>=4:!1),t(e,!0)&&this.pinch(i)):r&&this.reset()):i.touches.length===2&&this.pinch(i)},onContainerTouchStart:function(n){this.zoomOption(n);this.touch(n,!0)},onContainerTouchMove:function(n){this.touch(n)},onDocumentTouchEnd:function(t){i[n.hoverChartIndex]&&i[n.hoverChartIndex].pointer.drop(t)}})}(t),function(n){var s=n.addEvent,o=n.charts,h=n.css,c=n.doc,l=n.extend,a=n.hasTouch,v=n.noop,i=n.Pointer,y=n.removeEvent,r=n.win,u=n.wrap;if(!a&&(r.PointerEvent||r.MSPointerEvent)){var t={},f=!!r.PointerEvent,p=function(){var i=[];return i.item=function(n){return this[n]},n.objectEach(t,function(n){i.push({pageX:n.pageX,pageY:n.pageY,target:n.target})}),i},e=function(t,i,r,u){var f;(t.pointerType==="touch"||t.pointerType===t.MSPOINTER_TYPE_TOUCH)&&o[n.hoverChartIndex]&&(u(t),f=o[n.hoverChartIndex].pointer,f[i]({type:r,target:t.currentTarget,preventDefault:v,touches:p()}))};l(i.prototype,{onContainerPointerDown:function(n){e(n,"onContainerTouchStart","touchstart",function(n){t[n.pointerId]={pageX:n.pageX,pageY:n.pageY,target:n.currentTarget}})},onContainerPointerMove:function(n){e(n,"onContainerTouchMove","touchmove",function(n){t[n.pointerId]={pageX:n.pageX,pageY:n.pageY};t[n.pointerId].target||(t[n.pointerId].target=n.currentTarget)})},onDocumentPointerUp:function(n){e(n,"onDocumentTouchEnd","touchend",function(n){delete t[n.pointerId]})},batchMSEvents:function(n){n(this.chart.container,f?"pointerdown":"MSPointerDown",this.onContainerPointerDown);n(this.chart.container,f?"pointermove":"MSPointerMove",this.onContainerPointerMove);n(c,f?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});u(i.prototype,"init",function(n,t,i){n.call(this,t,i);this.hasZoom&&h(t.container,{"-ms-touch-action":"none","touch-action":"none"})});u(i.prototype,"setDOMEvents",function(n){n.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(s)});u(i.prototype,"destroy",function(n){this.batchMSEvents(y);n.call(this)})}}(t),function(n){var t=n,e=t.addEvent,s=t.css,h=t.discardElement,u=t.defined,f=t.fireEvent,c=t.isFirefox,o=t.marginNames,r=t.merge,i=t.pick,l=t.setAnimation,a=t.stableSort,v=t.win,y=t.wrap;n.Legend=function(n,t){this.init(n,t)};n.Legend.prototype={init:function(n,t){this.chart=n;this.setOptions(t);t.enabled&&(this.render(),e(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=e(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},setOptions:function(n){var t=i(n.padding,8);this.options=n;this.chart.styledMode||(this.itemStyle=n.itemStyle,this.itemHiddenStyle=r(this.itemStyle,n.itemHiddenStyle));this.itemMarginTop=n.itemMarginTop||0;this.padding=t;this.initialItemY=t-5;this.symbolWidth=i(n.symbolWidth,16);this.pages=[];this.proximate=n.layout==="proximate"&&!this.chart.inverted},update:function(n,t){var u=this.chart;this.setOptions(r(!0,this.options,n));this.destroy();u.isDirtyLegend=u.isDirtyBox=!0;i(t,!0)&&u.redraw();f(this,"afterUpdate")},colorizeItem:function(n,t){if(n.legendGroup[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var e=this,l=e.options,o=n.legendItem,s=n.legendLine,u=n.legendSymbol,i=e.itemHiddenStyle.color,h=t?l.itemStyle.color:i,c=t?n.color||i:i,a=n.options&&n.options.marker,r={fill:c};o&&o.css({fill:h,color:h});s&&s.attr({stroke:c});u&&(a&&u.isMarker&&(r=n.pointAttribs(),t||(r.stroke=r.fill=i)),u.attr(r))}f(this,"afterColorizeItem",{item:n,visible:t})},positionItems:function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()},positionItem:function(n){var f=this,e=f.options,h=e.symbolPadding,c=!e.rtl,o=n._legendItemPos,i=o[0],s=o[1],r=n.checkbox,t=n.legendGroup;t&&t.element&&t[u(t.translateY)?"animate":"attr"]({translateX:c?i:f.legendWidth-i-2*h-4,translateY:s});r&&(r.x=i,r.y=s)},destroyItem:function(n){var t=n.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(t){n[t]&&(n[t]=n[t].destroy())});t&&h(n.checkbox)},destroy:function(){function n(n){this[n]&&(this[n]=this[n].destroy())}this.getAllItems().forEach(function(t){["legendItem","legendGroup"].forEach(n,t)});["clipRect","up","down","pager","nav","box","title","group"].forEach(n,this);this.display=null},positionCheckboxes:function(){var t=this.group&&this.group.alignAttr,n,i=this.clipHeight||this.legendHeight,r=this.titleHeight;t&&(n=t.translateY,this.allItems.forEach(function(u){var f=u.checkbox,e;f&&(e=n+r+f.y+(this.scrollOffset||0)+3,s(f,{left:t.translateX+u.checkboxOffset+f.x-20+"px",top:e+"px",display:this.proximate||e>n-6&&e<n+i-6?"":"none"}))},this))},renderTitle:function(){var r=this.options,u=this.padding,n=r.title,t=0,i;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,u-3,u-4,null,null,null,r.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(n.style),this.title.add(this.group)),n.width||this.title.css({width:this.maxLegendWidth+"px"}),i=this.title.getBBox(),t=i.height,this.offsetWidth=i.width,this.contentGroup.attr({translateY:t}));this.titleHeight=t},setText:function(n){var i=this.options;n.legendItem.attr({text:i.labelFormat?t.format(i.labelFormat,n,this.chart.time):i.labelFormatter.call(n)})},renderItem:function(n){var t=this,e=t.chart,o=e.renderer,f=t.options,g=f.layout==="horizontal",a=t.symbolWidth,s=f.symbolPadding,h=t.itemStyle,nt=t.itemHiddenStyle,tt=g?i(f.itemDistance,20):0,v=!f.rtl,c,u=n.legendItem,y=!n.series,l=!y&&n.series.drawLegendSymbol?n.series:n,p=l.options,w=t.createCheckboxForItem&&p&&p.showCheckbox,b=a+s+tt+(w?20:0),k=f.useHTML,d=n.options.className;u||(n.legendGroup=o.g("legend-item").addClass("highcharts-"+l.type+"-series highcharts-color-"+n.colorIndex+(d?" "+d:"")+(y?" highcharts-series-"+n.index:"")).attr({zIndex:1}).add(t.scrollGroup),n.legendItem=u=o.text("",v?a+s:-s,t.baseline||0,k),e.styledMode||u.css(r(n.visible?h:nt)),u.attr({align:v?"left":"right",zIndex:2}).add(n.legendGroup),t.baseline||(t.fontMetrics=o.fontMetrics(e.styledMode?12:h.fontSize,u),t.baseline=t.fontMetrics.f+3+t.itemMarginTop,u.attr("y",t.baseline)),t.symbolHeight=f.symbolHeight||t.fontMetrics.f,l.drawLegendSymbol(t,n),t.setItemEvents&&t.setItemEvents(n,u,k),w&&t.createCheckboxForItem(n));t.colorizeItem(n,n.visible);(e.styledMode||!h.width)&&u.css({width:(f.itemWidth||t.widthOption||e.spacingBox.width)-b});t.setText(n);c=u.getBBox();n.itemWidth=n.checkboxOffset=f.itemWidth||n.legendItemWidth||c.width+b;t.maxItemWidth=Math.max(t.maxItemWidth,n.itemWidth);t.totalItemWidth+=n.itemWidth;t.itemHeight=n.itemHeight=Math.round(n.legendItemHeight||c.height||t.symbolHeight)},layoutItem:function(n){var t=this.options,r=this.padding,u=t.layout==="horizontal",f=n.itemHeight,e=t.itemMarginBottom||0,o=this.itemMarginTop,c=u?i(t.itemDistance,20):0,h=this.maxLegendWidth,s=t.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:n.itemWidth;u&&this.itemX-r+s>h&&(this.itemX=r,this.itemY+=o+this.lastLineHeight+e,this.lastLineHeight=0);this.lastItemY=o+this.itemY+e;this.lastLineHeight=Math.max(f,this.lastLineHeight);n._legendItemPos=[this.itemX,this.itemY];u?this.itemX+=s:(this.itemY+=o+f+e,this.lastLineHeight=f);this.offsetWidth=this.widthOption||Math.max((u?this.itemX-r-(n.checkbox?0:c):s)+r,this.offsetWidth)},getAllItems:function(){var n=[];return this.chart.series.forEach(function(t){var r=t&&t.options;t&&i(r.showInLegend,u(r.linkedTo)?!1:undefined,!0)&&(n=n.concat(t.legendItems||(r.legendType==="point"?t.data:t)))}),f(this,"afterGetAllItems",{allItems:n}),n},getAlignment:function(){var n=this.options;return this.proximate?n.align.charAt(0)+"tv":n.floating?"":n.align.charAt(0)+n.verticalAlign.charAt(0)+n.layout.charAt(0)},adjustMargins:function(n,t){var r=this.chart,f=this.options,e=this.getAlignment();e&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(s,h){s.test(e)&&!u(n[h])&&(r[o[h]]=Math.max(r[o[h]],r.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*f[h%2?"x":"y"]+i(f.margin,12)+t[h]+(h===0&&r.options.title.margin!==undefined?r.titleOffset+r.options.title.margin:0)))})},proximatePositions:function(){var n=this.chart,i=[],r=this.options.align==="left";this.allItems.forEach(function(u){var f,e,o=r;u.xAxis&&u.points&&(u.xAxis.options.reversed&&(o=!o),f=t.find(o?u.points:u.points.slice(0).reverse(),function(n){return t.isNumber(n.plotY)}),e=u.legendGroup.getBBox().height,i.push({target:u.visible?(f?f.plotY:u.xAxis.height)-.3*e:n.plotHeight,size:e,item:u}))},this);t.distribute(i,n.plotHeight);i.forEach(function(t){t.item._legendItemPos[1]=n.plotTop-n.spacing[0]+t.pos})},render:function(){var n=this,e=n.chart,v=e.renderer,s=n.group,o,y,h,f,i=n.box,u=n.options,c=n.padding,l,p;n.itemX=c;n.itemY=n.initialItemY;n.offsetWidth=0;n.lastItemY=0;n.widthOption=t.relativeLength(u.width,e.spacingBox.width-c);p=e.spacingBox.width-2*c-u.x;["rm","lm"].indexOf(n.getAlignment().substring(0,2))>-1&&(p/=2);n.maxLegendWidth=n.widthOption||p;s||(n.group=s=v.g("legend").attr({zIndex:7}).add(),n.contentGroup=v.g().attr({zIndex:1}).add(s),n.scrollGroup=v.g().add(n.contentGroup));n.renderTitle();o=n.getAllItems();a(o,function(n,t){return(n.options&&n.options.legendIndex||0)-(t.options&&t.options.legendIndex||0)});u.reversed&&o.reverse();n.allItems=o;n.display=y=!!o.length;n.lastLineHeight=0;n.maxItemWidth=0;n.totalItemWidth=0;n.itemHeight=0;o.forEach(n.renderItem,n);o.forEach(n.layoutItem,n);h=(n.widthOption||n.offsetWidth)+c;f=n.lastItemY+n.lastLineHeight+n.titleHeight;f=n.handleOverflow(f);f+=c;i||(n.box=i=v.rect().addClass("highcharts-legend-box").attr({r:u.borderRadius}).add(s),i.isNew=!0);e.styledMode||i.attr({stroke:u.borderColor,"stroke-width":u.borderWidth||0,fill:u.backgroundColor||"none"}).shadow(u.shadow);h>0&&f>0&&(i[i.isNew?"attr":"animate"](i.crisp.call({},{x:0,y:0,width:h,height:f},i.strokeWidth())),i.isNew=!1);i[y?"show":"hide"]();e.styledMode&&s.getStyle("display")==="none"&&(h=f=0);n.legendWidth=h;n.legendHeight=f;y&&(l=e.spacingBox,/(lth|ct|rth)/.test(n.getAlignment())&&(l=r(l,{y:l.y+e.titleOffset+e.options.title.margin})),s.align(r(u,{width:h,height:f,verticalAlign:this.proximate?"top":u.verticalAlign}),!0,l));this.proximate||this.positionItems()},handleOverflow:function(n){var t=this,y=this.chart,h=y.renderer,r=this.options,w=r.y,g=r.verticalAlign==="top",c=this.padding,e=y.spacingBox.height+(g?-w:w)-c,b=r.maxHeight,l,o=this.clipRect,a=r.navigation,k=i(a.animation,!0),v=a.arrowSize||12,u=this.nav,f=this.pages,s,p=this.allItems,d=function(n){typeof n=="number"?o.attr({height:n}):o&&(t.clipRect=o.destroy(),t.contentGroup.clip());t.contentGroup.div&&(t.contentGroup.div.style.clip=n?"rect("+c+"px,9999px,"+(c+n)+"px,0)":"auto")};return r.layout!=="horizontal"||r.verticalAlign==="middle"||r.floating||(e/=2),b&&(e=Math.min(e,b)),f.length=0,n>e&&a.enabled!==!1?(this.clipHeight=l=Math.max(e-20-this.titleHeight-c,0),this.currentPage=i(this.currentPage,1),this.fullHeight=n,p.forEach(function(n,t){var i=n._legendItemPos[1],u=Math.round(n.legendItem.getBBox().height),r=f.length;(!r||i-f[r-1]>l&&(s||i)!==f[r-1])&&(f.push(s||i),r++);n.pageIx=r-1;s&&(p[t-1].pageIx=r-1);t===p.length-1&&i+u-f[r-1]>l&&i!==s&&(f.push(i),n.pageIx=r);i!==s&&(s=i)}),o||(o=t.clipRect=h.clipRect(0,c,9999,0),t.contentGroup.clip(o)),d(l),u||(this.nav=u=h.g().attr({zIndex:1}).add(this.group),this.up=h.symbol("triangle",0,0,v,v).on("click",function(){t.scroll(-1,k)}).add(u),this.pager=h.text("",15,10).addClass("highcharts-legend-navigation"),y.styledMode||this.pager.css(a.style),this.pager.add(u),this.down=h.symbol("triangle-down",0,0,v,v).on("click",function(){t.scroll(1,k)}).add(u)),t.scroll(0),n=e):u&&(d(),this.nav=u.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),n},scroll:function(n,t){var f=this.pages,r=f.length,i=this.currentPage+n,e=this.clipHeight,u=this.options.navigation,o=this.pager,s=this.padding;i>r&&(i=r);i>0&&(t!==undefined&&l(t,this.chart),this.nav.attr({translateX:s,translateY:e+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({"class":i===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),o.attr({text:i+"/"+r}),this.down.attr({x:18+this.pager.getBBox().width,"class":i===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),this.chart.styledMode||(this.up.attr({fill:i===1?u.inactiveColor:u.activeColor}).css({cursor:i===1?"default":"pointer"}),this.down.attr({fill:i===r?u.inactiveColor:u.activeColor}).css({cursor:i===r?"default":"pointer"})),this.scrollOffset=-f[i-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=i,this.positionCheckboxes())}};t.LegendSymbolMixin={drawRectangle:function(n,t){var f=n.options,r=n.symbolHeight,u=f.squareSymbol,e=u?r:n.symbolWidth;t.legendSymbol=this.chart.renderer.rect(u?(n.symbolWidth-r)/2:0,n.baseline-r+1,e,r,i(n.options.symbolRadius,r/2)).addClass("highcharts-point").attr({zIndex:3}).add(t.legendGroup)},drawLineMarker:function(n){var f=this.options,t=f.marker,u,c,e=n.symbolWidth,o=n.symbolHeight,l=o/2,a=this.chart.renderer,v=this.legendGroup,s=n.baseline-Math.round(n.fontMetrics.b*.3),h={};this.chart.styledMode||(h={"stroke-width":f.lineWidth||0},f.dashStyle&&(h.dashstyle=f.dashStyle));this.legendLine=a.path(["M",0,s,"L",e,s]).addClass("highcharts-graph").attr(h).add(v);t&&t.enabled!==!1&&e&&(u=Math.min(i(t.radius,l),l),this.symbol.indexOf("url")===0&&(t=r(t,{width:o,height:o}),u=0),this.legendSymbol=c=a.symbol(this.symbol,e/2-u,s-u,2*u,2*u,t).addClass("highcharts-point").add(v),c.isMarker=!0)}};(/Trident\/7\.0/.test(v.navigator.userAgent)||c)&&y(n.Legend.prototype,"positionItem",function(n,t){var i=this,r=function(){t._legendItemPos&&n.call(i,t)};r();i.bubbleLegend||setTimeout(r)})}(t),function(n){var h=n.addEvent,it=n.animate,rt=n.animObject,y=n.attr,u=n.doc,ut=n.Axis,ft=n.createElement,et=n.defaultOptions,ot=n.discardElement,i=n.charts,p=n.css,r=n.defined,f=n.extend,c=n.find,t=n.fireEvent,st=n.isNumber,ht=n.isObject,l=n.isString,ct=n.Legend,w=n.marginNames,e=n.merge,b=n.objectEach,k=n.Pointer,o=n.pick,a=n.pInt,d=n.removeEvent,v=n.seriesTypes,g=n.splat,nt=n.syncTimeout,s=n.win,tt=n.Chart=function(){this.getArgs.apply(this,arguments)};n.chart=function(n,t,i){return new tt(n,t,i)};f(tt.prototype,{callbacks:[],getArgs:function(){var n=[].slice.call(arguments);(l(n[0])||n[0].nodeName)&&(this.renderTo=n.shift());this.init(n[0],n[1])},init:function(r,u){var f,o,c=r.series,s=r.plotOptions||{};t(this,"init",{args:arguments},function(){var a,v,l;r.series=null;f=e(et,r);for(o in f.plotOptions)f.plotOptions[o].tooltip=s[o]&&e(s[o].tooltip)||undefined;f.tooltip.userOptions=r.chart&&r.chart.forExport&&r.tooltip.userOptions||r.tooltip;f.series=r.series=c;this.userOptions=r;a=f.chart;v=a.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=u;this.isResizing=0;this.options=f;this.axes=[];this.series=[];this.time=r.time&&Object.keys(r.time).length?new n.Time(r.time):n.time;this.styledMode=a.styledMode;this.hasCartesianSeries=a.showAxes;l=this;l.index=i.length;i.push(l);n.chartCount++;v&&b(v,function(n,t){h(l,t,n)});l.xAxis=[];l.yAxis=[];l.pointCount=l.colorCounter=l.symbolCounter=0;t(l,"afterInit");l.firstRender()})},initSeries:function(t){var r=this,u=r.options.chart,e=t.type||u.type||u.defaultSeriesType,i,f=v[e];return f||n.error(17,!0,r),i=new f,i.init(this,t),i},orderSeries:function(n){for(var i=this.series,t=n||0;t<i.length;t++)i[t]&&(i[t].index=t,i[t].name=i[t].getName())},isInsidePlot:function(n,t,i){var r=i?t:n,u=i?n:t;return r>=0&&r<=this.plotWidth&&u>=0&&u<=this.plotHeight},redraw:function(i){t(this,"beforeRedraw");var r=this,h=r.axes,u=r.series,y=r.pointer,c=r.legend,l=r.userOptions.legend,a=r.isDirtyLegend,v,p,w=r.hasCartesianSeries,s=r.isDirtyBox,e,o,b=r.renderer,k=b.isHidden(),d=[];for(r.setResponsive&&r.setResponsive(!1),n.setAnimation(i,r),k&&r.temporaryDisplay(),r.layOutTitles(),e=u.length;e--;)if(o=u[e],o.options.stacking&&(v=!0,o.isDirty)){p=!0;break}if(p)for(e=u.length;e--;)o=u[e],o.options.stacking&&(o.isDirty=!0);u.forEach(function(n){n.isDirty&&(n.options.legendType==="point"?(n.updateTotals&&n.updateTotals(),a=!0):l&&(l.labelFormatter||l.labelFormat)&&(a=!0));n.isDirtyData&&t(n,"updatedData")});a&&c&&c.options.enabled&&(c.render(),r.isDirtyLegend=!1);v&&r.getStacks();w&&h.forEach(function(n){n.updateNames();n.updateYNames&&n.updateYNames();n.setScale()});r.getMargins();w&&(h.forEach(function(n){n.isDirty&&(s=!0)}),h.forEach(function(n){var i=n.min+","+n.max;n.extKey!==i&&(n.extKey=i,d.push(function(){t(n,"afterSetExtremes",f(n.eventArgs,n.getExtremes()));delete n.eventArgs}));(s||v)&&n.redraw()}));s&&r.drawChartBox();t(r,"predraw");u.forEach(function(n){(s||n.isDirty)&&n.visible&&n.redraw();n.isDirtyData=!1});y&&y.reset(!0);b.draw();t(r,"redraw");t(r,"render");k&&r.temporaryDisplay(!0);d.forEach(function(n){n.call()})},get:function(n){function r(t){return t.id===n||t.options&&t.options.id===n}for(var u=this.series,t=c(this.axes,r)||c(this.series,r),i=0;!t&&i<u.length;i++)t=c(u[i].points||[],r);return t},getAxes:function(){var f=this,n=this.options,i=n.xAxis=g(n.xAxis||{}),r=n.yAxis=g(n.yAxis||{}),u;t(this,"getAxes");i.forEach(function(n,t){n.index=t;n.isX=!0});r.forEach(function(n,t){n.index=t});u=i.concat(r);u.forEach(function(n){new ut(f,n)});t(this,"afterGetAxes")},getSelectedPoints:function(){var n=[];return this.series.forEach(function(t){n=n.concat((t[t.hasGroupedData?"points":"data"]||[]).filter(function(n){return n.selected}))}),n},getSelectedSeries:function(){return this.series.filter(function(n){return n.selected})},setTitle:function(n,t,i){var r=this,u=r.options,f=r.styledMode,o,s;o=u.title=e(!f&&{style:{color:"#333333",fontSize:u.isStock?"16px":"18px"}},u.title,n);s=u.subtitle=e(!f&&{style:{color:"#666666"}},u.subtitle,t);[["title",n,o],["subtitle",t,s]].forEach(function(n,t){var i=n[0],e=r[i],o=n[1],u=n[2];e&&o&&(r[i]=e=e.destroy());u&&!e&&(r[i]=r.renderer.text(u.text,0,0,u.useHTML).attr({align:u.align,"class":"highcharts-"+i,zIndex:u.zIndex||4}).add(),r[i].update=function(n){r.setTitle(!t&&n,t&&n)},f||r[i].css(u.style))});r.layOutTitles(i)},layOutTitles:function(n){var t=0,i,r=this.renderer,u=this.spacingBox;["title","subtitle"].forEach(function(n){var e=this[n],i=this.options[n],s=n==="title"?-3:i.verticalAlign?0:t+2,o;e&&(this.styledMode||(o=i.style.fontSize),o=r.fontMetrics(o,e).b,e.css({width:(i.width||u.width+i.widthAdjust)+"px"}).align(f({y:s+o},i),!1,"spacingBox"),i.floating||i.verticalAlign||(t=Math.ceil(t+e.getBBox(i.useHTML).height)))},this);i=this.titleOffset!==t;this.titleOffset=t;!this.isDirtyBox&&i&&(this.isDirtyBox=this.isDirtyLegend=i,this.hasRendered&&o(n,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var t=this,i=t.options.chart,u=i.width,f=i.height,e=t.renderTo;r(u)||(t.containerWidth=n.getStyle(e,"width"));r(f)||(t.containerHeight=n.getStyle(e,"height"));t.chartWidth=Math.max(0,u||t.containerWidth||600);t.chartHeight=Math.max(0,n.relativeLength(f,t.chartWidth)||(t.containerHeight>1?t.containerHeight:400))},temporaryDisplay:function(t){var i=this.renderTo,r;if(t)while(i&&i.style)i.hcOrigStyle&&(n.css(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(u.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else while(i&&i.style)if(u.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,u.body.appendChild(i)),(n.getStyle(i,"display",!1)==="none"||i.hcOricDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},r={display:"block",overflow:"hidden"},i!==this.renderTo&&(r.height=0),n.css(i,r),i.offsetWidth||i.style.setProperty("display","block","important")),i=i.parentNode,i===u.body)break},setClassName:function(n){this.container.className="highcharts-container "+(n||"")},getContainer:function(){var r=this,c,s=r.options,o=s.chart,v,w,e=r.renderTo,b="data-highcharts-chart",h,k,nt=n.uniqueKey(),d,g;if(e||(r.renderTo=e=o.renderTo),l(e)&&(r.renderTo=e=u.getElementById(e)),e||n.error(13,!0,r),h=a(y(e,b)),st(h)&&i[h]&&i[h].hasRendered&&i[h].destroy(),y(e,b,r.index),e.innerHTML="",o.skipClone||e.offsetWidth||r.temporaryDisplay(),r.getChartSize(),v=r.chartWidth,w=r.chartHeight,p(e,{overflow:"hidden"}),r.styledMode||(d=f({position:"relative",overflow:"hidden",width:v+"px",height:w+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},o.style)),c=ft("div",{id:nt},d,e),r.container=c,r._cursor=c.style.cursor,k=n[o.renderer]||n.Renderer,r.renderer=new k(c,v,w,null,o.forExport,s.exporting&&s.exporting.allowHTML,r.styledMode),r.setClassName(o.className),r.styledMode)for(g in s.defs)this.renderer.definition(s.defs[g]);else r.renderer.setStyle(o.style);r.renderer.chartIndex=r.index;t(this,"afterGetContainer")},getMargins:function(n){var i=this,u=i.spacing,f=i.margin,e=i.titleOffset;i.resetMargins();e&&!r(f[0])&&(i.plotTop=Math.max(i.plotTop,e+i.options.title.margin+u[0]));i.legend&&i.legend.display&&i.legend.adjustMargins(f,u);t(this,"getMargins");n||this.getAxisMargins()},getAxisMargins:function(){var n=this,t=n.axisOffset=[0,0,0,0],i=n.margin;n.hasCartesianSeries&&n.axes.forEach(function(n){n.visible&&n.getOffset()});w.forEach(function(u,f){r(i[f])||(n[u]+=t[f])});n.setChartSize()},reflow:function(t){var i=this,f=i.options.chart,h=i.renderTo,l=r(f.width)&&r(f.height),e=f.width||n.getStyle(h,"width"),o=f.height||n.getStyle(h,"height"),c=t?t.target:s;!l&&!i.isPrinting&&e&&o&&(c===s||c===u)&&((e!==i.containerWidth||o!==i.containerHeight)&&(n.clearTimeout(i.reflowTimeout),i.reflowTimeout=nt(function(){i.container&&i.setSize(undefined,undefined,!1)},t?100:0)),i.containerWidth=e,i.containerHeight=o)},setReflow:function(n){var t=this;n===!1||this.unbindReflow?n===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=h(s,"resize",function(n){t.reflow(n)}),h(this,"destroy",this.unbindReflow))},setSize:function(i,r,u){var f=this,o=f.renderer,e;f.isResizing+=1;n.setAnimation(u,f);f.oldChartHeight=f.chartHeight;f.oldChartWidth=f.chartWidth;i!==undefined&&(f.options.chart.width=i);r!==undefined&&(f.options.chart.height=r);f.getChartSize();f.styledMode||(e=o.globalAnimation,(e?it:p)(f.container,{width:f.chartWidth+"px",height:f.chartHeight+"px"},e));f.setChartSize(!0);o.setSize(f.chartWidth,f.chartHeight,u);f.axes.forEach(function(n){n.isDirty=!0;n.setScale()});f.isDirtyLegend=!0;f.isDirtyBox=!0;f.layOutTitles();f.getMargins();f.redraw(u);f.oldChartHeight=null;t(f,"resize");nt(function(){f&&t(f,"endResize",null,function(){f.isResizing-=1})},rt(e).duration)},setChartSize:function(n){var i=this,a=i.inverted,v=i.renderer,y=i.chartWidth,p=i.chartHeight,w=i.options.chart,r=i.spacing,f=i.clipOffset,s,h,c,l,e,o,u;i.plotLeft=c=Math.round(i.plotLeft);i.plotTop=l=Math.round(i.plotTop);i.plotWidth=e=Math.max(0,Math.round(y-c-i.marginRight));i.plotHeight=o=Math.max(0,Math.round(p-l-i.marginBottom));i.plotSizeX=a?o:e;i.plotSizeY=a?e:o;i.plotBorderWidth=w.plotBorderWidth||0;i.spacingBox=v.spacingBox={x:r[3],y:r[0],width:y-r[3]-r[1],height:p-r[0]-r[2]};i.plotBox=v.plotBox={x:c,y:l,width:e,height:o};u=2*Math.floor(i.plotBorderWidth/2);s=Math.ceil(Math.max(u,f[3])/2);h=Math.ceil(Math.max(u,f[0])/2);i.clipBox={x:s,y:h,width:Math.floor(i.plotSizeX-Math.max(u,f[1])/2-s),height:Math.max(0,Math.floor(i.plotSizeY-Math.max(u,f[2])/2-h))};n||i.axes.forEach(function(n){n.setAxisSize();n.setAxisTranslation()});t(i,"afterSetChartSize",{skipAxes:n})},resetMargins:function(){t(this,"resetMargins");var n=this,i=n.options.chart;["margin","spacing"].forEach(function(t){var r=i[t],u=ht(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach(function(r,f){n[t][f]=o(i[t+r],u[f])})});w.forEach(function(t,i){n[t]=o(n.margin[i],n.spacing[i])});n.axisOffset=[0,0,0,0];n.clipOffset=[0,0,0,0]},drawChartBox:function(){var n=this,i=n.options.chart,s=n.renderer,nt=n.chartWidth,tt=n.chartHeight,f=n.chartBackground,h=n.plotBackground,e=n.plotBorder,u,l=n.styledMode,v=n.plotBGImage,it=i.backgroundColor,rt=i.plotBackgroundColor,y=i.plotBackgroundImage,o,c,p=n.plotLeft,w=n.plotTop,b=n.plotWidth,k=n.plotHeight,d=n.plotBox,g=n.clipRect,a=n.clipBox,r="animate";f||(n.chartBackground=f=s.rect().addClass("highcharts-background").add(),r="attr");l?u=o=f.strokeWidth():(u=i.borderWidth||0,o=u+(i.shadow?8:0),c={fill:it||"none"},(u||f["stroke-width"])&&(c.stroke=i.borderColor,c["stroke-width"]=u),f.attr(c).shadow(i.shadow));f[r]({x:o/2,y:o/2,width:nt-o-u%2,height:tt-o-u%2,r:i.borderRadius});r="animate";h||(r="attr",n.plotBackground=h=s.rect().addClass("highcharts-plot-background").add());h[r](d);l||(h.attr({fill:rt||"none"}).shadow(i.plotShadow),y&&(v?v.animate(d):n.plotBGImage=s.image(y,p,w,b,k).add()));g?g.animate({width:a.width,height:a.height}):n.clipRect=s.clipRect(a);r="animate";e||(r="attr",n.plotBorder=e=s.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());l||e.attr({stroke:i.plotBorderColor,"stroke-width":i.plotBorderWidth||0,fill:"none"});e[r](e.crisp({x:p,y:w,width:b,height:k},-e.strokeWidth()));n.isDirtyBox=!1;t(this,"afterDrawChartBox")},propFromSeries:function(){var i=this,r=i.options.chart,n,u=i.options.series,f,t;["inverted","angular","polar"].forEach(function(e){for(n=v[r.type||r.defaultSeriesType],t=r[e]||n&&n.prototype[e],f=u&&u.length;!t&&f--;)n=v[u[f].type],n&&n.prototype[e]&&(t=!0);i[e]=t})},linkSeries:function(){var n=this,i=n.series;i.forEach(function(n){n.linkedSeries.length=0});i.forEach(function(t){var i=t.options.linkedTo;l(i)&&(i=i===":previous"?n.series[t.index-1]:n.get(i),i&&i.linkedParent!==t&&(i.linkedSeries.push(t),t.linkedParent=i,t.visible=o(t.options.visible,i.options.visible,t.visible)))});t(this,"afterLinkSeries")},renderSeries:function(){this.series.forEach(function(n){n.translate();n.render()})},renderLabels:function(){var n=this,t=n.options.labels;t.items&&t.items.forEach(function(i){var r=f(t.style,i.style),u=a(r.left)+n.plotLeft,e=a(r.top)+n.plotTop+12;delete r.left;delete r.top;n.renderer.text(i.html,u,e).attr({zIndex:2}).css(r).add()})},render:function(){var n=this,t=n.axes,o=n.renderer,s=n.options,u=0,f,e,i,r;n.setTitle();n.legend=new ct(n,s.legend);n.getStacks&&n.getStacks();n.getMargins(!0);n.setChartSize();f=n.plotWidth;t.some(function(n){if(n.horiz&&n.visible&&n.options.labels.enabled&&n.series.length)return u=21,!0});n.plotHeight=Math.max(n.plotHeight-u,0);e=n.plotHeight;t.forEach(function(n){n.setScale()});n.getAxisMargins();i=f/n.plotWidth>1.1;r=e/n.plotHeight>1.05;(i||r)&&(t.forEach(function(n){(n.horiz&&i||!n.horiz&&r)&&n.setTickInterval(!0)}),n.getMargins());n.drawChartBox();n.hasCartesianSeries&&t.forEach(function(n){n.visible&&n.render()});n.seriesGroup||(n.seriesGroup=o.g("series-group").attr({zIndex:3}).add());n.renderSeries();n.renderLabels();n.addCredits();n.setResponsive&&n.setResponsive();n.hasRendered=!0},addCredits:function(n){var t=this;n=e(!0,this.options.credits,n);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){n.href&&(s.location.href=n.href)}).attr({align:n.position.align,zIndex:8}),t.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(n){t.credits=t.credits.destroy();t.addCredits(n)})},destroy:function(){var r=this,e=r.axes,o=r.series,f=r.container,u,s=f&&f.parentNode;for(t(r,"destroy"),r.renderer.forExport?n.erase(i,r):i[r.index]=undefined,n.chartCount--,r.renderTo.removeAttribute("data-highcharts-chart"),d(r),u=e.length;u--;)e[u]=e[u].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),u=o.length;u--;)o[u]=o[u].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(n){var t=r[n];t&&t.destroy&&(r[n]=t.destroy())});f&&(f.innerHTML="",d(f),s&&ot(f));b(r,function(n,t){delete r[t]})},firstRender:function(){var i=this,r=i.options;(!i.isReadyToRender||i.isReadyToRender())&&(i.getContainer(),i.resetMargins(),i.setChartSize(),i.propFromSeries(),i.getAxes(),(n.isArray(r.series)?r.series:[]).forEach(function(n){i.initSeries(n)}),i.linkSeries(),t(i,"beforeRender"),k&&(i.pointer=new k(i,r)),i.render(),!i.renderer.imgCount&&i.onload&&i.onload(),i.temporaryDisplay(!0))},onload:function(){[this.callback].concat(this.callbacks).forEach(function(n){n&&this.index!==undefined&&n.apply(this,[this])},this);t(this,"load");t(this,"render");r(this.index)&&this.setReflow(this.options.chart.reflow);this.onload=null}})}(t),function(n){var i=n.addEvent,t=n.Chart;i(t,"afterSetChartSize",function(t){var r=this.options.chart.scrollablePlotArea,u=r&&r.minWidth,i;u&&!this.renderer.forExport&&(this.scrollablePixels=i=Math.max(0,u-this.chartWidth),i&&(this.plotWidth+=i,this.clipBox.width+=i,t.skipAxes||this.axes.forEach(function(t){t.side===1?t.getPlotLinePath=function(){var i=this.right,r;return this.right=i-t.chart.scrollablePixels,r=n.Axis.prototype.getPlotLinePath.apply(this,arguments),this.right=i,r}:(t.setAxisSize(),t.setAxisTranslation())})))});i(t,"render",function(){this.scrollablePixels?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});t.prototype.setUpScrolling=function(){this.scrollingContainer=n.createElement("div",{className:"highcharts-scrolling"},{overflowX:"auto",WebkitOverflowScrolling:"touch"},this.renderTo);this.innerContainer=n.createElement("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};t.prototype.applyFixed=function(){var h=this.container,t,i,e=!this.fixedDiv,f;e&&(this.fixedDiv=n.createElement("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.renderTo.style.overflow="visible",this.fixedRenderer=t=new n.Renderer(this.fixedDiv,0,0),this.scrollableMask=t.path().attr({fill:n.color(this.options.chart.backgroundColor||"#fff").setOpacity(.85).get(),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),[this.inverted?".highcharts-xaxis":".highcharts-yaxis",this.inverted?".highcharts-xaxis-labels":".highcharts-yaxis-labels",".highcharts-contextbutton",".highcharts-credits",".highcharts-legend",".highcharts-subtitle",".highcharts-title",".highcharts-legend-checkbox"].forEach(function(n){[].forEach.call(h.querySelectorAll(n),function(n){(n.namespaceURI===t.SVG_NS?t.box:t.box.parentNode).appendChild(n);n.style.pointerEvents="auto"})}));this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);i=this.chartWidth+this.scrollablePixels;n.stop(this.container);this.container.style.width=i+"px";this.renderer.boxWrapper.attr({width:i,height:this.chartHeight,viewBox:[0,0,i,this.chartHeight].join(" ")});this.chartBackground.attr({width:i});e&&(f=this.options.chart.scrollablePlotArea,f.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixels*f.scrollPositionX));var o=this.axisOffset,r=this.plotTop-o[0]-1,u=this.plotTop+this.plotHeight+o[2],s=this.plotLeft+this.plotWidth-this.scrollablePixels;this.scrollableMask.attr({d:this.scrollablePixels?["M",0,r,"L",this.plotLeft-1,r,"L",this.plotLeft-1,u,"L",0,u,"Z","M",s,r,"L",this.chartWidth,r,"L",this.chartWidth,u,"L",s,u,"Z"]:["M",0,0]})}}(t),function(n){var r,t=n,u=t.extend,o=t.erase,f=t.fireEvent,s=t.format,h=t.isArray,e=t.isNumber,i=t.pick,c=t.uniqueKey,l=t.defined,a=t.removeEvent;n.Point=r=function(){};n.Point.prototype={init:function(n,t,r){var u=this,e,a=n.chart.options.chart,s=a.colorCount,h=n.chart.styledMode,o;return u.series=n,h||(u.color=n.color),u.applyOptions(t,r),u.id=l(u.id)?u.id:c(),n.options.colorByPoint?(h||(e=n.options.colors||n.chart.options.colors,u.color=u.color||e[n.colorCounter],s=e.length),o=n.colorCounter,n.colorCounter++,n.colorCounter===s&&(n.colorCounter=0)):o=n.colorIndex,u.colorIndex=i(u.colorIndex,o),n.chart.pointCount++,f(u,"afterInit"),u},applyOptions:function(n,t){var f=this,o=f.series,s=o.options.pointValKey||o.pointValKey;return n=r.prototype.optionsToObject.call(this,n),u(f,n),f.options=f.options?u(f.options,n):n,n.group&&delete f.group,n.dataLabels&&delete f.dataLabels,s&&(f.y=f[s]),f.isNull=i(f.isValid&&!f.isValid(),f.x===null||!e(f.y,!0)),f.selected&&(f.state="select"),"name"in f&&t===undefined&&o.xAxis&&o.xAxis.hasNames&&(f.x=o.xAxis.nameToX(f)),f.x===undefined&&o&&(f.x=t===undefined?o.autoIncrement(f):t),f},setNestedProperty:function(n,i,r){var u=r.split(".");return u.reduce(function(n,r,u,f){var e=f.length-1===u;return n[r]=e?i:t.isObject(n[r],!0)?n[r]:{},n[r]},n),n},optionsToObject:function(n){var i={},o=this.series,s=o.options.keys,r=s||o.pointArrayMap||["y"],l=r.length,c,u=0,f=0;if(e(n)||n===null)i[r[0]]=n;else if(h(n))for(!s&&n.length>l&&(c=typeof n[0],c==="string"?i.name=n[0]:c==="number"&&(i.x=n[0]),u++);f<l;)s&&n[u]===undefined||(r[f].indexOf(".")>0?t.Point.prototype.setNestedProperty(i,n[u],r[f]):i[r[f]]=n[u]),u++,f++;else typeof n=="object"&&(i=n,n.dataLabels&&(o._hasPointLabels=!0),n.marker&&(o._hasPointMarkers=!0));return i},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==undefined?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){for(var t=this.series,i=t.zones,u=t.zoneAxis||"y",r=0,n=i[r];this[u]>=n.value;)n=i[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},destroy:function(){var n=this,u=n.series,t=u.chart,i=t.hoverPoints,r;t.pointCount--;i&&(n.setState(),o(i,n),i.length||(t.hoverPoints=null));n===t.hoverPoint&&n.onMouseOut();(n.graphic||n.dataLabel||n.dataLabels)&&(a(n),n.destroyElements());n.legendItem&&t.legend.destroyItem(n);for(r in n)n[r]=null},destroyElements:function(){for(var n=this,r=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],t,i=6;i--;)t=r[i],n[t]&&(n[t]=n[t].destroy());n.dataLabels&&(n.dataLabels.forEach(function(n){n.element&&n.destroy()}),delete n.dataLabels);n.connectors&&(n.connectors.forEach(function(n){n.element&&n.destroy()}),delete n.connectors)},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(n){var t=this.series,r=t.tooltipOptions,e=i(r.valueDecimals,""),u=r.valuePrefix||"",f=r.valueSuffix||"";return t.chart.styledMode&&(n=t.chart.tooltip.styledModeFormat(n)),(t.pointArrayMap||["y"]).forEach(function(t){t="{point."+t;(u||f)&&(n=n.replace(RegExp(t+"}","g"),u+t+"}"+f));n=n.replace(RegExp(t+"}","g"),t+":,."+e+"f}")}),s(n,{point:this,series:this.series},t.chart.time)},firePointEvent:function(n,t,i){var r=this,e=this.series,u=e.options;(u.point.events[n]||r.options&&r.options.events&&r.options.events[n])&&this.importEvents();n==="click"&&u.allowPointSelect&&(i=function(n){r.select&&r.select(null,n.ctrlKey||n.metaKey||n.shiftKey)});f(this,n,t,i)},visible:!0}}(t),function(n){var e=n.addEvent,h=n.animObject,p=n.arrayMax,w=n.arrayMin,c=n.correctFloat,f=n.defaultOptions,b=n.defaultPlotOptions,i=n.defined,l=n.erase,a=n.extend,r=n.fireEvent,v=n.isArray,u=n.isNumber,k=n.isString,d=n.LegendSymbolMixin,o=n.merge,s=n.objectEach,t=n.pick,g=n.Point,nt=n.removeEvent,tt=n.splat,it=n.SVGElement,y=n.syncTimeout,rt=n.win;n.Series=n.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return this.y===null?"":n.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:g,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(n,i){r(this,"init",{options:i});var u=this,f,o=n.series,h;u.chart=n;u.options=i=u.setOptions(i);u.linkedSeries=[];u.bindAxes();a(u,{name:i.name,state:"",visible:i.visible!==!1,selected:i.selected===!0});f=i.events;s(f,function(n,t){e(u,t,n)});(f&&f.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(n.runTrackerClick=!0);u.getColor();u.getSymbol();u.parallelArrays.forEach(function(n){u[n+"Data"]=[]});u.setData(i.data,!1);u.isCartesian&&(n.hasCartesianSeries=!0);o.length&&(h=o[o.length-1]);u._i=t(h&&h._i,-1)+1;n.orderSeries(this.insert(o));r(this,"afterInit")},insert:function(n){var r=this.options.index,i;if(u(r)){for(i=n.length;i--;)if(r>=t(n[i].options.index,n[i]._i)){n.splice(i+1,0,this);break}i===-1&&n.unshift(this);i=i+1}else n.push(this);return t(i,n.length-1)},bindAxes:function(){var t=this,i=t.options,f=t.chart,u;r(this,"bindAxes",null,function(){(t.axisTypes||[]).forEach(function(r){f[r].forEach(function(n){u=n.options;(i[r]===u.index||i[r]!==undefined&&i[r]===u.id||i[r]===undefined&&u.index===0)&&(t.insert(n.series),t[r]=n,n.isDirty=!0)});t[r]||t.optionalAxis===r||n.error(18,!0,f)})})},updateParallelArrays:function(n,t){var i=n.series,r=arguments,f=u(t)?function(r){var u=r==="y"&&i.toYData?i.toYData(n):n[r];i[r+"Data"][t]=u}:function(n){Array.prototype[t].apply(i[n+"Data"],Array.prototype.slice.call(r,2))};i.parallelArrays.forEach(f)},autoIncrement:function(){var e=this.options,r=this.xIncrement,n,u,f=e.pointIntervalUnit,i=this.chart.time;return r=t(r,e.pointStart,0),this.pointInterval=u=t(this.pointInterval,e.pointInterval,1),f&&(n=new i.Date(r),f==="day"?i.set("Date",n,i.get("Date",n)+u):f==="month"?i.set("Month",n,i.get("Month",n)+u):f==="year"&&i.set("FullYear",n,i.get("FullYear",n)+u),u=n.getTime()-r),this.xIncrement=r+u,r},setOptions:function(n){var l=this.chart,a=l.options,s=a.plotOptions,p=l.userOptions||{},h=p.plotOptions||{},v=s[this.type],u,e,c,y=l.styledMode;return this.userOptions=o(n),u=o(v,s.series,n),this.tooltipOptions=o(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,a.tooltip.userOptions,s.series&&s.series.tooltip,s[this.type].tooltip,n.tooltip),this.stickyTracking=t(n.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:u.stickyTracking),v.marker===null&&delete u.marker,this.zoneAxis=u.zoneAxis,e=this.zones=(u.zones||[]).slice(),(u.negativeColor||u.negativeFillColor)&&!u.zones&&(c={value:u[this.zoneAxis+"Threshold"]||u.threshold||0,className:"highcharts-negative"},y||(c.color=u.negativeColor,c.fillColor=u.negativeFillColor),e.push(c)),e.length&&i(e[e.length-1].value)&&e.push(y?{}:{color:this.color,fillColor:this.fillColor}),r(this,"afterSetOptions",{options:u}),u},getName:function(){return t(this.options.name,"Series "+(this.index+1))},getCyclic:function(n,r,u){var e,f=this.chart,s=this.userOptions,o=n+"Index",h=n+"Counter",l=u?u.length:t(f.options.chart[n+"Count"],f[n+"Count"]),c;r||(c=t(s[o],s["_"+o]),i(c)?e=c:(f.series.length||(f[h]=0),s["_"+o]=e=f[h]%l,f[h]+=1),u&&(r=u[e]));e!==undefined&&(this[o]=e);this[n]=r},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||b[this.type].color,this.chart.options.colors)},getSymbol:function(){var n=this.options.marker;this.getCyclic("symbol",n.symbol,this.chart.options.symbols)},drawLegendSymbol:d.drawLineMarker,updateData:function(t){var e=this.options,i=this.points,o=[],s,f,r,h,c=this.requireSorting;if(this.xIncrement=null,t.forEach(function(t){var f,a,l,r,v=n.defined(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{};l=v.x;f=v.id;(f||u(l))&&(f&&(a=this.chart.get(f),r=a&&a.index),r===undefined&&u(l)&&(r=this.xData.indexOf(l,h)),r===-1||r===undefined||i[r].touched?o.push(t):t!==e.data[r]?(i[r].update(t,!1,null,!1),i[r].touched=!0,c&&(h=r+1)):i[r]&&(i[r].touched=!0),s=!0)},this),s)for(f=i.length;f--;)r=i[f],r.touched||r.remove(!1),r.touched=!1;else if(t.length===i.length)t.forEach(function(n,t){i[t].update&&n!==e.data[t]&&i[t].update(n,!1,null,!1)});else return!1;return o.forEach(function(n){this.addPoint(n,!1)},this),!0},setData:function(i,r,f,e){var s=this,l=s.points,it=l&&l.length||0,c,d=s.options,w=s.chart,b=null,g=s.xAxis,o,rt=d.turboThreshold,h,nt=this.xData,a=this.yData,ut=s.pointArrayMap,ft=ut&&ut.length,tt=d.keys,y=0,p=1,et;if(i=i||[],c=i.length,r=t(r,!0),e!==!1&&c&&it&&!s.cropped&&!s.hasGroupedData&&s.visible&&!s.isSeriesBoosting&&(et=this.updateData(i)),!et){if(s.xIncrement=null,s.colorCounter=0,this.parallelArrays.forEach(function(n){s[n+"Data"].length=0}),rt&&c>rt){for(o=0;b===null&&o<c;)b=i[o],o++;if(u(b))for(o=0;o<c;o++)nt[o]=this.autoIncrement(),a[o]=i[o];else if(v(b))if(ft)for(o=0;o<c;o++)h=i[o],nt[o]=h[0],a[o]=h.slice(1,ft+1);else for(tt&&(y=tt.indexOf("x"),p=tt.indexOf("y"),y=y>=0?y:0,p=p>=0?p:1),o=0;o<c;o++)h=i[o],nt[o]=h[y],a[o]=h[p];else n.error(12,!1,w)}else for(o=0;o<c;o++)i[o]!==undefined&&(h={series:s},s.pointClass.prototype.applyOptions.apply(h,[i[o]]),s.updateParallelArrays(h,o));for(a&&k(a[0])&&n.error(14,!0,w),s.data=[],s.options.data=s.userOptions.data=i,o=it;o--;)l[o]&&l[o].destroy&&l[o].destroy();g&&(g.minRange=g.userMinRange);s.isDirty=w.isDirtyBox=!0;s.isDirtyData=!!l;f=!1}d.legendType==="point"&&(this.processData(),this.generatePoints());r&&w.redraw(f)},processData:function(t){var i=this,r=i.xData,l=i.yData,a=r.length,o,y=0,p,e,s,u=i.xAxis,f,w=i.options,b=w.cropThreshold,nt=i.getExtremesFromAll||w.getExtremesFromAll,k=i.isCartesian,v,d=u&&u.val2lin,tt=u&&u.isLog,g=i.requireSorting,h,c;if(k&&!i.isDirty&&!u.isDirty&&!i.yAxis.isDirty&&!t)return!1;for(u&&(v=u.getExtremes(),h=v.min,c=v.max),k&&i.sorted&&!nt&&(!b||a>b||i.forceCrop)&&(r[a-1]<h||r[0]>c?(r=[],l=[]):i.yData&&(r[0]<h||r[a-1]>c)&&(o=this.cropData(i.xData,i.yData,h,c),r=o.xData,l=o.yData,y=o.start,p=!0)),f=r.length||1;--f;)e=tt?d(r[f])-d(r[f-1]):r[f]-r[f-1],e>0&&(s===undefined||e<s)?s=e:e<0&&g&&(n.error(15,!1,i.chart),g=!1);i.cropped=p;i.cropStart=y;i.processedXData=r;i.processedYData=l;i.closestPointRange=s},cropData:function(n,i,r,u,f){var c=n.length,s=0,h=c,e,o;for(f=t(f,this.cropShoulder,1),e=0;e<c;e++)if(n[e]>=r){s=Math.max(0,e-f);break}for(o=e;o<c;o++)if(n[o]>u){h=o+f;break}return{xData:n.slice(s,h),yData:i.slice(s,h),start:s,end:h}},generatePoints:function(){var t=this,l=t.options,o=l.data,u=t.data,v,s=t.processedXData,k=t.processedYData,y=t.pointClass,h=s.length,p=t.cropStart||0,f,e=t.hasGroupedData,w=l.keys,i,b=[],n,c;for(u||e||(c=[],c.length=o.length,u=t.data=c),w&&e&&(t.options.keys=!1),n=0;n<h;n++)f=p+n,e?(i=(new y).init(t,[s[n]].concat(tt(k[n]))),i.dataGroup=t.groupMap[n],i.dataGroup.options&&(i.options=i.dataGroup.options,a(i,i.dataGroup.options),delete i.dataLabels)):(i=u[f],i||o[f]===undefined||(u[f]=i=(new y).init(t,o[f],s[n]))),i&&(i.index=f,b[n]=i);if(t.options.keys=w,u&&(h!==(v=u.length)||e))for(n=0;n<v;n++)n!==p||e||(n+=h),u[n]&&(u[n].destroyElements(),u[n].plotX=undefined);t.data=u;t.points=b;r(this,"afterGeneratePoints")},getExtremes:function(n){var k=this.xAxis,d=this.yAxis,o=this.processedXData,h,e=[],c=0,l=k.getExtremes(),g=l.min,nt=l.max,a,y,b=this.requireSorting?1:0,s,t,i,f;for(n=n||this.stackedYData||this.processedYData||[],h=n.length,i=0;i<h;i++)if(s=o[i],t=n[i],a=(u(t,!0)||v(t))&&(!d.positiveValuesOnly||t.length||t>0),y=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(o[i+b]||s)>=g&&(o[i-b]||s)<=nt,a&&y)if(f=t.length,f)while(f--)typeof t[f]=="number"&&(e[c++]=t[f]);else e[c++]=t;this.dataMin=w(e);this.dataMax=p(e);r(this,"afterGetExtremes")},translate:function(){function rt(n){return Math.min(Math.max(-1e5,n),1e5)}this.processedXData||this.processData();this.generatePoints();for(var f=this,y=f.options,ft=y.stacking,p=f.xAxis,g=p.categories,o=f.yAxis,et=f.points,ht=et.length,ct=!!f.modifyValue,nt=f.pointPlacementToXValue(),lt=u(nt),v=y.threshold,ot=y.startFromThreshold?v:0,h,b,tt,k,st=this.zoneAxis||"y",it=Number.MAX_VALUE,w=0;w<ht;w++){var n=et[w],l=n.x,e=n.y,s=n.low,d=ft&&o.stacks[(f.negStacks&&e<(ot?0:v)?"-":"")+f.stackKey],a,ut;o.positiveValuesOnly&&e!==null&&e<=0&&(n.isNull=!0);n.plotX=h=c(rt(p.translate(l,0,0,0,1,nt,this.type==="flags")));ft&&f.visible&&!n.isNull&&d&&d[l]&&(k=f.getStackIndicator(k,l,f.index),a=d[l],ut=a.points[k.key],s=ut[0],e=ut[1],s===ot&&k.key===d[l].base&&(s=t(u(v)&&v,o.min)),o.positiveValuesOnly&&s<=0&&(s=null),n.total=n.stackTotal=a.total,n.percentage=a.total&&n.y/a.total*100,n.stackY=e,a.setOffset(f.pointXOffset||0,f.barW||0));n.yBottom=i(s)?rt(o.translate(s,0,1,0,1)):null;ct&&(e=f.modifyValue(e,n));n.plotY=b=typeof e=="number"&&e!==Infinity?rt(o.translate(e,0,1,0,1)):undefined;n.isInside=b!==undefined&&b>=0&&b<=o.len&&h>=0&&h<=p.len;n.clientX=lt?c(p.translate(l,0,0,0,1,nt)):h;n.negative=n[st]<(y[st+"Threshold"]||v||0);n.category=g&&g[n.x]!==undefined?g[n.x]:n.x;n.isNull||(tt!==undefined&&(it=Math.min(it,Math.abs(h-tt))),tt=h);n.zone=this.zones.length&&n.getZone()}f.closestPointRangePx=it;r(this,"afterTranslate")},getValidPoints:function(n,t){var i=this.chart;return(n||this.points||[]).filter(function(n){return t&&!i.isInsidePlot(n.plotX,n.plotY,i.inverted)?!1:!n.isNull})},setClip:function(n){var t=this.chart,e=this.options,s=t.renderer,u=t.inverted,o=this.clipBox,f=o||t.clipBox,i=this.sharedClipKey||["_sharedClip",n&&n.duration,n&&n.easing,f.height,e.xAxis,e.yAxis].join(","),r=t[i],h=t[i+"m"];r||(n&&(f.width=0,u&&(f.x=t.plotSizeX),t[i+"m"]=h=s.clipRect(u?t.plotSizeX+99:-99,u?-t.plotLeft:-t.plotTop,99,u?t.chartWidth:t.chartHeight)),t[i]=r=s.clipRect(f),r.count={length:0});n&&(r.count[this.index]||(r.count[this.index]=!0,r.count.length+=1));e.clip!==!1&&(this.group.clip(n||o?r:t.clipRect),this.markerGroup.clip(h),this.sharedClipKey=i);n||(r.count[this.index]&&(delete r.count[this.index],r.count.length-=1),r.count.length===0&&i&&t[i]&&(o||(t[i]=t[i].destroy()),t[i+"m"]&&(t[i+"m"]=t[i+"m"].destroy())))},animate:function(n){var i=this,t=i.chart,u,f=h(i.options.animation),r;n?i.setClip(f):(r=this.sharedClipKey,u=t[r],u&&u.animate({width:t.plotSizeX,x:0},f),t[r+"m"]&&t[r+"m"].animate({width:t.plotSizeX+99,x:0},f),i.animate=null)},afterAnimate:function(){this.setClip();r(this,"afterAnimate");this.finishedAnimating=!0},drawPoints:function(){var i=this,h=i.points,c=i.chart,o,n,l,r,p=i.options,f=p.marker,e,a,v,s,w=i[i.specialGroup]||i.markerGroup,y=i.xAxis,u,b=t(f.enabled,!y||y.isRadial?!0:null,i.closestPointRangePx>=f.enabledThreshold*f.radius);if(f.enabled!==!1||i._hasPointMarkers)for(o=0;o<h.length;o++)n=h[o],r=n.graphic,e=n.marker||{},a=!!n.marker,v=b&&e.enabled===undefined||e.enabled,s=n.isInside!==!1,v&&!n.isNull?(l=t(e.symbol,i.symbol),u=i.markerAttribs(n,n.selected&&"select"),r?r[s?"show":"hide"](!0).animate(u):s&&(u.width>0||n.hasImage)&&(n.graphic=r=c.renderer.symbol(l,u.x,u.y,u.width,u.height,a?e:f).add(w)),r&&!c.styledMode&&r.attr(i.pointAttribs(n,n.selected&&"select")),r&&r.addClass(n.getClassName(),!0)):r&&(n.graphic=r.destroy())},markerAttribs:function(n,i){var o=this.options.marker,u,f=n.marker||{},h=f.symbol||o.symbol,s,r=t(f.radius,o.radius),e;return i&&(u=o.states[i],s=f.states&&f.states[i],r=t(s&&s.radius,u&&u.radius,r+(u&&u.radiusPlus||0))),n.hasImage=h&&h.indexOf("url")===0,n.hasImage&&(r=0),e={x:Math.floor(n.plotX)-r,y:n.plotY-r},r&&(e.width=e.height=2*r),e},pointAttribs:function(n,i){var e=this.options.marker,r,o=n&&n.options,u=o&&o.marker||{},f,s=this.color,a=o&&o.color,v=n&&n.color,l=t(u.lineWidth,e.lineWidth),y=n&&n.zone&&n.zone.color,h,c;return s=a||y||v||s,h=u.fillColor||e.fillColor||s,c=u.lineColor||e.lineColor||s,i&&(r=e.states[i],f=u.states&&u.states[i]||{},l=t(f.lineWidth,r.lineWidth,l+t(f.lineWidthPlus,r.lineWidthPlus,0)),h=f.fillColor||r.fillColor||h,c=f.lineColor||r.lineColor||c),{stroke:c,"stroke-width":l,fill:h}},destroy:function(){var t=this,u=t.chart,c=/AppleWebKit\/533/.test(rt.navigator.userAgent),o,e,h=t.data||[],f,i;for(r(t,"destroy"),nt(t),(t.axisTypes||[]).forEach(function(n){i=t[n];i&&i.series&&(l(i.series,t),i.isDirty=i.forceRedraw=!0)}),t.legendItem&&t.chart.legend.destroyItem(t),e=h.length;e--;)f=h[e],f&&f.destroy&&f.destroy();t.points=null;n.clearTimeout(t.animationTimeout);s(t,function(n,t){n instanceof it&&!n.survive&&(o=c&&t==="group"?"hide":"destroy",n[o]())});u.hoverSeries===t&&(u.hoverSeries=null);l(u.series,t);u.orderSeries();s(t,function(n,i){delete t[i]})},getGraphPath:function(n,t,r){var f=this,h=f.options,u=h.step,c,e=[],s=[],o;return n=n||f.points,c=n.reversed,c&&n.reverse(),u={right:1,center:2}[u]||u&&3,u&&c&&(u=4-u),!h.connectNulls||t||r||(n=this.getValidPoints(n)),n.forEach(function(c,l){var y=c.plotX,p=c.plotY,a=n[l-1],v;(c.leftCliff||a&&a.rightCliff)&&!r&&(o=!0);c.isNull&&!i(t)&&l>0?o=!h.connectNulls:c.isNull&&!t?o=!0:(l===0||o?v=["M",c.plotX,c.plotY]:f.getPointSpline?v=f.getPointSpline(n,c,l):u?(v=u===1?["L",a.plotX,p]:u===2?["L",(a.plotX+y)/2,a.plotY,"L",(a.plotX+y)/2,p]:["L",y,a.plotY],v.push("L",y,p)):v=["L",y,p],s.push(c.x),u&&(s.push(c.x),u===2&&s.push(c.x)),e.push.apply(e,v),o=!1)}),e.xMap=s,f.graphPath=e,e},drawGraph:function(){var n=this,i=this.options,t=(this.gappedPath||this.getGraphPath).call(this),u=this.chart.styledMode,r=[["graph","highcharts-graph"]];u||r[0].push(i.lineColor||this.color,i.dashStyle);r=n.getZonesGraphs(r);r.forEach(function(r,f){var s=r[0],e=n[s],o;e?(e.endX=n.preventGraphAnimation?null:t.xMap,e.animate({d:t})):t.length&&(n[s]=n.chart.renderer.path(t).addClass(r[1]).attr({zIndex:1}).add(n.group),u||(o={stroke:r[2],"stroke-width":i.lineWidth,fill:n.fillGraph&&n.color||"none"},r[3]?o.dashstyle=r[3]:i.linecap!=="square"&&(o["stroke-linecap"]=o["stroke-linejoin"]="round"),e=n[s].attr(o).shadow(f<2&&i.shadow)));e&&(e.startX=t.xMap,e.isArea=t.isArea)})},getZonesGraphs:function(n){return this.zones.forEach(function(t,i){var r=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(t.className||"")];this.chart.styledMode||r.push(t.color||this.color,t.dashStyle||this.options.dashStyle);n.push(r)},this),n},applyZones:function(){var y=this,i=this.chart,k=i.renderer,d=this.zones,f,u,e=this.clips||[],n,h=this.graph,c=this.area,l=Math.max(i.chartWidth,i.chartHeight),r=this[(this.zoneAxis||"y")+"Axis"],o,p,w=i.inverted,s,b,a,v,g=!1;d.length&&(h||c)&&r&&r.min!==undefined&&(p=r.reversed,s=r.horiz,h&&!this.showLine&&h.hide(),c&&c.hide(),o=r.getExtremes(),d.forEach(function(d,nt){f=p?s?i.plotWidth:0:s?0:r.toPixels(o.min)||0;f=Math.min(Math.max(t(u,f),0),l);u=Math.min(Math.max(Math.round(r.toPixels(t(d.value,o.max),!0)||0),0),l);g&&(f=u=r.toPixels(o.max));b=Math.abs(f-u);a=Math.min(f,u);v=Math.max(f,u);r.isXAxis?(n={x:w?v:a,y:0,width:b,height:l},s||(n.x=i.plotHeight-n.x)):(n={x:0,y:w?v:a,width:l,height:b},s&&(n.y=i.plotWidth-n.y));w&&k.isVML&&(n=r.isXAxis?{x:0,y:p?a:v,height:n.width,width:i.chartWidth}:{x:n.y-i.plotLeft-i.spacingBox.x,y:0,width:n.height,height:i.chartHeight});e[nt]?e[nt].animate(n):(e[nt]=k.clipRect(n),h&&y["zone-graph-"+nt].clip(e[nt]),c&&y["zone-area-"+nt].clip(e[nt]));g=d.value>o.max;y.resetZones&&u===0&&(u=undefined)}),this.clips=e)},invertGroups:function(n){function i(){["group","markerGroup"].forEach(function(i){t[i]&&(r.renderer.isVML&&t[i].attr({width:t.yAxis.len,height:t.xAxis.len}),t[i].width=t.yAxis.len,t[i].height=t.xAxis.len,t[i].invert(n))})}var t=this,r=t.chart,u;t.xAxis&&(u=e(r,"resize",i),e(t,"destroy",u),i(n),t.invertGroups=i)},plotGroup:function(n,t,r,u,f){var e=this[n],o=!e;return o&&(this[n]=e=this.chart.renderer.g().attr({zIndex:u||.1}).add(f)),e.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(i(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(e.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),e.attr({visibility:r})[o?"attr":"animate"](this.getPlotBox()),e},getPlotBox:function(){var t=this.chart,i=this.xAxis,n=this.yAxis;return t.inverted&&(i=n,n=this.xAxis),{translateX:i?i.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var n=this,t=n.chart,i,u=n.options,f=!!n.animate&&t.renderer.isSVG&&h(u.animation).duration,e=n.visible?"inherit":"hidden",o=u.zIndex,s=n.hasRendered,c=t.seriesGroup,l=t.inverted;r(this,"render");i=n.plotGroup("group","series",e,o,c);n.markerGroup=n.plotGroup("markerGroup","markers",e,o,c);f&&n.animate(!0);i.inverted=n.isCartesian?l:!1;n.drawGraph&&(n.drawGraph(),n.applyZones());n.drawDataLabels&&n.drawDataLabels();n.visible&&n.drawPoints();n.drawTracker&&n.options.enableMouseTracking!==!1&&n.drawTracker();n.invertGroups(l);u.clip===!1||n.sharedClipKey||s||i.clip(t.clipRect);f&&n.animate();s||(n.animationTimeout=y(function(){n.afterAnimate()},f));n.isDirty=!1;n.hasRendered=!0;r(n,"afterRender")},redraw:function(){var n=this,i=n.chart,e=n.isDirty||n.isDirtyData,r=n.group,u=n.xAxis,f=n.yAxis;r&&(i.inverted&&r.attr({width:i.plotWidth,height:i.plotHeight}),r.animate({translateX:t(u&&u.left,i.plotLeft),translateY:t(f&&f.top,i.plotTop)}));n.translate();n.render();e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(n,t){var i=this,r=i.xAxis,u=i.yAxis,f=i.chart.inverted;return this.searchKDTree({clientX:f?r.len-n.chartY+r.pos:n.chartX-r.pos,plotY:f?u.len-n.chartX+u.pos:n.chartY-u.pos},t,n)},buildKDTree:function(n){function i(n,r,u){var e,f,o=n&&n.length;if(o)return e=t.kdAxisArray[r%u],n.sort(function(n,t){return n[e]-t[e]}),f=Math.floor(o/2),{point:n[f],left:i(n.slice(0,f),r+1,u),right:i(n.slice(f+1),r+1,u)}}function u(){t.kdTree=i(t.getValidPoints(null,!t.directTouch),r,r);t.buildingKdTree=!1}this.buildingKdTree=!0;var t=this,r=t.options.findNearestPointBy.indexOf("y")>-1?2:1;delete t.kdTree;y(u,t.options.kdNow||n&&n.type==="touchstart"?0:1)},searchKDTree:function(n,t,r){function c(n,t){var r=i(n[f])&&i(t[f])?Math.pow(n[f]-t[f],2):null,o=i(n[e])&&i(t[e])?Math.pow(n[e]-t[e],2):null,u=(r||0)+(o||0);t.dist=i(u)?Math.sqrt(u):Number.MAX_VALUE;t.distX=i(r)?Math.sqrt(r):Number.MAX_VALUE}function o(n,t,i,r){var h=t.point,p=s.kdAxisArray[i%r],e,l,a,f=h,v,y;return c(n,h),e=n[p]-h[p],l=e<0?"left":"right",a=e<0?"right":"left",t[l]&&(v=o(n,t[l],i+1,r),f=v[u]<f[u]?v:h),t[a]&&Math.sqrt(e*e)<f[u]&&(y=o(n,t[a],i+1,r),f=y[u]<f[u]?y:f),f}var s=this,f=this.kdAxisArray[0],e=this.kdAxisArray[1],u=t?"distX":"dist",h=s.options.findNearestPointBy.indexOf("y")>-1?2:1;return this.kdTree||this.buildingKdTree||this.buildKDTree(r),this.kdTree?o(n,this.kdTree,h,h):void 0},pointPlacementToXValue:function(){var i=this,n=i.options.pointPlacement;return n==="between"&&(n=.5),u(n)&&(n*=t(i.options.pointRange||i.xAxis.pointRange)),n}})}(t),function(n){var r=n.Axis,o=n.Chart,u=n.correctFloat,f=n.defined,s=n.destroyObjectProperties,h=n.format,i=n.objectEach,t=n.pick,e=n.Series;n.StackItem=function(n,i,r,u,f){var e=n.chart.inverted;this.axis=n;this.isNegative=r;this.options=i;this.x=u;this.total=null;this.points={};this.stack=f;this.leftCliff=0;this.rightCliff=0;this.alignOptions={align:i.align||(e?r?"left":"right":"center"),verticalAlign:i.verticalAlign||(e?"middle":r?"bottom":"top"),y:t(i.y,e?4:r?14:-6),x:t(i.x,e?r?-6:6:0)};this.textAlign=i.textAlign||(e?r?"right":"left":"center")};n.StackItem.prototype={destroy:function(){s(this,this.axis)},render:function(n){var i=this.axis.chart,t=this.options,r=t.format,u=r?h(r,this,i.time):t.formatter.call(this);this.label?this.label.attr({text:u,visibility:"hidden"}):this.label=i.renderer.text(u,null,null,t.useHTML).css(t.style).attr({align:this.textAlign,rotation:t.rotation,visibility:"hidden"}).add(n);this.label.labelrank=i.plotHeight},setOffset:function(n,t){var i=this,r=i.axis,o=r.chart,u=r.translate(r.usePercentage?100:i.total,0,0,0,1),c=r.translate(0),l=f(u)&&Math.abs(u-c),a=o.xAxis[0].translate(i.x)+n,h=f(u)&&i.getStackBox(o,i,a,u,t,l,r),e=i.label,s;e&&h&&(e.align(i.alignOptions,null,h),s=e.alignAttr,e[i.options.crop===!1||o.isInsidePlot(s.x,s.y)?"show":"hide"](!0))},getStackBox:function(n,t,i,r,u,f,e){var h=t.axis.reversed,o=n.inverted,s=e.height+e.pos-(o?n.plotLeft:n.plotTop),c=t.isNegative&&!h||!t.isNegative&&h;return{x:o?c?r:r-f:i,y:o?s-i-u:c?s-r-f:s-r,width:o?f:u,height:o?u:f}}};o.prototype.getStacks=function(){var n=this;n.yAxis.forEach(function(n){n.stacks&&n.hasVisibleSeries&&(n.oldStacks=n.stacks)});n.series.forEach(function(i){i.options.stacking&&(i.visible===!0||n.options.chart.ignoreHiddenSeries===!1)&&(i.stackKey=i.type+t(i.options.stack,""))})};r.prototype.buildStacks=function(){var i=this.series,u=t(this.options.reversedStacks,!0),r=i.length,n;if(!this.isXAxis){for(this.usePercentage=!1,n=r;n--;)i[u?n:r-n-1].setStackedPoints();for(n=0;n<r;n++)i[n].modifyStacks()}};r.prototype.renderStackTotals=function(){var n=this,r=n.chart,u=r.renderer,f=n.stacks,t=n.stackTotalGroup;t||(n.stackTotalGroup=t=u.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());t.translate(r.plotLeft,r.plotTop);i(f,function(n){i(n,function(n){n.render(t)})})};r.prototype.resetStacks=function(){var n=this,t=n.stacks;n.isXAxis||i(t,function(t){i(t,function(i,r){i.touched<n.stacksTouched?(i.destroy(),delete t[r]):(i.total=null,i.cumulative=null)})})};r.prototype.cleanStacks=function(){var n;this.isXAxis||(this.oldStacks&&(n=this.stacks=this.oldStacks),i(n,function(n){i(n,function(n){n.cumulative=n.total})}))};e.prototype.setStackedPoints=function(){if(this.options.stacking&&(this.visible===!0||this.chart.options.chart.ignoreHiddenSeries===!1)){var e=this,ft=e.processedXData,g=e.processedYData,nt=[],et=g.length,y=e.options,tt=y.threshold,b=t(y.startFromThreshold&&tt,0),ot=y.stack,it=y.stacking,k=e.stackKey,rt="-"+k,ut=e.negStacks,h=e.yAxis,s=h.stacks,d=h.oldStacks,p,w,i,l,o,a,v,r,c;for(h.stacksTouched+=1,v=0;v<et;v++)r=ft[v],c=g[v],p=e.getStackIndicator(p,r,e.index),a=p.key,w=ut&&c<(b?0:tt),o=w?rt:k,s[o]||(s[o]={}),s[o][r]||(d[o]&&d[o][r]?(s[o][r]=d[o][r],s[o][r].total=null):s[o][r]=new n.StackItem(h,h.options.stackLabels,w,r,ot)),i=s[o][r],c!==null?(i.points[a]=i.points[e.index]=[t(i.cumulative,b)],f(i.cumulative)||(i.base=a),i.touched=h.stacksTouched,p.index>0&&e.singleStacks===!1&&(i.points[a][0]=i.points[e.index+","+r+",0"][0])):i.points[a]=i.points[e.index]=null,it==="percent"?(l=w?k:rt,ut&&s[l]&&s[l][r]?(l=s[l][r],i.total=l.total=Math.max(l.total,i.total)+Math.abs(c)||0):i.total=u(i.total+(Math.abs(c)||0))):i.total=u(i.total+(c||0)),i.cumulative=t(i.cumulative,b)+(c||0),c!==null&&(i.points[a].push(i.cumulative),nt[v]=i.cumulative);it==="percent"&&(h.usePercentage=!0);this.stackedYData=nt;h.oldStacks={}}};e.prototype.modifyStacks=function(){var n=this,i=n.stackKey,r=n.yAxis.stacks,u=n.processedXData,t,f=n.options.stacking;n[f+"Stacker"]&&[i,"-"+i].forEach(function(i){for(var o=u.length,s,e,h;o--;)s=u[o],t=n.getStackIndicator(t,s,n.index,i),e=r[i]&&r[i][s],h=e&&e.points[t.key],h&&n[f+"Stacker"](h,e,o)})};e.prototype.percentStacker=function(n,t,i){var r=t.total?100/t.total:0;n[0]=u(n[0]*r);n[1]=u(n[1]*r);this.stackedYData[i]=n[1]};e.prototype.getStackIndicator=function(n,t,i,r){return!f(n)||n.x!==t||r&&n.key!==r?n={x:t,index:0,key:r}:n.index++,n.key=[i,t,n.index].join(","),n}}(t),function(n){var p=n.addEvent,h=n.animate,c=n.Axis,w=n.Chart,l=n.createElement,f=n.css,b=n.defined,a=n.erase,i=n.extend,r=n.fireEvent,v=n.isNumber,e=n.isObject,k=n.isArray,u=n.merge,o=n.objectEach,t=n.pick,d=n.Point,g=n.Series,s=n.seriesTypes,nt=n.setAnimation,y=n.splat;n.cleanRecursively=function(t,i){var r={};return o(t,function(u,f){var o;e(t[f],!0)&&i[f]?(o=n.cleanRecursively(t[f],i[f]),Object.keys(o).length&&(r[f]=o)):(e(t[f])||t[f]!==i[f])&&(r[f]=t[f])}),r};i(w.prototype,{addSeries:function(n,i,u){var e,f=this;return n&&(i=t(i,!0),r(f,"addSeries",{options:n},function(){e=f.initSeries(n);f.isDirtyLegend=!0;f.linkSeries();r(f,"afterAddSeries");i&&f.redraw(u)})),e},addAxis:function(n,i,r,f){var e=i?"xAxis":"yAxis",o=this.options,s=u(n,{index:this[e].length,isX:i}),h;return h=new c(this,s),o[e]=y(o[e]||{}),o[e].push(s),t(r,!0)&&this.redraw(f),h},showLoading:function(n){var t=this,e=t.options,r=t.loadingDiv,u=e.loading,o=function(){r&&f(r,{left:t.plotLeft+"px",top:t.plotTop+"px",width:t.plotWidth+"px",height:t.plotHeight+"px"})};r||(t.loadingDiv=r=l("div",{className:"highcharts-loading highcharts-loading-hidden"},null,t.container),t.loadingSpan=l("span",{className:"highcharts-loading-inner"},null,r),p(t,"redraw",o));r.className="highcharts-loading";t.loadingSpan.innerHTML=n||e.lang.loading;t.styledMode||(f(r,i(u.style,{zIndex:10})),f(t.loadingSpan,u.labelStyle),t.loadingShown||(f(r,{opacity:0,display:""}),h(r,{opacity:u.style.opacity||.5},{duration:u.showDuration||0})));t.loadingShown=!0;o()},hideLoading:function(){var t=this.options,n=this.loadingDiv;n&&(n.className="highcharts-loading highcharts-loading-hidden",this.styledMode||h(n,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){f(n,{display:"none"})}}));this.loadingShown=!1},propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"],collectionsWithUpdate:["xAxis","yAxis","zAxis","series","colorAxis","pane"],update:function(i,f,e,s){var h=this,k={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},c,p,w,l,a,d=[];r(h,"update",{options:i});i.isResponsiveOptions||h.setResponsive(!1,!0);i=n.cleanRecursively(i,h.options);c=i.chart;c&&(u(!0,h.options.chart,c),"className"in c&&h.setClassName(c.className),"reflow"in c&&h.setReflow(c.reflow),("inverted"in c||"polar"in c||"type"in c)&&(h.propFromSeries(),p=!0),"alignTicks"in c&&(p=!0),o(c,function(n,t){h.propsRequireUpdateSeries.indexOf("chart."+t)!==-1&&(w=!0);h.propsRequireDirtyBox.indexOf(t)!==-1&&(h.isDirtyBox=!0)}),!h.styledMode&&"style"in c&&h.renderer.setStyle(c.style));!h.styledMode&&i.colors&&(this.options.colors=i.colors);i.plotOptions&&u(!0,this.options.plotOptions,i.plotOptions);o(i,function(n,t){h[t]&&typeof h[t].update=="function"?h[t].update(n,!1):typeof h[k[t]]=="function"&&h[k[t]](n);t!=="chart"&&h.propsRequireUpdateSeries.indexOf(t)!==-1&&(w=!0)});this.collectionsWithUpdate.forEach(function(n){var r;i[n]&&(n==="series"&&(r=[],h[n].forEach(function(n,i){n.options.isInternal||r.push(t(n.options.index,i))})),y(i[n]).forEach(function(t,i){var u=b(t.id)&&h.get(t.id)||h[n][r?r[i]:i];u&&u.coll===n&&(u.update(t,!1),e&&(u.touched=!0));!u&&e&&(n==="series"?h.addSeries(t,!1).touched=!0:(n==="xAxis"||n==="yAxis")&&(h.addAxis(t,n==="xAxis",!1).touched=!0))}),e&&h[n].forEach(function(n){n.touched||n.options.isInternal?delete n.touched:d.push(n)}))});d.forEach(function(n){n.remove&&n.remove(!1)});p&&h.axes.forEach(function(n){n.update({},!1)});w&&h.series.forEach(function(n){n.update({},!1)});i.loading&&u(!0,h.options.loading,i.loading);l=c&&c.width;a=c&&c.height;v(l)&&l!==h.chartWidth||v(a)&&a!==h.chartHeight?h.setSize(l,a,s):t(f,!0)&&h.redraw(s);r(h,"afterUpdate",{options:i})},setSubtitle:function(n){this.setTitle(undefined,n)}});i(d.prototype,{update:function(n,i,r,u){function a(){f.applyOptions(n);f.y===null&&s&&(f.graphic=s.destroy());e(n,!0)&&(s&&s.element&&n&&n.marker&&n.marker.symbol!==undefined&&(f.graphic=s.destroy()),n&&n.dataLabels&&f.dataLabel&&(f.dataLabel=f.dataLabel.destroy()),f.connector&&(f.connector=f.connector.destroy()));h=f.index;o.updateParallelArrays(f,h);c.data[h]=e(c.data[h],!0)||e(n,!0)?f.options:t(n,c.data[h]);o.isDirty=o.isDirtyData=!0;!o.fixedBox&&o.hasCartesianSeries&&(l.isDirtyBox=!0);c.legendType==="point"&&(l.isDirtyLegend=!0);i&&l.redraw(r)}var f=this,o=f.series,s=f.graphic,h,l=o.chart,c=o.options;i=t(i,!0);u===!1?a():f.firePointEvent("update",{options:n},a)},remove:function(n,t){this.series.removePoint(this.series.data.indexOf(this),n,t)}});i(g.prototype,{addPoint:function(n,i,r,u){var f=this,a=f.options,s=f.data,w=f.chart,c=f.xAxis,v=c&&c.hasNames&&c.names,y=a.data,o,p,l=f.xData,e,h;if(i=t(i,!0),o={series:f},f.pointClass.prototype.applyOptions.apply(o,[n]),h=o.x,e=l.length,f.requireSorting&&h<l[e-1])for(p=!0;e&&l[e-1]>h;)e--;f.updateParallelArrays(o,"splice",e,0,0);f.updateParallelArrays(o,e);v&&o.name&&(v[h]=o.name);y.splice(e,0,n);p&&(f.data.splice(e,0,null),f.processData());a.legendType==="point"&&f.generatePoints();r&&(s[0]&&s[0].remove?s[0].remove(!1):(s.shift(),f.updateParallelArrays(o,"shift"),y.shift()));f.isDirty=!0;f.isDirtyData=!0;i&&w.redraw(u)},removePoint:function(n,i,r){var u=this,e=u.data,f=e[n],o=u.points,s=u.chart,h=function(){o&&o.length===e.length&&o.splice(n,1);e.splice(n,1);u.options.data.splice(n,1);u.updateParallelArrays(f||{series:u},"splice",n,1);f&&f.destroy();u.isDirty=!0;u.isDirtyData=!0;i&&s.redraw()};nt(r,s);i=t(i,!0);f?f.firePointEvent("remove",null,h):h()},remove:function(n,i,u){function o(){f.destroy();f.remove=null;e.isDirtyLegend=e.isDirtyBox=!0;e.linkSeries();t(n,!0)&&e.redraw(i)}var f=this,e=f.chart;u!==!1?r(f,"remove",null,o):o()},update:function(f,e){f=n.cleanRecursively(f,this.userOptions);var o=this,c=o.chart,l=o.userOptions,a=o.initialType||o.type,y=f.type||l.type||c.options.chart.type,k=s[a].prototype,p,w=["group","markerGroup","dataLabelsGroup"],h=["navigatorSeries","baseSeries"],d=o.finishedAnimating&&{animation:!1},g=["data","name","turboThreshold"],b=Object.keys(f),v=b.length>0;if(b.forEach(function(n){g.indexOf(n)===-1&&(v=!1)}),v)f.data&&this.setData(f.data,!1),f.name&&this.setName(f.name,!1);else{h=w.concat(h);h.forEach(function(n){h[n]=o[n];delete o[n]});f=u(l,d,{index:o.index,pointStart:t(l.pointStart,o.xData[0])},{data:o.options.data},f);o.remove(!1,null,!1);for(p in k)o[p]=undefined;s[y||a]?i(o,s[y||a].prototype):n.error(17,!0,c);h.forEach(function(n){o[n]=h[n]});o.init(c,f);f.zIndex!==l.zIndex&&w.forEach(function(n){o[n]&&o[n].attr({zIndex:f.zIndex})});o.initialType=a;c.linkSeries()}r(this,"afterUpdate");t(e,!0)&&c.redraw(v?undefined:!1)},setName:function(n){this.name=this.options.name=this.userOptions.name=n;this.chart.isDirtyLegend=!0}});i(c.prototype,{update:function(n,r){var f=this.chart,e=n&&n.events||{};n=u(this.userOptions,n);f.options[this.coll].indexOf&&(f.options[this.coll][f.options[this.coll].indexOf(this.userOptions)]=n);o(f.options[this.coll].events,function(n,t){typeof e[t]=="undefined"&&(e[t]=undefined)});this.destroy(!0);this.init(f,i(n,{events:e}));f.isDirtyBox=!0;t(r,!0)&&f.redraw()},remove:function(n){for(var i=this.chart,r=this.coll,u=this.series,f=u.length;f--;)u[f]&&u[f].remove(!1);a(i.axes,this);a(i[r],this);k(i.options[r])?i.options[r].splice(this.options.index,1):delete i.options[r];i[r].forEach(function(n,t){n.options.index=n.userOptions.index=t});this.destroy();i.isDirtyBox=!0;t(n,!0)&&i.redraw()},setTitle:function(n,t){this.update({title:n},t)},setCategories:function(n,t){this.update({categories:n},t)}})}(t),function(n){var r=n.color,u=n.LegendSymbolMixin,t=n.pick,i=n.Series,f=n.seriesType;f("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(i){var y=this,s=[],f=[],p=this.xAxis,e=this.yAxis,o=e.stacks[this.stackKey],u={},h=y.index,c=e.series,l=c.length,a,v=t(e.options.reversedStacks,!0)?1:-1,r;if(i=i||this.points,this.options.stacking){for(r=0;r<i.length;r++)i[r].leftNull=i[r].rightNull=null,u[i[r].x]=i[r];n.objectEach(o,function(n,t){n.total!==null&&f.push(t)});f.sort(function(n,t){return n-t});a=c.map(function(n){return n.visible});f.forEach(function(n,t){var i=0,c,y;if(u[n]&&!u[n].isNull)s.push(u[n]),[-1,1].forEach(function(i){var p=i===1?"rightNull":"leftNull",w=i===1?"rightCliff":"leftCliff",e=0,s=o[f[t+i]];if(s)for(r=h;r>=0&&r<l;)c=s.points[r],c||(r===h?u[n][p]=!0:a[r]&&(y=o[n].points[r],y&&(e-=y[1]-y[0]))),r+=v;u[n][w]=e});else{for(r=h;r>=0&&r<l;){if(c=o[n].points[r],c){i=c[1];break}r+=v}i=e.translate(i,0,1,0,1);s.push({isNull:!0,plotX:p.translate(n,0,0,0,1),x:n,plotY:i,yBottom:i})}})}return s},getGraphPath:function(n){var a=i.prototype.getGraphPath,b,e=this.options,u=e.stacking,o=this.yAxis,v,s,h=[],c=[],g=this.index,r,y,l,nt=o.stacks[this.stackKey],tt=e.threshold,p=o.getThreshold(e.threshold),w,k,f=e.connectNulls||u==="percent",d=function(t,i,r){var s=n[t],a=u&&nt[s.x].points[g],v=s[r+"Null"]||0,y=s[r+"Cliff"]||0,f,e,w=!0;y||v?(f=(v?a[0]:a[1])+y,e=a[0]+y,w=!!v):!u&&n[i]&&n[i].isNull&&(f=e=tt);f!==undefined&&(c.push({plotX:l,plotY:f===null?p:o.getThreshold(f),isNull:w,isCliff:!0}),h.push({plotX:l,plotY:e===null?p:o.getThreshold(e),doCurve:!1}))};for(n=n||this.points,u&&(n=this.getStackPoints(n)),r=0;r<n.length;r++)w=n[r].isNull,l=t(n[r].rectPlotX,n[r].plotX),k=t(n[r].yBottom,p),(!w||f)&&(f||d(r,r-1,"left"),w&&!u&&f||(c.push(n[r]),h.push({x:r,plotX:l,plotY:k})),f||d(r,r+1,"right"));return v=a.call(this,c,!0,!0),h.reversed=!0,s=a.call(this,h,!0,!0),s.length&&(s[0]="L"),y=v.concat(s),b=a.call(this,c,!1,f),y.xMap=v.xMap,this.areaPath=y,b},drawGraph:function(){this.areaPath=[];i.prototype.drawGraph.apply(this);var n=this,u=this.areaPath,f=this.options,o=this.zones,e=[["area","highcharts-area",this.color,f.fillColor]];o.forEach(function(t,i){e.push(["zone-area-"+i,"highcharts-area highcharts-zone-area-"+i+" "+t.className,t.color||n.color,t.fillColor||f.fillColor])});e.forEach(function(i){var s=i[0],e=n[s],o;e?(e.endX=n.preventGraphAnimation?null:u.xMap,e.animate({d:u})):(o={zIndex:0},n.chart.styledMode||(o.fill=t(i[3],r(i[2]).setOpacity(t(f.fillOpacity,.75)).get())),e=n[s]=n.chart.renderer.path(u).addClass(i[1]).attr(o).add(n.group),e.isArea=!0);e.startX=u.xMap;e.shiftUnit=f.step?2:1})},drawLegendSymbol:u.drawRectangle})}(t),function(n){var t=n.pick,i=n.seriesType;i("spline","line",{},{getPointSpline:function(n,i,r){function k(n){return n&&!n.isNull&&n.doCurve!==!1&&!i.isCliff}var s=1.5,v=s+1,h=i.plotX,u=i.plotY,o=n[r-1],p=n[r+1],y,e,c,f,b;if(k(o)&&k(p)){var d=o.plotX,l=o.plotY,g=p.plotX,a=p.plotY,w=0;y=(s*h+d)/v;e=(s*u+l)/v;c=(s*h+g)/v;f=(s*u+a)/v;c!==y&&(w=(f-e)*(c-h)/(c-y)+u-f);e+=w;f+=w;e>l&&e>u?(e=Math.max(l,u),f=2*u-e):e<l&&e<u&&(e=Math.min(l,u),f=2*u-e);f>a&&f>u?(f=Math.max(a,u),e=2*u-f):f<a&&f<u&&(f=Math.min(a,u),e=2*u-f);i.rightContX=c;i.rightContY=f}return b=["C",t(o.rightContX,o.plotX),t(o.rightContY,o.plotY),t(y,h),t(e,u),h,u],o.rightContX=o.rightContY=null,b}})}(t),function(n){var t=n.seriesTypes.area.prototype,i=n.defaultPlotOptions,r=n.LegendSymbolMixin,u=n.seriesType;u("areaspline","spline",i.area,{getStackPoints:t.getStackPoints,getGraphPath:t.getGraphPath,drawGraph:t.drawGraph,drawLegendSymbol:r.drawRectangle})}(t),function(n){var u=n.animObject,f=n.color,e=n.extend,o=n.defined,s=n.isNumber,h=n.LegendSymbolMixin,r=n.merge,c=n.noop,t=n.pick,i=n.Series,l=n.seriesType,a=n.svg;l("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){i.prototype.init.apply(this,arguments);var n=this,t=n.chart;t.hasRendered&&t.series.forEach(function(t){t.type===n.type&&(t.isDirty=!0)})},getColumnMetrics:function(){var n=this,r=n.options,i=n.xAxis,h=n.yAxis,c=i.options.reversedStacks,l=i.reversed&&!c||!i.reversed&&c,u,e={},f=0;r.grouping===!1?f=1:n.chart.series.forEach(function(t){var r=t.options,o=t.yAxis,i;t.type===n.type&&(t.visible||!n.chart.options.chart.ignoreHiddenSeries)&&h.len===o.len&&h.pos===o.pos&&(r.stacking?(u=t.stackKey,e[u]===undefined&&(e[u]=f++),i=e[u]):r.grouping!==!1&&(i=f++),t.columnIndex=i)});var o=Math.min(Math.abs(i.transA)*(i.ordinalSlope||r.pointRange||i.closestPointRange||i.tickInterval||1),i.len),a=o*r.groupPadding,y=o-2*a,s=y/(f||1),v=Math.min(r.maxPointWidth||i.len,t(r.pointWidth,s*(1-2*r.pointPadding))),p=(s-v)/2,w=(n.columnIndex||0)+(l?1:0),b=p+(a+w*s-o/2)*(l?-1:1);return n.columnMetrics={width:v,offset:b},n.columnMetrics},crispCol:function(n,t,i,r){var e=this.chart,o=this.borderWidth,s=-(o%2?.5:0),u=o%2?.5:1,h,f,c;return e.inverted&&e.renderer.isVML&&(u+=1),this.options.crisp&&(h=Math.round(n+i)+s,n=Math.round(n)+s,i=h-n),f=Math.round(t+r)+u,c=Math.abs(t)<=.5&&f>.5,t=Math.round(t)+u,r=f-t,c&&r&&(t-=1,r+=1),{x:n,y:t,width:i,height:r}},translate:function(){var n=this,e=n.chart,s=n.options,v=n.dense=n.closestPointRange*n.xAxis.transA<2,y=n.borderWidth=t(s.borderWidth,v?0:1),r=n.yAxis,h=s.threshold,f=n.translatedThreshold=r.getThreshold(h),u=t(s.minPointLength,5),a=n.getColumnMetrics(),c=a.width,l=n.barW=Math.max(c,1+2*y),p=n.pointXOffset=a.offset;e.inverted&&(f-=.5);s.pointPadding&&(l=Math.ceil(l));i.prototype.translate.apply(n);n.points.forEach(function(i){var y=t(i.yBottom,f),g=999+Math.abs(y),d=c,w=Math.min(Math.max(-g,i.plotY),r.len+g),s=i.plotX+p,a=l,b=Math.min(w,y),k,v=Math.max(w,y)-b;u&&Math.abs(v)<u&&(v=u,k=!r.reversed&&!i.negative||r.reversed&&i.negative,i.y===h&&n.dataMax<=h&&r.min<h&&(k=!k),b=Math.abs(b-f)>u?y-u:f-(k?u:0));o(i.options.pointWidth)&&(d=a=Math.ceil(i.options.pointWidth),s-=Math.round((d-c)/2));i.barX=s;i.pointWidth=d;i.tooltipPos=e.inverted?[r.len+r.pos-e.plotLeft-w,n.xAxis.len-s-a/2,v]:[s+a/2,w+r.pos-e.plotTop,v];i.shapeType=i.shapeType||"rect";i.shapeArgs=n.crispCol.apply(n,i.isNull?[s,f,a,0]:[s,b,a,v])})},getSymbol:c,drawLegendSymbol:h.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(n,t){var e=this.options,i,h,y=this.pointAttrToOptions||{},c=y.stroke||"borderColor",o=y["stroke-width"]||"borderWidth",u=n&&n.color||this.color,l=n&&n[c]||e[c]||this.color||u,a=n&&n[o]||e[o]||this[o]||0,s=e.dashStyle,v,p;return n&&this.zones.length&&(v=n.getZone(),u=n.options.color||v&&v.color||this.color),t&&(i=r(e.states[t],n.options.states&&n.options.states[t]||{}),p=i.brightness,u=i.color||p!==undefined&&f(u).brighten(i.brightness).get()||u,l=i[c]||l,a=i[o]||a,s=i.dashStyle||s),h={fill:u,stroke:l,"stroke-width":a},s&&(h.dashstyle=s),h},drawPoints:function(){var t=this,i=this.chart,n=t.options,f=i.renderer,e=n.animationLimit||250,u;t.points.forEach(function(o){var l=o.plotY,h=o.graphic,c=h&&i.pointCount<e?"animate":"attr";s(l)&&o.y!==null?(u=o.shapeArgs,h?h[c](r(u)):o.graphic=h=f[o.shapeType](u).add(o.group||t.group),n.borderRadius&&h.attr({r:n.borderRadius}),i.styledMode||h[c](t.pointAttribs(o,o.selected&&"select")).shadow(n.shadow,null,n.stacking&&!n.borderRadius),h.addClass(o.getClassName(),!0)):h&&(o.graphic=h.destroy())})},animate:function(n){var t=this,i=this.yAxis,c=t.options,s=this.chart.inverted,r={},h=s?"translateX":"translateY",f,o;a&&(n?(r.scaleY=.001,o=Math.min(i.pos+i.len,Math.max(i.pos,i.toPixels(c.threshold))),s?r.translateX=o-i.len:r.translateY=o,t.clipBox&&t.setClip(),t.group.attr(r)):(f=t.group.attr(h),t.group.animate({scaleY:1},e(u(t.options.animation),{step:function(n,u){r[h]=f+u.pos*(i.pos-f);t.group.attr(r)}})),t.animate=null))},remove:function(){var n=this,t=n.chart;t.hasRendered&&t.series.forEach(function(t){t.type===n.type&&(t.isDirty=!0)});i.prototype.remove.apply(n,arguments)}})}(t),function(n){var t=n.seriesType;t("bar","column",null,{inverted:!0})}(t),function(n){var t=n.Series,i=n.seriesType;i("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●<\/span> <span style="font-size: 10px"> {series.name}<\/span><br/>',pointFormat:"x: <b>{point.x}<\/b><br/>y: <b>{point.y}<\/b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&t.prototype.drawGraph.call(this)},applyJitter:function(){function r(n){var t=Math.sin(n)*1e4;return t-Math.floor(t)}var t=this,n=this.options.jitter,i=this.points.length;n&&this.points.forEach(function(u,f){["x","y"].forEach(function(e,o){var s,h="plot"+e.toUpperCase(),c,a,l;n[e]&&!u.isNull&&(s=t[e+"Axis"],l=n[e]*s.transA,s&&!s.isLog&&(c=Math.max(0,u[h]-l),a=Math.min(s.len,u[h]+l),u[h]=c+(a-c)*r(f+o*i),e==="x"&&(u.clientX=u.plotX)))})})}});n.addEvent(t,"afterTranslate",function(){this.applyJitter&&this.applyJitter()})}(t),function(n){var t=n.deg2rad,i=n.isNumber,r=n.pick,u=n.relativeLength;n.CenteredSeriesMixin={getCenter:function(){for(var i=this.options,o=this.chart,f=2*(i.slicedOffset||0),s,h=o.plotWidth-2*f,c=o.plotHeight-2*f,l=i.center,n=[r(l[0],"50%"),r(l[1],"50%"),i.size||"100%",i.innerSize||0],a=Math.min(h,c),e,t=0;t<4;++t)e=n[t],s=t<2||t===2&&/%$/.test(e),n[t]=u(e,[h,c,a,n[2]][t])+(s?f:0);return n[3]>n[2]&&(n[3]=n[2]),n},getStartAndEndRadians:function(n,r){var u=i(n)?n:0,e=i(r)&&r>u&&r-u<360?r:u+360,f=-90;return{start:t*(u+f),end:t*(e+f)}}}}(t),function(n){var i=n.addEvent,r=n.CenteredSeriesMixin,f=n.defined,e=n.extend,o=r.getStartAndEndRadians,s=n.LegendSymbolMixin,u=n.noop,t=n.pick,h=n.Point,c=n.Series,l=n.seriesType,a=n.seriesTypes,v=n.setAnimation;l("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,distance:30,enabled:!0,formatter:function(){return this.point.isNull?undefined:this.point.name},softConnector:!0,x:0,connectorShape:"fixedOffset",crookDistance:"70%"},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:a.column.prototype.pointAttribs,animate:function(n){var t=this,r=t.points,i=t.startAngleRad;n||(r.forEach(function(n){var r=n.graphic,u=n.shapeArgs;r&&(r.attr({r:n.startR||t.center[3]/2,start:i,end:i}),r.animate({r:u.r,start:u.start,end:u.end},t.options.animation))}),t.animate=null)},updateTotals:function(){for(var i=0,r=this.points,u=r.length,n,f=this.options.ignoreHiddenPoint,t=0;t<u;t++)n=r[t],i+=f&&!n.visible?0:n.isNull?0:n.y;for(this.total=i,t=0;t<u;t++)n=r[t],n.percentage=i>0&&(n.visible||!f)?n.y/i*100:0,n.total=i},generatePoints:function(){c.prototype.generatePoints.call(this);this.updateTotals()},getX:function(n,t,i){var r=this.center,u=this.radii?this.radii[i.index]:r[2]/2,f;return f=Math.asin(Math.max(Math.min((n-r[1])/(u+i.labelDistance),1),-1)),r[0]+(t?-1:1)*Math.cos(f)*(u+i.labelDistance)+(i.labelDistance>0?(t?-1:1)*this.options.dataLabels.padding:0)},translate:function(n){this.generatePoints();var u=this,l=0,h=1e3,f=u.options,a=f.slicedOffset,g=a+(f.borderWidth||0),v,y,p,r,b=o(f.startAngle,f.endAngle),w=u.startAngleRad=b.start,nt=u.endAngleRad=b.end,k=nt-w,d=u.points,e,s,tt=f.dataLabels.distance,it=f.ignoreHiddenPoint,c,rt=d.length,i;for(n||(u.center=n=u.getCenter()),c=0;c<rt;c++)i=d[c],i.labelDistance=t(i.options.dataLabels&&i.options.dataLabels.distance,tt),u.maxLabelDistance=Math.max(u.maxLabelDistance||0,i.labelDistance),y=w+l*k,(!it||i.visible)&&(l+=i.percentage/100),p=w+l*k,i.shapeType="arc",i.shapeArgs={x:n[0],y:n[1],r:n[2]/2,innerR:n[3]/2,start:Math.round(y*h)/h,end:Math.round(p*h)/h},r=(p+y)/2,r>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),i.slicedTranslation={translateX:Math.round(Math.cos(r)*a),translateY:Math.round(Math.sin(r)*a)},e=Math.cos(r)*n[2]/2,s=Math.sin(r)*n[2]/2,i.tooltipPos=[n[0]+e*.7,n[1]+s*.7],i.half=r<-Math.PI/2||r>Math.PI/2?1:0,i.angle=r,v=Math.min(g,i.labelDistance/5),i.labelPosition={natural:{x:n[0]+e+Math.cos(r)*i.labelDistance,y:n[1]+s+Math.sin(r)*i.labelDistance},final:{},alignment:i.labelDistance<0?"center":i.half?"right":"left",connectorPosition:{breakAt:{x:n[0]+e+Math.cos(r)*v,y:n[1]+s+Math.sin(r)*v},touchingSliceAt:{x:n[0]+e,y:n[1]+s}}}},drawGraph:null,drawPoints:function(){var n=this,i=n.chart,u=i.renderer,r,t,f,o,s=n.options.shadow;!s||n.shadowGroup||i.styledMode||(n.shadowGroup=u.g("shadow").add(n.group));n.points.forEach(function(h){if(t=h.graphic,h.isNull)t&&(h.graphic=t.destroy());else{if(o=h.shapeArgs,r=h.getTranslate(),!i.styledMode){var c=h.shadowGroup;s&&!c&&(c=h.shadowGroup=u.g("shadow").add(n.shadowGroup));c&&c.attr(r);f=n.pointAttribs(h,h.selected&&"select")}t?(t.setRadialReference(n.center),i.styledMode||t.attr(f),t.animate(e(o,r))):(h.graphic=t=u[h.shapeType](o).setRadialReference(n.center).attr(r).add(n.group),i.styledMode||t.attr(f).attr({"stroke-linejoin":"round"}).shadow(s,c));t.attr({visibility:h.visible?"inherit":"hidden"});t.addClass(h.getClassName())}})},searchPoint:u,sortByAngle:function(n,t){n.sort(function(n,i){return n.angle!==undefined&&(i.angle-n.angle)*t})},drawLegendSymbol:s.drawRectangle,getCenter:r.getCenter,getSymbol:u},{init:function(){h.prototype.init.apply(this,arguments);var n=this,r;return n.name=t(n.name,"Slice"),r=function(t){n.slice(t.type==="select")},i(n,"select",r),i(n,"unselect",r),n},isValid:function(){return n.isNumber(this.y,!0)&&this.y>=0},setVisible:function(n,i){var r=this,u=r.series,f=u.chart,e=u.options.ignoreHiddenPoint;i=t(i,e);n!==r.visible&&(r.visible=r.options.visible=n=n===undefined?!r.visible:n,u.options.data[u.data.indexOf(r)]=r.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(t){r[t]&&r[t][n?"show":"hide"](!0)}),r.legendItem&&f.legend.colorizeItem(r,n),n||r.state!=="hover"||r.setState(""),e&&(u.isDirty=!0),i&&f.redraw())},slice:function(n,i,r){var u=this,e=u.series,o=e.chart;v(r,o);i=t(i,!0);u.sliced=u.options.sliced=n=f(n)?n:!u.sliced;e.options.data[e.data.indexOf(u)]=u.options;u.graphic.animate(this.getTranslate());u.shadowGroup&&u.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(n){var t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+n,t.r+n,{innerR:this.shapeArgs.r-1,start:t.start,end:t.end})},connectorShapes:{fixedOffset:function(n,t,i){var r=t.breakAt,u=t.touchingSliceAt,f=i.softConnector?["C",n.x+(n.alignment==="left"?-5:5),n.y,2*r.x-u.x,2*r.y-u.y,r.x,r.y]:["L",r.x,r.y];return["M",n.x,n.y].concat(f).concat(["L",u.x,u.y])},straight:function(n,t){var i=t.touchingSliceAt;return["M",n.x,n.y,"L",i.x,i.y]},crookedLine:function(t,i,r){var f=i.touchingSliceAt,e=this.series,o=e.center[0],v=e.chart.plotWidth,h=e.chart.plotLeft,c=t.alignment,s=this.shapeArgs.r,l=n.relativeLength(r.crookDistance,1),u=c==="left"?o+s+(v+h-o-s)*(1-l):h+(o-s)*l,a=["L",u,t.y];return(c==="left"?u>t.x||u<f.x:u<t.x||u>f.x)&&(a=[]),["M",t.x,t.y].concat(a).concat(["L",f.x,f.y])}},getConnectorPath:function(){var n=this.labelPosition,i=this.series.options.dataLabels,t=i.connectorShape,r=this.connectorShapes;return r[t]&&(t=r[t]),t.call(this,{x:n.final.x,y:n.final.y,alignment:n.alignment},n.connectorPosition,i)}})}(t),function(n){var h=n.addEvent,c=n.arrayMax,u=n.defined,s=n.extend,l=n.format,f=n.merge,a=n.noop,t=n.pick,v=n.relativeLength,e=n.Series,i=n.seriesTypes,o=n.stableSort,r=n.isArray,y=n.splat;n.distribute=function(i,r,u){function y(n,t){return n.target-t.target}for(var c=!0,e=i,l=[],s,a,h=0,v=e.reducedLen||r,f=i.length;f--;)h+=i[f].size;if(h>v){for(o(i,function(n,t){return(t.rank||0)-(n.rank||0)}),f=0,h=0;h<=v;)h+=i[f].size,f++;l=i.splice(f-1,i.length)}for(o(i,y),i=i.map(function(n){return{size:n.size,targets:[n.target],align:t(n.align,.5)}});c;){for(f=i.length;f--;)s=i[f],a=(Math.min.apply(0,s.targets)+Math.max.apply(0,s.targets))/2,s.pos=Math.min(Math.max(0,a-s.size*s.align),r-s.size);for(f=i.length,c=!1;f--;)f>0&&i[f-1].pos+i[f-1].size>i[f].pos&&(i[f-1].size+=i[f].size,i[f-1].targets=i[f-1].targets.concat(i[f].targets),i[f-1].align=.5,i[f-1].pos+i[f-1].size>r&&(i[f-1].pos=r-i[f-1].size),i.splice(f,1),c=!0)}e.push.apply(e,l);f=0;i.some(function(t){var i=0;if(t.targets.some(function(){if(e[f].pos=t.pos+i,Math.abs(e[f].pos-e[f].target)>u)return e.slice(0,f+1).forEach(function(n){delete n.pos}),e.reducedLen=(e.reducedLen||r)-r*.1,e.reducedLen>r*.1&&n.distribute(e,r,u),!0;i+=e[f].size;f++}))return!0});o(e,y)};e.prototype.drawDataLabels=function(){function d(n,t){var f=t.filter,i,r,u;return f?(i=f.operator,r=n[f.property],u=f.value,i===">"&&r>u||i==="<"&&r<u||i===">="&&r>=u||i==="<="&&r<=u||i==="=="&&r==u||i==="==="&&r===u)?!0:!1:!0}function p(n,t){var i=[],u;if(r(n)&&!r(t))i=n.map(function(n){return f(n,t)});else if(r(t)&&!r(n))i=t.map(function(t){return f(n,t)});else if(r(n)||r(t))for(u=Math.max(n.length,t.length);u--;)i[u]=f(n[u],t[u]);else i=f(n,t);return i}var i=this,e=i.chart,s=i.options,o=s.dataLabels,k=i.points,w,a=i.hasRendered||0,c,b=t(o.defer,!!s.animation),v=e.renderer;o=p(p(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[i.type]&&e.options.plotOptions[i.type].dataLabels),o);n.fireEvent(this,"drawDataLabels");(r(o)||o.enabled||i._hasPointLabels)&&(c=i.plotGroup("dataLabelsGroup","data-labels",b&&!a?"hidden":"visible",o.zIndex||6),b&&(c.attr({opacity:+a}),a||h(i,"afterAnimate",function(){i.visible&&c.show(!0);c[s.animation?"animate":"attr"]({opacity:1},{duration:200})})),k.forEach(function(r){w=y(p(o,r.dlOptions||r.options&&r.options.dataLabels));w.forEach(function(f,o){var w=f.enabled&&!r.isNull&&d(r,f),b,k,p,y,g,a,h=r.dataLabels?r.dataLabels[o]:r.dataLabel,nt=r.connectors?r.connectors[o]:r.connector,tt=!h;w&&(b=r.getLabelConfig(),k=f[r.formatPrefix+"Format"]||f.format,p=u(k)?l(k,b,e.time):(f[r.formatPrefix+"Formatter"]||f.formatter).call(b,f),y=f.style,g=f.rotation,e.styledMode||(y.color=t(f.color,y.color,i.color,"#000000"),y.color==="contrast"&&(r.contrastColor=v.getContrast(r.color||i.color),y.color=f.inside||t(f.distance,r.labelDistance)<0||!!s.stacking?r.contrastColor:"#000000"),s.cursor&&(y.cursor=s.cursor)),a={r:f.borderRadius||0,rotation:g,padding:f.padding,zIndex:1},e.styledMode||(a.fill=f.backgroundColor,a.stroke=f.borderColor,a["stroke-width"]=f.borderWidth),n.objectEach(a,function(n,t){n===undefined&&delete a[t]}));!h||w&&u(p)?w&&u(p)&&(h?a.text=p:(r.dataLabels=r.dataLabels||[],h=r.dataLabels[o]=g?v.text(p,0,-9999).addClass("highcharts-data-label"):v.label(p,0,-9999,f.shape,null,null,f.useHTML,null,"data-label"),o||(r.dataLabel=h),h.addClass(" highcharts-data-label-color-"+r.colorIndex+" "+(f.className||"")+(f.useHTML?" highcharts-tracker":""))),h.options=f,h.attr(a),e.styledMode||h.css(y).shadow(f.shadow),h.added||h.add(c),i.alignDataLabel(r,h,f,null,tt)):(r.dataLabel=r.dataLabel&&r.dataLabel.destroy(),r.dataLabels&&(r.dataLabels.length===1?delete r.dataLabels:delete r.dataLabels[o]),o||delete r.dataLabel,nt&&(r.connector=r.connector.destroy(),r.connectors&&(r.connectors.length===1?delete r.connectors:delete r.connectors[o])))})}));n.fireEvent(this,"afterDrawDataLabels")};e.prototype.alignDataLabel=function(n,i,r,u,f){var o=this.chart,c=this.isCartesian&&o.inverted,l=t(n.dlBox&&n.dlBox.centerX,n.plotX,-9999),y=t(n.plotY,-9999),h=i.getBBox(),k,a=r.rotation,p,w,v=r.align,d,b=this.visible&&(n.series.forceDL||o.isInsidePlot(l,Math.round(y),c)||u&&o.isInsidePlot(l,c?u.x+1:u.y+u.height-1,c)),e,g=t(r.overflow,"justify")==="justify";b&&(k=o.renderer.fontMetrics(o.styledMode?undefined:r.style.fontSize,i).b,u=s({x:c?this.yAxis.len-y:l,y:Math.round(c?this.xAxis.len-l:y),width:0,height:0},u),s(r,{width:h.width,height:h.height}),a?(g=!1,d=o.renderer.rotCorr(k,a),e={x:u.x+r.x+u.width/2+d.x,y:u.y+r.y+{top:0,middle:.5,bottom:1}[r.verticalAlign]*u.height},i[f?"attr":"animate"](e).attr({align:v}),p=(a+720)%360,w=p>180&&p<360,v==="left"?e.y-=w?h.height:0:v==="center"?(e.x-=h.width/2,e.y-=h.height/2):v==="right"&&(e.x-=h.width,e.y-=w?0:h.height),i.placed=!0,i.alignAttr=e):(i.align(r,null,u),e=i.alignAttr),g&&u.height>=0?n.isLabelJustified=this.justifyDataLabel(i,r,e,h,u,f):t(r.crop,!0)&&(b=o.isInsidePlot(e.x,e.y)&&o.isInsidePlot(e.x+h.width,e.y+h.height)),r.shape&&!a&&i[f?"attr":"animate"]({anchorX:c?o.plotWidth-n.plotY:n.plotX,anchorY:c?o.plotHeight-n.plotX:n.plotY}));b||(i.attr({y:-9999}),i.placed=!1)};e.prototype.justifyDataLabel=function(n,t,i,r,u,f){var s=this.chart,c=t.align,l=t.verticalAlign,e,o,h=n.box?0:n.padding||0;return e=i.x+h,e<0&&(c==="right"?t.align="left":t.x=-e,o=!0),e=i.x+r.width-h,e>s.plotWidth&&(c==="left"?t.align="right":t.x=s.plotWidth-e,o=!0),e=i.y+h,e<0&&(l==="bottom"?t.verticalAlign="top":t.y=-e,o=!0),e=i.y+r.height-h,e>s.plotHeight&&(l==="top"?t.verticalAlign="bottom":t.y=s.plotHeight-e,o=!0),o&&(n.placed=!f,n.align(t,null,u)),o};i.pie&&(i.pie.prototype.dataLabelPositioners={radialDistributionY:function(n){return n.top+n.distributeBox.pos},radialDistributionX:function(n,t,i,r){return n.getX(i<t.top+2||i>t.bottom-2?r:i,t.half,t)},justify:function(n,t,i){return i[0]+(n.half?-1:1)*(t+n.labelDistance)},alignToPlotEdges:function(n,t,i,r){var u=n.getBBox().width;return t?u+r:i-u-r},alignToConnectors:function(n,t,i,r){var u=0,f;return n.forEach(function(n){f=n.dataLabel.getBBox().width;f>u&&(u=f)}),t?u+r:i-u-r}},i.pie.prototype.drawDataLabels=function(){var i=this,ut=i.data,r,a=i.chart,f=i.options.dataLabels,y=f.connectorPadding,ft=t(f.connectorWidth,1),nt=a.plotWidth,et=a.plotHeight,ot=a.plotLeft,st=Math.round(a.chartWidth/3),v,rt=i.center,w=rt[2]/2,tt=rt[1],o,b,p,k,ht=[[],[]],s,l,d,it,h=[0,0,0,0],g=i.dataLabelPositioners;i.visible&&(f.enabled||i._hasPointLabels)&&(ut.forEach(function(n){n.dataLabel&&n.visible&&n.dataLabel.shortened&&(n.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),n.dataLabel.shortened=!1)}),e.prototype.drawDataLabels.apply(i),ut.forEach(function(n){n.dataLabel&&(n.visible?(ht[n.half].push(n),n.dataLabel._pos=null,u(f.style.width)||u(n.options.dataLabels&&n.options.dataLabels.style&&n.options.dataLabels.style.width)||n.dataLabel.getBBox().width>st&&(n.dataLabel.css({width:st*.7}),n.dataLabel.shortened=!0)):(n.dataLabel=n.dataLabel.destroy(),n.dataLabels&&n.dataLabels.length===1&&delete n.dataLabels))}),ht.forEach(function(e,c){var ct,lt,at=e.length,ft=[],st,v,ut,ht;if(at)for(i.sortByAngle(e,c-.5),i.maxLabelDistance>0&&(ct=Math.max(0,tt-w-i.maxLabelDistance),lt=Math.min(tt+w+i.maxLabelDistance,a.plotHeight),e.forEach(function(n){n.labelDistance>0&&n.dataLabel&&(n.top=Math.max(0,tt-w-n.labelDistance),n.bottom=Math.min(tt+w+n.labelDistance,a.plotHeight),ut=n.dataLabel.getBBox().height||21,n.distributeBox={target:n.labelPosition.natural.y-n.top+ut/2,size:ut,rank:n.y},ft.push(n.distributeBox))}),ht=lt+ut-ct,n.distribute(ft,ht,ht/5)),it=0;it<at;it++){if(r=e[it],p=r.labelPosition,o=r.dataLabel,d=r.visible===!1?"hidden":"inherit",st=p.natural.y,l=st,ft&&u(r.distributeBox)&&(r.distributeBox.pos===undefined?d="hidden":(k=r.distributeBox.size,l=g.radialDistributionY(r))),delete r.positionIndex,f.justify)s=g.justify(r,w,rt);else switch(f.alignTo){case"connectors":s=g.alignToConnectors(e,c,nt,ot);break;case"plotEdges":s=g.alignToPlotEdges(o,c,nt,ot);break;default:s=g.radialDistributionX(i,r,l,st)}o._attr={visibility:d,align:p.alignment};o._pos={x:s+f.x+({left:y,right:-y}[p.alignment]||0),y:l+f.y-10};p.final.x=s;p.final.y=l;t(f.crop,!0)&&(b=o.getBBox().width,v=null,s-b<y&&c===1?(v=Math.round(b-s+y),h[3]=Math.max(v,h[3])):s+b>nt-y&&c===0&&(v=Math.round(s+b-nt+y),h[1]=Math.max(v,h[1])),l-k/2<0?h[0]=Math.max(Math.round(-l+k/2),h[0]):l+k/2>et&&(h[2]=Math.max(Math.round(l+k/2-et),h[2])),o.sideOverflow=v)}}),(c(h)===0||this.verifyDataLabelOverflow(h))&&(this.placeDataLabels(),ft&&this.points.forEach(function(n){var t;v=n.connector;o=n.dataLabel;o&&o._pos&&n.visible&&n.labelDistance>0?(d=o._attr.visibility,t=!v,t&&(n.connector=v=a.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+n.colorIndex+(n.className?" "+n.className:"")).add(i.dataLabelsGroup),a.styledMode||v.attr({"stroke-width":ft,stroke:f.connectorColor||n.color||"#666666"})),v[t?"attr":"animate"]({d:n.getConnectorPath()}),v.attr("visibility",d)):v&&(n.connector=v.destroy())})))},i.pie.prototype.placeDataLabels=function(){this.points.forEach(function(n){var t=n.dataLabel,i;t&&n.visible&&(i=t._pos,i?(t.sideOverflow&&(t._attr.width=t.getBBox().width-t.sideOverflow,t.css({width:t._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),t.shortened=!0),t.attr(t._attr),t[t.moved?"animate":"attr"](i),t.moved=!0):t&&t.attr({y:-9999}))},this)},i.pie.prototype.alignDataLabel=a,i.pie.prototype.verifyDataLabelOverflow=function(n){var t=this.center,u=this.options,e=u.center,r=u.minSize||80,i=r,f=u.size!==null;return f||(e[0]!==null?i=Math.max(t[2]-Math.max(n[1],n[3]),r):(i=Math.max(t[2]-n[1]-n[3],r),t[0]+=(n[3]-n[1])/2),e[1]!==null?i=Math.max(Math.min(i,t[2]-Math.max(n[0],n[2])),r):(i=Math.max(Math.min(i,t[2]-n[0]-n[2]),r),t[1]+=(n[0]-n[2])/2),i<t[2]?(t[2]=i,t[3]=Math.min(v(u.innerSize||0,i),i),this.translate(t),this.drawDataLabels&&this.drawDataLabels()):f=!0),f});i.column&&(i.column.prototype.alignDataLabel=function(n,i,r,u,o){var s=this.chart.inverted,h=n.series,v=n.dlBox||n.shapeArgs,c=t(n.below,n.plotY>t(this.translatedThreshold,h.yAxis.len)),l=t(r.inside,!!this.options.stacking),a;v&&(u=f(v),u.y<0&&(u.height+=u.y,u.y=0),a=u.y+u.height-h.yAxis.len,a>0&&(u.height-=a),s&&(u={x:h.yAxis.len-u.y-u.height,y:h.xAxis.len-u.x-u.width,width:u.height,height:u.width}),l||(s?(u.x+=c?0:u.width,u.width=0):(u.y+=c?u.height:0,u.height=0)));r.align=t(r.align,!s||l?"center":c?"right":"left");r.verticalAlign=t(r.verticalAlign,s||l?"middle":c?"top":"bottom");e.prototype.alignDataLabel.call(this,n,i,r,u,o);n.isLabelJustified&&n.contrastColor&&i.css({color:n.contrastColor})})}(t),function(n){var t=n.Chart,r=n.isArray,i=n.objectEach,u=n.pick,f=n.addEvent,e=n.fireEvent;f(t,"render",function(){var n=[];(this.labelCollectors||[]).forEach(function(t){n=n.concat(t())});(this.yAxis||[]).forEach(function(t){t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&i(t.stacks,function(t){i(t,function(t){n.push(t.label)})})});(this.series||[]).forEach(function(t){var i=t.options.dataLabels;!t.visible||i.enabled===!1&&!t._hasPointLabels||t.points.forEach(function(t){if(t.visible){var i=r(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[];i.forEach(function(i){var r=i.options;i.labelrank=u(r.labelrank,t.labelrank,t.shapeArgs&&t.shapeArgs.height);r.allowOverlap||n.push(i)})}})});this.hideOverlappingLabels(n)});t.prototype.hideOverlappingLabels=function(n){for(var c=this,h=n.length,a=c.renderer,i,s,r,u,l,f,o,v=function(n,t,i,r,u,f,e,o){return!(u>n+i||u+e<n||f>t+r||f+o<t)},y=function(n){var i,r,u,t=n.box?0:n.padding||0,f=0;if(n&&(!n.alignAttr||n.placed))return i=n.alignAttr||{x:n.attr("x"),y:n.attr("y")},r=n.parentGroup,n.width||(u=n.getBBox(),n.width=u.width,n.height=u.height,f=a.fontMetrics(null,n.element).h),{x:i.x+(r.translateX||0)+t,y:i.y+(r.translateY||0)+t-f,width:n.width-2*t,height:n.height-2*t}},t=0;t<h;t++)i=n[t],i&&(i.oldOpacity=i.opacity,i.newOpacity=1,i.absoluteBox=y(i));for(n.sort(function(n,t){return(t.labelrank||0)-(n.labelrank||0)}),t=0;t<h;t++)for(r=n[t],f=r&&r.absoluteBox,s=t+1;s<h;++s)u=n[s],o=u&&u.absoluteBox,f&&o&&r!==u&&r.newOpacity!==0&&u.newOpacity!==0&&(l=v(f.x,f.y,f.width,f.height,o.x,o.y,o.width,o.height),l&&((r.labelrank<u.labelrank?r:u).newOpacity=0));n.forEach(function(n){var i,t;n&&(t=n.newOpacity,n.oldOpacity!==t&&(n.alignAttr&&n.placed?(t?n.show(!0):i=function(){n.hide()},n.alignAttr.opacity=t,n[n.isOld?"animate":"attr"](n.alignAttr,null,i),e(c,"afterHideOverlappingLabels")):n.attr({opacity:t})),n.isOld=!0)})}}(t),function(n){var e=n.addEvent,l=n.Chart,a=n.createElement,o=n.css,v=n.defaultOptions,y=n.defaultPlotOptions,u=n.extend,t=n.fireEvent,s=n.hasTouch,p=n.isObject,w=n.Legend,h=n.merge,i=n.pick,c=n.Point,b=n.Series,r=n.seriesTypes,k=n.svg,f;f=n.TrackerMixin={drawTrackerPoint:function(){var n=this,r=n.chart,i=r.pointer,u=function(n){var t=i.getPointFromEvent(n);if(t!==undefined){i.isDirectTouch=!0;t.onMouseOver(n)}};n.points.forEach(function(n){n.graphic&&(n.graphic.element.point=n);n.dataLabel&&(n.dataLabel.div?n.dataLabel.div.point=n:n.dataLabel.element.point=n)});n._hasTracking||(n.trackerGroups.forEach(function(t){if(n[t]){n[t].addClass("highcharts-tracker").on("mouseover",u).on("mouseout",function(n){i.onTrackerMouseOut(n)});if(s)n[t].on("touchstart",u);!r.styledMode&&n.options.cursor&&n[t].css(o).css({cursor:n.options.cursor})}}),n._hasTracking=!0);t(this,"afterDrawTracker")},drawTrackerGraph:function(){var n=this,e=n.options,f=e.trackByArea,r=[].concat(f?n.areaPath:n.graphPath),o=r.length,u=n.chart,v=u.pointer,y=u.renderer,h=u.options.tooltip.snap,c=n.tracker,i,l=function(){u.hoverSeries!==n&&n.onMouseOver()},a="rgba(192,192,192,"+(k?.0001:.002)+")";if(o&&!f)for(i=o+1;i--;)r[i]==="M"&&r.splice(i+1,0,r[i+1]-h,r[i+2],"L"),(i&&r[i]==="M"||i===o)&&r.splice(i,0,"L",r[i-2]+h,r[i-1]);c?c.attr({d:r}):n.graph&&(n.tracker=y.path(r).attr({visibility:n.visible?"visible":"hidden",zIndex:2}).addClass(f?"highcharts-tracker-area":"highcharts-tracker-line").add(n.group),u.styledMode||n.tracker.attr({"stroke-linejoin":"round",stroke:a,fill:f?a:"none","stroke-width":n.graph.strokeWidth()+(f?0:2*h)}),[n.tracker,n.markerGroup].forEach(function(n){n.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(n){v.onTrackerMouseOut(n)});if(e.cursor&&!u.styledMode&&n.css({cursor:e.cursor}),s)n.on("touchstart",l)}));t(this,"afterDrawTracker")}};r.column&&(r.column.prototype.drawTracker=f.drawTrackerPoint);r.pie&&(r.pie.prototype.drawTracker=f.drawTrackerPoint);r.scatter&&(r.scatter.prototype.drawTracker=f.drawTrackerPoint);u(w.prototype,{setItemEvents:function(n,i,r){var u=this,f=u.chart.renderer.boxWrapper,e="highcharts-legend-"+(n instanceof c?"point":"series")+"-active",o=u.chart.styledMode;(r?i:n.legendGroup).on("mouseover",function(){n.setState("hover");f.addClass(e);o||i.css(u.options.itemHoverStyle)}).on("mouseout",function(){u.styledMode||i.css(h(n.visible?u.itemStyle:u.itemHiddenStyle));f.removeClass(e);n.setState()}).on("click",function(i){var r="legendItemClick",u=function(){n.setVisible&&n.setVisible()};f.removeClass(e);i={browserEvent:i};n.firePointEvent?n.firePointEvent(r,i,u):t(n,r,i,u)})},createCheckboxForItem:function(n){var i=this;n.checkbox=a("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:n.selected,defaultChecked:n.selected},i.options.itemCheckboxStyle,i.chart.container);e(n.checkbox,"click",function(i){var r=i.target;t(n.series||n,"checkboxClick",{checked:r.checked,item:n},function(){n.select()})})}});u(l.prototype,{showResetZoom:function(){function o(){n.zoomOut()}var n=this,r=v.lang,i=n.options.chart.resetZoomButton,u=i.theme,f=u.states,e=i.relativeTo==="chart"?null:"plotBox";t(this,"beforeShowResetZoom",null,function(){n.resetZoomButton=n.renderer.button(r.resetZoom,null,null,o,u,f&&f.hover).attr({align:i.position.align,title:r.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,e)})},zoomOut:function(){t(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(n){var t=this,u,e=t.pointer,f=!1,r;!n||n.resetSelection?(t.axes.forEach(function(n){u=n.zoom()}),e.initiated=!1):n.xAxis.concat(n.yAxis).forEach(function(n){var t=n.axis,i=t.isXAxis;e[i?"zoomX":"zoomY"]&&(u=t.zoom(n.min,n.max),t.displayBtn&&(f=!0))});r=t.resetZoomButton;f&&!r?t.showResetZoom():!f&&p(r)&&(t.resetZoomButton=r.destroy());u&&t.redraw(i(t.options.chart.animation,n&&n.animation,t.pointCount<100))},pan:function(n,i){var r=this,u=r.hoverPoints,f;t(this,"pan",{originalEvent:n},function(){u&&u.forEach(function(n){n.setState()});(i==="xy"?[1,0]:[1]).forEach(function(t){var i=r[t?"xAxis":"yAxis"][0],v=i.horiz,c=n[v?"chartX":"chartY"],y=v?"mouseDownX":"mouseDownY",p=r[y],h=(i.pointRange||0)/2,w=i.reversed&&!r.inverted||!i.reversed&&r.inverted?-1:1,u=i.getExtremes(),l=i.toValue(p-c,!0)+h*w,a=i.toValue(p+i.len-c,!0)-h*w,b=a<l,o=b?a:l,s=b?l:a,k=Math.min(u.dataMin,h?u.min:i.toValue(i.toPixels(u.min)-i.minPixelPadding)),d=Math.max(u.dataMax,h?u.max:i.toValue(i.toPixels(u.max)+i.minPixelPadding)),e;e=k-o;e>0&&(s+=e,o=k);e=s-d;e>0&&(s=d,o-=e);i.series.length&&o!==u.min&&s!==u.max&&(i.setExtremes(o,s,!1,!1,{trigger:"pan"}),f=!0);r[y]=c});f&&r.redraw(!1);o(r.container,{cursor:"move"})})}});u(c.prototype,{select:function(n,t){var r=this,u=r.series,f=u.chart;n=i(n,!r.selected);r.firePointEvent(n?"select":"unselect",{accumulate:t},function(){r.selected=r.options.selected=n;u.options.data[u.data.indexOf(r)]=r.options;r.setState(n&&"select");t||f.getSelectedPoints().forEach(function(n){n.selected&&n!==r&&(n.selected=n.options.selected=!1,u.options.data[u.data.indexOf(n)]=n.options,n.setState(""),n.firePointEvent("unselect"))})})},onMouseOver:function(n){var t=this,u=t.series,r=u.chart,i=r.pointer;n=n?i.normalize(n):i.getChartCoordinatesFromPoint(t,r.inverted);i.runPointActions(n,t)},onMouseOut:function(){var t=this,n=t.series.chart;t.firePointEvent("mouseOut");(n.hoverPoints||[]).forEach(function(n){n.setState()});n.hoverPoints=n.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var t=this,r=h(t.series.options.point,t.options),i=r.events;t.events=i;n.objectEach(i,function(n,i){e(t,i,n)});this.hasImportedEvents=!0}},setState:function(n,r){var f=this,k=Math.floor(f.plotX),d=f.plotY,e=f.series,b=e.options.states[n||"normal"]||{},l=y[e.type].marker&&e.options.marker,g=l&&l.enabled===!1,p=l&&l.states&&l.states[n||"normal"]||{},nt=p.enabled===!1,o=e.stateMarkerGraphic,w=f.marker||{},h=e.chart,s=e.halo,a,c,tt=l&&e.markerAttribs,v;(n=n||"",n===f.state&&!r||f.selected&&n!=="select"||b.enabled===!1||n&&(nt||g&&p.enabled===!1)||n&&w.states&&w.states[n]&&w.states[n].enabled===!1)||(tt&&(c=e.markerAttribs(f,n)),f.graphic?(f.state&&f.graphic.removeClass("highcharts-point-"+f.state),n&&f.graphic.addClass("highcharts-point-"+n),h.styledMode||f.graphic.animate(e.pointAttribs(f,n),i(h.options.chart.animation,b.animation)),c&&f.graphic.animate(c,i(h.options.chart.animation,p.animation,l.animation)),o&&o.hide()):(n&&p&&(v=w.symbol||e.symbol,o&&o.currentSymbol!==v&&(o=o.destroy()),o?o[r?"animate":"attr"]({x:c.x,y:c.y}):v&&(e.stateMarkerGraphic=o=h.renderer.symbol(v,c.x,c.y,c.width,c.height).add(e.markerGroup),o.currentSymbol=v),!h.styledMode&&o&&o.attr(e.pointAttribs(f,n))),o&&(o[n&&h.isInsidePlot(k,d,h.inverted)?"show":"hide"](),o.element.point=f)),a=b.halo,a&&a.size?(s||(e.halo=s=h.renderer.path().add((f.graphic||o).parentGroup)),s.show()[r?"animate":"attr"]({d:f.haloPath(a.size)}),s.attr({"class":"highcharts-halo highcharts-color-"+i(f.colorIndex,e.colorIndex)+(f.className?" "+f.className:""),zIndex:-1}),s.point=f,h.styledMode||s.attr(u({fill:f.color||e.color,"fill-opacity":a.opacity},a.attributes))):s&&s.point&&s.point.haloPath&&s.animate({d:s.point.haloPath(0)},null,s.hide),f.state=n,t(f,"afterSetState"))},haloPath:function(n){var t=this.series,i=t.chart;return i.renderer.symbols.circle(Math.floor(this.plotX)-n,this.plotY-n,n*2,n*2)}});u(b.prototype,{onMouseOver:function(){var n=this,r=n.chart,i=r.hoverSeries;i&&i!==n&&i.onMouseOut();n.options.events.mouseOver&&t(n,"mouseOver");n.setState("hover");r.hoverSeries=n},onMouseOut:function(){var n=this,f=n.options,i=n.chart,r=i.tooltip,u=i.hoverPoint;i.hoverSeries=null;u&&u.onMouseOut();n&&f.events.mouseOut&&t(n,"mouseOut");r&&!n.stickyTracking&&(!r.shared||n.noSharedTooltip)&&r.hide();n.setState()},setState:function(n){var t=this,s=t.options,f=t.graph,r=s.states,e=s.lineWidth,o,u=0;if(n=n||"",t.state!==n&&([t.group,t.markerGroup,t.dataLabelsGroup].forEach(function(i){i&&(t.state&&i.removeClass("highcharts-series-"+t.state),n&&i.addClass("highcharts-series-"+n))}),t.state=n,!t.chart.styledMode)){if(r[n]&&r[n].enabled===!1)return;if(n&&(e=r[n].lineWidth||e+(r[n].lineWidthPlus||0)),f&&!f.dashstyle)for(o={"stroke-width":e},f.animate(o,i(r[n||"normal"]&&r[n||"normal"].animation,t.chart.options.chart.animation));t["zone-graph-"+u];)t["zone-graph-"+u].attr(o),u=u+1}},setVisible:function(n,i){var r=this,u=r.chart,e=r.legendItem,f,o=u.options.chart.ignoreHiddenSeries,s=r.visible;r.visible=n=r.options.visible=r.userOptions.visible=n===undefined?!s:n;f=n?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(n){r[n]&&r[n][f]()});(u.hoverSeries===r||(u.hoverPoint&&u.hoverPoint.series)===r)&&r.onMouseOut();e&&u.legend.colorizeItem(r,n);r.isDirty=!0;r.options.stacking&&u.series.forEach(function(n){n.options.stacking&&n.visible&&(n.isDirty=!0)});r.linkedSeries.forEach(function(t){t.setVisible(n,!1)});o&&(u.isDirtyBox=!0);t(r,f);i!==!1&&u.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(n){var i=this;i.selected=n=this.options.selected=n===undefined?!i.selected:n;i.checkbox&&(i.checkbox.checked=n);t(i,n?"select":"unselect")},drawTracker:f.drawTrackerGraph})}(t),function(n){var i=n.Chart,r=n.isArray,u=n.isObject,t=n.pick,f=n.splat;i.prototype.setResponsive=function(t,i){var f=this.options.responsive,r=[],e=this.currentResponsive,s,o,u;!i&&f&&f.rules&&f.rules.forEach(function(i){i._id===undefined&&(i._id=n.uniqueKey());this.matchResponsiveRule(i,r,t)},this);u=n.merge.apply(0,r.map(function(t){return n.find(f.rules,function(n){return n._id===t}).chartOptions}));u.isResponsiveOptions=!0;r=r.toString()||undefined;s=e&&e.ruleIds;r!==s&&(e&&this.update(e.undoOptions,t),r?(o=this.currentOptions(u),o.isResponsiveOptions=!0,this.currentResponsive={ruleIds:r,mergedOptions:u,undoOptions:o},this.update(u,t)):this.currentResponsive=undefined)};i.prototype.matchResponsiveRule=function(n,i){var r=n.condition,u=r.callback||function(){return this.chartWidth<=t(r.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=t(r.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=t(r.minWidth,0)&&this.chartHeight>=t(r.minHeight,0)};u.call(this)&&i.push(n._id)};i.prototype.currentOptions=function(t){function i(t,e,o,s){var h;n.objectEach(t,function(n,t){if(!s&&["series","xAxis","yAxis"].indexOf(t)>-1)for(n=f(n),o[t]=[],h=0;h<n.length;h++)e[t][h]&&(o[t][h]={},i(n[h],e[t][h],o[t][h],s+1));else u(n)?(o[t]=r(n)?[]:{},i(n,e[t]||{},o[t],s+1)):o[t]=e[t]||null})}var e={};return i(t,this.options,e,0),e}}(t),function(n){return n}(t)}),function(n){n.wrap(n.seriesTypes.pie.prototype,"render",function(n){var e=this.index?this.index:0,r=this.center,i=this.options.title,u,t;if(n.call(this),t=$(this.chart.renderTo),t.data("legendItemClicked")){t.data("legendItemClicked",!1);return}var o=$(".highcharts-series.highcharts-series-"+e,t).last(),f=o.offset().top-t.offset().top,s=this.chart.options.plotOptions.pie.dataLabels.enabled?70:40;r&&i&&(u={x:-(r[2]/2)-60,y:f?f-s:0,width:t.width(),height:r[2]},this.title?this.title.align(i,null,u):this.title=this.chart.renderer.label(i.text).css(i.style).add().align(i,null,u))})}(Highcharts),function(n){"object"==typeof module&&module.exports?module.exports=n:n(Highcharts)}(function(n){(function(n){var o=n.defaultOptions,s=n.doc,c=n.Chart,e=n.addEvent,w=n.removeEvent,v=n.fireEvent,r=n.createElement,l=n.discardElement,f=n.css,i=n.merge,h=n.pick,t=n.each,y=n.objectEach,u=n.extend,b=n.isTouchDevice,a=n.win,p=a.navigator.userAgent,k=n.Renderer.prototype.symbols;/Edge\/|Trident\/|MSIE /.test(p);/firefox/i.test(p);u(o.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"});o.navigation={buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24}};i(!0,o.navigation,{menuStyle:{border:"1px solid #999999",background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",background:"none",color:"#333333",fontSize:b?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad",color:"#ffffff"},buttonOptions:{symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",stroke:"none",padding:5}}});o.exporting={type:"image/png",url:"https://export.highcharts.com/",printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",_titleKey:"contextButtonTitle",menuItems:"printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")}},menuItemDefinitions:{printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}};n.post=function(n,t,u){var f=r("form",i({method:"post",action:n,enctype:"multipart/form-data"},u),{display:"none"},s.body);y(t,function(n,t){r("input",{type:"hidden",name:t,value:n},null,f)});f.submit();l(f)};u(c.prototype,{sanitizeSVG:function(n,t){if(t&&t.exporting&&t.exporting.allowHTML){var i=n.match(/<\/svg>(.*?$)/);i&&i[1]&&(i='<foreignObject x="0" y="0" width="'+t.chart.width+'" height="'+t.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+i[1]+"<\/body><\/foreignObject>",n=n.replace("<\/svg>",i+"<\/svg>"))}return n=n.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|&quot;)(\S+)("|&quot;)\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (|NS[0-9]+\:)href=/g," xlink:href=").replace(/\n/," ").replace(/<\/svg>.*?$/,"<\/svg>").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1="rgb($2)" $1-opacity="$3"').replace(/&nbsp;/g," ").replace(/&shy;/g,"­"),this.ieSanitizeSVG&&(n=this.ieSanitizeSVG(n)),n},getChartHTML:function(){return this.container.innerHTML},getSVG:function(f){var h,a,o,v,c,e=i(this.options,f);return a=r("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},s.body),o=this.renderTo.style.width,c=this.renderTo.style.height,o=e.exporting.sourceWidth||e.chart.width||/px$/.test(o)&&parseInt(o,10)||600,c=e.exporting.sourceHeight||e.chart.height||/px$/.test(c)&&parseInt(c,10)||400,u(e.chart,{animation:!1,renderTo:a,forExport:!0,renderer:"SVGRenderer",width:o,height:c}),e.exporting.enabled=!1,delete e.data,e.series=[],t(this.series,function(n){v=i(n.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:n.visible});v.isInternal||e.series.push(v)}),t(this.axes,function(t){t.userOptions.internalKey||(t.userOptions.internalKey=n.uniqueKey())}),h=new n.Chart(e,this.callback),f&&t(["xAxis","yAxis","series"],function(n){var t={};f[n]&&(t[n]=f[n],h.update(t))}),t(this.axes,function(t){var r=n.find(h.axes,function(n){return n.options.internalKey===t.userOptions.internalKey}),i=t.getExtremes(),u=i.userMin,i=i.userMax;r&&(void 0!==u||void 0!==i)&&r.setExtremes(u,i,!0,!1)}),o=h.getChartHTML(),o=this.sanitizeSVG(o,e),e=null,h.destroy(),l(a),o},getSVGForExport:function(n,t){var r=this.options.exporting;return this.getSVG(i({chart:{borderRadius:0}},r.chartOptions,t,{exporting:{sourceWidth:n&&n.sourceWidth||r.sourceWidth,sourceHeight:n&&n.sourceHeight||r.sourceHeight}}))},exportChart:function(t,r){r=this.getSVGForExport(t,r);t=i(this.options.exporting,t);n.post(t.url,{filename:t.filename||"chart",type:t.type,width:t.width||0,scale:t.scale,svg:r},t.formAttributes)},print:function(){var n=this,i=n.container,u=[],c=i.parentNode,f=s.body,e=f.childNodes,r=n.options.exporting.printMaxWidth,o,h;n.isPrinting||(n.isPrinting=!0,n.pointer.reset(null,0),v(n,"beforePrint"),(h=r&&n.chartWidth>r)&&(o=[n.options.chart.width,void 0,!1],n.setSize(r,void 0,!1)),t(e,function(n,t){1===n.nodeType&&(u[t]=n.style.display,n.style.display="none")}),f.appendChild(i),a.focus(),a.print(),setTimeout(function(){c.appendChild(i);t(e,function(n,t){1===n.nodeType&&(n.style.display=u[t])});n.isPrinting=!1;h&&n.setSize.apply(n,o);v(n,"afterPrint")},1e3))},contextMenu:function(i,o,h,c,l,a,v){var y=this,k=y.options.navigation,g=y.chartWidth,nt=y.chartHeight,tt="cache-"+i,p=y[tt],w=Math.max(l,a),b,d;p||(y[tt]=p=r("div",{className:i},{position:"absolute",zIndex:1e3,padding:w+"px"},y.container),b=r("div",{className:"highcharts-menu"},null,p),f(b,u({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},k.menuStyle)),d=function(){f(p,{display:"none"});v&&v.setState(0);y.openMenu=!1},y.exportEvents.push(e(p,"mouseleave",function(){p.hideTimer=setTimeout(d,500)}),e(p,"mouseenter",function(){n.clearTimeout(p.hideTimer)}),e(s,"mouseup",function(n){y.pointer.inClass(n.target,i)||d()})),t(o,function(t){if("string"==typeof t&&(t=y.options.exporting.menuItemDefinitions[t]),n.isObject(t,!0)){var i;t.separator?i=r("hr",null,null,b):(i=r("div",{className:"highcharts-menu-item",onclick:function(n){n&&n.stopPropagation();d();t.onclick&&t.onclick.apply(y,arguments)},innerHTML:t.text||y.options.lang[t.textKey]},null,b),i.onmouseover=function(){f(this,k.menuItemHoverStyle)},i.onmouseout=function(){f(this,k.menuItemStyle)},f(i,u({cursor:"pointer"},k.menuItemStyle)));y.exportDivElements.push(i)}}),y.exportDivElements.push(b,p),y.exportMenuWidth=p.offsetWidth,y.exportMenuHeight=p.offsetHeight);o={display:"block"};h+y.exportMenuWidth>g?o.right=g-h-l-w+"px":o.left=h-w+"px";c+a+y.exportMenuHeight>nt&&"top"!==v.alignOptions.verticalAlign?o.bottom=nt-c-w+"px":o.top=c+a-w+"px";f(p,o);y.openMenu=!0},addButton:function(n){var r=this,a=r.renderer,t=i(r.options.navigation.buttonOptions,n),v=t.onclick,y=t.menuItems,c,f,e=t.symbolSize||12;if(r.btnCount||(r.btnCount=0),r.exportDivElements||(r.exportDivElements=[],r.exportSVGElements=[]),!1!==t.enabled){var o=t.theme,s=o.states,p=s&&s.hover,s=s&&s.select,l;delete o.states;v?l=function(n){n.stopPropagation();v.call(r,n)}:y&&(l=function(){r.contextMenu(f.menuClassName,y,f.translateX,f.translateY,f.width,f.height,f);f.setState(2)});t.text&&t.symbol?o.paddingLeft=h(o.paddingLeft,25):t.text||u(o,{width:t.width,height:t.height,padding:0});f=a.button(t.text,0,0,l,o,p,s).addClass(n.className).attr({"stroke-linecap":"round",title:h(r.options.lang[t._titleKey],""),zIndex:3});f.menuClassName=n.menuClassName||"highcharts-menu-"+r.btnCount++;t.symbol&&(c=a.symbol(t.symbol,t.symbolX-e/2,t.symbolY-e/2,e,e,{width:e,height:e}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(f),c.attr({stroke:t.symbolStroke,fill:t.symbolFill,"stroke-width":t.symbolStrokeWidth||1}));f.add().align(u(t,{width:f.width,x:h(t.x,r.buttonOffset)}),!0,"spacingBox");r.buttonOffset+=(f.width+t.buttonSpacing)*("right"===t.align?-1:1);r.exportSVGElements.push(f,c)}},destroyExport:function(i){var r=i?i.target:this,u,f,e;i=r.exportSVGElements;u=r.exportDivElements;f=r.exportEvents;i&&(t(i,function(n,t){n&&(n.onclick=n.ontouchstart=null,e="cache-"+n.menuClassName,r[e]&&delete r[e],r.exportSVGElements[t]=n.destroy())}),i.length=0);u&&(t(u,function(t,i){n.clearTimeout(t.hideTimer);w(t,"mouseleave");r.exportDivElements[i]=t.onmouseout=t.onmouseover=t.ontouchstart=t.onclick=null;l(t)}),u.length=0);f&&(t(f,function(n){n()}),f.length=0)}});k.menu=function(n,t,i,r){return["M",n,t+2.5,"L",n+i,t+2.5,"M",n,t+r/2+.5,"L",n+i,t+r/2+.5,"M",n,t+r-1.5,"L",n+i,t+r-1.5]};c.prototype.renderExporting=function(){var n=this,t=n.options.exporting,i=t.buttons,r=n.isDirtyExporting||!n.exportSVGElements;n.buttonOffset=0;n.isDirtyExporting&&n.destroyExport();r&&!1!==t.enabled&&(n.exportEvents=[],y(i,function(t){n.addButton(t)}),n.isDirtyExporting=!1);e(n,"destroy",n.destroyExport)};c.prototype.callbacks.push(function(n){n.renderExporting();e(n,"redraw",n.renderExporting);t(["exporting","navigation"],function(t){n[t]={update:function(r,u){n.isDirtyExporting=!0;i(!0,n.options[t],r);h(u,!0)&&n.redraw()}}})})})(n)});"use strict";$(document).on("statisticsDataUpdated",function(){});$(document).ready(function(){$.tooltipster.setDefaults({functionBefore:function(n,t){$(t.origin).addClass("tooltip-active")},functionAfter:function(n,t){$(t.origin).removeClass("tooltip-active")}})});var QueryPathWrapper=function(n){var t=function(t){var r=[],i={},f=function(n,t){var e,f,u;if(t||(r=[],i={}),n)for(e=n.split("|").filter(function(n){return n!=""}),f=0;f<e.length;f++)u=e[f].split(":"),r.push(u[0]),i[u[0]]=u.length>1?u[1].split(","):[]},o=function(n){for(var f=[],t,e,u=0;u<r.length;u++)t=r[u].toLowerCase(),e=i[t],(!n||t=="ar"||t=="manad")&&e.filter(function(n){return n!=""}).length>0?f.push(t+":"+e.join(",")):f.push(t);return f.join("|")},s=function(){return r.length==0},u=function(n){return r.indexOf(n)>-1},h=function(){return i.filter(function(n){return n!=""}).length==0},c=function(n){r.indexOf(n)==-1&&r.push(n);i[n]=[]},e=function(n,t){if(!u(n))return!1;var r=i[n];t&&r.indexOf(t)<0&&(r.push(t),i[n]=r)},l=function(t){if(!t||t.length==0)return!1;n.each(t,function(n,t){e(n,t)})},a=function(n){return u(n)?i[n]:[]},v=function(n,t){if(!u(n))return!1;var r=i[n],f=r.indexOf(t);f>-1&&r.splice(f,1)},y=function(n){if(!u(n))return!1;i[n]=[]},p=function(){for(var n=0;n<i.length;n++)i[n]=[]};return f(t),{loadQueryPath:f,isEmpty:s,getQueryPath:o,filterCount:h,addDimension:c,addFilter:e,addFilters:l,removeFilter:v,removeFilters:y,getFilter:a,clearFilters:p}},i=function(n){n||(n=t("ftj|Andel|AntalAnkelresor|Ar|Lan:06|Kommun|Kon"));console.log("qp innan",n.getQueryPath());n.addFilter("Ar",2016);console.log('qp.addFilter("Ar", 2016)',n.getQueryPath(),n.getQueryPath(!0));n.addFilter("Kon",1);console.log('qp.addFilter("Kon", 1)',n.getQueryPath(),n.getQueryPath(!0));n.addFilter("Kon",1);console.log('qp.addFilter("Kon", 1)',n.getQueryPath(),n.getQueryPath(!0));n.addFilter("Kon",2);console.log('qp.addFilter("Kon", 2)',n.getQueryPath(),n.getQueryPath(!0));n.addDimension("Kraxar");console.log('qp.addDimension("Kraxar")',n.getQueryPath(),n.getQueryPath(!0));n.addFilter("Kraxar","xxx");console.log('qp.addFilter("Kraxar", "xxx")',n.getQueryPath(),n.getQueryPath(!0));n.removeFilter("Kon",1);console.log('qp.removeFilter("Kon", 1)',n.getQueryPath(),n.getQueryPath(!0));n.removeFilters("Kon");console.log('qp.removeFilters("Kon")',n.getQueryPath(),n.getQueryPath(!0))};return{create:t,test:i}}(jQuery),StatisticsStructure=function(n){var t=function(t){return t=n.extend({language:"sv",structurePath:"",grene:"",onSuccess:function(){},onError:function(n){console.log("StatisticsStructure.getStructure error",t,n)},onComplete:function(){}},t),n.ajax({type:"GET",async:!0,url:"/api/statisticsstructure",dataType:"json",cache:!1,data:{structurePath:t.structurePath,selectedValue:"",language:t.language,grene:t.grene},success:function(n){t.onSuccess(n)},error:function(n,i,r){t.onError(n,i,r)},complete:function(){t.onComplete()}})};return{getStructure:t}}(jQuery),PresentationSettingsHelper=function(n){var t=function(n){var t,r,u,f;return n?(t={presentationName:"",arSettings:[]},r=n.split(":"),t.presentationName=r[0],r.length>1&&(u=/\,(?!(?:\w+\,?)+])/,f=new RegExp(u),t.arSettings=i(r[1]).split(f)),t):null},r=function(t){var r="";return t&&(r=t.presentationName,t.arSettings=n.map(t.arSettings,function(n){return i(n)}),t.arSettings instanceof Array&&t.arSettings.length>0&&(r+=":"+t.arSettings.join(","))),r},i=function(n){return(n+"").replace(/"/g,"")},u=function(n){return(n+"").replace(/(\[(?:\[[^\]]*\]|[^\[\]]*)*\])/g,function(n){return n.replace(/(\w+)/g,'"$1"')})},f=function(n,i){var r=t(n);return r.arSettings=i.split(","),r};return{encodeSettingsString:u,stringToSettings:t,settingsToString:r}}(jQuery),PresentationHelper=function(n){var t=function(t,i,r){var u=PresentationSettingsHelper.stringToSettings(i.InstanceKey);return r=n.extend(u,r),{queryPath:t,presentationData:i,presentationSettings:r}},i=function(t,i,r,u){var f,c,v;u=n.extend({measureNameFilter:[],rowbreakBeforeHidden:!1},u);var e="",s="",e=t.Product.Label+". ";i instanceof Array||(i=[]);var l=t.StatisticsData.Header.Column,o=l.filter(function(n){return n.Type=="M"&&(u.measureNameFilter.length==0||u.measureNameFilter.indexOf(n.Name)>=0)}),h=l.filter(function(n){return n.Type=="D"&&i.filter(function(t){return t.Name==n.Name}).length==0}),a=r.Translate("/presentations/headingsdata/and-separator"),y=r.Translate("/presentations/headingsdata/by-separator"),p=r.Translate("/presentations/headingsdata/in-separator");for(f=0;f<o.length;f++)s=f+1<o.length?f+2==o.length?" {0} ".format(a):", ":" {0} ".format(y),e+=o[f].Unit?"{0} {1} {2}{3}".format(o[f].Value,p,o[f].Unit,s):"{0}{1}".format(o[f].Value,s);for(f=0;f<h.length;f++)s=f+1<h.length?f+2==h.length?" {0} ".format(a):", ":". ",e+=h[f].Value.toLowerCase()+s;for(i.length>0&&u.rowbreakBeforeHidden&&(e+="<br/>"),f=0;f<i.length;f++)c=i[f].StructureItems.filter(function(n){return n.Type=="DV"}),v=c.length==1?c[0]:c.filter(function(n){return n.Selected&&n.Option})[0],e+="{0}: {1}. ".format(i[f].Label,v.Label);return e=e.replace(/\.{2,}/g,". "),e.replace(/\s\s+/g," ")};return{createPresentationWrapper:t,generatePresentationHeading:i}}(jQuery),ChartColorsHelper=function(){var n=["rgb(117,191,91)","rgb(29,147,183)","rgb(231,103,30)","rgb(185,0,102)","rgb(100,100,100)"],t=function(t,i){var f;i=i?i:10;var e,o=[],u=0,r=0;for(f=0;f<t;f++,r++)r+1>n.length&&(r=0,u++),e=u>0?Highcharts.Color(n[r]).brighten(u/i).get():n[r],o.push(e);return o};return{getChartColors:t}}(jQuery),DimensionFilterHelper=function(n){var t=function(t,i,r){function e(){var l=n("<div/>").attr("data-dimension-name",t.Name),h=null,c,i,y,f,a,v,e,s,u,p;if(t)for(c=t.StructureItems.length>9?Math.ceil(t.StructureItems.length/3):-1,i=t.StructureItems.filter(function(n){return n.Type=="DV"}),i=t.StructureItems.filter(function(n){return!(i.length>0&&r.hideTotals&&n.Name.startsWith("t"))}),y=i.filter(function(n){return n.Selected}),f=n('<div class="checkbox-list-container" />'),l.append(f),i.length>2&&r.allowMultiple&&(a=n("<div/>",{"class":"toggle-links-container"}).append(n('<a href="#" data-value="true" title="{0}">{1}<\/a>'.format(r.languageManager.Translate("/presentations/labels/selectall/tooltip"),r.languageManager.Translate("/presentations/labels/selectall/text")))).append(n('<a href="#" data-value="false" title="{0}">{1}<\/a>'.format(r.languageManager.Translate("/presentations/labels/deselectall/tooltip"),r.languageManager.Translate("/presentations/labels/deselectall/text")))),f.append(a)),v=r.allowMultiple?"checkbox":"radio",e=0,s=0;i&&s<i.length;s++)(u=i[s],u.Option)&&((c>0&&e%c==0||e==0)&&(h=n("<div/>",{"class":"checkbox-container"}),f.append(h)),e++,p="dim-"+u.Id,h.append(o(v,u.Id,r.allowMultiple?t.Name:"dimension",u.Name,u.Label,u.Selected)));return l}function o(t,i,r,u,f,e){return n('<div class="ui-button-container"><label for="ip{3}"><input type="{4}" name="{0}" id="ip{3}" value="{5}" {2} /><span class="{4}-icon"><\/span><span>{1}<\/span><\/label><\/div>'.format(r,f,e?' checked="checked"':"",i,t,u))}function s(){var t=[],r=n("input",u),i=n("input:checked",u);return r.length!=i.length&&i.each(function(){t.push(n(this).attr("value"))}),t}function h(n){var u,f,e,o;try{for(u=i.StatisticsData.QueryPath.split("|"),f=0;f<u.length;f++)e=u[f].split(":"),e[0]==t.Name&&(u[f]=n.length>0?"{0}:{1}".format(t.Name,n.join(",")):t.Name);o=QueryPathWrapper.create(u.join("|"));r.onFilterChanged(t,o)}catch(s){console.log("onFilterChanged - error 2",s)}}r=n.extend({allowMultiple:!0,hideTotals:!1,languageManager:null,onFilterChanged:function(){},popupHeading:""},r);var f=ModalPopup.loadModal({modalId:"filter-"+t.Name,buttons:{ok:{show:!0,text:r.languageManager.Translate("/presentations/labels/use"),onClick:function(){h(s());console.log("ok button onClick",n(this))}},close:{show:!0,resetOnClick:!0,onClick:function(){console.log("close button onClick",n(this))}}},modalClass:"column-filter-modal modal-lg",heading:r.popupHeading,htmlBody:e(),onClosed:function(){},removeAfterClose:!0,resetBodyOnClose:!0,modalSettings:{backdrop:"static",keyboard:!1,show:!1}}),u=n(f);u.on("click",".column-filter-modal .toggle-links-container a",function(t){n("input",n(this).closest(".checkbox-list-container")).prop("checked",n(this).data("value"));t.preventDefault()});f.modal("show")};return{openFilterModal:t}}(jQuery);languageManager_statisticspresentation=new ClientLanguageManager({langid:$("html").attr("lang"),startnode:"statisticspresentation"});$.fn.presentationOrganizer=function(n){function c(){for(var f,r=0;r<n.cols.length;r++)if(n.cols[r]<n.dimensions.length)i(n.dimensions[n.cols[r]],n.cols[r],u);else for(h(u,n.cols[r]),f=0;f<n.measures.length;f++)i(n.measures[f],"no",$(".sortable-measure",t))}function l(){for(var f,u=0;u<n.rows.length;u++)if(n.rows[u]<n.dimensions.length)i(n.dimensions[n.rows[u]],n.rows[u],r);else for(h(r,n.rows[u]),f=0;f<n.measures.length;f++)i(n.measures[f],"no",$(".sortable-measure",t))}function a(){for(var t=0;t<n.hidden.length;t++)i(n.dimensions[n.hidden[t]],n.hidden[t],s)}function h(n,t){var i=$('<ul class="sortable-measure sortable-sub-container" data-index="'+t+'"><\/ul>'),r;n.append(i);r=$('<li class="measure-title">{0} <span class="fa fa-arrows float-right"><\/span><\/li>'.format(languageManager_statisticspresentation.Translate("/presentations/barchart/dimensionbox/measure/label")));i.append(r)}function v(){var i=[],r=[];$(".sortable-col [data-index]",t).each(function(){i.push(parseInt($(this).attr("data-index")))});$(".sortable-row [data-index]",t).each(function(){r.push(parseInt($(this).attr("data-index")))});n.onSort(i,r)}function i(t,i,r){var u,c,l;if(t){var f="",e="",o="",s="",h="";i!="no"&&(o='data-index="'+i+'"',s='<span class="fa fa-filter"><\/span>',h=' <span class="fa fa-arrows"><\/span>');t.Type=="D"&&t.StructureItems&&(u=t.StructureItems.filter(function(n){return n.Selected&&n.Type=="DV"}).length,c=t.StructureItems.filter(function(n){return n.Option&&n.Type=="DV"}).length==1,u>0&&u!=t.StructureItems.length&&(f="({0})".format(u)),(u==1||c==1)&&(e="single-value"));l=$('<li class="dropdown show '+e+'" '+o+'>                    <a class="btn btn-secondary btn-sortable-filter" href="#" role="button">'+t.Label+'<span class="float-right">'+s+f+h+"<\/span><\/a>                <\/li>").data("structure-item",t).on("click",function(i){n.onFilterClick(t);$(".modal-footer > :not(:last-child)").focus();i.preventDefault()});r.append(l)}}var t,f,r,e,u,o,s;n=$.extend({dimensions:[],measures:[],rows:[],cols:[],hidden:[],onSort:function(){},onFilterClick:function(){},onError:function(){},invalidMovePopupHeading:"",invalidMovePopupContent:""},n);t=$(this);t.empty();t.addClass("presentation-organizer");f=$('<div class="col-sm-4"><h3>{0}<\/h3><\/div>'.format(languageManager_statisticspresentation.Translate("/presentations/barchart/dimensionbox/row/label")));t.append(f);r=$("<ul/>",{"class":"sortable-row sortable-container"});f.append(r);e=$('<div class="col-sm-4"><h3>{0}<\/h3><\/div>'.format(languageManager_statisticspresentation.Translate("/presentations/barchart/dimensionbox/column/label")));t.append(e);u=$("<ul/>",{"class":"sortable-col sortable-container"});e.append(u);o=$('<div class="col-sm-4"><h3>{0}<\/h3><\/div>'.format(languageManager_statisticspresentation.Translate("/presentations/barchart/dimensionbox/singlevaluedim/label")));t.append(o);s=$("<ul/>",{"class":"sortable-val sortable-container single-value-container"});o.append(s);c();l();a();$(".sortable-container",t).sortable({connectWith:$(".sortable-container",t),cursor:"move",activate:function(n,i){t.addClass(i.item.hasClass("single-value")?"dragging-single-value-variable":"dragging-multi-value-variable")},stop:function(){t.removeClass("dragging-single-value-variable dragging-multi-value-variable");v()},receive:function(t,i){$(t.target).hasClass("single-value-container")&&!i.item.hasClass("single-value")&&(i.sender.sortable("cancel"),ModalPopup.loadModal({modalClass:"error-message-modal",modalWidth:"450px",heading:n.invalidMovePopupHeading,htmlBody:"<p>{0}<\/p>".format(n.invalidMovePopupContent),buttons:{close:{show:!0}}}))}})};$.fn.diagramPresentationOrganizer=function(n){function h(t,i){var u;if(t){var f="",r=t.StructureItems.filter(function(n){return n.Option&&n.Selected&&n.Type=="DV"}).length,e=t.StructureItems.filter(function(n){return n.Option&&n.Type=="DV"}).length;r>0&&r!=e&&(f='<span class="filter-info">({0})<\/span> '.format(r));u=$('<li class="dropdown show">                <a class="btn btn-secondary btn-sortable-filter" href="#" role="button">                    {0}                    <span class="float-right">                        {1}<span class="fa fa-filter"><\/span>                        <span class="fa fa-arrows"><\/span>                    <\/span>                <\/a>            <\/li>'.format(t.Label,f)).data("structure-item",t);i.append(u);u.on("click",function(i){n.onFilterClick(t,$(this).closest("ul").data("list-name"));i.preventDefault()})}}function c(){var t=[],r=[],u=[];$(".sortable-categories li",i).each(function(){t.push($(this).data("structure-item"))});$(".sortable-series li",i).each(function(){r.push($(this).data("structure-item"))});$(".sortable-filters li",i).each(function(){u.push($(this).data("structure-item"))});n.onSort(t,r,u)}var i,r,u,f,e,o,s,t;for(n=$.extend({categoryDimensions:[],seriesDimensions:[],filterDimensions:[],onSort:function(){},onFilterClick:function(){},onError:function(){},invalidMovePopupHeading:"",invalidMovePopupContent:""},n),i=$(this),i.empty(),i.addClass("presentation-organizer"),r=$('<div class="col-sm-4"><h3>{0}<\/h3><\/div>'.format(languageManager_statisticspresentation.Translate("/presentations/barchart/dimensionbox/category/label"))),i.append(r),u=$("<ul/>",{"class":"sortable-categories sortable-ch-container"}).data("list-name","categories"),r.append(u),f=$('<div class="col-sm-4"><h3>{0}<\/h3><\/div>'.format(languageManager_statisticspresentation.Translate("/presentations/barchart/dimensionbox/series/label"))),i.append(f),e=$("<ul/>",{"class":"sortable-series sortable-ch-container"}).data("list-name","series"),f.append(e),n.filterDimensions.length>0&&(o=$('<div class="col-sm-4"><h3>{0}<\/h3><\/div>'.format(languageManager_statisticspresentation.Translate("/presentations/barchart/dimensionbox/filter/label"))),i.append(o),s=$("<ul/>",{"class":"sortable-filters sortable-ch-container single-value-container"}).data("list-name","filters"),o.append(s)),t=0;t<n.categoryDimensions.length;t++)h(n.categoryDimensions[t],u);for(t=0;t<n.seriesDimensions.length;t++)h(n.seriesDimensions[t],e);for(t=0;t<n.filterDimensions.length;t++)h(n.filterDimensions[t],s);$(".sortable-ch-container",i).sortable({sortable:!1,connectWith:$(".sortable-ch-container",i),cursor:"move",activate:function(n,t){i.addClass(t.item.hasClass("single-value")||!0?"dragging-single-value-variable":"dragging-multi-value-variable")},stop:function(){i.removeClass("dragging-single-value-variable dragging-multi-value-variable");c()},receive:function(n,t){($(n.target).hasClass("sortable-categories")||$(n.target).hasClass("sortable-series"))&&($(t.sender).hasClass("sortable-filters")&&($(t.item).data("structure-item").clearFilters=!0,$(".filter-info",$(t.item)).remove()),$(t.item).siblings().detach().appendTo(t.sender))}})};$.fn.progressLoader=function(n){n=$.extend({stop:!1,message:"Loading...",layout:"spinner",backgroundColor:"rgba(255,255,255,.7)",textColor:"#212529",spinnerBaseColor:"#ccc",spinnerColor:"#0083ab",delay:500},n);var t=$(this),i=t.data("timeout-id");i&&clearTimeout(i);n.stop===!0&&(n.delay=0,t.data("timeout-id",null));i=setTimeout(function(){var i=$('<div class="loader-container" style="background-color:'+n.backgroundColor+';"><\/div>');n.layout==="spinner"?i.append('<div class="spinner" style="border-color:'+n.spinnerBaseColor+"; border-top-color:"+n.spinnerColor+';"><\/div>'):n.layout==="text"?i.append('<div class="message" style="color:'+n.textColor+';">'+n.message+"<\/div>"):n.layout==="both"&&i.append('<div class="spinner-text"><div class="spinner" style="border-color:'+n.spinnerBaseColor+"; border-top-color:"+n.spinnerColor+';"><\/div><div class="message" style="color:'+n.textColor+';">'+n.message+"<\/div><\/div>");t.each(function(){if($(this).hasClass("show-loader")&&n.stop===!1)return!0;n.stop===!1?($(this).addClass("show-loader"),$(this).append(i)):($(".loader-container",$(this)).remove(),$(this).removeClass("show-loader"))})},n.delay);t.data("timeout-id",i)};$.fn.RenderPresentationGroupMenu=function(n,t){function u(){var e,s,h,u,o;if(f(),$(".tool-bar").removeClass("got-result"),i.empty(),n.DataCount>0){for($(".tool-bar").addClass("got-result"),u=0;u<n.PresentationGroups.length;u++)e=n.PresentationGroups[u],s=$("<a>",{href:"#",title:e.HasActivePresentations?"":languageManager_statisticspresentation.Translate("/groups/"+e.Name+"/messages/noactiveptions"),"class":"btn tool-btn view-button"+(e.HasActivePresentations?"":" disabled")+" "+e.ButtonClass,"data-name":e.Name}).html('<div class="btn-title"><div class="icon"><span class="'+e.IconClass+'"><\/span><\/div><div class="btn-text">'+e.Label+"<\/div><\/div>").data("group",e),i.append(s);h=$("<a>",{href:"#","class":"btn tool-btn save-button"}).html('<div class="btn-title"><div class="icon"><span class="fa fa-star-o"><\/span><\/div><div class="btn-text">Spara vy<\/div><\/div>');i.append(h);$(".view-button",i).on("click",function(n){n.preventDefault();var t=$(this);t.hasClass("disabled")||($(".view-button",i).removeClass("active"),t.addClass("active"),r($(this).data("group")))});$(".save-button",i).on("click",function(n){n.preventDefault();ModalPopup.loadModal({heading:"Spara vy",modalClass:"save-view-modal",modalWidth:"450px",htmlBody:'<p>Spara sidan som bokmärke eller kopiera adressen nedan:<\/p><input type="text" class="form-control" value="'+window.location.href+'">',buttons:{ok:{show:!0,text:'<span class="fa fa-bookmark-o"><\/span> Spara som bokmärke',onClick:function(){if(window.sidebar&&window.sidebar.addPanel)window.sidebar.addPanel(document.title,window.location.href,"");else if(window.external&&"AddFavorite"in window.external)window.external.AddFavorite(location.href,document.title);else{if(window.opera&&window.print)return this.title=document.title,!0;alert("Press "+(navigator.userAgent.toLowerCase().indexOf("mac")!=-1?"Command/Cmd":"CTRL")+" + D to bookmark this page.")}}},close:{show:!0}}})});if(t.presentationSettings)for(u=0;u<n.PresentationGroups.length;u++)if(o=n.PresentationGroups[u].Presentations.filter(function(n){return n.InstanceKey==t.presentationSettings.presentationName})[0],o&&o.Active){$('.view-button[data-name="'+n.PresentationGroups[u].Name+'"]').addClass("active");r(n.PresentationGroups[u],PresentationHelper.createPresentationWrapper(t.queryPath,o,t.presentationSettings));return}i.removeClass("hide")}}function r(i,r){var u=QueryPathWrapper.create(t.queryPath.getQueryPath(!0));t.presentationsContainer.RenderPresentationGroup(n,u,i,r,$("#presentations-container").attr("pageId"));$("html, body").animate({scrollTop:$("#presentations-container").offset().top-($(".ghost").height()>0?$(".ghost").height():$(".tool-bar").height())},1e3)}function f(){var t=$("#data-info-container");t.empty();t.removeClass("hide");n.DataCount==0?(t.addClass("no-data"),t.append("{0}".format(languageManager_statisticspresentation.Translate("/messages/selectionnoresult")))):(t.removeClass("no-data"),t.append("{0}".format(languageManager_statisticspresentation.Translate("/messages/selectionresult").format(n.DataCount))),$(".count",t).addClassDelayed("pulse-count",0,2500),$("ul#presentation-group-menu a.view-button:not(.disabled)").addClassDelayed("pulse-btn",0,2500),$("#presentation-group-menu").removeClass("hide"))}t=$.extend({presentationsContainer:$()},t);$(".tool-bar").sticky();t.presentationsContainer.empty();var i=$(this).first();u()};$.fn.RenderPresentationGroup=function(n,t,i,r,u){function a(n,t){function s(){}function r(n){var t=n.queryPath.getQueryPath()+"~"+PresentationSettingsHelper.settingsToString(n.presentationSettings);document.addLocationParameter("q",t);f.data("active-query",t);$(".view-button",f).removeClass("active");$('.view-button[data-name="'+n.presentationData.InstanceKey+'"]',f).data("presentation-data",n).addClass("active");$("div.presentation",f).addClass("hide");u.length>0&&u.remove();i.removeClass("hide")}var e="presentation-"+n.presentationData.InstanceKey,i=$("#"+e),u=$();if(i.length==0||t){i.length>0&&(u=i);i=$("<div>").addClass("presentation hide").attr("id",e);f.append(i);f.progressLoader();n.presentationData.PartialUrl?$.ajax({type:"GET",async:!0,url:n.presentationData.PartialUrl+"?queryPath="+n.queryPath.getQueryPath()+"&lang="+$("html").attr("lang"),dataType:"html",cache:!1,success:function(n){i.append(n);o()},error:function(n,t,i){console.log("RenderPresentation Error",n,t,i)},complete:function(){}}):o();function o(){i.RenderPresentation(n,{onQueryPathUpdated:function(t,i){s(null);n.queryPath=t;i?r(n):a(n,!0)},onSettingsChanged:function(t){n.presentationSettings.arSettings=t;r(n)},onSuccess:function(){r(n);f.progressLoader({stop:!0})},onError:function(n){console.log("RenderPresentation Plugin Error",n);f.progressLoader({stop:!0})}})}}else r(n)}var h=$(this).first(),c,f,l,o,s,e;if(!i){console.log("RenderPresentationGroup - groupData is empty");return}if(c=i.Name+"-group-container",f=$("#"+c,h),$(".group-container",h).addClass("hide"),f.length>0){f.removeClass("hide");document.addLocationParameter("q",f.data("active-query"));return}if(f=$('<div id="'+c+'" class="group-container">'),h.append(f),i.Presentations.length>0){for(l=r?r:PresentationHelper.createPresentationWrapper(t,i.Presentations[0]),o=$("<ul/>",{"class":"presentation-options"}),s=0;s<i.Presentations.length;s++)e=i.Presentations[s],!r&&e.IsDefault&&(l=PresentationHelper.createPresentationWrapper(t,e)),o.append($("<li>",{"class":"nav-item"}).append($("<a>",{href:"#",title:e.HasActivePresentations?"":languageManager_statisticspresentation.Translate("/presentations/"+e.InstanceKey+"/messages/inactiveption"),"class":"nav-link filter-button view-button"+(e.Active?"":" disabled"),"data-name":e.InstanceKey}).html(e.Label).data("presentation-data",PresentationHelper.createPresentationWrapper(t,e)).prepend($("<span>").addClass(e.IconClass)))),f.prepend(o);i.Name==="tables"&&(console.log("qurre",t.getQueryPath()),o.append($("<li>",{"class":"nav-item"}).append($("<a>",{href:"/api/statisticsexcel?query="+t.getQueryPath()+"&pageId="+u,"class":"nav-link filter-button view-button to-excel"}).html('<span class="fa fa-file-excel-o"><\/span> '+languageManager_statisticspresentation.Translate("/presentations/toexcel/labels/presentationlabel/text")).on("click",function(n){n.stopImmediatePropagation()}))));i.Presentations.length<=1&&o.hide();a(l);$(".view-button",f).on("click",function(n){n.preventDefault();var t=$(this);t.hasClass("disabled")||a(t.data("presentation-data"))})}else console.log('visa "ingen statistik"-meddelande')};$.fn.sticky=function(){var n=this,t;return n.before('<div class="ghost"><\/div>'),t=$(".ghost")[0],this.each(function(){function i(){var i=$(t).offset().top;$(window).scrollTop()>=i?(n.removeClass("sticky-bar-bottom"),$(t).css("height",n.height()),n.addClass("sticky-bar-top")):$(window).scrollTop()+$(window).height()<=i+n.height()?(n.removeClass("sticky-bar-top"),$(t).css("height",n.height()),n.addClass("sticky-bar-bottom")):(n.removeClass("sticky-bar-top"),n.removeClass("sticky-bar-bottom"),$(t).css("height",0))}i();$(window).scroll(function(){i()});$(window).resize(function(){i()})})};$.fn.RenderPresentation=function(n,t){function r(n){n&&$.ajax({url:n,dataType:"script",async:!1,cache:!1})}function u(n){n&&$("<link/>",{rel:"stylesheet",type:"text/css",href:n}).appendTo("head")}var i=$(this);t=$.extend({simpleMode:!1,onQueryPathUpdated:function(){},onSettingsChanged:function(){},onSuccess:function(){}},t);n.presentationData.ScriptUrl&&r(n.presentationData.ScriptUrl);n.presentationData.CssUrl&&u(n.presentationData.CssUrl);$.ajax({type:"GET",async:!0,url:n.presentationData.DataApiUrl+"?structurePath="+n.queryPath.getQueryPath()+"&language="+$("html").attr("lang"),dataType:"json",cache:!1,success:function(r){i[n.presentationData.PluginName](r,n,languageManager_statisticspresentation,{simpleMode:t.simpleMode,onQueryPathUpdated:t.onQueryPathUpdated,onSettingsChanged:t.onSettingsChanged,onSuccess:function(){i.addClass("loaded");t.onSuccess()},onError:function(n){console.log("RenderPresentation Plugin Error",n)}})},error:function(n,t,i){console.log("RenderPresentation Error",n,t,i)},complete:function(){}})};$(document).ready(function(){$(".card-chart .statistics").empty();$("div.card-statistics-result").each(function(){try{var t=JSON.parse($('input[name="presentation-data-json"]',$(this)).val()),i=PresentationSettingsHelper.stringToSettings($('input[name="presentation-data-settings"]',$(this)).val()),r=QueryPathWrapper.create($('input[name="presentation-data-querypath"]',$(this)).val()),u=PresentationHelper.createPresentationWrapper(r,t,i),n=$(".card-chart .statistics",$(this)).last();n.length==0&&(n=$("<div/>",{"class":"statistics"}).appendTo($(".card-chart",$(this))));n.progressLoader();n.RenderPresentation(u,{simpleMode:!0,onSuccess:function(){n.progressLoader({stop:!0})},onError:function(){n.progressLoader({stop:!0})}})}catch(f){console.log("STATISTIKVISNINGSBLOCK",f)}})}),function(n){n.fn.highchartTable=function(){var u=["column","line","area","spline","pie"],r=function(t,i){var e=n(t).data(i),r,u,f,o;if(typeof e!="undefined"){for(r=e.split("."),u=window[r[0]],f=1,o=r.length;f<o;f++)u=u[r[f]];return u}};return this.each(function(){var s=n(this),f=n(s),et=1,ot=n("caption",s),st=ot.length?n(ot[0]).text():"",h,l,w,v,a,b,y,o,tt,e,it,p,c,ut,ft;if(f.data("graph-container-before")!=1){if(l=f.data("graph-container"),!l)throw"graph-container data attribute is mandatory";if(l[0]==="#"||l.indexOf("..")===-1)h=n(l);else{for(w=s,v=l;v.indexOf("..")!==-1;)v=v.replace(/^.. /,""),w=w.parent();h=n(v,w)}if(h.length!==1)throw"graph-container is not available in this DOM or available multiple times";h=h[0]}else f.before("<div><\/div>"),h=f.prev(),h=h[0];if(a=f.data("graph-type"),!a)throw"graph-type data attribute is mandatory";if(n.inArray(a,u)==-1)throw"graph-container data attribute must be one of "+u.join(", ");b=f.data("graph-stacking");b||(b="normal");var ri=f.data("graph-datalabels-enabled"),d=f.data("graph-inverted")==1,ui=n("thead th",s),g=[],ht=[],nt=0,ct=!1;ui.each(function(t,i){var r=n(i),y=r.data("graph-value-scale"),s=r.data("graph-type"),c,h,o,l,e,v;n.inArray(s,u)==-1&&(s=a);c=r.data("graph-stack-group");c&&(ct=!0);h=r.data("graph-datalabels-enabled");typeof h=="undefined"&&(h=ri);o=r.data("graph-yaxis");typeof o!="undefined"&&o=="1"&&(et=2);l=r.data("graph-skip")==1;l&&(nt=nt+1);e={libelle:r.text(),skip:l,indexTd:t-nt-1,color:r.data("graph-color"),visible:!r.data("graph-hidden"),yAxis:typeof o!="undefined"?o:0,dashStyle:r.data("graph-dash-style")||"solid",dataLabelsEnabled:h==1,dataLabelsColor:r.data("graph-datalabels-color")||f.data("graph-datalabels-color")};v=r.data("graph-vline-x");typeof v=="undefined"?(e.scale=typeof y!="undefined"?parseFloat(y):1,e.graphType=s=="column"&&d?"bar":s,e.stack=c,e.unit=r.data("graph-unit"),g[t]=e):(e.x=v,e.height=r.data("graph-vline-height"),e.name=r.data("graph-vline-name"),ht[t]=e)});y=[];n(g).each(function(n,t){var i,u;n==0||t.skip||(i={name:t.libelle+(t.unit?" ("+t.unit+")":""),data:[],type:t.graphType,stack:t.stack,color:t.color,visible:t.visible,yAxis:t.yAxis,dashStyle:t.dashStyle,marker:{enabled:!1},dataLabels:{enabled:t.dataLabelsEnabled,color:t.dataLabelsColor,align:f.data("graph-datalabels-align")||(a=="column"&&d==1?undefined:"center")}},t.dataLabelsEnabled&&(u=r(s,"graph-datalabels-formatter"),u&&(i.dataLabels.formatter=function(){return u(this.y)})),y.push(i))});n(ht).each(function(n,t){typeof t=="undefined"||t.skip||y.push({name:t.libelle,data:[{x:t.x,y:0,name:t.name},{x:t.x,y:t.height,name:t.name}],type:"spline",color:t.color,visible:t.visible,marker:{enabled:!1}})});var k=[],lt=r(s,"graph-point-callback"),at=f.data("graph-xaxis-type")=="datetime",fi=n("tbody:first tr",s);for(fi.each(function(t,r){if(!n(r).data("graph-skip")){var u=n("td",r);u.each(function(u,e){var l,a=g[u],o,s,v,nt,p,h,w,b,c,d;a.skip||(o=n(e),u==0?(l=o.text(),k.push(l)):(s=o.text(),v=y[a.indexTd],s.length==0?at||v.data.push(null):(nt=s.replace(/\s/g,"").replace(/,/,"."),p={value:nt,rawValue:s,td:o,tr:n(r),indexTd:u,indexTr:t},f.trigger("highchartTable.cleanValue",p),l=Math.round(parseFloat(p.value)*a.scale*100)/100,h=o.data("graph-x"),at&&(h=n("td",n(r)).first().text(),w=i(h),h=w.getTime()-w.getTimezoneOffset()*6e4),b=o.data("graph-name"),c={name:typeof b!="undefined"?b:s,y:l,x:h},lt&&(c.events={click:function(){return lt(this)}}),a.graphType==="pie"&&o.data("graph-item-highlight")&&(c.sliced=1),d=o.data("graph-item-color"),typeof d!="undefined"&&(c.color=d),v.data.push(c))))})}}),o=function(n,t,i){var r=n.data("graph-yaxis-"+t+"-"+i);return typeof r!="undefined"?r:n.data("graph-yaxis"+t+"-"+i)},tt=[],e=1;e<=et;e++)it={title:{text:typeof o(f,e,"title-text")!="undefined"?o(f,e,"title-text"):null},max:typeof o(f,e,"max")!="undefined"?o(f,e,"max"):null,min:typeof o(f,e,"min")!="undefined"?o(f,e,"min"):null,reversed:o(f,e,"reversed")=="1",opposite:o(f,e,"opposite")=="1",tickInterval:o(f,e,"tick-interval")||null,labels:{rotation:o(f,e,"rotation")||0},startOnTick:o(f,e,"start-on-tick")!="0",endOnTick:o(f,e,"end-on-tick")!="0",stackLabels:{enabled:o(f,e,"stacklabels-enabled")=="1"},gridLineInterpolation:o(f,e,"grid-line-interpolation")||null},p=r(s,"graph-yaxis-"+e+"-formatter-callback"),p||(p=r(s,"graph-yaxis"+e+"-formatter-callback")),p&&(it.labels.formatter=function(){return p(this.value)}),tt.push(it);var vt=["#4572A7","#AA4643","#89A54E","#80699B","#3D96AE","#DB843D","#92A8CD","#A47D7C","#B5CA92"],yt=[],rt=typeof Highcharts.theme!="undefined"&&typeof Highcharts.theme.colors!="undefined"?Highcharts.theme.colors:[],pt=f.data("graph-line-shadow"),wt=f.data("graph-line-width")||2,ei=Math.max(vt.length,rt.length);for(c=0;c<ei;c++)ut="graph-color-"+(c+1),yt.push(typeof f.data(ut)!="undefined"?f.data(ut):typeof rt[c]!="undefined"?rt[c]:vt[c]);var bt=f.data("graph-margin-top"),kt=f.data("graph-margin-right"),dt=f.data("graph-margin-bottom"),gt=f.data("graph-margin-left"),ni=f.data("graph-xaxis-labels-enabled"),ti={},ii=f.data("graph-xaxis-labels-font-size");typeof ii!="undefined"&&(ti.fontSize=ii);ft={colors:yt,chart:{renderTo:h,inverted:d,marginTop:typeof bt!="undefined"?bt:null,marginRight:typeof kt!="undefined"?kt:null,marginBottom:typeof dt!="undefined"?dt:null,marginLeft:typeof gt!="undefined"?gt:null,spacingTop:f.data("graph-spacing-top")||10,height:f.data("graph-height")||null,zoomType:f.data("graph-zoom-type")||null,polar:f.data("graph-polar")||null},title:{text:st},subtitle:{text:f.data("graph-subtitle-text")||""},legend:{enabled:f.data("graph-legend-disabled")!="1",layout:f.data("graph-legend-layout")||"horizontal",symbolWidth:f.data("graph-legend-width")||30,x:f.data("graph-legend-x")||15,y:f.data("graph-legend-y")||0},xAxis:{categories:f.data("graph-xaxis-type")!="datetime"?k:undefined,type:f.data("graph-xaxis-type")=="datetime"?"datetime":undefined,reversed:f.data("graph-xaxis-reversed")=="1",opposite:f.data("graph-xaxis-opposite")=="1",showLastLabel:typeof f.data("graph-xaxis-show-last-label")!="undefined"?f.data("graph-xaxis-show-last-label"):!0,tickInterval:f.data("graph-xaxis-tick-interval")||null,dateTimeLabelFormats:{second:"%e. %b",minute:"%e. %b",hour:"%e. %b",day:"%e. %b",week:"%e. %b",month:"%e. %b",year:"%e. %b"},labels:{rotation:f.data("graph-xaxis-rotation")||undefined,align:f.data("graph-xaxis-align")||undefined,enabled:typeof ni!="undefined"?ni:!0,style:ti},startOnTick:f.data("graph-xaxis-start-on-tick"),endOnTick:f.data("graph-xaxis-end-on-tick"),min:t(s,"min"),max:t(s,"max"),alternateGridColor:f.data("graph-xaxis-alternateGridColor")||null,title:{text:f.data("graph-xaxis-title-text")||null},gridLineWidth:f.data("graph-xaxis-gridLine-width")||0,gridLineDashStyle:f.data("graph-xaxis-gridLine-style")||"ShortDot",tickmarkPlacement:f.data("graph-xaxis-tickmark-placement")||"between",lineWidth:f.data("graph-xaxis-line-width")||0},yAxis:tt,tooltip:{formatter:function(){if(f.data("graph-xaxis-type")=="datetime")return"<b>"+this.series.name+"<\/b><br/>"+Highcharts.dateFormat("%e. %b",this.x)+" : "+this.y;var n=typeof k[this.point.x]!="undefined"?k[this.point.x]:this.point.x;return a==="pie"?"<strong>"+this.series.name+"<\/strong><br />"+n+" : "+this.point.y:"<strong>"+this.series.name+"<\/strong><br />"+n+" : "+this.point.name}},credits:{enabled:!1},plotOptions:{line:{dataLabels:{enabled:!0},lineWidth:wt},area:{lineWidth:wt,shadow:typeof pt!="undefined"?pt:!0,fillOpacity:f.data("graph-area-fillOpacity")||.75},pie:{allowPointSelect:!0,dataLabels:{enabled:!0},showInLegend:f.data("graph-pie-show-in-legend")=="1",size:"80%"},series:{animation:!1,stickyTracking:!1,stacking:ct?b:null,groupPadding:f.data("graph-group-padding")||0}},series:y,exporting:{filename:st.replace(/ /g,"_"),buttons:{exportButton:{menuItems:null,onclick:function(){this.exportChart()}}}}};f.trigger("highchartTable.beforeRender",ft);new Highcharts.Chart(ft)}),this};var t=function(t,r){var u=n(t).data("graph-xaxis-"+r),f;return typeof u!="undefined"?n(t).data("graph-xaxis-type")=="datetime"?(f=i(u),f.getTime()-f.getTimezoneOffset()*6e4):u:null},i=function(n){var t=n.split(" "),i=t[0].split("-"),u=null,f=null,r;return t[1]&&(r=t[1].split(":"),u=parseInt(r[0],10),f=parseInt(r[1],10)),new Date(parseInt(i[0],10),parseInt(i[1],10)-1,parseInt(i[2],10),u,f)}}(jQuery);!function(n,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(n)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(n){function s(n){this.$container;this.constraints=null;this.__$tooltip;this.__init(n)}function e(t,i){var r=!0;return n.each(t,function(n){if(void 0===i[n]||t[n]!==i[n])return(r=!1,!1)}),r}function r(i){var r=i.attr("id"),u=r?t.window.document.getElementById(r):null;return u?u===i[0]:n.contains(t.window.document.body,i[0])}function c(){var t;if(!i)return!1;var f=i.document.body||i.document.documentElement,r=f.style,n="transition",u=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof r[n])return!0;for(n=n.charAt(0).toUpperCase()+n.substr(1),t=0;t<u.length;t++)if("string"==typeof r[u[t]+n])return!0;return!1}var u={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},i="undefined"!=typeof window?window:null,t={hasTouchCapability:!(!i||!("ontouchstart"in i||i.DocumentTouch&&i.document instanceof i.DocumentTouch||i.navigator.maxTouchPoints)),hasTransitions:c(),IE:!1,semVer:"4.2.6",window:i},h=function(){this.__$emitterPrivate=n({});this.__$emitterPublic=n({});this.__instancesLatestArr=[];this.__plugins={};this._env=t},f,o;return h.prototype={__bridge:function(t,i,r){var e,f;return i[r]||(e=function(){},e.prototype=t,f=new e,f.__init&&f.__init(i),n.each(t,function(n){0!=n.indexOf("__")&&(i[n]?u.debug&&console.log("The "+n+" method of the "+r+" plugin conflicts with another plugin or native methods"):(i[n]=function(){return f[n].apply(f,Array.prototype.slice.apply(arguments))},i[n].bridged=f))}),i[r]=f),this},__setWindow:function(n){return t.window=n,this},_getRuler:function(n){return new s(n)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(t){var i=this,r,u;if("string"==typeof t)return r=t,u=null,r.indexOf(".")>0?u=i.__plugins[r]:n.each(i.__plugins,function(n,t){if(t.name.substring(t.name.length-r.length-1)=="."+r)return(u=t,!1)}),u;if(t.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return i.__plugins[t.name]=t,t.core&&i.__bridge(t.core,i,t.name),this},_trigger:function(){var n=Array.prototype.slice.apply(arguments);return"string"==typeof n[0]&&(n[0]={type:n[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,n),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,n),this},instances:function(t){var i=[],r=t||".tooltipstered";return n(r).each(function(){var t=n(this),r=t.data("tooltipster-ns");r&&n.each(r,function(n,r){i.push(t.data(r))})}),i},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(t){var i=t?t+" ":"";return n(i+".tooltipstered").toArray()},setDefaults:function(t){return n.extend(u,t),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},n.tooltipster=new h,n.Tooltipster=function(t,i){this.__callbacks={close:[],open:[]};this.__closingTime;this.__Content;this.__contentBcr;this.__destroyed=!1;this.__$emitterPrivate=n({});this.__$emitterPublic=n({});this.__enabled=!0;this.__garbageCollector;this.__Geometry;this.__lastPosition;this.__namespace="tooltipster-"+Math.round(1e6*Math.random());this.__options;this.__$originParents;this.__pointerIsOverOrigin=!1;this.__previousThemes=[];this.__state="closed";this.__timeouts={close:[],open:null};this.__touchEvents=[];this.__tracker=null;this._$origin;this._$tooltip;this.__init(t,i)},n.Tooltipster.prototype={__init:function(i,r){var f=this,e,o,s;(f._$origin=n(i),f.__options=n.extend(!0,{},u,r),f.__optionsFormat(),!t.IE||t.IE>=f.__options.IEmin)?(e=null,(void 0===f._$origin.data("tooltipster-initialTitle")&&(e=f._$origin.attr("title"),void 0===e&&(e=null),f._$origin.data("tooltipster-initialTitle",e)),null!==f.__options.content)?f.__contentSet(f.__options.content):(s=f._$origin.attr("data-tooltip-content"),s&&(o=n(s)),o&&o[0]?f.__contentSet(o.first()):f.__contentSet(e)),f._$origin.removeAttr("title").addClass("tooltipstered"),f.__prepareOrigin(),f.__prepareGC(),n.each(f.__options.plugins,function(n,t){f._plug(t)}),t.hasTouchCapability&&n(t.window.document.body).on("touchmove."+f.__namespace+"-triggerOpen",function(n){f._touchRecordEvent(n)}),f._on("created",function(){f.__prepareTooltip()})._on("repositioned",function(n){f.__lastPosition=n.position})):f.__options.disabled=!0},__contentInsert:function(){var n=this,i=n._$tooltip.find(".tooltipster-content"),t=n.__Content,r=function(n){t=n};return n._trigger({type:"format",content:n.__Content,format:r}),n.__options.functionFormat&&(t=n.__options.functionFormat.call(n,n,{origin:n._$origin[0]},n.__Content)),"string"!=typeof t||n.__options.contentAsHTML?i.empty().append(t):i.text(t),n},__contentSet:function(t){return t instanceof n&&this.__options.contentCloning&&(t=t.clone(!0)),this.__Content=t,this._trigger({type:"updated",content:t}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.");},__geometry:function(){var e=this,c=e._$origin,y=e._$origin.is("area"),k,p,r,u,it;y&&(k=e._$origin.parent().attr("name"),c=n('img[usemap="#'+k+'"]'));var f=c[0].getBoundingClientRect(),d=n(t.window.document),g=n(t.window),l=c,i={available:{document:null,window:null},document:{size:{height:d.height(),width:d.width()}},window:{scroll:{left:t.window.scrollX||t.window.document.documentElement.scrollLeft,top:t.window.scrollY||t.window.document.documentElement.scrollTop},size:{height:g.height(),width:g.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:y?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(y&&(p=e._$origin.attr("shape"),r=e._$origin.attr("coords"),r&&(r=r.split(","),n.map(r,function(n,t){r[t]=parseInt(n)})),"default"!=p))switch(p){case"circle":var rt=r[0],ut=r[1],w=r[2],ft=ut-w,et=rt-w;i.origin.size.height=2*w;i.origin.size.width=i.origin.size.height;i.origin.windowOffset.left+=et;i.origin.windowOffset.top+=ft;break;case"rect":var nt=r[0],tt=r[1],ot=r[2],st=r[3];i.origin.size.height=st-tt;i.origin.size.width=ot-nt;i.origin.windowOffset.left+=nt;i.origin.windowOffset.top+=tt;break;case"poly":for(var o=0,s=0,a=0,v=0,b="even",h=0;h<r.length;h++)u=r[h],"even"==b?(u>a&&(a=u,0===h&&(o=a)),o>u&&(o=u),b="odd"):(u>v&&(v=u,1==h&&(s=v)),s>u&&(s=u),b="even");i.origin.size.height=v-s;i.origin.size.width=a-o;i.origin.windowOffset.left+=o;i.origin.windowOffset.top+=s}for(it=function(n){i.origin.size.height=n.height;i.origin.windowOffset.left=n.left;i.origin.windowOffset.top=n.top;i.origin.size.width=n.width},e._trigger({type:"geometry",edit:it,geometry:{height:i.origin.size.height,left:i.origin.windowOffset.left,top:i.origin.windowOffset.top,width:i.origin.size.width}}),i.origin.windowOffset.right=i.origin.windowOffset.left+i.origin.size.width,i.origin.windowOffset.bottom=i.origin.windowOffset.top+i.origin.size.height,i.origin.offset.left=i.origin.windowOffset.left+i.window.scroll.left,i.origin.offset.top=i.origin.windowOffset.top+i.window.scroll.top,i.origin.offset.bottom=i.origin.offset.top+i.origin.size.height,i.origin.offset.right=i.origin.offset.left+i.origin.size.width,i.available.document={bottom:{height:i.document.size.height-i.origin.offset.bottom,width:i.document.size.width},left:{height:i.document.size.height,width:i.origin.offset.left},right:{height:i.document.size.height,width:i.document.size.width-i.origin.offset.right},top:{height:i.origin.offset.top,width:i.document.size.width}},i.available.window={bottom:{height:Math.max(i.window.size.height-Math.max(i.origin.windowOffset.bottom,0),0),width:i.window.size.width},left:{height:i.window.size.height,width:Math.max(i.origin.windowOffset.left,0)},right:{height:i.window.size.height,width:Math.max(i.window.size.width-Math.max(i.origin.windowOffset.right,0),0)},top:{height:Math.max(i.origin.windowOffset.top,0),width:i.window.size.width}};"html"!=l[0].tagName.toLowerCase();){if("fixed"==l.css("position")){i.origin.fixedLineage=!0;break}l=l.parent()}return i},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=n(t.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=n(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var t=this;return t.__options.selfDestruction?t.__garbageCollector=setInterval(function(){var i=(new Date).getTime();t.__touchEvents=n.grep(t.__touchEvents,function(n){return i-n.time>6e4});r(t._$origin)||t.close(function(){t.destroy()})},2e4):clearInterval(t.__garbageCollector),t},__prepareOrigin:function(){var n=this,i;return(n._$origin.off("."+n.__namespace+"-triggerOpen"),t.hasTouchCapability&&n._$origin.on("touchstart."+n.__namespace+"-triggerOpen touchend."+n.__namespace+"-triggerOpen touchcancel."+n.__namespace+"-triggerOpen",function(t){n._touchRecordEvent(t)}),n.__options.triggerOpen.click||n.__options.triggerOpen.tap&&t.hasTouchCapability)&&(i="",n.__options.triggerOpen.click&&(i+="click."+n.__namespace+"-triggerOpen "),n.__options.triggerOpen.tap&&t.hasTouchCapability&&(i+="touchend."+n.__namespace+"-triggerOpen"),n._$origin.on(i,function(t){n._touchIsMeaningfulEvent(t)&&n._open(t)})),(n.__options.triggerOpen.mouseenter||n.__options.triggerOpen.touchstart&&t.hasTouchCapability)&&(i="",n.__options.triggerOpen.mouseenter&&(i+="mouseenter."+n.__namespace+"-triggerOpen "),n.__options.triggerOpen.touchstart&&t.hasTouchCapability&&(i+="touchstart."+n.__namespace+"-triggerOpen"),n._$origin.on(i,function(t){!n._touchIsTouchEvent(t)&&n._touchIsEmulatedEvent(t)||(n.__pointerIsOverOrigin=!0,n._openShortly(t))})),(n.__options.triggerClose.mouseleave||n.__options.triggerClose.touchleave&&t.hasTouchCapability)&&(i="",n.__options.triggerClose.mouseleave&&(i+="mouseleave."+n.__namespace+"-triggerOpen "),n.__options.triggerClose.touchleave&&t.hasTouchCapability&&(i+="touchend."+n.__namespace+"-triggerOpen touchcancel."+n.__namespace+"-triggerOpen"),n._$origin.on(i,function(t){n._touchIsMeaningfulEvent(t)&&(n.__pointerIsOverOrigin=!1)})),n},__prepareTooltip:function(){var t=this,i=t.__options.interactive?"auto":"";return t._$tooltip.attr("id",t.__namespace).css({"pointer-events":i,zIndex:t.__options.zIndex}),n.each(t.__previousThemes,function(n,i){t._$tooltip.removeClass(i)}),n.each(t.__options.theme,function(n,i){t._$tooltip.addClass(i)}),t.__previousThemes=n.merge([],t.__options.theme),t},__scrollHandler:function(i){var u=this,f,e,o,s;return u.__options.triggerClose.scroll?u._close(i):r(u._$origin)&&r(u._$tooltip)&&(f=null,i.target===t.window.document?u.__Geometry.origin.fixedLineage||u.__options.repositionOnScroll&&u.reposition(i):(f=u.__geometry(),e=!1,("fixed"!=u._$origin.css("position")&&u.__$originParents.each(function(t,i){var u=n(i),o=u.css("overflow-x"),s=u.css("overflow-y"),r;return("visible"!=o||"visible"!=s)&&((r=i.getBoundingClientRect(),"visible"!=o&&(f.origin.windowOffset.left<r.left||f.origin.windowOffset.right>r.right))||"visible"!=s&&(f.origin.windowOffset.top<r.top||f.origin.windowOffset.bottom>r.bottom))?(e=!0,!1):"fixed"==u.css("position")?!1:void 0}),e)?u._$tooltip.css("visibility","hidden"):(u._$tooltip.css("visibility","visible"),u.__options.repositionOnScroll)?u.reposition(i):(o=f.origin.offset.left-u.__Geometry.origin.offset.left,s=f.origin.offset.top-u.__Geometry.origin.offset.top,u._$tooltip.css({left:u.__lastPosition.coord.left+o,top:u.__lastPosition.coord.top+s}))),u._trigger({type:"scroll",event:i,geo:f})),u},__stateSet:function(n){return this.__state=n,this._trigger({type:"state",state:n}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,n.each(this.__timeouts.close,function(n,t){clearTimeout(t)}),this.__timeouts.close=[],this},__trackerStart:function(){var n=this,t=n._$tooltip.find(".tooltipster-content");return n.__options.trackTooltip&&(n.__contentBcr=t[0].getBoundingClientRect()),n.__tracker=setInterval(function(){var i,u,f;r(n._$origin)&&r(n._$tooltip)?(n.__options.trackOrigin&&(i=n.__geometry(),u=!1,e(i.origin.size,n.__Geometry.origin.size)&&(n.__Geometry.origin.fixedLineage?e(i.origin.windowOffset,n.__Geometry.origin.windowOffset)&&(u=!0):e(i.origin.offset,n.__Geometry.origin.offset)&&(u=!0)),u||(n.__options.triggerClose.mouseleave?n._close():n.reposition())),n.__options.trackTooltip&&(f=t[0].getBoundingClientRect(),f.height===n.__contentBcr.height&&f.width===n.__contentBcr.width||(n.reposition(),n.__contentBcr=f))):n._close()},n.__options.trackerInterval),n},_close:function(i,r,u){var f=this,s=!0,e,o;if(f._trigger({type:"close",event:i,stop:function(){s=!1}}),s||u)if(r&&f.__callbacks.close.push(r),f.__callbacks.open=[],f.__timeoutsClear(),e=function(){n.each(f.__callbacks.close,function(n,t){t.call(f,f,{event:i,origin:f._$origin[0]})});f.__callbacks.close=[]},"closed"!=f.__state){var h=!0,l=new Date,a=l.getTime(),c=a+f.__options.animationDuration[1];("disappearing"==f.__state&&c>f.__closingTime&&f.__options.animationDuration[1]>0&&(h=!1),h)&&(f.__closingTime=c,"disappearing"!=f.__state&&f.__stateSet("disappearing"),o=function(){clearInterval(f.__tracker);f._trigger({type:"closing",event:i});f._$tooltip.off("."+f.__namespace+"-triggerClose").removeClass("tooltipster-dying");n(t.window).off("."+f.__namespace+"-triggerClose");f.__$originParents.each(function(t,i){n(i).off("scroll."+f.__namespace+"-triggerClose")});f.__$originParents=null;n(t.window.document.body).off("."+f.__namespace+"-triggerClose");f._$origin.off("."+f.__namespace+"-triggerClose");f._off("dismissable");f.__stateSet("closed");f._trigger({type:"after",event:i});f.__options.functionAfter&&f.__options.functionAfter.call(f,f,{event:i,origin:f._$origin[0]});e()},t.hasTransitions?(f._$tooltip.css({"-moz-animation-duration":f.__options.animationDuration[1]+"ms","-ms-animation-duration":f.__options.animationDuration[1]+"ms","-o-animation-duration":f.__options.animationDuration[1]+"ms","-webkit-animation-duration":f.__options.animationDuration[1]+"ms","animation-duration":f.__options.animationDuration[1]+"ms","transition-duration":f.__options.animationDuration[1]+"ms"}),f._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),f.__options.animationDuration[1]>0&&f._$tooltip.delay(f.__options.animationDuration[1]),f._$tooltip.queue(o)):f._$tooltip.stop().fadeOut(f.__options.animationDuration[1],o))}else e();return f},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(i,u){var f=this,s,h,e,o;if(!f.__destroying&&r(f._$origin)&&f.__enabled&&(s=!0,"closed"==f.__state&&(f._trigger({type:"before",event:i,stop:function(){s=!1}}),s&&f.__options.functionBefore&&(s=f.__options.functionBefore.call(f,f,{event:i,origin:f._$origin[0]}))),s!==!1&&null!==f.__Content)){if(u&&f.__callbacks.open.push(u),f.__callbacks.close=[],f.__timeoutsClear(),e=function(){"stable"!=f.__state&&f.__stateSet("stable");n.each(f.__callbacks.open,function(n,t){t.call(f,f,{origin:f._$origin[0],tooltip:f._$tooltip[0]})});f.__callbacks.open=[]},"closed"!==f.__state)h=0,"disappearing"===f.__state?(f.__stateSet("appearing"),t.hasTransitions?(f._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),f.__options.animationDuration[0]>0&&f._$tooltip.delay(f.__options.animationDuration[0]),f._$tooltip.queue(e)):f._$tooltip.stop().fadeIn(e)):"stable"==f.__state&&e();else{if(f.__stateSet("appearing"),h=f.__options.animationDuration[0],f.__contentInsert(),f.reposition(i,!0),t.hasTransitions?(f._$tooltip.addClass("tooltipster-"+f.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":f.__options.animationDuration[0]+"ms","-ms-animation-duration":f.__options.animationDuration[0]+"ms","-o-animation-duration":f.__options.animationDuration[0]+"ms","-webkit-animation-duration":f.__options.animationDuration[0]+"ms","animation-duration":f.__options.animationDuration[0]+"ms","transition-duration":f.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=f.__state&&(f._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),f.__options.animationDuration[0]>0&&f._$tooltip.delay(f.__options.animationDuration[0]),f._$tooltip.queue(e))},0)):f._$tooltip.css("display","none").fadeIn(f.__options.animationDuration[0],e),f.__trackerStart(),n(t.window).on("resize."+f.__namespace+"-triggerClose",function(t){var i=n(document.activeElement);(i.is("input")||i.is("textarea"))&&n.contains(f._$tooltip[0],i[0])||f.reposition(t)}).on("scroll."+f.__namespace+"-triggerClose",function(n){f.__scrollHandler(n)}),f.__$originParents=f._$origin.parents(),f.__$originParents.each(function(t,i){n(i).on("scroll."+f.__namespace+"-triggerClose",function(n){f.__scrollHandler(n)})}),f.__options.triggerClose.mouseleave||f.__options.triggerClose.touchleave&&t.hasTouchCapability){f._on("dismissable",function(n){n.dismissable?n.delay?(o=setTimeout(function(){f._close(n.event)},n.delay),f.__timeouts.close.push(o)):f._close(n):clearTimeout(o)});var c=f._$origin,l="",a="",o=null;f.__options.interactive&&(c=c.add(f._$tooltip));f.__options.triggerClose.mouseleave&&(l+="mouseenter."+f.__namespace+"-triggerClose ",a+="mouseleave."+f.__namespace+"-triggerClose ");f.__options.triggerClose.touchleave&&t.hasTouchCapability&&(l+="touchstart."+f.__namespace+"-triggerClose",a+="touchend."+f.__namespace+"-triggerClose touchcancel."+f.__namespace+"-triggerClose");c.on(a,function(n){if(f._touchIsTouchEvent(n)||!f._touchIsEmulatedEvent(n)){var t="mouseleave"==n.type?f.__options.delay:f.__options.delayTouch;f._trigger({delay:t[1],dismissable:!0,event:n,type:"dismissable"})}}).on(l,function(n){!f._touchIsTouchEvent(n)&&f._touchIsEmulatedEvent(n)||f._trigger({dismissable:!1,event:n,type:"dismissable"})})}f.__options.triggerClose.originClick&&f._$origin.on("click."+f.__namespace+"-triggerClose",function(n){f._touchIsTouchEvent(n)||f._touchIsEmulatedEvent(n)||f._close(n)});(f.__options.triggerClose.click||f.__options.triggerClose.tap&&t.hasTouchCapability)&&setTimeout(function(){if("closed"!=f.__state){var i="",r=n(t.window.document.body);f.__options.triggerClose.click&&(i+="click."+f.__namespace+"-triggerClose ");f.__options.triggerClose.tap&&t.hasTouchCapability&&(i+="touchend."+f.__namespace+"-triggerClose");r.on(i,function(t){f._touchIsMeaningfulEvent(t)&&(f._touchRecordEvent(t),f.__options.interactive&&n.contains(f._$tooltip[0],t.target)||f._close(t))});f.__options.triggerClose.tap&&t.hasTouchCapability&&r.on("touchstart."+f.__namespace+"-triggerClose",function(n){f._touchRecordEvent(n)})}},0);f._trigger("ready");f.__options.functionReady&&f.__options.functionReady.call(f,f,{origin:f._$origin[0],tooltip:f._$tooltip[0]})}f.__options.timer>0&&(o=setTimeout(function(){f._close()},f.__options.timer+h),f.__timeouts.close.push(o))}return f},_openShortly:function(n){var t=this,r=!0,i;return"stable"!=t.__state&&"appearing"!=t.__state&&!t.__timeouts.open&&(t._trigger({type:"start",event:n,stop:function(){r=!1}}),r)&&(i=0==n.type.indexOf("touch")?t.__options.delayTouch:t.__options.delay,i[0]?t.__timeouts.open=setTimeout(function(){t.__timeouts.open=null;t.__pointerIsOverOrigin&&t._touchIsMeaningfulEvent(n)?(t._trigger("startend"),t._open(n)):t._trigger("startcancel")},i[0]):(t._trigger("startend"),t._open(n))),t},_optionsExtract:function(t,i){var f=this,u=n.extend(!0,{},i),r=f.__options[t];return r||(r={},n.each(i,function(n){var t=f.__options[n];void 0!==t&&(r[n]=t)})),n.each(u,function(t,i){void 0!==r[t]&&("object"!=typeof i||i instanceof Array||null==i||"object"!=typeof r[t]||r[t]instanceof Array||null==r[t]?u[t]=r[t]:n.extend(u[t],r[t]))}),u},_plug:function(t){var i=n.tooltipster._plugin(t);if(!i)throw new Error('The "'+t+'" plugin is not defined');return i.instance&&n.tooltipster.__bridge(i.instance,this,i.name),this},_touchIsEmulatedEvent:function(n){for(var i,r=!1,u=(new Date).getTime(),t=this.__touchEvents.length-1;t>=0;t--){if(i=this.__touchEvents[t],!(u-i.time<500))break;i.target===n.target&&(r=!0)}return r},_touchIsMeaningfulEvent:function(n){return this._touchIsTouchEvent(n)&&!this._touchSwiped(n.target)||!this._touchIsTouchEvent(n)&&!this._touchIsEmulatedEvent(n)},_touchIsTouchEvent:function(n){return 0==n.type.indexOf("touch")},_touchRecordEvent:function(n){return this._touchIsTouchEvent(n)&&(n.time=(new Date).getTime(),this.__touchEvents.push(n)),this},_touchSwiped:function(n){for(var i,r=!1,t=this.__touchEvents.length-1;t>=0;t--){if(i=this.__touchEvents[t],"touchmove"==i.type){r=!0;break}if("touchstart"==i.type&&n===i.target)break}return r},_trigger:function(){var t=Array.prototype.slice.apply(arguments);return"string"==typeof t[0]&&(t[0]={type:t[0]}),t[0].instance=this,t[0].origin=this._$origin?this._$origin[0]:null,t[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,t),n.tooltipster._trigger.apply(n.tooltipster,t),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,t),this},_unplug:function(t){var i=this,r;return i[t]&&(r=n.tooltipster._plugin(t),r.instance&&n.each(r.instance,function(n){i[n]&&i[n].bridged===i[t]&&delete i[n]}),i[t].__destroy&&i[t].__destroy(),delete i[t]),i},close:function(n){return this.__destroyed?this.__destroyError():this._close(null,n),this},content:function(n){var i=this,r;return void 0===n?i.__Content:(i.__destroyed?i.__destroyError():(i.__contentSet(n),null!==i.__Content)?"closed"!==i.__state&&(i.__contentInsert(),i.reposition(),i.__options.updateAnimation)&&(t.hasTransitions?(r=i.__options.updateAnimation,i._$tooltip.addClass("tooltipster-update-"+r),setTimeout(function(){"closed"!=i.__state&&i._$tooltip.removeClass("tooltipster-update-"+r)},1e3)):i._$tooltip.fadeTo(200,.5,function(){"closed"!=i.__state&&i._$tooltip.fadeTo(200,1)})):i._close(),i)},destroy:function(){var i=this,r,u;return i.__destroyed?i.__destroyError():("closed"!=i.__state?i.option("animationDuration",0)._close(null,null,!0):i.__timeoutsClear(),i._trigger("destroy"),i.__destroyed=!0,i._$origin.removeData(i.__namespace).off("."+i.__namespace+"-triggerOpen"),n(t.window.document.body).off("."+i.__namespace+"-triggerOpen"),r=i._$origin.data("tooltipster-ns"),r&&(1===r.length?(u=null,"previous"==i.__options.restoration?u=i._$origin.data("tooltipster-initialTitle"):"current"==i.__options.restoration&&(u="string"==typeof i.__Content?i.__Content:n("<div><\/div>").append(i.__Content).html()),u&&i._$origin.attr("title",u),i._$origin.removeClass("tooltipstered"),i._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")):(r=n.grep(r,function(n){return n!==i.__namespace}),i._$origin.data("tooltipster-ns",r))),i._trigger("destroyed"),i._off(),i.off(),i.__Content=null,i.__$emitterPrivate=null,i.__$emitterPublic=null,i.__options.parent=null,i._$origin=null,i._$tooltip=null,n.tooltipster.__instancesLatestArr=n.grep(n.tooltipster.__instancesLatestArr,function(n){return i!==n}),clearInterval(i.__garbageCollector)),i},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(n){return this.close(n)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(n){return this.__destroyed?this.__destroyError():this._open(null,n),this},option:function(t,i){return void 0===i?this.__options[t]:(this.__destroyed?this.__destroyError():(this.__options[t]=i,this.__optionsFormat(),n.inArray(t,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===t&&this.__prepareGC()),this)},reposition:function(n,t){var i=this;return i.__destroyed?i.__destroyError():"closed"!=i.__state&&r(i._$origin)&&(t||r(i._$tooltip))&&(t||i._$tooltip.detach(),i.__Geometry=i.__geometry(),i._trigger({type:"reposition",event:n,helper:{geo:i.__Geometry}})),i},show:function(n){return this.open(n)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},n.fn.tooltipster=function(){var t=Array.prototype.slice.apply(arguments),f="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.",i;if(0===this.length)return this;if("string"==typeof t[0])return i="#*$~&",this.each(function(){var e=n(this).data("tooltipster-ns"),r=e?n(this).data(e[0]):null,u;if(!r)throw new Error("You called Tooltipster's \""+t[0]+'" method on an uninitialized element');if("function"!=typeof r[t[0]])throw new Error('Unknown method "'+t[0]+'"');return this.length>1&&"content"==t[0]&&(t[1]instanceof n||"object"==typeof t[1]&&null!=t[1]&&t[1].tagName)&&!r.__options.contentCloning&&r.__options.debug&&console.log(f),u=r[t[0]](t[1],t[2]),u!==r||"instance"===t[0]?(i=u,!1):void 0}),"#*$~&"!==i?i:this;n.tooltipster.__instancesLatestArr=[];var e=t[0]&&void 0!==t[0].multiple,l=e&&t[0].multiple||!e&&u.multiple,o=t[0]&&void 0!==t[0].content,r=o&&t[0].content||!o&&u.content,s=t[0]&&void 0!==t[0].contentCloning,a=s&&t[0].contentCloning||!s&&u.contentCloning,h=t[0]&&void 0!==t[0].debug,c=h&&t[0].debug||!h&&u.debug;return this.length>1&&(r instanceof n||"object"==typeof r&&null!=r&&r.tagName)&&!a&&c&&console.log(f),this.each(function(){var u=!1,f=n(this),r=f.data("tooltipster-ns"),i=null;r?l?u=!0:c&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):u=!0;u&&(i=new n.Tooltipster(this,t[0]),r||(r=[]),r.push(i.__namespace),f.data("tooltipster-ns",r),f.data(i.__namespace,i),i.__options.functionInit&&i.__options.functionInit.call(i,i,{origin:this}),i._trigger("init"));n.tooltipster.__instancesLatestArr.push(i)}),this},s.prototype={__init:function(i){this.__$tooltip=i;this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto");this.$container=n('<div class="tooltipster-ruler"><\/div>').append(this.__$tooltip).appendTo(t.window.document.body)},__forceRedraw:function(){var n=this.__$tooltip.parent();this.__$tooltip.detach();this.__$tooltip.appendTo(n)},constrain:function(n,t){return this.constraints={width:n,height:t},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:n}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""});this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){var n,i;if(this.__forceRedraw(),n=this.__$tooltip[0].getBoundingClientRect(),i={size:{height:n.height||n.bottom-n.top,width:n.width||n.right-n.left}},this.constraints){var r=this.__$tooltip.find(".tooltipster-content"),f=this.__$tooltip.outerHeight(),e=r[0].getBoundingClientRect(),u={height:f<=this.constraints.height,width:n.width<=this.constraints.width&&e.width>=r[0].scrollWidth-1};i.fits=u.height&&u.width}return t.IE&&t.IE<=11&&i.size.width!==t.window.document.documentElement.clientWidth&&(i.size.width=Math.ceil(i.size.width)+1),i}},f=navigator.userAgent.toLowerCase(),-1!=f.indexOf("msie")?t.IE=parseInt(f.split("msie")[1]):-1!==f.toLowerCase().indexOf("trident")&&-1!==f.indexOf(" rv:11")?t.IE=11:-1!=f.toLowerCase().indexOf("edge/")&&(t.IE=parseInt(f.toLowerCase().split("edge/")[1])),o="tooltipster.sideTip",n.tooltipster._plugin({name:o,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(n){var t=this;t.__instance=n;t.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random());t.__previousState="closed";t.__options;t.__optionsFormat();t.__instance._on("state."+t.__namespace,function(n){"closed"==n.state?t.__close():"appearing"==n.state&&"closed"==t.__previousState&&t.__create();t.__previousState=n.state});t.__instance._on("options."+t.__namespace,function(){t.__optionsFormat()});t.__instance._on("reposition."+t.__namespace,function(n){t.__reposition(n.event,n.helper)})},__close:function(){this.__instance.content()instanceof n&&this.__instance.content().detach();this.__instance._$tooltip.remove();this.__instance._$tooltip=null},__create:function(){var t=n('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"><\/div><\/div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"><\/div><div class="tooltipster-arrow-background"><\/div><\/div><\/div><\/div>');this.__options.arrow||t.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide();this.__options.minWidth&&t.css("min-width",this.__options.minWidth+"px");this.__options.maxWidth&&t.css("max-width",this.__options.maxWidth+"px");this.__instance._$tooltip=t;this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var t=this,i;(t.__options=t.__instance._optionsExtract(o,t.__defaults()),t.__options.position&&(t.__options.side=t.__options.position),"object"!=typeof t.__options.distance&&(t.__options.distance=[t.__options.distance]),t.__options.distance.length<4&&(void 0===t.__options.distance[1]&&(t.__options.distance[1]=t.__options.distance[0]),void 0===t.__options.distance[2]&&(t.__options.distance[2]=t.__options.distance[0]),void 0===t.__options.distance[3]&&(t.__options.distance[3]=t.__options.distance[1]),t.__options.distance={top:t.__options.distance[0],right:t.__options.distance[1],bottom:t.__options.distance[2],left:t.__options.distance[3]}),"string"==typeof t.__options.side)&&(i={top:"bottom",right:"left",bottom:"top",left:"right"},t.__options.side=[t.__options.side,i[t.__options.side]],"left"==t.__options.side[0]||"right"==t.__options.side[0]?t.__options.side.push("top","bottom"):t.__options.side.push("right","left"));6===n.tooltipster._env.IE&&t.__options.arrow!==!0&&(t.__options.arrow=!1)},__reposition:function(t,i){var r,u=this,p=u.__targetFind(i),e=[],l,a,f,h,v;u.__instance._$tooltip.detach();var o=u.__instance._$tooltip.clone(),c=n.tooltipster._getRuler(o),s=!1,y=u.__instance.option("animation");switch(y&&o.removeClass("tooltipster-"+y),n.each(["window","document"],function(r,f){var a=null,r,l,h;if(u.__instance._trigger({container:f,helper:i,satisfied:s,takeTest:function(n){a=n},results:e,type:"positionTest"}),1==a||0!=a&&0==s&&("window"!=f||u.__options.viewportAware))for(r=0;r<u.__options.side.length;r++)l={horizontal:0,vertical:0},h=u.__options.side[r],"top"==h||"bottom"==h?l.vertical=u.__options.distance[h]:l.horizontal=u.__options.distance[h],u.__sideChange(o,h),n.each(["natural","constrained"],function(n,r){if(a=null,u.__instance._trigger({container:f,event:t,helper:i,mode:r,results:e,satisfied:s,side:h,takeTest:function(n){a=n},type:"positionTest"}),1==a||0!=a&&0==s){var o={container:f,distance:l,fits:null,mode:r,outerSize:null,side:h,size:null,target:p[h],whole:null},y="natural"==r?c.free():c.constrain(i.geo.available[f][h].width-l.horizontal,i.geo.available[f][h].height-l.vertical),v=y.measure();if(o.size=v.size,o.outerSize={height:v.size.height+l.vertical,width:v.size.width+l.horizontal},o.fits="natural"==r?i.geo.available[f][h].width>=o.outerSize.width&&i.geo.available[f][h].height>=o.outerSize.height?!0:!1:v.fits,"window"==f&&(o.whole=o.fits?"top"==h||"bottom"==h?i.geo.origin.windowOffset.right>=u.__options.minIntersection&&i.geo.window.size.width-i.geo.origin.windowOffset.left>=u.__options.minIntersection:i.geo.origin.windowOffset.bottom>=u.__options.minIntersection&&i.geo.window.size.height-i.geo.origin.windowOffset.top>=u.__options.minIntersection:!1),e.push(o),o.whole)s=!0;else if("natural"==o.mode&&(o.fits||o.size.width<=i.geo.available[f][h].width))return!1}})}),u.__instance._trigger({edit:function(n){e=n},event:t,helper:i,results:e,type:"positionTested"}),e.sort(function(n,t){var i,r;return n.whole&&!t.whole?-1:!n.whole&&t.whole?1:n.whole&&t.whole?(i=u.__options.side.indexOf(n.side),r=u.__options.side.indexOf(t.side),r>i?-1:i>r?1:"natural"==n.mode?-1:1):n.fits&&!t.fits?-1:!n.fits&&t.fits?1:n.fits&&t.fits?(i=u.__options.side.indexOf(n.side),r=u.__options.side.indexOf(t.side),r>i?-1:i>r?1:"natural"==n.mode?-1:1):"document"==n.container&&"bottom"==n.side&&"natural"==n.mode?-1:1}),r=e[0],r.coord={},r.side){case"left":case"right":r.coord.top=Math.floor(r.target-r.size.height/2);break;case"bottom":case"top":r.coord.left=Math.floor(r.target-r.size.width/2)}switch(r.side){case"left":r.coord.left=i.geo.origin.windowOffset.left-r.outerSize.width;break;case"right":r.coord.left=i.geo.origin.windowOffset.right+r.distance.horizontal;break;case"top":r.coord.top=i.geo.origin.windowOffset.top-r.outerSize.height;break;case"bottom":r.coord.top=i.geo.origin.windowOffset.bottom+r.distance.vertical}"window"==r.container?"top"==r.side||"bottom"==r.side?r.coord.left<0?r.coord.left=i.geo.origin.windowOffset.right-this.__options.minIntersection>=0?0:i.geo.origin.windowOffset.right-this.__options.minIntersection-1:r.coord.left>i.geo.window.size.width-r.size.width&&(r.coord.left=i.geo.origin.windowOffset.left+this.__options.minIntersection<=i.geo.window.size.width?i.geo.window.size.width-r.size.width:i.geo.origin.windowOffset.left+this.__options.minIntersection+1-r.size.width):r.coord.top<0?r.coord.top=i.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?0:i.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:r.coord.top>i.geo.window.size.height-r.size.height&&(r.coord.top=i.geo.origin.windowOffset.top+this.__options.minIntersection<=i.geo.window.size.height?i.geo.window.size.height-r.size.height:i.geo.origin.windowOffset.top+this.__options.minIntersection+1-r.size.height):(r.coord.left>i.geo.window.size.width-r.size.width&&(r.coord.left=i.geo.window.size.width-r.size.width),r.coord.left<0&&(r.coord.left=0));u.__sideChange(o,r.side);i.tooltipClone=o[0];i.tooltipParent=u.__instance.option("parent").parent[0];i.mode=r.mode;i.whole=r.whole;i.origin=u.__instance._$origin[0];i.tooltip=u.__instance._$tooltip[0];delete r.container;delete r.fits;delete r.mode;delete r.outerSize;delete r.whole;r.distance=r.distance.horizontal||r.distance.vertical;l=n.extend(!0,{},r);(u.__instance._trigger({edit:function(n){r=n},event:t,helper:i,position:l,type:"position"}),u.__options.functionPosition)&&(a=u.__options.functionPosition.call(u,u.__instance,i,l),a&&(r=a));c.destroy();"top"==r.side||"bottom"==r.side?(f={prop:"left",val:r.target-r.coord.left},h=r.size.width-this.__options.minIntersection):(f={prop:"top",val:r.target-r.coord.top},h=r.size.height-this.__options.minIntersection);f.val<this.__options.minIntersection?f.val=this.__options.minIntersection:f.val>h&&(f.val=h);v=i.geo.origin.fixedLineage?i.geo.origin.windowOffset:{left:i.geo.origin.windowOffset.left+i.geo.window.scroll.left,top:i.geo.origin.windowOffset.top+i.geo.window.scroll.top};r.coord={left:v.left+(r.coord.left-i.geo.origin.windowOffset.left),top:v.top+(r.coord.top-i.geo.origin.windowOffset.top)};u.__sideChange(u.__instance._$tooltip,r.side);i.geo.origin.fixedLineage?u.__instance._$tooltip.css("position","fixed"):u.__instance._$tooltip.css("position","");u.__instance._$tooltip.css({left:r.coord.left,top:r.coord.top,height:r.size.height,width:r.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(f.prop,f.val);u.__instance._$tooltip.appendTo(u.__instance.option("parent"));u.__instance._trigger({type:"repositioned",event:t,position:r})},__sideChange:function(n,t){n.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+t)},__targetFind:function(n){var r={},i=this.__instance._$origin[0].getClientRects(),u,t;return i.length>1&&(u=this.__instance._$origin.css("opacity"),1==u&&(this.__instance._$origin.css("opacity",.99),i=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))),i.length<2?(r.top=Math.floor(n.geo.origin.windowOffset.left+n.geo.origin.size.width/2),r.bottom=r.top,r.left=Math.floor(n.geo.origin.windowOffset.top+n.geo.origin.size.height/2),r.right=r.left):(t=i[0],r.top=Math.floor(t.left+(t.right-t.left)/2),t=i.length>2?i[Math.ceil(i.length/2)-1]:i[0],r.right=Math.floor(t.top+(t.bottom-t.top)/2),t=i[i.length-1],r.bottom=Math.floor(t.left+(t.right-t.left)/2),t=i.length>2?i[Math.ceil((i.length+1)/2)-1]:i[i.length-1],r.left=Math.floor(t.top+(t.bottom-t.top)/2)),r}}}),n});$(document).ready(function(){var n=$(".tinymce-tooltip[data-title]").attr("data-title");$(".tinymce-tooltip[data-title]:not(.tooltipstered)").each(function(){$(this).attr("title",$(this).data("title"))});$(".tinymce-tooltip[title]:not(.tooltipstered)").tooltipster({trigger:"click",interactive:!0,maxWidth:610,contentAsHTML:!0,theme:["tooltipster-noir","tooltipster-noir-trafa"],functionFormat:function(n,t,i){return $(Base64.decode(i))}})})