if(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Popper=t()}(this,function(){"use strict";function li(n){var t=!1,i=0,r=document.createElement("span"),u=new MutationObserver(function(){n();t=!1});return u.observe(r,{attributes:!0}),function(){t||(t=!0,r.setAttribute("x-index",i),i=i+1)}}function ai(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ut))}}function ot(n){return n&&{}.toString.call(n)==="[object Function]"}function o(n,t){if(n.nodeType!==1)return[];var i=window.getComputedStyle(n,null);return t?i[t]:i}function p(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function i(n){if(!n||["HTML","BODY","#document"].indexOf(n.nodeName)!==-1)return window.document.body;var t=o(n),r=t.overflow,u=t.overflowX,f=t.overflowY;return/(auto|scroll)/.test(r+f+u)?n:i(p(n))}function vi(n){var t=n.nodeName;return t==="BODY"?!1:t==="HTML"||n.firstElementChild.offsetParent===n}function w(n){return n.parentNode!==null?w(n.parentNode):n}function s(n){var t=n&&n.offsetParent,i=t&&t.nodeName;return!i||i==="BODY"||i==="HTML"?window.document.documentElement:t}function h(n,t){var i,u;if(!n||!n.nodeType||!t||!t.nodeType)return window.document.documentElement;var f=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,e=f?n:t,o=f?t:n,r=document.createRange();return(r.setStart(e,0),r.setEnd(o,0),i=r.commonAncestorContainer,n!==i&&t!==i||e.contains(o))?vi(i)?i:s(i):(u=w(n),u.host?h(u.host,t):h(n,w(t).host))}function t(n){var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top",t=f==="top"?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return i==="BODY"||i==="HTML"?(r=window.document.documentElement,u=window.document.scrollingElement||r,u[t]):n[t]}function yi(n,i){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,u=t(i,"top"),f=t(i,"left"),r=e?-1:1;return n.top+=u*r,n.bottom+=u*r,n.left+=f*r,n.right+=f*r,n}function st(n,t){var i=t==="x"?"Left":"Top",r=i==="Left"?"Right":"Bottom";return+n["border"+i+"Width"].split("px")[0]+ +n["border"+r+"Width"].split("px")[0]}function ht(n,t,i,u){return Math.max(t["offset"+n],i["client"+n],i["offset"+n],r()?i["offset"+n]+u["margin"+(n==="Height"?"Top":"Left")]+u["margin"+(n==="Height"?"Bottom":"Right")]:0)}function ct(){var t=window.document.body,n=window.document.documentElement,i=r()&&window.getComputedStyle(n);return{height:ht("Height",t,n,i),width:ht("Width",t,n,i)}}function n(n){return lt({},n,{right:n.left+n.width,bottom:n.top+n.height})}function b(i){var u={},e,s,l;if(r())try{u=i.getBoundingClientRect();e=t(i,"top");s=t(i,"left");u.top+=e;u.left+=s;u.bottom+=e;u.right+=s}catch(p){}else u=i.getBoundingClientRect();var f={left:u.left,top:u.top,width:u.right-u.left,height:u.bottom-u.top},a=i.nodeName==="HTML"?ct():{},v=a.width||i.clientWidth||f.right-f.left,y=a.height||i.clientHeight||f.bottom-f.top,h=i.offsetWidth-v,c=i.offsetHeight-y;return(h||c)&&(l=o(i),h-=st(l,"x"),c-=st(l,"y"),f.width-=h,f.height-=c),n(f)}function k(t,u){var y=r(),w=u.nodeName==="HTML",e=b(t),p=b(u),l=i(t),s=o(u),a=+s.borderTopWidth.split("px")[0],v=+s.borderLeftWidth.split("px")[0],f=n({top:e.top-p.top-a,left:e.left-p.left-v,width:e.width,height:e.height}),h,c;return f.marginTop=0,f.marginLeft=0,!y&&w&&(h=+s.marginTop.split("px")[0],c=+s.marginLeft.split("px")[0],f.top-=a-h,f.bottom-=a-h,f.left-=v-c,f.right-=v-c,f.marginTop=h,f.marginLeft=c),(y?u.contains(l):u===l&&l.nodeName!=="BODY")&&(f=yi(f,u)),f}function pi(i){var r=window.document.documentElement,u=k(i,r),f=Math.max(r.clientWidth,window.innerWidth||0),e=Math.max(r.clientHeight,window.innerHeight||0),o=t(r),s=t(r,"left"),h={top:o-u.top+u.marginTop,left:s-u.left+u.marginLeft,width:f,height:e};return n(h)}function at(n){var t=n.nodeName;return t==="BODY"||t==="HTML"?!1:o(n,"position")==="fixed"?!0:at(p(n))}function d(n,t,r,u){var f={top:0,left:0},s=h(n,t),o,e;if(u==="viewport")f=pi(s);else if(o=void 0,u==="scrollParent"?(o=i(p(n)),o.nodeName==="BODY"&&(o=window.document.documentElement)):o=u==="window"?window.document.documentElement:u,e=k(o,s),o.nodeName!=="HTML"||at(s))f=e;else{var c=ct(),l=c.height,a=c.width;f.top+=e.top-e.marginTop;f.bottom=l+e.top;f.left+=e.left-e.marginLeft;f.right=a+e.left}return f.left+=r,f.top+=r,f.right-=r,f.bottom-=r,f}function wi(n){var t=n.width,i=n.height;return t*i}function yt(n,t,i,r,u){var c=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(n.indexOf("auto")===-1)return n;var f=d(i,r,c,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 vt({key:n},e[n],{area:wi(e[n])})}).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}),l=s.length>0?s[0].key:o[0].key,h=n.split("-")[1];return l+(h?"-"+h:"")}function pt(n,t,i){var r=h(t,i);return k(i,r)}function wt(n){var t=window.getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function l(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 bt(n,t,i){i=i.split("-")[0];var r=wt(n),e={width:r.width,height:r.height},u=["right","left"].indexOf(i)!==-1,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[l(f)],e}function u(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function bi(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=u(n,function(n){return n[t]===i});return n.indexOf(r)}function kt(t,i,r){var u=r===undefined?t:t.slice(0,bi(t,"name",r));return u.forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=t.function||t.fn;t.enabled&&ot(r)&&(i.offsets.popper=n(i.offsets.popper),i.offsets.reference=n(i.offsets.reference),i=r(i,t))}),i}function ki(){if(!this.state.isDestroyed){var n={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};if(n.offsets.reference=pt(this.state,this.popper,this.reference),n.placement=yt(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.offsets.popper=bt(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position="absolute",n=kt(this.modifiers,n),this.state.isCreated)this.options.onUpdate(n);else{this.state.isCreated=!0;this.options.onCreate(n)}}}function dt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function gt(n){for(var u=[!1,"ms","webkit","moz","o"],f=n.charAt(0).toUpperCase()+n.slice(1),i,r,t=0;t<u.length-1;t++)if(i=u[t],r=i?""+i+f:n,typeof window.document.body.style[r]!="undefined")return r;return null}function di(){return this.state.isDestroyed=!0,dt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[gt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ni(n,t,r,u){var e=n.nodeName==="BODY",f=e?window:n;f.addEventListener(t,r,{passive:!0});e||ni(i(f.parentNode),t,r,u);u.push(f)}function gi(n,t,r,u){r.updateBound=u;window.addEventListener("resize",r.updateBound,{passive:!0});var f=i(n);return ni(f,"scroll",r.updateBound,r.scrollParents),r.scrollElement=f,r.eventsEnabled=!0,r}function nr(){this.state.eventsEnabled||(this.state=gi(this.reference,this.options,this.state,this.scheduleUpdate))}function tr(n,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function ir(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=tr(this.reference,this.state))}function g(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function nt(n,t){Object.keys(t).forEach(function(i){var r="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&g(t[i])&&(r="px");n.style[i]=t[i]+r})}function rr(n,t){Object.keys(t).forEach(function(i){var r=t[i];r!==!1?n.setAttribute(i,t[i]):n.removeAttribute(i)})}function ur(n){return nt(n.instance.popper,n.styles),rr(n.instance.popper,n.attributes),n.offsets.arrow&&nt(n.arrowElement,n.offsets.arrow),n}function fr(n,t,i,r,u){var f=pt(u,t,n),e=yt(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),nt(t,{position:"absolute"}),i}function er(n,t){var k=t.x,d=t.y,r=n.offsets.popper,h=u(n.instance.modifiers,function(n){return n.name==="applyStyle"}).gpuAcceleration,y,p,w;h!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var g=h!==undefined?h:t.gpuAcceleration,nt=s(n.instance.popper),a=b(nt),i={position:r.position},o={left:Math.floor(r.left),top:Math.floor(r.top),bottom:Math.floor(r.bottom),right:Math.floor(r.right)},f=k==="bottom"?"top":"bottom",e=d==="right"?"left":"right",v=gt("transform"),c=void 0,l=void 0;return l=f==="bottom"?-a.height+o.bottom:o.top,c=e==="right"?-a.width+o.right:o.left,g&&v?(i[v]="translate3d("+c+"px, "+l+"px, 0)",i[f]=0,i[e]=0,i.willChange="transform"):(y=f==="bottom"?-1:1,p=e==="right"?-1:1,i[f]=l*y,i[e]=c*p,i.willChange=f+", "+e),w={"x-placement":n.placement},n.attributes=w,n.styles=ti({},i,n.styles),n}function ii(n,t,i){var f=u(n,function(n){var i=n.name;return i===t}),e=!!f&&n.some(function(n){return n.name===i&&n.enabled&&n.order<f.order}),r,o;return e||(r="`"+t+"`",o="`"+i+"`",console.warn(o+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),e}function or(t,i){var u,v,c;if(!ii(t.instance.modifiers,"arrow","keepTogether"))return t;if(u=i.element,typeof u=="string"){if(u=t.instance.popper.querySelector(u),!u)return t}else if(!t.instance.popper.contains(u))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var y=t.placement.split("-")[0],a=t.offsets,o=a.popper,f=a.reference,s=["left","right"].indexOf(y)!==-1,l=s?"height":"width",r=s?"top":"left",p=s?"left":"top",h=s?"bottom":"right",e=wt(u)[l];return f[h]-e<o[r]&&(t.offsets.popper[r]-=o[r]-(f[h]-e)),f[r]+e>o[h]&&(t.offsets.popper[r]+=f[r]+e-o[h]),v=f[r]+f[l]/2-e/2,c=v-n(t.offsets.popper)[r],c=Math.max(Math.min(o[l]-e,c),0),t.arrowElement=u,t.offsets.arrow={},t.offsets.arrow[r]=Math.round(c),t.offsets.arrow[p]="",t}function sr(n){return n==="end"?"start":n==="start"?"end":n}function ri(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,t=a.indexOf(n),i=a.slice(t+1).concat(a.slice(0,t));return r?i.reverse():i}function hr(n,t){if(dt(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var f=d(n.instance.popper,n.instance.reference,t.padding,t.boundariesElement),i=n.placement.split("-")[0],e=l(i),r=n.placement.split("-")[1]||"",u=[];switch(t.behavior){case v.FLIP:u=[i,e];break;case v.CLOCKWISE:u=ri(i);break;case v.COUNTERCLOCKWISE:u=ri(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=l(i);var c=n.offsets.popper,a=n.offsets.reference,h=Math.floor,y=i==="left"&&h(c.right)>h(a.left)||i==="right"&&h(c.left)<h(a.right)||i==="top"&&h(c.bottom)>h(a.top)||i==="bottom"&&h(c.top)<h(a.bottom),p=h(c.left)<h(f.left),w=h(c.right)>h(f.right),b=h(c.top)<h(f.top),k=h(c.bottom)>h(f.bottom),d=i==="left"&&p||i==="right"&&w||i==="top"&&b||i==="bottom"&&k,v=["top","bottom"].indexOf(i)!==-1,g=!!t.flipVariations&&(v&&r==="start"&&p||v&&r==="end"&&w||!v&&r==="start"&&b||!v&&r==="end"&&k);(y||d||g)&&(n.flipped=!0,(y||d)&&(i=u[s+1]),g&&(r=sr(r)),n.placement=i+(r?"-"+r:""),n.offsets.popper=ui({},n.offsets.popper,bt(n.instance.popper,n.offsets.reference,n.placement)),n=kt(n.instance.modifiers,n,"flip"))}),n}function cr(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=["top","bottom"].indexOf(s)!==-1,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}function lr(t,i,r,u){var h=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),e=+h[1],f=h[2],o,c,s;if(!e)return t;if(f.indexOf("%")===0){o=void 0;switch(f){case"%p":o=r;break;case"%":case"%r":default:o=u}return c=n(o),c[i]/100*e}return f==="vh"||f==="vw"?(s=void 0,s=f==="vh"?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),s/100*e):e}function ar(n,t,i,r){var h=[0,0],c=["right","left"].indexOf(r)!==-1,f=n.split(/(\+|\-)/).map(function(n){return n.trim()}),e=f.indexOf(u(f,function(n){return n.search(/,|\s/)!==-1})),s,o;return f[e]&&f[e].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),s=/\s*,\s*|\s+/,o=e!==-1?[f.slice(0,e).concat([f[e].split(s)[0]]),[f[e].split(s)[1]].concat(f.slice(e+1))]:[f],o=o.map(function(n,r){var f=(r===1?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return n[n.length-1]===""&&["+","-"].indexOf(t)!==-1?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return lr(n,f,t,i)})}),o.forEach(function(n,t){n.forEach(function(i,r){g(i)&&(h[t]+=i*(n[r-1]==="-"?-1:1))})}),h}function vr(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=g(+f)?[+f,0]:ar(f,i,s,u),u==="left"?(i.top+=r[0],i.left-=r[1]):u==="right"?(i.top+=r[0],i.left+=r[1]):u==="top"?(i.left+=r[0],i.top-=r[1]):u==="bottom"&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}function ei(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function yr(n,t){var u=t.boundariesElement||s(n.instance.popper),r;n.instance.reference===u&&(u=s(u));r=d(n.instance.popper,n.instance.reference,t.padding,u);t.boundaries=r;var f=t.priority,i=n.offsets.popper,e={primary:function(n){var u=i[n];return i[n]<r[n]&&!t.escapeWithReference&&(u=Math.max(i[n],r[n])),ei({},n,u)},secondary:function(n){var u=n==="right"?"left":"top",f=i[u];return i[n]>r[n]&&!t.escapeWithReference&&(f=Math.min(i[u],r[n]-(n==="right"?i.width:i.height))),ei({},u,f)}};return f.forEach(function(n){var t=["left","top"].indexOf(n)!==-1?"primary":"secondary";i=fi({},i,e[t](n))}),n.offsets.popper=i,n}function si(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function pr(n){var r=n.placement,h=r.split("-")[0],u=r.split("-")[1];if(u){var f=n.offsets,i=f.reference,e=f.popper,o=["bottom","top"].indexOf(h)!==-1,t=o?"left":"top",s=o?"width":"height",c={start:si({},t,i[t]),end:si({},t,i[t]+i[s]-e[s])};n.offsets.popper=oi({},e,c[u])}return n}function wr(n){if(!ii(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=u(n.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(n.hide===!0)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(n.hide===!1)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}function br(t){var i=t.placement,u=i.split("-")[0],f=t.offsets,r=f.popper,o=f.reference,e=["left","right"].indexOf(u)!==-1,s=["top","left"].indexOf(u)===-1;return r[e?"left":"top"]=o[i]-(s?r[e?"width":"height"]:0),t.placement=l(i),t.offsets.popper=n(r),t}function nu(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}for(var hi=["native code","[object MutationObserverConstructor]"],ci=function(n){return hi.some(function(t){return(n||"").toString().indexOf(t)>-1})},it=typeof window!="undefined",rt=["Edge","Trident","Firefox"],ut=0,ft,et,c,r,lt,vt,ti,tt,a,ui,v,fi,oi,f,e=0;e<rt.length;e+=1)if(it&&navigator.userAgent.indexOf(rt[e])>=0){ut=1;break}ft=it&&ci(window.MutationObserver);et=ft?li:ai;c=undefined;r=function(){return c===undefined&&(c=navigator.appVersion.indexOf("MSIE 10")!==-1),c};lt=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};vt=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};ti=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};tt=["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"];a=tt.slice(3);ui=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};v={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};fi=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};oi=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};var kr={shift:{order:100,enabled:!0,fn:pr},offset:{order:200,enabled:!0,fn:vr,offset:0},preventOverflow:{order:300,enabled:!0,fn:yr,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:cr},arrow:{order:500,enabled:!0,fn:or,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:hr,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:br},hide:{order:800,enabled:!0,fn:wr},computeStyle:{order:850,enabled:!0,fn:er,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ur,onLoad:fr,gpuAcceleration:undefined}},dr={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:kr},y=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},gr=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}}();return f=function(){function n(t,i){var r=this,u=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},f;nu(this,n);this.scheduleUpdate=function(){return requestAnimationFrame(r.update)};this.update=et(this.update.bind(this));this.options=y({},n.Defaults,u);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=t.jquery?t[0]:t;this.popper=i.jquery?i[0]:i;this.options.modifiers={};Object.keys(y({},n.Defaults.modifiers,u.modifiers)).forEach(function(t){r.options.modifiers[t]=y({},n.Defaults.modifiers[t]||{},u.modifiers?u.modifiers[t]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(n){return y({name:n},r.options.modifiers[n])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){if(n.enabled&&ot(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 gr(n,[{key:"update",value:function(){return ki.call(this)}},{key:"destroy",value:function(){return di.call(this)}},{key:"enableEventListeners",value:function(){return nr.call(this)}},{key:"disableEventListeners",value:function(){return ir.call(this)}}]),n}(),f.Utils=(typeof window!="undefined"?window:global).PopperUtils,f.placements=tt,f.Defaults=dr,f}),typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");(function(n){var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||t[0]==1&&t[1]==9&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");})(jQuery),function(){function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function e(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function i(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t=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}}(),n=function(n){function f(n){return{}.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function e(n){return(n[0]||n).nodeType}function o(){return{bindType:t.end,delegateType:t.end,handle:function(t){return n(t.target).is(this)?t.handleObj.handler.apply(this,arguments):undefined}}}function s(){var t,n;if(window.QUnit)return!1;t=document.createElement("bootstrap");for(n in r)if(t.style[n]!==undefined)return{end:r[n]};return!1}function h(t){var u=this,r=!1;n(this).one(i.TRANSITION_END,function(){r=!0});return setTimeout(function(){r||i.triggerTransitionEnd(u)},t),this}function c(){t=s();n.fn.emulateTransitionEnd=h;i.supportsTransitionEnd()&&(n.event.special[i.TRANSITION_END]=o())}var t=!1,u=1e6,r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(Math.random()*u);while(document.getElementById(n));return n},getSelectorFromElement:function(t){var i=t.getAttribute("data-target"),r;i&&i!=="#"||(i=t.getAttribute("href")||"");try{return r=n(i),r.length>0?i:null}catch(u){return null}},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(i){n(i).trigger(t.end)},supportsTransitionEnd:function(){return Boolean(t)},typeCheckConfig:function(n,t,i){var r;for(r in i)if(i.hasOwnProperty(r)){var o=i[r],u=t[r],s=u&&e(u)?"element":f(u);if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+": "+('Option "'+r+'" provided type "'+s+'" ')+('but expected type "'+o+'".'));}}};return c(),i}(jQuery),o=function(r){var f="alert",c="4.0.0-beta",e="bs.alert",o="."+e,l=r.fn[f],a=150,s={CLOSE:"close"+o,CLOSED:"closed"+o,CLICK_DATA_API:"click"+o+".data-api"},h={ALERT:"alert",FADE:"fade",SHOW:"show"},u=function(){function u(n){i(this,u);this._element=n}return u.prototype.close=function(n){n=n||this._element;var t=this._getRootElement(n),i=this._triggerCloseEvent(t);i.isDefaultPrevented()||this._removeElement(t)},u.prototype.dispose=function(){r.removeData(this._element,e);this._element=null},u.prototype._getRootElement=function(t){var u=n.getSelectorFromElement(t),i=!1;return u&&(i=r(u)[0]),i||(i=r(t).closest("."+h.ALERT)[0]),i},u.prototype._triggerCloseEvent=function(n){var t=r.Event(s.CLOSE);return r(n).trigger(t),t},u.prototype._removeElement=function(t){var i=this;if(r(t).removeClass(h.SHOW),!n.supportsTransitionEnd()||!r(t).hasClass(h.FADE)){this._destroyElement(t);return}r(t).one(n.TRANSITION_END,function(n){return i._destroyElement(t,n)}).emulateTransitionEnd(a)},u.prototype._destroyElement=function(n){r(n).detach().trigger(s.CLOSED).remove()},u._jQueryInterface=function(n){return this.each(function(){var i=r(this),t=i.data(e);t||(t=new u(this),i.data(e,t));n==="close"&&t[n](this)})},u._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},t(u,null,[{key:"VERSION",get:function(){return c}}]),u}();r(document).on(s.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,u._handleDismiss(new u));return r.fn[f]=u._jQueryInterface,r.fn[f].Constructor=u,r.fn[f].noConflict=function(){return r.fn[f]=l,u._jQueryInterface},u}(jQuery),s=function(n){var f="button",l="4.0.0-beta",o="bs.button",s="."+o,h=".data-api",a=n.fn[f],r={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},u={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},c={CLICK_DATA_API:"click"+s+h,FOCUS_BLUR_DATA_API:"focus"+s+h+" "+("blur"+s+h)},e=function(){function f(n){i(this,f);this._element=n}return f.prototype.toggle=function(){var f=!0,o=!0,i=n(this._element).closest(u.DATA_TOGGLE)[0],t,e;if(i&&(t=n(this._element).find(u.INPUT)[0],t)){if(t.type==="radio"&&(t.checked&&n(this._element).hasClass(r.ACTIVE)?f=!1:(e=n(i).find(u.ACTIVE)[0],e&&n(e).removeClass(r.ACTIVE))),f){if(t.hasAttribute("disabled")||i.hasAttribute("disabled")||t.classList.contains("disabled")||i.classList.contains("disabled"))return;t.checked=!n(this._element).hasClass(r.ACTIVE);n(t).trigger("change")}t.focus();o=!1}o&&this._element.setAttribute("aria-pressed",!n(this._element).hasClass(r.ACTIVE));f&&n(this._element).toggleClass(r.ACTIVE)},f.prototype.dispose=function(){n.removeData(this._element,o);this._element=null},f._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(o);i||(i=new f(this),n(this).data(o,i));t==="toggle"&&i[t]()})},t(f,null,[{key:"VERSION",get:function(){return l}}]),f}();n(document).on(c.CLICK_DATA_API,u.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var i=t.target;n(i).hasClass(r.BUTTON)||(i=n(i).closest(u.BUTTON));e._jQueryInterface.call(n(i),"toggle")}).on(c.FOCUS_BLUR_DATA_API,u.DATA_TOGGLE_CARROT,function(t){var i=n(t.target).closest(u.BUTTON)[0];n(i).toggleClass(r.FOCUS,/^focus(in)?$/.test(t.type))});return n.fn[f]=e._jQueryInterface,n.fn[f].Constructor=e,n.fn[f].noConflict=function(){return n.fn[f]=a,e._jQueryInterface},e}(jQuery),h=function(u){var c="carousel",p="4.0.0-beta",a="bs.carousel",o="."+a,y=".data-api",w=u.fn[c],b=600,k=37,d=39,g=500,v={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},nt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},e={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},s={SLIDE:"slide"+o,SLID:"slid"+o,KEYDOWN:"keydown"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o,TOUCHEND:"touchend"+o,LOAD_DATA_API:"load"+o+y,CLICK_DATA_API:"click"+o+y},f={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},h={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},l=function(){function l(n,t){i(this,l);this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this._config=this._getConfig(t);this._element=u(n)[0];this._indicatorsElement=u(this._element).find(h.INDICATORS)[0];this._addEventListeners()}return l.prototype.next=function(){this._isSliding||this._slide(e.NEXT)},l.prototype.nextWhenVisible=function(){document.hidden||this.next()},l.prototype.prev=function(){this._isSliding||this._slide(e.PREV)},l.prototype.pause=function(t){t||(this._isPaused=!0);u(this._element).find(h.NEXT_PREV)[0]&&n.supportsTransitionEnd()&&(n.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},l.prototype.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))},l.prototype.to=function(n){var r=this,t,i;if(this._activeElement=u(this._element).find(h.ACTIVE_ITEM)[0],t=this._getItemIndex(this._activeElement),!(n>this._items.length-1)&&!(n<0)){if(this._isSliding){u(this._element).one(s.SLID,function(){return r.to(n)});return}if(t===n){this.pause();this.cycle();return}i=n>t?e.NEXT:e.PREV;this._slide(i,this._items[n])}},l.prototype.dispose=function(){u(this._element).off(o);u.removeData(this._element,a);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},l.prototype._getConfig=function(t){return t=u.extend({},v,t),n.typeCheckConfig(c,t,nt),t},l.prototype._addEventListeners=function(){var n=this;if(this._config.keyboard)u(this._element).on(s.KEYDOWN,function(t){return n._keydown(t)});if(this._config.pause==="hover"){u(this._element).on(s.MOUSEENTER,function(t){return n.pause(t)}).on(s.MOUSELEAVE,function(t){return n.cycle(t)});if("ontouchstart"in document.documentElement)u(this._element).on(s.TOUCHEND,function(){n.pause();n.touchTimeout&&clearTimeout(n.touchTimeout);n.touchTimeout=setTimeout(function(t){return n.cycle(t)},g+n._config.interval)})}},l.prototype._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case k:n.preventDefault();this.prev();break;case d:n.preventDefault();this.next();break;default:return}},l.prototype._getItemIndex=function(n){return this._items=u.makeArray(u(n).parent().find(h.ITEM)),this._items.indexOf(n)},l.prototype._getItemByDirection=function(n,t){var f=n===e.NEXT,o=n===e.PREV,i=this._getItemIndex(t),s=this._items.length-1,h=o&&i===0||f&&i===s,u,r;return h&&!this._config.wrap?t:(u=n===e.PREV?-1:1,r=(i+u)%this._items.length,r===-1?this._items[this._items.length-1]:this._items[r])},l.prototype._triggerSlideEvent=function(n,t){var r=this._getItemIndex(n),f=this._getItemIndex(u(this._element).find(h.ACTIVE_ITEM)[0]),i=u.Event(s.SLIDE,{relatedTarget:n,direction:t,from:f,to:r});return u(this._element).trigger(i),i},l.prototype._setActiveIndicatorElement=function(n){if(this._indicatorsElement){u(this._indicatorsElement).find(h.ACTIVE).removeClass(f.ACTIVE);var t=this._indicatorsElement.children[this._getItemIndex(n)];t&&u(t).addClass(f.ACTIVE)}},l.prototype._slide=function(t,i){var y=this,o=u(this._element).find(h.ACTIVE_ITEM)[0],k=this._getItemIndex(o),r=i||o&&this._getItemByDirection(t,o),d=this._getItemIndex(r),p=Boolean(this._interval),c=void 0,l=void 0,a=void 0,w,v;if(t===e.NEXT?(c=f.LEFT,l=f.NEXT,a=e.LEFT):(c=f.RIGHT,l=f.PREV,a=e.RIGHT),r&&u(r).hasClass(f.ACTIVE)){this._isSliding=!1;return}(w=this._triggerSlideEvent(r,a),w.isDefaultPrevented())||o&&r&&(this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(r),v=u.Event(s.SLID,{relatedTarget:r,direction:a,from:k,to:d}),n.supportsTransitionEnd()&&u(this._element).hasClass(f.SLIDE)?(u(r).addClass(l),n.reflow(r),u(o).addClass(c),u(r).addClass(c),u(o).one(n.TRANSITION_END,function(){u(r).removeClass(c+" "+l).addClass(f.ACTIVE);u(o).removeClass(f.ACTIVE+" "+l+" "+c);y._isSliding=!1;setTimeout(function(){return u(y._element).trigger(v)},0)}).emulateTransitionEnd(b)):(u(o).removeClass(f.ACTIVE),u(r).addClass(f.ACTIVE),this._isSliding=!1,u(this._element).trigger(v)),p&&this.cycle())},l._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(a),f=u.extend({},v,u(this).data()),i;if((typeof n=="undefined"?"undefined":r(n))==="object"&&u.extend(f,n),i=typeof n=="string"?n:f.slide,t||(t=new l(this,f),u(this).data(a,t)),typeof n=="number")t.to(n);else if(typeof i=="string"){if(t[i]===undefined)throw new Error('No method named "'+i+'"');t[i]()}else f.interval&&(t.pause(),t.cycle())})},l._dataApiClickHandler=function(t){var o=n.getSelectorFromElement(this),i,e,r;o&&(i=u(o)[0],i&&u(i).hasClass(f.CAROUSEL))&&(e=u.extend({},u(i).data(),u(this).data()),r=this.getAttribute("data-slide-to"),r&&(e.interval=!1),l._jQueryInterface.call(u(i),e),r&&u(i).data(a).to(r),t.preventDefault())},t(l,null,[{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return v}}]),l}();u(document).on(s.CLICK_DATA_API,h.DATA_SLIDE,l._dataApiClickHandler);u(window).on(s.LOAD_DATA_API,function(){u(h.DATA_RIDE).each(function(){var n=u(this);l._jQueryInterface.call(n,n.data())})});return u.fn[c]=l._jQueryInterface,u.fn[c].Constructor=l,u.fn[c].noConflict=function(){return u.fn[c]=w,l._jQueryInterface},l}(jQuery),c=function(u){var o="collapse",p="4.0.0-beta",e="bs.collapse",s="."+e,w=u.fn[o],y=600,l={toggle:!0,parent:""},b={toggle:"boolean",parent:"string"},h={SHOW:"show"+s,SHOWN:"shown"+s,HIDE:"hide"+s,HIDDEN:"hidden"+s,CLICK_DATA_API:"click"+s+".data-api"},f={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},a={WIDTH:"width",HEIGHT:"height"},v={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},c=function(){function s(t,r){var e,f,o,h;for(i(this,s),this._isTransitioning=!1,this._element=t,this._config=this._getConfig(r),this._triggerArray=u.makeArray(u('[data-toggle="collapse"][href="#'+t.id+'"],'+('[data-toggle="collapse"][data-target="#'+t.id+'"]'))),e=u(v.DATA_TOGGLE),f=0;f<e.length;f++)o=e[f],h=n.getSelectorFromElement(o),h!==null&&u(h).filter(t).length>0&&this._triggerArray.push(o);this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}return s.prototype.toggle=function(){u(this._element).hasClass(f.SHOW)?this.hide():this.show()},s.prototype.show=function(){var o=this,t,r,c,i,l,a,p;if(!this._isTransitioning&&!u(this._element).hasClass(f.SHOW)&&(t=void 0,r=void 0,this._parent&&(t=u.makeArray(u(this._parent).children().children(v.ACTIVES)),t.length||(t=null)),!t||(r=u(t).data(e),!r||!r._isTransitioning))&&(c=u.Event(h.SHOW),u(this._element).trigger(c),!c.isDefaultPrevented())){if(t&&(s._jQueryInterface.call(u(t),"hide"),r||u(t).data(e,null)),i=this._getDimension(),u(this._element).removeClass(f.COLLAPSE).addClass(f.COLLAPSING),this._element.style[i]=0,this._triggerArray.length&&u(this._triggerArray).removeClass(f.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),l=function(){u(o._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).addClass(f.SHOW);o._element.style[i]="";o.setTransitioning(!1);u(o._element).trigger(h.SHOWN)},!n.supportsTransitionEnd()){l();return}a=i[0].toUpperCase()+i.slice(1);p="scroll"+a;u(this._element).one(n.TRANSITION_END,l).emulateTransitionEnd(y);this._element.style[i]=this._element[p]+"px"}},s.prototype.hide=function(){var c=this,r,t,i,e,o,l,s;if(!this._isTransitioning&&u(this._element).hasClass(f.SHOW)&&(r=u.Event(h.HIDE),u(this._element).trigger(r),!r.isDefaultPrevented())){if(t=this._getDimension(),this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",n.reflow(this._element),u(this._element).addClass(f.COLLAPSING).removeClass(f.COLLAPSE).removeClass(f.SHOW),this._triggerArray.length)for(i=0;i<this._triggerArray.length;i++)e=this._triggerArray[i],o=n.getSelectorFromElement(e),o!==null&&(l=u(o),l.hasClass(f.SHOW)||u(e).addClass(f.COLLAPSED).attr("aria-expanded",!1));if(this.setTransitioning(!0),s=function(){c.setTransitioning(!1);u(c._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).trigger(h.HIDDEN)},this._element.style[t]="",!n.supportsTransitionEnd()){s();return}u(this._element).one(n.TRANSITION_END,s).emulateTransitionEnd(y)}},s.prototype.setTransitioning=function(n){this._isTransitioning=n},s.prototype.dispose=function(){u.removeData(this._element,e);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},s.prototype._getConfig=function(t){return t=u.extend({},l,t),t.toggle=Boolean(t.toggle),n.typeCheckConfig(o,t,b),t},s.prototype._getDimension=function(){var n=u(this._element).hasClass(a.WIDTH);return n?a.WIDTH:a.HEIGHT},s.prototype._getParent=function(){var t=this,n=u(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return u(n).find(i).each(function(n,i){t._addAriaAndCollapsedClass(s._getTargetFromElement(i),[i])}),n},s.prototype._addAriaAndCollapsedClass=function(n,t){if(n){var i=u(n).hasClass(f.SHOW);t.length&&u(t).toggleClass(f.COLLAPSED,!i).attr("aria-expanded",i)}},s._getTargetFromElement=function(t){var i=n.getSelectorFromElement(t);return i?u(i)[0]:null},s._jQueryInterface=function(n){return this.each(function(){var i=u(this),t=i.data(e),f=u.extend({},l,i.data(),(typeof n=="undefined"?"undefined":r(n))==="object"&&n);if(!t&&f.toggle&&/show|hide/.test(n)&&(f.toggle=!1),t||(t=new s(this,f),i.data(e,t)),typeof n=="string"){if(t[n]===undefined)throw new Error('No method named "'+n+'"');t[n]()}})},t(s,null,[{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return l}}]),s}();u(document).on(h.CLICK_DATA_API,v.DATA_TOGGLE,function(t){/input|textarea/i.test(t.target.tagName)||t.preventDefault();var i=u(this),r=n.getSelectorFromElement(this);u(r).each(function(){var n=u(this),t=n.data(e),r=t?"toggle":i.data();c._jQueryInterface.call(n,r)})});return u.fn[o]=c._jQueryInterface,u.fn[o].Constructor=c,u.fn[o].noConflict=function(){return u.fn[o]=w,c._jQueryInterface},c}(jQuery),l=function(u){if(typeof Popper=="undefined")throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var c="dropdown",d="4.0.0-beta",a="bs.dropdown",o="."+a,y=".data-api",g=u.fn[c],v=27,p=32,w=9,b=38,k=40,nt=3,tt=new RegExp(b+"|"+k+"|"+v),e={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK:"click"+o,CLICK_DATA_API:"click"+o+y,KEYDOWN_DATA_API:"keydown"+o+y,KEYUP_DATA_API:"keyup"+o+y},f={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left"},s={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},l={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},it={placement:l.BOTTOM,offset:0,flip:!0},rt={placement:"string",offset:"(number|string)",flip:"boolean"},h=function(){function h(n,t){i(this,h);this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}return h.prototype.toggle=function(){var n,o,t,i,r;if(!this._element.disabled&&!u(this._element).hasClass(f.DISABLED)&&(n=h._getParentFromElement(this._element),o=u(this._menu).hasClass(f.SHOW),h._clearMenus(),!o)&&(t={relatedTarget:this._element},i=u.Event(e.SHOW,t),u(n).trigger(i),!i.isDefaultPrevented())){if(r=this._element,u(n).hasClass(f.DROPUP)&&(u(this._menu).hasClass(f.MENULEFT)||u(this._menu).hasClass(f.MENURIGHT))&&(r=n),this._popper=new Popper(r,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!u(n).closest(s.NAVBAR_NAV).length)u("body").children().on("mouseover",null,u.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);u(this._menu).toggleClass(f.SHOW);u(n).toggleClass(f.SHOW).trigger(u.Event(e.SHOWN,t))}},h.prototype.dispose=function(){u.removeData(this._element,a);u(this._element).off(o);this._element=null;this._menu=null;this._popper!==null&&this._popper.destroy();this._popper=null},h.prototype.update=function(){this._inNavbar=this._detectNavbar();this._popper!==null&&this._popper.scheduleUpdate()},h.prototype._addEventListeners=function(){var n=this;u(this._element).on(e.CLICK,function(t){t.preventDefault();t.stopPropagation();n.toggle()})},h.prototype._getConfig=function(t){var i=u(this._element).data();return i.placement!==undefined&&(i.placement=l[i.placement.toUpperCase()]),t=u.extend({},this.constructor.Default,u(this._element).data(),t),n.typeCheckConfig(c,t,this.constructor.DefaultType),t},h.prototype._getMenuElement=function(){if(!this._menu){var n=h._getParentFromElement(this._element);this._menu=u(n).find(s.MENU)[0]}return this._menu},h.prototype._getPlacement=function(){var t=u(this._element).parent(),n=this._config.placement;return t.hasClass(f.DROPUP)||this._config.placement===l.TOP?(n=l.TOP,u(this._menu).hasClass(f.MENURIGHT)&&(n=l.TOPEND)):u(this._menu).hasClass(f.MENURIGHT)&&(n=l.BOTTOMEND),n},h.prototype._detectNavbar=function(){return u(this._element).closest(".navbar").length>0},h.prototype._getPopperConfig=function(){var n={placement:this._getPlacement(),modifiers:{offset:{offset:this._config.offset},flip:{enabled:this._config.flip}}};return this._inNavbar&&(n.modifiers.applyStyle={enabled:!this._inNavbar}),n},h._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(a),i=(typeof n=="undefined"?"undefined":r(n))==="object"?n:null;if(t||(t=new h(this,i),u(this).data(a,t)),typeof n=="string"){if(t[n]===undefined)throw new Error('No method named "'+n+'"');t[n]()}})},h._clearMenus=function(n){var i,t,v,o;if(!n||n.which!==nt&&(n.type!=="keyup"||n.which===w))for(i=u.makeArray(u(s.DATA_TOGGLE)),t=0;t<i.length;t++){var r=h._getParentFromElement(i[t]),c=u(i[t]).data(a),l={relatedTarget:i[t]};c&&(v=c._menu,u(r).hasClass(f.SHOW))&&(n&&(n.type==="click"&&/input|textarea/i.test(n.target.tagName)||n.type==="keyup"&&n.which===w)&&u.contains(r,n.target)||(o=u.Event(e.HIDE,l),u(r).trigger(o),o.isDefaultPrevented())||("ontouchstart"in document.documentElement&&u("body").children().off("mouseover",null,u.noop),i[t].setAttribute("aria-expanded","false"),u(v).removeClass(f.SHOW),u(r).removeClass(f.SHOW).trigger(u.Event(e.HIDDEN,l))))}},h._getParentFromElement=function(t){var i=void 0,r=n.getSelectorFromElement(t);return r&&(i=u(r)[0]),i||t.parentNode},h._dataApiKeydownHandler=function(n){var r,e,o,i,t;if(tt.test(n.which)&&(!/button/i.test(n.target.tagName)||n.which!==p)&&!/input|textarea/i.test(n.target.tagName)&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!u(this).hasClass(f.DISABLED))){if(r=h._getParentFromElement(this),e=u(r).hasClass(f.SHOW),!e&&(n.which!==v||n.which!==p)||e&&(n.which===v||n.which===p)){n.which===v&&(o=u(r).find(s.DATA_TOGGLE)[0],u(o).trigger("focus"));u(this).trigger("click");return}(i=u(r).find(s.VISIBLE_ITEMS).get(),i.length)&&(t=i.indexOf(n.target),n.which===b&&t>0&&t--,n.which===k&&t<i.length-1&&t++,t<0&&(t=0),i[t].focus())}},t(h,null,[{key:"VERSION",get:function(){return d}},{key:"Default",get:function(){return it}},{key:"DefaultType",get:function(){return rt}}]),h}();u(document).on(e.KEYDOWN_DATA_API,s.DATA_TOGGLE,h._dataApiKeydownHandler).on(e.KEYDOWN_DATA_API,s.MENU,h._dataApiKeydownHandler).on(e.CLICK_DATA_API+" "+e.KEYUP_DATA_API,h._clearMenus).on(e.CLICK_DATA_API,s.DATA_TOGGLE,function(n){n.preventDefault();n.stopPropagation();h._jQueryInterface.call(u(this),"toggle")}).on(e.CLICK_DATA_API,s.FORM_CHILD,function(n){n.stopPropagation()});return u.fn[c]=h._jQueryInterface,u.fn[c].Constructor=h,u.fn[c].noConflict=function(){return u.fn[c]=g,h._jQueryInterface},h}(jQuery),a=function(u){var h="modal",p="4.0.0-beta",c="bs.modal",o="."+c,w=u.fn[h],a=300,v=150,b=27,y={backdrop:!0,keyboard:!0,focus:!0,show:!0},k={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},f={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,FOCUSIN:"focusin"+o,RESIZE:"resize"+o,CLICK_DISMISS:"click.dismiss"+o,KEYDOWN_DISMISS:"keydown.dismiss"+o,MOUSEUP_DISMISS:"mouseup.dismiss"+o,MOUSEDOWN_DISMISS:"mousedown.dismiss"+o,CLICK_DATA_API:"click"+o+".data-api"},e={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},s={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},l=function(){function l(n,t){i(this,l);this._config=this._getConfig(t);this._element=n;this._dialog=u(n).find(s.DIALOG)[0];this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._originalBodyPadding=0;this._scrollbarWidth=0}return l.prototype.toggle=function(n){return this._isShown?this.hide():this.show(n)},l.prototype.show=function(t){var i=this,r;if(!this._isTransitioning&&(n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE)&&(this._isTransitioning=!0),r=u.Event(f.SHOW,{relatedTarget:t}),u(this._element).trigger(r),!this._isShown&&!r.isDefaultPrevented())){this._isShown=!0;this._checkScrollbar();this._setScrollbar();u(document.body).addClass(e.OPEN);this._setEscapeEvent();this._setResizeEvent();u(this._element).on(f.CLICK_DISMISS,s.DATA_DISMISS,function(n){return i.hide(n)});u(this._dialog).on(f.MOUSEDOWN_DISMISS,function(){u(i._element).one(f.MOUSEUP_DISMISS,function(n){u(n.target).is(i._element)&&(i._ignoreBackdropClick=!0)})});this._showBackdrop(function(){return i._showElement(t)})}},l.prototype.hide=function(t){var o=this,i,r;(t&&t.preventDefault(),!this._isTransitioning&&this._isShown)&&(i=n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE),i&&(this._isTransitioning=!0),r=u.Event(f.HIDE),u(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented())&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),u(document).off(f.FOCUSIN),u(this._element).removeClass(e.SHOW),u(this._element).off(f.CLICK_DISMISS),u(this._dialog).off(f.MOUSEDOWN_DISMISS),i?u(this._element).one(n.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(a):this._hideModal())},l.prototype.dispose=function(){u.removeData(this._element,c);u(window,document,this._element,this._backdrop).off(o);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null},l.prototype.handleUpdate=function(){this._adjustDialog()},l.prototype._getConfig=function(t){return t=u.extend({},y,t),n.typeCheckConfig(h,t,k),t},l.prototype._showElement=function(t){var i=this,o=n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE),s,r;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.scrollTop=0;o&&n.reflow(this._element);u(this._element).addClass(e.SHOW);this._config.focus&&this._enforceFocus();s=u.Event(f.SHOWN,{relatedTarget:t});r=function(){i._config.focus&&i._element.focus();i._isTransitioning=!1;u(i._element).trigger(s)};o?u(this._dialog).one(n.TRANSITION_END,r).emulateTransitionEnd(a):r()},l.prototype._enforceFocus=function(){var n=this;u(document).off(f.FOCUSIN).on(f.FOCUSIN,function(t){document===t.target||n._element===t.target||u(n._element).has(t.target).length||n._element.focus()})},l.prototype._setEscapeEvent=function(){var n=this;if(this._isShown&&this._config.keyboard)u(this._element).on(f.KEYDOWN_DISMISS,function(t){t.which===b&&(t.preventDefault(),n.hide())});else this._isShown||u(this._element).off(f.KEYDOWN_DISMISS)},l.prototype._setResizeEvent=function(){var n=this;if(this._isShown)u(window).on(f.RESIZE,function(t){return n.handleUpdate(t)});else u(window).off(f.RESIZE)},l.prototype._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._isTransitioning=!1;this._showBackdrop(function(){u(document.body).removeClass(e.OPEN);n._resetAdjustments();n._resetScrollbar();u(n._element).trigger(f.HIDDEN)})},l.prototype._removeBackdrop=function(){this._backdrop&&(u(this._backdrop).remove(),this._backdrop=null)},l.prototype._showBackdrop=function(t){var i=this,r=u(this._element).hasClass(e.FADE)?e.FADE:"",o,s;if(this._isShown&&this._config.backdrop){o=n.supportsTransitionEnd()&&r;this._backdrop=document.createElement("div");this._backdrop.className=e.BACKDROP;r&&u(this._backdrop).addClass(r);u(this._backdrop).appendTo(document.body);u(this._element).on(f.CLICK_DISMISS,function(n){if(i._ignoreBackdropClick){i._ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(i._config.backdrop==="static"?i._element.focus():i.hide())});if(o&&n.reflow(this._backdrop),u(this._backdrop).addClass(e.SHOW),!t)return;if(!o){t();return}u(this._backdrop).one(n.TRANSITION_END,t).emulateTransitionEnd(v)}else!this._isShown&&this._backdrop?(u(this._backdrop).removeClass(e.SHOW),s=function(){i._removeBackdrop();t&&t()},n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE)?u(this._backdrop).one(n.TRANSITION_END,s).emulateTransitionEnd(v):s()):t&&t()},l.prototype._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")},l.prototype._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},l.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},l.prototype._setScrollbar=function(){var n=this,t,i;this._isBodyOverflowing&&(u(s.FIXED_CONTENT).each(function(t,i){var r=u(i)[0].style.paddingRight,f=u(i).css("padding-right");u(i).data("padding-right",r).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),u(s.NAVBAR_TOGGLER).each(function(t,i){var r=u(i)[0].style.marginRight,f=u(i).css("margin-right");u(i).data("margin-right",r).css("margin-right",parseFloat(f)+n._scrollbarWidth+"px")}),t=document.body.style.paddingRight,i=u("body").css("padding-right"),u("body").data("padding-right",t).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px"))},l.prototype._resetScrollbar=function(){u(s.FIXED_CONTENT).each(function(n,t){var i=u(t).data("padding-right");typeof i!="undefined"&&u(t).css("padding-right",i).removeData("padding-right")});u(s.NAVBAR_TOGGLER).each(function(n,t){var i=u(t).data("margin-right");typeof i!="undefined"&&u(t).css("margin-right",i).removeData("margin-right")});var n=u("body").data("padding-right");typeof n!="undefined"&&u("body").css("padding-right",n).removeData("padding-right")},l.prototype._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=e.SCROLLBAR_MEASURER,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},l._jQueryInterface=function(n,t){return this.each(function(){var i=u(this).data(c),f=u.extend({},l.Default,u(this).data(),(typeof n=="undefined"?"undefined":r(n))==="object"&&n);if(i||(i=new l(this,f),u(this).data(c,i)),typeof n=="string"){if(i[n]===undefined)throw new Error('No method named "'+n+'"');i[n](t)}else f.show&&i.show(t)})},t(l,null,[{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return y}}]),l}();u(document).on(f.CLICK_DATA_API,s.DATA_TOGGLE,function(t){var r=this,i=void 0,e=n.getSelectorFromElement(this),o,s;e&&(i=u(e)[0]);o=u(i).data(c)?"toggle":u.extend({},u(i).data(),u(this).data());(this.tagName==="A"||this.tagName==="AREA")&&t.preventDefault();s=u(i).one(f.SHOW,function(n){if(!n.isDefaultPrevented())s.one(f.HIDDEN,function(){u(r).is(":visible")&&r.focus()})});l._jQueryInterface.call(u(i),o,this)});return u.fn[h]=l._jQueryInterface,u.fn[h].Constructor=l,u.fn[h].noConflict=function(){return u.fn[h]=w,l._jQueryInterface},l}(jQuery),v=function(u){var e="scrollspy",y="4.0.0-beta",h="bs.scrollspy",c="."+h,p=u.fn[e],v={offset:10,method:"auto",target:""},w={offset:"number",method:"string",target:"(string|element)"},l={ACTIVATE:"activate"+c,SCROLL:"scroll"+c,LOAD_DATA_API:"load"+c+".data-api"},o={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},a={OFFSET:"offset",POSITION:"position"},s=function(){function s(n,t){var r=this;i(this,s);this._element=n;this._scrollElement=n.tagName==="BODY"?window:n;this._config=this._getConfig(t);this._selector=this._config.target+" "+f.NAV_LINKS+","+(this._config.target+" "+f.LIST_ITEMS+",")+(this._config.target+" "+f.DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;u(this._scrollElement).on(l.SCROLL,function(n){return r._process(n)});this.refresh();this._process()}return s.prototype.refresh=function(){var t=this,f=this._scrollElement!==this._scrollElement.window?a.POSITION:a.OFFSET,i=this._config.method==="auto"?f:this._config.method,e=i===a.POSITION?this._getScrollTop():0,r;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();r=u.makeArray(u(this._selector));r.map(function(t){var r=void 0,f=n.getSelectorFromElement(t),o;return(f&&(r=u(f)[0]),r&&(o=r.getBoundingClientRect(),o.width||o.height))?[u(r)[i]().top+e,f]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(n){t._offsets.push(n[0]);t._targets.push(n[1])})},s.prototype.dispose=function(){u.removeData(this._element,h);u(this._scrollElement).off(c);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},s.prototype._getConfig=function(t){if(t=u.extend({},v,t),typeof t.target!="string"){var i=u(t.target).attr("id");i||(i=n.getUID(e),u(t.target).attr("id",i));t.target="#"+i}return n.typeCheckConfig(e,t,w),t},s.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},s.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},s.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},s.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),f=this._config.offset+r-this._getOffsetHeight(),i,n,u;if(this._scrollHeight!==r&&this.refresh(),t>=f){i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return}for(n=this._offsets.length;n--;)u=this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(this._offsets[n+1]===undefined||t<this._offsets[n+1]),u&&this._activate(this._targets[n])},s.prototype._activate=function(n){var i,t;this._activeTarget=n;this._clear();i=this._selector.split(",");i=i.map(function(t){return t+'[data-target="'+n+'"],'+(t+'[href="'+n+'"]')});t=u(i.join(","));t.hasClass(o.DROPDOWN_ITEM)?(t.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(o.ACTIVE),t.addClass(o.ACTIVE)):(t.addClass(o.ACTIVE),t.parents(f.NAV_LIST_GROUP).prev(f.NAV_LINKS+", "+f.LIST_ITEMS).addClass(o.ACTIVE));u(this._scrollElement).trigger(l.ACTIVATE,{relatedTarget:n})},s.prototype._clear=function(){u(this._selector).filter(f.ACTIVE).removeClass(o.ACTIVE)},s._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(h),i=(typeof n=="undefined"?"undefined":r(n))==="object"&&n;if(t||(t=new s(this,i),u(this).data(h,t)),typeof n=="string"){if(t[n]===undefined)throw new Error('No method named "'+n+'"');t[n]()}})},t(s,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return v}}]),s}();u(window).on(l.LOAD_DATA_API,function(){for(var i=u.makeArray(u(f.DATA_SPY)),t,n=i.length;n--;)t=u(i[n]),s._jQueryInterface.call(t,t.data())});return u.fn[e]=s._jQueryInterface,u.fn[e].Constructor=s,u.fn[e].noConflict=function(){return u.fn[e]=p,s._jQueryInterface},s}(jQuery),y=function(r){var e="tab",l="4.0.0-beta",c="bs.tab",o="."+c,a=r.fn[e],v=150,s={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK_DATA_API:"click"+o+".data-api"},u={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},f={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},h=function(){function e(n){i(this,e);this._element=n}return e.prototype.show=function(){var l=this,o,h,c;if((!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!r(this._element).hasClass(u.ACTIVE))&&!r(this._element).hasClass(u.DISABLED)){var i=void 0,t=void 0,e=r(this._element).closest(f.NAV_LIST_GROUP)[0],a=n.getSelectorFromElement(this._element);(e&&(t=r.makeArray(r(e).find(f.ACTIVE)),t=t[t.length-1]),o=r.Event(s.HIDE,{relatedTarget:this._element}),h=r.Event(s.SHOW,{relatedTarget:t}),t&&r(t).trigger(o),r(this._element).trigger(h),h.isDefaultPrevented()||o.isDefaultPrevented())||(a&&(i=r(a)[0]),this._activate(this._element,e),c=function(){var n=r.Event(s.HIDDEN,{relatedTarget:l._element}),i=r.Event(s.SHOWN,{relatedTarget:t});r(t).trigger(n);r(l._element).trigger(i)},i?this._activate(i,i.parentNode,c):c())}},e.prototype.dispose=function(){r.removeData(this._element,c);this._element=null},e.prototype._activate=function(t,i,e){var c=this,o=r(i).find(f.ACTIVE)[0],s=e&&n.supportsTransitionEnd()&&o&&r(o).hasClass(u.FADE),h=function(){return c._transitionComplete(t,o,s,e)};o&&s?r(o).one(n.TRANSITION_END,h).emulateTransitionEnd(v):h();o&&r(o).removeClass(u.SHOW)},e.prototype._transitionComplete=function(t,i,e,o){var s,h;i&&(r(i).removeClass(u.ACTIVE),s=r(i.parentNode).find(f.DROPDOWN_ACTIVE_CHILD)[0],s&&r(s).removeClass(u.ACTIVE),i.setAttribute("aria-expanded",!1));r(t).addClass(u.ACTIVE);t.setAttribute("aria-expanded",!0);e?(n.reflow(t),r(t).addClass(u.SHOW)):r(t).removeClass(u.FADE);t.parentNode&&r(t.parentNode).hasClass(u.DROPDOWN_MENU)&&(h=r(t).closest(f.DROPDOWN)[0],h&&r(h).find(f.DROPDOWN_TOGGLE).addClass(u.ACTIVE),t.setAttribute("aria-expanded",!0));o&&o()},e._jQueryInterface=function(n){return this.each(function(){var i=r(this),t=i.data(c);if(t||(t=new e(this),i.data(c,t)),typeof n=="string"){if(t[n]===undefined)throw new Error('No method named "'+n+'"');t[n]()}})},t(e,null,[{key:"VERSION",get:function(){return l}}]),e}();r(document).on(s.CLICK_DATA_API,f.DATA_TOGGLE,function(n){n.preventDefault();h._jQueryInterface.call(r(this),"show")});return r.fn[e]=h._jQueryInterface,r.fn[e].Constructor=h,r.fn[e].noConflict=function(){return r.fn[e]=a,h._jQueryInterface},h}(jQuery),u=function(u){if(typeof Popper=="undefined")throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var h="tooltip",y="4.0.0-beta",c="bs.tooltip",f="."+c,p=u.fn[h],w=150,a="bs-tooltip",b=new RegExp("(^|\\s)"+a+"\\S+","g"),k={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)"},d={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},g={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"},s={SHOW:"show",OUT:"out"},nt={HIDE:"hide"+f,HIDDEN:"hidden"+f,SHOW:"show"+f,SHOWN:"shown"+f,INSERTED:"inserted"+f,CLICK:"click"+f,FOCUSIN:"focusin"+f,FOCUSOUT:"focusout"+f,MOUSEENTER:"mouseenter"+f,MOUSELEAVE:"mouseleave"+f},e={FADE:"fade",SHOW:"show"},v={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},o={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},l=function(){function l(n,t){i(this,l);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()}return l.prototype.enable=function(){this._isEnabled=!0},l.prototype.disable=function(){this._isEnabled=!1},l.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},l.prototype.toggle=function(n){if(n){var i=this.constructor.DATA_KEY,t=u(n.currentTarget).data(i);t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));t._activeTrigger.click=!t._activeTrigger.click;t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(u(this.getTipElement()).hasClass(e.SHOW)){this._leave(null,this);return}this._enter(null,this)}},l.prototype.dispose=function(){clearTimeout(this._timeout);u.removeData(this.element,this.constructor.DATA_KEY);u(this.element).off(this.constructor.EVENT_KEY);u(this.element).closest(".modal").off("hide.bs.modal");this.tip&&u(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;this._popper!==null&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},l.prototype.show=function(){var t=this,r,c,i,f,a,o,y,h;if(u(this.element).css("display")==="none")throw new Error("Please use show on visible elements");if(r=u.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(u(this.element).trigger(r),c=u.contains(this.element.ownerDocument.documentElement,this.element),r.isDefaultPrevented()||!c)return;if(i=this.getTipElement(),f=n.getUID(this.constructor.NAME),i.setAttribute("id",f),this.element.setAttribute("aria-describedby",f),this.setContent(),this.config.animation&&u(i).addClass(e.FADE),a=typeof this.config.placement=="function"?this.config.placement.call(this,i,this.element):this.config.placement,o=this._getAttachment(a),this.addAttachmentClass(o),y=this.config.container===!1?document.body:u(this.config.container),u(i).data(this.constructor.DATA_KEY,this),u.contains(this.element.ownerDocument.documentElement,this.tip)||u(i).appendTo(y),u(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Popper(this.element,i,{placement:o,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:v.ARROW}},onCreate:function(n){n.originalPlacement!==n.placement&&t._handlePopperPlacementChange(n)},onUpdate:function(n){t._handlePopperPlacementChange(n)}}),u(i).addClass(e.SHOW),"ontouchstart"in document.documentElement)u("body").children().on("mouseover",null,u.noop);h=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null;u(t.element).trigger(t.constructor.Event.SHOWN);n===s.OUT&&t._leave(null,t)};n.supportsTransitionEnd()&&u(this.tip).hasClass(e.FADE)?u(this.tip).one(n.TRANSITION_END,h).emulateTransitionEnd(l._TRANSITION_DURATION):h()}},l.prototype.hide=function(t){var i=this,r=this.getTipElement(),f=u.Event(this.constructor.Event.HIDE),h=function(){i._hoverState!==s.SHOW&&r.parentNode&&r.parentNode.removeChild(r);i._cleanTipClass();i.element.removeAttribute("aria-describedby");u(i.element).trigger(i.constructor.Event.HIDDEN);i._popper!==null&&i._popper.destroy();t&&t()};(u(this.element).trigger(f),f.isDefaultPrevented())||(u(r).removeClass(e.SHOW),"ontouchstart"in document.documentElement&&u("body").children().off("mouseover",null,u.noop),this._activeTrigger[o.CLICK]=!1,this._activeTrigger[o.FOCUS]=!1,this._activeTrigger[o.HOVER]=!1,n.supportsTransitionEnd()&&u(this.tip).hasClass(e.FADE)?u(r).one(n.TRANSITION_END,h).emulateTransitionEnd(w):h(),this._hoverState="")},l.prototype.update=function(){this._popper!==null&&this._popper.scheduleUpdate()},l.prototype.isWithContent=function(){return Boolean(this.getTitle())},l.prototype.addAttachmentClass=function(n){u(this.getTipElement()).addClass(a+"-"+n)},l.prototype.getTipElement=function(){return this.tip=this.tip||u(this.config.template)[0]},l.prototype.setContent=function(){var n=u(this.getTipElement());this.setElementContent(n.find(v.TOOLTIP_INNER),this.getTitle());n.removeClass(e.FADE+" "+e.SHOW)},l.prototype.setElementContent=function(n,t){var i=this.config.html;(typeof t=="undefined"?"undefined":r(t))==="object"&&(t.nodeType||t.jquery)?i?u(t).parent().is(n)||n.empty().append(t):n.text(u(t).text()):n[i?"html":"text"](t)},l.prototype.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n=typeof this.config.title=="function"?this.config.title.call(this.element):this.config.title),n},l.prototype._getAttachment=function(n){return d[n.toUpperCase()]},l.prototype._setListeners=function(){var n=this,t=this.config.trigger.split(" ");t.forEach(function(t){if(t==="click")u(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(t!==o.MANUAL){var i=t===o.HOVER?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,r=t===o.HOVER?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;u(n.element).on(i,n.config.selector,function(t){return n._enter(t)}).on(r,n.config.selector,function(t){return n._leave(t)})}u(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})});this.config.selector?this.config=u.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},l.prototype._fixTitle=function(){var n=r(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||n!=="string")&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},l.prototype._enter=function(n,t){var i=this.constructor.DATA_KEY;if(t=t||u(n.currentTarget).data(i),t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t)),n&&(t._activeTrigger[n.type==="focusin"?o.FOCUS:o.HOVER]=!0),u(t.getTipElement()).hasClass(e.SHOW)||t._hoverState===s.SHOW){t._hoverState=s.SHOW;return}if(clearTimeout(t._timeout),t._hoverState=s.SHOW,!t.config.delay||!t.config.delay.show){t.show();return}t._timeout=setTimeout(function(){t._hoverState===s.SHOW&&t.show()},t.config.delay.show)},l.prototype._leave=function(n,t){var i=this.constructor.DATA_KEY;if(t=t||u(n.currentTarget).data(i),t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t)),n&&(t._activeTrigger[n.type==="focusout"?o.FOCUS:o.HOVER]=!1),!t._isWithActiveTrigger()){if(clearTimeout(t._timeout),t._hoverState=s.OUT,!t.config.delay||!t.config.delay.hide){t.hide();return}t._timeout=setTimeout(function(){t._hoverState===s.OUT&&t.hide()},t.config.delay.hide)}},l.prototype._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},l.prototype._getConfig=function(t){return t=u.extend({},this.constructor.Default,u(this.element).data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t.title&&typeof t.title=="number"&&(t.title=t.title.toString()),t.content&&typeof t.content=="number"&&(t.content=t.content.toString()),n.typeCheckConfig(h,t,this.constructor.DefaultType),t},l.prototype._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},l.prototype._cleanTipClass=function(){var t=u(this.getTipElement()),n=t.attr("class").match(b);n!==null&&n.length>0&&t.removeClass(n.join(""))},l.prototype._handlePopperPlacementChange=function(n){this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},l.prototype._fixTransition=function(){var n=this.getTipElement(),t=this.config.animation;n.getAttribute("x-placement")===null&&(u(n).removeClass(e.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},l._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(c),i=(typeof n=="undefined"?"undefined":r(n))==="object"&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new l(this,i),u(this).data(c,t)),typeof n=="string")){if(t[n]===undefined)throw new Error('No method named "'+n+'"');t[n]()}})},t(l,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return g}},{key:"NAME",get:function(){return h}},{key:"DATA_KEY",get:function(){return c}},{key:"Event",get:function(){return nt}},{key:"EVENT_KEY",get:function(){return f}},{key:"DefaultType",get:function(){return k}}]),l}();return u.fn[h]=l._jQueryInterface,u.fn[h].Constructor=l,u.fn[h].noConflict=function(){return u.fn[h]=p,l._jQueryInterface},l}(jQuery),p=function(n){var s="popover",y="4.0.0-beta",h="bs.popover",o="."+h,p=n.fn[s],l="bs-popover",w=new RegExp("(^|\\s)"+l+"\\S+","g"),b=n.extend({},u.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>'}),k=n.extend({},u.DefaultType,{content:"(string|element|function)"}),a={FADE:"fade",SHOW:"show"},v={TITLE:".popover-header",CONTENT:".popover-body"},d={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},c=function(u){function c(){return i(this,c),f(this,u.apply(this,arguments))}return e(c,u),c.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},c.prototype.addAttachmentClass=function(t){n(this.getTipElement()).addClass(l+"-"+t)},c.prototype.getTipElement=function(){return this.tip=this.tip||n(this.config.template)[0]},c.prototype.setContent=function(){var t=n(this.getTipElement());this.setElementContent(t.find(v.TITLE),this.getTitle());this.setElementContent(t.find(v.CONTENT),this._getContent());t.removeClass(a.FADE+" "+a.SHOW)},c.prototype._getContent=function(){return this.element.getAttribute("data-content")||(typeof this.config.content=="function"?this.config.content.call(this.element):this.config.content)},c.prototype._cleanTipClass=function(){var i=n(this.getTipElement()),t=i.attr("class").match(w);t!==null&&t.length>0&&i.removeClass(t.join(""))},c._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(h),u=(typeof t=="undefined"?"undefined":r(t))==="object"?t:null;if((i||!/destroy|hide/.test(t))&&(i||(i=new c(this,u),n(this).data(h,i)),typeof t=="string")){if(i[t]===undefined)throw new Error('No method named "'+t+'"');i[t]()}})},t(c,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return b}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return h}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return k}}]),c}(u);return n.fn[s]=c._jQueryInterface,n.fn[s].Constructor=c,n.fn[s].noConflict=function(){return n.fn[s]=p,c._jQueryInterface},c}(jQuery)}(),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n,t){function f(){return new Date(Date.UTC.apply(Date,arguments))}function s(){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 s(n,t){return t.toLowerCase()}var u=n(t).data(),f={},e,o=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in u)i.test(r)&&(e=r.replace(o,s),f[e]=u[r]);return f}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._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, .btn"):!1;this.component&&this.component.length===0&&(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,o,e,y,r,i;u.prototype={constructor:u,_resolveViewName:function(t){return n.each(i.viewModes,function(i,r){if(t===i||n.inArray(t,r.names)!==-1)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{if(i===t||i==="")return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;var r=n(i);return r.length>0}catch(u){return!1}},_process_options:function(t){var u,h,l,o,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)),u.multidate!==!0&&(u.multidate=Number(u.multidate)||!1,u.multidate!==!1&&(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!==-Infinity&&(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):-Infinity),u.endDate!==Infinity&&(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):Infinity),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)}),o=String(u.orientation).toLowerCase().split(/\s+/g),c=u.orientation.toLowerCase(),o=n.grep(o,function(n){return/^auto|left|right|top|bottom$/.test(n)}),u.orientation={x:"auto",y:"auto"},c&&c!=="auto")if(o.length===1)switch(o[0]){case"top":case"bottom":u.orientation.y=o[0];break;case"left":case"right":u.orientation.x=o[0]}else c=n.grep(o,function(n){return/^left|right$/.test(n)}),u.orientation.x=c[0]||"auto",c=n.grep(o,function(n){return/^top|bottom$/.test(n)}),u.orientation.y=c[0]||"auto";if(u.defaultViewDate instanceof Date||typeof u.defaultViewDate=="string")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=s()},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var i=0,f,r,u;i<n.length;i++){f=n[i][0];n[i].length===2?(r=t,u=n[i][1]):n[i].length===3&&(r=n[i][1],u=n[i][2]);f.on(u,r)}},_unapplyEvents:function(n){for(var i=0,f,r,u;i<n.length;i++)f=n[i][0],n[i].length===2?(u=t,r=n[i][1]):n[i].length===3&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){var t={keyup:n.proxy(function(t){n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:n.proxy(this.keydown,this),paste:n.proxy(this.paste,this)};this.o.showOnFocus===!0&&(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){arguments.length===0?(n=this.dates.length-1,t=this.o.format):typeof n=="string"&&(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.prop("disabled")&&(!this.inputField.prop("readonly")||this.o.enableOnReadonly!==!1))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&&n.inArray("text/plain",t.originalEvent.clipboardData.types)!==-1)i=t.originalEvent.clipboardData.getData("text/plain");else if(window.clipboardData)i=window.clipboardData.getData("Text");else return;this.setDate(i);this.update();t.preventDefault()},_utc_to_local:function(n){if(!n)return n;var t=new Date(n.getTime()+n.getTimezoneOffset()*6e4);return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(t=new Date(n.getTime()+t.getTimezoneOffset()*6e4)),t},_local_to_utc:function(n){return n&&new Date(n.getTime()-n.getTimezoneOffset()*6e4)},_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 r,y,p;if(this.isInline)return this;var f=this.picker.outerWidth(),s=this.picker.outerHeight(),e=n(this.o.container),h=e.width(),c=this.o.container==="body"?n(document).scrollTop():e.scrollTop(),l=e.offset(),a=[0];this.element.parents().each(function(){var t=n(this).css("z-index");t!=="auto"&&Number(t)!==0&&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 this.o.container!=="body"&&(i+=c),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),this.o.orientation.x!=="auto"?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),this.o.orientation.x==="right"&&(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,r==="auto"&&(y=-c+i-s,r=y<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+r),r==="top"?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',n.inArray(i,this.o.daysOfWeekDisabled)!==-1&&(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=this._utc_to_local(this.viewDate),i="",u,n=0;n<12;n++)u=t&&t.getMonth()===n?" focused":"",i+='<span class="month'+u+'">'+r[this.o.language].monthsShort[n]+"<\/span>";this.picker.find(".datepicker-months td").html(i)},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=s();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"),this.dates.contains(t)!==-1&&i.push("active"),this.dateWithinRange(t)||i.push("disabled"),this.dateIsDisabled(t)&&i.push("disabled","disabled-date"),n.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)!==-1&&i.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),n.inArray(t.valueOf(),this.range)!==-1&&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 w="",l=u/10,b=this.picker.find(i),v=Math.floor(f/u)*u,p=v+l*9,k=Math.floor(this.viewDate.getFullYear()/l)*l,d=n.map(this.dates,function(n){return Math.floor(n.getUTCFullYear()/l)*l}),a,y,h,c=v-l;c<=p+l;c+=l)a=[r],y=null,c===v-l?a.push("old"):c===p+l&&a.push("new"),n.inArray(c,d)!==-1&&a.push("active"),(c<e||c>o)&&a.push("disabled"),c===k&&a.push("focused"),s!==n.noop&&(h=s(new Date(c,0,1)),h===t?h={}:typeof h=="boolean"?h={enabled:h}:typeof h=="string"&&(h={classes:h}),h.enabled===!1&&a.push("disabled"),h.classes&&(a=a.concat(h.classes.split(/\s+/))),h.tooltip&&(y=h.tooltip)),w+='<span class="'+a.join(" ")+'"'+(y?' title="'+y+'"':"")+">"+c+"<\/span>";b.find(".datepicker-switch").text(v+"-"+p);b.find("td").html(w)},fill:function(){var w=new Date(this.viewDate),o=w.getUTCFullYear(),d=w.getUTCMonth(),a=this.o.startDate!==-Infinity?this.o.startDate.getUTCFullYear():-Infinity,ut=this.o.startDate!==-Infinity?this.o.startDate.getUTCMonth():-Infinity,v=this.o.endDate!==Infinity?this.o.endDate.getUTCFullYear():Infinity,ft=this.o.endDate!==Infinity?this.o.endDate.getUTCMonth():Infinity,et=r[this.o.language].today||r.en.today||"",ot=r[this.o.language].clear||r.en.clear||"",st=r[this.o.language].titleFormat||r.en.titleFormat,y,u,e,g,h,c,p,s,k,it,l,rt;if(!isNaN(o)&&!isNaN(d)){for(this.picker.find(".datepicker-days .datepicker-switch").text(i.formatDate(w,st,this.o.language)),this.picker.find("tfoot .today").text(et).css("display",this.o.todayBtn===!0||this.o.todayBtn==="linked"?"table-cell":"none"),this.picker.find("tfoot .clear").text(ot).css("display",this.o.clearBtn===!0?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display",typeof this.o.title=="string"&&this.o.title!==""?"table-cell":"none"),this.updateNavArrows(),this.fillMonths(),e=f(o,d,0),g=e.getUTCDate(),e.setUTCDate(g-(e.getUTCDay()-this.o.weekStart+7)%7),h=new Date(e),e.getUTCFullYear()<100&&h.setUTCFullYear(e.getUTCFullYear()),h.setUTCDate(h.getUTCDate()+42),h=h.valueOf(),c=[];e.valueOf()<h;){if(p=e.getUTCDay(),p===this.o.weekStart&&(c.push("<tr>"),this.o.calendarWeeks)){var nt=new Date(+e+(this.o.weekStart-p-7)%7*864e5),tt=new Date(Number(nt)+(11-nt.getUTCDay())%7*864e5),b=new Date(Number(b=f(tt.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),ht=(tt-b)/6048e5+1;c.push('<td class="cw">'+ht+"<\/td>")}s=this.getClassNames(e);s.push("day");k=e.getUTCDate();this.o.beforeShowDay!==n.noop&&(u=this.o.beforeShowDay(this._utc_to_local(e)),u===t?u={}:typeof u=="boolean"?u={enabled:u}:typeof u=="string"&&(u={classes:u}),u.enabled===!1&&s.push("disabled"),u.classes&&(s=s.concat(u.classes.split(/\s+/))),u.tooltip&&(y=u.tooltip),u.content&&(k=u.content));s=n.isFunction(n.uniqueSort)?n.uniqueSort(s):n.unique(s);c.push('<td class="'+s.join(" ")+'"'+(y?' title="'+y+'"':"")+' data-date="'+e.getTime().toString()+'">'+k+"<\/td>");y=null;p===this.o.weekEnd&&c.push("<\/tr>");e.setUTCDate(e.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(c.join(""));it=r[this.o.language].monthsTitle||r.en.monthsTitle||"Months";l=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?it:o).end().find("tbody span").removeClass("active");n.each(this.dates,function(n,t){t.getUTCFullYear()===o&&l.eq(t.getUTCMonth()).addClass("active")});(o<a||o>v)&&l.addClass("disabled");o===a&&l.slice(0,ut).addClass("disabled");o===v&&l.slice(ft+1).addClass("disabled");this.o.beforeShowMonth!==n.noop&&(rt=this,n.each(l,function(i,r){var f=new Date(o,i,1),u=rt.o.beforeShowMonth(f);u===t?u={}:typeof u=="boolean"?u={enabled:u}:typeof u=="string"&&(u={classes:u});u.enabled!==!1||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,o,a,v,this.o.beforeShowYear);this._fill_yearsView(".datepicker-decades","decade",100,o,a,v,this.o.beforeShowDecade);this._fill_yearsView(".datepicker-centuries","century",1e3,o,a,v,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var u=new Date(this.viewDate),t=u.getUTCFullYear(),f=u.getUTCMonth(),e=this.o.startDate!==-Infinity?this.o.startDate.getUTCFullYear():-Infinity,s=this.o.startDate!==-Infinity?this.o.startDate.getUTCMonth():-Infinity,o=this.o.endDate!==Infinity?this.o.endDate.getUTCFullYear():Infinity,h=this.o.endDate!==Infinity?this.o.endDate.getUTCMonth():Infinity,i,r,n=1;switch(this.viewMode){case 0:i=t<=e&&f<=s;r=t>=o&&f>=h;break;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}this.picker.find(".prev").toggleClass("disabled",i);this.picker.find(".next").toggleClass("disabled",r)}},click:function(t){t.preventDefault();t.stopPropagation();var r,o,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(s(),this.o.todayBtn==="linked"?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),o=1,this.viewMode===1?(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,o)):(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;this.viewMode!==0&&(r*=i.viewModes[this.viewMode].navStep*12);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(),t!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(n)):this.dates.push(n),typeof this.o.multidate=="number")while(this.dates.length>this.o.multidate)this.dates.remove(0)},_setDate:function(n,t){t&&t!=="date"||this._toggle_multidate(n&&new Date(n));(!t&&this.o.updateViewDate||t==="view")&&(this.viewDate=n&&new Date(n));this.fill();this.setValue();t&&t==="view"||this._trigger("changeDate");this.inputField.trigger("change");this.o.autoclose&&(!t||t==="date")&&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,t*7)},moveMonth:function(n,t){var f;if(!p(n))return this.o.defaultViewDate;if(!t)return n;var i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t),r,u;if(t=t>0?1:-1,s===1)u=t===-1?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()}}while(u())i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,t*12)},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 n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1},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")){(n.keyCode===40||n.keyCode===27)&&(this.show(),n.stopPropagation());return}var u=!1,t,i,r=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||this.o.daysOfWeekDisabled.length===7)break;t=n.keyCode===37||n.keyCode===38?-1:1;this.viewMode===0?n.ctrlKey?(i=this.moveAvailableDate(r,t,"moveYear"),i&&this._trigger("changeYear",this.viewDate)):n.shiftKey?(i=this.moveAvailableDate(r,t,"moveMonth"),i&&this._trigger("changeMonth",this.viewDate)):n.keyCode===37||n.keyCode===39?i=this.moveAvailableDate(r,t,"moveDay"):this.weekOfDateIsDisabled(r)||(i=this.moveAvailableDate(r,t,"moveWeek")):this.viewMode===1?((n.keyCode===38||n.keyCode===40)&&(t=t*4),i=this.moveAvailableDate(r,t,"moveMonth")):this.viewMode===2&&((n.keyCode===38||n.keyCode===40)&&(t=t*4),i=this.moveAvailableDate(r,t,"moveYear"));i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate;this.o.keyboardNavigation&&(this._toggle_multidate(r),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;o.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)})},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(o!==-1){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t!==u&&s||t.setUTCDate(r)}),r<this.dates[f])while(f>=0&&r<this.dates[f])this.pickers[f--].setUTCDate(r);else if(r>this.dates[e])while(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;o=function(i){var f=Array.apply(null,arguments),r;if(f.shift(),this.each(function(){var s=n(this),t=s.data("datepicker"),h=typeof i=="object"&&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)}typeof i=="string"&&typeof t[i]=="function"&&(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)");else return r};n.fn.datepicker=o;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:Infinity,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-Infinity,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(typeof n.toValue=="function"&&typeof n.toDisplay=="function")return n;var t=n.replace(this.validParts,'\0').split('\0'),i=n.match(this.validParts);if(!t||!t.length||!i||i.length===0)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(f,e,o,h){function et(n,t){return t===!0&&(t=10),n<100&&(n+=2e3,n>(new Date).getFullYear()+t&&(n-=100)),n}function ut(){var n=this.slice(0,l[c].length),t=l[c].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var tt,g,l,y,it,c,rt,v,ft,d,w;if(!f)return t;if(f instanceof Date)return f;if(typeof e=="string"&&(e=i.parseFormat(e)),e.toValue)return e.toValue(f,e,o);if(tt={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=tt[y[2].toLowerCase()],f=u.prototype[rt](f,it);return u.prototype._zero_utc_time(f)}l=f&&f.match(this.nonpunctuation)||[];var 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)}},p,k;if(a.yy=a.yyyy,a.M=a.MM=a.mm=a.m,a.dd=a.d,f=s(),v=e.parts.slice(),l.length!==v.length&&(v=n(v).filter(function(t,i){return n.inArray(i,nt)!==-1}).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":k=n(r[o].months).filter(ut);p=n.inArray(k[0],r[o].months)+1;break;case"M":k=n(r[o].monthsShort).filter(ut);p=n.inArray(k[0],r[o].monthsShort)+1}b[y]=p}for(c=0;c<nt.length;c++)w=nt[c],w in b&&!isNaN(b[w])&&(d=new Date(f),a[w](d,b[w]),isNaN(d)||(f=d))}return f},formatDate:function(t,u,f){var e,s,o,h;if(!t)return"";if(typeof u=="string"&&(u=i.parseFormat(u)),u.toDisplay)return u.toDisplay(t,u,f);for(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=[],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.7.1";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(),o.call(i,"show"))});n(function(){o.call(n('[data-provide="datepicker-inline"]'))})}),function(n,t){typeof define=="function"&&define.amd?define(["jquery"],function(n){return t(n)}):typeof module=="object"&&module.exports?module.exports=t(require("jquery")):t(n.jQuery)}(this,function(n){(function(n){"use strict";function f(t){return n.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],function(){t=t?t.replace(this.re,this.ch):""}),t}function o(i){var f=arguments,r=i,u,e;return[].shift.apply(f),e=this.each(function(){var o=n(this),i,e,h,s;if(o.is("select")){if(i=o.data("selectpicker"),e=typeof r=="object"&&r,i){if(e)for(s in e)e.hasOwnProperty(s)&&(i.options[s]=e[s])}else h=n.extend({},t.DEFAULTS,n.fn.selectpicker.defaults||{},o.data(),e),h.template=n.extend({},t.DEFAULTS.template,n.fn.selectpicker.defaults?n.fn.selectpicker.defaults.template:{},o.data().template,e.template),o.data("selectpicker",i=new t(this,h));typeof r=="string"&&(u=i[r]instanceof Function?i[r].apply(i,f):i.options[r])}}),typeof u!="undefined"?u:e}var i,u,s;String.prototype.includes||function(){var i={}.toString,n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),r="".indexOf,t=function(n){var u,s;if(this==null)throw new TypeError;if(u=String(this),n&&i.call(n)=="[object RegExp]")throw new TypeError;var f=u.length,e=String(n),h=e.length,o=arguments.length>1?arguments[1]:undefined,t=o?Number(o):0;return(t!=t&&(t=0),s=Math.min(Math.max(t,0),f),h+s>f)?!1:r.call(u,e,t)!=-1};n?n(String.prototype,"includes",{value:t,configurable:!0,writable:!0}):String.prototype.includes=t}();String.prototype.startsWith||function(){var n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),i={}.toString,t=function(n){var u,f,r;if(this==null)throw new TypeError;if(u=String(this),n&&i.call(n)=="[object RegExp]")throw new TypeError;var e=u.length,o=String(n),s=o.length,h=arguments.length>1?arguments[1]:undefined,t=h?Number(h):0;if(t!=t&&(t=0),f=Math.min(Math.max(t,0),e),s+f>e)return!1;for(r=-1;++r<s;)if(u.charCodeAt(f+r)!=o.charCodeAt(r))return!1;return!0};n?n(String.prototype,"startsWith",{value:t,configurable:!0,writable:!0}):String.prototype.startsWith=t}();Object.keys||(Object.keys=function(n,t,i){i=[];for(t in n)i.hasOwnProperty.call(n,t)&&i.push(t);return i});i={useDefault:!1,_set:n.valHooks.select.set};n.valHooks.select.set=function(t,r){return r&&!i.useDefault&&n(t).data("selected",!0),i._set.apply(this,arguments)};u=null;n.fn.triggerNative=function(n){var i=this[0],t;i.dispatchEvent?(typeof Event=="function"?t=new Event(n,{bubbles:!0}):(t=document.createEvent("Event"),t.initEvent(n,!0,!1)),i.dispatchEvent(t)):i.fireEvent?(t=document.createEventObject(),t.eventType=n,i.fireEvent("on"+n,t)):this.trigger(n)};n.expr.pseudos.icontains=function(t,i,r){var u=n(t).find("span.dropdown-item-inner"),f=(u.data("tokens")||u.text()).toString().toUpperCase();return f.includes(r[3].toUpperCase())};n.expr.pseudos.ibegins=function(t,i,r){var u=n(t).find("span.dropdown-item-inner"),f=(u.data("tokens")||u.text()).toString().toUpperCase();return f.startsWith(r[3].toUpperCase())};n.expr.pseudos.aicontains=function(t,i,r){var u=n(t).find("span.dropdown-item-inner"),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toString().toUpperCase();return f.includes(r[3].toUpperCase())};n.expr.pseudos.aibegins=function(t,i,r){var u=n(t).find("span.dropdown-item-inner"),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toString().toUpperCase();return f.startsWith(r[3].toUpperCase())};var e=function(n){var i=function(t){return n[t]},t="(?:"+Object.keys(n).join("|")+")",r=RegExp(t),u=RegExp(t,"g");return function(n){return n=n==null?"":""+n,r.test(n)?n.replace(u,i):n}},r=e({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"}),h=e({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"}),t=function(r,u){i.useDefault||(n.valHooks.select.set=i._set,i.useDefault=!0);this.$element=n(r);this.$newElement=null;this.$button=null;this.$menu=null;this.$lis=null;this.options=u;this.options.title===null&&(this.options.title=this.$element.attr("title"));var f=this.options.windowPadding;typeof f=="number"&&(this.options.windowPadding=[f,f,f,f]);this.val=t.prototype.val;this.render=t.prototype.render;this.refresh=t.prototype.refresh;this.setStyle=t.prototype.setStyle;this.selectAll=t.prototype.selectAll;this.deselectAll=t.prototype.deselectAll;this.destroy=t.prototype.destroy;this.remove=t.prototype.remove;this.show=t.prototype.show;this.hide=t.prototype.hide;this.init()};t.VERSION="1.12.2";t.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(n){return n==1?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){return[n==1?"Limit reached ({n} item max)":"Limit reached ({n} items max)",t==1?"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:"btn-default btn-light",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:"fa",tickIcon:"fa-check",showTick:!1,template:{caret:'<span class="caret"><\/span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0};t.prototype={constructor:t,init:function(){var t=this,i=this.$element.attr("id");this.$element.addClass("bs-select-hidden");this.liObj={};this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$newElement=this.createView();this.$element.after(this.$newElement).appendTo(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(".dropdown-menu");this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");this.$element.removeClass("bs-select-hidden");this.options.dropdownAlignRight===!0&&this.$menu.addClass("dropdown-menu-right");typeof i!="undefined"&&(this.$button.attr("data-id",i),n('label[for="'+i+'"]').click(function(n){n.preventDefault();t.$button.focus()}));this.checkDisabled();this.clickListener();this.options.liveSearch&&this.liveSearchListener();this.render();this.setStyle();this.setWidth();this.options.container&&this.selectPosition();this.$menu.data("this",this);this.$newElement.data("this",this);this.options.mobile&&this.mobile();this.$newElement.on({"hide.bs.dropdown":function(n){t.$menuInner.attr("aria-expanded",!1);t.$element.trigger("hide.bs.select",n)},"hidden.bs.dropdown":function(n){t.$element.trigger("hidden.bs.select",n)},"show.bs.dropdown":function(n){t.$menuInner.attr("aria-expanded",!0);t.$element.trigger("show.bs.select",n)},"shown.bs.dropdown":function(n){t.$element.trigger("shown.bs.select",n)}});if(t.$element[0].hasAttribute("required"))this.$element.on("invalid",function(){t.$button.addClass("bs-invalid").focus();t.$element.on({"focus.bs.select":function(){t.$button.focus();t.$element.off("focus.bs.select")},"shown.bs.select":function(){t.$element.val(t.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&t.$button.removeClass("bs-invalid");t.$element.off("rendered.bs.select")}})});setTimeout(function(){t.$element.trigger("loaded.bs.select")})},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",u=this.autofocus?" autofocus":"",f=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;<\/button>'+this.options.header+"<\/div>":"",e=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+r(this.options.liveSearchPlaceholder)+'"')+' role="textbox" aria-label="Search"><\/div>':"",o=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn btn-default btn-light">'+this.options.selectAllText+'<\/button><button type="button" class="actions-btn bs-deselect-all btn btn-default btn-light">'+this.options.deselectAllText+"<\/button><\/div><\/div>":"",s=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm btn-default btn-light">'+this.options.doneButtonText+"<\/button><\/div><\/div>":"",h='<div class="btn-group bootstrap-select'+t+i+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+u+' role="button"><span class="filter-option pull-left"><\/span>&nbsp;<span class="bs-caret">'+this.options.template.caret+'<\/span><\/button><div class="dropdown-menu open" role="combobox">'+f+e+o+'<div class="dropdown-menu inner" role="listbox" aria-expanded="false"><\/div>'+s+"<\/div><\/div>";return n(h)},createView:function(){var n=this.createDropdown(),t=this.createLi();return n.find("div.inner")[0].innerHTML=t,n},reloadLi:function(){var n=this.createLi();this.$menuInner[0].innerHTML=n},createLi:function(){var t=this,i=[],o=0,s=document.createElement("option"),u=-1,e=function(n,t,i,r){return i="dropdown-item "+(i||""),"<a"+(typeof i!="undefined"&&""!==i?' class="'+i+'"':"")+(typeof t!="undefined"&&null!==t?' data-original-index="'+t+'"':"")+(typeof r!="undefined"&&null!==r?'data-optgroup="'+r+'"':"")+">"+n+"<\/a>"},c=function(i,u,e,o){return u="dropdown-item-inner "+(u||""),'<span tabindex="0"'+(typeof u!="undefined"?' class="'+u+'"':"")+(e?' style="'+e+'"':"")+(t.options.liveSearchNormalize?' data-normalized-text="'+f(r(n(i).html()))+'"':"")+(typeof o!="undefined"||o!==null?' data-tokens="'+o+'"':"")+' role="option">'+i+'<span class="'+t.options.iconBase+" "+t.options.tickIcon+' check-mark"><\/span><\/span>'},h,a,l;return this.options.title&&!this.multiple&&(u--,this.$element.find(".bs-title-option").length||(h=this.$element[0],s.className="bs-title-option",s.innerHTML=this.options.title,s.value="",h.insertBefore(s,h.firstChild),a=n(h.options[h.selectedIndex]),a.attr("selected")===undefined&&this.$element.data("selected")===undefined&&(s.selected=!0))),l=this.$element.find("option"),l.each(function(f){var s=n(this),tt,it,w,b;if(u++,!s.hasClass("bs-title-option")){var k=this.className||"",d=r(this.style.cssText),v=s.data("content")?s.data("content"):s.html(),g=s.data("tokens")?s.data("tokens"):null,ft=typeof s.data("subtext")!="undefined"?'<small class="text-muted">'+s.data("subtext")+"<\/small>":"",y=typeof s.data("icon")!="undefined"?'<span class="'+t.options.iconBase+" "+s.data("icon")+'"><\/span> ':"",h=s.parent(),nt=h[0].tagName==="OPTGROUP",ut=nt&&h[0].disabled,p=this.disabled||ut,a;if(y!==""&&p&&(y="<span>"+y+"<\/span>"),t.options.hideDisabled&&(p&&!nt||ut)){a=s.data("prevHiddenIndex");s.next().data("prevHiddenIndex",a!==undefined?a:f);u--;return}if(s.data("content")||(v=y+'<span class="text">'+v+ft+"<\/span>"),nt&&s.data("divider")!==!0){if(t.options.hideDisabled&&p&&(h.data("allOptionsDisabled")===undefined&&(tt=h.children(),h.data("allOptionsDisabled",tt.filter(":disabled").length===tt.length)),h.data("allOptionsDisabled"))){u--;return}if(it=" "+h[0].className||"",s.index()===0){o+=1;var rt=h[0].label,et=typeof h.data("subtext")!="undefined"?'<small class="text-muted">'+h.data("subtext")+"<\/small>":"",ot=h.data("icon")?'<span class="'+t.options.iconBase+" "+h.data("icon")+'"><\/span> ':"";rt=ot+'<span class="text">'+r(rt)+et+"<\/span>";f!==0&&i.length>0&&(u++,i.push(e("",null,"divider",o+"div")));u++;i.push(e(rt,null,"dropdown-header"+it,o))}if(t.options.hideDisabled&&p){u--;return}i.push(e(c(v,"opt "+k+it,d,g),f,"",o))}else s.data("divider")===!0?i.push(e("",f,"divider")):s.data("hidden")===!0?(a=s.data("prevHiddenIndex"),s.next().data("prevHiddenIndex",a!==undefined?a:f),i.push(e(c(v,k,d,g),f,"hidden is-hidden"))):(w=this.previousElementSibling&&this.previousElementSibling.tagName==="OPTGROUP",!w&&t.options.hideDisabled&&(a=s.data("prevHiddenIndex"),a!==undefined&&(b=l.eq(a)[0].previousElementSibling,b&&b.tagName==="OPTGROUP"&&!b.disabled&&(w=!0))),w&&(u++,i.push(e("",null,"divider",o+"div"))),i.push(e(c(v,k,d,g),f)));t.liObj[f]=u}}),this.multiple||this.$element.find("option:selected").length!==0||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),i.join("")},findLis:function(){return this.$lis==null&&(this.$lis=this.$menu.find("a")),this.$lis},render:function(t){var i=this,s,e=this.$element.find("option"),r,u,f,o,c;t!==!1&&e.each(function(n){var t=i.findLis().eq(i.liObj[n]);i.setDisabled(n,this.disabled||this.parentNode.tagName==="OPTGROUP"&&this.parentNode.disabled,t);i.setSelected(n,this.selected,t)});this.togglePlaceholder();this.tabIndex();r=e.map(function(){if(this.selected){if(i.options.hideDisabled&&(this.disabled||this.parentNode.tagName==="OPTGROUP"&&this.parentNode.disabled))return;var t=n(this),u=t.data("icon")&&i.options.showIcon?'<i class="'+i.options.iconBase+" "+t.data("icon")+'"><\/i> ':"",r;return r=i.options.showSubtext&&t.data("subtext")&&!i.multiple?' <small class="text-muted">'+t.data("subtext")+"<\/small>":"",typeof t.attr("title")!="undefined"?t.attr("title"):t.data("content")&&i.options.showContent?t.data("content").toString():u+t.html()+r}}).toArray();u=this.multiple?r.join(this.options.multipleSeparator):r[0];this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1&&(f=this.options.selectedTextFormat.split(">"),(f.length>1&&r.length>f[1]||f.length==1&&r.length>=2)&&(s=this.options.hideDisabled?", [disabled]":"",o=e.not('[data-divider="true"], [data-hidden="true"]'+s).length,c=typeof this.options.countSelectedText=="function"?this.options.countSelectedText(r.length,o):this.options.countSelectedText,u=c.replace("{0}",r.length.toString()).replace("{1}",o.toString())));this.options.title==undefined&&(this.options.title=this.$element.attr("title"));this.options.selectedTextFormat=="static"&&(u=this.options.title);u||(u=typeof this.options.title!="undefined"?this.options.title:this.options.noneSelectedText);this.$button.attr("title",h(n.trim(u.replace(/<[^>]*>?/g,""))));this.$button.children(".filter-option").html(u);this.$element.trigger("rendered.bs.select")},setStyle:function(n,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var i=n?n:this.options.style;t=="add"?this.$button.addClass(i):t=="remove"?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(t){var y;if(t||this.options.size!==!1&&!this.sizeInfo){var e=document.createElement("div"),u=document.createElement("div"),o=document.createElement("ul"),a=document.createElement("a"),w=document.createElement("a"),s=document.createElement("span"),v=document.createElement("span"),h=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(!0):null,f=this.options.liveSearch?document.createElement("div"):null,c=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,l=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;v.className="text";e.className=this.$menu[0].parentNode.className+" show open";u.className="dropdown-menu open show";o.className="dropdown-menu inner";a.className="divider";s.className="dropdown-item-inner";v.appendChild(document.createTextNode("Inner text"));s.appendChild(v);w.appendChild(s);o.appendChild(w);o.appendChild(a);h&&u.appendChild(h);f&&(y=document.createElement("input"),f.className="bs-searchbox",y.className="form-control",f.appendChild(y),u.appendChild(f));c&&u.appendChild(c);u.appendChild(o);l&&u.appendChild(l);e.appendChild(u);document.body.appendChild(e);var b=s.offsetHeight,k=h?h.offsetHeight:0,d=f?f.offsetHeight:0,g=c?c.offsetHeight:0,nt=l?l.offsetHeight:0,tt=n(a).outerHeight(!0),i=typeof getComputedStyle=="function"?getComputedStyle(u):!1,r=i?null:n(u),p={vert:parseInt(i?i.paddingTop:r.css("paddingTop"))+parseInt(i?i.paddingBottom:r.css("paddingBottom"))+parseInt(i?i.borderTopWidth:r.css("borderTopWidth"))+parseInt(i?i.borderBottomWidth:r.css("borderBottomWidth")),horiz:parseInt(i?i.paddingLeft:r.css("paddingLeft"))+parseInt(i?i.paddingRight:r.css("paddingRight"))+parseInt(i?i.borderLeftWidth:r.css("borderLeftWidth"))+parseInt(i?i.borderRightWidth:r.css("borderRightWidth"))},it={vert:p.vert+parseInt(i?i.marginTop:r.css("marginTop"))+parseInt(i?i.marginBottom:r.css("marginBottom"))+2,horiz:p.horiz+parseInt(i?i.marginLeft:r.css("marginLeft"))+parseInt(i?i.marginRight:r.css("marginRight"))+2};document.body.removeChild(e);this.sizeInfo={liHeight:b,headerHeight:k,searchHeight:d,actionsHeight:g,doneButtonHeight:nt,dividerHeight:tt,menuPadding:p,menuExtras:it}}},setSize:function(){var l,rt,ut;if(this.findLis(),this.liHeight(),this.options.header&&this.$menu.css("padding-top",0),this.options.size!==!1){var i=this,t=this.$menu,k=this.$menuInner,o=n(window),ft=this.$newElement[0].offsetHeight,d=this.$newElement[0].offsetWidth,g=this.sizeInfo.liHeight,a=this.sizeInfo.headerHeight,v=this.sizeInfo.searchHeight,y=this.sizeInfo.actionsHeight,p=this.sizeInfo.doneButtonHeight,et=this.sizeInfo.dividerHeight,s=this.sizeInfo.menuPadding,u=this.sizeInfo.menuExtras,nt=this.options.hideDisabled?".disabled":"",r,tt,f,w,e,h,c,b,it=function(){var f=i.$newElement.offset(),u=n(i.options.container),t,r;i.options.container&&!u.is("body")?(t=u.offset(),t.top+=parseInt(u.css("borderTopWidth")),t.left+=parseInt(u.css("borderLeftWidth"))):t={top:0,left:0};r=i.options.windowPadding;e=f.top-t.top-o.scrollTop();h=o.height()-e-ft-t.top-r[2];c=f.left-t.left-o.scrollLeft();b=o.width()-c-d-t.left-r[1];e-=r[0];c-=r[3]};if(it(),this.options.size==="auto"){l=function(){var o,nt=function(t,i){return function(r){return i?r.classList?r.classList.contains(t):n(r).hasClass(t):!(r.classList?r.classList.contains(t):n(r).hasClass(t))}},rt=i.$menuInner[0].getElementsByTagName("a"),l=Array.prototype.filter?Array.prototype.filter.call(rt,nt("hidden",!1)):i.$lis.not(".hidden"),ut=Array.prototype.filter?Array.prototype.filter.call(l,nt("dropdown-header",!0)):l.filter(".dropdown-header");it();r=h-u.vert;tt=b-u.horiz;i.options.container?(t.data("height")||t.data("height",t.height()),f=t.data("height"),t.data("width")||t.data("width",t.width()),w=t.data("width")):(f=t.height(),w=t.width());i.options.dropupAuto&&i.$newElement.toggleClass("dropup",e>h&&r-u.vert<f);i.$newElement.hasClass("dropup")&&(r=e-u.vert);i.options.dropdownAlignRight==="auto"&&t.toggleClass("dropdown-menu-right",c>b&&tt-u.horiz<w-d);o=l.length+ut.length>3?g*3+u.vert-2:0;t.css({"max-height":r+"px",overflow:"hidden","min-height":o+a+v+y+p+"px"});k.css({"max-height":r-a-v-y-p-s.vert+"px","overflow-y":"auto","min-height":Math.max(o-s.vert,0)+"px"})};l();this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",l);o.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",l)}else this.options.size&&this.options.size!="auto"&&this.$lis.not(nt).length>this.options.size&&(rt=this.$lis.not(".divider").not(nt).children().slice(0,this.options.size).last().parent().index(),ut=this.$lis.slice(0,rt+1).filter(".divider").length,r=g*this.options.size+ut*et+s.vert,i.options.container?(t.data("height")||t.data("height",t.height()),f=t.data("height")):f=t.height(),i.options.dropupAuto&&this.$newElement.toggleClass("dropup",e>h&&r-u.vert<f),t.css({"max-height":r+a+v+y+p+"px",overflow:"hidden","min-height":""}),k.css({"max-height":r-s.vert+"px","overflow-y":"auto","min-height":""}))}},setWidth:function(){if(this.options.width==="auto"){this.$menu.css("min-width","0");var n=this.$menu.parent().clone().appendTo("body"),t=this.options.container?this.$newElement.clone().appendTo("body"):n,i=n.children(".dropdown-menu").outerWidth(),r=t.css("width","auto").children("button").outerWidth();n.remove();t.remove();this.$newElement.css("width",Math.max(i,r)+"px")}else this.options.width==="fit"?(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")&&this.options.width!=="fit"&&this.$newElement.removeClass("fit-width")},selectPosition:function(){this.$bsContainer=n('<div class="bs-container" />');var t=this,i=n(this.options.container),u,r,f,e=function(n){t.$bsContainer.addClass(n.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",n.hasClass("dropup"));u=n.offset();i.is("body")?r={top:0,left:0}:(r=i.offset(),r.top+=parseInt(i.css("borderTopWidth"))-i.scrollTop(),r.left+=parseInt(i.css("borderLeftWidth"))-i.scrollLeft());f=n.hasClass("dropup")?0:n[0].offsetHeight;t.$bsContainer.css({top:u.top-r.top+f,left:u.left-r.left,width:n[0].offsetWidth})};this.$button.on("click",function(){var i=n(this);t.isDisabled()||(e(t.$newElement),t.$bsContainer.appendTo(t.options.container).toggleClass("open",!i.hasClass("open")).append(t.$menu))});n(window).on("resize scroll",function(){e(t.$newElement)});this.$element.on("hide.bs.select",function(){t.$menu.data("height",t.$menu.height());t.$bsContainer.detach()})},setSelected:function(n,t,i){i||(this.togglePlaceholder(),i=this.findLis().eq(this.liObj[n]));i.toggleClass("selected",t).find("span.dropdown-item-inner").attr("aria-selected",t)},setDisabled:function(n,t,i){i||(i=this.findLis().eq(this.liObj[n]));t?i.addClass("disabled").children("span.dropdown-item-inner").attr("href","#").attr("tabindex",-1).attr("aria-disabled",!0):i.removeClass("disabled").children("span.dropdown-item-inner").removeAttr("href").attr("tabindex",0).attr("aria-disabled",!1)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var n=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled").attr("aria-disabled",!1)),this.$button.attr("tabindex")!=-1||this.$element.data("tabindex")||this.$button.removeAttr("tabindex"));this.$button.click(function(){return!n.isDisabled()})},togglePlaceholder:function(){var n=this.$element.val();this.$button.toggleClass("bs-placeholder",n===null||n===""||n.constructor===Array&&n.length===0)},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&this.$element.attr("tabindex")!==-98&&this.$element.attr("tabindex")!=="-98"&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")));this.$element.attr("tabindex",-98)},clickListener:function(){var t=this,i=n(document);i.data("spaceSelect",!1);this.$button.on("keyup",function(n){/(32)/.test(n.keyCode.toString(10))&&i.data("spaceSelect")&&(n.preventDefault(),i.data("spaceSelect",!1))});this.$button.on("click",function(){t.setSize()});this.$element.on("shown.bs.select",function(){var i,n;if(t.options.liveSearch||t.multiple){if(!t.multiple){if(i=t.liObj[t.$element[0].selectedIndex],typeof i!="number"||t.options.size===!1)return;n=t.$lis.eq(i)[0].offsetTop-t.$menuInner[0].offsetTop;n=n-t.$menuInner[0].offsetHeight/2+t.sizeInfo.liHeight/2;t.$menuInner[0].scrollTop=n}}else t.$menuInner.find(".selected a").focus()});this.$menuInner.on("click","a span.dropdown-item-inner",function(i){var h=n(this),o=h.parent().data("originalIndex"),nt=t.$element.val(),tt=t.$element.prop("selectedIndex"),a=!0,p,w,g;if(t.multiple&&t.options.maxOptions!==1&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!h.parent().hasClass("disabled")){var c=t.$element.find("option"),e=c.eq(o),v=e.prop("selected"),y=e.parent("optgroup"),r=t.options.maxOptions,f=y.data("maxOptions")||!1;if(t.multiple){if(e.prop("selected",!v),t.setSelected(o,!v),h.blur(),(r!==!1||f!==!1)&&(p=r<c.filter(":selected").length,w=f<y.find("option:selected").length,r&&p||f&&w))if(r&&r==1)c.prop("selected",!1),e.prop("selected",!0),t.$menuInner.find(".selected").removeClass("selected"),t.setSelected(o,!0);else if(f&&f==1)y.find("option:selected").prop("selected",!1),e.prop("selected",!0),g=h.parent().data("optgroup"),t.$menuInner.find('[data-optgroup="'+g+'"]').removeClass("selected"),t.setSelected(o,!0);else{var b=typeof t.options.maxOptionsText=="string"?[t.options.maxOptionsText,t.options.maxOptionsText]:t.options.maxOptionsText,s=typeof b=="function"?b(r,f):b,k=s[0].replace("{n}",r),d=s[1].replace("{n}",f),l=n('<div class="notify"><\/div>');s[2]&&(k=k.replace("{var}",s[2][r>1?0:1]),d=d.replace("{var}",s[2][f>1?0:1]));e.prop("selected",!1);t.$menu.append(l);r&&p&&(l.append(n("<div>"+k+"<\/div>")),a=!1,t.$element.trigger("maxReached.bs.select"));f&&w&&(l.append(n("<div>"+d+"<\/div>")),a=!1,t.$element.trigger("maxReachedGrp.bs.select"));setTimeout(function(){t.setSelected(o,!1)},10);l.delay(750).fadeOut(300,function(){n(this).remove()})}}else c.prop("selected",!1),e.prop("selected",!0),t.$menuInner.find(".selected").removeClass("selected").find("span.dropdown-item-inner").attr("aria-selected",!1),t.setSelected(o,!0);!t.multiple||t.multiple&&t.options.maxOptions===1?t.$button.focus():t.options.liveSearch&&t.$searchbox.focus();a&&(nt!=t.$element.val()&&t.multiple||tt!=t.$element.prop("selectedIndex")&&!t.multiple)&&(u=[o,e.prop("selected"),v],t.$element.triggerNative("change"))}});this.$menu.on("click","a.disabled span.dropdown-item-inner , .popover-title, .popover-title :not(.close)",function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),t.options.liveSearch&&!n(i.target).hasClass("close")?t.$searchbox.focus():t.$button.focus())});this.$menuInner.on("click",".divider, .dropdown-header",function(n){n.preventDefault();n.stopPropagation();t.options.liveSearch?t.$searchbox.focus():t.$button.focus()});this.$menu.on("click",".popover-title .close",function(){t.$button.click()});this.$searchbox.on("click",function(n){n.stopPropagation()});this.$menu.on("click",".actions-btn",function(i){t.options.liveSearch?t.$searchbox.focus():t.$button.focus();i.preventDefault();i.stopPropagation();n(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll()});this.$element.change(function(){t.render(!1);t.$element.trigger("changed.bs.select",u);u=null})},liveSearchListener:function(){var t=this,i=n('<li class="no-results"><\/li>');this.$button.on("click.dropdown.data-api",function(){t.$menuInner.find(".active").removeClass("active");!t.$searchbox.val()||(t.$searchbox.val(""),t.$lis.not(".is-hidden").removeClass("hidden"),!i.parent().length||i.remove());t.multiple||t.$menuInner.find(".selected").addClass("active");setTimeout(function(){t.$searchbox.focus()},10)});this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(n){n.stopPropagation()});this.$searchbox.on("input propertychange",function(){var e,o,s,u;t.$lis.not(".is-hidden").removeClass("hidden");t.$lis.filter(".active").removeClass("active");i.remove();t.$searchbox.val()&&(e=t.$lis.not(".is-hidden, .divider, .dropdown-header"),o=t.options.liveSearchNormalize?e.not(":a"+t._searchStyle()+'("'+f(t.$searchbox.val())+'")'):e.not(":"+t._searchStyle()+'("'+t.$searchbox.val()+'")'),o.length===e.length?(i.html(t.options.noneResultsText.replace("{0}",'"'+r(t.$searchbox.val())+'"')),t.$menuInner.append(i),t.$lis.addClass("hidden")):(o.addClass("hidden"),s=t.$lis.not(".hidden"),s.each(function(t){var i=n(this);i.hasClass("divider")?u===undefined?i.addClass("hidden"):(u&&u.addClass("hidden"),u=i):i.hasClass("dropdown-header")&&s.eq(t+1).data("optgroup")!==i.data("optgroup")?i.addClass("hidden"):u=null}),u&&u.addClass("hidden"),e.not(".hidden").first().addClass("active"),t.$menuInner.scrollTop(0)))})},_searchStyle:function(){return{begins:"ibegins",startsWith:"ibegins"}[this.options.liveSearchStyle]||"icontains"},val:function(n){return typeof n!="undefined"?(this.$element.val(n),this.render(),this.$element):this.$element.val()},changeAll:function(t){var r,f;if(this.multiple){typeof t=="undefined"&&(t=!0);this.findLis();var e=this.$element.find("option"),i=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden"),o=i.length,u=[];if(t){if(i.filter(".selected").length===i.length)return}else if(i.filter(".selected").length===0)return;for(i.toggleClass("selected",t),r=0;r<o;r++)f=i[r].getAttribute("data-original-index"),u[u.length]=e.eq(f)[0];n(u).prop("selected",t);this.render(!1);this.togglePlaceholder();this.$element.triggerNative("change")}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(n){n=n||window.event;n&&n.stopPropagation();this.$button.trigger("click")},keydown:function(t){var e=n(this),y=e.is("input")?e.parent().parent():e.parent(),r,i=y.data("this"),u,h,o,l=":not(.disabled, .hidden, .dropdown-header, .divider)",a={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"},s,f,v,c;if(o=i.$newElement.hasClass("open"),!o&&(t.keyCode>=48&&t.keyCode<=57||t.keyCode>=96&&t.keyCode<=105||t.keyCode>=65&&t.keyCode<=90)){i.options.container?i.$button.trigger("click"):(i.setSize(),i.$menu.parent().addClass("open"),o=!0);i.$searchbox.focus();return}if(i.options.liveSearch&&/(^9$|27)/.test(t.keyCode.toString(10))&&o&&(t.preventDefault(),t.stopPropagation(),i.$menuInner.click(),i.$button.focus()),/(38|40)/.test(t.keyCode.toString(10))){if(r=i.$lis.filter(l),!r.length)return;u=i.options.liveSearch?r.index(r.filter(".active")):r.index(r.find("span.dropdown-item-inner").filter(":focus").parent());h=i.$menuInner.data("prevIndex");t.keyCode==38?((i.options.liveSearch||u==h)&&u!=-1&&u--,u<0&&(u+=r.length)):t.keyCode==40&&((i.options.liveSearch||u==h)&&u++,u=u%r.length);i.$menuInner.data("prevIndex",u);i.options.liveSearch?(t.preventDefault(),e.hasClass("dropdown-toggle")||(r.removeClass("active").eq(u).addClass("active").children("span.dropdown-item-inner").focus(),e.focus())):r.eq(u).children("span.dropdown-item-inner").focus()}else e.is("input")||(s=[],r=i.$lis.filter(l),r.each(function(i){n.trim(n(this).children("span.dropdown-item-inner").text().toLowerCase()).substring(0,1)==a[t.keyCode]&&s.push(i)}),f=n(document).data("keycount"),f++,n(document).data("keycount",f),v=n.trim(n(":focus").text().toLowerCase()).substring(0,1),v!=a[t.keyCode]?(f=1,n(document).data("keycount",f)):f>=s.length&&(n(document).data("keycount",0),f>s.length&&(f=1)),r.eq(s[f-1]).children("span.dropdown-item-inner").focus());(/(13|32)/.test(t.keyCode.toString(10))||/(^9$)/.test(t.keyCode.toString(10))&&i.options.selectOnTab)&&o&&(/(32)/.test(t.keyCode.toString(10))||t.preventDefault(),i.options.liveSearch?/(32)/.test(t.keyCode.toString(10))||(i.$menuInner.find(".active a").click(),e.focus()):(c=n(":focus"),c.click(),c.focus(),t.preventDefault(),n(document).data("spaceSelect",!0)),n(document).data("keycount",0));(/(^9$|27)/.test(t.keyCode.toString(10))&&o&&(i.multiple||i.options.liveSearch)||/(27)/.test(t.keyCode.toString(10))&&!o)&&(i.$menu.parent().removeClass("open"),i.options.container&&i.$newElement.removeClass("open"),i.$button.focus())},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null;this.liObj={};this.reloadLi();this.render();this.checkDisabled();this.liHeight(!0);this.setStyle();this.setWidth();this.$lis&&this.$searchbox.trigger("propertychange");this.$element.trigger("refreshed.bs.select")},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(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};s=n.fn.selectpicker;n.fn.selectpicker=o;n.fn.selectpicker.Constructor=t;n.fn.selectpicker.noConflict=function(){return n.fn.selectpicker=s,this};n(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',t.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',function(n){n.stopPropagation()});n(window).on("load.bs.select.data-api",function(){n(".selectpicker").each(function(){var t=n(this);o.call(t,t.data())})})})(n)}),function(n,t){typeof exports=="object"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Spinner=t()}(this,function(){"use strict";function i(n,t){var r=document.createElement(n||"div"),i;for(i in t)r[i]=t[i];return r}function t(n){for(var t=1,i=arguments.length;t<i;t++)n.appendChild(arguments[t]);return n}function a(n,t,i,r){var f=["opacity",t,~~(n*100),i,r].join("-"),o=.01+i/r*100,s=Math.max(1-(1-n)/t*(100-o),n),c=u.substring(0,u.indexOf("Animation")).toLowerCase(),l=c&&"-"+c+"-"||"";return h[f]||(e.insertRule("@"+l+"keyframes "+f+"{0%{opacity:"+s+"}"+o+"%{opacity:"+n+"}"+(o+.01)+"%{opacity:1}"+(o+t)%100+"%{opacity:"+n+"}100%{opacity:"+s+"}}",e.cssRules.length),h[f]=1),f}function o(n,t){var u=n.style,r,i;for(t=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<s.length;i++)if(r=s[i]+t,u[r]!==undefined)return r;if(u[t]!==undefined)return t}function n(n,t){for(var i in t)n.style[o(n,i)||i]=t[i];return n}function c(n){for(var r,i,t=1;t<arguments.length;t++){r=arguments[t];for(i in r)n[i]===undefined&&(n[i]=r[i])}return n}function l(n,t){return typeof n=="string"?n:n[t%n.length]}function r(n){this.opts=c(n||{},r.defaults,v)}function y(){function u(n,t){return i("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',t)}e.addRule(".spin-vml","behavior:url(#default#VML)");r.prototype.lines=function(i,r){function s(){return n(u("group",{coordsize:o+" "+o,coordorigin:-e+" "+-e}),{width:o,height:o})}function a(i,f,o){t(c,t(n(s(),{rotation:360/r.lines*i+"deg",left:~~f}),t(n(u("roundrect",{arcsize:r.corners}),{width:e,height:r.width,left:r.radius,top:-r.width>>1,filter:o}),u("fill",{color:l(r.color,i),opacity:r.opacity}),u("stroke",{opacity:0}))))}var e=r.length+r.width,o=2*e,h=-(r.width+r.length)*2+"px",c=n(s(),{position:"absolute",top:h,left:h}),f;if(r.shadow)for(f=1;f<=r.lines;f++)a(f,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(f=1;f<=r.lines;f++)a(f);return t(i,c)};r.prototype.opacity=function(n,t,i,r){var u=n.firstChild;r=r.shadow&&r.lines||0;u&&t+r<u.childNodes.length&&(u=u.childNodes[t+r],u=u&&u.firstChild,u=u&&u.firstChild,u&&(u.opacity=i))}}var s=["webkit","Moz","ms","O"],h={},u,e=function(){var n=i("style",{type:"text/css"});return t(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),v={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:1/4,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"},f;return r.defaults={},c(r.prototype,{spin:function(t){this.stop();var f=this,r=f.opts,e=f.el=n(i(0,{className:r.className}),{position:r.position,width:0,zIndex:r.zIndex}),p=r.radius+r.length+r.width;if(n(e,{left:r.left,top:r.top}),t&&t.insertBefore(e,t.firstChild||null),e.setAttribute("role","progressbar"),f.lines(e,f.opts),!u){var s=0,l=(r.lines-1)*(1-r.direction)/2,h,c=r.fps,o=c/r.speed,a=(1-r.opacity)/(o*r.trail/100),v=o/r.lines;(function y(){s++;for(var n=0;n<r.lines;n++)h=Math.max(1-(s+(r.lines-n)*v)%o*a,r.opacity),f.opacity(e,n*r.direction+l,h,r);f.timeout=f.el&&setTimeout(y,~~(1e3/c))})()}return f},stop:function(){var n=this.el;return n&&(clearTimeout(this.timeout),n.parentNode&&n.parentNode.removeChild(n),this.el=undefined),this},lines:function(r,f){function s(t,r){return n(i(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:t,boxShadow:r,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*e+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var e=0,h=(f.lines-1)*(1-f.direction)/2,o;e<f.lines;e++)o=n(i(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:u&&a(f.opacity,f.trail,h+e*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&t(o,n(s("#000","0 0 4px #000"),{top:"2px"})),t(r,t(o,s(l(f.color,e),"0 0 1px rgba(0,0,0,.1)")));return r},opacity:function(n,t,i){t<n.childNodes.length&&(n.childNodes[t].style.opacity=i)}}),f=n(i("group"),{behavior:"url(#default#VML)"}),!o(f,"transform")&&f.adj?y():u=o(f,"animation"),r}),function(n,t){typeof exports=="object"?module.exports=t(require("spin.js")):typeof define=="function"&&define.amd?define(["spin"],t):n.Ladda=t(n.Spinner)}(this,function(n){"use strict";function i(n){var i,f,r,u;if(typeof n=="undefined"){console.warn("Ladda button target must be defined.");return}return n.querySelector(".ladda-label")||(n.innerHTML='<span class="ladda-label">'+n.innerHTML+"<\/span>"),f=document.createElement("span"),f.className="ladda-spinner",n.appendChild(f),u={start:function(){return i||(i=o(n)),n.setAttribute("disabled",""),n.setAttribute("data-loading",""),clearTimeout(r),i.spin(f),this.setProgress(0),this},startAfter:function(n){return clearTimeout(r),r=setTimeout(function(){u.start()},n),this},stop:function(){if(this.isLoading())return n.removeAttribute("disabled"),n.removeAttribute("data-loading"),clearTimeout(r),i&&(r=setTimeout(function(){i.stop()},1e3)),this},toggle:function(){return this.isLoading()?this.stop():this.start(),this},setProgress:function(t){t=Math.max(Math.min(t,1),0);var i=n.querySelector(".ladda-progress");t===0&&i&&i.parentNode?i.parentNode.removeChild(i):(i||(i=document.createElement("div"),i.className="ladda-progress",n.appendChild(i)),i.style.width=(t||0)*n.offsetWidth+"px")},enable:function(){return this.stop(),this},disable:function(){return this.stop(),n.setAttribute("disabled",""),this},isLoading:function(){return n.hasAttribute("data-loading")},remove:function(){clearTimeout(r);n.removeAttribute("disabled","");n.removeAttribute("data-loading","");i&&(i.stop(),i=null);for(var f=0,e=t.length;f<e;f++)if(u===t[f]){t.splice(f,1);break}}},t.push(u),u}function r(n,t){while(n.parentNode&&n.tagName!==t)n=n.parentNode;return t===n.tagName?n:undefined}function u(n){for(var u=["input","textarea"],f=[],r,t,i=0;i<u.length;i++)for(r=n.getElementsByTagName(u[i]),t=0;t<r.length;t++)r[t].hasAttribute("required")&&f.push(r[t]);return f}function f(n,t){var f,e,o;for(t=t||{},f=[],typeof n=="string"?f=s(document.querySelectorAll(n)):typeof n=="object"&&typeof n.nodeName=="string"&&(f=[n]),e=0,o=f.length;e<o;e++)(function(){var n=f[e],o,s;typeof n.addEventListener=="function"&&(o=i(n),s=-1,n.addEventListener("click",function(){var e=!0,h=r(n,"FORM"),f,i;if(typeof h!="undefined")for(f=u(h),i=0;i<f.length;i++)f[i].value.replace(/^\s+|\s+$/g,"")===""&&(e=!1);e&&(o.startAfter(1),typeof t.timeout=="number"&&(clearTimeout(s),s=setTimeout(o.stop,t.timeout)),typeof t.callback=="function"&&t.callback.apply(null,[o]))},!1))})()}function e(){for(var n=0,i=t.length;n<i;n++)t[n].stop()}function o(t){var i=t.offsetHeight,u;i===0&&(i=parseFloat(window.getComputedStyle(t).height));i>32&&(i*=.8);t.hasAttribute("data-spinner-size")&&(i=parseInt(t.getAttribute("data-spinner-size"),10));t.hasAttribute("data-spinner-color")&&(u=t.getAttribute("data-spinner-color"));var r=i*.2,f=r*.6,e=r<7?2:3;return new n({color:u||"#fff",lines:12,radius:r,length:f,width:e,zIndex:"auto",top:"auto",left:"auto",className:""})}function s(n){for(var i=[],t=0;t<n.length;t++)i.push(n[t]);return i}var t=[];return{bind:f,create:i,stopAll:e}});!function(n){"use strict";var t=function(t,i){this.options=n.extend({},n.fn.combobox.defaults,i);this.template=this.options.template||this.template;this.$source=n(t);this.$container=this.setup();this.$element=this.$container.find("input[type=text]");this.$target=this.$container.find("input[type=hidden]");this.$button=this.$container.find(".dropdown-toggle");this.$menu=n(this.options.menu).appendTo("body");this.matcher=this.options.matcher||this.matcher;this.sorter=this.options.sorter||this.sorter;this.highlighter=this.options.highlighter||this.highlighter;this.shown=!1;this.selected=!1;this.refresh();this.transferAttributes();this.listen()};t.prototype={constructor:t,setup:function(){var t=n(this.template());return this.$source.before(t),this.$source.hide(),t},disable:function(){this.$element.prop("disabled",!0);this.$button.attr("disabled",!0);this.disabled=!0;this.$container.addClass("combobox-disabled")},enable:function(){this.$element.prop("disabled",!1);this.$button.attr("disabled",!1);this.disabled=!1;this.$container.removeClass("combobox-disabled")},parse:function(){var f=this,i={},r=[],t=!1,u="";return this.$source.find("option").each(function(){var e=n(this);if(e.val()===""){f.options.placeholder=e.text();return}i[e.text()]=e.val();r.push(e.text());e.prop("selected")&&(t=e.text(),u=e.val())}),this.map=i,t&&(this.$element.val(t),this.$target.val(u),this.$container.addClass("combobox-selected"),this.selected=!0),r},transferAttributes:function(){this.options.placeholder=this.$source.attr("data-placeholder")||this.options.placeholder;this.options.appendId!=="undefined"&&this.$element.attr("id",this.$source.attr("id")+this.options.appendId);this.$element.attr("placeholder",this.options.placeholder);this.$target.prop("name",this.$source.prop("name"));this.$target.val(this.$source.val());this.$source.removeAttr("name");this.$element.attr("required",this.$source.attr("required"));this.$element.attr("rel",this.$source.attr("rel"));this.$element.attr("title",this.$source.attr("title"));this.$element.attr("class",this.$source.attr("class"));this.$element.attr("tabindex",this.$source.attr("tabindex"));this.$source.removeAttr("tabindex");this.$source.attr("disabled")!==undefined&&this.disable()},select:function(){var n=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(n)).trigger("change"),this.$target.val(this.map[n]).trigger("change"),this.$source.val(this.map[n]).trigger("change"),this.$container.addClass("combobox-selected"),this.selected=!0,this.hide()},updater:function(n){return n},show:function(){var t=n.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});this.$menu.insertAfter(this.$element).css({top:t.top+t.height,left:t.left}).show();n(".dropdown-menu").on("mousedown",n.proxy(this.scrollSafety,this));return this.shown=!0,this},hide:function(){this.$menu.hide();n(".dropdown-menu").off("mousedown",n.proxy(this.scrollSafety,this));this.$element.on("blur",n.proxy(this.blur,this));return this.shown=!1,this},lookup:function(){return this.query=this.$element.val(),this.process(this.source)},process:function(t){var i=this;return(t=n.grep(t,function(n){return i.matcher(n)}),t=this.sorter(t),!t.length)?this.shown?this.hide():this:this.render(t.slice(0,this.options.items)).show()},template:function(){return this.options.bsVersion=="2"?'<div class="combobox-container"><input type="hidden" /> <div class="input-append"> <input type="text" autocomplete="false" /> <span class="add-on dropdown-toggle" data-dropdown="dropdown"> <span class="caret"/> <i class="icon-remove"/> <\/span> <\/div> <\/div>':'<div class="combobox-container"> <input type="hidden" /> <div class="input-group"> <input type="text" autocomplete="false" /> <span class="input-group-addon dropdown-toggle" data-dropdown="dropdown"> <span class="caret" /> <span class="glyphicon glyphicon-remove" /> <\/span> <\/div> <\/div>'},matcher:function(n){return~n.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(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;return t=n(t).map(function(t,r){return t=n(i.options.item).attr("data-value",r),t.find("a").html(i.highlighter(r)),t[0]}),t.first().addClass("active"),this.$menu.html(t),this},next:function(){var i=this.$menu.find(".active").removeClass("active"),t=i.next();t.length||(t=n(this.$menu.find("li")[0]));t.addClass("active")},prev:function(){var t=this.$menu.find(".active").removeClass("active"),n=t.prev();n.length||(n=this.$menu.find("li").last());n.addClass("active")},toggle:function(){this.disabled||(this.$container.hasClass("combobox-selected")?(this.clearTarget(),this.triggerChange(),this.clearElement()):this.shown?this.hide():(this.clearElement(),this.lookup()))},scrollSafety:function(n){n.target.tagName=="UL"&&this.$element.off("blur")},clearElement:function(){this.$element.val("").focus()},clearTarget:function(){this.$source.val("");this.$target.val("");this.$container.removeClass("combobox-selected");this.selected=!1},triggerChange:function(){this.$source.trigger("change")},refresh:function(){this.source=this.parse();this.options.items=this.source.length},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));this.$button.on("click",n.proxy(this.toggle,this))},eventSupported:function(n){var t=n in this.$element;return t||(this.$element.setAttribute(n,"return;"),t=typeof this.$element[n]=="function"),t},move:function(n){if(this.shown){switch(n.keyCode){case 9:case 13:case 27:n.preventDefault();break;case 38:n.preventDefault();this.prev();this.fixMenuScroll();break;case 40:n.preventDefault();this.next();this.fixMenuScroll()}n.stopPropagation()}},fixMenuScroll:function(){var n=this.$menu.find(".active");if(n.length){var t=n.position().top,i=t+n.height(),r=this.$menu.scrollTop(),u=this.$menu.height();i>u?this.$menu.scrollTop(r+i-u):t<0&&this.$menu.scrollTop(r+t)}},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:this.shown||this.toggle();break;case 39:case 38:case 37:case 36:case 35: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.clearTarget();this.lookup()}n.stopPropagation();n.preventDefault()},focus:function(){this.focused=!0},blur:function(){var t=this,n;this.focused=!1;n=this.$element.val();this.selected||n===""||(this.$element.val(""),this.$source.val("").trigger("change"),this.$target.val("").trigger("change"));!this.mousedover&&this.shown&&setTimeout(function(){t.hide()},200)},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}};n.fn.combobox=function(i){return this.each(function(){var u=n(this),r=u.data("combobox"),f=typeof i=="object"&&i;r||u.data("combobox",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.combobox.defaults={bsVersion:"3",menu:'<ul class="typeahead typeahead-long dropdown-menu"><\/ul>',item:'<li><a href="#"><\/a><\/li>'};n.fn.combobox.Constructor=t}(window.jQuery);+function(){"use strict";function t(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var n=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}}(),i=function(i){var r="ekkoLightbox",e=i.fn[r],f={title:"",footer:"",showArrows:!0,type:null,alwaysShowClose:!1,loadingMessage:'<div class="ekko-lightbox-loader"><div><div><\/div><div><\/div><\/div><\/div>',leftArrow:"<span>&#10094;<\/span>",rightArrow:"<span>&#10095;<\/span>",strings:{close:"Close",fail:"Failed to load image:",type:"Could not detect remote target type. Force the type using data-type"},doc:document,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}},u=function(){function r(n,u){var e=this;t(this,r);this._config=i.extend({},f,u);this._$modalArrows=null;this._galleryIndex=0;this._galleryName=null;this._padding=null;this._border=null;this._titleIsShown=!1;this._footerIsShown=!1;this._wantedWidth=0;this._wantedHeight=0;this._modalId="ekkoLightbox-"+Math.floor(Math.random()*1e3+1);this._$element=n instanceof jQuery?n:i(n);var o='<div class="modal-header"'+(this._config.title||this._config.alwaysShowClose?"":' style="display:none"')+'><button type="button" class="close" data-dismiss="modal" aria-label="'+this._config.strings.close+'"><span aria-hidden="true">&times;<\/span><\/button><h4 class="modal-title">'+(this._config.title||"&nbsp;")+"<\/h4><\/div>",s='<div class="modal-footer"'+(this._config.footer?"":' style="display:none"')+">"+(this._config.footer||"&nbsp;")+"<\/div>",h='<div class="modal-dialog" role="document"><div class="modal-content">'+o+'<div class="modal-body"><div class="ekko-lightbox-container"><div class="ekko-lightbox-item fade show"><\/div><div class="ekko-lightbox-item fade"><\/div><\/div><\/div>'+s+"<\/div><\/div>";if(i(this._config.doc.body).append('<div id="'+this._modalId+'" class="ekko-lightbox modal fade" tabindex="-1" tabindex="-1" role="dialog" aria-hidden="true">'+h+"<\/div>"),this._$modal=i("#"+this._modalId,this._config.doc),this._$modalDialog=this._$modal.find(".modal-dialog").first(),this._$modalContent=this._$modal.find(".modal-content").first(),this._$modalBody=this._$modal.find(".modal-body").first(),this._$modalHeader=this._$modal.find(".modal-header").first(),this._$modalFooter=this._$modal.find(".modal-footer").first(),this._$lightboxContainer=this._$modalBody.find(".ekko-lightbox-container").first(),this._$lightboxBodyOne=this._$lightboxContainer.find("> div:first-child").first(),this._$lightboxBodyTwo=this._$lightboxContainer.find("> div:last-child").first(),this._border=this._calculateBorders(),this._padding=this._calculatePadding(),this._galleryName=this._$element.data("gallery"),this._galleryName){this._$galleryItems=i(document.body).find('*[data-gallery="'+this._galleryName+'"]');this._galleryIndex=this._$galleryItems.index(this._$element);i(document).on("keydown.ekkoLightbox",this._navigationalBinder.bind(this));if(this._config.showArrows&&this._$galleryItems.length>1){this._$lightboxContainer.append('<div class="ekko-lightbox-nav-overlay"><a href="#">'+this._config.leftArrow+'<\/a><a href="#">'+this._config.rightArrow+"<\/a><\/div>");this._$modalArrows=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay").first();this._$lightboxContainer.on("click","a:first-child",function(n){return n.preventDefault(),e.navigateLeft()});this._$lightboxContainer.on("click","a:last-child",function(n){return n.preventDefault(),e.navigateRight()})}}this._$modal.on("show.bs.modal",this._config.onShow.bind(this)).on("shown.bs.modal",function(){return e._toggleLoading(!0),e._handle(),e._config.onShown.call(e)}).on("hide.bs.modal",this._config.onHide.bind(this)).on("hidden.bs.modal",function(){return e._galleryName&&(i(document).off("keydown.ekkoLightbox"),i(window).off("resize.ekkoLightbox")),e._$modal.remove(),e._config.onHidden.call(e)}).modal(this._config);i(window).on("resize.ekkoLightbox",function(){e._resize(e._wantedWidth,e._wantedHeight)})}return n(r,null,[{key:"Default",get:function(){return f}}]),n(r,[{key:"element",value:function(){return this._$element}},{key:"modal",value:function(){return this._$modal}},{key:"navigateTo",value:function(n){if(n<0||n>this._$galleryItems.length-1)return this;this._galleryIndex=n;this._$element=i(this._$galleryItems.get(this._galleryIndex));this._handle()}},{key:"navigateLeft",value:function(){if(this._$galleryItems.length!==1)return this._galleryIndex===0?this._galleryIndex=this._$galleryItems.length-1:this._galleryIndex--,this._config.onNavigate.call(this,"left",this._galleryIndex),this.navigateTo(this._galleryIndex)}},{key:"navigateRight",value:function(){if(this._$galleryItems.length!==1)return this._galleryIndex===this._$galleryItems.length-1?this._galleryIndex=0:this._galleryIndex++,this._config.onNavigate.call(this,"right",this._galleryIndex),this.navigateTo(this._galleryIndex)}},{key:"close",value:function(){return this._$modal.modal("hide")}},{key:"_navigationalBinder",value:function(n){return(n=n||window.event,n.keyCode===39)?this.navigateRight():n.keyCode===37?this.navigateLeft():void 0}},{key:"_detectRemoteType",value:function(n,t){return t=t||!1,!t&&this._isImage(n)&&(t="image"),!t&&this._getYoutubeId(n)&&(t="youtube"),!t&&this._getVimeoId(n)&&(t="vimeo"),!t&&this._getInstagramId(n)&&(t="instagram"),(!t||["image","youtube","vimeo","instagram","video","url"].indexOf(t)<0)&&(t="url"),t}},{key:"_isImage",value:function(n){return n&&n.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)}},{key:"_containerToUse",value:function(){var n=this,t=this._$lightboxBodyTwo,i=this._$lightboxBodyOne;return this._$lightboxBodyTwo.hasClass("show")&&(t=this._$lightboxBodyOne,i=this._$lightboxBodyTwo),i.removeClass("show"),setTimeout(function(){n._$lightboxBodyTwo.hasClass("show")||n._$lightboxBodyTwo.empty();n._$lightboxBodyOne.hasClass("show")||n._$lightboxBodyOne.empty()},500),t.addClass("show"),t}},{key:"_handle",value:function(){var t=this._containerToUse(),n,i;if(this._updateTitleAndFooter(),n=this._$element.attr("data-remote")||this._$element.attr("href"),i=this._detectRemoteType(n,this._$element.attr("data-type")||!1),["image","youtube","vimeo","instagram","video","url"].indexOf(i)<0)return this._error(this._config.strings.type);switch(i){case"image":this._preloadImage(n,t);this._preloadImageByIndex(this._galleryIndex,3);break;case"youtube":this._showYoutubeVideo(n,t);break;case"vimeo":this._showVimeoVideo(this._getVimeoId(n),t);break;case"instagram":this._showInstagramVideo(this._getInstagramId(n),t);break;case"video":this._showHtml5Video(n,t);break;default:this._loadRemoteContent(n,t)}return this}},{key:"_getYoutubeId",value:function(n){if(!n)return!1;var t=n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return t&&t[2].length===11?t[2]:!1}},{key:"_getVimeoId",value:function(n){return n&&n.indexOf("vimeo")>0?n:!1}},{key:"_getInstagramId",value:function(n){return n&&n.indexOf("instagram")>0?n:!1}},{key:"_toggleLoading",value:function(n){return n=n||!1,n?(this._$modalDialog.css("display","none"),this._$modal.removeClass("show"),i(".modal-backdrop").append(this._config.loadingMessage)):(this._$modalDialog.css("display","block"),this._$modal.addClass("show"),i(".modal-backdrop").find(".ekko-lightbox-loader").remove()),this}},{key:"_calculateBorders",value:function(){return{top:this._totalCssByAttribute("border-top-width"),right:this._totalCssByAttribute("border-right-width"),bottom:this._totalCssByAttribute("border-bottom-width"),left:this._totalCssByAttribute("border-left-width")}}},{key:"_calculatePadding",value:function(){return{top:this._totalCssByAttribute("padding-top"),right:this._totalCssByAttribute("padding-right"),bottom:this._totalCssByAttribute("padding-bottom"),left:this._totalCssByAttribute("padding-left")}}},{key:"_totalCssByAttribute",value:function(n){return parseInt(this._$modalDialog.css(n),10)+parseInt(this._$modalContent.css(n),10)+parseInt(this._$modalBody.css(n),10)}},{key:"_updateTitleAndFooter",value:function(){var n=this._$element.data("title")||"",t=this._$element.data("footer")||"";return this._titleIsShown=!1,n||this._config.alwaysShowClose?(this._titleIsShown=!0,this._$modalHeader.css("display","").find(".modal-title").html(n||"&nbsp;")):this._$modalHeader.css("display","none"),this._footerIsShown=!1,t?(this._footerIsShown=!0,this._$modalFooter.css("display","").html(t)):this._$modalFooter.css("display","none"),this}},{key:"_showYoutubeVideo",value:function(n,t){var r=this._getYoutubeId(n),u=n.indexOf("&")>0?n.substr(n.indexOf("&")):"",i=this._$element.data("width")||560,f=this._$element.data("height")||i/(560/315);return this._showVideoIframe("//www.youtube.com/embed/"+r+"?badge=0&autoplay=1&html5=1"+u,i,f,t)}},{key:"_showVimeoVideo",value:function(n,t){var i=500,r=this._$element.data("height")||i/(560/315);return this._showVideoIframe(n+"?autoplay=1",i,r,t)}},{key:"_showInstagramVideo",value:function(n,t){var i=this._$element.data("width")||612,r=i+80;return n=n.substr(-1)!=="/"?n+"/":n,t.html('<iframe width="'+i+'" height="'+r+'" src="'+n+'embed/" frameborder="0" allowfullscreen><\/iframe>'),this._resize(i,r),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showVideoIframe",value:function(n,t,i,r){return i=i||t,r.html('<div class="embed-responsive embed-responsive-16by9"><iframe width="'+t+'" height="'+i+'" src="'+n+'" frameborder="0" allowfullscreen class="embed-responsive-item"><\/iframe><\/div>'),this._resize(t,i),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showHtml5Video",value:function(n,t){var i=this._$element.data("width")||560,r=this._$element.data("height")||i/(560/315);return t.html('<div class="embed-responsive embed-responsive-16by9"><video width="'+i+'" height="'+r+'" src="'+n+'" preload="auto" autoplay controls class="embed-responsive-item"><\/video><\/div>'),this._resize(i,r),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(n,t){var r=this,u=this._$element.data("width")||560,f=this._$element.data("height")||560,e=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),e||this._isExternal(n)?(t.html('<iframe src="'+n+'" frameborder="0" allowfullscreen><\/iframe>'),this._config.onContentLoaded.call(this)):t.load(n,i.proxy(function(){return r._$element.trigger("loaded.bs.modal")})),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(u,f),this}},{key:"_isExternal",value:function(n){var t=n.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return typeof t[1]=="string"&&t[1].length>0&&t[1].toLowerCase()!==location.protocol?!0:typeof t[2]=="string"&&t[2].length>0&&t[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host?!0:!1}},{key:"_error",value:function(n){return console.error(n),this._containerToUse().html(n),this._resize(300,300),this}},{key:"_preloadImageByIndex",value:function(n,t){var r,u;if(this._$galleryItems)return(r=i(this._$galleryItems.get(n),!1),typeof r=="undefined")?void 0:(u=r.attr("data-remote")||r.attr("href"),(r.attr("data-type")==="image"||this._isImage(u))&&this._preloadImage(u,!1),t>0?this._preloadImageByIndex(n+1,t-1):void 0)}},{key:"_preloadImage",value:function(n,t){var r=this,u;return t=t||!1,u=new Image,t&&function(){var f=setTimeout(function(){t.append(r._config.loadingMessage)},200);u.onload=function(){f&&clearTimeout(f);f=null;var n=i("<img />");return n.attr("src",u.src),n.addClass("img-fluid"),n.attr("data-dismiss","modal"),t.html(n),r._$modalArrows&&r._$modalArrows.css("display",""),r._resize(u.width,u.height),r._toggleLoading(!1),r._config.onContentLoaded.call(r)};u.onerror=function(){return r._toggleLoading(!1),r._error(r._config.strings.fail+("  "+n))}}(),u.src=n,u}},{key:"_resize",value:function(n,t){var r,u,f,e,s;t=t||n;this._wantedWidth=n;this._wantedHeight=t;r=this._padding.left+this._padding.right+this._border.left+this._border.right;u=Math.min(n+r,this._config.doc.body.clientWidth);n+r>u?(t=(u-r)/n*t,n=u):n=n+r;f=0;e=0;this._footerIsShown&&(e=this._$modalFooter.outerHeight(!0)||55);this._titleIsShown&&(f=this._$modalHeader.outerHeight(!0)||67);var h=this._padding.top+this._padding.bottom+this._border.bottom+this._border.top,c=parseFloat(this._$modalDialog.css("margin-top"))+parseFloat(this._$modalDialog.css("margin-bottom")),o=Math.min(t,i(window).height()-h-c-f-e);return t>o&&(s=Math.min(o/t,1),n=Math.ceil(s*n)),this._$lightboxContainer.css("height",o),this._$modalDialog.css("width","auto").css("maxWidth",n),this}}],[{key:"_jQueryInterface",value:function(n){var t=this;return n=n||{},this.each(function(){var u=i(t),f=i.extend({},r.Default,u.data(),typeof n=="object"&&n);new r(t,f)})}}]),r}();return i.fn[r]=u._jQueryInterface,i.fn[r].Constructor=u,i.fn[r].noConflict=function(){return i.fn[r]=e,u._jQueryInterface},u}(jQuery)}(jQuery);var Mailcheck={domainThreshold:2,secondLevelThreshold:2,topLevelThreshold:2,defaultDomains:["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","mac.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","google.com","optonline.net","sbcglobal.net","aol.com","me.com","btinternet.com","charter.net","shaw.ca"],defaultSecondLevelDomains:["yahoo","hotmail","mail","live","outlook","gmx"],defaultTopLevelDomains:["com","com.au","com.tw","ca","co.nz","co.uk","de","fr","it","ru","net","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","in","net","net.au","info","biz","mil","co.jp","sg","hu","uk"],run:function(n){n.domains=n.domains||Mailcheck.defaultDomains;n.secondLevelDomains=n.secondLevelDomains||Mailcheck.defaultSecondLevelDomains;n.topLevelDomains=n.topLevelDomains||Mailcheck.defaultTopLevelDomains;n.distanceFunction=n.distanceFunction||Mailcheck.sift4Distance;var t=function(n){return n},r=n.suggested||t,u=n.empty||t,i=Mailcheck.suggest(Mailcheck.encodeEmail(n.email),n.domains,n.secondLevelDomains,n.topLevelDomains,n.distanceFunction);return i?r(i):u()},suggest:function(n,t,i,r,u){var f,e,o,s,h;return(n=n.toLowerCase(),f=this.splitEmail(n),i&&r&&i.indexOf(f.secondLevelDomain)!==-1&&r.indexOf(f.topLevelDomain)!==-1)?!1:(e=this.findClosestDomain(f.domain,t,u,this.domainThreshold),e)?e==f.domain?!1:{address:f.address,domain:e,full:f.address+"@"+e}:(o=this.findClosestDomain(f.secondLevelDomain,i,u,this.secondLevelThreshold),s=this.findClosestDomain(f.topLevelDomain,r,u,this.topLevelThreshold),f.domain&&(e=f.domain,h=!1,o&&o!=f.secondLevelDomain&&(e=e.replace(f.secondLevelDomain,o),h=!0),s&&s!=f.topLevelDomain&&f.secondLevelDomain!==""&&(e=e.replace(new RegExp(f.topLevelDomain+"$"),s),h=!0),h))?{address:f.address,domain:e,full:f.address+"@"+e}:!1},findClosestDomain:function(n,t,i,r){var o,f,e,u;if(r=r||this.topLevelThreshold,f=Infinity,e=null,!n||!t)return!1;for(i||(i=this.sift4Distance),u=0;u<t.length;u++){if(n===t[u])return n;o=i(n,t[u]);o<f&&(f=o,e=t[u])}return f<=r&&e!==null?e:!1},sift4Distance:function(n,t,i){var v,c,e,f;if(i===undefined&&(i=5),!n||!n.length)return t?t.length:0;if(!t||!t.length)return n.length;for(var s=n.length,h=t.length,r=0,u=0,l=0,o=0,y=0,a=[];r<s&&u<h;){if(n.charAt(r)==t.charAt(u)){for(o++,v=!1,c=0;c<a.length;)if(e=a[c],r<=e.c1||u<=e.c2){v=Math.abs(u-r)>=Math.abs(e.c2-e.c1);v?y++:e.trans||(e.trans=!0,y++);break}else r>e.c2&&u>e.c1?a.splice(c,1):c++;a.push({c1:r,c2:u,trans:v})}else for(l+=o,o=0,r!=u&&(r=u=Math.min(r,u)),f=0;f<i&&(r+f<s||u+f<h);f++){if(r+f<s&&n.charAt(r+f)==t.charAt(u)){r+=f-1;u--;break}if(u+f<h&&n.charAt(r)==t.charAt(u+f)){r--;u+=f-1;break}}r++;u++;(r>=s||u>=h)&&(l+=o,o=0,r=u=Math.min(r,u))}return l+=o,Math.round(Math.max(s,h)-l+y)},splitEmail:function(n){var t,u,f;if(n=n!==null?n.replace(/^\s*/,"").replace(/\s*$/,""):null,t=n.split("@"),t.length<2)return!1;for(u=0;u<t.length;u++)if(t[u]==="")return!1;var e=t.pop(),i=e.split("."),o="",r="";if(i.length===0)return!1;if(i.length==1)r=i[0];else{for(o=i[0],f=1;f<i.length;f++)r+=i[f]+".";r=r.substring(0,r.length-1)}return{topLevelDomain:r,secondLevelDomain:o,domain:e,address:t.join("@")}},encodeEmail:function(n){var t=encodeURI(n);return t.replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};typeof module!="undefined"&&module.exports&&(module.exports=Mailcheck);typeof define=="function"&&define.amd&&define("mailcheck",[],function(){return Mailcheck});typeof window!="undefined"&&window.jQuery&&function(n){n.fn.mailcheck=function(n){var t=this,i,r;n.suggested&&(i=n.suggested,n.suggested=function(n){i(t,n)});n.empty&&(r=n.empty,n.empty=function(){r.call(null,t)});n.email=this.val();Mailcheck.run(n)}}(jQuery),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?module.exports=n(require("jquery")):n(window.jQuery)}(function(n){"use strict";n.fn.ratingLocales={};n.fn.ratingThemes={};var e,o,s,h,t,r,f,c,l,i,u;e=".rating";o=0;s=5;h=.5;t=function(t,i){return t===null||t===undefined||t.length===0||i&&n.trim(t)===""};r=function(n,t){return n?" "+t:""};f=function(n,t){n.removeClass(t).addClass(t)};c=function(n){var t=(""+n).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0};l=function(n,t){return parseFloat(n.toFixed(t))};i=function(n,t,i,r){var u=r?t:t.split(" ").join(e+" ")+e;n.off(u).on(u,i)};u=function(t,i){var r=this;r.$element=n(t);r._init(i)};u.prototype={constructor:u,_parseAttr:function(n,i){var a=this,f=a.$element,c=f.attr("type"),l,e,r,u;if(c==="range"||c==="number"){e=i[n]||f.data(n)||f.attr(n);switch(n){case"min":r=o;break;case"max":r=s;break;default:r=h}l=t(e)?r:e;u=parseFloat(l)}else u=parseFloat(i[n]);return isNaN(u)?r:u},_setDefault:function(n,i){var r=this;t(r[n])&&(r[n]=i)},_listenClick:function(n,t){if(n.stopPropagation(),n.preventDefault(),n.handled!==!0)t(n),n.handled=!0;else return!1},_starClick:function(n){var t=this,i;t._listenClick(n,function(n){if(t.inactive)return!1;i=t._getTouchPosition(n);t._setStars(i);t.$element.trigger("change").trigger("rating.change",[t.$element.val(),t._getCaption()]);t.starClicked=!0})},_starMouseMove:function(n){var t=this,r,i;!t.hoverEnabled||t.inactive||n&&n.isDefaultPrevented()||(t.starClicked=!1,r=t._getTouchPosition(n),i=t.calculate(r),t._toggleHover(i),t.$element.trigger("rating.hover",[i.val,i.caption,"stars"]))},_starMouseLeave:function(n){var t=this,i;!t.hoverEnabled||t.inactive||t.starClicked||n&&n.isDefaultPrevented()||(i=t.cache,t._toggleHover(i),t.$element.trigger("rating.hoverleave",["stars"]))},_clearClick:function(n){var t=this;t._listenClick(n,function(){t.inactive||(t.clear(),t.clearClicked=!0)})},_clearMouseMove:function(n){var t=this,r,i,u,f;!t.hoverEnabled||t.inactive||!t.hoverOnClear||n&&n.isDefaultPrevented()||(t.clearClicked=!1,r='<span class="'+t.clearCaptionClass+'">'+t.clearCaption+"<\/span>",i=t.clearValue,u=t.getWidthFromValue(i)||0,f={caption:r,width:u,val:i},t._toggleHover(f),t.$element.trigger("rating.hover",[i,r,"clear"]))},_clearMouseLeave:function(n){var t=this,i;!t.hoverEnabled||t.inactive||t.clearClicked||!t.hoverOnClear||n&&n.isDefaultPrevented()||(i=t.cache,t._toggleHover(i),t.$element.trigger("rating.hoverleave",["clear"]))},_resetForm:function(n){var t=this;n&&n.isDefaultPrevented()||t.inactive||t.reset()},_setTouch:function(n,i){var r=this,f,o,e,u,s,h,c,l="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch;l&&!r.inactive&&(f=n.originalEvent,o=t(f.touches)?f.changedTouches:f.touches,e=r._getTouchPosition(o[0]),i?(r._setStars(e),r.$element.trigger("change").trigger("rating.change",[r.$element.val(),r._getCaption()]),r.starClicked=!0):(u=r.calculate(e),s=u.val<=r.clearValue?r.fetchCaption(r.clearValue):u.caption,h=r.getWidthFromValue(r.clearValue),c=u.val<=r.clearValue?h+"%":u.width,r._setCaption(s),r.$filledStars.css("width",c)))},_initTouch:function(n){var t=this,i=n.type==="touchend";t._setTouch(n,i)},_initSlider:function(n){var i=this;t(i.$element.val())&&i.$element.val(0);i.initialValue=i.$element.val();i._setDefault("min",i._parseAttr("min",n));i._setDefault("max",i._parseAttr("max",n));i._setDefault("step",i._parseAttr("step",n));(isNaN(i.min)||t(i.min))&&(i.min=o);(isNaN(i.max)||t(i.max))&&(i.max=s);(isNaN(i.step)||t(i.step)||i.step===0)&&(i.step=h);i.diff=i.max-i.min},_initHighlight:function(n){var t=this,i,r=t._getCaption();n||(n=t.$element.val());i=t.getWidthFromValue(n)+"%";t.$filledStars.width(i);t.cache={caption:r,width:i,val:n}},_getContainerCss:function(){var n=this;return"rating-container"+r(n.theme,"theme-"+n.theme)+r(n.rtl,"rating-rtl")+r(n.size,"rating-"+n.size)+r(n.animate,"rating-animate")+r(n.disabled||n.readonly,"rating-disabled")+r(n.containerClass,n.containerClass)},_checkDisabled:function(){var n=this,i=n.$element,t=n.options;n.disabled=t.disabled===undefined?i.attr("disabled")||!1:t.disabled;n.readonly=t.readonly===undefined?i.attr("readonly")||!1:t.readonly;n.inactive=n.disabled||n.readonly;i.attr({disabled:n.disabled,readonly:n.readonly})},_addContent:function(n,t){var r=this,i=r.$container,u=n==="clear";return r.rtl?u?i.append(t):i.prepend(t):u?i.prepend(t):i.append(t)},_generateRating:function(){var t=this,u=t.$element,r,i,e;i=t.$container=n(document.createElement("div")).insertBefore(u);f(i,t._getContainerCss());t.$rating=r=n(document.createElement("div")).attr("class","rating").appendTo(i).append(t._getStars("empty")).append(t._getStars("filled"));t.$emptyStars=r.find(".empty-stars");t.$filledStars=r.find(".filled-stars");t._renderCaption();t._renderClear();t._initHighlight();i.append(u);t.rtl&&(e=Math.max(t.$emptyStars.outerWidth(),t.$filledStars.outerWidth()),t.$emptyStars.width(e))},_getCaption:function(){var n=this;return n.$caption&&n.$caption.length?n.$caption.html():n.defaultCaption},_setCaption:function(n){var t=this;t.$caption&&t.$caption.length&&t.$caption.html(n)},_renderCaption:function(){var t=this,u=t.$element.val(),r,i=t.captionElement?n(t.captionElement):"";if(t.showCaption){if(r=t.fetchCaption(u),i&&i.length){f(i,"caption");i.html(r);t.$caption=i;return}t._addContent("caption",'<div class="caption">'+r+"<\/div>");t.$caption=t.$container.find(".caption")}},_renderClear:function(){var t=this,r,i=t.clearElement?n(t.clearElement):"";if(t.showClear){if(r=t._getClearClass(),i.length){f(i,r);i.attr({title:t.clearButtonTitle}).html(t.clearButton);t.$clear=i;return}t._addContent("clear",'<div class="'+r+'" title="'+t.clearButtonTitle+'">'+t.clearButton+"<\/div>");t.$clear=t.$container.find("."+t.clearButtonBaseClass)}},_getClearClass:function(){return this.clearButtonBaseClass+" "+(this.inactive?"":this.clearButtonActiveClass)},_getTouchPosition:function(n){var i=t(n.pageX)?n.originalEvent.touches[0].pageX:n.pageX;return i-this.$rating.offset().left},_toggleHover:function(n){var t=this,r,u,i;n&&(t.hoverChangeStars&&(r=t.getWidthFromValue(t.clearValue),u=n.val<=t.clearValue?r+"%":n.width,t.$filledStars.css("width",u)),t.hoverChangeCaption&&(i=n.val<=t.clearValue?t.fetchCaption(t.clearValue):n.caption,i&&t._setCaption(i+"")))},_init:function(t){var i=this,r=i.$element.addClass("d-none");return i.options=t,n.each(t,function(n,t){i[n]=t}),(i.rtl||r.attr("dir")==="rtl")&&(i.rtl=!0,r.attr("dir","rtl")),i.starClicked=!1,i.clearClicked=!1,i._initSlider(t),i._checkDisabled(),i.displayOnly&&(i.inactive=!0,i.showClear=!1,i.showCaption=!1),i._generateRating(),i._listen(),r.removeClass("rating-loading")},_listen:function(){var t=this,f=t.$element,e=f.closest("form"),r=t.$rating,u=t.$clear;return i(r,"touchstart touchmove touchend",n.proxy(t._initTouch,t)),i(r,"click touchstart",n.proxy(t._starClick,t)),i(r,"mousemove",n.proxy(t._starMouseMove,t)),i(r,"mouseleave",n.proxy(t._starMouseLeave,t)),t.showClear&&u.length&&(i(u,"click touchstart",n.proxy(t._clearClick,t)),i(u,"mousemove",n.proxy(t._clearMouseMove,t)),i(u,"mouseleave",n.proxy(t._clearMouseLeave,t))),e.length&&i(e,"reset",n.proxy(t._resetForm,t)),f},_getStars:function(n){for(var i=this,r='<span class="'+n+'-stars">',t=1;t<=i.stars;t++)r+='<span class="star">'+i[n+"Star"]+"<\/span>";return r+"<\/span>"},_setStars:function(n){var t=this,i=arguments.length?t.calculate(n):t.calculate(),r=t.$element;return r.val(i.val),t.$filledStars.css("width",i.width),t._setCaption(i.caption),t.cache=i,r},showStars:function(n){var t=this,i=parseFloat(n);return t.$element.val(isNaN(i)?t.clearValue:i),t._setStars()},calculate:function(n){var i=this,f=t(i.$element.val())?0:i.$element.val(),r=arguments.length?i.getValueFromPosition(n):f,e=i.fetchCaption(r),u=i.getWidthFromValue(r);return u+="%",{caption:e,width:u,val:r}},getValueFromPosition:function(n){var t=this,u=c(t.step),i,r,f=t.$rating.width();return r=t.diff*n/(f*t.step),r=t.rtl?Math.floor(r):Math.ceil(r),i=l(parseFloat(t.min+r*t.step),u),i=Math.max(Math.min(i,t.max),t.min),t.rtl?t.max-i:i},getWidthFromValue:function(n){var i=this,t=i.min,r=i.max,f,e=i.$emptyStars,u;return!n||n<=t||t===r?0:(u=e.outerWidth(),f=u?e.width()/u:1,n>=r)?100:(n-t)*f*100/(r-t)},fetchCaption:function(n){var r=this,i=parseFloat(n)||r.clearValue,s,h,u,f,a,e=r.starCaptions,o=r.starCaptionClasses;return i&&i!==r.clearValue&&(i=l(i,c(r.step))),f=typeof o=="function"?o(i):o[i],u=typeof e=="function"?e(i):e[i],h=t(u)?r.defaultCaption.replace(/\{rating}/g,i):u,s=t(f)?r.clearCaptionClass:f,a=i===r.clearValue?r.clearCaption:h,'<span class="'+s+'">'+a+"<\/span>"},destroy:function(){var i=this,r=i.$element;return t(i.$container)||i.$container.before(r).remove(),n.removeData(r.get(0)),r.off("rating").removeClass("d-none")},create:function(n){var t=this,i=n||t.options||{};return t.destroy().rating(i)},clear:function(){var n=this,t='<span class="'+n.clearCaptionClass+'">'+n.clearCaption+"<\/span>";return n.inactive||n._setCaption(t),n.showStars(n.clearValue).trigger("change").trigger("rating.clear")},reset:function(){var n=this;return n.showStars(n.initialValue).trigger("rating.reset")},update:function(n){var t=this;return arguments.length?t.showStars(n):t.$element},refresh:function(t){var i=this,r=i.$element;return t?i.destroy().rating(n.extend(!0,i.options,t)).trigger("rating.refresh"):r}};n.fn.rating=function(i){var f=Array.apply(null,arguments),r=[];f.shift();this.each(function(){var e=n(this),o=e.data("rating"),s=typeof i=="object"&&i,c=s.theme||e.data("theme"),h=s.language||e.data("language")||"en",l={},a={},v;o||(c&&(l=n.fn.ratingThemes[c]||{}),h==="en"||t(n.fn.ratingLocales[h])||(a=n.fn.ratingLocales[h]),v=n.extend(!0,{},n.fn.rating.defaults,l,n.fn.ratingLocales.en,a,s,e.data()),o=new u(this,v),e.data("rating",o));typeof i=="string"&&r.push(o[i].apply(o,f))});switch(r.length){case 0:return this;case 1:return r[0]===undefined?this:r[0];default:return r}};n.fn.rating.defaults={theme:"",language:"en",stars:5,filledStar:'<i class="fa fa-star" aria-hidden="true"><\/i>',emptyStar:'<i class="fa fa-star-o" aria-hidden="true"><\/i>',containerClass:"",size:"md",animate:!0,displayOnly:!1,rtl:!1,showClear:!0,showCaption:!0,starCaptionClasses:{.5:"label label-danger",1:"label label-danger",1.5:"label label-warning",2:"label label-warning",2.5:"label label-info",3:"label label-info",3.5:"label label-primary",4:"label label-primary",4.5:"label label-success",5:"label label-success"},clearButton:'<i class="glyphicon glyphicon-minus-sign"><\/i>',clearButtonBaseClass:"clear-rating",clearButtonActiveClass:"clear-rating-active",clearCaptionClass:"label label-default",clearValue:null,captionElement:null,clearElement:null,hoverEnabled:!0,hoverChangeCaption:!0,hoverChangeStars:!0,hoverOnClear:!0};n.fn.ratingLocales.en={defaultCaption:"{rating} Stars",starCaptions:{.5:"Half Star",1:"One Star",1.5:"One & Half Star",2:"Two Stars",2.5:"Two & Half Stars",3:"Three Stars",3.5:"Three & Half Stars",4:"Four Stars",4.5:"Four & Half Stars",5:"Five Stars"},clearButtonTitle:"Clear",clearCaption:"Not Rated"};n.fn.rating.Constructor=u;n(document).ready(function(){var t=n("input.rating");t.length&&t.removeClass("rating-loading").addClass("rating-loading").rating()})})