(function(n,t){"use strict";typeof module=="object"&&typeof module.exports=="object"?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)})(typeof window!="undefined"?window:this,function(n,t){"use strict";function yr(n,t,i){i=i||f;var r,e,u=i.createElement("script");if(u.text=n,t)for(r in re)e=t[r]||t.getAttribute&&t.getAttribute(r),e&&u.setAttribute(r,e);i.head.appendChild(u).parentNode.removeChild(u)}function rt(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?ti[ar.call(n)]||"object":typeof n}function ai(n){var t=!!n&&"length"in n&&n.length,i=rt(n);return u(n)||it(n)?!1:i==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function l(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function yi(n,t,r){return u(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}):typeof t!="string"?i.grep(n,function(n){return ni.call(t,n)>-1!==r}):i.filter(t,n,r)}function iu(n,t){while((n=n[t])&&n.nodeType!==1);return n}function ue(n){var t={};return i.each(n.match(a)||[],function(n,i){t[i]=!0}),t}function ft(n){return n}function ri(n){throw n;}function ru(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(undefined,[n].slice(r))}catch(n){i.apply(undefined,[n])}}function fi(){f.removeEventListener("DOMContentLoaded",fi);n.removeEventListener("load",fi);i.ready()}function oe(n,t){return t.toUpperCase()}function y(n){return n.replace(fe,"ms-").replace(ee,oe)}function pt(){this.expando=i.expando+pt.uid++}function ce(n){return n==="true"?!0:n==="false"?!1:n==="null"?null:n===+n+""?+n:se.test(n)?JSON.parse(n):n}function fu(n,t,i){var r;if(i===undefined&&n.nodeType===1)if(r="data-"+t.replace(he,"-$&").toLowerCase(),i=n.getAttribute(r),typeof i=="string"){try{i=ce(i)}catch(u){}o.set(n,t,i)}else i=undefined;return i}function ou(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=n.nodeType&&(i.cssNumber[t]||e!=="px"&&+o)&&wt.exec(i.css(n,t));if(f&&f[3]!==e){for(o=o/2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f=f/h;f=f*2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function ae(n){var r,f=n.ownerDocument,u=n.nodeName,t=pi[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),t==="none"&&(t="block"),pi[u]=t,t)}function st(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?(e==="none"&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),u.style.display===""&&bt(u)&&(f[i]=ae(u))):e!=="none"&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)f[i]!=null&&(n[i].style.display=f[i]);return n}function s(n,t){var r;return(r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[],t===undefined||t&&l(n,t))?i.merge([n],r):r}function wi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function lu(n,t,r,u,f){for(var e,o,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(rt(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(cu.test(e)){for(o=o||h.appendChild(t.createElement("div")),p=(su.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);o=h.firstChild;o.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);continue}if(w=ot(e),o=s(h.appendChild(e),"script"),w&&wi(o),r)for(v=0;e=o[v++];)hu.test(e.type||"")&&r.push(e)}return h}function ht(){return!0}function ct(){return!1}function pe(n,t){return n===we()==(t==="focus")}function we(){try{return f.activeElement}catch(n){}}function bi(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)bi(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=ct;else if(!f)return n;return e===1&&(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 ei(n,t,u){if(!u){r.get(n,t)===undefined&&i.event.add(n,t,ht);return}r.set(n,t,!1);i.event.add(n,t,{namespace:!1,handler:function(n){var o,e,f=r.get(this,t);if(n.isTrigger&1&&this[t]){if(f.length)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(f=k.call(arguments),r.set(this,t,f),o=u(this,t),this[t](),e=r.get(this,t),f!==e||o?r.set(this,t,!1):e={},f!==e)return n.stopImmediatePropagation(),n.preventDefault(),e.value}else f.length&&(r.set(this,t,{value:i.event.trigger(i.extend(f[0],i.Event.prototype),f.slice(1),this)}),n.stopImmediatePropagation())}})}function vu(n,t){return l(n,"table")&&l(t.nodeType!==11?t:t.firstChild,"tr")?i(n).children("tbody")[0]||n:n}function ge(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function no(n){return(n.type||"").slice(0,5)==="true/"?n.type=n.type.slice(5):n.removeAttribute("type"),n}function yu(n,t){var f,s,e,h,c,l,u;if(t.nodeType===1){if(r.hasData(n)&&(h=r.get(n),u=h.events,u)){r.remove(t,"handle events");for(e in u)for(f=0,s=u[e].length;f<s;f++)i.event.add(t,e,u[e][f])}o.hasData(n)&&(c=o.access(n),l=i.extend({},c),o.set(t,l))}}function to(n,t){var i=t.nodeName.toLowerCase();i==="input"&&kt.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function lt(n,t,f,o){t=lr(t);var a,b,l,v,h,y,c=0,p=n.length,d=p-1,w=t[0],k=u(w);if(k||p>1&&typeof w=="string"&&!e.checkClone&&ke.test(w))return n.each(function(i){var r=n.eq(i);k&&(t[0]=w.call(this,i,r.html()));lt(r,t,f,o)});if(p&&(a=lu(t,n[0].ownerDocument,!1,n,o),b=a.firstChild,a.childNodes.length===1&&(a=b),b||o)){for(l=i.map(s(a,"script"),ge),v=l.length;c<p;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(y=l[l.length-1].ownerDocument,i.map(l,no),c=0;c<v;c++)h=l[c],hu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(y,h)&&(h.src&&(h.type||"").toLowerCase()!=="module"?i._evalUrl&&!h.noModule&&i._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},y):yr(h.textContent.replace(de,""),h,y))}return n}function pu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(s(u)),u.parentNode&&(r&&ot(u)&&wi(s(u,"script")),u.parentNode.removeChild(u));return n}function dt(n,t,r){var o,s,h,u,f=n.style;return r=r||oi(n),r&&(u=r.getPropertyValue(t)||r[t],u!==""||ot(n)||(u=i.style(n,t)),!e.pixelBoxStyles()&&ki.test(u)&&io.test(t)&&(o=f.width,s=f.minWidth,h=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=o,f.minWidth=s,f.maxWidth=h)),u!==undefined?u+"":u}function bu(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function ro(n){for(var i=n[0].toUpperCase()+n.slice(1),t=ku.length;t--;)if(n=ku[t]+i,n in du)return n}function di(n){var t=i.cssProps[n]||gu[n];return t?t:n in du?n:gu[n]=ro(n)||n}function rf(n,t,i){var r=wt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function gi(n,t,r,u,f,e){var o=t==="width"?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)r==="margin"&&(s+=i.css(n,r+b[o],!0,f)),u?(r==="content"&&(s-=i.css(n,"padding"+b[o],!0,f)),r!=="margin"&&(s-=i.css(n,"border"+b[o]+"Width",!0,f))):(s+=i.css(n,"padding"+b[o],!0,f),r!=="padding"?s+=i.css(n,"border"+b[o]+"Width",!0,f):h+=i.css(n,"border"+b[o]+"Width",!0,f));return!u&&e>=0&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))||0),s}function uf(n,t,r){var f=oi(n),c=!e.boxSizingReliable()||r,o=c&&i.css(n,"boxSizing",!1,f)==="border-box",s=o,u=dt(n,t,f),h="offset"+t[0].toUpperCase()+t.slice(1);if(ki.test(u)){if(!r)return u;u="auto"}return(!e.boxSizingReliable()&&o||!e.reliableTrDimensions()&&l(n,"tr")||u==="auto"||!parseFloat(u)&&i.css(n,"display",!1,f)==="inline")&&n.getClientRects().length&&(o=i.css(n,"boxSizing",!1,f)==="border-box",s=h in n,s&&(u=n[h])),u=parseFloat(u)||0,u+gi(n,t,r||(o?"border":"content"),s,f,u)+"px"}function h(n,t,i,r,u){return new h.prototype.init(n,t,i,r,u)}function nr(){si&&(f.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(nr):n.setTimeout(nr,i.fx.interval),i.fx.tick())}function of(){return n.setTimeout(function(){at=undefined}),at=Date.now()}function hi(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 sf(n,t,i){for(var u,f=(v.tweeners[t]||[]).concat(v.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function eo(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&&bt(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),c.unqueued==null&&(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],ff.test(y)){if(delete t[f],w=w||y==="toggle",y===(a?"hide":"show"))if(y==="show"&&e&&e[f]!==undefined)a=!0;else continue;p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&n.nodeType===1&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,o==null&&(o=r.get(n,"display")),l=i.css(n,"display"),l==="none"&&(o?l=o:(st([n],!0),o=n.style.display||o,l=i.css(n,"display"),st([n]))),(l==="inline"||l==="inline-block"&&o!=null)&&i.css(n,"float")==="none"&&(s||(v.done(function(){h.display=o}),o==null&&(l=h.display,o=l==="none"?"":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&&st([n],!0),v.done(function(){a||st([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=sf(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function oo(n,t){var r,f,e,u,o;for(r in n)if(f=y(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 v(n,t,r){var o,s,h=0,a=v.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=at||of(),t=Math.max(0,f.startTime+f.duration-o),h=t/f.duration||0,i=1-h,r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return(e.notifyWith(n,[f,i,t]),i<1&&u)?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:at||of(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(oo(c,f.opts.specialEasing);h<a;h++)if(o=v.prefilters[h].call(f,n,c,f.opts),o)return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,sf,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function nt(n){var t=n.match(a)||[];return t.join(" ")}function tt(n){return n.getAttribute&&n.getAttribute("class")||""}function tr(n){return Array.isArray(n)?n:typeof n=="string"?n.match(a)||[]:[]}function fr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||so.test(n)?u(n,i):fr(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||rt(t)!=="object")u(n,t);else for(f in t)fr(n+"["+f+"]",t[f],r,u)}function bf(n){return function(t,i){typeof t!="string"&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(a)||[];if(u(i))while(r=e[f++])r[0]==="+"?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function kf(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);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===er;return e(t.dataTypes[0])||!f["*"]&&e("*")}function sr(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function bo(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(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 ko(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(),u)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)){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=[],cr=Object.getPrototypeOf,k=p.slice,lr=p.flat?function(n){return p.flat.call(n)}:function(n){return p.concat.apply([],n)},li=p.push,ni=p.indexOf,ti={},ar=ti.toString,ii=ti.hasOwnProperty,vr=ii.toString,ie=vr.call(Object),e={},u=function(n){return typeof n=="function"&&typeof n.nodeType!="number"},it=function(n){return n!=null&&n===n.window},f=n.document,re={type:!0,src:!0,nonce:!0,noModule:!0},pr="3.5.1",i=function(n,t){return new i.fn.init(n,t)},d,vi,kr,dr,gr,nu,tu,a,uu,ui,et,bt,pi,c,cu,at,si,ff,ef,hf,vt,cf,lf,af,ir,rr,df,yt,hr,ci,gf,ne,te;i.fn=i.prototype={jquery:pr,constructor:i,length:0,toArray:function(){return k.call(this)},get:function(n){return n==null?k.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(k.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(n,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(n,t){return t%2}))},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:li,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var s,f,e,t,o,c,n=arguments[0]||{},r=1,l=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[r]||{},r++),typeof n=="object"||u(n)||(n={}),r===l&&(n=this,r--);r<l;r++)if((s=arguments[r])!=null)for(f in s)(t=s[f],f!=="__proto__"&&n!==t)&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(e=n[f],c=o&&!Array.isArray(e)?[]:o||i.isPlainObject(e)?e:{},o=!1,n[f]=i.extend(h,c,t)):t!==undefined&&(n[f]=t));return n};i.extend({expando:"jQuery"+(pr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!n||ar.call(n)!=="[object Object]"?!1:(t=cr(n),!t)?!0:(i=ii.call(t,"constructor")&&t.constructor,typeof i=="function"&&vr.call(i)===ie)},isEmptyObject:function(n){for(var t in n)return!1;return!0},globalEval:function(n,t,i){yr(n,{nonce:t&&t.nonce},i)},each:function(n,t){var r,i=0;if(ai(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},makeArray:function(n,t){var r=t||[];return n!=null&&(ai(Object(n))?i.merge(r,typeof n=="string"?[n]:n):li.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:ni.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(ai(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return lr(f)},guid:1,support:e});typeof Symbol=="function"&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){ti["[object "+t+"]"]=t.toLowerCase()});d=function(n){function u(n,t,r,u){var s,p,c,l,w,y,d,v=t&&t.ownerDocument,a=t?t.nodeType:9;if(r=r||[],typeof n!="string"||!n||a!==1&&a!==9&&a!==11)return r;if(!u&&(b(t),t=t||i,h)){if(a!==11&&(w=ar.exec(n)))if(s=w[1]){if(a===9)if(c=t.getElementById(s)){if(c.id===s)return r.push(c),r}else return r;else if(v&&(c=v.getElementById(s))&&et(t,c)&&c.id===s)return r.push(c),r}else{if(w[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=w[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))&&(a!==1||t.nodeName.toLowerCase()!=="object")){if(d=n,v=t,a===1&&(er.test(n)||yi.test(n))){for(v=ti.test(n)&&ri(t.parentNode)||t,v===t&&f.scope||((l=t.getAttribute("id"))?l=l.replace(pi,wi):t.setAttribute("id",l=e)),y=ft(n),p=y.length;p--;)y[p]=(l?"#"+l:":scope")+" "+pt(y[p]);d=y.join(",")}try{return k.apply(r,v.querySelectorAll(d)),r}catch(g){lt(n,!0)}finally{l===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function yt(){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[e]=!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 ki(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function yr(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function pr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function di(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&&vr(t)===n:t.disabled===n:"label"in t?t.disabled===n:!1}}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&&typeof n.getElementsByTagName!="undefined"&&n}function gi(){}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function wt(n,t,i){var r=t.dir,u=t.next,f=u||r,o=i&&f==="parentNode",s=nr++;return t.first?function(t,i,u){while(t=t[r])if(t.nodeType===1||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((t.nodeType===1||o)&&n(t,i,h))return!0}else while(t=t[r])if(t.nodeType===1||o)if(a=t[e]||(t[e]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[f])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[f]=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 wr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;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,f){return r&&!r[e]&&(r=fi(r)),u&&!u[e]&&(u=fi(u,f)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||wr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?bt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=bt(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=bt(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=wt(function(n){return n===o},c,!0),a=wt(function(n){return nt(o,n)>-1},c,!0),f=[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])f=[wt(ui(f),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[e]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(f),i>1&&pt(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&&pt(n))}f.push(u)}return ui(f)}function br(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+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s==i||s||a);p!==ft&&(y=rt[p])!=null;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]=ir.call(l));w=bt(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,f,t,st,oi,ft,kt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,c=n.document,v=0,nr=0,hi=yt(),ci=yt(),li=yt(),lt=yt(),dt=function(n,t){return n===t&&(ut=!0),0},tr={}.hasOwnProperty,g=[],ir=g.pop,rr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",ni=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",ur=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),fr=new RegExp("^"+r+"*,"+r+"*"),yi=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),er=new RegExp(r+"|>"),or=new RegExp(ni),sr=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+ni),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("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},hr=/HTML$/i,cr=/^(?:input|select|textarea|button)$/i,lr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,ar=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,y=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),p=function(n,t){var i="0x"+n.slice(1)-65536;return t?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,i&1023|56320)},pi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wi=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},bi=function(){b()},vr=wt(function(n){return n.disabled===!0&&n.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(kr){k={apply:g.length?function(n,t){rr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}f=u.support={};oi=u.isXML=function(n){var i=n.namespaceURI,t=(n.ownerDocument||n).documentElement;return!hr.test(i||t&&t.nodeName||"HTML")};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l==i||l.nodeType!==9||!l.documentElement?i:(i=l,s=i.documentElement,h=!oi(i),c!=i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",bi,!1):u.attachEvent&&u.attachEvent("onunload",bi)),f.scope=a(function(n){return s.appendChild(n).appendChild(i.createElement("div")),typeof n.querySelectorAll!="undefined"&&!n.querySelectorAll(":scope fieldset div").length}),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.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(typeof t.getElementById!="undefined"&&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=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&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=f.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){var t;s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+gt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");t=i.createElement("input");t.setAttribute("name","");n.appendChild(t);n.querySelectorAll("[name='']").length||o.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]");n.querySelectorAll("\\\f");o.push("[\\r\\n\\f]")}),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+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length!==2&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;n.querySelectorAll(":disabled").length!==2&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",ni)}),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=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=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,r&1||!f.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:r&4?-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){if(o===s)return ki(n,t)}else return n==i?-1:t==i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;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?ki(f[u],e[u]):f[u]==c?-1:e[u]==c?1:0},i)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if(b(n),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(e){lt(t,!0)}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 e=t.attrHandle[r.toLowerCase()],u=e&&tr.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):undefined;return u!==undefined?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(pi,wi)};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=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(dt),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(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)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(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):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&&or.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(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(ur," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",f=t==="of-type";return r===1&&u===0?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=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(f?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[e]||(c[e]={}),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(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[e]||(c[e]={}),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((f?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[e]||(c[e]={}),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 f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):r.length>1?(f=[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,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=kt(n.replace(at,"$1"));return i[e]?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||st(t)).indexOf(n)>-1}}),lang:l(function(n){return sr.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||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);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:di(!1),disabled:di(!0),checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!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 lr.test(n.nodeName)},input:function(n){return cr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},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>t?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]=yr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=pr(rt);return gi.prototype=t.filters=t.pseudos,t.setFilters=new gi,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=fr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=yi.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)},kt=u.compile=function(n,t){var r,u=[],f=[],i=li[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[e]?u.push(i):f.push(i);i=li(n,br(f,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c=typeof n=="function"&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],s.length===1){if(f=s[0]=s[0].slice(0),f.length>2&&(e=f[0]).type==="ID"&&i.nodeType===9&&h&&t.relative[f[1].type]){if(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0],i)c&&(i=i.parentNode);else return r;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),ti.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),n=u.length&&pt(f),!n)return k.apply(r,u),r;break}}}return(c||kt(n,s))(u,i,!h,r,!i||ti.test(n)&&ri(i.parentNode)||i),r},f.sortStable=e.split("").sort(dt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return n.compareDocumentPosition(i.createElement("fieldset"))&1}),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,t.toLowerCase()==="type"?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ii("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ii(gt,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=d;i.expr=d.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=d.uniqueSort;i.text=d.getText;i.isXMLDoc=d.isXML;i.contains=d.contains;i.escapeSelector=d.escape;var ut=function(n,t,r){for(var u=[],f=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},wr=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},br=i.expr.match.needsContext;vi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return(r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1)?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if(typeof n!="string")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(yi(this,n||[],!1))},not:function(n){return this.pushStack(yi(this,n||[],!0))},is:function(n){return!!yi(this,typeof n=="string"&&br.test(n)?i(n):n||[],!1).length}});dr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;gr=i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||kr,typeof n=="string"){if(e=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:dr.exec(n),e&&(e[1]||!t)){if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),vi.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return o=f.getElementById(e[2]),o&&(this[0]=o,this.length=1),this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?r.ready!==undefined?r.ready(n):n(i):i.makeArray(n,this)};gr.prototype=i.fn;kr=i(f);nu=/^(?:parents|prev(?:Until|All))/;tu={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=typeof n!="string"&&i(n);if(!br.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:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?ni.call(i(n),this[0]):ni.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(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return ut(n,"parentNode")},parentsUntil:function(n,t,i){return ut(n,"parentNode",i)},next:function(n){return iu(n,"nextSibling")},prev:function(n){return iu(n,"previousSibling")},nextAll:function(n){return ut(n,"nextSibling")},prevAll:function(n){return ut(n,"previousSibling")},nextUntil:function(n,t,i){return ut(n,"nextSibling",i)},prevUntil:function(n,t,i){return ut(n,"previousSibling",i)},siblings:function(n){return wr((n.parentNode||{}).firstChild,n)},children:function(n){return wr(n.firstChild)},contents:function(n){return n.contentDocument!=null&&cr(n.contentDocument)?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 n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(tu[n]||i.uniqueSort(f),nu.test(n)&&f.reverse()),this.pushStack(f)}});a=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n=typeof n=="string"?ue(n):i.extend({},n);var o,r,c,f,t=[],s=[],e=-1,l=function(){for(f=f||n.once,c=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)t[e].apply(r[0],r[1])===!1&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},h={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&h.has(r)||t.push(r):r&&r.length&&rt(r)!=="string"&&f(r)})}(arguments),r&&!o&&l()),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<=e&&e--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return f=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=s=[],r||o||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=t||[],t=[n,t.slice?t.slice():t],s.push(t),o||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(t){var f=[["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"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(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,e){function s(t,r,f,e){return function(){var h=this,c=arguments,a=function(){var n,i;if(!(t<o)){if(n=f.apply(h,c),n===r.promise())throw new TypeError("Thenable self-resolution");i=n&&(typeof n=="object"||typeof n=="function")&&n.then;u(i)?e?i.call(n,s(o,r,ft,e),s(o,r,ri,e)):(o++,i.call(n,s(o,r,ft,e),s(o,r,ri,e),s(o,r,ft,r.notifyWith))):(f!==ft&&(h=undefined,c=[n]),(e||r.resolveWith)(h,c))}},l=e?a:function(){try{a()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,l.stackTrace);t+1>=o&&(f!==ri&&(h=undefined,c=[n]),r.rejectWith(h,c))}};t?l():(i.Deferred.getStackHook&&(l.stackTrace=i.Deferred.getStackHook()),n.setTimeout(l))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:ft,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:ft));f[2][3].add(s(0,n,u(r)?r:ri))}).promise()},promise:function(n){return n!=null?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?undefined:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=k.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=arguments.length>1?k.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(ru(n,r.done(s(t)).resolve,r.reject,!e),r.state()==="pending"||u(f[t]&&f[t].then)))return r.then();while(t--)ru(f[t],s(t),r.reject);return r.promise()}});uu=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&uu.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};ui=i.Deferred();i.fn.ready=function(n){return ui.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)||ui.resolveWith(f,[i])}});i.ready.then=ui.then;f.readyState!=="complete"&&(f.readyState==="loading"||f.documentElement.doScroll)?(f.addEventListener("DOMContentLoaded",fi),n.addEventListener("load",fi)):n.setTimeout(i.ready);var w=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=r==null;if(rt(r)==="object"){e=!0;for(h in r)w(n,t,h,r[h],!0,o,s)}else if(f!==undefined&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},fe=/^-ms-/,ee=/-([a-z])/g;et=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};pt.uid=1;pt.prototype={cache:function(n){var t=n[this.expando];return t||(t={},et(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if(typeof t=="string")u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return t===undefined||t&&typeof t=="string"&&i===undefined?this.get(n,t):(this.set(n,t,i),i!==undefined?i:t)},remove:function(n,t){var u,r=n[this.expando];if(r!==undefined){if(t!==undefined)for(Array.isArray(t)?t=t.map(y):(t=y(t),t=t in r?[t]:t.match(a)||[]),u=t.length;u--;)delete r[t[u]];(t===undefined||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new pt,o=new pt,se=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,he=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.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 f,u,e,i=this[0],s=i&&i.attributes;if(n===undefined){if(this.length&&(e=o.get(i),i.nodeType===1&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&(u=s[f].name,u.indexOf("data-")===0&&(u=y(u.slice(5)),fu(i,u,e[u])));r.set(i,"hasDataAttrs",!0)}return e}return typeof n=="object"?this.each(function(){o.set(this,n)}):w(this,function(t){var r;if(i&&t===undefined)return(r=o.get(i,n),r!==undefined)?r:(r=fu(i,n),r!==undefined)?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){o.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)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&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(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&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(typeof n!="string"&&(t=n,n=undefined),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 eu=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wt=new RegExp("^(?:([+-])=|)("+eu+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],g=f.documentElement,ot=function(n){return i.contains(n.ownerDocument,n)},le={composed:!0};g.getRootNode&&(ot=function(n){return i.contains(n.ownerDocument,n)||n.getRootNode(le)===n.ownerDocument});bt=function(n,t){return n=t||n,n.style.display==="none"||n.style.display===""&&ot(n)&&i.css(n,"display")==="none"};pi={};i.fn.extend({show:function(){return st(this,!0)},hide:function(){return st(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){bt(this)?i(this).show():i(this).hide()})}});var kt=/^(?:checkbox|radio)$/i,su=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,hu=/^$|^module$|\/(?:java|ecma)script/i;(function(){var i=f.createDocumentFragment(),n=i.appendChild(f.createElement("div")),t=f.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);e.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue;n.innerHTML="<option><\/option>";e.option=!!n.lastChild})();c={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.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;e.option||(c.optgroup=c.option=[1,"<select multiple='multiple'>","<\/select>"]);cu=/<|&#?\w+;/;var ve=/^key/,ye=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,au=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var l,v,w,y,b,h,s,c,o,k,d,p=r.get(n);if(et(n))for(u.handler&&(l=u,u=l.handler,e=l.selector),e&&i.find.matchesSelector(g,e),u.guid||(u.guid=i.guid++),(y=p.events)||(y=p.events=Object.create(null)),(v=p.handle)||(v=p.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(a)||[""],b=t.length;b--;)(w=au.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]||{},h=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(".")},l),(c=y[o])||(c=y[o]=[],c.delegateCount=0,s.setup&&s.setup.call(n,f,k,v)!==!1||n.addEventListener&&n.addEventListener(o,v)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,h,v,p,s,c,l,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(a)||[""],p=t.length;p--;){if(h=au.exec(t[p])||[],o=d=h[1],b=(h[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(c=i.event.special[o]||{},o=(f?c.delegateType:c.bindType)||o,l=v[o]||[],h=h[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=l.length;y--;)s=l[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!h||h.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(l.splice(y,1),s.selector&&l.delegateCount--,c.remove&&c.remove.call(n,s));k&&!l.length&&(c.teardown&&c.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var u,c,s,e,f,l,h=new Array(arguments.length),t=i.event.fix(n),a=(r.get(this,"events")||Object.create(null))[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||f.namespace===!1||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),s!==undefined&&(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&&!(n.type==="click"&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&!(n.type==="click"&&r.disabled===!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",s[u]===undefined&&(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:u(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},click:{setup:function(n){var t=this||n;return kt.test(t.type)&&t.click&&l(t,"input")&&ei(t,"click",ht),!1},trigger:function(n){var t=this||n;return kt.test(t.type)&&t.click&&l(t,"input")&&ei(t,"click"),!0},_default:function(n){var t=n.target;return kt.test(t.type)&&t.click&&l(t,"input")&&r.get(t,"click")||l(t,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===!1?ht:ct,this.target=n.target&&n.target.nodeType===3?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||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:ct,isPropagationStopped:ct,isImmediatePropagationStopped:ct,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ht;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ht;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ht;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,code:!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 n.which==null&&ve.test(n.type)?n.charCode!=null?n.charCode:n.keyCode:!n.which&&t!==undefined&&ye.test(n.type)?t&1?1:t&2?3:t&4?2:0:n.which}},i.event.addProp);i.each({focus:"focusin",blur:"focusout"},function(n,t){i.event.special[n]={setup:function(){return ei(this,n,pe),!1},trigger:function(){return ei(this,n),!0},delegateType:t}});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 bi(this,n,t,i,r)},one:function(n,t,i,r){return bi(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(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=ct),this.each(function(){i.event.remove(this,n,r,t)})}});var be=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,de=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n},clone:function(n,t,r){var u,c,o,f,h=n.cloneNode(!0),l=ot(n);if(!e.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(f=s(h),o=s(n),u=0,c=o.length;u<c;u++)to(o[u],f[u]);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)yu(o[u],f[u]);else yu(n,h);return f=s(h,"script"),f.length>0&&wi(f,!l&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;(t=n[e])!==undefined;e++)if(et(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]=undefined}t[o.expando]&&(t[o.expando]=undefined)}}});i.fn.extend({detach:function(n){return pu(this,n,!0)},remove:function(n){return pu(this,n)},text:function(n){return w(this,function(n){return n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return lt(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=vu(this,n);t.appendChild(n)}})},prepend:function(){return lt(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=vu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return lt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return lt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return w(this,function(n){var t=this[0]||{},r=0,u=this.length;if(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!be.test(n)&&!c[(su.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return lt(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(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),li.apply(f,u.get());return this.pushStack(f)}});var ki=new RegExp("^("+eu+")(?!px)[a-z%]+$","i"),oi=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},wu=function(n,t,i){var u,r,f={};for(r in t)f[r]=n.style[r],n.style[r]=t[r];u=i.call(n);for(r in t)n.style[r]=f[r];return u},io=new RegExp(b.join("|"),"i");(function(){function r(){if(t){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";g.appendChild(s).appendChild(t);var i=n.getComputedStyle(t);h=i.top!=="1%";v=u(i.marginLeft)===12;t.style.right="60%";a=u(i.right)===36;c=u(i.width)===36;t.style.position="absolute";l=u(t.offsetWidth/3)===12;g.removeChild(s);t=null}}function u(n){return Math.round(parseFloat(n))}var h,c,l,a,o,v,s=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle=t.style.backgroundClip==="content-box",i.extend(e,{boxSizingReliable:function(){return r(),c},pixelBoxStyles:function(){return r(),a},pixelPosition:function(){return r(),h},reliableMarginLeft:function(){return r(),v},scrollboxSize:function(){return r(),l},reliableTrDimensions:function(){var t,i,r,u;return o==null&&(t=f.createElement("table"),i=f.createElement("tr"),r=f.createElement("div"),t.style.cssText="position:absolute;left:-11111px",i.style.height="1px",r.style.height="9px",g.appendChild(t).appendChild(i).appendChild(r),u=n.getComputedStyle(i),o=parseInt(u.height)>3,g.removeChild(t)),o}}))})();var ku=["Webkit","Moz","ms"],du=f.createElement("div").style,gu={};var uo=/^(none|table(?!-c[ea]).+)/,nf=/^--/,fo={position:"absolute",visibility:"hidden",display:"block"},tf={letterSpacing:"0",fontWeight:"400"};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=dt(n,"opacity");return i===""?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var f,s,o,c=y(t),l=nf.test(t),h=n.style;if(l||(t=di(c)),o=i.cssHooks[t]||i.cssHooks[c],r!==undefined){if(s=typeof r,s==="string"&&(f=wt.exec(r))&&f[1]&&(r=ou(n,t,f),s="number"),r==null||r!==r)return;s!=="number"||l||(r+=f&&f[3]||(i.cssNumber[c]?"":"px"));e.clearCloneStyle||r!==""||t.indexOf("background")!==0||(h[t]="inherit");o&&"set"in o&&(r=o.set(n,r,u))===undefined||(l?h.setProperty(t,r):h[t]=r)}else return o&&"get"in o&&(f=o.get(n,!1,u))!==undefined?f:h[t]}},css:function(n,t,r,u){var f,o,e,s=y(t),h=nf.test(t);return(h||(t=di(s)),e=i.cssHooks[t]||i.cssHooks[s],e&&"get"in e&&(f=e.get(n,!0,r)),f===undefined&&(f=dt(n,t,u)),f==="normal"&&t in tf&&(f=tf[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 uo.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?wu(n,fo,function(){return uf(n,t,u)}):uf(n,t,u)},set:function(n,r,u){var s,f=oi(n),h=!e.scrollboxSize()&&f.position==="absolute",l=h||u,c=l&&i.css(n,"boxSizing",!1,f)==="border-box",o=u?gi(n,t,u,c,f):0;return c&&h&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-gi(n,t,"border",!1,f)-.5)),o&&(s=wt.exec(r))&&(s[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),rf(n,r,o)}}});i.cssHooks.marginLeft=bu(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(dt(n,"marginLeft"))||n.getBoundingClientRect().left-wu(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=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};n!=="margin"&&(i.cssHooks[n+t].set=rf)});i.fn.extend({css:function(n,t){return w(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=oi(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=h;h.prototype={constructor:h,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=h.propHooks[this.prop];return n&&n.get?n.get(this):h.propHooks._default.get(this)},run:function(n){var t,r=h.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):h.propHooks._default.set(this),this}};h.prototype.init.prototype=h.prototype;h.propHooks={_default:{get:function(n){var t;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.nodeType===1&&(i.cssHooks[n.prop]||n.elem.style[di(n.prop)]!=null)?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};h.propHooks.scrollTop=h.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=h.prototype.init;i.fx.step={};ff=/^(?:toggle|show|hide)$/;ef=/queueHooks$/;i.Animation=i.extend(v,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return ou(i.elem,n,wt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(a);for(var i,r=0,f=n.length;r<f;r++)i=n[r],v.tweeners[i]=v.tweeners[i]||[],v.tweeners[i].unshift(t)},prefilters:[eo],prefilter:function(n,t){t?v.prefilters.unshift(n):v.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:typeof f.duration!="number"&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),(f.queue==null||f.queue===!0)&&(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(bt).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=v(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 typeof n!="string"&&(u=t,t=n,n=undefined),t&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&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&&ef.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem===this&&(n==null||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 n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(hi(t,!0),n,i,u)}});i.each({slideDown:hi("show"),slideUp:hi("hide"),slideToggle:hi("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(at=Date.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();at=undefined};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){si||(si=!0,nr())};i.fx.stop=function(){si=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=f.createElement("input"),t=f.createElement("select"),i=t.appendChild(f.createElement("option"));n.type="checkbox";e.checkOn=n.value!=="";e.optSelected=i.selected;n=f.createElement("input");n.value="t";n.type="radio";e.radioValue=n.value==="t"}();vt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return w(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(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?hf:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&t==="radio"&&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(a);if(r&&n.nodeType===1)while(i=r[u++])n.removeAttribute(i)}});hf={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=vt[t]||i.find.attr;vt[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=vt[u],vt[u]=f,f=r(n,t,i)!=null?u:null,vt[u]=e),f}});cf=/^(?:input|select|textarea|button)$/i;lf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return w(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(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined)?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):cf.test(n.nodeName)||lf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.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 f,r,t,e,o,h,s,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,tt(this)))});if(f=tr(n),f.length)while(r=this[c++])if(e=tt(r),t=r.nodeType===1&&" "+nt(e)+" ",t){for(h=0;o=f[h++];)t.indexOf(" "+o+" ")<0&&(t+=o+" ");s=nt(t);e!==s&&r.setAttribute("class",s)}return this},removeClass:function(n){var f,r,t,e,o,h,s,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,tt(this)))});if(!arguments.length)return this.attr("class","");if(f=tr(n),f.length)while(r=this[c++])if(e=tt(r),t=r.nodeType===1&&" "+nt(e)+" ",t){for(h=0;o=f[h++];)while(t.indexOf(" "+o+" ")>-1)t=t.replace(" "+o+" "," ");s=nt(t);e!==s&&r.setAttribute("class",s)}return this},toggleClass:function(n,t){var f=typeof n,e=f==="string"||Array.isArray(n);return typeof t=="boolean"&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,tt(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=tr(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(n===undefined||f==="boolean")&&(t=tt(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(t.nodeType===1&&(" "+nt(tt(t))+" ").indexOf(i)>-1)return!0;return!1}});af=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;this.nodeType===1&&(u=e?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(f,"value"))!==undefined)?r:(r=f.value,typeof r=="string")?r.replace(af,""):r==null?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:nt(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f=n.type==="select-one",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}};e.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});e.focusin="onfocusin"in n;ir=/^(?:focusinfocus|focusoutblur)$/;rr=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,w,b=[o||f],h=ii.call(t,"type")?t.type:t,p=ii.call(t,"namespace")?t.namespace.split("."):[];if((c=w=l=o=o||f,o.nodeType!==3&&o.nodeType!==8)&&!ir.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(p=h.split("."),h=p.shift(),p.sort()),v=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,typeof t=="object"&&t),t.isTrigger=s?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=o),e=e==null?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||a.trigger.apply(o,e)!==!1)){if(!s&&!a.noBubble&&!it(o)){for(d=a.delegateType||h,ir.test(d+h)||(c=c.parentNode);c;c=c.parentNode)b.push(c),l=c;l===(o.ownerDocument||f)&&b.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=b[k++])&&!t.isPropagationStopped();)w=c,t.type=k>1?d:a.bindType||h,y=(r.get(c,"events")||Object.create(null))[t.type]&&r.get(c,"handle"),y&&y.apply(c,e),y=v&&c[v],y&&y.apply&&et(c)&&(t.result=y.apply(c,e),t.result===!1&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||(!a._default||a._default.apply(b.pop(),e)===!1)&&et(o)&&v&&u(o[h])&&!it(o)&&(l=o[v],l&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&w.addEventListener(h,rr),o[h](),t.isPropagationStopped()&&w.removeEventListener(h,rr),i.event.triggered=undefined,l&&(o[v]=l)),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)}});e.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.document||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.document||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var gt=n.location,vf={guid:Date.now()},ur=/\?/;i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var so=/\[\]$/,yf=/\r?\n/g,ho=/^(?:submit|button|image|reset|file)$/i,co=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(i==null?"":i)};if(n==null)return"";if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)fr(r,n[r],t,e);return f.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")&&co.test(this.nodeName)&&!ho.test(n)&&(this.checked||!kt.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(yf,"\r\n")}}):{name:t.name,value:r.replace(yf,"\r\n")}}).get()}});var lo=/%20/g,ao=/#.*$/,vo=/([?&])_=[^&]*/,yo=/^(.*?):[ \t]*([^\r\n]*)$/mg,po=/^(?:GET|HEAD)$/,wo=/^\/\//,pf={},er={},wf="*/".concat("*"),or=f.createElement("a");return or.href=gt.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(gt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wf,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?sr(sr(n,i.ajaxSettings),t):sr(i.ajaxSettings,n)},ajaxPrefilter:bf(pf),ajaxTransport:bf(er),ajax:function(t,r){function b(t,r,f,l){var v,rt,g,p,b,a=r;s||(s=!0,d&&n.clearTimeout(d),c=undefined,k=l||"",e.readyState=t>0?4:0,v=t>=200&&t<300||t===304,f&&(p=bo(u,e,f)),!v&&i.inArray("script",u.dataTypes)>-1&&(u.converters["text script"]=function(){}),p=ko(u,p,e,v),v?(u.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||u.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,g=p.error,v=!g)):(g=a,(t||!a)&&(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",v?tt.resolveWith(h,[rt,a,e]):tt.rejectWith(h,[e,a,g]),e.statusCode(w),w=undefined,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:g]),it.fireWith(h,[e,a]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined);r=r||{};var c,o,k,v,d,l,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=yo.exec(k);)v[t[1].toLowerCase()+" "]=(v[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=v[n.toLowerCase()+" "]}return t==null?null:t.join(", ")},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return s==null&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return s==null&&(u.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 c&&c.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||gt.href)+"").replace(wo,gt.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(a)||[""],u.crossDomain==null){l=f.createElement("a");try{l.href=u.url;l.href=l.href;u.crossDomain=or.protocol+"//"+or.host!=l.protocol+"//"+l.host}catch(et){u.crossDomain=!0}}if(u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),kf(pf,u,r,e),s)return e;y=i.event&&u.global;y&&i.active++==0&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!po.test(u.type);o=u.url.replace(ao,"");u.hasContent?u.data&&u.processData&&(u.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(u.data=u.data.replace(lo,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||typeof u.data=="string")&&(o+=(ur.test(o)?"&":"?")+u.data,delete u.data),u.cache===!1&&(o=o.replace(vo,"$1"),p=(ur.test(o)?"&":"?")+"_="+vf.guid+++p),u.url=o+p);u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType);e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+wf+"; q=0.01":""):u.accepts["*"]);for(g in u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(u.beforeSend.call(h,e,u)===!1||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),c=kf(er,u,r,e),c){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&u.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;c.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,undefined,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=undefined),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i.ajaxPrefilter(function(n){for(var t in n.headers)t.toLowerCase()==="content-type"&&(n.contentType=n.headers[t]||"")}),i._evalUrl=function(n,t,r){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){i.globalEval(n,t,r)}})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(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 u(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=u(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){}},df={0:200,1223:204},yt=i.ajaxSettings.xhr(),e.cors=!!yt&&"withCredentials"in yt,e.ajax=yt=!!yt,i.ajaxTransport(function(t){var i,r;if(e.cors||yt&&!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.ontimeout=e.onreadystatechange=null,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(df[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&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){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain||n.scriptAttrs){var r,t;return{send:function(u,e){r=i("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e(n.type==="error"?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}}),hr=[],ci=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=hr.pop()||i.expando+"_"+vf.guid++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=t.jsonp!==!1&&(ci.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ci.test(t.data)&&"data");if(h||t.dataTypes[0]==="jsonp")return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(ci,"$1"+e):t.jsonp!==!1&&(t.url+=(ur.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){o===undefined?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,hr.push(e));s&&u(o)&&o(s[0]);s=o=undefined}),"script"}),e.createHTMLDocument=function(){var n=f.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",n.childNodes.length===2}(),i.parseHTML=function(n,t,r){if(typeof n!="string")return[];typeof t=="boolean"&&(r=t,t=!1);var s,u,o;return(t||(e.createHTMLDocument?(t=f.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=f.location.href,t.head.appendChild(s)):t=f),u=vi.exec(n),o=!r&&[],u)?[t.createElement(u[1])]:(u=lu([n],t,o),o&&o.length&&i(o).remove(),i.merge([],u.childNodes))},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return o>-1&&(f=nt(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=undefined):t&&typeof t=="object"&&(s="POST"),e.length>0&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},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 o,s,h,c,e,l,y,a=i.css(n,"position"),v=i(n),f={};a==="static"&&(n.style.position="relative");e=v.offset();h=i.css(n,"top");l=i.css(n,"left");y=(a==="absolute"||a==="fixed")&&(h+l).indexOf("auto")>-1;y?(o=v.position(),c=o.top,s=o.left):(c=parseFloat(h)||0,s=parseFloat(l)||0);u(t)&&(t=t.call(n,r,i.extend({},e)));t.top!=null&&(f.top=t.top-e.top+c);t.left!=null&&(f.left=t.left-e.left+s);"using"in t?t.using.call(n,f):(typeof f.top=="number"&&(f.top+="px"),typeof f.left=="number"&&(f.left+="px"),v.css(f))}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,u,f,t=this[0],r={top:0,left:0};if(i.css(t,"position")==="fixed")u=t.getBoundingClientRect();else{for(u=this.offset(),f=t.ownerDocument,n=t.offsetParent||f.documentElement;n&&(n===f.body||n===f.documentElement)&&i.css(n,"position")==="static";)n=n.parentNode;n&&n!==t&&n.nodeType===1&&(r=i(n).offset(),r.top+=i.css(n,"borderTopWidth",!0),r.left+=i.css(n,"borderLeftWidth",!0))}return{top:u.top-r.top-i.css(t,"marginTop",!0),left:u.left-r.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||g})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return w(this,function(n,i,u){var f;if(it(n)?f=n:n.nodeType===9&&(f=n.defaultView),u===undefined)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=bu(e.pixelPosition,function(n,r){if(r)return r=dt(n,t),ki.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||typeof f!="boolean"),s=r||(f===!0||e===!0?"margin":"border");return w(this,function(t,r,f){var e;return it(t)?u.indexOf("outer")===0?t["inner"+n]:t.document.documentElement["client"+n]:t.nodeType===9?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):f===undefined?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:undefined,o)}})}),i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),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 arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),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)}}),gf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,i.proxy=function(n,t){var f,e,r;return(typeof t=="string"&&(f=n[t],t=n,n=f),!u(n))?undefined:(e=k.call(arguments,2),r=function(){return n.apply(t||this,e.concat(k.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=l,i.isFunction=u,i.isWindow=it,i.camelCase=y,i.type=rt,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return(t==="number"||t==="string")&&!isNaN(n-parseFloat(n))},i.trim=function(n){return n==null?"":(n+"").replace(gf,"")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),ne=n.jQuery,te=n.$,i.noConflict=function(t){return n.$===i&&(n.$=te),t&&n.jQuery===i&&(n.jQuery=ne),i},typeof t=="undefined"&&(n.jQuery=n.$=i),i}),function(n,t,i){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"&&typeof Meteor=="undefined"?module.exports=n(require("jquery")):n(t||i)}(function(n){"use strict";var i=function(t,i,r){var u={invalid:[],getCaret:function(){try{var n,i=0,e=t.get(0),f=document.selection,r=e.selectionStart;return f&&navigator.appVersion.indexOf("MSIE 10")===-1?(n=f.createRange(),n.moveStart("character",-u.val().length),i=n.text.length):(r||r==="0")&&(i=r),i}catch(o){}},setCaret:function(n){try{if(t.is(":focus")){var i,r=t.get(0);r.setSelectionRange?r.setSelectionRange(n,n):(i=r.createTextRange(),i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",n),i.select())}}catch(u){}},events:function(){t.on("keydown.mask",function(n){t.data("mask-keycode",n.keyCode||n.which);t.data("mask-previus-value",t.val());t.data("mask-previus-caret-pos",u.getCaret());u.maskDigitPosMapOld=u.maskDigitPosMap}).on(n.jMaskGlobals.useInput?"input.mask":"keyup.mask",u.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){t.keydown().keyup()},100)}).on("change.mask",function(){t.data("changed",!0)}).on("blur.mask",function(){e===u.val()||t.data("changed")||t.trigger("change");t.data("changed",!1)}).on("blur.mask",function(){e=u.val()}).on("focus.mask",function(t){r.selectOnFocus===!0&&n(t.target).select()}).on("focusout.mask",function(){r.clearIfNotMatch&&!o.test(u.val())&&u.val("")})},getRegexMask:function(){for(var u=[],r,e,h,s,n,o,t=0;t<i.length;t++)r=f.translation[i.charAt(t)],r?(e=r.pattern.toString().replace(/.{1}$|^.{1}/g,""),h=r.optional,s=r.recursive,s?(u.push(i.charAt(t)),n={digit:i.charAt(t),pattern:e}):u.push(!h&&!s?e:e+"?")):u.push(i.charAt(t).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));return o=u.join(""),n&&(o=o.replace(new RegExp("("+n.digit+"(.*"+n.digit+")?)"),"($1)?").replace(new RegExp(n.digit,"g"),n.pattern)),new RegExp(o)},destroyEvents:function(){t.off(["input","keydown","keyup","paste","drop","blur","focusout",""].join(".mask "))},val:function(n){var u=t.is("input"),i=u?"val":"text",r;return arguments.length>0?(t[i]()!==n&&t[i](n),r=t):r=t[i](),r},calculateCaretPosition:function(n){var s=u.getMasked(),i=u.getCaret(),v;if(n!==s){for(var f=t.data("mask-previus-caret-pos")||0,h=s.length,c=n.length,l=0,a=0,e=0,o=0,r=0,r=i;r<h;r++){if(!u.maskDigitPosMap[r])break;a++}for(r=i-1;r>=0;r--){if(!u.maskDigitPosMap[r])break;l++}for(r=i-1;r>=0;r--)u.maskDigitPosMap[r]&&e++;for(r=f-1;r>=0;r--)u.maskDigitPosMapOld[r]&&o++;i>c?i=h*10:f>=i&&f!==c?u.maskDigitPosMapOld[i]||(v=i,i-=o-e,i-=l,u.maskDigitPosMap[i]&&(i=v)):i>f&&(i+=e-o,i+=a)}return i},behaviour:function(i){var r;if(i=i||window.event,u.invalid=[],r=t.data("mask-keycode"),n.inArray(r,f.byPassKeys)===-1){var e=u.getMasked(),o=u.getCaret(),s=t.data("mask-previus-value")||"";return setTimeout(function(){u.setCaret(u.calculateCaretPosition(s))},n.jMaskGlobals.keyStrokeCompensation),u.val(e),u.setCaret(o),u.callbacks(i)}},getMasked:function(n,t){var c=[],rt=t===undefined?u.val():t+"",e=0,y=i.length,o=0,p=rt.length,s=1,w="push",l=-1,k=0,d=[],a,g,nt,tt,it;for(r.reverse?(w="unshift",s=-1,a=0,e=y-1,o=p-1,g=function(){return e>-1&&o>-1}):(a=y-1,g=function(){return e<y&&o<p});g();){var b=i.charAt(e),v=rt.charAt(o),h=f.translation[b];h?(v.match(h.pattern)?(c[w](v),h.recursive&&(l===-1?l=e:e===a&&e!==l&&(e=l-s),a===l&&(e-=s)),e+=s):v===nt?(k--,nt=undefined):h.optional?(e+=s,o-=s):h.fallback?(c[w](h.fallback),e+=s,o-=s):u.invalid.push({p:o,v:v,e:h.pattern}),o+=s):(n||c[w](b),v===b?(d.push(o),o+=s):(nt=b,d.push(o+k),k++),e+=s)}return tt=i.charAt(a),y!==p+1||f.translation[tt]||c.push(tt),it=c.join(""),u.mapMaskdigitPositions(it,d,p),it},mapMaskdigitPositions:function(n,t,i){var e=r.reverse?n.length-i:0,f;for(u.maskDigitPosMap={},f=0;f<t.length;f++)u.maskDigitPosMap[t[f]+e]=1},callbacks:function(n){var f=u.val(),h=f!==e,s=[f,n,t,r],o=function(n,t,i){typeof r[n]=="function"&&t&&r[n].apply(this,i)};o("onChange",h===!0,s);o("onKeyPress",h===!0,s);o("onComplete",f.length===i.length,s);o("onInvalid",u.invalid.length>0,[f,n,t,u.invalid,r])}},f,e,o;t=n(t);f=this;e=u.val();i=typeof i=="function"?i(u.val(),undefined,t,r):i;f.mask=i;f.options=r;f.remove=function(){var n=u.getCaret();return f.options.placeholder&&t.removeAttr("placeholder"),t.data("mask-maxlength")&&t.removeAttr("maxlength"),u.destroyEvents(),u.val(f.getCleanVal()),u.setCaret(n),t};f.getCleanVal=function(){return u.getMasked(!0)};f.getMaskedVal=function(n){return u.getMasked(!1,n)};f.init=function(e){var s,h,c,l;if(e=e||!1,r=r||{},f.clearIfNotMatch=n.jMaskGlobals.clearIfNotMatch,f.byPassKeys=n.jMaskGlobals.byPassKeys,f.translation=n.extend({},n.jMaskGlobals.translation,r.translation),f=n.extend(!0,{},f,r),o=u.getRegexMask(),e)u.events(),u.val(u.getMasked());else{for(r.placeholder&&t.attr("placeholder",r.placeholder),t.data("mask")&&t.attr("autocomplete","off"),s=0,h=!0;s<i.length;s++)if(c=f.translation[i.charAt(s)],c&&c.recursive){h=!1;break}h&&t.attr("maxlength",i.length).data("mask-maxlength",!0);u.destroyEvents();u.events();l=u.getCaret();u.val(u.getMasked());u.setCaret(l)}};f.init(!t.is("input"))},t;n.maskWatchers={};var u=function(){var t=n(this),u={},f="data-mask-",e=t.attr("data-mask");return t.attr(f+"reverse")&&(u.reverse=!0),t.attr(f+"clearifnotmatch")&&(u.clearIfNotMatch=!0),t.attr(f+"selectonfocus")==="true"&&(u.selectOnFocus=!0),r(t,e,u)?t.data("mask",new i(this,e,u)):void 0},r=function(t,i,r){r=r||{};var u=n(t).data("mask"),f=JSON.stringify,e=n(t).val()||n(t).text();try{return typeof i=="function"&&(i=i(e)),typeof u!="object"||f(u.options)!==f(r)||u.mask!==i}catch(o){}},f=function(n){var t=document.createElement("div"),i;return n="on"+n,i=n in t,i||(t.setAttribute(n,"return;"),i=typeof t[n]=="function"),t=null,i};n.fn.mask=function(t,u){u=u||{};var f=this.selector,e=n.jMaskGlobals,s=e.watchInterval,h=u.watchInputs||e.watchInputs,o=function(){if(r(this,t,u))return n(this).data("mask",new i(this,t,u))};return n(this).each(o),f&&f!==""&&h&&(clearInterval(n.maskWatchers[f]),n.maskWatchers[f]=setInterval(function(){n(document).find(f).each(o)},s)),this};n.fn.masked=function(n){return this.data("mask").getMaskedVal(n)};n.fn.unmask=function(){return clearInterval(n.maskWatchers[this.selector]),delete n.maskWatchers[this.selector],this.each(function(){var t=n(this).data("mask");t&&t.remove().removeData("mask")})};n.fn.cleanVal=function(){return this.data("mask").getCleanVal()};n.applyDataMask=function(t){t=t||n.jMaskGlobals.maskElements;var i=t instanceof n?t:n(t);i.filter(n.jMaskGlobals.dataMaskAttr).each(u)};t={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,keyStrokeCompensation:10,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&f("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{"0":{pattern:/\d/},"9":{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};n.jMaskGlobals=n.jMaskGlobals||{};t=n.jMaskGlobals=n.extend(!0,{},t,n.jMaskGlobals);t.dataMask&&n.applyDataMask();setInterval(function(){n.jMaskGlobals.watchDataMask&&n.applyDataMask()},t.watchInterval)},window.jQuery,window.Zepto);!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((n=n||self).bootstrap={},n.jQuery)}(this,function(n,t){"use strict";function hf(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)}function l(n,t,i){return t&&hf(n.prototype,t),i&&hf(n,i),n}function u(n){for(var i,r,t=1;t<arguments.length;t++)i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i),"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable}))),r.forEach(function(t){var r,u,f;r=n;f=i[u=t];u in r?Object.defineProperty(r,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):r[u]=f});return n}function ao(n){var u=this,r=!1;return t(this).one(i.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||i.triggerTransitionEnd(u)},n),this}function gf(n){return n&&"[object Function]"==={}.toString.call(n)}function nt(n,t){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return t?i[t]:i}function lu(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function hi(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=nt(n),i=t.overflow,r=t.overflowX,u=t.overflowY;return/(auto|scroll|overlay)/.test(i+u+r)?n:hi(lu(n))}function ht(n){return 11===n?au:10===n?vu:au||vu}function ct(n){var r,t,i;if(!n)return document.documentElement;for(r=ht(10)?document.body:null,t=n.offsetParent||null;t===r&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return i=t&&t.nodeName,i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===nt(t,"position")?ct(t):t:n?n.ownerDocument.documentElement:document.documentElement}function yu(n){return null!==n.parentNode?yu(n.parentNode):n}function hr(n,t){var u,h,i,f;if(!(n&&n.nodeType&&t&&t.nodeType))return 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))?"BODY"===(h=(u=i).nodeName)||"HTML"!==h&&ct(u.firstElementChild)!==u?ct(i):i:(f=yu(n),f.host?hr(f.host,t):hr(n,yu(t).host))}function lt(n){var t="top"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",i=n.nodeName,r;return"BODY"!==i&&"HTML"!==i?n[t]:(r=n.ownerDocument.documentElement,(n.ownerDocument.scrollingElement||r)[t])}function ne(n,t){var i="x"===t?"Left":"Top",r="Left"===i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function te(n,t,i,r){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],ht(10)?parseInt(i["offset"+n])+parseInt(r["margin"+("Height"===n?"Top":"Left")])+parseInt(r["margin"+("Height"===n?"Bottom":"Right")]):0)}function ie(n){var i=n.body,t=n.documentElement,r=ht(10)&&getComputedStyle(t);return{height:te("Height",i,t,r),width:te("Width",i,t,r)}}function p(n){return h({},n,{right:n.left+n.width,bottom:n.top+n.height})}function pu(n){var t={},r,u,o;try{ht(10)?(t=n.getBoundingClientRect(),r=lt(n,"top"),u=lt(n,"left"),t.top+=r,t.left+=u,t.bottom+=r,t.right+=u):t=n.getBoundingClientRect()}catch(n){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s="HTML"===n.nodeName?ie(n.ownerDocument):{},h=s.width||n.clientWidth||i.right-i.left,c=s.height||n.clientHeight||i.bottom-i.top,f=n.offsetWidth-h,e=n.offsetHeight-c;return(f||e)&&(o=nt(n),f-=ne(o,"x"),e-=ne(o,"y"),i.width-=f,i.height-=e),p(i)}function wu(n,t){var l=2<arguments.length&&void 0!==arguments[2]&&arguments[2],a=ht(10),v="HTML"===t.nodeName,u=pu(n),r=pu(t),s=hi(n),f=nt(t),h=parseFloat(f.borderTopWidth,10),c=parseFloat(f.borderLeftWidth,10),i,e,o;return l&&v&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0)),i=p({top:u.top-r.top-h,left:u.left-r.left-c,width:u.width,height:u.height}),(i.marginTop=0,i.marginLeft=0,!a&&v)&&(e=parseFloat(f.marginTop,10),o=parseFloat(f.marginLeft,10),i.top-=h-e,i.bottom-=h-e,i.left-=c-o,i.right-=c-o,i.marginTop=e,i.marginLeft=o),(a&&!l?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(i=function(n,t){var f=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=lt(t,"top"),u=lt(t,"left"),i=f?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}(i,t)),i}function re(n){if(!n||!n.parentElement||ht())return document.documentElement;for(var t=n.parentElement;t&&"none"===nt(t,"transform");)t=t.parentElement;return t||document.documentElement}function bu(n,t,i,r){var s=4<arguments.length&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},h=s?re(n):hr(n,t),e,f,o;if("viewport"===r)u=function(n){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=wu(n,t),u=Math.max(t.clientWidth,window.innerWidth||0),f=Math.max(t.clientHeight,window.innerHeight||0),e=r?0:lt(t),o=r?0:lt(t,"left");return p({top:e-i.top+i.marginTop,left:o-i.left+i.marginLeft,width:u,height:f})}(h,s);else if(e=void 0,"scrollParent"===r?"BODY"===(e=hi(lu(t))).nodeName&&(e=n.ownerDocument.documentElement):e="window"===r?n.ownerDocument.documentElement:r,f=wu(e,h,s),"HTML"!==e.nodeName||function n(t){var r=t.nodeName,i;return"BODY"===r||"HTML"===r?!1:"fixed"===nt(t,"position")?!0:(i=lu(t),!!i&&n(i))}(h))u=f;else{var c=ie(n.ownerDocument),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 o="number"==typeof(i=i||0),u.left+=o?i:i.left||0,u.top+=o?i:i.top||0,u.right-=o?i:i.right||0,u.bottom-=o?i:i.bottom||0,u}function ue(n,t,i,r,u){var l=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var f=bu(i,r,l,u),e={top:{width:f.width,height:t.top-f.top},right:{width:f.right-t.right,height:f.height},bottom:{width:f.width,height:f.bottom-t.bottom},left:{width:t.left-f.left,height:f.height}},o=Object.keys(e).map(function(n){return h({key:n},e[n],{area:(t=e[n],t.width*t.height)});var t}).sort(function(n,t){return t.area-n.area}),s=o.filter(function(n){var t=n.width,r=n.height;return t>=i.clientWidth&&r>=i.clientHeight}),a=0<s.length?s[0].key:o[0].key,c=n.split("-")[1];return a+(c?"-"+c:"")}function fe(n,t,i){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return wu(i,r?re(t):hr(t,i),r)}function ee(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function cr(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 oe(n,t,i){i=i.split("-")[0];var r=ee(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[cr(f)],e}function ci(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function se(n,t,i){return(void 0===i?n:n.slice(0,function(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=ci(n,function(n){return n[t]===i});return n.indexOf(r)}(n,"name",i))).forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=n.function||n.fn;n.enabled&&gf(i)&&(t.offsets.popper=p(t.offsets.popper),t.offsets.reference=p(t.offsets.reference),t=i(t,n))}),t}function he(n,t){return n.some(function(n){var i=n.name;return n.enabled&&i===t})}function ku(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof document.body.style[r])return r;return null}function ce(n){var t=n.ownerDocument;return t?t.defaultView:window}function uh(n,t,i,r){i.updateBound=r;ce(n).addEventListener("resize",i.updateBound,{passive:!0});var u=hi(n);return function n(t,i,r,u){var e="BODY"===t.nodeName,f=e?t.ownerDocument.defaultView:t;f.addEventListener(i,r,{passive:!0});e||n(hi(f.parentNode),i,r,u);u.push(f)}(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function fh(){var t,n;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,n=this.state,ce(t).removeEventListener("resize",n.updateBound),n.scrollParents.forEach(function(t){t.removeEventListener("scroll",n.updateBound)}),n.updateBound=null,n.scrollParents=[],n.scrollElement=null,n.eventsEnabled=!1,n))}function du(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function gu(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&du(t[i])&&(r="px");n.style[i]=t[i]+r})}function ae(n,t,i){var u=ci(n,function(n){return n.name===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r,e;return f||(r="`"+t+"`",e="`"+i+"`",console.warn(e+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function ve(n){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=lr.indexOf(n),i=lr.slice(t+1).concat(lr.slice(0,t));return r?i.reverse():i}function hh(n,t,i,r){var s=[0,0],h=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(ci(u,function(n){return-1!==n.search(/,|\s/)})),e,o;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),e=/\s*,\s*|\s+/,o=-1!==f?[u.slice(0,f).concat([u[f].split(e)[0]]),[u[f].split(e)[1]].concat(u.slice(f+1))]:[u],(o=o.map(function(n,r){var f=(1===r?!h:h)?"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 function(n,t,i,r){var o=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),f=+o[1],u=o[2],e;if(!f)return n;if(0!==u.indexOf("%"))return"vh"!==u&&"vw"!==u?f:("vh"===u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*f;e=void 0;switch(u){case"%p":e=i;break;case"%":case"%r":default:e=r}return p(e)[t]/100*f}(n,f,t,i)})})).forEach(function(n,t){n.forEach(function(i,r){du(i)&&(s[t]+=i*("-"===n[r-1]?-1:1))})}),s}function de(n,t,i){if(0===n.length)return n;if(i&&"function"==typeof i)return i(n);for(var u=(new window.DOMParser).parseFromString(n,"text/html"),e=Object.keys(t),f=[].slice.call(u.body.querySelectorAll("*")),o=function(n){var i=f[n],o=i.nodeName.toLowerCase(),r,u;if(-1===e.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";r=[].slice.call(i.attributes);u=[].concat(t["*"]||[],t[o]||[]);r.forEach(function(n){(function(n,t){var i=n.nodeName.toLowerCase();if(-1!==t.indexOf(i))return-1===vc.indexOf(i)||Boolean(n.nodeValue.match(yc)||n.nodeValue.match(pc));for(var u=t.filter(function(n){return n instanceof RegExp}),r=0,f=u.length;r<f;r++)if(i.match(u[r]))return!0;return!1})(n,u)||i.removeAttribute(n.nodeName)})},r=0,s=f.length;r<s;r++)o(r);return u.body.innerHTML}var dt,i,df,au,vu,le,nf,lr,ye,w;t=t&&t.hasOwnProperty("default")?t.default:t;dt="transitionend";i={TRANSITION_END:"bsTransitionEnd",getUID:function(n){for(;n+=~~(1e6*Math.random()),document.getElementById(n););return n},getSelectorFromElement:function(n){var t=n.getAttribute("data-target"),i;t&&"#"!==t||(i=n.getAttribute("href"),t=i&&"#"!==i?i.trim():"");try{return document.querySelector(t)?t:null}catch(n){return null}},getTransitionDurationFromElement:function(n){if(!n)return 0;var i=t(n).css("transition-duration"),r=t(n).css("transition-delay"),u=parseFloat(i),f=parseFloat(r);return u||f?(i=i.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(i)+parseFloat(r))):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(dt)},supportsTransitionEnd:function(){return Boolean(dt)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,t,r){var u,s;for(u in r)if(Object.prototype.hasOwnProperty.call(r,u)){var e=r[u],f=t[u],o=f&&i.isElement(f)?"element":(s=f,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(e).test(o))throw new Error(n.toUpperCase()+': Option "'+u+'" provided type "'+o+'" but expected type "'+e+'".');}},findShadowRoot:function(n){if(!document.documentElement.attachShadow)return null;if("function"!=typeof n.getRootNode)return n instanceof ShadowRoot?n:n.parentNode?i.findShadowRoot(n.parentNode):null;var t=n.getRootNode();return t instanceof ShadowRoot?t:null}};t.fn.emulateTransitionEnd=ao;t.event.special[i.TRANSITION_END]={bindType:dt,delegateType:dt,handle:function(n){if(t(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}};var gt="alert",ur="bs.alert",iu="."+ur,vo=t.fn[gt],ru={CLOSE:"close"+iu,CLOSED:"closed"+iu,CLICK_DATA_API:"click"+iu+".data-api"},yo="alert",po="fade",wo="show",ft=function(){function n(n){this._element=n}var r=n.prototype;return r.close=function(n){var t=this._element;n&&(t=this._getRootElement(n));this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},r.dispose=function(){t.removeData(this._element,ur);this._element=null},r._getRootElement=function(n){var u=i.getSelectorFromElement(n),r=!1;return u&&(r=document.querySelector(u)),r||(r=t(n).closest("."+yo)[0]),r},r._triggerCloseEvent=function(n){var i=t.Event(ru.CLOSE);return t(n).trigger(i),i},r._removeElement=function(n){var u=this,r;(t(n).removeClass(wo),t(n).hasClass(po))?(r=i.getTransitionDurationFromElement(n),t(n).one(i.TRANSITION_END,function(t){return u._destroyElement(n,t)}).emulateTransitionEnd(r)):this._destroyElement(n)},r._destroyElement=function(n){t(n).detach().trigger(ru.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data(ur);r||(r=new n(this),u.data(ur,r));"close"===i&&r[i](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();t(document).on(ru.CLICK_DATA_API,'[data-dismiss="alert"]',ft._handleDismiss(new ft));t.fn[gt]=ft._jQueryInterface;t.fn[gt].Constructor=ft;t.fn[gt].noConflict=function(){return t.fn[gt]=vo,ft._jQueryInterface};var ni="button",fr="bs.button",uu="."+fr,fu=".data-api",bo=t.fn[ni],ti="active",ko="btn",go="focus",cf='[data-toggle^="button"]',ns='[data-toggle="buttons"]',ts='input:not([type="hidden"])',is=".active",lf=".btn",af={CLICK_DATA_API:"click"+uu+fu,FOCUS_BLUR_DATA_API:"focus"+uu+fu+" blur"+uu+fu},ii=function(){function n(n){this._element=n}var i=n.prototype;return i.toggle=function(){var r=!0,f=!0,i=t(this._element).closest(ns)[0],n,u;if(i&&(n=this._element.querySelector(ts),n)){if("radio"===n.type&&(n.checked&&this._element.classList.contains(ti)?r=!1:(u=i.querySelector(is),u&&t(u).removeClass(ti))),r){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!this._element.classList.contains(ti);t(n).trigger("change")}n.focus();f=!1}f&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(ti));r&&t(this._element).toggleClass(ti)},i.dispose=function(){t.removeData(this._element,fr);this._element=null},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data(fr);r||(r=new n(this),t(this).data(fr,r));"toggle"===i&&r[i]()})},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();t(document).on(af.CLICK_DATA_API,cf,function(n){n.preventDefault();var i=n.target;t(i).hasClass(ko)||(i=t(i).closest(lf));ii._jQueryInterface.call(t(i),"toggle")}).on(af.FOCUS_BLUR_DATA_API,cf,function(n){var i=t(n.target).closest(lf)[0];t(i).toggleClass(go,/^focus(in)?$/.test(n.type))});t.fn[ni]=ii._jQueryInterface;t.fn[ni].Constructor=ii;t.fn[ni].noConflict=function(){return t.fn[ni]=bo,ii._jQueryInterface};var et="carousel",ri="bs.carousel",e="."+ri,vf=".data-api",rs=t.fn[et],eu={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},us={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},er="next",or="prev",fs="left",es="right",o={SLIDE:"slide"+e,SLID:"slid"+e,KEYDOWN:"keydown"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e,TOUCHSTART:"touchstart"+e,TOUCHMOVE:"touchmove"+e,TOUCHEND:"touchend"+e,POINTERDOWN:"pointerdown"+e,POINTERUP:"pointerup"+e,DRAG_START:"dragstart"+e,LOAD_DATA_API:"load"+e+vf,CLICK_DATA_API:"click"+e+vf},os="carousel",k="active",ss="slide",hs="carousel-item-right",cs="carousel-item-left",ls="carousel-item-next",as="carousel-item-prev",vs="pointer-event",ys=".active",ou=".active.carousel-item",ps=".carousel-item",ws=".carousel-item img",bs=".carousel-item-next, .carousel-item-prev",ks=".carousel-indicators",ds='[data-ride="carousel"]',yf={TOUCH:"touch",PEN:"pen"},ot=function(){function r(n,t){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this.touchStartX=0;this.touchDeltaX=0;this._config=this._getConfig(t);this._element=n;this._indicatorsElement=this._element.querySelector(ks);this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var n=r.prototype;return n.next=function(){this._isSliding||this._slide(er)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(or)},n.pause=function(n){n||(this._isPaused=!0);this._element.querySelector(bs)&&(i.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},n.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))},n.to=function(n){var u=this,i,r;if(this._activeElement=this._element.querySelector(ou),i=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)t(this._element).one(o.SLID,function(){return u.to(n)});else{if(i===n)return this.pause(),void this.cycle();r=i<n?er:or;this._slide(r,this._items[n])}},n.dispose=function(){t(this._element).off(e);t.removeData(this._element,ri);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},n._getConfig=function(n){return n=u({},eu,n),i.typeCheckConfig(et,n,us),n},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX),n;t<=40||(n=t/this.touchDeltaX,0<n&&this.prev(),n<0&&this.next())},n._addEventListeners=function(){var n=this;this._config.keyboard&&t(this._element).on(o.KEYDOWN,function(t){return n._keydown(t)});"hover"===this._config.pause&&t(this._element).on(o.MOUSEENTER,function(t){return n.pause(t)}).on(o.MOUSELEAVE,function(t){return n.cycle(t)});this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var n=this,i,r;this._touchSupported&&(i=function(t){n._pointerEvent&&yf[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){n._pointerEvent&&yf[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX);n._handleSwipe();"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))},t(this._element.querySelectorAll(ws)).on(o.DRAG_START,function(n){return n.preventDefault()}),this._pointerEvent?(t(this._element).on(o.POINTERDOWN,function(n){return i(n)}),t(this._element).on(o.POINTERUP,function(n){return r(n)}),this._element.classList.add(vs)):(t(this._element).on(o.TOUCHSTART,function(n){return i(n)}),t(this._element).on(o.TOUCHMOVE,function(t){var i;n.touchDeltaX=(i=t).originalEvent.touches&&1<i.originalEvent.touches.length?0:i.originalEvent.touches[0].clientX-n.touchStartX}),t(this._element).on(o.TOUCHEND,function(n){return r(n)})))},n._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()}},n._getItemIndex=function(n){return this._items=n&&n.parentNode?[].slice.call(n.parentNode.querySelectorAll(ps)):[],this._items.indexOf(n)},n._getItemByDirection=function(n,t){var u=n===er,f=n===or,i=this._getItemIndex(t),e=this._items.length-1,r;return(f&&0===i||u&&i===e)&&!this._config.wrap?t:(r=(i+(n===or?-1:1))%this._items.length,-1===r?this._items[this._items.length-1]:this._items[r])},n._triggerSlideEvent=function(n,i){var u=this._getItemIndex(n),f=this._getItemIndex(this._element.querySelector(ou)),r=t.Event(o.SLIDE,{relatedTarget:n,direction:i,from:f,to:u});return t(this._element).trigger(r),r},n._setActiveIndicatorElement=function(n){var r,i;this._indicatorsElement&&(r=[].slice.call(this._indicatorsElement.querySelectorAll(ys)),t(r).removeClass(k),i=this._indicatorsElement.children[this._getItemIndex(n)],i&&t(i).addClass(k))},n._slide=function(n,r){var e,s,h,a=this,f=this._element.querySelector(ou),p=this._getItemIndex(f),u=r||f&&this._getItemByDirection(n,f),w=this._getItemIndex(u),v=Boolean(this._interval),c,l,y;(h=n===er?(e=cs,s=ls,fs):(e=hs,s=as,es),u&&t(u).hasClass(k))?this._isSliding=!1:!this._triggerSlideEvent(u,h).isDefaultPrevented()&&f&&u&&(this._isSliding=!0,v&&this.pause(),this._setActiveIndicatorElement(u),c=t.Event(o.SLID,{relatedTarget:u,direction:h,from:p,to:w}),t(this._element).hasClass(ss)?(t(u).addClass(s),i.reflow(u),t(f).addClass(e),t(u).addClass(e),l=parseInt(u.getAttribute("data-interval"),10),this._config.interval=l?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,l):this._config.defaultInterval||this._config.interval,y=i.getTransitionDurationFromElement(f),t(f).one(i.TRANSITION_END,function(){t(u).removeClass(e+" "+s).addClass(k);t(f).removeClass(k+" "+s+" "+e);a._isSliding=!1;setTimeout(function(){return t(a._element).trigger(c)},0)}).emulateTransitionEnd(y)):(t(f).removeClass(k),t(u).addClass(k),this._isSliding=!1,t(this._element).trigger(c)),v&&this.cycle())},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(ri),f=u({},eu,t(this).data()),e;if("object"==typeof n&&(f=u({},f,n)),e="string"==typeof n?n:f.slide,i||(i=new r(this,f),t(this).data(ri,i)),"number"==typeof n)i.to(n);else if("string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}else f.interval&&f.ride&&(i.pause(),i.cycle())})},r._dataApiClickHandler=function(n){var s=i.getSelectorFromElement(this),f,o,e;s&&(f=t(s)[0],f&&t(f).hasClass(os)&&(o=u({},t(f).data(),t(this).data()),e=this.getAttribute("data-slide-to"),e&&(o.interval=!1),r._jQueryInterface.call(t(f),o),e&&t(f).data(ri).to(e),n.preventDefault()))},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return eu}}]),r}();t(document).on(o.CLICK_DATA_API,"[data-slide], [data-slide-to]",ot._dataApiClickHandler);t(window).on(o.LOAD_DATA_API,function(){for(var i,r=[].slice.call(document.querySelectorAll(ds)),n=0,u=r.length;n<u;n++)i=t(r[n]),ot._jQueryInterface.call(i,i.data())});t.fn[et]=ot._jQueryInterface;t.fn[et].Constructor=ot;t.fn[et].noConflict=function(){return t.fn[et]=rs,ot._jQueryInterface};var st="collapse",d="bs.collapse",ui="."+d,gs=t.fn[st],su={toggle:!0,parent:""},nh={toggle:"boolean",parent:"(string|element)"},fi={SHOW:"show"+ui,SHOWN:"shown"+ui,HIDE:"hide"+ui,HIDDEN:"hidden"+ui,CLICK_DATA_API:"click"+ui+".data-api"},g="show",ei="collapse",sr="collapsing",hu="collapsed",pf="width",th="height",ih=".show, .collapsing",wf='[data-toggle="collapse"]',oi=function(){function r(n,t){this._isTransitioning=!1;this._element=n;this._config=this._getConfig(t);this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'));for(var f=[].slice.call(document.querySelectorAll(wf)),r=0,o=f.length;r<o;r++){var e=f[r],u=i.getSelectorFromElement(e),s=[].slice.call(document.querySelectorAll(u)).filter(function(t){return t===n});null!==u&&0<s.length&&(this._selector=u,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 n=r.prototype;return n.toggle=function(){t(this._element).hasClass(g)?this.hide():this.show()},n.show=function(){var n,e,u=this,o,f,s,h;this._isTransitioning||t(this._element).hasClass(g)||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(ih)).filter(function(n){return"string"==typeof u._config.parent?n.getAttribute("data-parent")===u._config.parent:n.classList.contains(ei)})).length&&(n=null),n&&(e=t(n).not(this._selector).data(d))&&e._isTransitioning)||(o=t.Event(fi.SHOW),(t(this._element).trigger(o),o.isDefaultPrevented())||(n&&(r._jQueryInterface.call(t(n).not(this._selector),"hide"),e||t(n).data(d,null)),f=this._getDimension(),t(this._element).removeClass(ei).addClass(sr),this._element.style[f]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(hu).attr("aria-expanded",!0),this.setTransitioning(!0),s="scroll"+(f[0].toUpperCase()+f.slice(1)),h=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,function(){t(u._element).removeClass(sr).addClass(ei).addClass(g);u._element.style[f]="";u.setTransitioning(!1);t(u._element).trigger(fi.SHOWN)}).emulateTransitionEnd(h),this._element.style[f]=this._element[s]+"px"))},n.hide=function(){var s=this,u,n,f,r,e,o,h;if(!this._isTransitioning&&t(this._element).hasClass(g)&&(u=t.Event(fi.HIDE),t(this._element).trigger(u),!u.isDefaultPrevented())){if(n=this._getDimension(),this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",i.reflow(this._element),t(this._element).addClass(sr).removeClass(ei).removeClass(g),f=this._triggerArray.length,0<f)for(r=0;r<f;r++)e=this._triggerArray[r],o=i.getSelectorFromElement(e),null!==o&&(t([].slice.call(document.querySelectorAll(o))).hasClass(g)||t(e).addClass(hu).attr("aria-expanded",!1));this.setTransitioning(!0);this._element.style[n]="";h=i.getTransitionDurationFromElement(this._element);t(this._element).one(i.TRANSITION_END,function(){s.setTransitioning(!1);t(s._element).removeClass(sr).addClass(ei).trigger(fi.HIDDEN)}).emulateTransitionEnd(h)}},n.setTransitioning=function(n){this._isTransitioning=n},n.dispose=function(){t.removeData(this._element,d);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},n._getConfig=function(n){return(n=u({},su,n)).toggle=Boolean(n.toggle),i.typeCheckConfig(st,n,nh),n},n._getDimension=function(){return t(this._element).hasClass(pf)?pf:th},n._getParent=function(){var n,e=this,u,f;return i.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent),u='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',f=[].slice.call(n.querySelectorAll(u)),t(f).each(function(n,t){e._addAriaAndCollapsedClass(r._getTargetFromElement(t),[t])}),n},n._addAriaAndCollapsedClass=function(n,i){var r=t(n).hasClass(g);i.length&&t(i).toggleClass(hu,!r).attr("aria-expanded",r)},r._getTargetFromElement=function(n){var t=i.getSelectorFromElement(n);return t?document.querySelector(t):null},r._jQueryInterface=function(n){return this.each(function(){var f=t(this),i=f.data(d),e=u({},su,f.data(),"object"==typeof n&&n?n:{});if(!i&&e.toggle&&/show|hide/.test(n)&&(e.toggle=!1),i||(i=new r(this,e),f.data(d,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return su}}]),r}();t(document).on(fi.CLICK_DATA_API,wf,function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var r=t(this),u=i.getSelectorFromElement(this),f=[].slice.call(document.querySelectorAll(u));t(f).each(function(){var n=t(this),i=n.data(d)?"toggle":r.data();oi._jQueryInterface.call(n,i)})});t.fn[st]=oi._jQueryInterface;t.fn[st].Constructor=oi;t.fn[st].noConflict=function(){return t.fn[st]=gs,oi._jQueryInterface};for(var si="undefined"!=typeof window&&"undefined"!=typeof document,bf=["Edge","Trident","Firefox"],kf=0,cu=0;cu<bf.length;cu+=1)if(si&&0<=navigator.userAgent.indexOf(bf[cu])){kf=1;break}df=si&&window.Promise?function(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},kf))}};au=si&&!(!window.MSInputMethodContext||!document.documentMode);vu=si&&/MSIE 10/.test(navigator.userAgent);var rh=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}}(),at=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n};le=si&&/Firefox/i.test(navigator.userAgent);nf=["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"];lr=nf.slice(3);var eh="flip",oh="clockwise",sh="counterclockwise";ye={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(n){var r=n.placement,c=r.split("-")[0],u=r.split("-")[1];if(u){var f=n.offsets,i=f.reference,e=f.popper,o=-1!==["bottom","top"].indexOf(c),t=o?"left":"top",s=o?"width":"height",l={start:at({},t,i[t]),end:at({},t,i[t]+i[s]-e[s])};n.offsets.popper=h({},e,l[u])}return n}},offset:{order:200,enabled:!0,fn:function(n,t){var f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0],r=void 0;return r=du(+f)?[+f,0]:hh(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},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(n,t){var f=t.boundariesElement||ct(n.instance.popper),u;n.instance.reference===f&&(f=ct(f));var e=ku("transform"),r=n.instance.popper.style,o=r.top,s=r.left,c=r[e];r.top="";r.left="";r[e]="";u=bu(n.instance.popper,n.instance.reference,t.padding,f,n.positionFixed);r.top=o;r.left=s;r[e]=c;t.boundaries=u;var l=t.priority,i=n.offsets.popper,a={primary:function(n){var r=i[n];return i[n]<u[n]&&!t.escapeWithReference&&(r=Math.max(i[n],u[n])),at({},n,r)},secondary:function(n){var r="right"===n?"left":"top",f=i[r];return i[n]>u[n]&&!t.escapeWithReference&&(f=Math.min(i[r],u[n]-("right"===n?i.width:i.height))),at({},r,f)}};return l.forEach(function(n){var t=-1!==["left","top"].indexOf(n)?"primary":"secondary";i=h({},i,a[t](n))}),n.offsets.popper=i,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=-1!==["top","bottom"].indexOf(s),e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}},arrow:{order:500,enabled:!0,fn:function(n,t){var h,r;if(!ae(n.instance.modifiers,"arrow","keepTogether"))return n;if(r=t.element,"string"==typeof r){if(!(r=n.instance.popper.querySelector(r)))return n}else if(!n.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var w=n.placement.split("-")[0],v=n.offsets,e=v.popper,u=v.reference,o=-1!==["left","right"].indexOf(w),c=o?"height":"width",l=o?"Top":"Left",i=l.toLowerCase(),b=o?"left":"top",s=o?"bottom":"right",f=ee(r)[c];u[s]-f<e[i]&&(n.offsets.popper[i]-=e[i]-(u[s]-f));u[i]+f>e[s]&&(n.offsets.popper[i]+=u[i]+f-e[s]);n.offsets.popper=p(n.offsets.popper);var k=u[i]+u[c]/2-f/2,y=nt(n.instance.popper),d=parseFloat(y["margin"+l],10),g=parseFloat(y["border"+l+"Width"],10),a=k-n.offsets.popper[i]-d-g;return a=Math.max(Math.min(e[c]-f,a),0),n.arrowElement=r,n.offsets.arrow=(at(h={},i,Math.round(a)),at(h,b,""),h),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(n,t){if(he(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var f=bu(n.instance.popper,n.instance.reference,t.padding,t.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],e=cr(i),r=n.placement.split("-")[1]||"",u=[];switch(t.behavior){case eh:u=[i,e];break;case oh:u=ve(i);break;case sh:u=ve(i,!0);break;default:u=t.behavior}return u.forEach(function(o,s){if(i!==o||u.length===s+1)return n;i=n.placement.split("-")[0];e=cr(i);var y,l=n.offsets.popper,a=n.offsets.reference,c=Math.floor,p="left"===i&&c(l.right)>c(a.left)||"right"===i&&c(l.left)<c(a.right)||"top"===i&&c(l.bottom)>c(a.top)||"bottom"===i&&c(l.top)<c(a.bottom),w=c(l.left)<c(f.left),b=c(l.right)>c(f.right),k=c(l.top)<c(f.top),d=c(l.bottom)>c(f.bottom),g="left"===i&&w||"right"===i&&b||"top"===i&&k||"bottom"===i&&d,v=-1!==["top","bottom"].indexOf(i),nt=!!t.flipVariations&&(v&&"start"===r&&w||v&&"end"===r&&b||!v&&"start"===r&&k||!v&&"end"===r&&d);(p||g||nt)&&(n.flipped=!0,(p||g)&&(i=u[s+1]),nt&&(r="end"===(y=r)?"start":"start"===y?"end":y),n.placement=i+(r?"-"+r:""),n.offsets.popper=h({},n.offsets.popper,oe(n.instance.popper,n.offsets.reference,n.placement)),n=se(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(n){var r=n.placement,t=r.split("-")[0],u=n.offsets,i=u.popper,e=u.reference,f=-1!==["left","right"].indexOf(t),o=-1===["top","left"].indexOf(t);return i[f?"left":"top"]=e[t]-(o?i[f?"width":"height"]:0),n.placement=cr(r),n.offsets.popper=p(i),n}},hide:{order:800,enabled:!0,fn:function(n){if(!ae(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=ci(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(n,t){var ht=t.x,lt=t.y,at=n.offsets.popper,a=ci(n.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,et,ot,st;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var c,l,v,r,nt,f,tt,y,p,w,it,b,rt,k,vt=void 0!==a?a:t.gpuAcceleration,e=ct(n.instance.popper),ut=pu(e),i={position:at.position},u=(c=n,l=window.devicePixelRatio<2||!le,v=c.offsets,r=v.popper,nt=v.reference,f=Math.round,tt=Math.floor,y=function(n){return n},p=f(nt.width),w=f(r.width),it=-1!==["left","right"].indexOf(c.placement),b=-1!==c.placement.indexOf("-"),k=l?f:y,{left:(rt=l?it||b||p%2==w%2?f:tt:y)(p%2==1&&w%2==1&&!b&&l?r.left-1:r.left),top:k(r.top),bottom:k(r.bottom),right:rt(r.right)}),o="bottom"===ht?"top":"bottom",s="right"===lt?"left":"right",ft=ku("transform"),d=void 0,g=void 0;return(g="bottom"===o?"HTML"===e.nodeName?-e.clientHeight+u.bottom:-ut.height+u.bottom:u.top,d="right"===s?"HTML"===e.nodeName?-e.clientWidth+u.right:-ut.width+u.right:u.left,vt&&ft)?(i[ft]="translate3d("+d+"px, "+g+"px, 0)",i[o]=0,i[s]=0,i.willChange="transform"):(et="bottom"===o?-1:1,ot="right"===s?-1:1,i[o]=g*et,i[s]=d*ot,i.willChange=o+", "+s),st={"x-placement":n.placement},n.attributes=h({},st,n.attributes),n.styles=h({},i,n.styles),n.arrowStyles=h({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){var i,t;return gu(n.instance.popper,n.styles),i=n.instance.popper,t=n.attributes,Object.keys(t).forEach(function(n){!1!==t[n]?i.setAttribute(n,t[n]):i.removeAttribute(n)}),n.arrowElement&&Object.keys(n.arrowStyles).length&&gu(n.arrowElement,n.arrowStyles),n},onLoad:function(n,t,i,r,u){var f=fe(u,t,n,i.positionFixed),e=ue(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),gu(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}};w=function(){function n(t,i){var r=this,u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},f;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);this.scheduleUpdate=function(){return requestAnimationFrame(r.update)};this.update=df(this.update.bind(this));this.options=h({},n.Defaults,u);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=t&&t.jquery?t[0]:t;this.popper=i&&i.jquery?i[0]:i;this.options.modifiers={};Object.keys(h({},n.Defaults.modifiers,u.modifiers)).forEach(function(t){r.options.modifiers[t]=h({},n.Defaults.modifiers[t]||{},u.modifiers?u.modifiers[t]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(n){return h({name:n},r.options.modifiers[n])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&gf(n.onLoad)&&n.onLoad(r.reference,r.popper,r.options,n,r.state)});this.update();f=this.options.eventsEnabled;f&&this.enableEventListeners();this.state.eventsEnabled=f}return rh(n,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=fe(this.state,this.popper,this.reference,this.options.positionFixed);n.placement=ue(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.positionFixed=this.options.positionFixed;n.offsets.popper=oe(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";n=se(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,he(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ku("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=uh(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return fh.call(this)}}]),n}();w.Utils=("undefined"!=typeof window?window:global).PopperUtils;w.placements=nf;w.Defaults=ye;var vt="dropdown",li="bs.dropdown",y="."+li,tf=".data-api",ch=t.fn[vt],lh=new RegExp("38|40|27"),f={HIDE:"hide"+y,HIDDEN:"hidden"+y,SHOW:"show"+y,SHOWN:"shown"+y,CLICK:"click"+y,CLICK_DATA_API:"click"+y+tf,KEYDOWN_DATA_API:"keydown"+y+tf,KEYUP_DATA_API:"keyup"+y+tf},ar="disabled",s="show",ah="dropup",vh="dropright",yh="dropleft",pe="dropdown-menu-right",ph="position-static",vr='[data-toggle="dropdown"]',rf=".dropdown-menu",wh=".navbar-nav",bh=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",kh="top-start",dh="top-end",gh="bottom-start",nc="bottom-end",tc="right-start",ic="left-start",rc={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},uc={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},b=function(){function n(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var r=n.prototype;return r.toggle=function(){var r,h,e,o,u;if(!this._element.disabled&&!t(this._element).hasClass(ar)&&(r=n._getParentFromElement(this._element),h=t(this._menu).hasClass(s),(n._clearMenus(),!h)&&(e={relatedTarget:this._element},o=t.Event(f.SHOW,e),t(r).trigger(o),!o.isDefaultPrevented()))){if(!this._inNavbar){if("undefined"==typeof w)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");u=this._element;"parent"===this._config.reference?u=r:i.isElement(this._config.reference)&&(u=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(u=this._config.reference[0]));"scrollParent"!==this._config.boundary&&t(r).addClass(ph);this._popper=new w(u,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(r).closest(wh).length&&t(document.body).children().on("mouseover",null,t.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);t(this._menu).toggleClass(s);t(r).toggleClass(s).trigger(t.Event(f.SHOWN,e))}},r.show=function(){if(!(this._element.disabled||t(this._element).hasClass(ar)||t(this._menu).hasClass(s))){var i={relatedTarget:this._element},r=t.Event(f.SHOW,i),u=n._getParentFromElement(this._element);t(u).trigger(r);r.isDefaultPrevented()||(t(this._menu).toggleClass(s),t(u).toggleClass(s).trigger(t.Event(f.SHOWN,i)))}},r.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(ar)&&t(this._menu).hasClass(s)){var i={relatedTarget:this._element},r=t.Event(f.HIDE,i),u=n._getParentFromElement(this._element);t(u).trigger(r);r.isDefaultPrevented()||(t(this._menu).toggleClass(s),t(u).toggleClass(s).trigger(t.Event(f.HIDDEN,i)))}},r.dispose=function(){t.removeData(this._element,li);t(this._element).off(y);this._element=null;(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},r.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},r._addEventListeners=function(){var n=this;t(this._element).on(f.CLICK,function(t){t.preventDefault();t.stopPropagation();n.toggle()})},r._getConfig=function(n){return n=u({},this.constructor.Default,t(this._element).data(),n),i.typeCheckConfig(vt,n,this.constructor.DefaultType),n},r._getMenuElement=function(){if(!this._menu){var t=n._getParentFromElement(this._element);t&&(this._menu=t.querySelector(rf))}return this._menu},r._getPlacement=function(){var i=t(this._element.parentNode),n=gh;return i.hasClass(ah)?(n=kh,t(this._menu).hasClass(pe)&&(n=dh)):i.hasClass(vh)?n=tc:i.hasClass(yh)?n=ic:t(this._menu).hasClass(pe)&&(n=nc),n},r._detectNavbar=function(){return 0<t(this._element).closest(".navbar").length},r._getOffset=function(){var t=this,n={};return"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=u({},n.offsets,t._config.offset(n.offsets,t._element)||{}),n}:n.offset=this._config.offset,n},r._getPopperConfig=function(){var n={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data(li);if(r||(r=new n(this,"object"==typeof i?i:null),t(this).data(li,r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},n._clearMenus=function(i){var l,h;if(!i||3!==i.which&&("keyup"!==i.type||9===i.which))for(var u=[].slice.call(document.querySelectorAll(vr)),r=0,a=u.length;r<a;r++){var e=n._getParentFromElement(u[r]),c=t(u[r]).data(li),o={relatedTarget:u[r]};(i&&"click"===i.type&&(o.clickEvent=i),c)&&(l=c._menu,!t(e).hasClass(s)||i&&("click"===i.type&&/input|textarea/i.test(i.target.tagName)||"keyup"===i.type&&9===i.which)&&t.contains(e,i.target)||(h=t.Event(f.HIDE,o),t(e).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),u[r].setAttribute("aria-expanded","false"),t(l).removeClass(s),t(e).removeClass(s).trigger(t.Event(f.HIDDEN,o)))))}},n._getParentFromElement=function(n){var t,r=i.getSelectorFromElement(n);return r&&(t=document.querySelector(r)),t||n.parentNode},n._dataApiKeydownHandler=function(i){var f,e,u,r,o;(/input|textarea/i.test(i.target.tagName)?32===i.which||27!==i.which&&(40!==i.which&&38!==i.which||t(i.target).closest(rf).length):!lh.test(i.which))||(i.preventDefault(),i.stopPropagation(),this.disabled||t(this).hasClass(ar))||(f=n._getParentFromElement(this),e=t(f).hasClass(s),e&&(!e||27!==i.which&&32!==i.which)?(u=[].slice.call(f.querySelectorAll(bh)),0!==u.length&&(r=u.indexOf(i.target),38===i.which&&0<r&&r--,40===i.which&&r<u.length-1&&r++,r<0&&(r=0),u[r].focus())):(27===i.which&&(o=f.querySelector(vr),t(o).trigger("focus")),t(this).trigger("click")))},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return rc}},{key:"DefaultType",get:function(){return uc}}]),n}();t(document).on(f.KEYDOWN_DATA_API,vr,b._dataApiKeydownHandler).on(f.KEYDOWN_DATA_API,rf,b._dataApiKeydownHandler).on(f.CLICK_DATA_API+" "+f.KEYUP_DATA_API,b._clearMenus).on(f.CLICK_DATA_API,vr,function(n){n.preventDefault();n.stopPropagation();b._jQueryInterface.call(t(this),"toggle")}).on(f.CLICK_DATA_API,".dropdown form",function(n){n.stopPropagation()});t.fn[vt]=b._jQueryInterface;t.fn[vt].Constructor=b;t.fn[vt].noConflict=function(){return t.fn[vt]=ch,b._jQueryInterface};var yt="modal",ai="bs.modal",c="."+ai,fc=t.fn[yt],uf={backdrop:!0,keyboard:!0,focus:!0,show:!0},ec={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},r={HIDE:"hide"+c,HIDDEN:"hidden"+c,SHOW:"show"+c,SHOWN:"shown"+c,FOCUSIN:"focusin"+c,RESIZE:"resize"+c,CLICK_DISMISS:"click.dismiss"+c,KEYDOWN_DISMISS:"keydown.dismiss"+c,MOUSEUP_DISMISS:"mouseup.dismiss"+c,MOUSEDOWN_DISMISS:"mousedown.dismiss"+c,CLICK_DATA_API:"click"+c+".data-api"},oc="modal-dialog-scrollable",sc="modal-scrollbar-measure",hc="modal-backdrop",we="modal-open",pt="fade",yr="show",cc=".modal-dialog",lc=".modal-body",ac='[data-dismiss="modal"]',be=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ke=".sticky-top",vi=function(){function f(n,t){this._config=this._getConfig(t);this._element=n;this._dialog=n.querySelector(cc);this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._isTransitioning=!1;this._scrollbarWidth=0}var n=f.prototype;return n.toggle=function(n){return this._isShown?this.hide():this.show(n)},n.show=function(n){var i=this,u;this._isShown||this._isTransitioning||(t(this._element).hasClass(pt)&&(this._isTransitioning=!0),u=t.Event(r.SHOW,{relatedTarget:n}),t(this._element).trigger(u),this._isShown||u.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(r.CLICK_DISMISS,ac,function(n){return i.hide(n)}),t(this._dialog).on(r.MOUSEDOWN_DISMISS,function(){t(i._element).one(r.MOUSEUP_DISMISS,function(n){t(n.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(n)})))},n.hide=function(n){var o=this,u,f,e;(n&&n.preventDefault(),this._isShown&&!this._isTransitioning)&&(u=t.Event(r.HIDE),(t(this._element).trigger(u),this._isShown&&!u.isDefaultPrevented())&&(this._isShown=!1,f=t(this._element).hasClass(pt),(f&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(r.FOCUSIN),t(this._element).removeClass(yr),t(this._element).off(r.CLICK_DISMISS),t(this._dialog).off(r.MOUSEDOWN_DISMISS),f)?(e=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(e)):this._hideModal()))},n.dispose=function(){[window,this._element,this._dialog].forEach(function(n){return t(n).off(c)});t(document).off(r.FOCUSIN);t.removeData(this._element,ai);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._isTransitioning=null;this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(n){return n=u({},uf,n),i.typeCheckConfig(yt,n,ec),n},n._showElement=function(n){var u=this,e=t(this._element).hasClass(pt),o,f,s;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.setAttribute("aria-modal",!0);t(this._dialog).hasClass(oc)?this._dialog.querySelector(lc).scrollTop=0:this._element.scrollTop=0;e&&i.reflow(this._element);t(this._element).addClass(yr);this._config.focus&&this._enforceFocus();o=t.Event(r.SHOWN,{relatedTarget:n});f=function(){u._config.focus&&u._element.focus();u._isTransitioning=!1;t(u._element).trigger(o)};e?(s=i.getTransitionDurationFromElement(this._dialog),t(this._dialog).one(i.TRANSITION_END,f).emulateTransitionEnd(s)):f()},n._enforceFocus=function(){var n=this;t(document).off(r.FOCUSIN).on(r.FOCUSIN,function(i){document!==i.target&&n._element!==i.target&&0===t(n._element).has(i.target).length&&n._element.focus()})},n._setEscapeEvent=function(){var n=this;this._isShown&&this._config.keyboard?t(this._element).on(r.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),n.hide())}):this._isShown||t(this._element).off(r.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var n=this;this._isShown?t(window).on(r.RESIZE,function(t){return n.handleUpdate(t)}):t(window).off(r.RESIZE)},n._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._element.removeAttribute("aria-modal");this._isTransitioning=!1;this._showBackdrop(function(){t(document.body).removeClass(we);n._resetAdjustments();n._resetScrollbar();t(n._element).trigger(r.HIDDEN)})},n._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(n){var u=this,f=t(this._element).hasClass(pt)?pt:"",o,e,s;if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=hc,f&&this._backdrop.classList.add(f),t(this._backdrop).appendTo(document.body),t(this._element).on(r.CLICK_DISMISS,function(n){u._ignoreBackdropClick?u._ignoreBackdropClick=!1:n.target===n.currentTarget&&("static"===u._config.backdrop?u._element.focus():u.hide())}),f&&i.reflow(this._backdrop),t(this._backdrop).addClass(yr),!n)return;if(!f)return void n();o=i.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(i.TRANSITION_END,n).emulateTransitionEnd(o)}else!this._isShown&&this._backdrop?(t(this._backdrop).removeClass(yr),e=function(){u._removeBackdrop();n&&n()},t(this._element).hasClass(pt)?(s=i.getTransitionDurationFromElement(this._backdrop),t(this._backdrop).one(i.TRANSITION_END,e).emulateTransitionEnd(s)):e()):n&&n()},n._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")},n._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},n._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var n=this,i,r,u,f;this._isBodyOverflowing&&(i=[].slice.call(document.querySelectorAll(be)),r=[].slice.call(document.querySelectorAll(ke)),t(i).each(function(i,r){var u=r.style.paddingRight,f=t(r).css("padding-right");t(r).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),t(r).each(function(i,r){var u=r.style.marginRight,f=t(r).css("margin-right");t(r).data("margin-right",u).css("margin-right",parseFloat(f)-n._scrollbarWidth+"px")}),u=document.body.style.paddingRight,f=t(document.body).css("padding-right"),t(document.body).data("padding-right",u).css("padding-right",parseFloat(f)+this._scrollbarWidth+"px"));t(document.body).addClass(we)},n._resetScrollbar=function(){var r=[].slice.call(document.querySelectorAll(be)),n,i;t(r).each(function(n,i){var r=t(i).data("padding-right");t(i).removeData("padding-right");i.style.paddingRight=r||""});n=[].slice.call(document.querySelectorAll(""+ke));t(n).each(function(n,i){var r=t(i).data("margin-right");"undefined"!=typeof r&&t(i).css("margin-right",r).removeData("margin-right")});i=t(document.body).data("padding-right");t(document.body).removeData("padding-right");document.body.style.paddingRight=i||""},n._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=sc,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},f._jQueryInterface=function(n,i){return this.each(function(){var r=t(this).data(ai),e=u({},uf,t(this).data(),"object"==typeof n&&n?n:{});if(r||(r=new f(this,e),t(this).data(ai,r)),"string"==typeof n){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n](i)}else e.show&&r.show(i)})},l(f,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return uf}}]),f}();t(document).on(r.CLICK_DATA_API,'[data-toggle="modal"]',function(n){var f,e=this,o=i.getSelectorFromElement(this),s,h;o&&(f=document.querySelector(o));s=t(f).data(ai)?"toggle":u({},t(f).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();h=t(f).one(r.SHOW,function(n){n.isDefaultPrevented()||h.one(r.HIDDEN,function(){t(e).is(":visible")&&e.focus()})});vi._jQueryInterface.call(t(f),s,this)});t.fn[yt]=vi._jQueryInterface;t.fn[yt].Constructor=vi;t.fn[yt].noConflict=function(){return t.fn[yt]=fc,vi._jQueryInterface};var vc=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],yc=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,pc=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;var tt="tooltip",pr="bs.tooltip",a="."+pr,wc=t.fn[tt],ge="bs-tooltip",bc=new RegExp("(^|\\s)"+ge+"\\S+","g"),kc=["sanitize","whiteList","sanitizeFn"],dc={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},gc={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},nl={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",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},yi="show",ff="out",tl={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},pi="fade",wi="show",il=".tooltip-inner",rl=".arrow",bi="hover",ef="focus",ul="click",fl="manual",it=function(){function r(n,t){if("undefined"==typeof w)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");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 n=r.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.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(wi))return void this._leave(null,this);this._enter(null,this)}},n.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)!==this._popper&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},n.show=function(){var n=this,u,f,h,r,e,c,o,l,s,a;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");if(u=t.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(t(this.element).trigger(u),f=i.findShadowRoot(this.element),h=t.contains(null!==f?f:this.element.ownerDocument.documentElement,this.element),u.isDefaultPrevented()||!h)return;r=this.getTipElement();e=i.getUID(this.constructor.NAME);r.setAttribute("id",e);this.element.setAttribute("aria-describedby",e);this.setContent();this.config.animation&&t(r).addClass(pi);c="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement;o=this._getAttachment(c);this.addAttachmentClass(o);l=this._getContainer();t(r).data(this.constructor.DATA_KEY,this);t.contains(this.element.ownerDocument.documentElement,this.tip)||t(r).appendTo(l);t(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new w(this.element,r,{placement:o,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:rl},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&n._handlePopperPlacementChange(t)},onUpdate:function(t){return n._handlePopperPlacementChange(t)}});t(r).addClass(wi);"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);s=function(){n.config.animation&&n._fixTransition();var i=n._hoverState;n._hoverState=null;t(n.element).trigger(n.constructor.Event.SHOWN);i===ff&&n._leave(null,n)};t(this.tip).hasClass(pi)?(a=i.getTransitionDurationFromElement(this.tip),t(this.tip).one(i.TRANSITION_END,s).emulateTransitionEnd(a)):s()}},n.hide=function(n){var r=this,u=this.getTipElement(),f=t.Event(this.constructor.Event.HIDE),e=function(){r._hoverState!==yi&&u.parentNode&&u.parentNode.removeChild(u);r._cleanTipClass();r.element.removeAttribute("aria-describedby");t(r.element).trigger(r.constructor.Event.HIDDEN);null!==r._popper&&r._popper.destroy();n&&n()},o;(t(this.element).trigger(f),f.isDefaultPrevented())||((t(u).removeClass(wi),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[ul]=!1,this._activeTrigger[ef]=!1,this._activeTrigger[bi]=!1,t(this.tip).hasClass(pi))?(o=i.getTransitionDurationFromElement(u),t(u).one(i.TRANSITION_END,e).emulateTransitionEnd(o)):e(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(n){t(this.getTipElement()).addClass(ge+"-"+n)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var n=this.getTipElement();this.setElementContent(t(n.querySelectorAll(il)),this.getTitle());t(n).removeClass(pi+" "+wi)},n.setElementContent=function(n,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=de(i,this.config.whiteList,this.config.sanitizeFn)),n.html(i)):n.text(i):this.config.html?t(i).parent().is(n)||n.empty().append(i):n.text(t(i).text())},n.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},n._getOffset=function(){var t=this,n={};return"function"==typeof this.config.offset?n.fn=function(n){return n.offsets=u({},n.offsets,t.config.offset(n.offsets,t.element)||{}),n}:n.offset=this.config.offset,n},n._getContainer=function(){return!1===this.config.container?document.body:i.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(n){return gc[n.toUpperCase()]},n._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!==fl){var r=i===bi?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,u=i===bi?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(this.element).closest(".modal").on("hide.bs.modal",function(){n.element&&n.hide()});this.config.selector?this.config=u({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._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",""))},n._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?ef:bi]=!0);t(i.getTipElement()).hasClass(wi)||i._hoverState===yi?i._hoverState=yi:(clearTimeout(i._timeout),i._hoverState=yi,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(function(){i._hoverState===yi&&i.show()},i.config.delay.show):i.show())},n._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?ef:bi]=!1);i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=ff,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(function(){i._hoverState===ff&&i.hide()},i.config.delay.hide):i.hide())},n._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},n._getConfig=function(n){var r=t(this.element).data();return Object.keys(r).forEach(function(n){-1!==kc.indexOf(n)&&delete r[n]}),"number"==typeof(n=u({},this.constructor.Default,r,"object"==typeof n&&n?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()),i.typeCheckConfig(tt,n,this.constructor.DefaultType),n.sanitize&&(n.template=de(n.template,n.whiteList,n.sanitizeFn)),n},n._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},n._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(bc);null!==n&&n.length&&i.removeClass(n.join(""))},n._handlePopperPlacementChange=function(n){var t=n.instance;this.tip=t.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},n._fixTransition=function(){var n=this.getTipElement(),i=this.config.animation;null===n.getAttribute("x-placement")&&(t(n).removeClass(pi),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(pr),u="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new r(this,u),t(this).data(pr,i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return nl}},{key:"NAME",get:function(){return tt}},{key:"DATA_KEY",get:function(){return pr}},{key:"Event",get:function(){return tl}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return dc}}]),r}();t.fn[tt]=it._jQueryInterface;t.fn[tt].Constructor=it;t.fn[tt].noConflict=function(){return t.fn[tt]=wc,it._jQueryInterface};var wt="popover",wr="bs.popover",v="."+wr,el=t.fn[wt],no="bs-popover",ol=new RegExp("(^|\\s)"+no+"\\S+","g"),sl=u({},it.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>'}),hl=u({},it.DefaultType,{content:"(string|element|function)"}),cl="fade",ll="show",al=".popover-header",vl=".popover-body",yl={HIDE:"hide"+v,HIDDEN:"hidden"+v,SHOW:"show"+v,SHOWN:"shown"+v,INSERTED:"inserted"+v,CLICK:"click"+v,FOCUSIN:"focusin"+v,FOCUSOUT:"focusout"+v,MOUSEENTER:"mouseenter"+v,MOUSELEAVE:"mouseleave"+v},br=function(n){function r(){return n.apply(this,arguments)||this}var u,f,i;return f=n,(u=r).prototype=Object.create(f.prototype),(u.prototype.constructor=u).__proto__=f,i=r.prototype,i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(n){t(this.getTipElement()).addClass(no+"-"+n)},i.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},i.setContent=function(){var i=t(this.getTipElement()),n;this.setElementContent(i.find(al),this.getTitle());n=this._getContent();"function"==typeof n&&(n=n.call(this.element));this.setElementContent(i.find(vl),n);i.removeClass(cl+" "+ll)},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(ol);null!==n&&0<n.length&&i.removeClass(n.join(""))},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(wr),u="object"==typeof n?n:null;if((i||!/dispose|hide/.test(n))&&(i||(i=new r(this,u),t(this).data(wr,i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return sl}},{key:"NAME",get:function(){return wt}},{key:"DATA_KEY",get:function(){return wr}},{key:"Event",get:function(){return yl}},{key:"EVENT_KEY",get:function(){return v}},{key:"DefaultType",get:function(){return hl}}]),r}(it);t.fn[wt]=br._jQueryInterface;t.fn[wt].Constructor=br;t.fn[wt].noConflict=function(){return t.fn[wt]=el,br._jQueryInterface};var rt="scrollspy",kr="bs.scrollspy",dr="."+kr,pl=t.fn[rt],to={offset:10,method:"auto",target:""},wl={offset:"number",method:"string",target:"(string|element)"},of={ACTIVATE:"activate"+dr,SCROLL:"scroll"+dr,LOAD_DATA_API:"load"+dr+".data-api"},bl="dropdown-item",ut="active",kl='[data-spy="scroll"]',io=".nav, .list-group",sf=".nav-link",dl=".nav-item",ro=".list-group-item",gl=".dropdown",na=".dropdown-item",ta=".dropdown-toggle",ia="offset",uo="position",ki=function(){function r(n,i){var r=this;this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(i);this._selector=this._config.target+" "+sf+","+this._config.target+" "+ro+","+this._config.target+" "+na;this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;t(this._scrollElement).on(of.SCROLL,function(n){return r._process(n)});this.refresh();this._process()}var n=r.prototype;return n.refresh=function(){var n=this,u=this._scrollElement===this._scrollElement.window?ia:uo,r="auto"===this._config.method?u:this._config.method,f=r===uo?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();[].slice.call(document.querySelectorAll(this._selector)).map(function(n){var u,e=i.getSelectorFromElement(n),o;return(e&&(u=document.querySelector(e)),u)&&(o=u.getBoundingClientRect(),o.width||o.height)?[t(u)[r]().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])})},n.dispose=function(){t.removeData(this._element,kr);t(this._scrollElement).off(dr);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},n._getConfig=function(n){if("string"!=typeof(n=u({},to,"object"==typeof n&&n?n:{})).target){var r=t(n.target).attr("id");r||(r=i.getUID(rt),t(n.target).attr("id",r));n.target="#"+r}return i.typeCheckConfig(rt,n,wl),n},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._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(),u<=t)i=this._targets[this._targets.length-1],this._activeTarget!==i&&this._activate(i);else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[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])}},n._activate=function(n){this._activeTarget=n;this._clear();var r=this._selector.split(",").map(function(t){return t+'[data-target="'+n+'"],'+t+'[href="'+n+'"]'}),i=t([].slice.call(document.querySelectorAll(r.join(","))));i.hasClass(bl)?(i.closest(gl).find(ta).addClass(ut),i.addClass(ut)):(i.addClass(ut),i.parents(io).prev(sf+", "+ro).addClass(ut),i.parents(io).prev(dl).children(sf).addClass(ut));t(this._scrollElement).trigger(of.ACTIVATE,{relatedTarget:n})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(n){return n.classList.contains(ut)}).forEach(function(n){return n.classList.remove(ut)})},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(kr);if(i||(i=new r(this,"object"==typeof n&&n),t(this).data(kr,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return to}}]),r}();t(window).on(of.LOAD_DATA_API,function(){for(var r,n=[].slice.call(document.querySelectorAll(kl)),i=n.length;i--;)r=t(n[i]),ki._jQueryInterface.call(r,r.data())});t.fn[rt]=ki._jQueryInterface;t.fn[rt].Constructor=ki;t.fn[rt].noConflict=function(){return t.fn[rt]=pl,ki._jQueryInterface};var gr="bs.tab",di="."+gr,ra=t.fn.tab,gi={HIDE:"hide"+di,HIDDEN:"hidden"+di,SHOW:"show"+di,SHOWN:"shown"+di,CLICK_DATA_API:"click"+di+".data-api"},ua="dropdown-menu",nr="active",fa="disabled",fo="fade",eo="show",ea=".dropdown",oa=".nav, .list-group",oo=".active",so="> li > .active",sa=".dropdown-toggle",ha="> .dropdown-menu .active",tr=function(){function n(n){this._element=n}var r=n.prototype;return r.show=function(){var h=this,u,n,r,f,c,e,o,s;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(nr)||t(this._element).hasClass(fa)||(r=t(this._element).closest(oa)[0],f=i.getSelectorFromElement(this._element),r&&(c="UL"===r.nodeName||"OL"===r.nodeName?so:oo,n=(n=t.makeArray(t(r).find(c)))[n.length-1]),e=t.Event(gi.HIDE,{relatedTarget:this._element}),o=t.Event(gi.SHOW,{relatedTarget:n}),(n&&t(n).trigger(e),t(this._element).trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(f&&(u=document.querySelector(f)),this._activate(this._element,r),s=function(){var i=t.Event(gi.HIDDEN,{relatedTarget:h._element}),r=t.Event(gi.SHOWN,{relatedTarget:n});t(n).trigger(i);t(h._element).trigger(r)},u?this._activate(u,u.parentNode,s):s()))},r.dispose=function(){t.removeData(this._element,gr);this._element=null},r._activate=function(n,r,u){var s=this,f=(!r||"UL"!==r.nodeName&&"OL"!==r.nodeName?t(r).children(oo):t(r).find(so))[0],h=u&&f&&t(f).hasClass(fo),e=function(){return s._transitionComplete(n,f,u)},o;f&&h?(o=i.getTransitionDurationFromElement(f),t(f).removeClass(eo).one(i.TRANSITION_END,e).emulateTransitionEnd(o)):e()},r._transitionComplete=function(n,r,u){var f,e,o;r&&(t(r).removeClass(nr),f=t(r.parentNode).find(ha)[0],f&&t(f).removeClass(nr),"tab"===r.getAttribute("role")&&r.setAttribute("aria-selected",!1));(t(n).addClass(nr),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!0),i.reflow(n),n.classList.contains(fo)&&n.classList.add(eo),n.parentNode&&t(n.parentNode).hasClass(ua))&&(e=t(n).closest(ea)[0],e&&(o=[].slice.call(e.querySelectorAll(sa)),t(o).addClass(nr)),n.setAttribute("aria-expanded",!0));u&&u()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data(gr);if(r||(r=new n(this),u.data(gr,r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},l(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();t(document).on(gi.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(n){n.preventDefault();tr._jQueryInterface.call(t(this),"show")});t.fn.tab=tr._jQueryInterface;t.fn.tab.Constructor=tr;t.fn.tab.noConflict=function(){return t.fn.tab=ra,tr._jQueryInterface};var bt="toast",nu="bs.toast",ir="."+nu,ca=t.fn[bt],kt={CLICK_DISMISS:"click.dismiss"+ir,HIDE:"hide"+ir,HIDDEN:"hidden"+ir,SHOW:"show"+ir,SHOWN:"shown"+ir},la="fade",ho="hide",rr="show",co="showing",aa={animation:"boolean",autohide:"boolean",delay:"number"},lo={animation:!0,autohide:!0,delay:500},va='[data-dismiss="toast"]',tu=function(){function r(n,t){this._element=n;this._config=this._getConfig(t);this._timeout=null;this._setListeners()}var n=r.prototype;return n.show=function(){var n=this,r,u;t(this._element).trigger(kt.SHOW);this._config.animation&&this._element.classList.add(la);r=function(){n._element.classList.remove(co);n._element.classList.add(rr);t(n._element).trigger(kt.SHOWN);n._config.autohide&&n.hide()};(this._element.classList.remove(ho),this._element.classList.add(co),this._config.animation)?(u=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,r).emulateTransitionEnd(u)):r()},n.hide=function(n){var i=this;this._element.classList.contains(rr)&&(t(this._element).trigger(kt.HIDE),n?this._close():this._timeout=setTimeout(function(){i._close()},this._config.delay))},n.dispose=function(){clearTimeout(this._timeout);this._timeout=null;this._element.classList.contains(rr)&&this._element.classList.remove(rr);t(this._element).off(kt.CLICK_DISMISS);t.removeData(this._element,nu);this._element=null;this._config=null},n._getConfig=function(n){return n=u({},lo,t(this._element).data(),"object"==typeof n&&n?n:{}),i.typeCheckConfig(bt,n,this.constructor.DefaultType),n},n._setListeners=function(){var n=this;t(this._element).on(kt.CLICK_DISMISS,va,function(){return n.hide(!0)})},n._close=function(){var n=this,r=function(){n._element.classList.add(ho);t(n._element).trigger(kt.HIDDEN)},u;(this._element.classList.remove(rr),this._config.animation)?(u=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,r).emulateTransitionEnd(u)):r()},r._jQueryInterface=function(n){return this.each(function(){var u=t(this),i=u.data(nu);if(i||(i=new r(this,"object"==typeof n&&n),u.data(nu,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n](this)}})},l(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return aa}},{key:"Default",get:function(){return lo}}]),r}();t.fn[bt]=tu._jQueryInterface;t.fn[bt].Constructor=tu;t.fn[bt].noConflict=function(){return t.fn[bt]=ca,tu._jQueryInterface},function(){if("undefined"==typeof t)throw new TypeError("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||4<=n[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}();n.Util=i;n.Alert=ft;n.Button=ii;n.Carousel=ot;n.Collapse=oi;n.Dropdown=b;n.Modal=vi;n.Popover=br;n.Scrollspy=ki;n.Tab=tr;n.Toast=tu;n.Tooltip=it;Object.defineProperty(n,"__esModule",{value:!0})});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):jQuery)}(function(n,t){function f(){return new Date(Date.UTC.apply(Date,arguments))}function o(){var n=new Date;return f(n.getFullYear(),n.getMonth(),n.getDate())}function l(n,t){return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate()}function h(i,r){return function(){return r!==t&&n.fn.datepicker.deprecated(r),this[i].apply(this,arguments)}}function p(n){return n&&!isNaN(n.getTime())}function w(t,i){function o(n,t){return t.toLowerCase()}var u,f=n(t).data(),e={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in f)i.test(r)&&(u=r.replace(s,o),e[u]=f[r]);return e}function b(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(y,function(n,t){t in i&&(u[t]=i[t])}),u}var a=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var i=n&&n.valueOf(),t=0,r=this.length;t<r;t++)if(0<=this[t].valueOf()-i&&this[t].valueOf()-i<864e5)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(t){t&&(n.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var n=new a;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),u=function(t,r){n.data(t,"datepicker",this);this._events=[];this._secondaryEvents=[];this._process_options(r);this.dates=new a;this.viewDate=this.o.defaultViewDate;this.focusDate=null;this.element=n(t);this.isInput=this.element.is("input");this.inputField=this.isInput?this.element:this.element.find("input");this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn");this.component&&0===this.component.length&&(this.component=!1);this.isInline=!this.component&&this.element.is("div");this.picker=n(i.template);this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow);this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&this.picker.addClass("datepicker-rtl");this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(n,t){return Number(t)+1});this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled});this._allow_update=!1;this.setViewMode(this.o.startView);this._allow_update=!0;this.fillDow();this.fillMonths();this.update();this.isInline&&this.show()},c,v,s,e,y,r,i;u.prototype={constructor:u,_resolveViewName:function(t){return n.each(i.viewModes,function(i,r){if(t===i||-1!==n.inArray(t,r.names))return t=i,!1}),t},_resolveDaysOfWeek:function(t){return n.isArray(t)||(t=t.split(/[,\s]*/)),n.map(t,Number)},_check_template:function(i){try{return i===t||""===i?!1:(i.match(/[<>]/g)||[]).length<=0?!0:n(i).length>0}catch(n){return!1}},_process_options:function(t){var u,h,l,s,c;if(this._o=n.extend({},this._o,t),u=this.o=n.extend({},this._o),h=u.language,r[h]||(h=h.split("-")[0],r[h]||(h=e.language)),u.language=h,u.startView=this._resolveViewName(u.startView),u.minViewMode=this._resolveViewName(u.minViewMode),u.maxViewMode=this._resolveViewName(u.maxViewMode),u.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,u.startView)),!0!==u.multidate&&(u.multidate=Number(u.multidate)||!1,!1!==u.multidate&&(u.multidate=Math.max(0,u.multidate))),u.multidateSeparator=String(u.multidateSeparator),u.weekStart%=7,u.weekEnd=(u.weekStart+6)%7,l=i.parseFormat(u.format),u.startDate!==-1/0&&(u.startDate=u.startDate?u.startDate instanceof Date?this._local_to_utc(this._zero_time(u.startDate)):i.parseDate(u.startDate,l,u.language,u.assumeNearbyYear):-1/0),u.endDate!==1/0&&(u.endDate=u.endDate?u.endDate instanceof Date?this._local_to_utc(this._zero_time(u.endDate)):i.parseDate(u.endDate,l,u.language,u.assumeNearbyYear):1/0),u.daysOfWeekDisabled=this._resolveDaysOfWeek(u.daysOfWeekDisabled||[]),u.daysOfWeekHighlighted=this._resolveDaysOfWeek(u.daysOfWeekHighlighted||[]),u.datesDisabled=u.datesDisabled||[],n.isArray(u.datesDisabled)||(u.datesDisabled=u.datesDisabled.split(",")),u.datesDisabled=n.map(u.datesDisabled,function(n){return i.parseDate(n,l,u.language,u.assumeNearbyYear)}),s=String(u.orientation).toLowerCase().split(/\s+/g),c=u.orientation.toLowerCase(),s=n.grep(s,function(n){return/^auto|left|right|top|bottom$/.test(n)}),u.orientation={x:"auto",y:"auto"},c&&"auto"!==c)if(1===s.length)switch(s[0]){case"top":case"bottom":u.orientation.y=s[0];break;case"left":case"right":u.orientation.x=s[0]}else c=n.grep(s,function(n){return/^left|right$/.test(n)}),u.orientation.x=c[0]||"auto",c=n.grep(s,function(n){return/^top|bottom$/.test(n)}),u.orientation.y=c[0]||"auto";if(u.defaultViewDate instanceof Date||"string"==typeof u.defaultViewDate)u.defaultViewDate=i.parseDate(u.defaultViewDate,l,u.language,u.assumeNearbyYear);else if(u.defaultViewDate){var a=u.defaultViewDate.year||(new Date).getFullYear(),v=u.defaultViewDate.month||0,y=u.defaultViewDate.day||1;u.defaultViewDate=f(a,v,y)}else u.defaultViewDate=o()},_applyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(r=t,u=n[i][1]):3===n[i].length&&(r=n[i][1],u=n[i][2]),f.on(u,r)},_unapplyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(u=t,r=n[i][1]):3===n[i].length&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){var t={keyup:n.proxy(function(t){-1===n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:n.proxy(this.keydown,this),paste:n.proxy(this.paste,this)};!0===this.o.showOnFocus&&(t.focus=n.proxy(this.show,this));this._events=this.isInput?[[this.element,t]]:this.component&&this.inputField.length?[[this.inputField,t],[this.component,{click:n.proxy(this.show,this)}]]:[[this.element,{click:n.proxy(this.show,this),keydown:n.proxy(this.keydown,this)}]];this._events.push([this.element,"*",{blur:n.proxy(function(n){this._focused_from=n.target},this)}],[this.element,{blur:n.proxy(function(n){this._focused_from=n.target},this)}]);this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":n.proxy(function(n){this.update(n.date)},this)}]);this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[this.picker,".prev, .next",{click:n.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:n.proxy(this.dayCellClick,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{"mousedown touchstart":n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).length||this.picker.is(n.target)||this.picker.find(n.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,r){var u=r||this.dates.get(-1),f=this._utc_to_local(u);this.element.trigger({type:t,date:f,viewMode:this.viewMode,dates:n.map(this.dates,this._utc_to_local),format:n.proxy(function(n,t){0===arguments.length?(n=this.dates.length-1,t=this.o.format):"string"==typeof n&&(t=n,n=this.dates.length-1);t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&n(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var i;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&-1!==n.inArray("text/plain",t.originalEvent.clipboardData.types))i=t.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i);this.update();t.preventDefault()},_utc_to_local:function(n){if(!n)return n;var t=new Date(n.getTime()+6e4*n.getTimezoneOffset());return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(t=new Date(n.getTime()+6e4*t.getTimezoneOffset())),t},_local_to_utc:function(n){return n&&new Date(n.getTime()-6e4*n.getTimezoneOffset())},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&f(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var n=this.dates.get(-1);return n!==t?new Date(n):null},clearDates:function(){this.inputField.val("");this.update();this._trigger("changeDate");this.o.autoclose&&this.hide()},setDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,n.map(t,this._utc_to_local)),this},setDate:h("setDates"),setUTCDate:h("setUTCDates"),remove:h("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var n=this.getFormattedDate();return this.inputField.val(n),this},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(n){return this._process_options({startDate:n}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(n){return this._process_options({endDate:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(n){return this._process_options({daysOfWeekDisabled:n}),this.update(),this},setDaysOfWeekHighlighted:function(n){return this._process_options({daysOfWeekHighlighted:n}),this.update(),this},setDatesDisabled:function(n){return this._process_options({datesDisabled:n}),this.update(),this},place:function(){var y,r,p;if(this.isInline)return this;var f=this.picker.outerWidth(),s=this.picker.outerHeight(),e=n(this.o.container),h=e.width(),c="body"===this.o.container?n(document).scrollTop():e.scrollTop(),l=e.offset(),a=[0];this.element.parents().each(function(){var t=n(this).css("z-index");"auto"!==t&&0!==Number(t)&&a.push(Number(t))});var v=Math.max.apply(Math,a)+this.o.zIndexOffset,u=this.component?this.component.parent().offset():this.element.offset(),w=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),o=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),t=u.left-l.left,i=u.top-l.top;return"body"!==this.o.container&&(i+=c),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(t-=f-o)):u.left<0?(this.picker.addClass("datepicker-orient-left"),t-=u.left-10):t+f>h?(this.picker.addClass("datepicker-orient-right"),t+=o-f):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left"),r=this.o.orientation.y,("auto"===r&&(y=-c+i-s,r=y<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+r),"top"===r?i-=s+parseInt(this.picker.css("padding-top")):i+=w,this.o.rtl)?(p=h-(t+o),this.picker.css({top:i,right:p,zIndex:v})):this.picker.css({top:i,left:t,zIndex:v}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var u=this.dates.copy(),t=[],r=!1;return arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i));t.push(i)},this)),r=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date),t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),t=n.grep(t,n.proxy(function(n){return!this.dateWithinRange(n)||!n},this),!0),this.dates.replace(t),this.o.updateViewDate&&(this.viewDate=this.dates.length?new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?new Date(this.o.startDate):this.viewDate>this.o.endDate?new Date(this.o.endDate):this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(u)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&u.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var i=this.o.weekStart,t="<tr>";for(this.o.calendarWeeks&&(t+='<th class="cw">&#160;<\/th>');i<this.o.weekStart+7;)t+='<th class="dow',-1!==n.inArray(i,this.o.daysOfWeekDisabled)&&(t+=" disabled"),t+='">'+r[this.o.language].daysMin[i++%7]+"<\/th>";t+="<\/tr>";this.picker.find(".datepicker-days thead").append(t)}},fillMonths:function(){for(var t,i=this._utc_to_local(this.viewDate),u="",n=0;n<12;n++)t=i&&i.getMonth()===n?" focused":"",u+='<span class="month'+t+'">'+r[this.o.language].monthsShort[n]+"<\/span>";this.picker.find(".datepicker-months td").html(u)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),u=this.viewDate.getUTCMonth(),f=o();return t.getUTCFullYear()<r||t.getUTCFullYear()===r&&t.getUTCMonth()<u?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()===r&&t.getUTCMonth()>u)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&l(t,f)&&i.push("today"),-1!==this.dates.contains(t)&&i.push("active"),this.dateWithinRange(t)||i.push("disabled"),this.dateIsDisabled(t)&&i.push("disabled","disabled-date"),-1!==n.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),-1!==n.inArray(t.valueOf(),this.range)&&i.push("selected"),t.valueOf()===this.range[0]&&i.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,r,u,f,e,o,s){for(var c,v,h,w="",l=u/10,b=this.picker.find(i),y=Math.floor(f/u)*u,p=y+9*l,k=Math.floor(this.viewDate.getFullYear()/l)*l,d=n.map(this.dates,function(n){return Math.floor(n.getUTCFullYear()/l)*l}),a=y-l;a<=p+l;a+=l)c=[r],v=null,a===y-l?c.push("old"):a===p+l&&c.push("new"),-1!==n.inArray(a,d)&&c.push("active"),(a<e||a>o)&&c.push("disabled"),a===k&&c.push("focused"),s!==n.noop&&(h=s(new Date(a,0,1)),h===t?h={}:"boolean"==typeof h?h={enabled:h}:"string"==typeof h&&(h={classes:h}),!1===h.enabled&&c.push("disabled"),h.classes&&(c=c.concat(h.classes.split(/\s+/))),h.tooltip&&(v=h.tooltip)),w+='<span class="'+c.join(" ")+'"'+(v?' title="'+v+'"':"")+">"+a+"<\/span>";b.find(".datepicker-switch").text(y+"-"+p);b.find("td").html(w)},fill:function(){var p,u,w=new Date(this.viewDate),s=w.getUTCFullYear(),nt=w.getUTCMonth(),v=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,et=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,y=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,ot=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,st=r[this.o.language].today||r.en.today||"",ht=r[this.o.language].clear||r.en.clear||"",ct=r[this.o.language].titleFormat||r.en.titleFormat,b=o(),lt=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&b>=this.o.startDate&&b<=this.o.endDate&&!this.weekOfDateIsDisabled(b),e,tt,c,k,h,l,g,ut,a,ft;if(!isNaN(s)&&!isNaN(nt)){for(this.picker.find(".datepicker-days .datepicker-switch").text(i.formatDate(w,ct,this.o.language)),this.picker.find("tfoot .today").text(st).css("display",lt?"table-cell":"none"),this.picker.find("tfoot .clear").text(ht).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths(),e=f(s,nt,0),tt=e.getUTCDate(),e.setUTCDate(tt-(e.getUTCDay()-this.o.weekStart+7)%7),c=new Date(e),e.getUTCFullYear()<100&&c.setUTCFullYear(e.getUTCFullYear()),c.setUTCDate(c.getUTCDate()+42),c=c.valueOf(),l=[];e.valueOf()<c;){if((k=e.getUTCDay())===this.o.weekStart&&(l.push("<tr>"),this.o.calendarWeeks)){var it=new Date(+e+(this.o.weekStart-k-7)%7*864e5),rt=new Date(Number(it)+(11-it.getUTCDay())%7*864e5),d=new Date(Number(d=f(rt.getUTCFullYear(),0,1))+(11-d.getUTCDay())%7*864e5),at=(rt-d)/6048e5+1;l.push('<td class="cw">'+at+"<\/td>")}h=this.getClassNames(e);h.push("day");g=e.getUTCDate();this.o.beforeShowDay!==n.noop&&(u=this.o.beforeShowDay(this._utc_to_local(e)),u===t?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),!1===u.enabled&&h.push("disabled"),u.classes&&(h=h.concat(u.classes.split(/\s+/))),u.tooltip&&(p=u.tooltip),u.content&&(g=u.content));h=n.isFunction(n.uniqueSort)?n.uniqueSort(h):n.unique(h);l.push('<td class="'+h.join(" ")+'"'+(p?' title="'+p+'"':"")+' data-date="'+e.getTime().toString()+'">'+g+"<\/td>");p=null;k===this.o.weekEnd&&l.push("<\/tr>");e.setUTCDate(e.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(l.join(""));ut=r[this.o.language].monthsTitle||r.en.monthsTitle||"Months";a=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?ut:s).end().find("tbody span").removeClass("active");(n.each(this.dates,function(n,t){t.getUTCFullYear()===s&&a.eq(t.getUTCMonth()).addClass("active")}),(s<v||s>y)&&a.addClass("disabled"),s===v&&a.slice(0,et).addClass("disabled"),s===y&&a.slice(ot+1).addClass("disabled"),this.o.beforeShowMonth!==n.noop)&&(ft=this,n.each(a,function(i,r){var f=new Date(s,i,1),u=ft.o.beforeShowMonth(f);u===t?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u});!1!==u.enabled||n(r).hasClass("disabled")||n(r).addClass("disabled");u.classes&&n(r).addClass(u.classes);u.tooltip&&n(r).prop("title",u.tooltip)}));this._fill_yearsView(".datepicker-years","year",10,s,v,y,this.o.beforeShowYear);this._fill_yearsView(".datepicker-decades","decade",100,s,v,y,this.o.beforeShowDecade);this._fill_yearsView(".datepicker-centuries","century",1e3,s,v,y,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var i,r,u=new Date(this.viewDate),t=u.getUTCFullYear(),f=u.getUTCMonth(),e=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,s=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,o=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,n=1;switch(this.viewMode){case 4:n*=10;case 3:n*=10;case 2:n*=10;case 1:i=Math.floor(t/n)*n<=e;r=Math.floor(t/n)*n+n>o;break;case 0:i=t<=e&&f<=s;r=t>=o&&f>=h}this.picker.find(".prev").toggleClass("disabled",i);this.picker.find(".next").toggleClass("disabled",r)}},click:function(t){t.preventDefault();t.stopPropagation();var r,s,u,e;r=n(t.target);r.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1);r.hasClass("today")&&!r.hasClass("day")&&(this.setViewMode(0),this._setDate(o(),"linked"===this.o.todayBtn?null:"view"));r.hasClass("clear")&&this.clearDates();r.hasClass("disabled")||(r.hasClass("month")||r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),s=1,1===this.viewMode?(e=r.parent().find("span").index(r),u=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(e)):(e=0,u=Number(r.text()),this.viewDate.setUTCFullYear(u)),this._trigger(i.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(f(u,e,s)):(this.setViewMode(this.viewMode-1),this.fill()));this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus();delete this._focused_from},dayCellClick:function(t){var r=n(t.currentTarget),u=r.data("date"),i=new Date(u);this.o.updateViewDate&&(i.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),i.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate));this._setDate(i)},navArrowsClick:function(t){var u=n(t.currentTarget),r=u.hasClass("prev")?-1:1;0!==this.viewMode&&(r*=12*i.viewModes[this.viewMode].navStep);this.viewDate=this.moveMonth(this.viewDate,r);this._trigger(i.viewModes[this.viewMode].e,this.viewDate);this.fill()},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n||this.dates.clear(),-1!==t?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):!1===this.o.multidate?(this.dates.clear(),this.dates.push(n)):this.dates.push(n),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(n,t){t&&"date"!==t||this._toggle_multidate(n&&new Date(n));(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=n&&new Date(n));this.fill();this.setValue();t&&"view"===t||this._trigger("changeDate");this.inputField.trigger("change");!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(n,t){var i=new Date(n);return i.setUTCDate(n.getUTCDate()+t),i},moveWeek:function(n,t){return this.moveDay(n,7*t)},moveMonth:function(n,t){var f;if(!p(n))return this.o.defaultViewDate;if(!t)return n;var r,u,i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t);if(t=t>0?1:-1,1===s)u=-1===t?function(){return i.getUTCMonth()===o}:function(){return i.getUTCMonth()!==r},r=o+t,i.setUTCMonth(r),r=(r+12)%12;else{for(f=0;f<s;f++)i=this.moveMonth(i,t);r=i.getUTCMonth();i.setUTCDate(e);u=function(){return r!==i.getUTCMonth()}}for(;u();)i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,12*t)},moveAvailableDate:function(n,t,i){do{if(n=this[i](n,t),!this.dateWithinRange(n))return!1;i="moveDay"}while(this.dateIsDisabled(n));return n},weekOfDateIsDisabled:function(t){return-1!==n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||n.grep(this.o.datesDisabled,function(n){return l(t,n)}).length>0},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){if(!this.picker.is(":visible"))return void(40!==n.keyCode&&27!==n.keyCode||(this.show(),n.stopPropagation()));var t,r,u=!1,i=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide();n.preventDefault();n.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===n.keyCode||38===n.keyCode?-1:1;0===this.viewMode?n.ctrlKey?(r=this.moveAvailableDate(i,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):n.shiftKey?(r=this.moveAvailableDate(i,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===n.keyCode||39===n.keyCode?r=this.moveAvailableDate(i,t,"moveDay"):this.weekOfDateIsDisabled(i)||(r=this.moveAvailableDate(i,t,"moveWeek")):1===this.viewMode?(38!==n.keyCode&&40!==n.keyCode||(t*=4),r=this.moveAvailableDate(i,t,"moveMonth")):2===this.viewMode&&(38!==n.keyCode&&40!==n.keyCode||(t*=4),r=this.moveAvailableDate(i,t,"moveYear"));r&&(this.focusDate=this.viewDate=r,this.setValue(),this.fill(),n.preventDefault());break;case 13:if(!this.o.forceParse)break;i=this.focusDate||this.dates.get(-1)||this.viewDate;this.o.keyboardNavigation&&(this._toggle_multidate(i),u=!0);this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.setValue();this.fill();this.picker.is(":visible")&&(n.preventDefault(),n.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.fill();this.hide()}u&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(n){this.viewMode=n;this.picker.children("div").hide().filter(".datepicker-"+i.viewModes[this.viewMode].clsName).show();this.updateNavArrows();this._trigger("changeViewMode",new Date(this.viewDate))}};c=function(t,i){n.data(t,"datepicker",this);this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;this.keepEmptyValues=i.keepEmptyValues;delete i.keepEmptyValues;s.call(n(this.inputs),i).on("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n.data(t,"datepicker")});this.updateDates()};c.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},clearDates:function(){n.each(this.pickers,function(n,t){t.clearDates()})},dateUpdated:function(i){var u;if(!this.updating&&(this.updating=!0,u=n.data(i.target,"datepicker"),u!==t)){var r=u.getUTCDate(),s=this.keepEmptyValues,o=n.inArray(i.target,this.inputs),f=o-1,e=o+1,h=this.inputs.length;if(-1!==o){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t!==u&&s||t.setUTCDate(r)}),r<this.dates[f])for(;f>=0&&r<this.dates[f];)this.pickers[f--].setUTCDate(r);else if(r>this.dates[e])for(;e<h&&r>this.dates[e];)this.pickers[e++].setUTCDate(r);this.updateDates();delete this.updating}}},destroy:function(){n.map(this.pickers,function(n){n.destroy()});n(this.inputs).off("changeDate",this.dateUpdated);delete this.element.data().datepicker},remove:h("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};v=n.fn.datepicker;s=function(i){var f=Array.apply(null,arguments),r;if(f.shift(),this.each(function(){var s=n(this),t=s.data("datepicker"),h="object"==typeof i&&i;if(!t){var l=w(this,"date"),a=n.extend({},e,l,h),v=b(a.language),o=n.extend({},e,v,l,h);s.hasClass("input-daterange")||o.inputs?(n.extend(o,{inputs:o.inputs||s.find("input").toArray()}),t=new c(this,o)):t=new u(this,o);s.data("datepicker",t)}"string"==typeof i&&"function"==typeof t[i]&&(r=t[i].apply(t,f))}),r===t||r instanceof u||r instanceof c)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return r};n.fn.datepicker=s;e=n.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:n.noop,beforeShowMonth:n.noop,beforeShowYear:n.noop,beforeShowDecade:n.noop,beforeShowCentury:n.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0};y=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=u;r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}};i={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(n){if("function"==typeof n.toValue&&"function"==typeof n.toDisplay)return n;var t=n.replace(this.validParts,"\0").split("\0"),i=n.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(f,e,s,h){function et(n,t){return!0===t&&(t=10),n<100&&(n+=2e3)>(new Date).getFullYear()+t&&(n-=100),n}function tt(){var n=this.slice(0,l[c].length),t=l[c].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var l,y,it,c,rt,ut,g,v,ft,k,d;if(!f)return t;if(f instanceof Date)return f;if("string"==typeof e&&(e=i.parseFormat(e)),e.toValue)return e.toValue(f,e,s);if(ut={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},g={yesterday:"-1d",today:"+0d",tomorrow:"+1d"},f in g&&(f=g[f]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(f)){for(l=f.match(/([\-+]\d+)([dmwy])/gi),f=new Date,c=0;c<l.length;c++)y=l[c].match(/([\-+]\d+)([dmwy])/i),it=Number(y[1]),rt=ut[y[2].toLowerCase()],f=u.prototype[rt](f,it);return u.prototype._zero_utc_time(f)}l=f&&f.match(this.nonpunctuation)||[];var p,w,b={},nt=["yyyy","yy","M","MM","m","mm","d","dd"],a={yyyy:function(n,t){return n.setUTCFullYear(h?et(t,h):t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}};if(a.yy=a.yyyy,a.M=a.MM=a.mm=a.m,a.dd=a.d,f=o(),v=e.parts.slice(),l.length!==v.length&&(v=n(v).filter(function(t,i){return-1!==n.inArray(i,nt)}).toArray()),l.length===v.length){for(c=0,ft=v.length;c<ft;c++){if(p=parseInt(l[c],10),y=v[c],isNaN(p))switch(y){case"MM":w=n(r[s].months).filter(tt);p=n.inArray(w[0],r[s].months)+1;break;case"M":w=n(r[s].monthsShort).filter(tt);p=n.inArray(w[0],r[s].monthsShort)+1}b[y]=p}for(c=0;c<nt.length;c++)(d=nt[c])in b&&!isNaN(b[d])&&(k=new Date(f),a[d](k,b[d]),isNaN(k)||(f=k))}return f},formatDate:function(t,u,f){var e;if(!t)return"";if("string"==typeof u&&(u=i.parseFormat(u)),u.toDisplay)return u.toDisplay(t,u,f);e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d;e.mm=(e.m<10?"0":"")+e.m;t=[];for(var s=n.extend([],u.separators),o=0,h=u.parts.length;o<=h;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"><\/th><\/tr><tr><th class="prev">'+e.templates.leftArrow+'<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">'+e.templates.rightArrow+"<\/th><\/tr><\/thead>",contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-decades"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-centuries"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=i;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=v,this};n.fn.datepicker.version="1.9.0";n.fn.datepicker.deprecated=function(n){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+n)};n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),s.call(i,"show"))});n(function(){s.call(n('[data-provide="datepicker-inline"]'))})});!function(n){n.fn.datepicker.dates.pl={days:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],daysShort:["Niedz.","Pon.","Wt.","Śr.","Czw.","Piąt.","Sob."],daysMin:["Ndz.","Pn.","Wt.","Śr.","Czw.","Pt.","Sob."],months:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthsShort:["Sty.","Lut.","Mar.","Kwi.","Maj","Cze.","Lip.","Sie.","Wrz.","Paź.","Lis.","Gru."],today:"Dzisiaj",weekStart:1,clear:"Wyczyść",format:"dd.mm.yyyy"}}(jQuery);!function(n){n.fn.datepicker.dates.uk={days:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"],daysShort:["Нед","Пнд","Втр","Срд","Чтв","Птн","Суб"],daysMin:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Cічень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],monthsShort:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],today:"Сьогодні",clear:"Очистити",format:"dd.mm.yyyy",weekStart:1}}(jQuery);!function(n,t){void 0===n&&void 0!==window&&(n=window);"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(n)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(n.jQuery)}(this,function(n){!function(n){"use strict";function ni(t,i){var r=t.nodeName.toLowerCase();if(-1!==n.inArray(r,i))return-1===n.inArray(r,kt)||Boolean(t.nodeValue.match(dt)||t.nodeValue.match(gt));for(var f=n(i).filter(function(n,t){return t instanceof RegExp}),u=0,e=f.length;u<e;u++)if(r.match(f[u]))return!0;return!1}function nt(n,t,i){var r,e,s;if(i&&"function"==typeof i)return i(n);for(var l=Object.keys(t),u=0,a=n.length;u<a;u++)for(var h=n[u].querySelectorAll("*"),f=0,v=h.length;f<v;f++)if(r=h[f],e=r.nodeName.toLowerCase(),-1!==l.indexOf(e))for(var c=[].slice.call(r.attributes),y=[].concat(t["*"]||[],t[e]||[]),o=0,p=c.length;o<p;o++)s=c[o],ni(s,y)||r.removeAttribute(s.nodeName);else r.parentNode.removeChild(r)}function ft(n){var r,u,i;if(null==this)throw new TypeError;if(r=String(this),n&&"[object RegExp]"==tt.call(n))throw new TypeError;var f=r.length,e=String(n),o=e.length,s=1<arguments.length?arguments[1]:void 0,t=s?Number(s):0;if(t!=t&&(t=0),u=Math.min(Math.max(t,0),f),f<o+u)return!1;for(i=-1;++i<o;)if(r.charCodeAt(u+i)!=e.charCodeAt(i))return!1;return!0}function et(n,t){var i,u=n.selectedOptions,f=[],r,e;if(t){for(r=0,e=u.length;r<e;r++)(i=u[r]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||f.push(i);return f}return u}function a(n,t){for(var i,r=[],f=t||n.selectedOptions,u=0,e=f.length;u<e;u++)(i=f[u]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||r.push(i.value);return n.multiple?r:r.length?r[0]:null}function st(n,t,i,r){for(var e,u,o=["display","subtext","tokens"],s=!1,f=0;f<o.length;f++)if(e=o[f],u=n[e],u&&(u=u.toString(),"display"===e&&(u=u.replace(/<[^>]+>/g,"")),r&&(u=ht(u)),u=u.toUpperCase(),s="contains"===i?0<=u.indexOf(t):u.startsWith(t)))break;return s}function e(n){return parseInt(n,10)||0}function ui(n){return ti[n]}function ht(n){return(n=n.toString())&&n.replace(ii,ui).replace(ri,"")}function fi(n){return p[n]}function pt(i){var s,h=arguments,r=i,e,o,c;if([].shift.apply(h),!u.success){try{u.full=(n.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(i){f.BootstrapVersion?u.full=f.BootstrapVersion.split(" ")[0].split("."):(u.full=[u.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",i))}u.major=u.full[0];u.success=!0}if("4"===u.major)for(e=[],f.DEFAULTS.style===t.BUTTONCLASS&&e.push({name:"style",className:"BUTTONCLASS"}),f.DEFAULTS.iconBase===t.ICONBASE&&e.push({name:"iconBase",className:"ICONBASE"}),f.DEFAULTS.tickIcon===t.TICKICON&&e.push({name:"tickIcon",className:"TICKICON"}),t.DIVIDER="dropdown-divider",t.SHOW="show",t.BUTTONCLASS="btn-light",t.POPOVERHEADER="popover-header",t.ICONBASE="",t.TICKICON="bs-ok-default",o=0;o<e.length;o++)i=e[o],f.DEFAULTS[i.name]=t[i.className];return c=this.each(function(){var e=n(this),t,i,o,u,c,l;if(e.is("select")){if(t=e.data("selectpicker"),i="object"==typeof r&&r,t){if(i)for(o in i)i.hasOwnProperty(o)&&(t.options[o]=i[o])}else{u=e.data();for(c in u)u.hasOwnProperty(c)&&-1!==n.inArray(c,bt)&&delete u[c];l=n.extend({},f.DEFAULTS,n.fn.selectpicker.defaults||{},u,i);l.template=n.extend({},f.DEFAULTS.template,n.fn.selectpicker.defaults?n.fn.selectpicker.defaults.template:{},u.template,i.template);e.data("selectpicker",t=new f(this,l))}"string"==typeof r&&(s=t[r]instanceof Function?t[r].apply(t,h):t.options[r])}}),void 0!==s?s:c}var bt=["sanitize","whiteList","sanitizeFn"],kt=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],dt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,gt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,y,tt,h,it,rt,ut,c,s,ot,p,w,ct,lt,l,wt,g;"classList"in document.createElement("_")||function(t){var r;if("Element"in t){var u="classList",e="prototype",f=t.Element[e],i=Object,o=function(){var t=n(this);return{add:function(n){return n=Array.prototype.slice.call(arguments).join(" "),t.addClass(n)},remove:function(n){return n=Array.prototype.slice.call(arguments).join(" "),t.removeClass(n)},toggle:function(n,i){return t.toggleClass(n,i)},contains:function(n){return t.hasClass(n)}}};if(i.defineProperty){r={get:o,enumerable:!0,configurable:!0};try{i.defineProperty(f,u,r)}catch(t){void 0!==t.number&&-2146823252!==t.number||(r.enumerable=!1,i.defineProperty(f,u,r))}}else i[e].__defineGetter__&&f.__defineGetter__(u,o)}}(window);h=document.createElement("_");(h.classList.add("c1","c2"),h.classList.contains("c2"))||(it=DOMTokenList.prototype.add,rt=DOMTokenList.prototype.remove,DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,it.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,rt.bind(this))});(h.classList.toggle("c3",!1),h.classList.contains("c3"))&&(ut=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(n,t){return 1 in arguments&&!this.contains(n)==!t?t:ut.call(this,n)});h=null;String.prototype.startsWith||(y=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(n){}return i}(),tt={}.toString,y?y(String.prototype,"startsWith",{value:ft,configurable:!0,writable:!0}):String.prototype.startsWith=ft);Object.keys||(Object.keys=function(n,t,i){for(t in i=[],n)i.hasOwnProperty.call(n,t)&&i.push(t);return i});HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")&&Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});c={useDefault:!1,_set:n.valHooks.select.set};n.valHooks.select.set=function(t,i){return i&&!c.useDefault&&n(t).data("selected",!0),c._set.apply(this,arguments)};s=null;ot=function(){try{return new Event("change"),!0}catch(n){return!1}}();n.fn.triggerNative=function(n){var t,i=this[0];i.dispatchEvent?(ot?t=new Event(n,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(n,!0,!1),i.dispatchEvent(t)):i.fireEvent?((t=document.createEventObject()).eventType=n,i.fireEvent("on"+n,t)):this.trigger(n)};var ti={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},ii=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ri=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");l=(p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},w="(?:"+Object.keys(p).join("|")+")",ct=RegExp(w),lt=RegExp(w,"g"),function(n){return n=null==n?"":""+n,ct.test(n)?n.replace(lt,fi):n});var ei={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},at=27,oi=13,v=32,b=9,k=38,d=40,u={success:!1,major:"3"};try{u.full=(n.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".");u.major=u.full[0];u.success=!0}catch(e){}var vt=0,i=".bs.select",t={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},yt={MENU:"."+t.MENU},r={span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};r.a.setAttribute("role","option");"4"===u.major&&(r.a.className="dropdown-item");r.subtext.className="text-muted";r.text=r.span.cloneNode(!1);r.text.className="text";r.checkMark=r.span.cloneNode(!1);var si=new RegExp(k+"|"+d),hi=new RegExp("^"+b+"$|"+at),o={li:function(n,t,i){var u=r.li.cloneNode(!1);return n&&(1===n.nodeType||11===n.nodeType?u.appendChild(n):u.innerHTML=n),void 0!==t&&""!==t&&(u.className=t),null!=i&&u.classList.add("optgroup-"+i),u},a:function(n,t,i){var u=r.a.cloneNode(!0);return n&&(11===n.nodeType?u.appendChild(n):u.insertAdjacentHTML("beforeend",n)),void 0!==t&&""!==t&&u.classList.add.apply(u.classList,t.split(" ")),i&&u.setAttribute("style",i),u},text:function(n,t){var u,f,i=r.text.cloneNode(!1),e;if(n.content?i.innerHTML=n.content:((i.textContent=n.text,n.icon)&&(e=r.whitespace.cloneNode(!1),(f=(!0===t?r.i:r.span).cloneNode(!1)).className=this.options.iconBase+" "+n.icon,r.fragment.appendChild(f),r.fragment.appendChild(e)),n.subtext&&((u=r.subtext.cloneNode(!1)).textContent=n.subtext,i.appendChild(u))),!0===t)for(;0<i.childNodes.length;)r.fragment.appendChild(i.childNodes[0]);else r.fragment.appendChild(i);return r.fragment},label:function(n){var i,u,t=r.text.cloneNode(!1),f;return(t.innerHTML=n.display,n.icon)&&(f=r.whitespace.cloneNode(!1),(u=r.span.cloneNode(!1)).className=this.options.iconBase+" "+n.icon,r.fragment.appendChild(u),r.fragment.appendChild(f)),n.subtext&&((i=r.subtext.cloneNode(!1)).textContent=n.subtext,t.appendChild(i)),r.fragment.appendChild(t),r.fragment}},f=function(t,i){var u=this,r;c.useDefault||(n.valHooks.select.set=c._set,c.useDefault=!0);this.$element=n(t);this.$newElement=null;this.$button=null;this.$menu=null;this.options=i;this.selectpicker={main:{},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout(function(){u.selectpicker.keydown.keyHistory=""},800)}}}};this.sizeInfo={};null===this.options.title&&(this.options.title=this.$element.attr("title"));r=this.options.windowPadding;"number"==typeof r&&(this.options.windowPadding=[r,r,r,r]);this.val=f.prototype.val;this.render=f.prototype.render;this.refresh=f.prototype.refresh;this.setStyle=f.prototype.setStyle;this.selectAll=f.prototype.selectAll;this.deselectAll=f.prototype.deselectAll;this.destroy=f.prototype.destroy;this.remove=f.prototype.remove;this.show=f.prototype.show;this.hide=f.prototype.hide;this.init()};f.VERSION="1.13.14";f.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(n){return 1==n?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){return[1==n?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:t.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:t.ICONBASE,tickIcon:t.TICKICON,showTick:!1,template:{caret:'<span class="caret"><\/span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}};f.prototype={constructor:f,init:function(){var n=this,r=this.$element.attr("id");vt++;this.selectId="bs-select-"+vt;this.$element[0].classList.add("bs-select-hidden");this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$element[0].classList.contains("show-tick")&&(this.options.showTick=!0);this.$newElement=this.createDropdown();this.buildData();this.$element.after(this.$newElement).prependTo(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(yt.MENU);this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");this.$element[0].classList.remove("bs-select-hidden");!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(t.MENURIGHT);void 0!==r&&this.$button.attr("data-id",r);this.checkDisabled();this.clickListener();this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0];this.setStyle();this.render();this.setWidth();this.options.container?this.selectPosition():this.$element.on("hide"+i,function(){if(n.isVirtual()){var t=n.$menuInner[0],i=t.firstChild.cloneNode(!1);t.replaceChild(i,t.firstChild);t.scrollTop=0}});this.$menu.data("this",this);this.$newElement.data("this",this);this.options.mobile&&this.mobile();this.$newElement.on({"hide.bs.dropdown":function(t){n.$element.trigger("hide"+i,t)},"hidden.bs.dropdown":function(t){n.$element.trigger("hidden"+i,t)},"show.bs.dropdown":function(t){n.$element.trigger("show"+i,t)},"shown.bs.dropdown":function(t){n.$element.trigger("shown"+i,t)}});n.$element[0].hasAttribute("required")&&this.$element.on("invalid"+i,function(){n.$button[0].classList.add("bs-invalid");n.$element.on("shown"+i+".invalid",function(){n.$element.val(n.$element.val()).off("shown"+i+".invalid")}).on("rendered"+i,function(){this.validity.valid&&n.$button[0].classList.remove("bs-invalid");n.$element.off("rendered"+i)});n.$button.on("blur"+i,function(){n.$element.trigger("focus").trigger("blur");n.$button.off("blur"+i)})});setTimeout(function(){n.buildList();n.$element.trigger("loaded"+i)})},createDropdown:function(){var h=this.multiple||this.options.showTick?" show-tick":"",c=this.multiple?' aria-multiselectable="true"':"",i="",a=this.autofocus?" autofocus":"";u.major<4&&this.$element.parent().hasClass("input-group")&&(i=" input-group-btn");var r,f="",e="",o="",s="";return this.options.header&&(f='<div class="'+t.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">&times;<\/button>'+this.options.header+"<\/div>"),this.options.liveSearch&&(e='<div class="bs-searchbox"><input type="search" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+l(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list"><\/div>'),this.multiple&&this.options.actionsBox&&(o='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+t.BUTTONCLASS+'">'+this.options.selectAllText+'<\/button><button type="button" class="actions-btn bs-deselect-all btn '+t.BUTTONCLASS+'">'+this.options.deselectAllText+"<\/button><\/div><\/div>"),this.multiple&&this.options.doneButton&&(s='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+t.BUTTONCLASS+'">'+this.options.doneButtonText+"<\/button><\/div><\/div>"),r='<div class="dropdown bootstrap-select'+h+i+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+a+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"><\/div><\/div> <\/div>'+("4"===u.major?"":'<span class="bs-caret">'+this.options.template.caret+"<\/span>")+'<\/button><div class="'+t.MENU+" "+("4"===u.major?"":t.SHOW)+'">'+f+e+o+'<div class="inner '+t.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+c+'><ul class="'+t.MENU+" inner "+("4"===u.major?t.SHOW:"")+'" role="presentation"><\/ul><\/div>'+s+"<\/div><\/div>",n(r)},setPositionData:function(){var t,n,i;for(this.selectpicker.view.canHighlight=[],t=this.selectpicker.view.size=0;t<this.selectpicker.current.data.length;t++)n=this.selectpicker.current.data[t],i=!0,"divider"===n.type?(i=!1,n.height=this.sizeInfo.dividerHeight):"optgroup-label"===n.type?(i=!1,n.height=this.sizeInfo.dropdownHeaderHeight):n.height=this.sizeInfo.liHeight,n.disabled&&(i=!1),this.selectpicker.view.canHighlight.push(i),i&&(this.selectpicker.view.size++,n.posinset=this.selectpicker.view.size),n.position=(0===t?0:this.selectpicker.current.data[t-1].position)+n.height},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(r,u,f){function a(n,t){var c,l,rt,ut,s,b,ft,et,f=e.selectpicker.current.elements.length,k=[],ot=!0,o=e.isVirtual(),i,a,at,vt,w,g,tt,it,yt,h;for(e.selectpicker.view.scrollTop=n,c=Math.ceil(e.sizeInfo.menuInnerHeight/e.sizeInfo.liHeight*1.5),l=Math.round(f/c)||1,i=0;i<l;i++){if(a=(i+1)*c,i===l-1&&(a=f),k[i]=[i*c+(i?1:0),a],!f)break;void 0===s&&n-1<=e.selectpicker.current.data[a-1].position-e.sizeInfo.menuInnerHeight&&(s=i)}if(void 0===s&&(s=0),b=[e.selectpicker.view.position0,e.selectpicker.view.position1],rt=Math.max(0,s-1),ut=Math.min(l-1,s+1),e.selectpicker.view.position0=!1===o?0:Math.max(0,k[rt][0])||0,e.selectpicker.view.position1=!1===o?f:Math.min(f,k[ut][1])||0,ft=b[0]!==e.selectpicker.view.position0||b[1]!==e.selectpicker.view.position1,void 0!==e.activeIndex&&(y=e.selectpicker.main.elements[e.prevActiveIndex],p=e.selectpicker.main.elements[e.activeIndex],v=e.selectpicker.main.elements[e.selectedIndex],t&&(e.activeIndex!==e.selectedIndex&&e.defocusItem(p),e.activeIndex=void 0),e.activeIndex&&e.activeIndex!==e.selectedIndex&&e.defocusItem(v)),void 0!==e.prevActiveIndex&&e.prevActiveIndex!==e.activeIndex&&e.prevActiveIndex!==e.selectedIndex&&e.defocusItem(y),(t||ft)&&(et=e.selectpicker.view.visibleElements?e.selectpicker.view.visibleElements.slice():[],e.selectpicker.view.visibleElements=!1===o?e.selectpicker.current.elements:e.selectpicker.current.elements.slice(e.selectpicker.view.position0,e.selectpicker.view.position1),e.setOptionStatus(),(r||!1===o&&t)&&(ot=!function(n,t){return n.length===t.length&&n.every(function(n,i){return n===t[i]})}(et,e.selectpicker.view.visibleElements)),(t||!0===o)&&ot)){var st,ht,u=e.$menuInner[0],ct=document.createDocumentFragment(),pt=u.firstChild.cloneNode(!1),lt=e.selectpicker.view.visibleElements,d=[];for(u.replaceChild(pt,u.firstChild),i=0,at=lt.length;i<at;i++)g=lt[i],e.options.sanitize&&(vt=g.lastChild)&&(w=e.selectpicker.current.data[i+e.selectpicker.view.position0])&&w.content&&!w.sanitized&&(d.push(vt),w.sanitized=!0),ct.appendChild(g);(e.options.sanitize&&d.length&&nt(d,e.options.whiteList,e.options.sanitizeFn),!0===o?(st=0===e.selectpicker.view.position0?0:e.selectpicker.current.data[e.selectpicker.view.position0-1].position,ht=e.selectpicker.view.position1>f-1?0:e.selectpicker.current.data[f-1].position-e.selectpicker.current.data[e.selectpicker.view.position1-1].position,u.firstChild.style.marginTop=st+"px",u.firstChild.style.marginBottom=ht+"px"):(u.firstChild.style.marginTop=0,u.firstChild.style.marginBottom=0),u.firstChild.appendChild(ct),!0===o&&e.sizeInfo.hasScrollBar)&&(tt=u.firstChild.offsetWidth,t&&tt<e.sizeInfo.menuInnerInnerWidth&&e.sizeInfo.totalMenuWidth>e.sizeInfo.selectWidth?u.firstChild.style.minWidth=e.sizeInfo.menuInnerInnerWidth+"px":tt>e.sizeInfo.menuInnerInnerWidth&&(e.$menu[0].style.minWidth=0,it=u.firstChild.offsetWidth,it>e.sizeInfo.menuInnerInnerWidth&&(e.sizeInfo.menuInnerInnerWidth=it,u.firstChild.style.minWidth=e.sizeInfo.menuInnerInnerWidth+"px"),e.$menu[0].style.minWidth=""))}(e.prevActiveIndex=e.activeIndex,e.options.liveSearch)?r&&t&&(h=0,e.selectpicker.view.canHighlight[h]||(h=1+e.selectpicker.view.canHighlight.slice(1).indexOf(!0)),yt=e.selectpicker.view.visibleElements[h],e.defocusItem(e.selectpicker.view.currentActive),e.activeIndex=(e.selectpicker.current.data[h]||{}).index,e.focusItem(yt)):e.$menuInner.trigger("focus")}var v,y,e=this,o=0,p=[],s,h,c,l;(this.selectpicker.isSearching=r,this.selectpicker.current=r?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),u)&&(f?o=this.$menuInner[0].scrollTop:e.multiple||(s=e.$element[0],h=(s.options[s.selectedIndex]||{}).liIndex,"number"==typeof h&&!1!==e.options.size&&(c=e.selectpicker.main.data[h],l=c&&c.position,l&&(o=l-(e.sizeInfo.menuInnerHeight+e.sizeInfo.liHeight)/2))));a(o,!0);this.$menuInner.off("scroll.createView").on("scroll.createView",function(n,t){e.noScroll||a(this.scrollTop,t);e.noScroll=!1});n(window).off("resize"+i+"."+this.selectId+".createView").on("resize"+i+"."+this.selectId+".createView",function(){e.$newElement.hasClass(t.SHOW)&&a(e.$menuInner[0].scrollTop)})},focusItem:function(n,t,i){if(n){t=t||this.selectpicker.main.data[this.activeIndex];var r=n.firstChild;r&&(r.setAttribute("aria-setsize",this.selectpicker.view.size),r.setAttribute("aria-posinset",t.posinset),!0!==i&&(this.focusedParent.setAttribute("aria-activedescendant",r.id),n.classList.add("active"),r.classList.add("active")))}},defocusItem:function(n){n&&(n.classList.remove("active"),n.firstChild&&n.firstChild.classList.remove("active"))},setPlaceholder:function(){var i=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option"));i=!0;var t=this.$element[0],r=!1,u=!this.selectpicker.view.titleOption.parentNode;u&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",r=void 0===n(t.options[t.selectedIndex]).attr("selected")&&void 0===this.$element.data("selected"));(u||0!==this.selectpicker.view.titleOption.index)&&t.insertBefore(this.selectpicker.view.titleOption,t.firstChild);r&&(t.selectedIndex=0)}return i},buildData:function(){function f(t){var i=n[n.length-1];i&&"divider"===i.type&&(i.optID||t.optID)||((t=t||{}).type="divider",n.push(t))}function o(t,i){if((i=i||{}).divider="true"===t.getAttribute("data-divider"),i.divider)f({optID:i.optID});else{var u=n.length,e=t.style.cssText,o=e?l(e):"",r=(t.className||"")+(i.optgroupClass||"");i.optID&&(r="opt "+r);i.optionClass=r.trim();i.inlineStyle=o;i.text=t.textContent;i.content=t.getAttribute("data-content");i.tokens=t.getAttribute("data-tokens");i.subtext=t.getAttribute("data-subtext");i.icon=t.getAttribute("data-icon");t.liIndex=u;i.display=i.content||i.text;i.type="option";i.index=u;i.option=t;i.selected=!!t.selected;i.disabled=i.disabled||!!t.disabled;n.push(i)}}function h(i,r){var e=r[i],w=r[i-1],b=r[i+1],c=e.querySelectorAll("option"+u),v,y,s,h,a,p;if(c.length){for(s={display:l(e.label),subtext:e.getAttribute("data-subtext"),icon:e.getAttribute("data-icon"),type:"optgroup-label",optgroupClass:" "+(e.className||"")},t++,w&&f({optID:t}),s.optID=t,n.push(s),h=0,a=c.length;h<a;h++)p=c[h],0===h&&(y=(v=n.length-1)+a),o(p,{headerIndex:v,lastIndex:y,optID:s.optID,optgroupClass:s.optgroupClass,disabled:e.disabled});b&&f({optID:t})}}var u=':not([hidden]):not([data-hidden="true"])',n=[],t=0,i=this.setPlaceholder()?1:0,r,s,e;for(this.options.hideDisabled&&(u+=":not(:disabled)"),r=this.$element[0].querySelectorAll("select > *"+u),s=r.length;i<s;i++)e=r[i],"OPTGROUP"!==e.tagName?o(e,{}):h(i,r);this.selectpicker.main.data=this.selectpicker.current.data=n},buildList:function(){function h(r){var u,f=0;switch(r.type){case"divider":u=o.li(!1,t.DIVIDER,r.optID?r.optID+"div":void 0);break;case"option":(u=o.li(o.a(o.text.call(n,r),r.optionClass,r.inlineStyle),"",r.optID)).firstChild&&(u.firstChild.id=n.selectId+"-"+r.index);break;case"optgroup-label":u=o.li(o.label.call(n,r),"dropdown-header"+r.optgroupClass,r.optID)}i.push(u);r.display&&(f+=r.display.length);r.subtext&&(f+=r.subtext.length);r.icon&&(f+=1);e<f&&(e=f,n.selectpicker.view.widestOption=i[i.length-1])}var n=this,f=this.selectpicker.main.data,i=[],e=0,s,u;for((n.options.showTick||n.multiple)&&!r.checkMark.parentNode&&(r.checkMark.className=this.options.iconBase+" "+n.options.tickIcon+" check-mark",r.a.appendChild(r.checkMark)),s=f.length,u=0;u<s;u++)h(f[u]);this.selectpicker.main.elements=this.selectpicker.current.elements=i},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var p,f=this,w=this.$element[0],rt=this.setPlaceholder()&&0===w.selectedIndex,b=et(w,this.options.hideDisabled),t=b.length,e=this.$button[0],k=e.querySelector(".filter-option-inner-inner"),ut=document.createTextNode(this.options.multipleSeparator),n=r.fragment.cloneNode(!1),tt=!1,s,l,d,it,g,y;if(e.classList.toggle("bs-placeholder",f.multiple?!t:!a(w,b)),this.tabIndex(),"static"===this.options.selectedTextFormat)n=o.text.call(this,{text:this.options.title},!0);else if(!1===(this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&1<t&&(1<(p=this.options.selectedTextFormat.split(">")).length&&t>p[1]||1===p.length&&2<=t))){if(!rt){for(s=0;s<t&&s<50;s++){var v=b[s],h=this.selectpicker.main.data[v.liIndex],c={};this.multiple&&0<s&&n.appendChild(ut.cloneNode(!1));v.title?c.text=v.title:h&&(h.content&&f.options.showContent?(c.content=h.content.toString(),tt=!0):(f.options.showIcon&&(c.icon=h.icon),f.options.showSubtext&&!f.multiple&&h.subtext&&(c.subtext=" "+h.subtext),c.text=v.textContent.trim()));n.appendChild(o.text.call(this,c,!0))}49<t&&n.appendChild(document.createTextNode("..."))}}else l=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])',this.options.hideDisabled&&(l+=":not(:disabled)"),d=this.$element[0].querySelectorAll("select > option"+l+", optgroup"+l+" option"+l).length,it="function"==typeof this.options.countSelectedText?this.options.countSelectedText(t,d):this.options.countSelectedText,n=o.text.call(this,{text:it.replace("{0}",t.toString()).replace("{1}",d.toString())},!0);(null==this.options.title&&(this.options.title=this.$element.attr("title")),n.childNodes.length||(n=o.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),e.title=n.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&tt&&nt([n],f.options.whiteList,f.options.sanitizeFn),k.innerHTML="",k.appendChild(n),u.major<4&&this.$newElement[0].classList.contains("bs3-has-addon"))&&(g=e.querySelector(".filter-expand"),y=k.cloneNode(!0),y.className="filter-expand",g?e.replaceChild(y,g):e.appendChild(y));this.$element.trigger("rendered"+i)},setStyle:function(n,t){var r,i=this.$button[0],f=this.$newElement[0],e=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));u.major<4&&(f.classList.add("bs3"),f.parentNode.classList.contains("input-group")&&(f.previousElementSibling||f.nextElementSibling)&&(f.previousElementSibling||f.nextElementSibling).classList.contains("input-group-addon")&&f.classList.add("bs3-has-addon"));r=n?n.trim():e;"add"==t?r&&i.classList.add.apply(i.classList,r.split(" ")):"remove"==t?r&&i.classList.remove.apply(i.classList,r.split(" ")):(e&&i.classList.remove.apply(i.classList,e.split(" ")),r&&i.classList.add.apply(i.classList,r.split(" ")))},liHeight:function(i){var nt;if(i||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var c=document.createElement("div"),f=document.createElement("div"),a=document.createElement("div"),s=document.createElement("ul"),k=document.createElement("li"),l=document.createElement("li"),d=document.createElement("li"),g=document.createElement("a"),v=document.createElement("span"),y=this.options.header&&0<this.$menu.find("."+t.POPOVERHEADER).length?this.$menu.find("."+t.POPOVERHEADER)[0].cloneNode(!0):null,h=this.options.liveSearch?document.createElement("div"):null,p=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,w=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,it=this.$element.find("option")[0];(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,v.className="text",g.className="dropdown-item "+(it?it.className:""),c.className=this.$menu[0].parentNode.className+" "+t.SHOW,c.style.width=0,"auto"===this.options.width&&(f.style.minWidth=0),f.className=t.MENU+" "+t.SHOW,a.className="inner "+t.SHOW,s.className=t.MENU+" inner "+("4"===u.major?t.SHOW:""),k.className=t.DIVIDER,l.className="dropdown-header",v.appendChild(document.createTextNode("​")),g.appendChild(v),d.appendChild(g),l.appendChild(v.cloneNode(!0)),this.selectpicker.view.widestOption&&s.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),s.appendChild(d),s.appendChild(k),s.appendChild(l),y&&f.appendChild(y),h)&&(nt=document.createElement("input"),h.className="bs-searchbox",nt.className="form-control",h.appendChild(nt),f.appendChild(h));p&&f.appendChild(p);a.appendChild(s);f.appendChild(a);w&&f.appendChild(w);c.appendChild(f);document.body.appendChild(c);var rt,ut=d.offsetHeight,ft=l?l.offsetHeight:0,et=y?y.offsetHeight:0,ot=h?h.offsetHeight:0,st=p?p.offsetHeight:0,ht=w?w.offsetHeight:0,ct=n(k).outerHeight(!0),r=!!window.getComputedStyle&&window.getComputedStyle(f),tt=f.offsetWidth,o=r?null:n(f),b={vert:e(r?r.paddingTop:o.css("paddingTop"))+e(r?r.paddingBottom:o.css("paddingBottom"))+e(r?r.borderTopWidth:o.css("borderTopWidth"))+e(r?r.borderBottomWidth:o.css("borderBottomWidth")),horiz:e(r?r.paddingLeft:o.css("paddingLeft"))+e(r?r.paddingRight:o.css("paddingRight"))+e(r?r.borderLeftWidth:o.css("borderLeftWidth"))+e(r?r.borderRightWidth:o.css("borderRightWidth"))},lt={vert:b.vert+e(r?r.marginTop:o.css("marginTop"))+e(r?r.marginBottom:o.css("marginBottom"))+2,horiz:b.horiz+e(r?r.marginLeft:o.css("marginLeft"))+e(r?r.marginRight:o.css("marginRight"))+2};a.style.overflowY="scroll";rt=f.offsetWidth-tt;document.body.removeChild(c);this.sizeInfo.liHeight=ut;this.sizeInfo.dropdownHeaderHeight=ft;this.sizeInfo.headerHeight=et;this.sizeInfo.searchHeight=ot;this.sizeInfo.actionsHeight=st;this.sizeInfo.doneButtonHeight=ht;this.sizeInfo.dividerHeight=ct;this.sizeInfo.menuPadding=b;this.sizeInfo.menuExtras=lt;this.sizeInfo.menuWidth=tt;this.sizeInfo.menuInnerInnerWidth=tt-b.horiz;this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth;this.sizeInfo.scrollBarWidth=rt;this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight;this.setPositionData()}},getSelectPosition:function(){var t,u=n(window),f=this.$newElement.offset(),i=n(this.options.container),r;this.options.container&&i.length&&!i.is("body")?((t=i.offset()).top+=parseInt(i.css("borderTopWidth")),t.left+=parseInt(i.css("borderLeftWidth"))):t={top:0,left:0};r=this.options.windowPadding;this.sizeInfo.selectOffsetTop=f.top-t.top-u.scrollTop();this.sizeInfo.selectOffsetBot=u.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-r[2];this.sizeInfo.selectOffsetLeft=f.left-t.left-u.scrollLeft();this.sizeInfo.selectOffsetRight=u.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-r[1];this.sizeInfo.selectOffsetTop-=r[0];this.sizeInfo.selectOffsetLeft-=r[3]},setMenuSize:function(){var f;this.getSelectPosition();var r,n,e,o,s,h,y,u,b=this.sizeInfo.selectWidth,p=this.sizeInfo.liHeight,c=this.sizeInfo.headerHeight,l=this.sizeInfo.searchHeight,a=this.sizeInfo.actionsHeight,v=this.sizeInfo.doneButtonHeight,k=this.sizeInfo.dividerHeight,i=this.sizeInfo.menuPadding,w=0;if(this.options.dropupAuto&&(y=p*this.selectpicker.current.elements.length+i.vert,u=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&y+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(u=this.selectpicker.dropup),this.$newElement.toggleClass(t.DROPUP,u),this.selectpicker.dropup=u),"auto"===this.options.size)o=3<this.selectpicker.current.elements.length?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,n=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,e=o+c+l+a+v,h=Math.max(o-i.vert,0),this.$newElement.hasClass(t.DROPUP)&&(n=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),r=(s=n)-c-l-a-v-i.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(f=0;f<this.options.size;f++)"divider"===this.selectpicker.current.data[f].type&&w++;r=(n=p*this.options.size+w*k+i.vert)-i.vert;s=n+c+l+a+v;e=h=""}this.$menu.css({"max-height":s+"px",overflow:"hidden","min-height":e+"px"});this.$menuInner.css({"max-height":r+"px","overflow-y":"auto","min-height":h+"px"});this.sizeInfo.menuInnerHeight=Math.max(r,1);this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth);"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(t.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-b);this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(t){if(this.liHeight(t),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var r=this,u=n(window);this.setMenuSize();this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return r.setMenuSize()});"auto"===this.options.size?u.off("resize"+i+"."+this.selectId+".setMenuSize scroll"+i+"."+this.selectId+".setMenuSize").on("resize"+i+"."+this.selectId+".setMenuSize scroll"+i+"."+this.selectId+".setMenuSize",function(){return r.setMenuSize()}):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&u.off("resize"+i+"."+this.selectId+".setMenuSize scroll"+i+"."+this.selectId+".setMenuSize")}this.createView(!1,!0,t)},setWidth:function(){var n=this;"auto"===this.options.width?requestAnimationFrame(function(){n.$menu.css("min-width","0");n.$element.on("loaded"+i,function(){n.liHeight();n.setMenuSize();var t=n.$newElement.clone().appendTo("body"),i=t.css("width","auto").children("button").outerWidth();t.remove();n.sizeInfo.selectWidth=Math.max(n.sizeInfo.totalMenuWidth,i);n.$newElement.css("width",n.sizeInfo.selectWidth+"px")})}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){function s(i){var s={},c=r.options.display||!!n.fn.dropdown.Constructor.Default&&n.fn.dropdown.Constructor.Default.display;r.$bsContainer.addClass(i.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(t.DROPUP,i.hasClass(t.DROPUP));o=i.offset();f.is("body")?e={top:0,left:0}:((e=f.offset()).top+=parseInt(f.css("borderTopWidth"))-f.scrollTop(),e.left+=parseInt(f.css("borderLeftWidth"))-f.scrollLeft());h=i.hasClass(t.DROPUP)?0:i[0].offsetHeight;(u.major<4||"static"===c)&&(s.top=o.top-e.top+h,s.left=o.left-e.left);s.width=i[0].offsetWidth;r.$bsContainer.css(s)}this.$bsContainer=n('<div class="bs-container" />');var o,e,h,r=this,f=n(this.options.container);this.$button.on("click.bs.dropdown.data-api",function(){r.isDisabled()||(s(r.$newElement),r.$bsContainer.appendTo(r.options.container).toggleClass(t.SHOW,!r.$button.hasClass(t.SHOW)).append(r.$menu))});n(window).off("resize"+i+"."+this.selectId+" scroll"+i+"."+this.selectId).on("resize"+i+"."+this.selectId+" scroll"+i+"."+this.selectId,function(){r.$newElement.hasClass(t.SHOW)&&s(r.$newElement)});this.$element.on("hide"+i,function(){r.$menu.data("height",r.$menu.height());r.$bsContainer.detach()})},setOptionStatus:function(n){var t=this,r,i,u;if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length)for(r=0;r<t.selectpicker.view.visibleElements.length;r++)i=t.selectpicker.current.data[r+t.selectpicker.view.position0],u=i.option,u&&(!0!==n&&t.setDisabled(i.index,i.disabled),t.setSelected(i.index,u.selected))},setSelected:function(n,t){var u,i,r=this.selectpicker.main.elements[n],f=this.selectpicker.main.data[n],e=void 0!==this.activeIndex,o=this.activeIndex===n||t&&!this.multiple&&!e;f.selected=t;i=r.firstChild;t&&(this.selectedIndex=n);r.classList.toggle("selected",t);o?(this.focusItem(r,f),this.selectpicker.view.currentActive=r,this.activeIndex=n):this.defocusItem(r);i&&(i.classList.toggle("selected",t),t?i.setAttribute("aria-selected",!0):this.multiple?i.setAttribute("aria-selected",!1):i.removeAttribute("aria-selected"));o||e||!t||void 0===this.prevActiveIndex||(u=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(u))},setDisabled:function(n,i){var r,f=this.selectpicker.main.elements[n];this.selectpicker.main.data[n].disabled=i;r=f.firstChild;f.classList.toggle(t.DISABLED,i);r&&("4"===u.major&&r.classList.toggle(t.DISABLED,i),i?(r.setAttribute("aria-disabled",i),r.setAttribute("tabindex",-1)):(r.removeAttribute("aria-disabled"),r.setAttribute("tabindex",0)))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.$newElement[0].classList.add(t.DISABLED),this.$button.addClass(t.DISABLED).attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button[0].classList.contains(t.DISABLED)&&(this.$newElement[0].classList.remove(t.DISABLED),this.$button.removeClass(t.DISABLED).attr("aria-disabled",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex"))},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")));this.$element.attr("tabindex",-98)},clickListener:function(){function e(){r.options.liveSearch?r.$searchbox.trigger("focus"):r.$menuInner.trigger("focus")}function o(){r.dropdown&&r.dropdown._popper&&r.dropdown._popper.state.isCreated?e():requestAnimationFrame(o)}var r=this,f=n(document);f.data("spaceSelect",!1);this.$button.on("keyup",function(n){/(32)/.test(n.keyCode.toString(10))&&f.data("spaceSelect")&&(n.preventDefault(),f.data("spaceSelect",!1))});this.$newElement.on("show.bs.dropdown",function(){3<u.major&&!r.dropdown&&(r.dropdown=r.$button.data("bs.dropdown"),r.dropdown._menu=r.$menu[0])});this.$button.on("click.bs.dropdown.data-api",function(){r.$newElement.hasClass(t.SHOW)||r.setSize()});this.$element.on("shown"+i,function(){r.$menuInner[0].scrollTop!==r.selectpicker.view.scrollTop&&(r.$menuInner[0].scrollTop=r.selectpicker.view.scrollTop);3<u.major?requestAnimationFrame(o):e()});this.$menuInner.on("mouseenter","li a",function(){var n=this.parentElement,t=r.isVirtual()?r.selectpicker.view.position0:0,i=Array.prototype.indexOf.call(n.parentElement.children,n),u=r.selectpicker.current.data[i+t];r.focusItem(n,u,!0)});this.$menuInner.on("click","li a",function(u,f){var w=n(this),c=r.$element[0],lt=r.isVirtual()?r.selectpicker.view.position0:0,ut=r.selectpicker.current.data[w.parent().index()+lt],l=ut.index,at=a(c),ft=c.selectedIndex,ot=c.options[ft],b=!0,d,g,p,nt;if(r.multiple&&1!==r.options.maxOptions&&u.stopPropagation(),u.preventDefault(),!r.isDisabled()&&!w.parent().hasClass(t.DISABLED)){var h=ut.option,st=n(h),ht=h.selected,k=st.parent("optgroup"),ct=k.find("option"),e=r.options.maxOptions,o=k.data("maxOptions")||!1;if(l===r.activeIndex&&(f=!0),f||(r.prevActiveIndex=r.activeIndex,r.activeIndex=void 0),r.multiple){if((h.selected=!ht,r.setSelected(l,!ht),w.trigger("blur"),!1!==e||!1!==o)&&(d=e<et(c).length,g=o<k.find("option:selected").length,e&&d||o&&g))if(e&&1==e)c.selectedIndex=-1,h.selected=!0,r.setOptionStatus(!0);else if(o&&1==o){for(p=0;p<ct.length;p++)nt=ct[p],nt.selected=!1,r.setSelected(nt.liIndex,!1);h.selected=!0;r.setSelected(l,!0)}else{var tt="string"==typeof r.options.maxOptionsText?[r.options.maxOptionsText,r.options.maxOptionsText]:r.options.maxOptionsText,v="function"==typeof tt?tt(e,o):tt,it=v[0].replace("{n}",e),rt=v[1].replace("{n}",o),y=n('<div class="notify"><\/div>');v[2]&&(it=it.replace("{var}",v[2][1<e?0:1]),rt=rt.replace("{var}",v[2][1<o?0:1]));h.selected=!1;r.$menu.append(y);e&&d&&(y.append(n("<div>"+it+"<\/div>")),b=!1,r.$element.trigger("maxReached"+i));o&&g&&(y.append(n("<div>"+rt+"<\/div>")),b=!1,r.$element.trigger("maxReachedGrp"+i));setTimeout(function(){r.setSelected(l,!1)},10);y[0].classList.add("fadeOut");setTimeout(function(){y.remove()},1050)}}else ot&&(ot.selected=!1),h.selected=!0,r.setSelected(l,!0);!r.multiple||r.multiple&&1===r.options.maxOptions?r.$button.trigger("focus"):r.options.liveSearch&&r.$searchbox.trigger("focus");b&&(!r.multiple&&ft===c.selectedIndex||(s=[h.index,st.prop("selected"),at],r.$element.triggerNative("change")))}});this.$menu.on("click","li."+t.DISABLED+" a, ."+t.POPOVERHEADER+", ."+t.POPOVERHEADER+" :not(.close)",function(t){t.currentTarget==this&&(t.preventDefault(),t.stopPropagation(),r.options.liveSearch&&!n(t.target).hasClass("close")?r.$searchbox.trigger("focus"):r.$button.trigger("focus"))});this.$menuInner.on("click",".divider, .dropdown-header",function(n){n.preventDefault();n.stopPropagation();r.options.liveSearch?r.$searchbox.trigger("focus"):r.$button.trigger("focus")});this.$menu.on("click","."+t.POPOVERHEADER+" .close",function(){r.$button.trigger("click")});this.$searchbox.on("click",function(n){n.stopPropagation()});this.$menu.on("click",".actions-btn",function(t){r.options.liveSearch?r.$searchbox.trigger("focus"):r.$button.trigger("focus");t.preventDefault();t.stopPropagation();n(this).hasClass("bs-select-all")?r.selectAll():r.deselectAll()});this.$element.on("change"+i,function(){r.render();r.$element.trigger("changed"+i,s);s=null}).on("focus"+i,function(){r.options.mobile||r.$button.trigger("focus")})},liveSearchListener:function(){var n=this,t=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",function(){n.$searchbox.val()&&n.$searchbox.val("")});this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(n){n.stopPropagation()});this.$searchbox.on("input propertychange",function(){var e=n.$searchbox.val(),i,r,h;if(n.selectpicker.search.elements=[],n.selectpicker.search.data=[],e){var o=[],s=e.toUpperCase(),u={},f=[],y=n._searchStyle(),c=n.options.liveSearchNormalize;for(c&&(s=ht(s)),i=0;i<n.selectpicker.main.data.length;i++)r=n.selectpicker.main.data[i],u[i]||(u[i]=st(r,s,y,c)),u[i]&&void 0!==r.headerIndex&&-1===f.indexOf(r.headerIndex)&&(0<r.headerIndex&&(u[r.headerIndex-1]=!0,f.push(r.headerIndex-1)),u[r.headerIndex]=!0,f.push(r.headerIndex),u[r.lastIndex+1]=!0),u[i]&&"optgroup-label"!==r.type&&f.push(i);for(i=0,h=f.length;i<h;i++){var a=f[i],p=f[i-1],v=(r=n.selectpicker.main.data[a],n.selectpicker.main.data[p]);("divider"!==r.type||"divider"===r.type&&v&&"divider"!==v.type&&h-1!==i)&&(n.selectpicker.search.data.push(r),o.push(n.selectpicker.main.elements[a]))}n.activeIndex=void 0;n.noScroll=!0;n.$menuInner.scrollTop(0);n.selectpicker.search.elements=o;n.createView(!0);o.length||(t.className="no-results",t.innerHTML=n.options.noneResultsText.replace("{0}",'"'+l(e)+'"'),n.$menuInner[0].firstChild.appendChild(t))}else n.$menuInner.scrollTop(0),n.createView(!1)})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(n){var r=this.$element[0],f,u;return void 0===n?this.$element.val():(f=a(r),(s=[null,null,f],this.$element.val(n).trigger("changed"+i,s),this.$newElement.hasClass(t.SHOW))&&(this.multiple?this.setOptionStatus(!0):(u=(r.options[r.selectedIndex]||{}).liIndex,"number"==typeof u&&(this.setSelected(this.selectedIndex,!1),this.setSelected(u,!0)))),this.render(),s=null,this.$element)},changeAll:function(n){var t,u;if(this.multiple){void 0===n&&(n=!0);var i=this.$element[0],f=0,e=0,h=a(i);i.classList.add("bs-select-hidden");for(var r=0,o=this.selectpicker.current.data,c=o.length;r<c;r++)t=o[r],u=t.option,u&&!t.disabled&&"divider"!==t.type&&(t.selected&&f++,!0===(u.selected=n)&&e++);i.classList.remove("bs-select-hidden");f!==e&&(this.setOptionStatus(),s=[null,null,h],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(n){(n=n||window.event)&&n.stopPropagation();this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(i){var u,tt,f,o,a,s=n(this),ft=s.hasClass("dropdown-toggle"),r=(ft?s.closest(".dropdown"):s.closest(yt.MENU)).data("this"),p=r.findLis(),w=!1,it=i.which===b&&!ft&&!r.options.selectOnTab,et=si.test(i.which)||it,nt=r.$menuInner[0].scrollTop,e=!0===r.isVirtual()?r.selectpicker.view.position0:0,h,rt,y,c,g,ut,l;if(!(112<=i.which&&i.which<=123))if((tt=r.$newElement.hasClass(t.SHOW))||!(et||48<=i.which&&i.which<=57||96<=i.which&&i.which<=105||65<=i.which&&i.which<=90)||(r.$button.trigger("click.bs.dropdown.data-api"),!r.options.liveSearch)){if(i.which===at&&tt&&(i.preventDefault(),r.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),et){if(!p.length)return;-1!==(u=(f=r.selectpicker.main.elements[r.activeIndex])?Array.prototype.indexOf.call(f.parentElement.children,f):-1)&&r.defocusItem(f);i.which===k?(-1!==u&&u--,u+e<0&&(u+=p.length),r.selectpicker.view.canHighlight[u+e]||-1==(u=r.selectpicker.view.canHighlight.slice(0,u+e).lastIndexOf(!0)-e)&&(u=p.length-1)):i.which!==d&&!it||(++u+e>=r.selectpicker.view.canHighlight.length&&(u=0),r.selectpicker.view.canHighlight[u+e]||(u=u+1+r.selectpicker.view.canHighlight.slice(u+e+1).indexOf(!0)));i.preventDefault();h=e+u;i.which===k?0===e&&u===p.length-1?(r.$menuInner[0].scrollTop=r.$menuInner[0].scrollHeight,h=r.selectpicker.current.elements.length-1):w=(a=(o=r.selectpicker.current.data[h]).position-o.height)<nt:i.which!==d&&!it||(0===u?h=r.$menuInner[0].scrollTop=0:w=nt<(a=(o=r.selectpicker.current.data[h]).position-r.sizeInfo.menuInnerHeight));f=r.selectpicker.current.elements[h];r.activeIndex=r.selectpicker.current.data[h].index;r.focusItem(f);r.selectpicker.view.currentActive=f;w&&(r.$menuInner[0].scrollTop=a);r.options.liveSearch?r.$searchbox.trigger("focus"):s.trigger("focus")}else if(!s.is("input")&&!hi.test(i.which)||i.which===v&&r.selectpicker.keydown.keyHistory){for(c=[],i.preventDefault(),r.selectpicker.keydown.keyHistory+=ei[i.which],r.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(r.selectpicker.keydown.resetKeyHistory.cancel),r.selectpicker.keydown.resetKeyHistory.cancel=r.selectpicker.keydown.resetKeyHistory.start(),y=r.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(y)&&(y=y.charAt(0)),g=0;g<r.selectpicker.current.data.length;g++)ut=r.selectpicker.current.data[g],st(ut,y,"startsWith",!0)&&r.selectpicker.view.canHighlight[g]&&c.push(ut.index);c.length&&(l=0,p.removeClass("active").find("a").removeClass("active"),1===y.length&&(-1===(l=c.indexOf(r.activeIndex))||l===c.length-1?l=0:l++),rt=c[l],w=0<nt-(o=r.selectpicker.main.data[rt]).position?(a=o.position-o.height,!0):(a=o.position-r.sizeInfo.menuInnerHeight,o.position>nt+r.sizeInfo.menuInnerHeight),f=r.selectpicker.main.elements[rt],r.activeIndex=c[l],r.focusItem(f),f&&f.firstChild.focus(),w&&(r.$menuInner[0].scrollTop=a),s.trigger("focus"))}tt&&(i.which===v&&!r.selectpicker.keydown.keyHistory||i.which===oi||i.which===b&&r.options.selectOnTab)&&(i.which!==v&&i.preventDefault(),r.options.liveSearch&&i.which===v||(r.$menuInner.find(".active a").trigger("click",!0),s.trigger("focus"),r.options.liveSearch||(i.preventDefault(),n(document).data("spaceSelect",!0))))}else r.$searchbox.trigger("focus")},mobile:function(){this.$element[0].classList.add("mobile-device")},refresh:function(){var t=n.extend({},this.options,this.$element.data());this.options=t;this.checkDisabled();this.setStyle();this.render();this.buildData();this.buildList();this.setWidth();this.setSize(!0);this.$element.trigger("refreshed"+i)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove();this.$bsContainer?this.$bsContainer.remove():this.$menu.remove();this.$element.off(i).removeData("selectpicker").removeClass("bs-select-hidden selectpicker");n(window).off(i+"."+this.selectId)}};wt=n.fn.selectpicker;n.fn.selectpicker=pt;n.fn.selectpicker.Constructor=f;n.fn.selectpicker.noConflict=function(){return n.fn.selectpicker=wt,this};g=n.fn.dropdown.Constructor._dataApiKeydownHandler||n.fn.dropdown.Constructor.prototype.keydown;n(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',g).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",g).on("keydown"+i,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',f.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(n){n.stopPropagation()});n(window).on("load"+i+".data-api",function(){n(".selectpicker").each(function(){var t=n(this);pt.call(t,t.data())})})}(n)});!function(n){"use strict";var t=function(t,i){var f=n.fn.typeahead.defaults,r,u;i.scrollBar&&(i.items=100,i.menu='<ul class="typeahead dropdown-menu" style="max-height:220px;overflow:auto;"><\/ul>');i.resultNotFoundMsgBody="<div><p>Sorry! We've got no result for your query<\/p><\/div>";r=this;r.$element=n(t);r.options=n.extend({},n.fn.typeahead.defaults,i);r.$menu=n(r.options.menu).insertAfter(r.$element);r.eventSupported=r.options.eventSupported||r.eventSupported;r.grepper=r.options.grepper||r.grepper;r.highlighter=r.options.highlighter||r.highlighter;r.lookup=r.options.lookup||r.lookup;r.matcher=r.options.matcher||r.matcher;r.render=r.options.render||r.render;r.onSelect=r.options.onSelect||null;r.sorter=r.options.sorter||r.sorter;r.select=r.options.select||r.select;r.source=r.options.source||r.source;r.displayField=r.options.displayField||r.displayField;r.valueField=r.options.valueField||r.valueField;r.autoSelect=r.options.autoSelect||r.autoSelect;r.options.ajax?(u=r.options.ajax,typeof u=="string"?r.ajax=n.extend({},n.fn.typeahead.defaults.ajax,{url:u}):(typeof u.displayField=="string"&&(r.displayField=r.options.displayField=u.displayField),typeof u.valueField=="string"&&(r.valueField=r.options.valueField=u.valueField),r.ajax=n.extend({},n.fn.typeahead.defaults.ajax,u)),r.ajax.url||(r.ajax=null),r.query=""):(r.source=r.options.source,r.ajax=null);r.shown=!1;r.listen()};t.prototype={constructor:t,eventSupported:function(n){var t=n in this.$element;return t||(this.$element.setAttribute(n,"return;"),t=typeof this.$element[n]=="function"),t},select:function(){var i=this.$menu.find(".active"),n,t;if(i.length&&(n=i.data(),t=n.Label,this.$element.val(this.updater(t)).change(),this.options.onSelect))this.options.onSelect({value:n,text:t});return this.hide()},updater:function(n){return n},show:function(){var t=n.extend({},this.$element.position(),{height:this.$element[0].offsetHeight}),i;return this.$menu.css({top:t.top+t.height,left:t.left}),this.options.alignWidth&&(i=n(this.$element[0]).outerWidth(),this.$menu.css({width:i})),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},ajaxLookup:function(){function i(){this.ajaxToggleLoadClass(!0);this.ajax.xhr&&this.ajax.xhr.abort();var i=this.ajax.preDispatch?this.ajax.preDispatch(t):{query:t};this.ajax.xhr=n.ajax({url:this.ajax.url,data:i,success:n.proxy(this.ajaxSource,this),type:this.ajax.method||"get",dataType:"json",headers:this.ajax.headers||{}});this.ajax.timerId=null}var t=n.trim(this.$element.val());return t===this.query?this:(this.query=t,this.ajax.timerId&&(clearTimeout(this.ajax.timerId),this.ajax.timerId=null),!t||t.length<this.ajax.triggerLength)?(this.ajax.xhr&&(this.ajax.xhr.abort(),this.ajax.xhr=null,this.ajaxToggleLoadClass(!1)),this.shown?this.hide():this):(this.ajax.timerId=setTimeout(n.proxy(i,this),this.ajax.timeout),this)},ajaxSource:function(n){this.ajaxToggleLoadClass(!1);var t=this,i;if(t.ajax.xhr)return(t.ajax.preProcess&&(n=t.ajax.preProcess(n)),t.ajax.data=n,i=t.grepper(t.ajax.data)||[],!i.length)?t.shown?t.hide():t:(t.ajax.xhr=null,t.render(i.slice(0,t.options.items)).show())},ajaxToggleLoadClass:function(n){this.ajax.loadingClass&&this.$element.toggleClass(this.ajax.loadingClass,n)},lookup:function(){var n=this,t;if(n.ajax)n.ajaxer();else return(n.query=n.$element.val(),!n.query)?n.shown?n.hide():n:(t=n.grepper(n.source),!t)?n.shown?n.hide():n:t.length==0?(t[0]={id:-21,name:n.options.resultNotFoundMsgBody},n.render(t.slice(0,n.options.items),!1).show()):n.render(t.slice(0,n.options.items)).show()},matcher:function(n){return~n.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(n){if(this.options.ajax)return n;for(var i=[],r=[],u=[],t;t=n.shift();)t.toLowerCase().indexOf(this.query.toLowerCase())?~t.indexOf(this.query)?r.push(t):u.push(t):i.push(t);return i.concat(r,u)},highlighter:function(n){var t=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return n.replace(new RegExp("("+t+")","ig"),function(n,t){return"<strong>"+t+"<\/strong>"})},render:function(t){var i=this,r,u=typeof i.options.displayField=="string";return t=n(t).map(function(t,f){return typeof f=="object"?(r=u?f[i.options.displayField]:i.options.displayField(f),t=n(i.options.item).attr("data-value",f[i.options.valueField])):(r=f,t=n(i.options.item).attr("data-value",f)),t.find("a").html(i.highlighter(r)),t[0]}),i.autoSelect&&t.first().addClass("active"),this.$menu.html(t),this},grepper:function(t){var i=this,r,u,f=typeof i.options.displayField=="string";if(f&&t&&t.length)if(t[0].hasOwnProperty(i.options.displayField))r=n.grep(t,function(n){return u=f?n[i.options.displayField]:i.options.displayField(n),i.matcher(u)});else if(typeof t[0]=="string")r=n.grep(t,function(n){return i.matcher(n)});else return null;else return null;return this.sorter(r)},next:function(){var r=this.$menu.find(".active").removeClass("active"),t=r.next(),i;t.length||(t=n(this.$menu.find("li")[0]));this.options.scrollBar&&(i=this.$menu.children("li").index(t),i%8==0&&this.$menu.scrollTop(i*26));t.addClass("active")},prev:function(){var r=this.$menu.find(".active").removeClass("active"),n=r.prev();if(n.length||(n=this.$menu.find("li").last()),this.options.scrollBar){var t=this.$menu.children("li"),u=t.length-1,i=t.index(n);(u-i)%8==0&&this.$menu.scrollTop((i-7)*26)}n.addClass("active")},listen:function(){this.$element.on("focus",n.proxy(this.focus,this)).on("blur",n.proxy(this.blur,this)).on("keypress",n.proxy(this.keypress,this)).on("keyup",n.proxy(this.keyup,this));if(this.eventSupported("keydown"))this.$element.on("keydown",n.proxy(this.keydown,this));this.$menu.on("click",n.proxy(this.click,this)).on("mouseenter","li",n.proxy(this.mouseenter,this)).on("mouseleave","li",n.proxy(this.mouseleave,this))},move:function(n){if(this.shown){switch(n.keyCode){case 9:case 13:case 27:n.preventDefault();break;case 38:n.preventDefault();this.prev();break;case 40:n.preventDefault();this.next()}n.stopPropagation()}},keydown:function(t){this.suppressKeyPressRepeat=~n.inArray(t.keyCode,[40,38,9,13,27]);this.move(t)},keypress:function(n){this.suppressKeyPressRepeat||this.move(n)},keyup:function(n){switch(n.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.ajax?this.ajaxLookup():this.lookup()}n.stopPropagation();n.preventDefault()},focus:function(){this.focused=!0},blur:function(){this.focused=!1;!this.mousedover&&this.shown&&this.hide()},click:function(n){n.stopPropagation();n.preventDefault();this.select();this.$element.focus()},mouseenter:function(t){this.mousedover=!0;this.$menu.find(".active").removeClass("active");n(t.currentTarget).addClass("active")},mouseleave:function(){this.mousedover=!1;!this.focused&&this.shown&&this.hide()},destroy:function(){this.$element.off("focus",n.proxy(this.focus,this)).off("blur",n.proxy(this.blur,this)).off("keypress",n.proxy(this.keypress,this)).off("keyup",n.proxy(this.keyup,this));this.eventSupported("keydown")&&this.$element.off("keydown",n.proxy(this.keydown,this));this.$menu.off("click",n.proxy(this.click,this)).off("mouseenter","li",n.proxy(this.mouseenter,this)).off("mouseleave","li",n.proxy(this.mouseleave,this));this.$element.removeData("typeahead")}};n.fn.typeahead=function(i){return this.each(function(){var u=n(this),r=u.data("typeahead"),f=typeof i=="object"&&i;r||u.data("typeahead",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.typeahead.defaults={source:[],items:10,scrollBar:!1,alignWidth:!0,menu:'<ul class="typeahead dropdown-menu"><\/ul>',item:'<li><a href="#"><\/a><\/li>',valueField:"id",displayField:"name",autoSelect:!0,onSelect:function(){},ajax:{url:null,timeout:300,method:"get",triggerLength:1,loadingClass:null,preDispatch:null,preProcess:null}};n.fn.typeahead.Constructor=t;n(function(){n("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var i=n(this);i.data("typeahead")||(t.preventDefault(),i.typeahead(i.data()))})})}(window.jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],function(t){n(t,window,document)}):typeof module=="object"&&module.exports?module.exports=n(require("jquery"),window,document):n(jQuery,window,document)}(function(n,t,i,r){"use strict";function h(t,i){this.telInput=n(t);this.options=n.extend({},c,i);this.ns="."+u+l++;this.isGoodBrowser=Boolean(t.setSelectionRange);this.hadInitialPlaceholder=Boolean(n(t).attr("placeholder"))}var u="intlTelInput",l=1,c={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customPlaceholder:null,dropdownContainer:"",excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},f={UP:38,DOWN:40,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9},a=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],e,s,o;n(t).on("load",function(){n.fn[u].windowLoaded=!0});for(h.prototype={_init:function(){return this.options.nationalMode&&(this.options.autoHideDialCode=!1),this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(n("body").addClass("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer="body")),this.autoCountryDeferred=new n.Deferred,this.utilsScriptDeferred=new n.Deferred,this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests(),[this.autoCountryDeferred,this.utilsScriptDeferred]},_processCountryData:function(){this._processAllCountries();this._processCountryCodes();this._processPreferredCountries()},_addCountryCode:function(n,t,i){t in this.countryCodes||(this.countryCodes[t]=[]);var r=i||0;this.countryCodes[t][r]=n},_processAllCountries:function(){var n,t;this.options.onlyCountries.length?(n=this.options.onlyCountries.map(function(n){return n.toLowerCase()}),this.countries=e.filter(function(t){return n.indexOf(t.iso2)>-1})):this.options.excludeCountries.length?(t=this.options.excludeCountries.map(function(n){return n.toLowerCase()}),this.countries=e.filter(function(n){return t.indexOf(n.iso2)===-1})):this.countries=e},_processCountryCodes:function(){var t,n,i;for(this.countryCodes={},t=0;t<this.countries.length;t++)if(n=this.countries[t],this._addCountryCode(n.iso2,n.dialCode,n.priority),n.areaCodes)for(i=0;i<n.areaCodes.length;i++)this._addCountryCode(n.iso2,n.dialCode+n.areaCodes[i])},_processPreferredCountries:function(){var n,i,t;for(this.preferredCountries=[],n=0;n<this.options.preferredCountries.length;n++)i=this.options.preferredCountries[n].toLowerCase(),t=this._getCountryData(i,!1,!0),t&&this.preferredCountries.push(t)},_generateMarkup:function(){var i,t;this.telInput.attr("autocomplete","off");i="intl-tel-input";this.options.allowDropdown&&(i+=" allow-dropdown");this.options.separateDialCode&&(i+=" separate-dial-code");this.telInput.wrap(n("<div>",{"class":i}));this.flagsContainer=n("<div>",{"class":"flag-container"}).insertBefore(this.telInput);t=n("<div>",{"class":"selected-flag"});t.appendTo(this.flagsContainer);this.selectedFlagInner=n("<div>",{"class":"iti-flag"}).appendTo(t);this.options.separateDialCode&&(this.selectedDialCode=n("<div>",{"class":"selected-dial-code"}).appendTo(t));this.options.allowDropdown?(t.attr("tabindex","0"),n("<div>",{"class":"iti-arrow"}).appendTo(t),this.countryList=n("<ul>",{"class":"country-list hide"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"preferred"),n("<li>",{"class":"divider"}).appendTo(this.countryList)),this._appendListItems(this.countries,""),this.countryListItems=this.countryList.children(".country"),this.options.dropdownContainer?this.dropdown=n("<div>",{"class":"intl-tel-input iti-container"}).append(this.countryList):this.countryList.appendTo(this.flagsContainer)):this.countryListItems=n();this.options.hiddenInput&&(this.hiddenInput=n("<input>",{type:"hidden",name:this.options.hiddenInput}).insertBefore(this.telInput))},_appendListItems:function(n,t){for(var r,i="",u=0;u<n.length;u++)r=n[u],i+="<li class='country "+t+"' data-dial-code='"+r.dialCode+"' data-country-code='"+r.iso2+"'>",i+="<div class='flag-box'><div class='iti-flag "+r.iso2+"'><\/div><\/div>",i+="<span class='country-name'>"+r.name+"<\/span>",i+="<span class='dial-code'>+"+r.dialCode+"<\/span>",i+="<\/li>";this.countryList.append(i)},_setInitialState:function(){var n=this.telInput.val();this._getDialCode(n)&&(!this._isRegionlessNanp(n)||this.options.nationalMode&&!this.options.initialCountry)?this._updateFlagFromNumber(n):this.options.initialCountry!=="auto"&&(this.options.initialCountry?this._setFlag(this.options.initialCountry.toLowerCase()):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,n||this._setFlag(this.defaultCountry)),n||this.options.nationalMode||this.options.autoHideDialCode||this.options.separateDialCode||this.telInput.val("+"+this.selectedCountryData.dialCode));n&&this._updateValFromNumber(n)},_initListeners:function(){this._initKeyListeners();this.options.autoHideDialCode&&this._initFocusListeners();this.options.allowDropdown&&this._initDropdownListeners();this.hiddenInput&&this._initHiddenInputListener()},_initHiddenInputListener:function(){var n=this,t=this.telInput.closest("form");t.length&&t.submit(function(){n.hiddenInput.val(n.getNumber())})},_initDropdownListeners:function(){var n=this,t=this.telInput.closest("label"),i;if(t.length)t.on("click"+this.ns,function(t){n.countryList.hasClass("hide")?n.telInput.focus():t.preventDefault()});i=this.selectedFlagInner.parent();i.on("click"+this.ns,function(){!n.countryList.hasClass("hide")||n.telInput.prop("disabled")||n.telInput.prop("readonly")||n._showDropdown()});this.flagsContainer.on("keydown"+n.ns,function(t){var i=n.countryList.hasClass("hide");i&&(t.which==f.UP||t.which==f.DOWN||t.which==f.SPACE||t.which==f.ENTER)&&(t.preventDefault(),t.stopPropagation(),n._showDropdown());t.which==f.TAB&&n._closeDropdown()})},_initRequests:function(){var i=this;if(this.options.utilsScript)if(n.fn[u].windowLoaded)n.fn[u].loadUtils(this.options.utilsScript,this.utilsScriptDeferred);else n(t).on("load",function(){n.fn[u].loadUtils(i.options.utilsScript,i.utilsScriptDeferred)});else this.utilsScriptDeferred.resolve();this.options.initialCountry==="auto"?this._loadAutoCountry():this.autoCountryDeferred.resolve()},_loadAutoCountry:function(){var t=this;n.fn[u].autoCountry?this.handleAutoCountry():n.fn[u].startedLoadingAutoCountry||(n.fn[u].startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup(function(t){n.fn[u].autoCountry=t.toLowerCase();setTimeout(function(){n(".intl-tel-input input").intlTelInput("handleAutoCountry")})}))},_initKeyListeners:function(){var n=this;this.telInput.on("keyup"+this.ns,function(){n._updateFlagFromNumber(n.telInput.val())&&n._triggerCountryChange()});this.telInput.on("cut"+this.ns+" paste"+this.ns,function(){setTimeout(function(){n._updateFlagFromNumber(n.telInput.val())&&n._triggerCountryChange()})})},_cap:function(n){var t=this.telInput.attr("maxlength");return t&&n.length>t?n.substr(0,t):n},_initFocusListeners:function(){var t=this,i;this.telInput.on("mousedown"+this.ns,function(n){t.telInput.is(":focus")||t.telInput.val()||(n.preventDefault(),t.telInput.focus())});this.telInput.on("focus"+this.ns,function(){if(!t.telInput.val()&&!t.telInput.prop("readonly")&&t.selectedCountryData.dialCode){t.telInput.val("+"+t.selectedCountryData.dialCode);t.telInput.one("keypress.plus"+t.ns,function(n){n.which==f.PLUS&&t.telInput.val("")});setTimeout(function(){var i=t.telInput[0],n;t.isGoodBrowser&&(n=t.telInput.val().length,i.setSelectionRange(n,n))})}});if(i=this.telInput.prop("form"),i)n(i).on("submit"+this.ns,function(){t._removeEmptyDialCode()});this.telInput.on("blur"+this.ns,function(){t._removeEmptyDialCode()})},_removeEmptyDialCode:function(){var t=this.telInput.val(),i=t.charAt(0)=="+",n;i&&(n=this._getNumeric(t),n&&this.selectedCountryData.dialCode!=n||this.telInput.val(""));this.telInput.off("keypress.plus"+this.ns)},_getNumeric:function(n){return n.replace(/\D/g,"")},_showDropdown:function(){this._setDropdownPosition();var n=this.countryList.children(".active");n.length&&(this._highlightListItem(n),this._scrollTo(n));this._bindDropdownListeners();this.selectedFlagInner.children(".iti-arrow").addClass("up");this.telInput.trigger("open:countrydropdown")},_setDropdownPosition:function(){var s=this,o;if(this.options.dropdownContainer&&this.dropdown.appendTo(this.options.dropdownContainer),this.dropdownHeight=this.countryList.removeClass("hide").outerHeight(),!this.isMobile){var r=this.telInput.offset(),i=r.top,u=n(t).scrollTop(),f=i+this.telInput.outerHeight()+this.dropdownHeight<u+n(t).height(),e=i-this.dropdownHeight>u;if(this.countryList.toggleClass("dropup",!f&&e),this.options.dropdownContainer){o=!f&&e?0:this.telInput.innerHeight();this.dropdown.css({top:i+o,left:r.left});n(t).on("scroll"+this.ns,function(){s._closeDropdown()})}}},_bindDropdownListeners:function(){var t=this,e,r,u;this.countryList.on("mouseover"+this.ns,".country",function(){t._highlightListItem(n(this))});this.countryList.on("click"+this.ns,".country",function(){t._selectListItem(n(this))});e=!0;n("html").on("click"+this.ns,function(){e||t._closeDropdown();e=!1});r="";u=null;n(i).on("keydown"+this.ns,function(n){n.preventDefault();n.which==f.UP||n.which==f.DOWN?t._handleUpDownKey(n.which):n.which==f.ENTER?t._handleEnterKey():n.which==f.ESC?t._closeDropdown():(n.which>=f.A&&n.which<=f.Z||n.which==f.SPACE)&&(u&&clearTimeout(u),r+=String.fromCharCode(n.which),t._searchForCountry(r),u=setTimeout(function(){r=""},1e3))})},_handleUpDownKey:function(n){var i=this.countryList.children(".highlight").first(),t=n==f.UP?i.prev():i.next();t.length&&(t.hasClass("divider")&&(t=n==f.UP?t.prev():t.next()),this._highlightListItem(t),this._scrollTo(t))},_handleEnterKey:function(){var n=this.countryList.children(".highlight").first();n.length&&this._selectListItem(n)},_searchForCountry:function(n){for(var i,t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,n)){i=this.countryList.children("[data-country-code="+this.countries[t].iso2+"]").not(".preferred");this._highlightListItem(i);this._scrollTo(i,!0);break}},_startsWith:function(n,t){return n.substr(0,t.length).toUpperCase()==t},_updateValFromNumber:function(n){if(this.options.formatOnDisplay&&t.intlTelInputUtils&&this.selectedCountryData){var i=!this.options.separateDialCode&&(this.options.nationalMode||n.charAt(0)!="+")?intlTelInputUtils.numberFormat.NATIONAL:intlTelInputUtils.numberFormat.INTERNATIONAL;n=intlTelInputUtils.formatNumber(n,this.selectedCountryData.iso2,i)}n=this._beforeSetNumber(n);this.telInput.val(n)},_updateFlagFromNumber:function(t){var r;t&&this.options.nationalMode&&this.selectedCountryData.dialCode=="1"&&t.charAt(0)!="+"&&(t.charAt(0)!="1"&&(t="1"+t),t="+"+t);var f=this._getDialCode(t),i=null,e=this._getNumeric(t);if(f){var u=this.countryCodes[this._getNumeric(f)],o=n.inArray(this.selectedCountryData.iso2,u)>-1,s=f=="+1"&&e.length>=4,h=this.selectedCountryData.dialCode=="1";if(!(h&&this._isRegionlessNanp(e))&&(!o||s))for(r=0;r<u.length;r++)if(u[r]){i=u[r];break}}else t.charAt(0)=="+"&&e.length?i="":t&&t!="+"||(i=this.defaultCountry);return i!==null?this._setFlag(i):!1},_isRegionlessNanp:function(t){var i=this._getNumeric(t),r;return i.charAt(0)=="1"?(r=i.substr(1,3),n.inArray(r,a)>-1):!1},_highlightListItem:function(n){this.countryListItems.removeClass("highlight");n.addClass("highlight")},_getCountryData:function(n,t,i){for(var u=t?e:this.countries,r=0;r<u.length;r++)if(u[r].iso2==n)return u[r];if(i)return null;throw new Error("No country data for '"+n+"'");},_setFlag:function(n){var i=this.selectedCountryData.iso2?this.selectedCountryData:{},u,t,r;return this.selectedCountryData=n?this._getCountryData(n,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.attr("class","iti-flag "+n),u=n?this.selectedCountryData.name+": +"+this.selectedCountryData.dialCode:"Unknown",this.selectedFlagInner.parent().attr("title",u),this.options.separateDialCode&&(t=this.selectedCountryData.dialCode?"+"+this.selectedCountryData.dialCode:"",r=this.telInput.parent(),i.dialCode&&r.removeClass("iti-sdc-"+(i.dialCode.length+1)),t&&r.addClass("iti-sdc-"+t.length),this.selectedDialCode.text(t)),this._updatePlaceholder(),this.countryListItems.removeClass("active"),n&&this.countryListItems.find(".iti-flag."+n).first().closest(".country").addClass("active"),i.iso2!==n},_updatePlaceholder:function(){var r=this.options.autoPlaceholder==="aggressive"||!this.hadInitialPlaceholder&&(this.options.autoPlaceholder===!0||this.options.autoPlaceholder==="polite"),i,n;t.intlTelInputUtils&&r&&(i=intlTelInputUtils.numberType[this.options.placeholderNumberType],n=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,i):"",n=this._beforeSetNumber(n),typeof this.options.customPlaceholder=="function"&&(n=this.options.customPlaceholder(n,this.selectedCountryData)),this.telInput.attr("placeholder",n))},_selectListItem:function(n){var i=this._setFlag(n.attr("data-country-code")),t;this._closeDropdown();this._updateDialCode(n.attr("data-dial-code"),!0);this.telInput.focus();this.isGoodBrowser&&(t=this.telInput.val().length,this.telInput[0].setSelectionRange(t,t));i&&this._triggerCountryChange()},_closeDropdown:function(){this.countryList.addClass("hide");this.selectedFlagInner.children(".iti-arrow").removeClass("up");n(i).off(this.ns);n("html").off(this.ns);this.countryList.off(this.ns);this.options.dropdownContainer&&(this.isMobile||n(t).off("scroll"+this.ns),this.dropdown.detach());this.telInput.trigger("close:countrydropdown")},_scrollTo:function(n,t){var i=this.countryList,u=i.height(),f=i.offset().top,c=f+u,e=n.outerHeight(),o=n.offset().top,l=o+e,r=o-f+i.scrollTop(),s=u/2-e/2,h;o<f?(t&&(r-=s),i.scrollTop(r)):l>c&&(t&&(r+=s),h=u-e,i.scrollTop(r-h))},_updateDialCode:function(n,t){var i=this.telInput.val(),r,u;if(n="+"+n,i.charAt(0)=="+")u=this._getDialCode(i),r=u?i.replace(u,n):n;else{if(this.options.nationalMode||this.options.separateDialCode)return;if(i)r=n+i;else if(t||!this.options.autoHideDialCode)r=n;else return}this.telInput.val(r)},_getDialCode:function(t){var f="",r,i,u;if(t.charAt(0)=="+")for(r="",i=0;i<t.length;i++)if(u=t.charAt(i),n.isNumeric(u)&&(r+=u,this.countryCodes[r]&&(f=t.substr(0,i+1)),r.length==4))break;return f},_getFullNumber:function(){var i=n.trim(this.telInput.val()),t=this.selectedCountryData.dialCode,u,r=this._getNumeric(i),f=r.charAt(0)=="1"?r:"1"+r;return u=this.options.separateDialCode?"+"+t:i.charAt(0)!="+"&&i.charAt(0)!="1"&&t&&t.charAt(0)=="1"&&t.length==4&&t!=f.substr(0,4)?t.substr(1):"",u+i},_beforeSetNumber:function(n){var t,i;return this.options.separateDialCode&&(t=this._getDialCode(n),t&&(this.selectedCountryData.areaCodes!==null&&(t="+"+this.selectedCountryData.dialCode),i=n[t.length]===" "||n[t.length]==="-"?t.length+1:t.length,n=n.substr(i))),this._cap(n)},_triggerCountryChange:function(){this.telInput.trigger("countrychange",this.selectedCountryData)},handleAutoCountry:function(){this.options.initialCountry==="auto"&&(this.defaultCountry=n.fn[u].autoCountry,this.telInput.val()||this.setCountry(this.defaultCountry),this.autoCountryDeferred.resolve())},handleUtils:function(){t.intlTelInputUtils&&(this.telInput.val()&&this._updateValFromNumber(this.telInput.val()),this._updatePlaceholder());this.utilsScriptDeferred.resolve()},destroy:function(){var t,i;this.allowDropdown&&(this._closeDropdown(),this.selectedFlagInner.parent().off(this.ns),this.telInput.closest("label").off(this.ns));this.options.autoHideDialCode&&(t=this.telInput.prop("form"),t&&n(t).off(this.ns));this.telInput.off(this.ns);i=this.telInput.parent();i.before(this.telInput).remove()},getExtension:function(){return t.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""},getNumber:function(n){return t.intlTelInputUtils?intlTelInputUtils.formatNumber(this._getFullNumber(),this.selectedCountryData.iso2,n):""},getNumberType:function(){return t.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99},getSelectedCountryData:function(){return this.selectedCountryData},getValidationError:function(){return t.intlTelInputUtils?intlTelInputUtils.getValidationError(this._getFullNumber(),this.selectedCountryData.iso2):-99},isValidNumber:function(){var i=n.trim(this._getFullNumber()),r=this.options.nationalMode?this.selectedCountryData.iso2:"";return t.intlTelInputUtils?intlTelInputUtils.isValidNumber(i,r):null},setCountry:function(n){n=n.toLowerCase();this.selectedFlagInner.hasClass(n)||(this._setFlag(n),this._updateDialCode(this.selectedCountryData.dialCode,!1),this._triggerCountryChange())},setNumber:function(n){var t=this._updateFlagFromNumber(n);this._updateValFromNumber(n);t&&this._triggerCountryChange()}},n.fn[u]=function(t){var e=arguments,i,f;return t===r||typeof t=="object"?(i=[],this.each(function(){if(!n.data(this,"plugin_"+u)){var r=new h(this,t),f=r._init();i.push(f[0]);i.push(f[1]);n.data(this,"plugin_"+u,r)}}),n.when.apply(null,i)):typeof t=="string"&&t[0]!=="_"?(this.each(function(){var i=n.data(this,"plugin_"+u);i instanceof h&&typeof i[t]=="function"&&(f=i[t].apply(i,Array.prototype.slice.call(e,1)));t==="destroy"&&n.data(this,"plugin_"+u,null)}),f!==r?f:this):void 0},n.fn[u].getCountryData=function(){return e},n.fn[u].loadUtils=function(t,i){n.fn[u].loadedUtilsScript?i&&i.resolve():(n.fn[u].loadedUtilsScript=!0,n.ajax({type:"GET",url:t,complete:function(){n(".intl-tel-input input").intlTelInput("handleUtils")},dataType:"script",cache:!0}))},n.fn[u].defaults=c,n.fn[u].version="12.0.3",e=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1246"],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1876"],["Japan (日本)","jp","81"],["Jersey","je","44",3],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1]],s=0;s<e.length;s++)o=e[s],e[s]={name:o[0],iso2:o[1],dialCode:o[2],priority:o[3]||0,areaCodes:o[4]||null}});!function(n){"function"==typeof define&&define.amd?define(["jquery"],function(t){n(t,window,document)}):n(jQuery,window,document)}(function(n,t,i,r){"use strict";function o(t,i){this.element=t;this.options=n.extend({},s,i);this._defaults=s;this.ns="."+u+h++;this._name=u;this.init()}var u="countrySelect",h=1,s={defaultCountry:"",defaultStyling:"inside",excludeCountries:[],onlyCountries:[],preferredCountries:["us","gb"],responsiveDropdown:n(t).width()<768},e=38,c=40,l=13,a=27,v=65,y=90,f;n(t).on("load",function(){!0});o.prototype={init:function(){return this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this.autoCountryDeferred=new n.Deferred,this._initAutoCountry(),this.autoCountryDeferred},_processCountryData:function(){this._setInstanceCountryData();this._setPreferredCountries()},_setInstanceCountryData:function(){var r=this,t,i;this.options.onlyCountries.length?(t=[],n.each(this.options.onlyCountries,function(n,i){var u=r._getCountryData(i,!0);u&&t.push(u)}),this.countries=t):this.options.excludeCountries.length?(i=this.options.excludeCountries.map(function(n){return n.toLowerCase()}),this.countries=f.filter(function(n){return-1===i.indexOf(n.iso2)})):this.countries=f},_setPreferredCountries:function(){var t=this;this.preferredCountries=[];n.each(this.options.preferredCountries,function(n,i){var r=t._getCountryData(i,!1);r&&t.preferredCountries.push(r)})},_generateMarkup:function(){var i,r,u;this.countryInput=n(this.element);i="country-select";this.options.defaultStyling&&(i+=" "+this.options.defaultStyling);this.countryInput.wrap(n("<div>",{"class":i}));r=n("<div>",{"class":"flag-dropdown"}).insertAfter(this.countryInput);u=n("<div>",{"class":"selected-flag"}).appendTo(r);this.selectedFlagInner=n("<div>",{"class":"flag"}).appendTo(u);n("<div>",{"class":"arrow"}).appendTo(u);this.countryList=n("<ul>",{"class":"country-list v-hide"}).appendTo(r);this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"preferred"),n("<li>",{"class":"divider"}).appendTo(this.countryList));this._appendListItems(this.countries,"");this.countryCodeInput=n("#"+this.countryInput.attr("id")+"_code");this.countryCodeInput||(this.countryCodeInput=n('<input type="hidden" id="'+this.countryInput.attr("id")+'_code" name="'+this.countryInput.attr("name")+'_code" value="" />'),this.countryCodeInput.insertAfter(this.countryInput));this.dropdownHeight=this.countryList.outerHeight();this.options.responsiveDropdown&&n(t).resize(function(){n(".country-select").each(function(){var t=this.offsetWidth;n(this).find(".country-list").css("width",t+"px")})}).resize();this.countryList.removeClass("v-hide").addClass("hide");this.countryListItems=this.countryList.children(".country")},_appendListItems:function(t,i){var r="";n.each(t,function(n,t){r+='<li class="country '+i+'" data-country-code="'+t.iso2+'">';r+='<div class="flag '+t.iso2+'"><\/div>';r+='<span class="country-name">'+t.name+"<\/span>";r+="<\/li>"});this.countryList.append(r)},_setInitialState:function(){var i=!1,n,t;this.countryInput.val()&&(i=this._updateFlagFromInputVal());t=this.countryCodeInput.val();(t&&this.selectCountry(t),i)||(this.options.defaultCountry&&(n=this._getCountryData(this.options.defaultCountry,!1))||(n=this.preferredCountries.length?this.preferredCountries[0]:this.countries[0]),this.defaultCountry=n.iso2)},_initListeners:function(){var n=this;this.countryInput.on("keyup"+this.ns,function(){n._updateFlagFromInputVal()});this.selectedFlagInner.parent().on("click"+this.ns,function(){n.countryList.hasClass("hide")&&!n.countryInput.prop("disabled")&&n._showDropdown()});this.countryInput.on("blur"+this.ns,function(){n.countryInput.val()!=n.getSelectedCountryData().name&&n.setCountry(n.countryInput.val());n.countryInput.val(n.getSelectedCountryData().name)})},_initAutoCountry:function(){"auto"===this.options.initialCountry?this._loadAutoCountry():(this.defaultCountry&&this.selectCountry(this.defaultCountry),this.autoCountryDeferred.resolve())},_loadAutoCountry:function(){n.fn[u].autoCountry?this.handleAutoCountry():n.fn[u].startedLoadingAutoCountry||(n.fn[u].startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup(function(t){n.fn[u].autoCountry=t.toLowerCase();setTimeout(function(){n(".country-select input").countrySelect("handleAutoCountry")})}))},_focus:function(){var n,t;this.countryInput.focus();n=this.countryInput[0];n.setSelectionRange&&(t=this.countryInput.val().length,n.setSelectionRange(t,t))},_showDropdown:function(){this._setDropdownPosition();var n=this.countryList.children(".active");this._highlightListItem(n);this.countryList.removeClass("hide");this._scrollTo(n);this._bindDropdownListeners();this.selectedFlagInner.parent().children(".arrow").addClass("up")},_setDropdownPosition:function(){var i=this.countryInput.offset().top,r=n(t).scrollTop(),u=i+this.countryInput.outerHeight()+this.dropdownHeight<r+n(t).height(),f=i-this.dropdownHeight>r,e=!u&&f?"-"+(this.dropdownHeight-1)+"px":"";this.countryList.css("top",e)},_bindDropdownListeners:function(){var t=this,r;this.countryList.on("mouseover"+this.ns,".country",function(){t._highlightListItem(n(this))});this.countryList.on("click"+this.ns,".country",function(){t._selectListItem(n(this))});r=!0;n("html").on("click"+this.ns,function(){r||t._closeDropdown();r=!1});n(i).on("keydown"+this.ns,function(n){n.preventDefault();n.which==e||n.which==c?t._handleUpDownKey(n.which):n.which==l?t._handleEnterKey():n.which==a?t._closeDropdown():n.which>=v&&n.which<=y&&t._handleLetterKey(n.which)})},_handleUpDownKey:function(n){var i=this.countryList.children(".highlight").first(),t=n==e?i.prev():i.next();t.length&&(t.hasClass("divider")&&(t=n==e?t.prev():t.next()),this._highlightListItem(t),this._scrollTo(t))},_handleEnterKey:function(){var n=this.countryList.children(".highlight").first();n.length&&this._selectListItem(n)},_handleLetterKey:function(t){var f=String.fromCharCode(t),r=this.countryListItems.filter(function(){return n(this).text().charAt(0)==f&&!n(this).hasClass("preferred")}),u,i;r.length&&(i=r.filter(".highlight").first(),u=i&&i.next()&&i.next().text().charAt(0)==f?i.next():r.first(),this._highlightListItem(u),this._scrollTo(u))},_updateFlagFromInputVal:function(){var f=this,u=this.countryInput.val().replace(/(?=[() ])/g,"\\"),r;if(u){for(var t=[],e=new RegExp("^"+u,"i"),i=0;i<this.countries.length;i++)this.countries[i].name.match(e)&&t.push(this.countries[i].iso2);return r=!1,n.each(t,function(n,t){f.selectedFlagInner.hasClass(t)&&(r=!0)}),r||(this._selectFlag(t[0]),this.countryCodeInput.val(t[0]).trigger("change")),!0}return!1},_highlightListItem:function(n){this.countryListItems.removeClass("highlight");n.addClass("highlight")},_getCountryData:function(n,t){for(var r=t?f:this.countries,i=0;i<r.length;i++)if(r[i].iso2==n)return r[i];return null},_selectFlag:function(n){var t,i;if(!n)return!1;this.selectedFlagInner.attr("class","flag "+n);t=this._getCountryData(n);this.selectedFlagInner.parent().attr("title",t.name);i=this.countryListItems.children(".flag."+n).first().parent();this.countryListItems.removeClass("active");i.addClass("active")},_selectListItem:function(n){var t=n.attr("data-country-code");this._selectFlag(t);this._closeDropdown();this._updateName(t);this.countryInput.trigger("change");this.countryCodeInput.trigger("change");this._focus()},_closeDropdown:function(){this.countryList.addClass("hide");this.selectedFlagInner.parent().children(".arrow").removeClass("up");n(i).off("keydown"+this.ns);n("html").off("click"+this.ns);this.countryList.off(this.ns)},_scrollTo:function(n){var o;if(n&&n.offset()){var t=this.countryList,u=t.height(),i=t.offset().top,s=i+u,f=n.outerHeight(),r=n.offset().top,h=r+f,e=r-i+t.scrollTop();r<i?t.scrollTop(e):h>s&&(o=u-f,t.scrollTop(e-o))}},_updateName:function(n){this.countryCodeInput.val(n).trigger("change");this.countryInput.val(this._getCountryData(n).name)},handleAutoCountry:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=n.fn[u].autoCountry,this.countryInput.val()||this.selectCountry(this.defaultCountry),this.autoCountryDeferred.resolve())},getSelectedCountryData:function(){var n=this.selectedFlagInner.attr("class").split(" ")[1];return this._getCountryData(n)},selectCountry:function(n){n=n.toLowerCase();this.selectedFlagInner.hasClass(n)||(this._selectFlag(n),this._updateName(n))},setCountry:function(n){this.countryInput.val(n);this._updateFlagFromInputVal()},destroy:function(){this.countryInput.off(this.ns);this.selectedFlagInner.parent().off(this.ns);this.countryInput.parent().before(this.countryInput).remove()}};n.fn[u]=function(t){var i,f=arguments;return t===r||"object"==typeof t?this.each(function(){n.data(this,"plugin_"+u)||n.data(this,"plugin_"+u,new o(this,t))}):"string"==typeof t&&"_"!==t[0]&&"init"!==t?(this.each(function(){var r=n.data(this,"plugin_"+u);r instanceof o&&"function"==typeof r[t]&&(i=r[t].apply(r,Array.prototype.slice.call(f,1)));"destroy"===t&&n.data(this,"plugin_"+u,null)}),i!==r?i:this):void 0};n.fn[u].getCountryData=function(){return f};n.fn[u].setCountryData=function(n){f=n};f=n.each([{n:"Afghanistan (‫افغانستان‬‎)",i:"af"},{n:"Åland Islands (Åland)",i:"ax"},{n:"Albania (Shqipëri)",i:"al"},{n:"Algeria (‫الجزائر‬‎)",i:"dz"},{n:"American Samoa",i:"as"},{n:"Andorra",i:"ad"},{n:"Angola",i:"ao"},{n:"Anguilla",i:"ai"},{n:"Antigua and Barbuda",i:"ag"},{n:"Argentina",i:"ar"},{n:"Armenia (Հայաստան)",i:"am"},{n:"Aruba",i:"aw"},{n:"Australia",i:"au"},{n:"Austria (Österreich)",i:"at"},{n:"Azerbaijan (Azərbaycan)",i:"az"},{n:"Bahamas",i:"bs"},{n:"Bahrain (‫البحرين‬‎)",i:"bh"},{n:"Bangladesh (বাংলাদেশ)",i:"bd"},{n:"Barbados",i:"bb"},{n:"Belarus (Беларусь)",i:"by"},{n:"Belgium (België)",i:"be"},{n:"Belize",i:"bz"},{n:"Benin (Bénin)",i:"bj"},{n:"Bermuda",i:"bm"},{n:"Bhutan (འབྲུག)",i:"bt"},{n:"Bolivia",i:"bo"},{n:"Bosnia and Herzegovina (Босна и Херцеговина)",i:"ba"},{n:"Botswana",i:"bw"},{n:"Brazil (Brasil)",i:"br"},{n:"British Indian Ocean Territory",i:"io"},{n:"British Virgin Islands",i:"vg"},{n:"Brunei",i:"bn"},{n:"Bulgaria (България)",i:"bg"},{n:"Burkina Faso",i:"bf"},{n:"Burundi (Uburundi)",i:"bi"},{n:"Cambodia (កម្ពុជា)",i:"kh"},{n:"Cameroon (Cameroun)",i:"cm"},{n:"Canada",i:"ca"},{n:"Cape Verde (Kabu Verdi)",i:"cv"},{n:"Caribbean Netherlands",i:"bq"},{n:"Cayman Islands",i:"ky"},{n:"Central African Republic (République Centrafricaine)",i:"cf"},{n:"Chad (Tchad)",i:"td"},{n:"Chile",i:"cl"},{n:"China (中国)",i:"cn"},{n:"Christmas Island",i:"cx"},{n:"Cocos (Keeling) Islands (Kepulauan Cocos (Keeling))",i:"cc"},{n:"Colombia",i:"co"},{n:"Comoros (‫جزر القمر‬‎)",i:"km"},{n:"Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)",i:"cd"},{n:"Congo (Republic) (Congo-Brazzaville)",i:"cg"},{n:"Cook Islands",i:"ck"},{n:"Costa Rica",i:"cr"},{n:"Côte d’Ivoire",i:"ci"},{n:"Croatia (Hrvatska)",i:"hr"},{n:"Cuba",i:"cu"},{n:"Curaçao",i:"cw"},{n:"Cyprus (Κύπρος)",i:"cy"},{n:"Czech Republic (Česká republika)",i:"cz"},{n:"Denmark (Danmark)",i:"dk"},{n:"Djibouti",i:"dj"},{n:"Dominica",i:"dm"},{n:"Dominican Republic (República Dominicana)",i:"do"},{n:"Ecuador",i:"ec"},{n:"Egypt (‫مصر‬‎)",i:"eg"},{n:"El Salvador",i:"sv"},{n:"Equatorial Guinea (Guinea Ecuatorial)",i:"gq"},{n:"Eritrea",i:"er"},{n:"Estonia (Eesti)",i:"ee"},{n:"Ethiopia",i:"et"},{n:"Falkland Islands (Islas Malvinas)",i:"fk"},{n:"Faroe Islands (Føroyar)",i:"fo"},{n:"Fiji",i:"fj"},{n:"Finland (Suomi)",i:"fi"},{n:"France",i:"fr"},{n:"French Guiana (Guyane française)",i:"gf"},{n:"French Polynesia (Polynésie française)",i:"pf"},{n:"Gabon",i:"ga"},{n:"Gambia",i:"gm"},{n:"Georgia (საქართველო)",i:"ge"},{n:"Germany (Deutschland)",i:"de"},{n:"Ghana (Gaana)",i:"gh"},{n:"Gibraltar",i:"gi"},{n:"Greece (Ελλάδα)",i:"gr"},{n:"Greenland (Kalaallit Nunaat)",i:"gl"},{n:"Grenada",i:"gd"},{n:"Guadeloupe",i:"gp"},{n:"Guam",i:"gu"},{n:"Guatemala",i:"gt"},{n:"Guernsey",i:"gg"},{n:"Guinea (Guinée)",i:"gn"},{n:"Guinea-Bissau (Guiné Bissau)",i:"gw"},{n:"Guyana",i:"gy"},{n:"Haiti",i:"ht"},{n:"Honduras",i:"hn"},{n:"Hong Kong (香港)",i:"hk"},{n:"Hungary (Magyarország)",i:"hu"},{n:"Iceland (Ísland)",i:"is"},{n:"India (भारत)",i:"in"},{n:"Indonesia",i:"id"},{n:"Iran (‫ایران‬‎)",i:"ir"},{n:"Iraq (‫العراق‬‎)",i:"iq"},{n:"Ireland",i:"ie"},{n:"Isle of Man",i:"im"},{n:"Israel (‫ישראל‬‎)",i:"il"},{n:"Italy (Italia)",i:"it"},{n:"Jamaica",i:"jm"},{n:"Japan (日本)",i:"jp"},{n:"Jersey",i:"je"},{n:"Jordan (‫الأردن‬‎)",i:"jo"},{n:"Kazakhstan (Казахстан)",i:"kz"},{n:"Kenya",i:"ke"},{n:"Kiribati",i:"ki"},{n:"Kosovo (Kosovë)",i:"xk"},{n:"Kuwait (‫الكويت‬‎)",i:"kw"},{n:"Kyrgyzstan (Кыргызстан)",i:"kg"},{n:"Laos (ລາວ)",i:"la"},{n:"Latvia (Latvija)",i:"lv"},{n:"Lebanon (‫لبنان‬‎)",i:"lb"},{n:"Lesotho",i:"ls"},{n:"Liberia",i:"lr"},{n:"Libya (‫ليبيا‬‎)",i:"ly"},{n:"Liechtenstein",i:"li"},{n:"Lithuania (Lietuva)",i:"lt"},{n:"Luxembourg",i:"lu"},{n:"Macau (澳門)",i:"mo"},{n:"Macedonia (FYROM) (Македонија)",i:"mk"},{n:"Madagascar (Madagasikara)",i:"mg"},{n:"Malawi",i:"mw"},{n:"Malaysia",i:"my"},{n:"Maldives",i:"mv"},{n:"Mali",i:"ml"},{n:"Malta",i:"mt"},{n:"Marshall Islands",i:"mh"},{n:"Martinique",i:"mq"},{n:"Mauritania (‫موريتانيا‬‎)",i:"mr"},{n:"Mauritius (Moris)",i:"mu"},{n:"Mayotte",i:"yt"},{n:"Mexico (México)",i:"mx"},{n:"Micronesia",i:"fm"},{n:"Moldova (Republica Moldova)",i:"md"},{n:"Monaco",i:"mc"},{n:"Mongolia (Монгол)",i:"mn"},{n:"Montenegro (Crna Gora)",i:"me"},{n:"Montserrat",i:"ms"},{n:"Morocco (‫المغرب‬‎)",i:"ma"},{n:"Mozambique (Moçambique)",i:"mz"},{n:"Myanmar (Burma) (မြန်မာ)",i:"mm"},{n:"Namibia (Namibië)",i:"na"},{n:"Nauru",i:"nr"},{n:"Nepal (नेपाल)",i:"np"},{n:"Netherlands (Nederland)",i:"nl"},{n:"New Caledonia (Nouvelle-Calédonie)",i:"nc"},{n:"New Zealand",i:"nz"},{n:"Nicaragua",i:"ni"},{n:"Niger (Nijar)",i:"ne"},{n:"Nigeria",i:"ng"},{n:"Niue",i:"nu"},{n:"Norfolk Island",i:"nf"},{n:"North Korea (조선 민주주의 인민 공화국)",i:"kp"},{n:"Northern Mariana Islands",i:"mp"},{n:"Norway (Norge)",i:"no"},{n:"Oman (‫عُمان‬‎)",i:"om"},{n:"Pakistan (‫پاکستان‬‎)",i:"pk"},{n:"Palau",i:"pw"},{n:"Palestine (‫فلسطين‬‎)",i:"ps"},{n:"Panama (Panamá)",i:"pa"},{n:"Papua New Guinea",i:"pg"},{n:"Paraguay",i:"py"},{n:"Peru (Perú)",i:"pe"},{n:"Philippines",i:"ph"},{n:"Pitcairn Islands",i:"pn"},{n:"Poland (Polska)",i:"pl"},{n:"Portugal",i:"pt"},{n:"Puerto Rico",i:"pr"},{n:"Qatar (‫قطر‬‎)",i:"qa"},{n:"Réunion (La Réunion)",i:"re"},{n:"Romania (România)",i:"ro"},{n:"Russia (Россия)",i:"ru"},{n:"Rwanda",i:"rw"},{n:"Saint Barthélemy (Saint-Barthélemy)",i:"bl"},{n:"Saint Helena",i:"sh"},{n:"Saint Kitts and Nevis",i:"kn"},{n:"Saint Lucia",i:"lc"},{n:"Saint Martin (Saint-Martin (partie française))",i:"mf"},{n:"Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)",i:"pm"},{n:"Saint Vincent and the Grenadines",i:"vc"},{n:"Samoa",i:"ws"},{n:"San Marino",i:"sm"},{n:"São Tomé and Príncipe (São Tomé e Príncipe)",i:"st"},{n:"Saudi Arabia (‫المملكة العربية السعودية‬‎)",i:"sa"},{n:"Senegal (Sénégal)",i:"sn"},{n:"Serbia (Србија)",i:"rs"},{n:"Seychelles",i:"sc"},{n:"Sierra Leone",i:"sl"},{n:"Singapore",i:"sg"},{n:"Sint Maarten",i:"sx"},{n:"Slovakia (Slovensko)",i:"sk"},{n:"Slovenia (Slovenija)",i:"si"},{n:"Solomon Islands",i:"sb"},{n:"Somalia (Soomaaliya)",i:"so"},{n:"South Africa",i:"za"},{n:"South Georgia & South Sandwich Islands",i:"gs"},{n:"South Korea (대한민국)",i:"kr"},{n:"South Sudan (‫جنوب السودان‬‎)",i:"ss"},{n:"Spain (España)",i:"es"},{n:"Sri Lanka (ශ්‍රී ලංකාව)",i:"lk"},{n:"Sudan (‫السودان‬‎)",i:"sd"},{n:"Suriname",i:"sr"},{n:"Svalbard and Jan Mayen (Svalbard og Jan Mayen)",i:"sj"},{n:"Swaziland",i:"sz"},{n:"Sweden (Sverige)",i:"se"},{n:"Switzerland (Schweiz)",i:"ch"},{n:"Syria (‫سوريا‬‎)",i:"sy"},{n:"Taiwan (台灣)",i:"tw"},{n:"Tajikistan",i:"tj"},{n:"Tanzania",i:"tz"},{n:"Thailand (ไทย)",i:"th"},{n:"Timor-Leste",i:"tl"},{n:"Togo",i:"tg"},{n:"Tokelau",i:"tk"},{n:"Tonga",i:"to"},{n:"Trinidad and Tobago",i:"tt"},{n:"Tunisia (‫تونس‬‎)",i:"tn"},{n:"Turkey (Türkiye)",i:"tr"},{n:"Turkmenistan",i:"tm"},{n:"Turks and Caicos Islands",i:"tc"},{n:"Tuvalu",i:"tv"},{n:"Uganda",i:"ug"},{n:"Ukraine (Україна)",i:"ua"},{n:"United Arab Emirates (‫الإمارات العربية المتحدة‬‎)",i:"ae"},{n:"United Kingdom",i:"gb"},{n:"United States",i:"us"},{n:"U.S. Minor Outlying Islands",i:"um"},{n:"U.S. Virgin Islands",i:"vi"},{n:"Uruguay",i:"uy"},{n:"Uzbekistan (Oʻzbekiston)",i:"uz"},{n:"Vanuatu",i:"vu"},{n:"Vatican City (Città del Vaticano)",i:"va"},{n:"Venezuela",i:"ve"},{n:"Vietnam (Việt Nam)",i:"vn"},{n:"Wallis and Futuna",i:"wf"},{n:"Western Sahara (‫الصحراء الغربية‬‎)",i:"eh"},{n:"Yemen (‫اليمن‬‎)",i:"ye"},{n:"Zambia",i:"zm"},{n:"Zimbabwe",i:"zw"}],function(n,t){t.name=t.n;t.iso2=t.i;delete t.n;delete t.i})}),function(){function n(t,i,r){var o=n.resolve(t),e,u,f;if(null==o){r=r||t;i=i||"root";e=new Error('Failed to require "'+r+'" from "'+i+'"');e.path=r;e.parent=i;e.require=!0;throw e;}return u=n.modules[o],u._resolving||u.exports||(f={},f.exports={},f.client=f.component=!0,u._resolving=!0,u.call(this,f.exports,n.relative(o),f),delete u._resolving,u.exports=f.exports),u.exports}n.modules={};n.aliases={};n.resolve=function(t){var r,i,t;for(t.charAt(0)==="/"&&(t=t.slice(1)),r=[t,t+".js",t+".json",t+"/index.js",t+"/index.json"],i=0;i<r.length;i++){if(t=r[i],n.modules.hasOwnProperty(t))return t;if(n.aliases.hasOwnProperty(t))return n.aliases[t]}};n.normalize=function(n,t){var r=[],i;if("."!=t.charAt(0))return t;for(n=n.split("/"),t=t.split("/"),i=0;i<t.length;++i)".."==t[i]?n.pop():"."!=t[i]&&""!=t[i]&&r.push(t[i]);return n.concat(r).join("/")};n.register=function(t,i){n.modules[t]=i};n.alias=function(t,i){if(!n.modules.hasOwnProperty(t))throw new Error('Failed to alias "'+t+'", it does not exist');n.aliases[i]=t};n.relative=function(t){function u(n,t){for(var i=n.length;i--;)if(n[i]===t)return i;return-1}function i(r){var u=i.resolve(r);return n(u,t,r)}var r=n.normalize(t,"..");return i.resolve=function(i){var o=i.charAt(0),e,f;return"/"==o?i.slice(1):"."==o?n.normalize(r,i):(e=t.split("/"),f=u(e,"deps")+1,f||(f=0),e.slice(0,f+1).join("/")+"/deps/"+i)},i.exists=function(t){return n.modules.hasOwnProperty(i.resolve(t))},i};n.register("component-classes/index.js",function(n,t,i){function r(n){if(!n)throw new Error("A DOM element reference is required");this.el=n;this.list=n.classList}var u=t("indexof"),f=/\s+/,e=Object.prototype.toString;i.exports=function(n){return new r(n)};r.prototype.add=function(n){if(this.list)return this.list.add(n),this;var t=this.array(),i=u(t,n);return~i||t.push(n),this.el.className=t.join(" "),this};r.prototype.remove=function(n){if("[object RegExp]"==e.call(n))return this.removeMatching(n);if(this.list)return this.list.remove(n),this;var t=this.array(),i=u(t,n);return~i&&t.splice(i,1),this.el.className=t.join(" "),this};r.prototype.removeMatching=function(n){for(var i=this.array(),t=0;t<i.length;t++)n.test(i[t])&&this.remove(i[t]);return this};r.prototype.toggle=function(n,t){return this.list?("undefined"!=typeof t?t!==this.list.toggle(n,t)&&this.list.toggle(n):this.list.toggle(n),this):("undefined"!=typeof t?t?this.add(n):this.remove(n):this.has(n)?this.remove(n):this.add(n),this)};r.prototype.array=function(){var t=this.el.className.replace(/^\s+|\s+$/g,""),n=t.split(f);return""===n[0]&&n.shift(),n};r.prototype.has=r.prototype.contains=function(n){return this.list?this.list.contains(n):!!~u(this.array(),n)}});n.register("segmentio-extend/index.js",function(n,t,i){i.exports=function(n){for(var i,u=Array.prototype.slice.call(arguments,1),r=0,t;t=u[r];r++)if(t)for(i in t)n[i]=t[i];return n}});n.register("component-indexof/index.js",function(n,t,i){i.exports=function(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0;i<n.length;++i)if(n[i]===t)return i;return-1}});n.register("component-event/index.js",function(n){var t=window.addEventListener?"addEventListener":"attachEvent",r=window.removeEventListener?"removeEventListener":"detachEvent",i=t!=="addEventListener"?"on":"";n.bind=function(n,r,u,f){return n[t](i+r,u,f||!1),u};n.unbind=function(n,t,u,f){return n[r](i+t,u,f||!1),u}});n.register("timoxley-to-array/index.js",function(n,t,i){function r(n){return Object.prototype.toString.call(n)==="[object Array]"}i.exports=function(n){var i,t;if(typeof n=="undefined")return[];if(n===null)return[null];if(n===window)return[window];if(typeof n=="string")return[n];if(r(n))return n;if(typeof n.length!="number")return[n];if(typeof n=="function"&&n instanceof Function)return[n];for(i=[],t=0;t<n.length;t++)(Object.prototype.hasOwnProperty.call(n,t)||t in n)&&i.push(n[t]);return i.length?i:[]}});n.register("javve-events/index.js",function(n,t){var i=t("event"),r=t("to-array");n.bind=function(n,t,u,f){n=r(n);for(var e=0;e<n.length;e++)i.bind(n[e],t,u,f)};n.unbind=function(n,t,u,f){n=r(n);for(var e=0;e<n.length;e++)i.unbind(n[e],t,u,f)}});n.register("javve-get-by-class/index.js",function(n,t,i){i.exports=function(){return document.getElementsByClassName?function(n,t,i){return i?n.getElementsByClassName(t)[0]:n.getElementsByClassName(t)}:document.querySelector?function(n,t,i){return t="."+t,i?n.querySelector(t):n.querySelectorAll(t)}:function(n,t,i){var e=[],r,f;n==null&&(n=document);var u=n.getElementsByTagName("*"),o=u.length,s=new RegExp("(^|\\s)"+t+"(\\s|$)");for(r=0,f=0;r<o;r++)if(s.test(u[r].className)){if(i)return u[r];e[f]=u[r];f++}return e}}()});n.register("javve-get-attribute/index.js",function(n,t,i){i.exports=function(n,t){var r=n.getAttribute&&n.getAttribute(t)||null,u,f,i;if(!r)for(u=n.attributes,f=u.length,i=0;i<f;i++)t[i]!==undefined&&t[i].nodeName===t&&(r=t[i].nodeValue);return r}});n.register("javve-natural-sort/index.js",function(n,t,i){i.exports=function(n,t,i){var v=/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?$|^0x[0-9a-f]+$|[0-9]+)/gi,y=/(^[ ]*|[ ]*$)/g,p=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,w=/^0x[0-9a-f]+$/i,b=/^0/,i=i||{},k=function(n){return i.insensitive&&(""+n).toLowerCase()||""+n},o=k(n).replace(y,"")||"",s=k(t).replace(y,"")||"",e=o.replace(v,'\0$1\0').replace(/\0$/,"").replace(/^\0/,"").split('\0'),h=s.replace(v,'\0$1\0').replace(/\0$/,"").replace(/^\0/,"").split('\0'),l=parseInt(o.match(w))||e.length!=1&&o.match(p)&&Date.parse(o),a=parseInt(s.match(w))||l&&s.match(p)&&Date.parse(s)||null,u,f,c=i.desc?-1:1,r,d;if(a){if(l<a)return-1*c;if(l>a)return 1*c}for(r=0,d=Math.max(e.length,h.length);r<d;r++){if(u=!(e[r]||"").match(b)&&parseFloat(e[r])||e[r]||0,f=!(h[r]||"").match(b)&&parseFloat(h[r])||h[r]||0,isNaN(u)!==isNaN(f))return isNaN(u)?1:-1;if(typeof u!=typeof f&&(u+="",f+=""),u<f)return-1*c;if(u>f)return 1*c}return 0}});n.register("javve-to-string/index.js",function(n,t,i){i.exports=function(n){return n=n===undefined?"":n,n=n===null?"":n,n.toString()}});n.register("component-type/index.js",function(n,t,i){var r=Object.prototype.toString;i.exports=function(n){switch(r.call(n)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return n===null?"null":n===undefined?"undefined":n!==n?"nan":n&&n.nodeType===1?"element":typeof n.valueOf()}});n.register("list.js/index.js",function(n,t,i){(function(n,r){"use strict";var o=n.document,u=t("get-by-class"),f=t("extend"),e=t("indexof"),s=function(n,i,s){var h=this,c,l=t("./src/item")(h),a=t("./src/add-async")(h),v=t("./src/parse")(h);c={start:function(){(h.listClass="list",h.searchClass="search",h.sortClass="sort",h.page=200,h.i=1,h.items=[],h.visibleItems=[],h.matchingItems=[],h.searched=!1,h.filtered=!1,h.handlers={updated:[]},h.plugins={},h.helpers={getByClass:u,extend:f,indexOf:e},f(h,i),h.listContainer=typeof n=="string"?o.getElementById(n):n,h.listContainer)&&(h.list=u(h.listContainer,h.listClass,!0),h.templater=t("./src/templater")(h),h.search=t("./src/search")(h),h.filter=t("./src/filter")(h),h.sort=t("./src/sort")(h),this.items(),h.update(),this.plugins())},items:function(){v(h.list);s!==r&&h.add(s)},plugins:function(){for(var t,n=0;n<h.plugins.length;n++)t=h.plugins[n],h[t.name]=t,t.init(h)}};this.add=function(n,t){var f,e,i,o,u;if(t){a(n,t);return}for(f=[],e=!1,n[0]===r&&(n=[n]),i=0,o=n.length;i<o;i++)u=null,n[i]instanceof l?(u=n[i],u.reload()):(e=h.items.length>h.page?!0:!1,u=new l(n[i],r,e)),h.items.push(u),f.push(u);return h.update(),f};this.show=function(n,t){return this.i=n,this.page=t,h.update(),h};this.remove=function(n,t,i){for(var u=0,r=0,f=h.items.length;r<f;r++)h.items[r].values()[n]==t&&(h.templater.remove(h.items[r],i),h.items.splice(r,1),f--,r--,u++);return h.update(),u};this.get=function(n,t){for(var r,u=[],i=0,f=h.items.length;i<f;i++)r=h.items[i],r.values()[n]==t&&u.push(r);return u};this.size=function(){return h.items.length};this.clear=function(){return h.templater.clear(),h.items=[],h};this.on=function(n,t){return h.handlers[n].push(t),h};this.off=function(n,t){var i=h.handlers[n],r=e(i,t);return r>-1&&i.splice(r,1),h};this.trigger=function(n){for(var t=h.handlers[n].length;t--;)h.handlers[n][t](h);return h};this.reset={filter:function(){for(var n=h.items,t=n.length;t--;)n[t].filtered=!1;return h},search:function(){for(var n=h.items,t=n.length;t--;)n[t].found=!1;return h}};this.update=function(){var t=h.items,i=t.length,n;for(h.visibleItems=[],h.matchingItems=[],h.templater.clear(),n=0;n<i;n++)t[n].matching()&&h.matchingItems.length+1>=h.i&&h.visibleItems.length<h.page?(t[n].show(),h.visibleItems.push(t[n]),h.matchingItems.push(t[n])):t[n].matching()?(h.matchingItems.push(t[n]),t[n].hide()):t[n].hide();return h.trigger("updated"),h};c.start()};i.exports=s})(window)});n.register("list.js/src/search.js",function(n,t,i){var u=t("events"),f=t("get-by-class"),r=t("to-string");i.exports=function(n){var c,t,i,e,o={resetList:function(){n.i=1;n.templater.clear();e=undefined},setOptions:function(n){n.length==2&&n[1]instanceof Array?t=n[1]:n.length==2&&typeof n[1]=="function"?e=n[1]:n.length==3&&(t=n[1],e=n[2])},setColumns:function(){t=t===undefined?o.toArray(n.items[0].values()):t},setSearchString:function(n){n=r(n).toLowerCase();n=n.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&");i=n},toArray:function(n){var t=[];for(var i in n)t.push(i);return t}},s={list:function(){for(var t=0,i=n.items.length;t<i;t++)s.item(n.items[t])},item:function(n){n.found=!1;for(var i=0,r=t.length;i<r;i++)if(s.values(n.values(),t[i])){n.found=!0;return}},values:function(t,u){return t.hasOwnProperty(u)&&(c=r(t[u]).toLowerCase(),n.minSearchTextLength&&i.length<n.minSearchTextLength||i!==""&&c.search(i)>-1)?!0:!1},reset:function(){n.reset.search();n.searched=!1}},h=function(r){return n.trigger("searchStart"),o.resetList(),o.setSearchString(r),o.setOptions(arguments),o.setColumns(),i===""?s.reset():(n.searched=!0,e?e(i,t):s.list()),n.update(),n.trigger("searchComplete"),n.visibleItems};return n.handlers.searchStart=n.handlers.searchStart||[],n.handlers.searchComplete=n.handlers.searchComplete||[],u.bind(f(n.listContainer,n.searchClass),"keyup",function(t){var i=t.target||t.srcElement,r=i.value===""&&!n.searched;r||h(i.value)}),u.bind(f(n.listContainer,n.searchClass),"input",function(n){var t=n.target||n.srcElement;t.value===""&&h("")}),n.helpers.toString=r,h}});n.register("list.js/src/sort.js",function(n,t,i){var f=t("natural-sort"),r=t("classes"),e=t("events"),o=t("get-by-class"),u=t("get-attribute");i.exports=function(n){n.sortFunction=n.sortFunction||function(n,t,i){return i.desc=i.order=="desc"?!0:!1,f(n.values()[i.valueName],t.values()[i.valueName],i)};var t={els:undefined,clear:function(){for(var n=0,i=t.els.length;n<i;n++)r(t.els[n]).remove("asc"),r(t.els[n]).remove("desc")},getOrder:function(n){var t=u(n,"data-order");return t=="asc"||t=="desc"?t:r(n).has("desc")?"asc":r(n).has("asc")?"desc":"asc"},getInSensitive:function(n,t){var i=u(n,"data-insensitive");t.insensitive=i==="true"?!0:!1},setOrder:function(n){for(var i,e,f=0,o=t.els.length;f<o;f++)(i=t.els[f],u(i,"data-sort")===n.valueName)&&(e=u(i,"data-order"),e=="asc"||e=="desc"?e==n.order&&r(i).add(n.order):r(i).add(n.order))}},i=function(){n.trigger("sortStart");options={};var i=arguments[0].currentTarget||arguments[0].srcElement||undefined;i?(options.valueName=u(i,"data-sort"),t.getInSensitive(i,options),options.order=t.getOrder(i)):(options=arguments[1]||options,options.valueName=arguments[0],options.order=options.order||"asc",options.insensitive=typeof options.insensitive=="undefined"?!0:options.insensitive);t.clear();t.setOrder(options);options.sortFunction=options.sortFunction||n.sortFunction;n.items.sort(function(n,t){return options.sortFunction(n,t,options)});n.update();n.trigger("sortComplete")};n.handlers.sortStart=n.handlers.sortStart||[];n.handlers.sortComplete=n.handlers.sortComplete||[];t.els=o(n.listContainer,n.sortClass);e.bind(t.els,"click",i);n.on("searchStart",t.clear);n.on("filterStart",t.clear);return n.helpers.classes=r,n.helpers.naturalSort=f,n.helpers.events=e,n.helpers.getAttribute=u,i}});n.register("list.js/src/item.js",function(n,t,i){i.exports=function(n){return function(t,i,r){var u=this,f;this._values={};this.found=!1;this.filtered=!1;f=function(t,i,r){if(i===undefined)r?u.values(t,r):u.values(t);else{u.elm=i;var f=n.templater.get(u,t);u.values(f)}};this.values=function(t,i){if(t!==undefined){for(var r in t)u._values[r]=t[r];i!==!0&&n.templater.set(u,u.values())}else return u._values};this.show=function(){n.templater.show(u)};this.hide=function(){n.templater.hide(u)};this.matching=function(){return n.filtered&&n.searched&&u.found&&u.filtered||n.filtered&&!n.searched&&u.filtered||!n.filtered&&n.searched&&u.found||!n.filtered&&!n.searched};this.visible=function(){return u.elm.parentNode==n.list?!0:!1};f(t,i,r)}}});n.register("list.js/src/templater.js",function(n,t,i){var r=t("get-by-class"),u=function(n){function u(t){var r,e,i,f,u;if(t===undefined){for(r=n.list.childNodes,e=[],i=0,f=r.length;i<f;i++)if(r[i].data===undefined)return r[i];return null}return t.indexOf("<")!==-1?(u=document.createElement("div"),u.innerHTML=t,u.firstChild):document.getElementById(n.item)}var i=u(n.item),t=this;this.get=function(n,i){var f,u,o,e;for(t.create(n),f={},u=0,o=i.length;u<o;u++)e=r(n.elm,i[u],!0),f[i[u]]=e?e.innerHTML:"";return f};this.set=function(n,i){var u,f;if(!t.create(n))for(u in i)i.hasOwnProperty(u)&&(f=r(n.elm,u,!0),f&&(f.tagName==="IMG"&&i[u]!==""?f.src=i[u]:f.innerHTML=i[u]))};this.create=function(n){if(n.elm!==undefined)return!1;var r=i.cloneNode(!0);return r.removeAttribute("id"),n.elm=r,t.set(n,n.values()),!0};this.remove=function(t){n.list.removeChild(t.elm)};this.show=function(i){t.create(i);n.list.appendChild(i.elm)};this.hide=function(t){t.elm!==undefined&&t.elm.parentNode===n.list&&n.list.removeChild(t.elm)};this.clear=function(){if(n.list.hasChildNodes())while(n.list.childNodes.length>=1)n.list.removeChild(n.list.firstChild)}};i.exports=function(n){return new u(n)}});n.register("list.js/src/filter.js",function(n,t,i){i.exports=function(n){return n.handlers.filterStart=n.handlers.filterStart||[],n.handlers.filterComplete=n.handlers.filterComplete||[],function(t){var r,i,f,u;if(n.trigger("filterStart"),n.i=1,n.reset.filter(),t===undefined)n.filtered=!1;else for(n.filtered=!0,r=n.items,i=0,f=r.length;i<f;i++)u=r[i],u.filtered=t(u)?!0:!1;return n.update(),n.trigger("filterComplete"),n.visibleItems}}});n.register("list.js/src/add-async.js",function(n,t,i){i.exports=function(n){return function(t,i,r){var u=t.splice(0,100);r=r||[];r=r.concat(n.add(u));t.length>0?setTimeout(function(){addAsync(t,i,r)},10):(n.update(),i(r))}}});n.register("list.js/src/parse.js",function(n,t,i){i.exports=function(n){var r=t("./item")(n),u=function(n){for(var i=n.childNodes,r=[],t=0,u=i.length;t<u;t++)i[t].data===undefined&&r.push(i[t]);return r},i=function(t,i){for(var u=0,f=t.length;u<f;u++)n.items.push(new r(i,t[u]))},f=function(t,r){var u=t.splice(0,100);i(u,r);t.length>0?setTimeout(function(){init.items.indexAsync(t,r)},10):n.update()};return function(){var t=u(n.list),r=n.valueNames;n.indexAsync?f(t,r):i(t,r)}}});n.alias("component-classes/index.js","list.js/deps/classes/index.js");n.alias("component-classes/index.js","classes/index.js");n.alias("component-indexof/index.js","component-classes/deps/indexof/index.js");n.alias("segmentio-extend/index.js","list.js/deps/extend/index.js");n.alias("segmentio-extend/index.js","extend/index.js");n.alias("component-indexof/index.js","list.js/deps/indexof/index.js");n.alias("component-indexof/index.js","indexof/index.js");n.alias("javve-events/index.js","list.js/deps/events/index.js");n.alias("javve-events/index.js","events/index.js");n.alias("component-event/index.js","javve-events/deps/event/index.js");n.alias("timoxley-to-array/index.js","javve-events/deps/to-array/index.js");n.alias("javve-get-by-class/index.js","list.js/deps/get-by-class/index.js");n.alias("javve-get-by-class/index.js","get-by-class/index.js");n.alias("javve-get-attribute/index.js","list.js/deps/get-attribute/index.js");n.alias("javve-get-attribute/index.js","get-attribute/index.js");n.alias("javve-natural-sort/index.js","list.js/deps/natural-sort/index.js");n.alias("javve-natural-sort/index.js","natural-sort/index.js");n.alias("javve-to-string/index.js","list.js/deps/to-string/index.js");n.alias("javve-to-string/index.js","list.js/deps/to-string/index.js");n.alias("javve-to-string/index.js","to-string/index.js");n.alias("javve-to-string/index.js","javve-to-string/index.js");n.alias("component-type/index.js","list.js/deps/type/index.js");n.alias("component-type/index.js","type/index.js");typeof exports=="object"?module.exports=n("list.js"):typeof define=="function"&&define.amd?define(function(){return n("list.js")}):this.List=n("list.js")}(),function(n){n.fn.extend({jQueryGridView:function(t){var i=n.extend({autoload:!0,beforeLoad:null,afterLoad:null},t),r=function(t,u,f){n(t).fadeTo(1,.5,function(){var o,s,e,h,c;i.beforeLoad&&typeof i.beforeLoad=="function"&&i.beforeLoad();o=u.pageSize;o||(o=n(t).attr("data-default-pagesize"));s=u.pageIndex;s||(s=1);e="pageindex="+s+"&pagesize="+o;u.sortProperty&&(e=e+"&sortproperty="+u.sortProperty);u.sortOrder&&(e=e+"&sortorder="+u.sortOrder);f&&(e=e+"&initialize=true");h=n(".simple-search",u.container).val();h&&(e=e+"&search="+h);u.filters&&(c=n("#"+u.filters+" form").serialize(),e=e+"&"+c);u.action?n.ajax({async:!0,type:"GET",dataType:"text",url:u.action,data:e,success:function(f){n(t).html(f);n(" .sorting",t).each(function(){n(this).bind("click",function(){var i=n(".gridview_pagesize select",t).val(),f=n("table",t).attr("data-pageindex"),e=n(this).attr("data-sortproperty"),o=n(this).attr("data-sortorder");return r(t,{action:u.action,container:u.container,filters:u.filters,pageSize:i,pageIndex:f,sortProperty:e,sortOrder:o}),!1})});n(".gridviewpager .pagination li > a",t).each(function(){var i=this;n(this).bind("click",function(){var f=n(".gridview_pagesize select",t).val(),e=n("table",t).attr("data-sortproperty"),o=n("table",t).attr("data-sortorder"),s=n(i).attr("data-pageindex");r(t,{action:u.action,container:u.container,filters:u.filters,pageSize:f,pageIndex:s,sortProperty:e,sortOrder:o})})});n(".gridview_pagesize select",t).each(function(){n(this).bind("change",function(){var i=n(this).val(),f=n("table",t).attr("data-sortproperty"),e=n("table",t).attr("data-sortorder");return r(t,{action:u.action,container:u.container,filters:u.filters,pageSize:i,pageIndex:1,sortProperty:f,sortOrder:e}),!1})});i.afterLoad&&typeof i.afterLoad=="function"&&i.afterLoad();n(t).fadeTo("fast",1);n(t).load()}}):(n(t).html("<div style=\"padding:20px;color:#c00;\">Tag 'data-source' is empty. Check url (controller, action, type of params).<\/div>"),n(t).fadeTo("fast",1),n(t).load())})};return this.each(function(){var f=this,u=n(".gridview",this),t={container:f,action:n(u).attr("data-source"),filters:n(u).attr("data-filters")};i.autoload&&r(u,t,!0);n(".gridview-filter input.simple-search",t.container).val()?n(".gridview-filter button.clear",t.container).show():n(".gridview-filter button.clear",t.container).hide();n(".gridview-filter button.filters",t.container).bind("click",function(){var t=n(this).attr("data-target");n(this).hasClass("active")?(n(t).removeClass("in").addClass("collapse"),n(this).removeClass("active")):(n(t).addClass("in").removeClass("collapse"),n(this).addClass("active"))});n(".gridview-filter button.clear",t.container).bind("click",function(){var i=n(".gridview_pagesize select",u).val(),f=n("table",u).attr("data-sortproperty"),e=n("table",u).attr("data-sortorder");return n(".gridview-filter input.simple-search",t.container).val(""),n(this).hide(),r(u,{action:t.action,container:t.container,filters:t.filters,pageSize:i,pageIndex:1,sortProperty:f,sortOrder:e}),!1});n(".gridview-filter button.search",t.container).bind("click",function(){var i=n(".gridview_pagesize select",u).val(),f=n("table",u).attr("data-sortproperty"),e=n("table",u).attr("data-sortorder");return n(".gridview-filter input.simple-search",t.container).val()&&n(".gridview-filter button.clear",t.container).show(),r(u,{action:t.action,container:t.container,filters:t.filters,pageSize:i,pageIndex:1,sortProperty:f,sortOrder:e}),!1});n(".gridview-filter input.simple-search",t.container).bind("keyup",function(i){var f=i.keyCode?i.keyCode:i.which;if(f==13){var e=n(".gridview_pagesize select",u).val(),o=n("table",u).attr("data-sortproperty"),s=n("table",u).attr("data-sortorder");n(".gridview-filter input.simple-search",t.container).val()&&n(".gridview-filter button.clear",t.container).show();r(u,{action:t.action,container:t.container,filters:t.filters,pageSize:e,pageIndex:1,sortProperty:o,sortOrder:s})}return!1})})}})}(jQuery);$(document).ready(function(){function i(n,t,i){var u="",r;i&&(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString());document.cookie=n+"="+t+u+"; path=/"}$(".do-tabs a").on("click",function(n){n.preventDefault();$(this).tab("show");$("a",$(this).parent()).removeClass("active");$(this).addClass("active")});window.innerWidth<576&&$("#wirtualnyDworzecDiv, #podrozeDiv, #promocjeDiv, #strefaPasazeraDiv, #kontaktOnlineDiv, #aktualnosciDiv").removeClass("show");$("#wirtualnyDworzec, #podroze, #promocje, #strefaPasazera, #kontaktOnline, #aktualnosci").on("click",function(){var i=window.innerWidth,n,t;i<576&&(n="fa-caret-square-down",t="fa-caret-square-up",$(this).children(":first").hasClass(n)?$(this).children(":first").removeClass(n).addClass(t):$(this).children(":first").removeClass(t).addClass(n),$(this).next().collapse("toggle"))});$(window).on("resize",function(){var n=window.innerWidth;n<576?$("#wirtualnyDworzecDiv, #podrozeDiv, #promocjeDiv, #strefaPasazeraDiv, #kontaktOnlineDiv, #aktualnosciDiv").removeClass("show"):$("#wirtualnyDworzecDiv, #podrozeDiv, #promocjeDiv, #strefaPasazeraDiv, #kontaktOnlineDiv, #aktualnosciDiv").addClass("show")});$(".datepicker").each(function(){var n=$(this).attr("data-startdate"),t,i;n||(n=-Infinity);t=$("html").attr("lang");i=$(this).attr("data-withClearBtn");$(this).datepicker({format:"yyyy-mm-dd",language:t!=undefined?t:"pl",autoclose:!0,todayHighlight:!0,todayBtn:"linked",startDate:n,clearBtn:i==="true",updateViewDate:$(this).attr("id")==="DepartureReturn"?!1:!0})});$("#DepartureThere").on("changeDate",function(n){var t=$("#DepartureReturn").datepicker("getDate");t&&n.date>t&&($("#DepartureReturn").datepicker("setStartDate",n.date),$("#DepartureReturn").datepicker("update",n.date))});$("#DepartureReturn").on("show",function(){var n=$("#DepartureThere").datepicker("getDate");$("#DepartureReturn").datepicker("setStartDate",n)});var n=function(){return $("#SearchType").val()},t=function(t){var r=$(t).attr("data-target"),i;r=r.indexOf("?")==-1?r+"?":r+"&";i="#"+$(t).attr("data-value-field");$(t).typeahead({alignWidth:!1,items:1e3,render:function(t){var i=this,r,f=typeof i.options.displayField=="string",u='<i class="fas fa-map-marker-alt fa-xs"><\/i>',e=n(i.$element);return e=="b"&&(u='<i class="fas fa-road fa-xs"><\/i>'),t=$(t).map(function(n,t){return typeof t=="object"?(r=f?t[i.options.displayField]:i.options.displayField(t),n=$(i.options.item).data(t)):(r=t,n=$(i.options.item).data(t)),n.find("a").html(u+" "+i.highlighter(r)+"<br /><small>"+t.Obj.District+"<\/small>"),n[0]}),i.autoSelect&&t.first().addClass("active"),this.$menu.html(t),this},onSelect:function(n){return $(i).val(n.value.Value),$(i).attr("data-correlated-label",n.value.Label),setTimeout(function(){$(t).blur()}),n.value.Label},ajax:{url:r,timeout:300,valueField:"Value",displayField:"Label",triggerLength:2,method:"get",loadingClass:"loading-circle",cache:!1,preDispatch:function(t,i){var r=n($(i));return{term:t,src:r}}},matcher:function(){return!0}}).focusout(function(){var n=$(this);$(i).attr("data-exact-value")!="false"&&(n.val()&&n.val()==$(i).attr("data-correlated-label")||$(i).attr("data-correlated-label",""))})};$("input.searchtypeahead").each(function(n,i){t(i)});$(".numeric-spinner").each(function(n,t){$(".up",t).on("click",function(n){n.preventDefault();var i=parseInt($("input",t).val(),10);i>8||$("input",t).val(i+1)});$(".down",t).on("click",function(n){n.preventDefault();var i=parseInt($("input",t).val(),10);i<2||$("input",t).val(i-1)});$("input",t).on("focusout",function(){var n=$(this).val();/^\d+$/.test(n)||$(this).val("1")})});$(".btn-switch-relation").on("click",function(n){n.preventDefault();var t=$("#Origin").val(),i=$("#OriginKey").val(),r=$("#OriginKey").attr("data-correlated-label");$("#Origin").val($("#Destination").val());$("#OriginKey").val($("#DestinationKey").val());$("#OriginKey").attr("data-correlated-label",$("#DestinationKey").attr("data-correlated-label"));$("#Destination").val(t);$("#DestinationKey").val(i);$("#DestinationKey").attr("data-correlated-label",r)});$("#cookieprivacy button").on("click",function(n){n.preventDefault();var t=$(this).attr("data-cookie-name");i(t,"1",365);$("#cookieprivacy").hide()});$("#languageChooser").on("click","a",function(n){n.preventDefault();var i=$("#languageChooser").attr("data-action"),t=$(this).data("language");t!==null&&t!==""&&$.ajax({type:"POST",url:i,data:{lang:t},success:function(){window.location=window.location},error:function(){window.alert("Nie udało się wybrać języka spróbuj ponownie! Failed to choose language, try again!")}})});$("#changeSearchData").on("click",null,function(n){n.preventDefault();var t=this;$("#changeSearch").toggle("clip",null,500);$(t).hasClass("active")?($(t).removeClass("active"),$("#changeSearch").slideUp("fast")):($(t).addClass("active"),$("#changeSearch").slideDown("fast"))});$("#lblDepartureThere").click(function(){$("#DepartureThere").datepicker().focus()});$("#lblDepartureReturn").click(function(){$("#DepartureReturn").datepicker().focus()});$("#lblRebookDate").click(function(){$("#RebookDate").datepicker().focus()});$("#lblThereRebookDate").click(function(){$("#ThereRebookDate").datepicker().focus()});$("#lblReturnRebookDate").click(function(){$("#ReturnRebookDate").datepicker().focus()});$("#lblCreatedFrom").click(function(){$("#CreatedFrom").datepicker().focus()});$("#lblCreatedTo").click(function(){$("#CreatedTo").datepicker().focus()});$("#ChangeDiv .dropdown-menu .dropdown-item").click(function(){$(this).parents(".dropdown").find(".btn").text($(this).text());$("#Interchanges").val($(this).attr("data-original-value"));$("#Interchanges option[value="+$(this).attr("data-original-value")+"]").attr("selected","selected")});$("#SearchTypeDiv .dropdown-menu .dropdown-item").click(function(){$(this).parents(".dropdown").find(".btn").text($(this).text());$("#SearchType").val($(this).attr("data-original-value"));$("#Origin").val("");$("#OriginKey").val("");$("#OriginKey").attr("data-correlated-label","");$("#Destination").val("");$("#DestinationKey").val("");$("#DestinationKey").attr("data-correlated-label","");$("#Origin").focus()});$(".copy-search-link").on("click",function(n){n.preventDefault();var i=$(this).attr("data-url"),t=$("<input>");$("body").append(t);t.val(i).select();document.execCommand("copy");t.remove()});$(".gridview-container").jQueryGridView();$(".gridview").on("load",null,function(){$("select").selectpicker();$(".tip").tooltip({placement:"top"});$("[rel='tooltip']").tooltip({placement:"top"});$('[rel="popover"]').popover({trigger:"hover",placement:"top"});$(".gridview_filter .toggle").on("click",null,function(){$(this).hasClass("active")?$(this).removeClass("active"):$(this).addClass("active")})})}),function(n){n.fn.extend({slideToSubmit:function(t){function i(){var i,o;if(n(".slide-submit-dragging").length){var r=n(".slide-submit-dragging").position().left,u=n(".slide-submit-dragging").parent().outerWidth(),f=u-t.graceZone;if(r=="0")n(".slide-submit-dragging").animate({left:"10px"},150),n(".slide-submit-dragging").animate({left:"0px"},100),n(".slide-submit-dragging").animate({left:"10px"},150),n(".slide-submit-dragging").animate({left:"0px"},100);else if(r>=f)if(i=n(".slide-submit-dragging").parents("form").attr("id"),n("#"+i).isValid())n(".slide-submit-dragging").parent().find(".slide-submit-text").empty().append("<b>"+t.successText+"<\/b>"),n(".slide-submit-dragging").addClass("slide-submit-delay").animate({left:u-n(".slide-submit-dragging").outerWidth()},150),n(".slide-submit-dragging").parent().addClass("slide-success"),setTimeout(function(){t.success();n(".slide-submit-delay").removeClass("slide-submit-delay")},t.submitDelay);else{n(".slide-submit-dragging").animate({left:"0"},150);function e(){return typeof document.createElement("input").reportValidity=="function"}e()?o=document.querySelector("#"+i).reportValidity():n(".slide-submit-dragging").parent().find(".slide-submit-text").text(t.errorText)}else n(".slide-submit-dragging").animate({left:"0"},150);n(".slide-submit-dragging").removeClass("slide-submit-dragging")}}var r={graceZone:100,successText:"Sending...",errorText:"Check Required Fields",submitDelay:500,success:function(){}},t=n.extend(r,t);(function(n){n.fn.isValid=function(){return document.getElementById(this[0].id).checkValidity()}})(jQuery),function(n){n.fn.slideSubmit=function(t){t=n.extend({cursor:"move"},t);var i=this;return i.on("mousedown",function(t){var i=n(this).addClass("slide-submit-dragging"),f=i.outerHeight(),r=i.outerWidth(),u=i.offset().left+r-t.pageX,e=n(".slide-submit-dragging").parent().outerWidth();i.parents().on("mousemove",function(t){n(".slide-submit-dragging").offset({left:t.pageX+u-r})});t.preventDefault()}).on("mouseup",function(){})}}(jQuery);n(".slide-submit-thumb").slideSubmit();window.addEventListener("mouseup",function(){n(".slide-submit-dragging").parents().off("mousemove");i()});n.fn.draggable=function(){var t=null,r=function(i){var r=i.originalEvent,u=n(this).position();t={x:r.changedTouches[0].pageX-u.left,y:r.changedTouches[0].pageY-u.top}},u=function(i){i.preventDefault();var r=i.originalEvent;n(this).addClass("slide-submit-dragging").css({left:r.changedTouches[0].pageX-t.x})},f=function(n){i();n.preventDefault()};this.bind("touchstart",r);this.bind("touchmove",u);this.bind("touchend",f)};n(".slide-submit-thumb").draggable()}})}(jQuery)