!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((n=n||self).bootstrap={},n.jQuery)}(this,function(n,t){"use strict";function lf(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function c(n,t,i){return t&&lf(n.prototype,t),i&&lf(n,i),n}function af(n,t){var r=Object.keys(n),i;return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(n),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),r.push.apply(r,i)),r}function u(n){for(var i,t=1;t<arguments.length;t++)i=null!=arguments[t]?arguments[t]:{},t%2?af(Object(i),!0).forEach(function(t){var r,u,f;r=n;f=i[u=t];u in r?Object.defineProperty(r,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):r[u]=f}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):af(Object(i)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))});return n}function po(n){var u=this,r=!1;return t(this).one(i.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||i.triggerTransitionEnd(u)},n),this}function df(n){return n&&"[object Function]"==={}.toString.call(n)}function tt(n,t){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return t?i[t]:i}function vu(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function ci(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=tt(n),i=t.overflow,r=t.overflowX,u=t.overflowY;return/(auto|scroll|overlay)/.test(i+u+r)?n:ci(vu(n))}function gf(n){return n&&n.referenceNode?n.referenceNode:n}function ct(n){return 11===n?yu:10===n?pu:yu||pu}function lt(n){var r,t,i;if(!n)return document.documentElement;for(r=ct(10)?document.body:null,t=n.offsetParent||null;t===r&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return i=t&&t.nodeName,i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===tt(t,"position")?lt(t):t:n?n.ownerDocument.documentElement:document.documentElement}function wu(n){return null!==n.parentNode?wu(n.parentNode):n}function ar(n,t){var i,u;if(!(n&&n.nodeType&&t&&t.nodeType))return 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))?function(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||lt(n.firstElementChild)===n)}(i)?i:lt(i):(u=wu(n),u.host?ar(u.host,t):ar(n,wu(t).host))}function at(n,t){var i="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",r=n.nodeName,u;return"BODY"!==r&&"HTML"!==r?n[i]:(u=n.ownerDocument.documentElement,(n.ownerDocument.scrollingElement||u)[i])}function ne(n,t){var i="x"===t?"Left":"Top",r="Left"==i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function te(n,t,i,r){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],ct(10)?parseInt(i["offset"+n])+parseInt(r["margin"+("Height"===n?"Top":"Left")])+parseInt(r["margin"+("Height"===n?"Bottom":"Right")]):0)}function ie(n){var i=n.body,t=n.documentElement,r=ct(10)&&getComputedStyle(t);return{height:te("Height",i,t,r),width:te("Width",i,t,r)}}function ue(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function vt(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function w(n){return o({},n,{right:n.left+n.width,bottom:n.top+n.height})}function bu(n){var t={},r,u,o;try{ct(10)?(t=n.getBoundingClientRect(),r=at(n,"top"),u=at(n,"left"),t.top+=r,t.left+=u,t.bottom+=r,t.right+=u):t=n.getBoundingClientRect()}catch(n){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s="HTML"===n.nodeName?ie(n.ownerDocument):{},h=s.width||n.clientWidth||i.width,c=s.height||n.clientHeight||i.height,f=n.offsetWidth-h,e=n.offsetHeight-c;return(f||e)&&(o=tt(n),f-=ne(o,"x"),e-=ne(o,"y"),i.width-=f,i.height-=e),w(i)}function ku(n,t,i){var a=2<arguments.length&&void 0!==i&&i,v=ct(10),y="HTML"===t.nodeName,f=bu(n),u=bu(t),h=ci(n),e=tt(t),c=parseFloat(e.borderTopWidth,10),l=parseFloat(e.borderLeftWidth,10),r,o,s;return a&&y&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0)),r=w({top:f.top-u.top-c,left:f.left-u.left-l,width:f.width,height:f.height}),(r.marginTop=0,r.marginLeft=0,!v&&y)&&(o=parseFloat(e.marginTop,10),s=parseFloat(e.marginLeft,10),r.top-=c-o,r.bottom-=c-o,r.left-=l-s,r.right-=l-s,r.marginTop=o,r.marginLeft=s),(v&&!a?t.contains(h):t===h&&"BODY"!==h.nodeName)&&(r=function(n,t,i){var e=2<arguments.length&&void 0!==i&&i,u=at(t,"top"),f=at(t,"left"),r=e?-1:1;return n.top+=u*r,n.bottom+=u*r,n.left+=f*r,n.right+=f*r,n}(r,t)),r}function fe(n){if(!n||!n.parentElement||ct())return document.documentElement;for(var t=n.parentElement;t&&"none"===tt(t,"transform");)t=t.parentElement;return t||document.documentElement}function du(n,t,i,r,u){var h=4<arguments.length&&void 0!==u&&u,f={top:0,left:0},c=h?fe(n):ar(n,gf(t)),o,e,s;if("viewport"===r)f=function(n,t){var u=1<arguments.length&&void 0!==t&&t,i=n.ownerDocument.documentElement,r=ku(n,i),f=Math.max(i.clientWidth,window.innerWidth||0),e=Math.max(i.clientHeight,window.innerHeight||0),o=u?0:at(i),s=u?0:at(i,"left");return w({top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:f,height:e})}(c,h);else if(o=void 0,"scrollParent"===r?"BODY"===(o=ci(vu(t))).nodeName&&(o=n.ownerDocument.documentElement):o="window"===r?n.ownerDocument.documentElement:r,e=ku(o,c,h),"HTML"!==o.nodeName||function n(t){var r=t.nodeName,i;return"BODY"===r||"HTML"===r?!1:"fixed"===tt(t,"position")?!0:(i=vu(t),!!i&&n(i))}(c))f=e;else{var l=ie(n.ownerDocument),a=l.height,v=l.width;f.top+=e.top-e.marginTop;f.bottom=a+e.top;f.left+=e.left-e.marginLeft;f.right=v+e.left}return s="number"==typeof(i=i||0),f.left+=s?i:i.left||0,f.top+=s?i:i.top||0,f.right-=s?i:i.right||0,f.bottom-=s?i:i.bottom||0,f}function ee(n,t,i,r,u,f){var a=5<arguments.length&&void 0!==f?f:0;if(-1===n.indexOf("auto"))return n;var e=du(i,r,a,u),s={top:{width:e.width,height:t.top-e.top},right:{width:e.right-t.right,height:e.height},bottom:{width:e.width,height:e.bottom-t.bottom},left:{width:t.left-e.left,height:e.height}},h=Object.keys(s).map(function(n){return o({key:n},s[n],{area:function(n){return n.width*n.height}(s[n])})}).sort(function(n,t){return t.area-n.area}),c=h.filter(function(n){var t=n.width,r=n.height;return t>=i.clientWidth&&r>=i.clientHeight}),v=0<c.length?c[0].key:h[0].key,l=n.split("-")[1];return v+(l?"-"+l:"")}function oe(n,t,i,r){var u=3<arguments.length&&void 0!==r?r:null;return ku(i,u?fe(t):ar(t,gf(i)),u)}function se(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function vr(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 he(n,t,i){i=i.split("-")[0];var r=se(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[vr(f)],e}function li(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function ce(n,t,i){return(void 0===i?n:n.slice(0,function(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=li(n,function(n){return n[t]===i});return n.indexOf(r)}(n,"name",i))).forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=n.function||n.fn;n.enabled&&df(i)&&(t.offsets.popper=w(t.offsets.popper),t.offsets.reference=w(t.offsets.reference),t=i(t,n))}),t}function le(n,t){return n.some(function(n){var i=n.name;return n.enabled&&i===t})}function gu(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof document.body.style[r])return r;return null}function ae(n){var t=n.ownerDocument;return t?t.defaultView:window}function hh(n,t,i,r){i.updateBound=r;ae(n).addEventListener("resize",i.updateBound,{passive:!0});var u=ci(n);return function n(t,i,r,u){var e="BODY"===t.nodeName,f=e?t.ownerDocument.defaultView:t;f.addEventListener(i,r,{passive:!0});e||n(ci(f.parentNode),i,r,u);u.push(f)}(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function ch(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(n,t){return ae(n).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}(this.reference,this.state))}function nf(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function tf(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&nf(t[i])&&(r="px");n.style[i]=t[i]+r})}function lh(n,t){function u(n){return n}var f=n.offsets,i=f.popper,l=f.reference,r=Math.round,a=Math.floor,e=r(l.width),o=r(i.width),v=-1!==["left","right"].indexOf(n.placement),s=-1!==n.placement.indexOf("-"),h=t?v||s||e%2==o%2?r:a:u,c=t?r:u;return{left:h(e%2==1&&o%2==1&&!s&&t?i.left-1:i.left),top:c(i.top),bottom:c(i.bottom),right:h(i.right)}}function ye(n,t,i){var u=li(n,function(n){return n.name===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r,e;return f||(r="`"+t+"`",e="`"+i+"`",console.warn(e+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function pe(n,t){var u=1<arguments.length&&void 0!==t&&t,i=yr.indexOf(n),r=yr.slice(i+1).concat(yr.slice(0,i));return u?r.reverse():r}function ph(n,t,i,r){var s=[0,0],h=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(li(u,function(n){return-1!==n.search(/,|\s/)})),e,o;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),e=/\s*,\s*|\s+/,o=-1!==f?[u.slice(0,f).concat([u[f].split(e)[0]]),[u[f].split(e)[1]].concat(u.slice(f+1))]:[u],(o=o.map(function(n,r){var f=(1===r?!h:h)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return function(n,t,i,r){var o=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),f=+o[1],u=o[2],e;if(!f)return n;if(0!==u.indexOf("%"))return"vh"!==u&&"vw"!==u?f:("vh"===u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*f;e=void 0;switch(u){case"%p":e=i;break;case"%":case"%r":default:e=r}return w(e)[t]/100*f}(n,f,t,i)})})).forEach(function(n,t){n.forEach(function(i,r){nf(i)&&(s[t]+=i*("-"===n[r-1]?-1:1))})}),s}function yt(n,t){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},u;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,yt);this.scheduleUpdate=function(){return requestAnimationFrame(i.update)};this.update=sh(this.update.bind(this));this.options=o({},yt.Defaults,r);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=n&&n.jquery?n[0]:n;this.popper=t&&t.jquery?t[0]:t;this.options.modifiers={};Object.keys(o({},yt.Defaults.modifiers,r.modifiers)).forEach(function(n){i.options.modifiers[n]=o({},yt.Defaults.modifiers[n]||{},r.modifiers?r.modifiers[n]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(n){return o({name:n},i.options.modifiers[n])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&df(n.onLoad)&&n.onLoad(i.reference,i.popper,i.options,n,i.state)});this.update();u=this.options.eventsEnabled;u&&this.enableEventListeners();this.state.eventsEnabled=u}function to(n,t,i){if(0===n.length)return n;if(i&&"function"==typeof i)return i(n);for(var u=(new window.DOMParser).parseFromString(n,"text/html"),e=Object.keys(t),f=[].slice.call(u.body.querySelectorAll("*")),o=function(n){var i=f[n],o=i.nodeName.toLowerCase(),r,u;if(-1===e.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";r=[].slice.call(i.attributes);u=[].concat(t["*"]||[],t[o]||[]);r.forEach(function(n){(function(n,t){var i=n.nodeName.toLowerCase();if(-1!==t.indexOf(i))return-1===dc.indexOf(i)||Boolean(n.nodeValue.match(gc)||n.nodeValue.match(nl));for(var u=t.filter(function(n){return n instanceof RegExp}),r=0,f=u.length;r<f;r++)if(i.match(u[r]))return!0;return!1})(n,u)||i.removeAttribute(n.nodeName)})},r=0,s=f.length;r<s;r++)o(r);return u.body.innerHTML}var ni,i,yu,pu,re,o,ve,rf,yr,we,b;t=t&&t.hasOwnProperty("default")?t.default:t;ni="transitionend";i={TRANSITION_END:"bsTransitionEnd",getUID:function(n){for(;n+=~~(1e6*Math.random()),document.getElementById(n););return n},getSelectorFromElement:function(n){var t=n.getAttribute("data-target"),i;t&&"#"!==t||(i=n.getAttribute("href"),t=i&&"#"!==i?i.trim():"");try{return document.querySelector(t)?t:null}catch(n){return null}},getTransitionDurationFromElement:function(n){if(!n)return 0;var i=t(n).css("transition-duration"),r=t(n).css("transition-delay"),u=parseFloat(i),f=parseFloat(r);return u||f?(i=i.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(i)+parseFloat(r))):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(ni)},supportsTransitionEnd:function(){return Boolean(ni)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,t,r){var u,s;for(u in r)if(Object.prototype.hasOwnProperty.call(r,u)){var e=r[u],f=t[u],o=f&&i.isElement(f)?"element":(s=f,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(e).test(o))throw new Error(n.toUpperCase()+': Option "'+u+'" provided type "'+o+'" but expected type "'+e+'".');}},findShadowRoot:function(n){if(!document.documentElement.attachShadow)return null;if("function"!=typeof n.getRootNode)return n instanceof ShadowRoot?n:n.parentNode?i.findShadowRoot(n.parentNode):null;var t=n.getRootNode();return t instanceof ShadowRoot?t:null},jQueryDetection:function(){if("undefined"==typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var n=t.fn.jquery.split(" ")[0].split(".");if(n[0]<2&&n[1]<9||1===n[0]&&9===n[1]&&n[2]<1||4<=n[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}};i.jQueryDetection();t.fn.emulateTransitionEnd=po;t.event.special[i.TRANSITION_END]={bindType:ni,delegateType:ni,handle:function(n){if(t(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}};var ti="alert",fr="bs.alert",fu="."+fr,wo=t.fn[ti],eu={CLOSE:"close"+fu,CLOSED:"closed"+fu,CLICK_DATA_API:"click"+fu+".data-api"},bo="alert",ko="fade",go="show",et=function(){function n(n){this._element=n}var r=n.prototype;return r.close=function(n){var t=this._element;n&&(t=this._getRootElement(n));this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},r.dispose=function(){t.removeData(this._element,fr);this._element=null},r._getRootElement=function(n){var u=i.getSelectorFromElement(n),r=!1;return u&&(r=document.querySelector(u)),r=r||t(n).closest("."+bo)[0]},r._triggerCloseEvent=function(n){var i=t.Event(eu.CLOSE);return t(n).trigger(i),i},r._removeElement=function(n){var u=this,r;(t(n).removeClass(go),t(n).hasClass(ko))?(r=i.getTransitionDurationFromElement(n),t(n).one(i.TRANSITION_END,function(t){return u._destroyElement(n,t)}).emulateTransitionEnd(r)):this._destroyElement(n)},r._destroyElement=function(n){t(n).detach().trigger(eu.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data(fr);r||(r=new n(this),u.data(fr,r));"close"===i&&r[i](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},c(n,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),n}();t(document).on(eu.CLICK_DATA_API,'[data-dismiss="alert"]',et._handleDismiss(new et));t.fn[ti]=et._jQueryInterface;t.fn[ti].Constructor=et;t.fn[ti].noConflict=function(){return t.fn[ti]=wo,et._jQueryInterface};var ii="button",er="bs.button",or="."+er,sr=".data-api",ns=t.fn[ii],y="active",ts="btn",is="focus",vf='[data-toggle^="button"]',rs='[data-toggle="buttons"]',us='[data-toggle="button"]',fs='[data-toggle="buttons"] .btn',ou='input:not([type="hidden"])',es=".active",yf=".btn",su={CLICK_DATA_API:"click"+or+sr,FOCUS_BLUR_DATA_API:"focus"+or+sr+" blur"+or+sr,LOAD_DATA_API:"load"+or+sr},ri=function(){function n(n){this._element=n}var i=n.prototype;return i.toggle=function(){var i=!0,u=!0,f=t(this._element).closest(rs)[0],n,r;f&&(n=this._element.querySelector(ou),n&&("radio"===n.type?n.checked&&this._element.classList.contains(y)?i=!1:(r=f.querySelector(es),r&&t(r).removeClass(y)):"checkbox"===n.type?"LABEL"===this._element.tagName&&n.checked===this._element.classList.contains(y)&&(i=!1):i=!1,i&&(n.checked=!this._element.classList.contains(y),t(n).trigger("change")),n.focus(),u=!1));this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(u&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(y)),i&&t(this._element).toggleClass(y))},i.dispose=function(){t.removeData(this._element,er);this._element=null},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data(er);r||(r=new n(this),t(this).data(er,r));"toggle"===i&&r[i]()})},c(n,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),n}();t(document).on(su.CLICK_DATA_API,vf,function(n){var i=n.target,r;if(t(i).hasClass(ts)||(i=t(i).closest(yf)[0]),!i||i.hasAttribute("disabled")||i.classList.contains("disabled"))n.preventDefault();else{if(r=i.querySelector(ou),r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void n.preventDefault();ri._jQueryInterface.call(t(i),"toggle")}}).on(su.FOCUS_BLUR_DATA_API,vf,function(n){var i=t(n.target).closest(yf)[0];t(i).toggleClass(is,/^focus(in)?$/.test(n.type))});t(window).on(su.LOAD_DATA_API,function(){for(var t,f,i,e,r,n=[].slice.call(document.querySelectorAll(fs)),u=0,o=n.length;u<o;u++)t=n[u],f=t.querySelector(ou),f.checked||f.hasAttribute("checked")?t.classList.add(y):t.classList.remove(y);for(i=0,e=(n=[].slice.call(document.querySelectorAll(us))).length;i<e;i++)r=n[i],"true"===r.getAttribute("aria-pressed")?r.classList.add(y):r.classList.remove(y)});t.fn[ii]=ri._jQueryInterface;t.fn[ii].Constructor=ri;t.fn[ii].noConflict=function(){return t.fn[ii]=ns,ri._jQueryInterface};var ot="carousel",ui="bs.carousel",f="."+ui,pf=".data-api",os=t.fn[ot],hu={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ss={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},hr="next",cr="prev",hs="left",cs="right",e={SLIDE:"slide"+f,SLID:"slid"+f,KEYDOWN:"keydown"+f,MOUSEENTER:"mouseenter"+f,MOUSELEAVE:"mouseleave"+f,TOUCHSTART:"touchstart"+f,TOUCHMOVE:"touchmove"+f,TOUCHEND:"touchend"+f,POINTERDOWN:"pointerdown"+f,POINTERUP:"pointerup"+f,DRAG_START:"dragstart"+f,LOAD_DATA_API:"load"+f+pf,CLICK_DATA_API:"click"+f+pf},ls="carousel",d="active",as="slide",vs="carousel-item-right",ys="carousel-item-left",ps="carousel-item-next",ws="carousel-item-prev",bs="pointer-event",ks=".active",cu=".active.carousel-item",ds=".carousel-item",gs=".carousel-item img",nh=".carousel-item-next, .carousel-item-prev",th=".carousel-indicators",ih='[data-ride="carousel"]',wf={TOUCH:"touch",PEN:"pen"},st=function(){function r(n,t){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this.touchStartX=0;this.touchDeltaX=0;this._config=this._getConfig(t);this._element=n;this._indicatorsElement=this._element.querySelector(th);this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var n=r.prototype;return n.next=function(){this._isSliding||this._slide(hr)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(cr)},n.pause=function(n){n||(this._isPaused=!0);this._element.querySelector(nh)&&(i.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},n.cycle=function(n){n||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(n){var u=this,i,r;if(this._activeElement=this._element.querySelector(cu),i=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)t(this._element).one(e.SLID,function(){return u.to(n)});else{if(i===n)return this.pause(),void this.cycle();r=i<n?hr:cr;this._slide(r,this._items[n])}},n.dispose=function(){t(this._element).off(f);t.removeData(this._element,ui);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},n._getConfig=function(n){return n=u({},hu,{},n),i.typeCheckConfig(ot,n,ss),n},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX),n;t<=40||(n=t/this.touchDeltaX,(this.touchDeltaX=0)<n&&this.prev(),n<0&&this.next())},n._addEventListeners=function(){var n=this;this._config.keyboard&&t(this._element).on(e.KEYDOWN,function(t){return n._keydown(t)});"hover"===this._config.pause&&t(this._element).on(e.MOUSEENTER,function(t){return n.pause(t)}).on(e.MOUSELEAVE,function(t){return n.cycle(t)});this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var n=this,i,r;this._touchSupported&&(i=function(t){n._pointerEvent&&wf[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){n._pointerEvent&&wf[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX);n._handleSwipe();"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))},t(this._element.querySelectorAll(gs)).on(e.DRAG_START,function(n){return n.preventDefault()}),this._pointerEvent?(t(this._element).on(e.POINTERDOWN,function(n){return i(n)}),t(this._element).on(e.POINTERUP,function(n){return r(n)}),this._element.classList.add(bs)):(t(this._element).on(e.TOUCHSTART,function(n){return i(n)}),t(this._element).on(e.TOUCHMOVE,function(t){return function(t){n.touchDeltaX=t.originalEvent.touches&&1<t.originalEvent.touches.length?0:t.originalEvent.touches[0].clientX-n.touchStartX}(t)}),t(this._element).on(e.TOUCHEND,function(n){return r(n)})))},n._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault();this.prev();break;case 39:n.preventDefault();this.next()}},n._getItemIndex=function(n){return this._items=n&&n.parentNode?[].slice.call(n.parentNode.querySelectorAll(ds)):[],this._items.indexOf(n)},n._getItemByDirection=function(n,t){var u=n===hr,f=n===cr,i=this._getItemIndex(t),e=this._items.length-1,r;return(f&&0===i||u&&i===e)&&!this._config.wrap?t:(r=(i+(n===cr?-1:1))%this._items.length,-1==r?this._items[this._items.length-1]:this._items[r])},n._triggerSlideEvent=function(n,i){var u=this._getItemIndex(n),f=this._getItemIndex(this._element.querySelector(cu)),r=t.Event(e.SLIDE,{relatedTarget:n,direction:i,from:f,to:u});return t(this._element).trigger(r),r},n._setActiveIndicatorElement=function(n){var r,i;this._indicatorsElement&&(r=[].slice.call(this._indicatorsElement.querySelectorAll(ks)),t(r).removeClass(d),i=this._indicatorsElement.children[this._getItemIndex(n)],i&&t(i).addClass(d))},n._slide=function(n,r){var o,s,h,a=this,f=this._element.querySelector(cu),p=this._getItemIndex(f),u=r||f&&this._getItemByDirection(n,f),w=this._getItemIndex(u),v=Boolean(this._interval),c,l,y;(h=n===hr?(o=ys,s=ps,hs):(o=vs,s=ws,cs),u&&t(u).hasClass(d))?this._isSliding=!1:!this._triggerSlideEvent(u,h).isDefaultPrevented()&&f&&u&&(this._isSliding=!0,v&&this.pause(),this._setActiveIndicatorElement(u),c=t.Event(e.SLID,{relatedTarget:u,direction:h,from:p,to:w}),t(this._element).hasClass(as)?(t(u).addClass(s),i.reflow(u),t(f).addClass(o),t(u).addClass(o),l=parseInt(u.getAttribute("data-interval"),10),l?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=l):this._config.interval=this._config.defaultInterval||this._config.interval,y=i.getTransitionDurationFromElement(f),t(f).one(i.TRANSITION_END,function(){t(u).removeClass(o+" "+s).addClass(d);t(f).removeClass(d+" "+s+" "+o);a._isSliding=!1;setTimeout(function(){return t(a._element).trigger(c)},0)}).emulateTransitionEnd(y)):(t(f).removeClass(d),t(u).addClass(d),this._isSliding=!1,t(this._element).trigger(c)),v&&this.cycle())},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(ui),f=u({},hu,{},t(this).data()),e;if("object"==typeof n&&(f=u({},f,{},n)),e="string"==typeof n?n:f.slide,i||(i=new r(this,f),t(this).data(ui,i)),"number"==typeof n)i.to(n);else if("string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}else f.interval&&f.ride&&(i.pause(),i.cycle())})},r._dataApiClickHandler=function(n){var s=i.getSelectorFromElement(this),f,o,e;s&&(f=t(s)[0],f&&t(f).hasClass(ls)&&(o=u({},t(f).data(),{},t(this).data()),e=this.getAttribute("data-slide-to"),e&&(o.interval=!1),r._jQueryInterface.call(t(f),o),e&&t(f).data(ui).to(e),n.preventDefault()))},c(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return hu}}]),r}();t(document).on(e.CLICK_DATA_API,"[data-slide], [data-slide-to]",st._dataApiClickHandler);t(window).on(e.LOAD_DATA_API,function(){for(var i,r=[].slice.call(document.querySelectorAll(ih)),n=0,u=r.length;n<u;n++)i=t(r[n]),st._jQueryInterface.call(i,i.data())});t.fn[ot]=st._jQueryInterface;t.fn[ot].Constructor=st;t.fn[ot].noConflict=function(){return t.fn[ot]=os,st._jQueryInterface};var ht="collapse",g="bs.collapse",fi="."+g,rh=t.fn[ht],lu={toggle:!0,parent:""},uh={toggle:"boolean",parent:"(string|element)"},ei={SHOW:"show"+fi,SHOWN:"shown"+fi,HIDE:"hide"+fi,HIDDEN:"hidden"+fi,CLICK_DATA_API:"click"+fi+".data-api"},nt="show",oi="collapse",lr="collapsing",au="collapsed",bf="width",fh="height",eh=".show, .collapsing",kf='[data-toggle="collapse"]',si=function(){function r(n,t){this._isTransitioning=!1;this._element=n;this._config=this._getConfig(t);this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'));for(var f=[].slice.call(document.querySelectorAll(kf)),r=0,o=f.length;r<o;r++){var e=f[r],u=i.getSelectorFromElement(e),s=[].slice.call(document.querySelectorAll(u)).filter(function(t){return t===n});null!==u&&0<s.length&&(this._selector=u,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var n=r.prototype;return n.toggle=function(){t(this._element).hasClass(nt)?this.hide():this.show()},n.show=function(){var n,e,u=this,o,f,s,h;this._isTransitioning||t(this._element).hasClass(nt)||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(eh)).filter(function(n){return"string"==typeof u._config.parent?n.getAttribute("data-parent")===u._config.parent:n.classList.contains(oi)})).length&&(n=null),n&&(e=t(n).not(this._selector).data(g))&&e._isTransitioning)||(o=t.Event(ei.SHOW),(t(this._element).trigger(o),o.isDefaultPrevented())||(n&&(r._jQueryInterface.call(t(n).not(this._selector),"hide"),e||t(n).data(g,null)),f=this._getDimension(),t(this._element).removeClass(oi).addClass(lr),this._element.style[f]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(au).attr("aria-expanded",!0),this.setTransitioning(!0),s="scroll"+(f[0].toUpperCase()+f.slice(1)),h=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,function(){t(u._element).removeClass(lr).addClass(oi).addClass(nt);u._element.style[f]="";u.setTransitioning(!1);t(u._element).trigger(ei.SHOWN)}).emulateTransitionEnd(h),this._element.style[f]=this._element[s]+"px"))},n.hide=function(){var s=this,u,n,f,r,e,o,h;if(!this._isTransitioning&&t(this._element).hasClass(nt)&&(u=t.Event(ei.HIDE),t(this._element).trigger(u),!u.isDefaultPrevented())){if(n=this._getDimension(),this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",i.reflow(this._element),t(this._element).addClass(lr).removeClass(oi).removeClass(nt),f=this._triggerArray.length,0<f)for(r=0;r<f;r++)e=this._triggerArray[r],o=i.getSelectorFromElement(e),null!==o&&(t([].slice.call(document.querySelectorAll(o))).hasClass(nt)||t(e).addClass(au).attr("aria-expanded",!1));this.setTransitioning(!0);this._element.style[n]="";h=i.getTransitionDurationFromElement(this._element);t(this._element).one(i.TRANSITION_END,function(){s.setTransitioning(!1);t(s._element).removeClass(lr).addClass(oi).trigger(ei.HIDDEN)}).emulateTransitionEnd(h)}},n.setTransitioning=function(n){this._isTransitioning=n},n.dispose=function(){t.removeData(this._element,g);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},n._getConfig=function(n){return(n=u({},lu,{},n)).toggle=Boolean(n.toggle),i.typeCheckConfig(ht,n,uh),n},n._getDimension=function(){return t(this._element).hasClass(bf)?bf:fh},n._getParent=function(){var n,e=this,u,f;return i.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent),u='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',f=[].slice.call(n.querySelectorAll(u)),t(f).each(function(n,t){e._addAriaAndCollapsedClass(r._getTargetFromElement(t),[t])}),n},n._addAriaAndCollapsedClass=function(n,i){var r=t(n).hasClass(nt);i.length&&t(i).toggleClass(au,!r).attr("aria-expanded",r)},r._getTargetFromElement=function(n){var t=i.getSelectorFromElement(n);return t?document.querySelector(t):null},r._jQueryInterface=function(n){return this.each(function(){var f=t(this),i=f.data(g),e=u({},lu,{},f.data(),{},"object"==typeof n&&n?n:{});if(!i&&e.toggle&&/show|hide/.test(n)&&(e.toggle=!1),i||(i=new r(this,e),f.data(g,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},c(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return lu}}]),r}();t(document).on(ei.CLICK_DATA_API,kf,function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var r=t(this),u=i.getSelectorFromElement(this),f=[].slice.call(document.querySelectorAll(u));t(f).each(function(){var n=t(this),i=n.data(g)?"toggle":r.data();si._jQueryInterface.call(n,i)})});t.fn[ht]=si._jQueryInterface;t.fn[ht].Constructor=si;t.fn[ht].noConflict=function(){return t.fn[ht]=rh,si._jQueryInterface};var hi="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,oh=function(){for(var t=["Edge","Trident","Firefox"],n=0;n<t.length;n+=1)if(hi&&0<=navigator.userAgent.indexOf(t[n]))return 1;return 0}(),sh=hi&&window.Promise?function(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},oh))}};yu=hi&&!(!window.MSInputMethodContext||!document.documentMode);pu=hi&&/MSIE 10/.test(navigator.userAgent);re=function(n,t,i){return t&&ue(n.prototype,t),i&&ue(n,i),n};o=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};ve=hi&&/Firefox/i.test(navigator.userAgent);rf=["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"];yr=rf.slice(3);var ah="flip",vh="clockwise",yh="counterclockwise";we={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(n){var r=n.placement,c=r.split("-")[0],u=r.split("-")[1];if(u){var f=n.offsets,i=f.reference,e=f.popper,s=-1!==["bottom","top"].indexOf(c),t=s?"left":"top",h=s?"width":"height",l={start:vt({},t,i[t]),end:vt({},t,i[t]+i[h]-e[h])};n.offsets.popper=o({},e,l[u])}return n}},offset:{order:200,enabled:!0,fn:function(n,t){var f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0],r=void 0;return r=nf(+f)?[+f,0]:ph(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(n,t){var f=t.boundariesElement||lt(n.instance.popper),u;n.instance.reference===f&&(f=lt(f));var e=gu("transform"),r=n.instance.popper.style,s=r.top,h=r.left,c=r[e];r.top="";r.left="";r[e]="";u=du(n.instance.popper,n.instance.reference,t.padding,f,n.positionFixed);r.top=s;r.left=h;r[e]=c;t.boundaries=u;var l=t.priority,i=n.offsets.popper,a={primary:function(n){var r=i[n];return i[n]<u[n]&&!t.escapeWithReference&&(r=Math.max(i[n],u[n])),vt({},n,r)},secondary:function(n){var r="right"===n?"left":"top",f=i[r];return i[n]>u[n]&&!t.escapeWithReference&&(f=Math.min(i[r],u[n]-("right"===n?i.width:i.height))),vt({},r,f)}};return l.forEach(function(n){var t=-1!==["left","top"].indexOf(n)?"primary":"secondary";i=o({},i,a[t](n))}),n.offsets.popper=i,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=-1!==["top","bottom"].indexOf(s),e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}},arrow:{order:500,enabled:!0,fn:function(n,t){var h,r;if(!ye(n.instance.modifiers,"arrow","keepTogether"))return n;if(r=t.element,"string"==typeof r){if(!(r=n.instance.popper.querySelector(r)))return n}else if(!n.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var p=n.placement.split("-")[0],v=n.offsets,e=v.popper,u=v.reference,o=-1!==["left","right"].indexOf(p),c=o?"height":"width",l=o?"Top":"Left",i=l.toLowerCase(),b=o?"left":"top",s=o?"bottom":"right",f=se(r)[c];u[s]-f<e[i]&&(n.offsets.popper[i]-=e[i]-(u[s]-f));u[i]+f>e[s]&&(n.offsets.popper[i]+=u[i]+f-e[s]);n.offsets.popper=w(n.offsets.popper);var k=u[i]+u[c]/2-f/2,y=tt(n.instance.popper),d=parseFloat(y["margin"+l],10),g=parseFloat(y["border"+l+"Width"],10),a=k-n.offsets.popper[i]-d-g;return a=Math.max(Math.min(e[c]-f,a),0),n.arrowElement=r,n.offsets.arrow=(vt(h={},i,Math.round(a)),vt(h,b,""),h),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(n,t){if(le(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var f=du(n.instance.popper,n.instance.reference,t.padding,t.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],e=vr(i),r=n.placement.split("-")[1]||"",u=[];switch(t.behavior){case ah:u=[i,e];break;case vh:u=pe(i);break;case yh:u=pe(i,!0);break;default:u=t.behavior}return u.forEach(function(s,h){if(i!==s||u.length===h+1)return n;i=n.placement.split("-")[0];e=vr(i);var l=n.offsets.popper,v=n.offsets.reference,c=Math.floor,k="left"===i&&c(l.right)>c(v.left)||"right"===i&&c(l.left)<c(v.right)||"top"===i&&c(l.bottom)>c(v.top)||"bottom"===i&&c(l.top)<c(v.bottom),y=c(l.left)<c(f.left),p=c(l.right)>c(f.right),w=c(l.top)<c(f.top),b=c(l.bottom)>c(f.bottom),d="left"===i&&y||"right"===i&&p||"top"===i&&w||"bottom"===i&&b,a=-1!==["top","bottom"].indexOf(i),nt=!!t.flipVariations&&(a&&"start"===r&&y||a&&"end"===r&&p||!a&&"start"===r&&w||!a&&"end"===r&&b),tt=!!t.flipVariationsByContent&&(a&&"start"===r&&p||a&&"end"===r&&y||!a&&"start"===r&&b||!a&&"end"===r&&w),g=nt||tt;(k||d||g)&&(n.flipped=!0,(k||d)&&(i=u[h+1]),g&&(r=function(n){return"end"===n?"start":"start"===n?"end":n}(r)),n.placement=i+(r?"-"+r:""),n.offsets.popper=o({},n.offsets.popper,he(n.instance.popper,n.offsets.reference,n.placement)),n=ce(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(n){var r=n.placement,t=r.split("-")[0],u=n.offsets,i=u.popper,e=u.reference,f=-1!==["left","right"].indexOf(t),o=-1===["top","left"].indexOf(t);return i[f?"left":"top"]=e[t]-(o?i[f?"width":"height"]:0),n.placement=vr(r),n.offsets.popper=w(i),n}},hide:{order:800,enabled:!0,fn:function(n){if(!ye(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=li(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(n,t){var w=t.x,b=t.y,k=n.offsets.popper,s=li(n.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,v,y,p;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var d=void 0!==s?s:t.gpuAcceleration,u=lt(n.instance.popper),l=bu(u),i={position:k.position},r=lh(n,window.devicePixelRatio<2||!ve),f="bottom"===w?"top":"bottom",e="right"===b?"left":"right",a=gu("transform"),h=void 0,c=void 0;return(c="bottom"==f?"HTML"===u.nodeName?-u.clientHeight+r.bottom:-l.height+r.bottom:r.top,h="right"==e?"HTML"===u.nodeName?-u.clientWidth+r.right:-l.width+r.right:r.left,d&&a)?(i[a]="translate3d("+h+"px, "+c+"px, 0)",i[f]=0,i[e]=0,i.willChange="transform"):(v="bottom"==f?-1:1,y="right"==e?-1:1,i[f]=c*v,i[e]=h*y,i.willChange=f+", "+e),p={"x-placement":n.placement},n.attributes=o({},p,n.attributes),n.styles=o({},i,n.styles),n.arrowStyles=o({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){return tf(n.instance.popper,n.styles),function(n,t){Object.keys(t).forEach(function(i){!1!==t[i]?n.setAttribute(i,t[i]):n.removeAttribute(i)})}(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&tf(n.arrowElement,n.arrowStyles),n},onLoad:function(n,t,i,r,u){var f=oe(u,t,n,i.positionFixed),e=ee(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),tf(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}};b=(re(yt,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=oe(this.state,this.popper,this.reference,this.options.positionFixed);n.placement=ee(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.positionFixed=this.options.positionFixed;n.offsets.popper=he(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";n=ce(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,le(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[gu("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=hh(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return ch.call(this)}}]),yt);b.Utils=("undefined"!=typeof window?window:global).PopperUtils;b.placements=rf;b.Defaults=we;var pt="dropdown",ai="bs.dropdown",p="."+ai,uf=".data-api",wh=t.fn[pt],bh=new RegExp("38|40|27"),s={HIDE:"hide"+p,HIDDEN:"hidden"+p,SHOW:"show"+p,SHOWN:"shown"+p,CLICK:"click"+p,CLICK_DATA_API:"click"+p+uf,KEYDOWN_DATA_API:"keydown"+p+uf,KEYUP_DATA_API:"keyup"+p+uf},pr="disabled",l="show",kh="dropup",dh="dropright",gh="dropleft",be="dropdown-menu-right",nc="position-static",wr='[data-toggle="dropdown"]',ff=".dropdown-menu",tc=".navbar-nav",ic=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",rc="top-start",uc="top-end",fc="bottom-start",ec="bottom-end",oc="right-start",sc="left-start",hc={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},cc={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},k=function(){function n(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var r=n.prototype;return r.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(pr)){var i=t(this._menu).hasClass(l);n._clearMenus();i||this.show(!0)}},r.show=function(r){var f;if(void 0===r&&(r=!1),!(this._element.disabled||t(this._element).hasClass(pr)||t(this._menu).hasClass(l))){var e={relatedTarget:this._element},o=t.Event(s.SHOW,e),u=n._getParentFromElement(this._element);if(t(u).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&r){if("undefined"==typeof b)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");f=this._element;"parent"===this._config.reference?f=u:i.isElement(this._config.reference)&&(f=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(f=this._config.reference[0]));"scrollParent"!==this._config.boundary&&t(u).addClass(nc);this._popper=new b(f,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(u).closest(tc).length&&t(document.body).children().on("mouseover",null,t.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);t(this._menu).toggleClass(l);t(u).toggleClass(l).trigger(t.Event(s.SHOWN,e))}}},r.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(pr)&&t(this._menu).hasClass(l)){var i={relatedTarget:this._element},r=t.Event(s.HIDE,i),u=n._getParentFromElement(this._element);t(u).trigger(r);r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass(l),t(u).toggleClass(l).trigger(t.Event(s.HIDDEN,i)))}},r.dispose=function(){t.removeData(this._element,ai);t(this._element).off(p);this._element=null;(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},r.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},r._addEventListeners=function(){var n=this;t(this._element).on(s.CLICK,function(t){t.preventDefault();t.stopPropagation();n.toggle()})},r._getConfig=function(n){return n=u({},this.constructor.Default,{},t(this._element).data(),{},n),i.typeCheckConfig(pt,n,this.constructor.DefaultType),n},r._getMenuElement=function(){if(!this._menu){var t=n._getParentFromElement(this._element);t&&(this._menu=t.querySelector(ff))}return this._menu},r._getPlacement=function(){var i=t(this._element.parentNode),n=fc;return i.hasClass(kh)?(n=rc,t(this._menu).hasClass(be)&&(n=uc)):i.hasClass(dh)?n=oc:i.hasClass(gh)?n=sc:t(this._menu).hasClass(be)&&(n=ec),n},r._detectNavbar=function(){return 0<t(this._element).closest(".navbar").length},r._getOffset=function(){var t=this,n={};return"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=u({},n.offsets,{},t._config.offset(n.offsets,t._element)||{}),n}:n.offset=this._config.offset,n},r._getPopperConfig=function(){var n={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),u({},n,{},this._config.popperConfig)},n._jQueryInterface=function(i){return this.each(function(){var r=t(this).data(ai);if(r||(r=new n(this,"object"==typeof i?i:null),t(this).data(ai,r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},n._clearMenus=function(i){var c,h;if(!i||3!==i.which&&("keyup"!==i.type||9===i.which))for(var u=[].slice.call(document.querySelectorAll(wr)),r=0,a=u.length;r<a;r++){var f=n._getParentFromElement(u[r]),e=t(u[r]).data(ai),o={relatedTarget:u[r]};(i&&"click"===i.type&&(o.clickEvent=i),e)&&(c=e._menu,!t(f).hasClass(l)||i&&("click"===i.type&&/input|textarea/i.test(i.target.tagName)||"keyup"===i.type&&9===i.which)&&t.contains(f,i.target)||(h=t.Event(s.HIDE,o),t(f).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),u[r].setAttribute("aria-expanded","false"),e._popper&&e._popper.destroy(),t(c).removeClass(l),t(f).removeClass(l).trigger(t.Event(s.HIDDEN,o)))))}},n._getParentFromElement=function(n){var t,r=i.getSelectorFromElement(n);return r&&(t=document.querySelector(r)),t||n.parentNode},n._dataApiKeydownHandler=function(i){var f,e,u,r,o;(/input|textarea/i.test(i.target.tagName)?32===i.which||27!==i.which&&(40!==i.which&&38!==i.which||t(i.target).closest(ff).length):!bh.test(i.which))||(i.preventDefault(),i.stopPropagation(),this.disabled||t(this).hasClass(pr))||(f=n._getParentFromElement(this),e=t(f).hasClass(l),(e||27!==i.which)&&(e&&(!e||27!==i.which&&32!==i.which)?(u=[].slice.call(f.querySelectorAll(ic)).filter(function(n){return t(n).is(":visible")}),0!==u.length&&(r=u.indexOf(i.target),38===i.which&&0<r&&r--,40===i.which&&r<u.length-1&&r++,r<0&&(r=0),u[r].focus())):(27===i.which&&(o=f.querySelector(wr),t(o).trigger("focus")),t(this).trigger("click"))))},c(n,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return hc}},{key:"DefaultType",get:function(){return cc}}]),n}();t(document).on(s.KEYDOWN_DATA_API,wr,k._dataApiKeydownHandler).on(s.KEYDOWN_DATA_API,ff,k._dataApiKeydownHandler).on(s.CLICK_DATA_API+" "+s.KEYUP_DATA_API,k._clearMenus).on(s.CLICK_DATA_API,wr,function(n){n.preventDefault();n.stopPropagation();k._jQueryInterface.call(t(this),"toggle")}).on(s.CLICK_DATA_API,".dropdown form",function(n){n.stopPropagation()});t.fn[pt]=k._jQueryInterface;t.fn[pt].Constructor=k;t.fn[pt].noConflict=function(){return t.fn[pt]=wh,k._jQueryInterface};var wt="modal",vi="bs.modal",h="."+vi,lc=t.fn[wt],ef={backdrop:!0,keyboard:!0,focus:!0,show:!0},ac={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},r={HIDE:"hide"+h,HIDE_PREVENTED:"hidePrevented"+h,HIDDEN:"hidden"+h,SHOW:"show"+h,SHOWN:"shown"+h,FOCUSIN:"focusin"+h,RESIZE:"resize"+h,CLICK_DISMISS:"click.dismiss"+h,KEYDOWN_DISMISS:"keydown.dismiss"+h,MOUSEUP_DISMISS:"mouseup.dismiss"+h,MOUSEDOWN_DISMISS:"mousedown.dismiss"+h,CLICK_DATA_API:"click"+h+".data-api"},vc="modal-dialog-scrollable",yc="modal-scrollbar-measure",pc="modal-backdrop",ke="modal-open",bt="fade",br="show",de="modal-static",wc=".modal-dialog",bc=".modal-body",kc='[data-dismiss="modal"]',ge=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",no=".sticky-top",yi=function(){function f(n,t){this._config=this._getConfig(t);this._element=n;this._dialog=n.querySelector(wc);this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._isTransitioning=!1;this._scrollbarWidth=0}var n=f.prototype;return n.toggle=function(n){return this._isShown?this.hide():this.show(n)},n.show=function(n){var i=this,u;this._isShown||this._isTransitioning||(t(this._element).hasClass(bt)&&(this._isTransitioning=!0),u=t.Event(r.SHOW,{relatedTarget:n}),t(this._element).trigger(u),this._isShown||u.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(r.CLICK_DISMISS,kc,function(n){return i.hide(n)}),t(this._dialog).on(r.MOUSEDOWN_DISMISS,function(){t(i._element).one(r.MOUSEUP_DISMISS,function(n){t(n.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(n)})))},n.hide=function(n){var o=this,u,f,e;(n&&n.preventDefault(),this._isShown&&!this._isTransitioning)&&(u=t.Event(r.HIDE),(t(this._element).trigger(u),this._isShown&&!u.isDefaultPrevented())&&(this._isShown=!1,f=t(this._element).hasClass(bt),(f&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(r.FOCUSIN),t(this._element).removeClass(br),t(this._element).off(r.CLICK_DISMISS),t(this._dialog).off(r.MOUSEDOWN_DISMISS),f)?(e=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(e)):this._hideModal()))},n.dispose=function(){[window,this._element,this._dialog].forEach(function(n){return t(n).off(h)});t(document).off(r.FOCUSIN);t.removeData(this._element,vi);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._isTransitioning=null;this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(n){return n=u({},ef,{},n),i.typeCheckConfig(wt,n,ac),n},n._triggerBackdropTransition=function(){var f=this,n,u;if("static"===this._config.backdrop){if(n=t.Event(r.HIDE_PREVENTED),t(this._element).trigger(n),n.defaultPrevented)return;this._element.classList.add(de);u=i.getTransitionDurationFromElement(this._element);t(this._element).one(i.TRANSITION_END,function(){f._element.classList.remove(de)}).emulateTransitionEnd(u);this._element.focus()}else this.hide()},n._showElement=function(n){function o(){u._config.focus&&u._element.focus();u._isTransitioning=!1;t(u._element).trigger(s)}var u=this,f=t(this._element).hasClass(bt),e=this._dialog?this._dialog.querySelector(bc):null,s,h;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.setAttribute("aria-modal",!0);t(this._dialog).hasClass(vc)&&e?e.scrollTop=0:this._element.scrollTop=0;f&&i.reflow(this._element);t(this._element).addClass(br);this._config.focus&&this._enforceFocus();s=t.Event(r.SHOWN,{relatedTarget:n});f?(h=i.getTransitionDurationFromElement(this._dialog),t(this._dialog).one(i.TRANSITION_END,o).emulateTransitionEnd(h)):o()},n._enforceFocus=function(){var n=this;t(document).off(r.FOCUSIN).on(r.FOCUSIN,function(i){document!==i.target&&n._element!==i.target&&0===t(n._element).has(i.target).length&&n._element.focus()})},n._setEscapeEvent=function(){var n=this;this._isShown&&this._config.keyboard?t(this._element).on(r.KEYDOWN_DISMISS,function(t){27===t.which&&n._triggerBackdropTransition()}):this._isShown||t(this._element).off(r.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var n=this;this._isShown?t(window).on(r.RESIZE,function(t){return n.handleUpdate(t)}):t(window).off(r.RESIZE)},n._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._element.removeAttribute("aria-modal");this._isTransitioning=!1;this._showBackdrop(function(){t(document.body).removeClass(ke);n._resetAdjustments();n._resetScrollbar();t(n._element).trigger(r.HIDDEN)})},n._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(n){var u=this,f=t(this._element).hasClass(bt)?bt:"",o,e,s;if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=pc,f&&this._backdrop.classList.add(f),t(this._backdrop).appendTo(document.body),t(this._element).on(r.CLICK_DISMISS,function(n){u._ignoreBackdropClick?u._ignoreBackdropClick=!1:n.target===n.currentTarget&&u._triggerBackdropTransition()}),f&&i.reflow(this._backdrop),t(this._backdrop).addClass(br),!n)return;if(!f)return void n();o=i.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(i.TRANSITION_END,n).emulateTransitionEnd(o)}else!this._isShown&&this._backdrop?(t(this._backdrop).removeClass(br),e=function(){u._removeBackdrop();n&&n()},t(this._element).hasClass(bt)?(s=i.getTransitionDurationFromElement(this._backdrop),t(this._backdrop).one(i.TRANSITION_END,e).emulateTransitionEnd(s)):e()):n&&n()},n._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},n._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var n=this,i,r,u,f;this._isBodyOverflowing&&(i=[].slice.call(document.querySelectorAll(ge)),r=[].slice.call(document.querySelectorAll(no)),t(i).each(function(i,r){var u=r.style.paddingRight,f=t(r).css("padding-right");t(r).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),t(r).each(function(i,r){var u=r.style.marginRight,f=t(r).css("margin-right");t(r).data("margin-right",u).css("margin-right",parseFloat(f)-n._scrollbarWidth+"px")}),u=document.body.style.paddingRight,f=t(document.body).css("padding-right"),t(document.body).data("padding-right",u).css("padding-right",parseFloat(f)+this._scrollbarWidth+"px"));t(document.body).addClass(ke)},n._resetScrollbar=function(){var r=[].slice.call(document.querySelectorAll(ge)),n,i;t(r).each(function(n,i){var r=t(i).data("padding-right");t(i).removeData("padding-right");i.style.paddingRight=r||""});n=[].slice.call(document.querySelectorAll(""+no));t(n).each(function(n,i){var r=t(i).data("margin-right");"undefined"!=typeof r&&t(i).css("margin-right",r).removeData("margin-right")});i=t(document.body).data("padding-right");t(document.body).removeData("padding-right");document.body.style.paddingRight=i||""},n._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=yc,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},f._jQueryInterface=function(n,i){return this.each(function(){var r=t(this).data(vi),e=u({},ef,{},t(this).data(),{},"object"==typeof n&&n?n:{});if(r||(r=new f(this,e),t(this).data(vi,r)),"string"==typeof n){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n](i)}else e.show&&r.show(i)})},c(f,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ef}}]),f}();t(document).on(r.CLICK_DATA_API,'[data-toggle="modal"]',function(n){var f,e=this,o=i.getSelectorFromElement(this),s,h;o&&(f=document.querySelector(o));s=t(f).data(vi)?"toggle":u({},t(f).data(),{},t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();h=t(f).one(r.SHOW,function(n){n.isDefaultPrevented()||h.one(r.HIDDEN,function(){t(e).is(":visible")&&e.focus()})});yi._jQueryInterface.call(t(f),s,this)});t.fn[wt]=yi._jQueryInterface;t.fn[wt].Constructor=yi;t.fn[wt].noConflict=function(){return t.fn[wt]=lc,yi._jQueryInterface};var dc=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],gc=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,nl=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;var it="tooltip",kr="bs.tooltip",a="."+kr,tl=t.fn[it],io="bs-tooltip",il=new RegExp("(^|\\s)"+io+"\\S+","g"),rl=["sanitize","whiteList","sanitizeFn"],ul={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},fl={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},el={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},pi="show",of="out",ol={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},wi="fade",bi="show",sl=".tooltip-inner",hl=".arrow",ki="hover",sf="focus",cl="click",ll="manual",rt=function(){function r(n,t){if("undefined"==typeof b)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var n=r.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(n){if(this._isEnabled)if(n){var r=this.constructor.DATA_KEY,i=t(n.currentTarget).data(r);i||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));i._activeTrigger.click=!i._activeTrigger.click;i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(bi))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout);t.removeData(this.element,this.constructor.DATA_KEY);t(this.element).off(this.constructor.EVENT_KEY);t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler);this.tip&&t(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;this._popper&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},n.show=function(){var n=this,u,f,h,r,e,c,o,l,s,a;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");if(u=t.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(t(this.element).trigger(u),f=i.findShadowRoot(this.element),h=t.contains(null!==f?f:this.element.ownerDocument.documentElement,this.element),u.isDefaultPrevented()||!h)return;r=this.getTipElement();e=i.getUID(this.constructor.NAME);r.setAttribute("id",e);this.element.setAttribute("aria-describedby",e);this.setContent();this.config.animation&&t(r).addClass(wi);c="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement;o=this._getAttachment(c);this.addAttachmentClass(o);l=this._getContainer();t(r).data(this.constructor.DATA_KEY,this);t.contains(this.element.ownerDocument.documentElement,this.tip)||t(r).appendTo(l);t(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new b(this.element,r,this._getPopperConfig(o));t(r).addClass(bi);"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);s=function(){n.config.animation&&n._fixTransition();var i=n._hoverState;n._hoverState=null;t(n.element).trigger(n.constructor.Event.SHOWN);i===of&&n._leave(null,n)};t(this.tip).hasClass(wi)?(a=i.getTransitionDurationFromElement(this.tip),t(this.tip).one(i.TRANSITION_END,s).emulateTransitionEnd(a)):s()}},n.hide=function(n){function f(){r._hoverState!==pi&&u.parentNode&&u.parentNode.removeChild(u);r._cleanTipClass();r.element.removeAttribute("aria-describedby");t(r.element).trigger(r.constructor.Event.HIDDEN);null!==r._popper&&r._popper.destroy();n&&n()}var r=this,u=this.getTipElement(),e=t.Event(this.constructor.Event.HIDE),o;(t(this.element).trigger(e),e.isDefaultPrevented())||((t(u).removeClass(bi),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[cl]=!1,this._activeTrigger[sf]=!1,this._activeTrigger[ki]=!1,t(this.tip).hasClass(wi))?(o=i.getTransitionDurationFromElement(u),t(u).one(i.TRANSITION_END,f).emulateTransitionEnd(o)):f(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(n){t(this.getTipElement()).addClass(io+"-"+n)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var n=this.getTipElement();this.setElementContent(t(n.querySelectorAll(sl)),this.getTitle());t(n).removeClass(wi+" "+bi)},n.setElementContent=function(n,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=to(i,this.config.whiteList,this.config.sanitizeFn)),n.html(i)):n.text(i):this.config.html?t(i).parent().is(n)||n.empty().append(i):n.text(t(i).text())},n.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},n._getPopperConfig=function(n){var t=this;return u({},{placement:n,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:hl},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(n){n.originalPlacement!==n.placement&&t._handlePopperPlacementChange(n)},onUpdate:function(n){return t._handlePopperPlacementChange(n)}},{},this.config.popperConfig)},n._getOffset=function(){var t=this,n={};return"function"==typeof this.config.offset?n.fn=function(n){return n.offsets=u({},n.offsets,{},t.config.offset(n.offsets,t.element)||{}),n}:n.offset=this.config.offset,n},n._getContainer=function(){return!1===this.config.container?document.body:i.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(n){return fl[n.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)t(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(i!==ll){var r=i===ki?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,u=i===ki?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;t(n.element).on(r,n.config.selector,function(t){return n._enter(t)}).on(u,n.config.selector,function(t){return n._leave(t)})}});this._hideModalHandler=function(){n.element&&n.hide()};t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler);this.config.selector?this.config=u({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!=n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusin"===n.type?sf:ki]=!0);t(i.getTipElement()).hasClass(bi)||i._hoverState===pi?i._hoverState=pi:(clearTimeout(i._timeout),i._hoverState=pi,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(function(){i._hoverState===pi&&i.show()},i.config.delay.show):i.show())},n._leave=function(n,i){var r=this.constructor.DATA_KEY;(i=i||t(n.currentTarget).data(r))||(i=new this.constructor(n.currentTarget,this._getDelegateConfig()),t(n.currentTarget).data(r,i));n&&(i._activeTrigger["focusout"===n.type?sf:ki]=!1);i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=of,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(function(){i._hoverState===of&&i.hide()},i.config.delay.hide):i.hide())},n._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},n._getConfig=function(n){var r=t(this.element).data();return Object.keys(r).forEach(function(n){-1!==rl.indexOf(n)&&delete r[n]}),"number"==typeof(n=u({},this.constructor.Default,{},r,{},"object"==typeof n&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),i.typeCheckConfig(it,n,this.constructor.DefaultType),n.sanitize&&(n.template=to(n.template,n.whiteList,n.sanitizeFn)),n},n._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},n._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(il);null!==n&&n.length&&i.removeClass(n.join(""))},n._handlePopperPlacementChange=function(n){var t=n.instance;this.tip=t.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},n._fixTransition=function(){var n=this.getTipElement(),i=this.config.animation;null===n.getAttribute("x-placement")&&(t(n).removeClass(wi),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(kr),u="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new r(this,u),t(this).data(kr,i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},c(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return el}},{key:"NAME",get:function(){return it}},{key:"DATA_KEY",get:function(){return kr}},{key:"Event",get:function(){return ol}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return ul}}]),r}();t.fn[it]=rt._jQueryInterface;t.fn[it].Constructor=rt;t.fn[it].noConflict=function(){return t.fn[it]=tl,rt._jQueryInterface};var kt="popover",dr="bs.popover",v="."+dr,al=t.fn[kt],ro="bs-popover",vl=new RegExp("(^|\\s)"+ro+"\\S+","g"),yl=u({},rt.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>'}),pl=u({},rt.DefaultType,{content:"(string|element|function)"}),wl="fade",bl="show",kl=".popover-header",dl=".popover-body",gl={HIDE:"hide"+v,HIDDEN:"hidden"+v,SHOW:"show"+v,SHOWN:"shown"+v,INSERTED:"inserted"+v,CLICK:"click"+v,FOCUSIN:"focusin"+v,FOCUSOUT:"focusout"+v,MOUSEENTER:"mouseenter"+v,MOUSELEAVE:"mouseleave"+v},gr=function(n){function i(){return n.apply(this,arguments)||this}!function(n,t){n.prototype=Object.create(t.prototype);(n.prototype.constructor=n).__proto__=t}(i,n);var r=i.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(n){t(this.getTipElement()).addClass(ro+"-"+n)},r.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},r.setContent=function(){var i=t(this.getTipElement()),n;this.setElementContent(i.find(kl),this.getTitle());n=this._getContent();"function"==typeof n&&(n=n.call(this.element));this.setElementContent(i.find(dl),n);i.removeClass(wl+" "+bl)},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var i=t(this.getTipElement()),n=i.attr("class").match(vl);null!==n&&0<n.length&&i.removeClass(n.join(""))},i._jQueryInterface=function(n){return this.each(function(){var r=t(this).data(dr),u="object"==typeof n?n:null;if((r||!/dispose|hide/.test(n))&&(r||(r=new i(this,u),t(this).data(dr,r)),"string"==typeof n)){if("undefined"==typeof r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},c(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return yl}},{key:"NAME",get:function(){return kt}},{key:"DATA_KEY",get:function(){return dr}},{key:"Event",get:function(){return gl}},{key:"EVENT_KEY",get:function(){return v}},{key:"DefaultType",get:function(){return pl}}]),i}(rt);t.fn[kt]=gr._jQueryInterface;t.fn[kt].Constructor=gr;t.fn[kt].noConflict=function(){return t.fn[kt]=al,gr._jQueryInterface};var ut="scrollspy",nu="bs.scrollspy",tu="."+nu,na=t.fn[ut],uo={offset:10,method:"auto",target:""},ta={offset:"number",method:"string",target:"(string|element)"},hf={ACTIVATE:"activate"+tu,SCROLL:"scroll"+tu,LOAD_DATA_API:"load"+tu+".data-api"},ia="dropdown-item",ft="active",ra='[data-spy="scroll"]',fo=".nav, .list-group",cf=".nav-link",ua=".nav-item",eo=".list-group-item",fa=".dropdown",ea=".dropdown-item",oa=".dropdown-toggle",sa="offset",oo="position",di=function(){function r(n,i){var r=this;this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(i);this._selector=this._config.target+" "+cf+","+this._config.target+" "+eo+","+this._config.target+" "+ea;this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;t(this._scrollElement).on(hf.SCROLL,function(n){return r._process(n)});this.refresh();this._process()}var n=r.prototype;return n.refresh=function(){var n=this,u=this._scrollElement===this._scrollElement.window?sa:oo,r="auto"===this._config.method?u:this._config.method,f=r===oo?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();[].slice.call(document.querySelectorAll(this._selector)).map(function(n){var u,e=i.getSelectorFromElement(n),o;return(e&&(u=document.querySelector(e)),u)&&(o=u.getBoundingClientRect(),o.width||o.height)?[t(u)[r]().top+f,e]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(t){n._offsets.push(t[0]);n._targets.push(t[1])})},n.dispose=function(){t.removeData(this._element,nu);t(this._scrollElement).off(tu);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},n._getConfig=function(n){if("string"!=typeof(n=u({},uo,{},"object"==typeof n&&n?n:{})).target){var r=t(n.target).attr("id");r||(r=i.getUID(ut),t(n.target).attr("id",r));n.target="#"+r}return i.typeCheckConfig(ut,n,ta),n},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),u=this._config.offset+r-this._getOffsetHeight(),i,n;if(this._scrollHeight!==r&&this.refresh(),u<=t)i=this._targets[this._targets.length-1],this._activeTarget!==i&&this._activate(i);else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&("undefined"==typeof this._offsets[n+1]||t<this._offsets[n+1])&&this._activate(this._targets[n])}},n._activate=function(n){this._activeTarget=n;this._clear();var r=this._selector.split(",").map(function(t){return t+'[data-target="'+n+'"],'+t+'[href="'+n+'"]'}),i=t([].slice.call(document.querySelectorAll(r.join(","))));i.hasClass(ia)?(i.closest(fa).find(oa).addClass(ft),i.addClass(ft)):(i.addClass(ft),i.parents(fo).prev(cf+", "+eo).addClass(ft),i.parents(fo).prev(ua).children(cf).addClass(ft));t(this._scrollElement).trigger(hf.ACTIVATE,{relatedTarget:n})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(n){return n.classList.contains(ft)}).forEach(function(n){return n.classList.remove(ft)})},r._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(nu);if(i||(i=new r(this,"object"==typeof n&&n),t(this).data(nu,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},c(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return uo}}]),r}();t(window).on(hf.LOAD_DATA_API,function(){for(var r,n=[].slice.call(document.querySelectorAll(ra)),i=n.length;i--;)r=t(n[i]),di._jQueryInterface.call(r,r.data())});t.fn[ut]=di._jQueryInterface;t.fn[ut].Constructor=di;t.fn[ut].noConflict=function(){return t.fn[ut]=na,di._jQueryInterface};var iu="bs.tab",gi="."+iu,ha=t.fn.tab,nr={HIDE:"hide"+gi,HIDDEN:"hidden"+gi,SHOW:"show"+gi,SHOWN:"shown"+gi,CLICK_DATA_API:"click"+gi+".data-api"},ca="dropdown-menu",tr="active",la="disabled",so="fade",ho="show",aa=".dropdown",va=".nav, .list-group",co=".active",lo="> li > .active",ya=".dropdown-toggle",pa="> .dropdown-menu .active",ir=function(){function n(n){this._element=n}var r=n.prototype;return r.show=function(){var h=this,u,n,r,f,c,e,o,s;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(tr)||t(this._element).hasClass(la)||(r=t(this._element).closest(va)[0],f=i.getSelectorFromElement(this._element),r&&(c="UL"===r.nodeName||"OL"===r.nodeName?lo:co,n=(n=t.makeArray(t(r).find(c)))[n.length-1]),e=t.Event(nr.HIDE,{relatedTarget:this._element}),o=t.Event(nr.SHOW,{relatedTarget:n}),(n&&t(n).trigger(e),t(this._element).trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(f&&(u=document.querySelector(f)),this._activate(this._element,r),s=function(){var i=t.Event(nr.HIDDEN,{relatedTarget:h._element}),r=t.Event(nr.SHOWN,{relatedTarget:n});t(n).trigger(i);t(h._element).trigger(r)},u?this._activate(u,u.parentNode,s):s()))},r.dispose=function(){t.removeData(this._element,iu);this._element=null},r._activate=function(n,r,u){function e(){return s._transitionComplete(n,f,u)}var s=this,f=(!r||"UL"!==r.nodeName&&"OL"!==r.nodeName?t(r).children(co):t(r).find(lo))[0],h=u&&f&&t(f).hasClass(so),o;f&&h?(o=i.getTransitionDurationFromElement(f),t(f).removeClass(ho).one(i.TRANSITION_END,e).emulateTransitionEnd(o)):e()},r._transitionComplete=function(n,r,u){var f,e,o;r&&(t(r).removeClass(tr),f=t(r.parentNode).find(pa)[0],f&&t(f).removeClass(tr),"tab"===r.getAttribute("role")&&r.setAttribute("aria-selected",!1));(t(n).addClass(tr),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!0),i.reflow(n),n.classList.contains(so)&&n.classList.add(ho),n.parentNode&&t(n.parentNode).hasClass(ca))&&(e=t(n).closest(aa)[0],e&&(o=[].slice.call(e.querySelectorAll(ya)),t(o).addClass(tr)),n.setAttribute("aria-expanded",!0));u&&u()},n._jQueryInterface=function(i){return this.each(function(){var u=t(this),r=u.data(iu);if(r||(r=new n(this),u.data(iu,r)),"string"==typeof i){if("undefined"==typeof r[i])throw new TypeError('No method named "'+i+'"');r[i]()}})},c(n,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),n}();t(document).on(nr.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(n){n.preventDefault();ir._jQueryInterface.call(t(this),"show")});t.fn.tab=ir._jQueryInterface;t.fn.tab.Constructor=ir;t.fn.tab.noConflict=function(){return t.fn.tab=ha,ir._jQueryInterface};var dt="toast",ru="bs.toast",rr="."+ru,wa=t.fn[dt],gt={CLICK_DISMISS:"click.dismiss"+rr,HIDE:"hide"+rr,HIDDEN:"hidden"+rr,SHOW:"show"+rr,SHOWN:"shown"+rr},ba="fade",ao="hide",ur="show",vo="showing",ka={animation:"boolean",autohide:"boolean",delay:"number"},yo={animation:!0,autohide:!0,delay:500},da='[data-dismiss="toast"]',uu=function(){function r(n,t){this._element=n;this._config=this._getConfig(t);this._timeout=null;this._setListeners()}var n=r.prototype;return n.show=function(){var n=this,u=t.Event(gt.SHOW),r,f;(t(this._element).trigger(u),u.isDefaultPrevented())||(this._config.animation&&this._element.classList.add(ba),r=function(){n._element.classList.remove(vo);n._element.classList.add(ur);t(n._element).trigger(gt.SHOWN);n._config.autohide&&(n._timeout=setTimeout(function(){n.hide()},n._config.delay))},(this._element.classList.remove(ao),i.reflow(this._element),this._element.classList.add(vo),this._config.animation)?(f=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,r).emulateTransitionEnd(f)):r())},n.hide=function(){if(this._element.classList.contains(ur)){var n=t.Event(gt.HIDE);t(this._element).trigger(n);n.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout);this._timeout=null;this._element.classList.contains(ur)&&this._element.classList.remove(ur);t(this._element).off(gt.CLICK_DISMISS);t.removeData(this._element,ru);this._element=null;this._config=null},n._getConfig=function(n){return n=u({},yo,{},t(this._element).data(),{},"object"==typeof n&&n?n:{}),i.typeCheckConfig(dt,n,this.constructor.DefaultType),n},n._setListeners=function(){var n=this;t(this._element).on(gt.CLICK_DISMISS,da,function(){return n.hide()})},n._close=function(){function n(){r._element.classList.add(ao);t(r._element).trigger(gt.HIDDEN)}var r=this,u;(this._element.classList.remove(ur),this._config.animation)?(u=i.getTransitionDurationFromElement(this._element),t(this._element).one(i.TRANSITION_END,n).emulateTransitionEnd(u)):n()},r._jQueryInterface=function(n){return this.each(function(){var u=t(this),i=u.data(ru);if(i||(i=new r(this,"object"==typeof n&&n),u.data(ru,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n](this)}})},c(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return ka}},{key:"Default",get:function(){return yo}}]),r}();t.fn[dt]=uu._jQueryInterface;t.fn[dt].Constructor=uu;t.fn[dt].noConflict=function(){return t.fn[dt]=wa,uu._jQueryInterface};n.Alert=et;n.Button=ri;n.Carousel=st;n.Collapse=si;n.Dropdown=k;n.Modal=yi;n.Popover=gr;n.Scrollspy=di;n.Tab=ir;n.Toast=uu;n.Tooltip=rt;n.Util=i;Object.defineProperty(n,"__esModule",{value:!0})});!function(n,t){void 0===n&&void 0!==window&&(n=window);"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(n)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(n.jQuery)}(this,function(n){!function(n){"use strict";function ni(t,i){var r=t.nodeName.toLowerCase();if(-1!==n.inArray(r,i))return-1===n.inArray(r,kt)||Boolean(t.nodeValue.match(dt)||t.nodeValue.match(gt));for(var f=n(i).filter(function(n,t){return t instanceof RegExp}),u=0,e=f.length;u<e;u++)if(r.match(f[u]))return!0;return!1}function nt(n,t,i){var r,e,s;if(i&&"function"==typeof i)return i(n);for(var l=Object.keys(t),u=0,a=n.length;u<a;u++)for(var h=n[u].querySelectorAll("*"),f=0,v=h.length;f<v;f++)if(r=h[f],e=r.nodeName.toLowerCase(),-1!==l.indexOf(e))for(var c=[].slice.call(r.attributes),y=[].concat(t["*"]||[],t[e]||[]),o=0,p=c.length;o<p;o++)s=c[o],ni(s,y)||r.removeAttribute(s.nodeName);else r.parentNode.removeChild(r)}function ft(n){var r,u,i;if(null==this)throw new TypeError;if(r=String(this),n&&"[object RegExp]"==tt.call(n))throw new TypeError;var f=r.length,e=String(n),o=e.length,s=1<arguments.length?arguments[1]:void 0,t=s?Number(s):0;if(t!=t&&(t=0),u=Math.min(Math.max(t,0),f),f<o+u)return!1;for(i=-1;++i<o;)if(r.charCodeAt(u+i)!=e.charCodeAt(i))return!1;return!0}function et(n,t){var i,u=n.selectedOptions,f=[],r,e;if(t){for(r=0,e=u.length;r<e;r++)(i=u[r]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||f.push(i);return f}return u}function a(n,t){for(var i,r=[],f=t||n.selectedOptions,u=0,e=f.length;u<e;u++)(i=f[u]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||r.push(i.value||i.text);return n.multiple?r:r.length?r[0]:null}function st(n,t,i,r){for(var e,u,o=["display","subtext","tokens"],s=!1,f=0;f<o.length;f++)if(e=o[f],u=n[e],u&&(u=u.toString(),"display"===e&&(u=u.replace(/<[^>]+>/g,"")),r&&(u=ht(u)),u=u.toUpperCase(),s="contains"===i?0<=u.indexOf(t):u.startsWith(t)))break;return s}function e(n){return parseInt(n,10)||0}function ui(n){return ti[n]}function ht(n){return(n=n.toString())&&n.replace(ii,ui).replace(ri,"")}function fi(n){return p[n]}function pt(i){var s,h=arguments,r=i,e,o,c;if([].shift.apply(h),!u.success){try{u.full=(n.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(i){f.BootstrapVersion?u.full=f.BootstrapVersion.split(" ")[0].split("."):(u.full=[u.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",i))}u.major=u.full[0];u.success=!0}if("4"===u.major)for(e=[],f.DEFAULTS.style===t.BUTTONCLASS&&e.push({name:"style",className:"BUTTONCLASS"}),f.DEFAULTS.iconBase===t.ICONBASE&&e.push({name:"iconBase",className:"ICONBASE"}),f.DEFAULTS.tickIcon===t.TICKICON&&e.push({name:"tickIcon",className:"TICKICON"}),t.DIVIDER="dropdown-divider",t.SHOW="show",t.BUTTONCLASS="btn-light",t.POPOVERHEADER="popover-header",t.ICONBASE="",t.TICKICON="bs-ok-default",o=0;o<e.length;o++)i=e[o],f.DEFAULTS[i.name]=t[i.className];return c=this.each(function(){var e=n(this),t,i,o,u,c,l;if(e.is("select")){if(t=e.data("selectpicker"),i="object"==typeof r&&r,t){if(i)for(o in i)i.hasOwnProperty(o)&&(t.options[o]=i[o])}else{u=e.data();for(c in u)u.hasOwnProperty(c)&&-1!==n.inArray(c,bt)&&delete u[c];l=n.extend({},f.DEFAULTS,n.fn.selectpicker.defaults||{},u,i);l.template=n.extend({},f.DEFAULTS.template,n.fn.selectpicker.defaults?n.fn.selectpicker.defaults.template:{},u.template,i.template);e.data("selectpicker",t=new f(this,l))}"string"==typeof r&&(s=t[r]instanceof Function?t[r].apply(t,h):t.options[r])}}),void 0!==s?s:c}var bt=["sanitize","whiteList","sanitizeFn"],kt=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],dt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,gt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,y,tt,s,it,rt,ut,h,o,ot,p,w,ct,lt,c,wt;"classList"in document.createElement("_")||function(t){var r;if("Element"in t){var u="classList",e="prototype",f=t.Element[e],i=Object,o=function(){var t=n(this);return{add:function(n){return n=Array.prototype.slice.call(arguments).join(" "),t.addClass(n)},remove:function(n){return n=Array.prototype.slice.call(arguments).join(" "),t.removeClass(n)},toggle:function(n,i){return t.toggleClass(n,i)},contains:function(n){return t.hasClass(n)}}};if(i.defineProperty){r={get:o,enumerable:!0,configurable:!0};try{i.defineProperty(f,u,r)}catch(t){void 0!==t.number&&-2146823252!==t.number||(r.enumerable=!1,i.defineProperty(f,u,r))}}else i[e].__defineGetter__&&f.__defineGetter__(u,o)}}(window);s=document.createElement("_");(s.classList.add("c1","c2"),s.classList.contains("c2"))||(it=DOMTokenList.prototype.add,rt=DOMTokenList.prototype.remove,DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,it.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,rt.bind(this))});(s.classList.toggle("c3",!1),s.classList.contains("c3"))&&(ut=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(n,t){return 1 in arguments&&!this.contains(n)==!t?t:ut.call(this,n)});s=null;String.prototype.startsWith||(y=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(n){}return i}(),tt={}.toString,y?y(String.prototype,"startsWith",{value:ft,configurable:!0,writable:!0}):String.prototype.startsWith=ft);Object.keys||(Object.keys=function(n,t,i){for(t in i=[],n)i.hasOwnProperty.call(n,t)&&i.push(t);return i});HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")&&Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});h={useDefault:!1,_set:n.valHooks.select.set};n.valHooks.select.set=function(t,i){return i&&!h.useDefault&&n(t).data("selected",!0),h._set.apply(this,arguments)};o=null;ot=function(){try{return new Event("change"),!0}catch(n){return!1}}();n.fn.triggerNative=function(n){var t,i=this[0];i.dispatchEvent?(ot?t=new Event(n,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(n,!0,!1),i.dispatchEvent(t)):i.fireEvent?((t=document.createEventObject()).eventType=n,i.fireEvent("on"+n,t)):this.trigger(n)};var ti={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},ii=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ri=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");c=(p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},w="(?:"+Object.keys(p).join("|")+")",ct=RegExp(w),lt=RegExp(w,"g"),function(n){return n=null==n?"":""+n,ct.test(n)?n.replace(lt,fi):n});var ei={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},at=27,oi=13,v=32,b=9,k=38,d=40,u={success:!1,major:"3"};try{u.full=(n.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".");u.major=u.full[0];u.success=!0}catch(e){}var vt=0,i=".bs.select",t={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},yt={MENU:"."+t.MENU},r={span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};r.a.setAttribute("role","option");r.subtext.className="text-muted";r.text=r.span.cloneNode(!1);r.text.className="text";r.checkMark=r.span.cloneNode(!1);var si=new RegExp(k+"|"+d),hi=new RegExp("^"+b+"$|"+at),g=function(n,t,i){var u=r.li.cloneNode(!1);return n&&(1===n.nodeType||11===n.nodeType?u.appendChild(n):u.innerHTML=n),void 0!==t&&""!==t&&(u.className=t),null!=i&&u.classList.add("optgroup-"+i),u},ci=function(n,t,i){var f=r.a.cloneNode(!0);return n&&(11===n.nodeType?f.appendChild(n):f.insertAdjacentHTML("beforeend",n)),void 0!==t&&""!==t&&(f.className=t),"4"===u.major&&f.classList.add("dropdown-item"),i&&f.setAttribute("style",i),f},l=function(n,t){var u,f,i=r.text.cloneNode(!1),e;if(n.content?i.innerHTML=n.content:((i.textContent=n.text,n.icon)&&(e=r.whitespace.cloneNode(!1),(f=(!0===t?r.i:r.span).cloneNode(!1)).className=n.iconBase+" "+n.icon,r.fragment.appendChild(f),r.fragment.appendChild(e)),n.subtext&&((u=r.subtext.cloneNode(!1)).textContent=n.subtext,i.appendChild(u))),!0===t)for(;0<i.childNodes.length;)r.fragment.appendChild(i.childNodes[0]);else r.fragment.appendChild(i);return r.fragment},li=function(n){var i,u,t=r.text.cloneNode(!1),f;return(t.innerHTML=n.label,n.icon)&&(f=r.whitespace.cloneNode(!1),(u=r.span.cloneNode(!1)).className=n.iconBase+" "+n.icon,r.fragment.appendChild(u),r.fragment.appendChild(f)),n.subtext&&((i=r.subtext.cloneNode(!1)).textContent=n.subtext,t.appendChild(i)),r.fragment.appendChild(t),r.fragment},f=function(t,i){var u=this,r;h.useDefault||(n.valHooks.select.set=h._set,h.useDefault=!0);this.$element=n(t);this.$newElement=null;this.$button=null;this.$menu=null;this.options=i;this.selectpicker={main:{},search:{},current:{},view:{},keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout(function(){u.selectpicker.keydown.keyHistory=""},800)}}}};null===this.options.title&&(this.options.title=this.$element.attr("title"));r=this.options.windowPadding;"number"==typeof r&&(this.options.windowPadding=[r,r,r,r]);this.val=f.prototype.val;this.render=f.prototype.render;this.refresh=f.prototype.refresh;this.setStyle=f.prototype.setStyle;this.selectAll=f.prototype.selectAll;this.deselectAll=f.prototype.deselectAll;this.destroy=f.prototype.destroy;this.remove=f.prototype.remove;this.show=f.prototype.show;this.hide=f.prototype.hide;this.init()};f.VERSION="1.13.12";f.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(n){return 1==n?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){return[1==n?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:t.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:t.ICONBASE,tickIcon:t.TICKICON,showTick:!1,template:{caret:'<span class="caret"><\/span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}};f.prototype={constructor:f,init:function(){var n=this,r=this.$element.attr("id");vt++;this.selectId="bs-select-"+vt;this.$element[0].classList.add("bs-select-hidden");this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$element[0].classList.contains("show-tick")&&(this.options.showTick=!0);this.$newElement=this.createDropdown();this.$element.after(this.$newElement).prependTo(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(yt.MENU);this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");this.$element[0].classList.remove("bs-select-hidden");!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(t.MENURIGHT);void 0!==r&&this.$button.attr("data-id",r);this.checkDisabled();this.clickListener();this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0];this.setStyle();this.render();this.setWidth();this.options.container?this.selectPosition():this.$element.on("hide"+i,function(){if(n.isVirtual()){var t=n.$menuInner[0],i=t.firstChild.cloneNode(!1);t.replaceChild(i,t.firstChild);t.scrollTop=0}});this.$menu.data("this",this);this.$newElement.data("this",this);this.options.mobile&&this.mobile();this.$newElement.on({"hide.bs.dropdown":function(t){n.$element.trigger("hide"+i,t)},"hidden.bs.dropdown":function(t){n.$element.trigger("hidden"+i,t)},"show.bs.dropdown":function(t){n.$element.trigger("show"+i,t)},"shown.bs.dropdown":function(t){n.$element.trigger("shown"+i,t)}});n.$element[0].hasAttribute("required")&&this.$element.on("invalid"+i,function(){n.$button[0].classList.add("bs-invalid");n.$element.on("shown"+i+".invalid",function(){n.$element.val(n.$element.val()).off("shown"+i+".invalid")}).on("rendered"+i,function(){this.validity.valid&&n.$button[0].classList.remove("bs-invalid");n.$element.off("rendered"+i)});n.$button.on("blur"+i,function(){n.$element.trigger("focus").trigger("blur");n.$button.off("blur"+i)})});setTimeout(function(){n.createLi();n.$element.trigger("loaded"+i)})},createDropdown:function(){var h=this.multiple||this.options.showTick?" show-tick":"",l=this.multiple?' aria-multiselectable="true"':"",i="",a=this.autofocus?" autofocus":"";u.major<4&&this.$element.parent().hasClass("input-group")&&(i=" input-group-btn");var r,f="",e="",o="",s="";return this.options.header&&(f='<div class="'+t.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">&times;<\/button>'+this.options.header+"<\/div>"),this.options.liveSearch&&(e='<div class="bs-searchbox"><input type="search" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+c(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list"><\/div>'),this.multiple&&this.options.actionsBox&&(o='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+t.BUTTONCLASS+'">'+this.options.selectAllText+'<\/button><button type="button" class="actions-btn bs-deselect-all btn '+t.BUTTONCLASS+'">'+this.options.deselectAllText+"<\/button><\/div><\/div>"),this.multiple&&this.options.doneButton&&(s='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+t.BUTTONCLASS+'">'+this.options.doneButtonText+"<\/button><\/div><\/div>"),r='<div class="dropdown bootstrap-select'+h+i+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+a+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"><\/div><\/div> <\/div>'+("4"===u.major?"":'<span class="bs-caret">'+this.options.template.caret+"<\/span>")+'<\/button><div class="'+t.MENU+" "+("4"===u.major?"":t.SHOW)+'">'+f+e+o+'<div class="inner '+t.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+l+'><ul class="'+t.MENU+" inner "+("4"===u.major?t.SHOW:"")+'" role="presentation"><\/ul><\/div>'+s+"<\/div><\/div>",n(r)},setPositionData:function(){var t,n,i;for(this.selectpicker.view.canHighlight=[],t=this.selectpicker.view.size=0;t<this.selectpicker.current.data.length;t++)n=this.selectpicker.current.data[t],i=!0,"divider"===n.type?(i=!1,n.height=this.sizeInfo.dividerHeight):"optgroup-label"===n.type?(i=!1,n.height=this.sizeInfo.dropdownHeaderHeight):n.height=this.sizeInfo.liHeight,n.disabled&&(i=!1),this.selectpicker.view.canHighlight.push(i),i&&(this.selectpicker.view.size++,n.posinset=this.selectpicker.view.size),n.position=(0===t?0:this.selectpicker.current.data[t-1].position)+n.height},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(r,u,f){function a(n,t){var c,l,rt,ut,s,b,ft,et,f=e.selectpicker.current.elements.length,k=[],ot=!0,o=e.isVirtual(),i,a,at,vt,w,g,tt,it,yt,h;for(e.selectpicker.view.scrollTop=n,c=Math.ceil(e.sizeInfo.menuInnerHeight/e.sizeInfo.liHeight*1.5),l=Math.round(f/c)||1,i=0;i<l;i++){if(a=(i+1)*c,i===l-1&&(a=f),k[i]=[i*c+(i?1:0),a],!f)break;void 0===s&&n-1<=e.selectpicker.current.data[a-1].position-e.sizeInfo.menuInnerHeight&&(s=i)}if(void 0===s&&(s=0),b=[e.selectpicker.view.position0,e.selectpicker.view.position1],rt=Math.max(0,s-1),ut=Math.min(l-1,s+1),e.selectpicker.view.position0=!1===o?0:Math.max(0,k[rt][0])||0,e.selectpicker.view.position1=!1===o?f:Math.min(f,k[ut][1])||0,ft=b[0]!==e.selectpicker.view.position0||b[1]!==e.selectpicker.view.position1,void 0!==e.activeIndex&&(y=e.selectpicker.main.elements[e.prevActiveIndex],p=e.selectpicker.main.elements[e.activeIndex],v=e.selectpicker.main.elements[e.selectedIndex],t&&(e.activeIndex!==e.selectedIndex&&e.defocusItem(p),e.activeIndex=void 0),e.activeIndex&&e.activeIndex!==e.selectedIndex&&e.defocusItem(v)),void 0!==e.prevActiveIndex&&e.prevActiveIndex!==e.activeIndex&&e.prevActiveIndex!==e.selectedIndex&&e.defocusItem(y),(t||ft)&&(et=e.selectpicker.view.visibleElements?e.selectpicker.view.visibleElements.slice():[],e.selectpicker.view.visibleElements=!1===o?e.selectpicker.current.elements:e.selectpicker.current.elements.slice(e.selectpicker.view.position0,e.selectpicker.view.position1),e.setOptionStatus(),(r||!1===o&&t)&&(ot=!function(n,t){return n.length===t.length&&n.every(function(n,i){return n===t[i]})}(et,e.selectpicker.view.visibleElements)),(t||!0===o)&&ot)){var st,ht,u=e.$menuInner[0],ct=document.createDocumentFragment(),pt=u.firstChild.cloneNode(!1),lt=e.selectpicker.view.visibleElements,d=[];for(u.replaceChild(pt,u.firstChild),i=0,at=lt.length;i<at;i++)g=lt[i],e.options.sanitize&&(vt=g.lastChild)&&(w=e.selectpicker.current.data[i+e.selectpicker.view.position0])&&w.content&&!w.sanitized&&(d.push(vt),w.sanitized=!0),ct.appendChild(g);(e.options.sanitize&&d.length&&nt(d,e.options.whiteList,e.options.sanitizeFn),!0===o?(st=0===e.selectpicker.view.position0?0:e.selectpicker.current.data[e.selectpicker.view.position0-1].position,ht=e.selectpicker.view.position1>f-1?0:e.selectpicker.current.data[f-1].position-e.selectpicker.current.data[e.selectpicker.view.position1-1].position,u.firstChild.style.marginTop=st+"px",u.firstChild.style.marginBottom=ht+"px"):(u.firstChild.style.marginTop=0,u.firstChild.style.marginBottom=0),u.firstChild.appendChild(ct),!0===o&&e.sizeInfo.hasScrollBar)&&(tt=u.firstChild.offsetWidth,t&&tt<e.sizeInfo.menuInnerInnerWidth&&e.sizeInfo.totalMenuWidth>e.sizeInfo.selectWidth?u.firstChild.style.minWidth=e.sizeInfo.menuInnerInnerWidth+"px":tt>e.sizeInfo.menuInnerInnerWidth&&(e.$menu[0].style.minWidth=0,it=u.firstChild.offsetWidth,it>e.sizeInfo.menuInnerInnerWidth&&(e.sizeInfo.menuInnerInnerWidth=it,u.firstChild.style.minWidth=e.sizeInfo.menuInnerInnerWidth+"px"),e.$menu[0].style.minWidth=""))}(e.prevActiveIndex=e.activeIndex,e.options.liveSearch)?r&&t&&(h=0,e.selectpicker.view.canHighlight[h]||(h=1+e.selectpicker.view.canHighlight.slice(1).indexOf(!0)),yt=e.selectpicker.view.visibleElements[h],e.defocusItem(e.selectpicker.view.currentActive),e.activeIndex=(e.selectpicker.current.data[h]||{}).index,e.focusItem(yt)):e.$menuInner.trigger("focus")}var v,y,e=this,o=0,p=[],s,h,c,l;(this.selectpicker.current=r?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),u)&&(f?o=this.$menuInner[0].scrollTop:e.multiple||(s=e.$element[0],h=(s.options[s.selectedIndex]||{}).liIndex,"number"==typeof h&&!1!==e.options.size&&(c=e.selectpicker.main.data[h],l=c&&c.position,l&&(o=l-(e.sizeInfo.menuInnerHeight+e.sizeInfo.liHeight)/2))));a(o,!0);this.$menuInner.off("scroll.createView").on("scroll.createView",function(n,t){e.noScroll||a(this.scrollTop,t);e.noScroll=!1});n(window).off("resize"+i+"."+this.selectId+".createView").on("resize"+i+"."+this.selectId+".createView",function(){e.$newElement.hasClass(t.SHOW)&&a(e.$menuInner[0].scrollTop)})},focusItem:function(n,t,i){if(n){t=t||this.selectpicker.main.data[this.activeIndex];var r=n.firstChild;r&&(r.setAttribute("aria-setsize",this.selectpicker.view.size),r.setAttribute("aria-posinset",t.posinset),!0!==i&&(this.focusedParent.setAttribute("aria-activedescendant",r.id),n.classList.add("active"),r.classList.add("active")))}},defocusItem:function(n){n&&(n.classList.remove("active"),n.firstChild&&n.firstChild.classList.remove("active"))},setPlaceholder:function(){var i=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option"));i=!0;var t=this.$element[0],r=!1,u=!this.selectpicker.view.titleOption.parentNode;u&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",r=void 0===n(t.options[t.selectedIndex]).attr("selected")&&void 0===this.$element.data("selected"));(u||0!==this.selectpicker.view.titleOption.index)&&t.insertBefore(this.selectpicker.view.titleOption,t.firstChild);r&&(t.selectedIndex=0)}return i},createLi:function(){function a(r){var u=n[n.length-1];u&&"divider"===u.type&&(u.optID||r.optID)||((r=r||{}).type="divider",i.push(g(!1,t.DIVIDER,r.optID?r.optID+"div":void 0)),n.push(r))}function p(t,r){var p,e,u;if((r=r||{}).divider="true"===t.getAttribute("data-divider"),r.divider)a({optID:r.optID});else{var o=n.length,v=t.style.cssText,w=v?c(v):"",h=(t.className||"")+(r.optgroupClass||"");r.optID&&(h="opt "+h);r.text=t.textContent;r.content=t.getAttribute("data-content");r.tokens=t.getAttribute("data-tokens");r.subtext=t.getAttribute("data-subtext");r.icon=t.getAttribute("data-icon");r.iconBase=s;p=l(r);e=g(ci(p,h,w),"",r.optID);e.firstChild&&(e.firstChild.id=f.selectId+"-"+o);i.push(e);t.liIndex=o;r.display=r.content||r.text;r.type="option";r.index=o;r.option=t;r.disabled=r.disabled||t.disabled;n.push(r);u=0;r.display&&(u+=r.display.length);r.subtext&&(u+=r.subtext.length);r.icon&&(u+=1);y<u&&(y=u,f.selectpicker.view.widestOption=i[i.length-1])}}function b(t,r){var f=r[t],nt=r[t-1],tt=r[t+1],l=f.querySelectorAll("option"+h),w,b,o,v,k,e,y,d;if(l.length){for(o={label:c(f.label),subtext:f.getAttribute("data-subtext"),icon:f.getAttribute("data-icon"),iconBase:s},v=" "+(f.className||""),u++,nt&&a({optID:u}),k=li(o),i.push(g(k,"dropdown-header"+v,u)),n.push({display:o.label,subtext:o.subtext,type:"optgroup-label",optID:u}),e=0,y=l.length;e<y;e++)d=l[e],0===e&&(b=(w=n.length-1)+y),p(d,{headerIndex:w,lastIndex:b,optID:u,optgroupClass:v,disabled:f.disabled});tt&&a({optID:u})}}var f=this,s=this.options.iconBase,h=':not([hidden]):not([data-hidden="true"])',i=[],n=[],y=0,u=0,e=this.setPlaceholder()?1:0,o,w,v;for(this.options.hideDisabled&&(h+=":not(:disabled)"),(f.options.showTick||f.multiple)&&!r.checkMark.parentNode&&(r.checkMark.className=s+" "+f.options.tickIcon+" check-mark",r.a.appendChild(r.checkMark)),o=this.$element[0].querySelectorAll("select > *"+h),w=o.length;e<w;e++)v=o[e],"OPTGROUP"!==v.tagName?p(v,{}):b(e,o);this.selectpicker.main.elements=i;this.selectpicker.main.data=n;this.selectpicker.current=this.selectpicker.main},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var s,v,k,it,d,y;this.setPlaceholder();var p,f=this,g=this.$element[0],w=et(g,this.options.hideDisabled),t=w.length,o=this.$button[0],b=o.querySelector(".filter-option-inner-inner"),rt=document.createTextNode(this.options.multipleSeparator),n=r.fragment.cloneNode(!1),tt=!1;if(o.classList.toggle("bs-placeholder",f.multiple?!t:!a(g,w)),this.tabIndex(),"static"===this.options.selectedTextFormat)n=l({text:this.options.title},!0);else if(!1===(this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&1<t&&(1<(p=this.options.selectedTextFormat.split(">")).length&&t>p[1]||1===p.length&&2<=t))){for(s=0;s<t&&s<50;s++){var h=w[s],e={},c={content:h.getAttribute("data-content"),subtext:h.getAttribute("data-subtext"),icon:h.getAttribute("data-icon")};this.multiple&&0<s&&n.appendChild(rt.cloneNode(!1));h.title?e.text=h.title:c.content&&f.options.showContent?(e.content=c.content.toString(),tt=!0):(f.options.showIcon&&(e.icon=c.icon,e.iconBase=this.options.iconBase),f.options.showSubtext&&!f.multiple&&c.subtext&&(e.subtext=" "+c.subtext),e.text=h.textContent.trim());n.appendChild(l(e,!0))}49<t&&n.appendChild(document.createTextNode("..."))}else v=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])',this.options.hideDisabled&&(v+=":not(:disabled)"),k=this.$element[0].querySelectorAll("select > option"+v+", optgroup"+v+" option"+v).length,it="function"==typeof this.options.countSelectedText?this.options.countSelectedText(t,k):this.options.countSelectedText,n=l({text:it.replace("{0}",t.toString()).replace("{1}",k.toString())},!0);(null==this.options.title&&(this.options.title=this.$element.attr("title")),n.childNodes.length||(n=l({text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),o.title=n.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&tt&&nt([n],f.options.whiteList,f.options.sanitizeFn),b.innerHTML="",b.appendChild(n),u.major<4&&this.$newElement[0].classList.contains("bs3-has-addon"))&&(d=o.querySelector(".filter-expand"),y=b.cloneNode(!0),y.className="filter-expand",d?o.replaceChild(y,d):o.appendChild(y));this.$element.trigger("rendered"+i)},setStyle:function(n,t){var r,i=this.$button[0],f=this.$newElement[0],e=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));u.major<4&&(f.classList.add("bs3"),f.parentNode.classList.contains("input-group")&&(f.previousElementSibling||f.nextElementSibling)&&(f.previousElementSibling||f.nextElementSibling).classList.contains("input-group-addon")&&f.classList.add("bs3-has-addon"));r=n?n.trim():e;"add"==t?r&&i.classList.add.apply(i.classList,r.split(" ")):"remove"==t?r&&i.classList.remove.apply(i.classList,r.split(" ")):(e&&i.classList.remove.apply(i.classList,e.split(" ")),r&&i.classList.add.apply(i.classList,r.split(" ")))},liHeight:function(i){var nt;if(i||!1!==this.options.size&&!this.sizeInfo){this.sizeInfo||(this.sizeInfo={});var c=document.createElement("div"),f=document.createElement("div"),a=document.createElement("div"),s=document.createElement("ul"),k=document.createElement("li"),l=document.createElement("li"),d=document.createElement("li"),g=document.createElement("a"),v=document.createElement("span"),y=this.options.header&&0<this.$menu.find("."+t.POPOVERHEADER).length?this.$menu.find("."+t.POPOVERHEADER)[0].cloneNode(!0):null,h=this.options.liveSearch?document.createElement("div"):null,p=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,w=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,it=this.$element.find("option")[0];(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,v.className="text",g.className="dropdown-item "+(it?it.className:""),c.className=this.$menu[0].parentNode.className+" "+t.SHOW,c.style.width=0,"auto"===this.options.width&&(f.style.minWidth=0),f.className=t.MENU+" "+t.SHOW,a.className="inner "+t.SHOW,s.className=t.MENU+" inner "+("4"===u.major?t.SHOW:""),k.className=t.DIVIDER,l.className="dropdown-header",v.appendChild(document.createTextNode("​")),g.appendChild(v),d.appendChild(g),l.appendChild(v.cloneNode(!0)),this.selectpicker.view.widestOption&&s.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),s.appendChild(d),s.appendChild(k),s.appendChild(l),y&&f.appendChild(y),h)&&(nt=document.createElement("input"),h.className="bs-searchbox",nt.className="form-control",h.appendChild(nt),f.appendChild(h));p&&f.appendChild(p);a.appendChild(s);f.appendChild(a);w&&f.appendChild(w);c.appendChild(f);document.body.appendChild(c);var rt,ut=d.offsetHeight,ft=l?l.offsetHeight:0,et=y?y.offsetHeight:0,ot=h?h.offsetHeight:0,st=p?p.offsetHeight:0,ht=w?w.offsetHeight:0,ct=n(k).outerHeight(!0),r=!!window.getComputedStyle&&window.getComputedStyle(f),tt=f.offsetWidth,o=r?null:n(f),b={vert:e(r?r.paddingTop:o.css("paddingTop"))+e(r?r.paddingBottom:o.css("paddingBottom"))+e(r?r.borderTopWidth:o.css("borderTopWidth"))+e(r?r.borderBottomWidth:o.css("borderBottomWidth")),horiz:e(r?r.paddingLeft:o.css("paddingLeft"))+e(r?r.paddingRight:o.css("paddingRight"))+e(r?r.borderLeftWidth:o.css("borderLeftWidth"))+e(r?r.borderRightWidth:o.css("borderRightWidth"))},lt={vert:b.vert+e(r?r.marginTop:o.css("marginTop"))+e(r?r.marginBottom:o.css("marginBottom"))+2,horiz:b.horiz+e(r?r.marginLeft:o.css("marginLeft"))+e(r?r.marginRight:o.css("marginRight"))+2};a.style.overflowY="scroll";rt=f.offsetWidth-tt;document.body.removeChild(c);this.sizeInfo.liHeight=ut;this.sizeInfo.dropdownHeaderHeight=ft;this.sizeInfo.headerHeight=et;this.sizeInfo.searchHeight=ot;this.sizeInfo.actionsHeight=st;this.sizeInfo.doneButtonHeight=ht;this.sizeInfo.dividerHeight=ct;this.sizeInfo.menuPadding=b;this.sizeInfo.menuExtras=lt;this.sizeInfo.menuWidth=tt;this.sizeInfo.menuInnerInnerWidth=tt-b.horiz;this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth;this.sizeInfo.scrollBarWidth=rt;this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight;this.setPositionData()}},getSelectPosition:function(){var t,u=n(window),f=this.$newElement.offset(),i=n(this.options.container),r;this.options.container&&i.length&&!i.is("body")?((t=i.offset()).top+=parseInt(i.css("borderTopWidth")),t.left+=parseInt(i.css("borderLeftWidth"))):t={top:0,left:0};r=this.options.windowPadding;this.sizeInfo.selectOffsetTop=f.top-t.top-u.scrollTop();this.sizeInfo.selectOffsetBot=u.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-r[2];this.sizeInfo.selectOffsetLeft=f.left-t.left-u.scrollLeft();this.sizeInfo.selectOffsetRight=u.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-r[1];this.sizeInfo.selectOffsetTop-=r[0];this.sizeInfo.selectOffsetLeft-=r[3]},setMenuSize:function(){var u;this.getSelectPosition();var r,n,f,e,o,s,v,w=this.sizeInfo.selectWidth,y=this.sizeInfo.liHeight,h=this.sizeInfo.headerHeight,c=this.sizeInfo.searchHeight,l=this.sizeInfo.actionsHeight,a=this.sizeInfo.doneButtonHeight,b=this.sizeInfo.dividerHeight,i=this.sizeInfo.menuPadding,p=0;if(this.options.dropupAuto&&(v=y*this.selectpicker.current.elements.length+i.vert,this.$newElement.toggleClass(t.DROPUP,this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&v+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot)),"auto"===this.options.size)e=3<this.selectpicker.current.elements.length?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,n=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,f=e+h+c+l+a,s=Math.max(e-i.vert,0),this.$newElement.hasClass(t.DROPUP)&&(n=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),r=(o=n)-h-c-l-a-i.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(u=0;u<this.options.size;u++)"divider"===this.selectpicker.current.data[u].type&&p++;r=(n=y*this.options.size+p*b+i.vert)-i.vert;o=n+h+c+l+a;f=s=""}this.$menu.css({"max-height":o+"px",overflow:"hidden","min-height":f+"px"});this.$menuInner.css({"max-height":r+"px","overflow-y":"auto","min-height":s+"px"});this.sizeInfo.menuInnerHeight=Math.max(r,1);this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth);"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(t.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-w);this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(t){if(this.liHeight(t),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var r=this,u=n(window);this.setMenuSize();this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return r.setMenuSize()});"auto"===this.options.size?u.off("resize"+i+"."+this.selectId+".setMenuSize scroll"+i+"."+this.selectId+".setMenuSize").on("resize"+i+"."+this.selectId+".setMenuSize scroll"+i+"."+this.selectId+".setMenuSize",function(){return r.setMenuSize()}):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&u.off("resize"+i+"."+this.selectId+".setMenuSize scroll"+i+"."+this.selectId+".setMenuSize");r.createView(!1,!0,t)}},setWidth:function(){var n=this;"auto"===this.options.width?requestAnimationFrame(function(){n.$menu.css("min-width","0");n.$element.on("loaded"+i,function(){n.liHeight();n.setMenuSize();var t=n.$newElement.clone().appendTo("body"),i=t.css("width","auto").children("button").outerWidth();t.remove();n.sizeInfo.selectWidth=Math.max(n.sizeInfo.totalMenuWidth,i);n.$newElement.css("width",n.sizeInfo.selectWidth+"px")})}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){function s(i){var s={},c=r.options.display||!!n.fn.dropdown.Constructor.Default&&n.fn.dropdown.Constructor.Default.display;r.$bsContainer.addClass(i.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(t.DROPUP,i.hasClass(t.DROPUP));o=i.offset();f.is("body")?e={top:0,left:0}:((e=f.offset()).top+=parseInt(f.css("borderTopWidth"))-f.scrollTop(),e.left+=parseInt(f.css("borderLeftWidth"))-f.scrollLeft());h=i.hasClass(t.DROPUP)?0:i[0].offsetHeight;(u.major<4||"static"===c)&&(s.top=o.top-e.top+h,s.left=o.left-e.left);s.width=i[0].offsetWidth;r.$bsContainer.css(s)}this.$bsContainer=n('<div class="bs-container" />');var o,e,h,r=this,f=n(this.options.container);this.$button.on("click.bs.dropdown.data-api",function(){r.isDisabled()||(s(r.$newElement),r.$bsContainer.appendTo(r.options.container).toggleClass(t.SHOW,!r.$button.hasClass(t.SHOW)).append(r.$menu))});n(window).off("resize"+i+"."+this.selectId+" scroll"+i+"."+this.selectId).on("resize"+i+"."+this.selectId+" scroll"+i+"."+this.selectId,function(){r.$newElement.hasClass(t.SHOW)&&s(r.$newElement)});this.$element.on("hide"+i,function(){r.$menu.data("height",r.$menu.height());r.$bsContainer.detach()})},setOptionStatus:function(n){var t=this,r,i,u;if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length)for(r=0;r<t.selectpicker.view.visibleElements.length;r++)i=t.selectpicker.current.data[r+t.selectpicker.view.position0],u=i.option,u&&(!0!==n&&t.setDisabled(i.index,i.disabled),t.setSelected(i.index,u.selected))},setSelected:function(n,t){var u,i,r=this.selectpicker.main.elements[n],f=this.selectpicker.main.data[n],e=void 0!==this.activeIndex,o=this.activeIndex===n||t&&!this.multiple&&!e;f.selected=t;i=r.firstChild;t&&(this.selectedIndex=n);r.classList.toggle("selected",t);o?(this.focusItem(r,f),this.selectpicker.view.currentActive=r,this.activeIndex=n):this.defocusItem(r);i&&(i.classList.toggle("selected",t),t?i.setAttribute("aria-selected",!0):this.multiple?i.setAttribute("aria-selected",!1):i.removeAttribute("aria-selected"));o||e||!t||void 0===this.prevActiveIndex||(u=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(u))},setDisabled:function(n,i){var r,f=this.selectpicker.main.elements[n];this.selectpicker.main.data[n].disabled=i;r=f.firstChild;f.classList.toggle(t.DISABLED,i);r&&("4"===u.major&&r.classList.toggle(t.DISABLED,i),i?(r.setAttribute("aria-disabled",i),r.setAttribute("tabindex",-1)):(r.removeAttribute("aria-disabled"),r.setAttribute("tabindex",0)))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.$newElement[0].classList.add(t.DISABLED),this.$button.addClass(t.DISABLED).attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button[0].classList.contains(t.DISABLED)&&(this.$newElement[0].classList.remove(t.DISABLED),this.$button.removeClass(t.DISABLED).attr("aria-disabled",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex"))},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")));this.$element.attr("tabindex",-98)},clickListener:function(){function e(){r.options.liveSearch?r.$searchbox.trigger("focus"):r.$menuInner.trigger("focus")}function s(){r.dropdown&&r.dropdown._popper&&r.dropdown._popper.state.isCreated?e():requestAnimationFrame(s)}var r=this,f=n(document);f.data("spaceSelect",!1);this.$button.on("keyup",function(n){/(32)/.test(n.keyCode.toString(10))&&f.data("spaceSelect")&&(n.preventDefault(),f.data("spaceSelect",!1))});this.$newElement.on("show.bs.dropdown",function(){3<u.major&&!r.dropdown&&(r.dropdown=r.$button.data("bs.dropdown"),r.dropdown._menu=r.$menu[0])});this.$button.on("click.bs.dropdown.data-api",function(){r.$newElement.hasClass(t.SHOW)||r.setSize()});this.$element.on("shown"+i,function(){r.$menuInner[0].scrollTop!==r.selectpicker.view.scrollTop&&(r.$menuInner[0].scrollTop=r.selectpicker.view.scrollTop);3<u.major?requestAnimationFrame(s):e()});this.$menuInner.on("mouseenter","li a",function(){var n=this.parentElement,t=r.isVirtual()?r.selectpicker.view.position0:0,i=Array.prototype.indexOf.call(n.parentElement.children,n),u=r.selectpicker.current.data[i+t];r.focusItem(n,u,!0)});this.$menuInner.on("click","li a",function(u,f){var w=n(this),c=r.$element[0],lt=r.isVirtual()?r.selectpicker.view.position0:0,ut=r.selectpicker.current.data[w.parent().index()+lt],l=ut.index,at=a(c),ft=c.selectedIndex,ot=c.options[ft],b=!0,d,g,p,nt;if(r.multiple&&1!==r.options.maxOptions&&u.stopPropagation(),u.preventDefault(),!r.isDisabled()&&!w.parent().hasClass(t.DISABLED)){var h=ut.option,st=n(h),ht=h.selected,k=st.parent("optgroup"),ct=k.find("option"),e=r.options.maxOptions,s=k.data("maxOptions")||!1;if(l===r.activeIndex&&(f=!0),f||(r.prevActiveIndex=r.activeIndex,r.activeIndex=void 0),r.multiple){if((h.selected=!ht,r.setSelected(l,!ht),w.trigger("blur"),!1!==e||!1!==s)&&(d=e<et(c).length,g=s<k.find("option:selected").length,e&&d||s&&g))if(e&&1==e)c.selectedIndex=-1,h.selected=!0,r.setOptionStatus(!0);else if(s&&1==s){for(p=0;p<ct.length;p++)nt=ct[p],nt.selected=!1,r.setSelected(nt.liIndex,!1);h.selected=!0;r.setSelected(l,!0)}else{var tt="string"==typeof r.options.maxOptionsText?[r.options.maxOptionsText,r.options.maxOptionsText]:r.options.maxOptionsText,v="function"==typeof tt?tt(e,s):tt,it=v[0].replace("{n}",e),rt=v[1].replace("{n}",s),y=n('<div class="notify"><\/div>');v[2]&&(it=it.replace("{var}",v[2][1<e?0:1]),rt=rt.replace("{var}",v[2][1<s?0:1]));h.selected=!1;r.$menu.append(y);e&&d&&(y.append(n("<div>"+it+"<\/div>")),b=!1,r.$element.trigger("maxReached"+i));s&&g&&(y.append(n("<div>"+rt+"<\/div>")),b=!1,r.$element.trigger("maxReachedGrp"+i));setTimeout(function(){r.setSelected(l,!1)},10);y[0].classList.add("fadeOut");setTimeout(function(){y.remove()},1050)}}else ot&&(ot.selected=!1),h.selected=!0,r.setSelected(l,!0);!r.multiple||r.multiple&&1===r.options.maxOptions?r.$button.trigger("focus"):r.options.liveSearch&&r.$searchbox.trigger("focus");b&&(!r.multiple&&ft===c.selectedIndex||(o=[h.index,st.prop("selected"),at],r.$element.triggerNative("change")))}});this.$menu.on("click","li."+t.DISABLED+" a, ."+t.POPOVERHEADER+", ."+t.POPOVERHEADER+" :not(.close)",function(t){t.currentTarget==this&&(t.preventDefault(),t.stopPropagation(),r.options.liveSearch&&!n(t.target).hasClass("close")?r.$searchbox.trigger("focus"):r.$button.trigger("focus"))});this.$menuInner.on("click",".divider, .dropdown-header",function(n){n.preventDefault();n.stopPropagation();r.options.liveSearch?r.$searchbox.trigger("focus"):r.$button.trigger("focus")});this.$menu.on("click","."+t.POPOVERHEADER+" .close",function(){r.$button.trigger("click")});this.$searchbox.on("click",function(n){n.stopPropagation()});this.$menu.on("click",".actions-btn",function(t){r.options.liveSearch?r.$searchbox.trigger("focus"):r.$button.trigger("focus");t.preventDefault();t.stopPropagation();n(this).hasClass("bs-select-all")?r.selectAll():r.deselectAll()});this.$element.on("change"+i,function(){r.render();r.$element.trigger("changed"+i,o);o=null}).on("focus"+i,function(){r.options.mobile||r.$button.trigger("focus")})},liveSearchListener:function(){var n=this,t=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",function(){n.$searchbox.val()&&n.$searchbox.val("")});this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(n){n.stopPropagation()});this.$searchbox.on("input propertychange",function(){var e=n.$searchbox.val(),i,r,h;if(n.selectpicker.search.elements=[],n.selectpicker.search.data=[],e){var o=[],s=e.toUpperCase(),u={},f=[],y=n._searchStyle(),l=n.options.liveSearchNormalize;for(l&&(s=ht(s)),n._$lisSelected=n.$menuInner.find(".selected"),i=0;i<n.selectpicker.main.data.length;i++)r=n.selectpicker.main.data[i],u[i]||(u[i]=st(r,s,y,l)),u[i]&&void 0!==r.headerIndex&&-1===f.indexOf(r.headerIndex)&&(0<r.headerIndex&&(u[r.headerIndex-1]=!0,f.push(r.headerIndex-1)),u[r.headerIndex]=!0,f.push(r.headerIndex),u[r.lastIndex+1]=!0),u[i]&&"optgroup-label"!==r.type&&f.push(i);for(i=0,h=f.length;i<h;i++){var a=f[i],p=f[i-1],v=(r=n.selectpicker.main.data[a],n.selectpicker.main.data[p]);("divider"!==r.type||"divider"===r.type&&v&&"divider"!==v.type&&h-1!==i)&&(n.selectpicker.search.data.push(r),o.push(n.selectpicker.main.elements[a]))}n.activeIndex=void 0;n.noScroll=!0;n.$menuInner.scrollTop(0);n.selectpicker.search.elements=o;n.createView(!0);o.length||(t.className="no-results",t.innerHTML=n.options.noneResultsText.replace("{0}",'"'+c(e)+'"'),n.$menuInner[0].firstChild.appendChild(t))}else n.$menuInner.scrollTop(0),n.createView(!1)})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(n){var r=this.$element[0],f,u;return void 0===n?this.$element.val():(f=a(r),(o=[null,null,f],this.$element.val(n).trigger("changed"+i,o),this.$newElement.hasClass(t.SHOW))&&(this.multiple?this.setOptionStatus(!0):(u=(r.options[r.selectedIndex]||{}).liIndex,"number"==typeof u&&(this.setSelected(this.selectedIndex,!1),this.setSelected(u,!0)))),this.render(),o=null,this.$element)},changeAll:function(n){var i,s,t,u;if(this.multiple){void 0===n&&(n=!0);var r=this.$element[0],f=0,e=0,h=a(r);for(r.classList.add("bs-select-hidden"),i=0,s=this.selectpicker.current.elements.length;i<s;i++)t=this.selectpicker.current.data[i],u=t.option,u&&!t.disabled&&"divider"!==t.type&&(t.selected&&f++,(u.selected=n)&&e++);r.classList.remove("bs-select-hidden");f!==e&&(this.setOptionStatus(),o=[null,null,h],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(n){(n=n||window.event)&&n.stopPropagation();this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(i){var u,tt,f,o,a,s=n(this),ft=s.hasClass("dropdown-toggle"),r=(ft?s.closest(".dropdown"):s.closest(yt.MENU)).data("this"),p=r.findLis(),w=!1,it=i.which===b&&!ft&&!r.options.selectOnTab,et=si.test(i.which)||it,nt=r.$menuInner[0].scrollTop,e=!0===r.isVirtual()?r.selectpicker.view.position0:0,h,rt,y,c,g,ut,l;if(!(112<=i.which&&i.which<=123))if((tt=r.$newElement.hasClass(t.SHOW))||!(et||48<=i.which&&i.which<=57||96<=i.which&&i.which<=105||65<=i.which&&i.which<=90)||(r.$button.trigger("click.bs.dropdown.data-api"),!r.options.liveSearch)){if(i.which===at&&tt&&(i.preventDefault(),r.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),et){if(!p.length)return;-1!==(u=(f=r.selectpicker.main.elements[r.activeIndex])?Array.prototype.indexOf.call(f.parentElement.children,f):-1)&&r.defocusItem(f);i.which===k?(-1!==u&&u--,u+e<0&&(u+=p.length),r.selectpicker.view.canHighlight[u+e]||-1==(u=r.selectpicker.view.canHighlight.slice(0,u+e).lastIndexOf(!0)-e)&&(u=p.length-1)):i.which!==d&&!it||(++u+e>=r.selectpicker.view.canHighlight.length&&(u=0),r.selectpicker.view.canHighlight[u+e]||(u=u+1+r.selectpicker.view.canHighlight.slice(u+e+1).indexOf(!0)));i.preventDefault();h=e+u;i.which===k?0===e&&u===p.length-1?(r.$menuInner[0].scrollTop=r.$menuInner[0].scrollHeight,h=r.selectpicker.current.elements.length-1):w=(a=(o=r.selectpicker.current.data[h]).position-o.height)<nt:i.which!==d&&!it||(0===u?h=r.$menuInner[0].scrollTop=0:w=nt<(a=(o=r.selectpicker.current.data[h]).position-r.sizeInfo.menuInnerHeight));f=r.selectpicker.current.elements[h];r.activeIndex=r.selectpicker.current.data[h].index;r.focusItem(f);r.selectpicker.view.currentActive=f;w&&(r.$menuInner[0].scrollTop=a);r.options.liveSearch?r.$searchbox.trigger("focus"):s.trigger("focus")}else if(!s.is("input")&&!hi.test(i.which)||i.which===v&&r.selectpicker.keydown.keyHistory){for(c=[],i.preventDefault(),r.selectpicker.keydown.keyHistory+=ei[i.which],r.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(r.selectpicker.keydown.resetKeyHistory.cancel),r.selectpicker.keydown.resetKeyHistory.cancel=r.selectpicker.keydown.resetKeyHistory.start(),y=r.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(y)&&(y=y.charAt(0)),g=0;g<r.selectpicker.current.data.length;g++)ut=r.selectpicker.current.data[g],st(ut,y,"startsWith",!0)&&r.selectpicker.view.canHighlight[g]&&c.push(ut.index);c.length&&(l=0,p.removeClass("active").find("a").removeClass("active"),1===y.length&&(-1===(l=c.indexOf(r.activeIndex))||l===c.length-1?l=0:l++),rt=c[l],w=0<nt-(o=r.selectpicker.main.data[rt]).position?(a=o.position-o.height,!0):(a=o.position-r.sizeInfo.menuInnerHeight,o.position>nt+r.sizeInfo.menuInnerHeight),f=r.selectpicker.main.elements[rt],r.activeIndex=c[l],r.focusItem(f),f&&f.firstChild.focus(),w&&(r.$menuInner[0].scrollTop=a),s.trigger("focus"))}tt&&(i.which===v&&!r.selectpicker.keydown.keyHistory||i.which===oi||i.which===b&&r.options.selectOnTab)&&(i.which!==v&&i.preventDefault(),r.options.liveSearch&&i.which===v||(r.$menuInner.find(".active a").trigger("click",!0),s.trigger("focus"),r.options.liveSearch||(i.preventDefault(),n(document).data("spaceSelect",!0))))}else r.$searchbox.trigger("focus")},mobile:function(){this.$element[0].classList.add("mobile-device")},refresh:function(){var t=n.extend({},this.options,this.$element.data());this.options=t;this.checkDisabled();this.setStyle();this.render();this.createLi();this.setWidth();this.setSize(!0);this.$element.trigger("refreshed"+i)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove();this.$bsContainer?this.$bsContainer.remove():this.$menu.remove();this.$element.off(i).removeData("selectpicker").removeClass("bs-select-hidden selectpicker");n(window).off(i+"."+this.selectId)}};wt=n.fn.selectpicker;n.fn.selectpicker=pt;n.fn.selectpicker.Constructor=f;n.fn.selectpicker.noConflict=function(){return n.fn.selectpicker=wt,this};n(document).off("keydown.bs.dropdown.data-api",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select .dropdown-menu').on("keydown"+i,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',f.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(n){n.stopPropagation()});n(window).on("load"+i+".data-api",function(){n(".selectpicker").each(function(){var t=n(this);pt.call(t,t.data())})})}(n)});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):jQuery)}(function(n,t){function f(){return new Date(Date.UTC.apply(Date,arguments))}function 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 o(n,t){return t.toLowerCase()}var u,f=n(t).data(),e={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in f)i.test(r)&&(u=r.replace(s,o),e[u]=f[r]);return e}function b(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(y,function(n,t){t in i&&(u[t]=i[t])}),u}var a=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var i=n&&n.valueOf(),t=0,r=this.length;t<r;t++)if(0<=this[t].valueOf()-i&&this[t].valueOf()-i<864e5)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(t){t&&(n.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var n=new a;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),u=function(t,r){n.data(t,"datepicker",this);this._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");this.component&&0===this.component.length&&(this.component=!1);this.isInline=!this.component&&this.element.is("div");this.picker=n(i.template);this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow);this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&this.picker.addClass("datepicker-rtl");this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(n,t){return Number(t)+1});this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled});this._allow_update=!1;this.setViewMode(this.o.startView);this._allow_update=!0;this.fillDow();this.fillMonths();this.update();this.isInline&&this.show()},c,v,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(n){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!==-(1/0)&&(u.startDate=u.startDate?u.startDate instanceof Date?this._local_to_utc(this._zero_time(u.startDate)):i.parseDate(u.startDate,l,u.language,u.assumeNearbyYear):-(1/0)),u.endDate!==1/0&&(u.endDate=u.endDate?u.endDate instanceof Date?this._local_to_utc(this._zero_time(u.endDate)):i.parseDate(u.endDate,l,u.language,u.assumeNearbyYear):1/0),u.daysOfWeekDisabled=this._resolveDaysOfWeek(u.daysOfWeekDisabled||[]),u.daysOfWeekHighlighted=this._resolveDaysOfWeek(u.daysOfWeekHighlighted||[]),u.datesDisabled=u.datesDisabled||[],n.isArray(u.datesDisabled)||(u.datesDisabled=u.datesDisabled.split(",")),u.datesDisabled=n.map(u.datesDisabled,function(n){return i.parseDate(n,l,u.language,u.assumeNearbyYear)}),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&&"auto"!==c)if(1===o.length)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||"string"==typeof u.defaultViewDate)u.defaultViewDate=i.parseDate(u.defaultViewDate,l,u.language,u.assumeNearbyYear);else if(u.defaultViewDate){var a=u.defaultViewDate.year||(new Date).getFullYear(),v=u.defaultViewDate.month||0,y=u.defaultViewDate.day||1;u.defaultViewDate=f(a,v,y)}else u.defaultViewDate=s()},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(r=t,u=n[i][1]):3===n[i].length&&(r=n[i][1],u=n[i][2]),f.on(u,r)},_unapplyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(u=t,r=n[i][1]):3===n[i].length&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){var t={keyup:n.proxy(function(t){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){0===arguments.length?(n=this.dates.length-1,t=this.o.format):"string"==typeof n&&(t=n,n=this.dates.length-1);t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){if(!(this.inputField.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)return;i=window.clipboardData.getData("Text")}this.setDate(i);this.update();t.preventDefault()},_utc_to_local:function(n){if(!n)return n;var t=new Date(n.getTime()+6e4*n.getTimezoneOffset());return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(t=new Date(n.getTime()+6e4*t.getTimezoneOffset())),t},_local_to_utc:function(n){return n&&new Date(n.getTime()-6e4*n.getTimezoneOffset())},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&f(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var n=this.dates.get(-1);return n!==t?new Date(n):null},clearDates:function(){this.inputField.val("");this.update();this._trigger("changeDate");this.o.autoclose&&this.hide()},setDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,n.map(t,this._utc_to_local)),this},setDate:h("setDates"),setUTCDate:h("setUTCDates"),remove:h("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var n=this.getFormattedDate();return this.inputField.val(n),this},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(n){return this._process_options({startDate:n}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(n){return this._process_options({endDate:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(n){return this._process_options({daysOfWeekDisabled:n}),this.update(),this},setDaysOfWeekHighlighted:function(n){return this._process_options({daysOfWeekHighlighted:n}),this.update(),this},setDatesDisabled:function(n){return this._process_options({datesDisabled:n}),this.update(),this},place:function(){var y,r,p;if(this.isInline)return this;var f=this.picker.outerWidth(),s=this.picker.outerHeight(),e=n(this.o.container),h=e.width(),c="body"===this.o.container?n(document).scrollTop():e.scrollTop(),l=e.offset(),a=[0];this.element.parents().each(function(){var t=n(this).css("z-index");"auto"!==t&&0!==Number(t)&&a.push(Number(t))});var v=Math.max.apply(Math,a)+this.o.zIndexOffset,u=this.component?this.component.parent().offset():this.element.offset(),w=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),o=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),t=u.left-l.left,i=u.top-l.top;return"body"!==this.o.container&&(i+=c),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(t-=f-o)):u.left<0?(this.picker.addClass("datepicker-orient-left"),t-=u.left-10):t+f>h?(this.picker.addClass("datepicker-orient-right"),t+=o-f):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left"),r=this.o.orientation.y,("auto"===r&&(y=-c+i-s,r=y<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+r),"top"===r?i-=s+parseInt(this.picker.css("padding-top")):i+=w,this.o.rtl)?(p=h-(t+o),this.picker.css({top:i,right:p,zIndex:v})):this.picker.css({top:i,left:t,zIndex:v}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var u=this.dates.copy(),t=[],r=!1;return arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i));t.push(i)},this)),r=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date),t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),t=n.grep(t,n.proxy(function(n){return!this.dateWithinRange(n)||!n},this),!0),this.dates.replace(t),this.o.updateViewDate&&(this.viewDate=this.dates.length?new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?new Date(this.o.startDate):this.viewDate>this.o.endDate?new Date(this.o.endDate):this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(u)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&u.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var i=this.o.weekStart,t="<tr>";for(this.o.calendarWeeks&&(t+='<th class="cw">&#160;<\/th>');i<this.o.weekStart+7;)t+='<th class="dow',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,i=this._utc_to_local(this.viewDate),u="",n=0;n<12;n++)t=i&&i.getMonth()===n?" focused":"",u+='<span class="month'+t+'">'+r[this.o.language].monthsShort[n]+"<\/span>";this.picker.find(".datepicker-months td").html(u)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),u=this.viewDate.getUTCMonth(),f=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 c,v,h,w="",l=u/10,b=this.picker.find(i),y=Math.floor(f/u)*u,p=y+9*l,k=Math.floor(this.viewDate.getFullYear()/l)*l,d=n.map(this.dates,function(n){return Math.floor(n.getUTCFullYear()/l)*l}),a=y-l;a<=p+l;a+=l)c=[r],v=null,a===y-l?c.push("old"):a===p+l&&c.push("new"),n.inArray(a,d)!==-1&&c.push("active"),(a<e||a>o)&&c.push("disabled"),a===k&&c.push("focused"),s!==n.noop&&(h=s(new Date(a,0,1)),h===t?h={}:"boolean"==typeof h?h={enabled:h}:"string"==typeof h&&(h={classes:h}),h.enabled===!1&&c.push("disabled"),h.classes&&(c=c.concat(h.classes.split(/\s+/))),h.tooltip&&(v=h.tooltip)),w+='<span class="'+c.join(" ")+'"'+(v?' title="'+v+'"':"")+">"+a+"<\/span>";b.find(".datepicker-switch").text(y+"-"+p);b.find("td").html(w)},fill:function(){var y,u,w=new Date(this.viewDate),o=w.getUTCFullYear(),d=w.getUTCMonth(),a=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),ut=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),v=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,ft=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,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,e,g,h,p,s,c,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||"linked"===this.o.todayBtn?"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","string"==typeof this.o.title&&""!==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={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(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={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(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 i,r,u=new Date(this.viewDate),t=u.getUTCFullYear(),f=u.getUTCMonth(),e=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),s=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),o=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,n=1;switch(this.viewMode){case 4:n*=10;case 3:n*=10;case 2:n*=10;case 1:i=Math.floor(t/n)*n<e;r=Math.floor(t/n)*n+n>o;break;case 0:i=t<=e&&f<s;r=t>=o&&f>h}this.picker.find(".prev").toggleClass("disabled",i);this.picker.find(".next").toggleClass("disabled",r)}},click:function(t){t.preventDefault();t.stopPropagation();var r,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(),"linked"===this.o.todayBtn?null:"view"));r.hasClass("clear")&&this.clearDates();r.hasClass("disabled")||(r.hasClass("month")||r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(e=r.parent().find("span").index(r),u=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(e)):(e=0,u=Number(r.text()),this.viewDate.setUTCFullYear(u)),this._trigger(i.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(f(u,e,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;0!==this.viewMode&&(r*=12*i.viewModes[this.viewMode].navStep);this.viewDate=this.moveMonth(this.viewDate,r);this._trigger(i.viewModes[this.viewMode].e,this.viewDate);this.fill()},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n||this.dates.clear(),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),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(n,t){t&&"date"!==t||this._toggle_multidate(n&&new Date(n));(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=n&&new Date(n));this.fill();this.setValue();t&&"view"===t||this._trigger("changeDate");this.inputField.trigger("change");!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(n,t){var i=new Date(n);return i.setUTCDate(n.getUTCDate()+t),i},moveWeek:function(n,t){return this.moveDay(n,7*t)},moveMonth:function(n,t){var f;if(!p(n))return this.o.defaultViewDate;if(!t)return n;var r,u,i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t);if(t=t>0?1:-1,1===s)u=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()}}for(;u();)i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,12*t)},moveAvailableDate:function(n,t,i){do{if(n=this[i](n,t),!this.dateWithinRange(n))return!1;i="moveDay"}while(this.dateIsDisabled(n));return n},weekOfDateIsDisabled:function(t){return 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"))return void(40!==n.keyCode&&27!==n.keyCode||(this.show(),n.stopPropagation()));var i,t,u=!1,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||7===this.o.daysOfWeekDisabled.length)break;i=37===n.keyCode||38===n.keyCode?-1:1;0===this.viewMode?n.ctrlKey?(t=this.moveAvailableDate(r,i,"moveYear"),t&&this._trigger("changeYear",this.viewDate)):n.shiftKey?(t=this.moveAvailableDate(r,i,"moveMonth"),t&&this._trigger("changeMonth",this.viewDate)):37===n.keyCode||39===n.keyCode?t=this.moveAvailableDate(r,i,"moveDay"):this.weekOfDateIsDisabled(r)||(t=this.moveAvailableDate(r,i,"moveWeek")):1===this.viewMode?(38!==n.keyCode&&40!==n.keyCode||(i*=4),t=this.moveAvailableDate(r,i,"moveMonth")):2===this.viewMode&&(38!==n.keyCode&&40!==n.keyCode||(i*=4),t=this.moveAvailableDate(r,i,"moveYear"));t&&(this.focusDate=this.viewDate=t,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)})},clearDates:function(){n.each(this.pickers,function(n,t){t.clearDates()})},dateUpdated:function(i){var u;if(!this.updating&&(this.updating=!0,u=n.data(i.target,"datepicker"),u!==t)){var r=u.getUTCDate(),s=this.keepEmptyValues,o=n.inArray(i.target,this.inputs),f=o-1,e=o+1,h=this.inputs.length;if(o!==-1){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t!==u&&s||t.setUTCDate(r)}),r<this.dates[f])for(;f>=0&&r<this.dates[f];)this.pickers[f--].setUTCDate(r);else if(r>this.dates[e])for(;e<h&&r>this.dates[e];)this.pickers[e++].setUTCDate(r);this.updateDates();delete this.updating}}},destroy:function(){n.map(this.pickers,function(n){n.destroy()});n(this.inputs).off("changeDate",this.dateUpdated);delete this.element.data().datepicker},remove:h("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};v=n.fn.datepicker;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="object"==typeof i&&i;if(!t){var l=w(this,"date"),a=n.extend({},e,l,h),v=b(a.language),o=n.extend({},e,v,l,h);s.hasClass("input-daterange")||o.inputs?(n.extend(o,{inputs:o.inputs||s.find("input").toArray()}),t=new c(this,o)):t=new u(this,o);s.data("datepicker",t)}"string"==typeof i&&"function"==typeof t[i]&&(r=t[i].apply(t,f))}),r===t||r instanceof u||r instanceof c)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return r};n.fn.datepicker=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:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0};y=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=u;r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}};i={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(n){if("function"==typeof n.toValue&&"function"==typeof n.toDisplay)return n;var t=n.replace(this.validParts,"\0").split("\0"),i=n.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(f,e,o,h){function et(n,t){return t===!0&&(t=10),n<100&&(n+=2e3,n>(new Date).getFullYear()+t&&(n-=100)),n}function tt(){var n=this.slice(0,l[c].length),t=l[c].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var l,y,it,c,rt,ut,g,v,ft,d,w;if(!f)return t;if(f instanceof Date)return f;if("string"==typeof e&&(e=i.parseFormat(e)),e.toValue)return e.toValue(f,e,o);if(ut={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},g={yesterday:"-1d",today:"+0d",tomorrow:"+1d"},f in g&&(f=g[f]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(f)){for(l=f.match(/([\-+]\d+)([dmwy])/gi),f=new Date,c=0;c<l.length;c++)y=l[c].match(/([\-+]\d+)([dmwy])/i),it=Number(y[1]),rt=ut[y[2].toLowerCase()],f=u.prototype[rt](f,it);return u.prototype._zero_utc_time(f)}l=f&&f.match(this.nonpunctuation)||[];var p,b,k={},nt=["yyyy","yy","M","MM","m","mm","d","dd"],a={yyyy:function(n,t){return n.setUTCFullYear(h?et(t,h):t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}};if(a.yy=a.yyyy,a.M=a.MM=a.mm=a.m,a.dd=a.d,f=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":b=n(r[o].months).filter(tt);p=n.inArray(b[0],r[o].months)+1;break;case"M":b=n(r[o].monthsShort).filter(tt);p=n.inArray(b[0],r[o].monthsShort)+1}k[y]=p}for(c=0;c<nt.length;c++)w=nt[c],w in k&&!isNaN(k[w])&&(d=new Date(f),a[w](d,k[w]),isNaN(d)||(f=d))}return f},formatDate:function(t,u,f){var e;if(!t)return"";if("string"==typeof u&&(u=i.parseFormat(u)),u.toDisplay)return u.toDisplay(t,u,f);e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d;e.mm=(e.m<10?"0":"")+e.m;t=[];for(var s=n.extend([],u.separators),o=0,h=u.parts.length;o<=h;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"><\/th><\/tr><tr><th class="prev">'+e.templates.leftArrow+'<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">'+e.templates.rightArrow+"<\/th><\/tr><\/thead>",contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-decades"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-centuries"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=i;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=v,this};n.fn.datepicker.version="1.8.0";n.fn.datepicker.deprecated=function(n){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+n)};n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),o.call(i,"show"))});n(function(){o.call(n('[data-provide="datepicker-inline"]'))})});!function(n,t){void 0===n&&void 0!==window&&(n=window);"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(n)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(n.jQuery)}(this,function(n){n.fn.selectpicker.defaults={noneSelectedText:"Nothing selected",noneResultsText:"No results match {0}",countSelectedText:function(n){return 1==n?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){return[1==n?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",multipleSeparator:", "}})