function articleImg(){$(".content").width()<500?$(".content .article .articleimage").css("width","100%"):$(".content .article .articleimage").css("width","47%")}function checkSize(){"none"==$("nav .nav_main .col-md-6.col-lg-6.d-none.d-md-block").css("display")?$(".col-md-6.col-lg-6.d-none.d-md-block form").prependTo(".hamburger-menu"):$(".hamburger-menu form").appendTo("nav .nav_main .col-md-6.col-lg-6.d-none.d-md-block")}function labnolThumb(n){return'<img class="youtube-thumbnail" src="https://i.ytimg.com/vi/ID/hqdefault.jpg">'.replace("ID",n)+'<div class="play"><\/div>'}function labnolIframe(){var n=document.createElement("iframe");n.setAttribute("src","https://www.youtube.com/embed/ID?autoplay=1".replace("ID",this.dataset.id));n.setAttribute("frameborder","0");n.setAttribute("allowfullscreen","1");this.parentNode.replaceChild(n,this)}if(!function(n){function r(n,t,i){var r=this;r.settings=i;r.$element=n;r.$sourceElement=t;r.inTap=!1;r.inTapAndHold=!1;r.inDrag=!1;r.tapStart=null;r.dragStart=null;r.timerTap=null;r.timerTapAndHold=null;r.mouseDown=!1;r.x=null;r.y=null;r.ex=null;r.ey=null;r.xStart=null;r.yStart=null;r.exStart=null;r.eyStart=null;r.taps=0;r.started=!1;r.ended=!1}function i(n,t,i){var u=n[0];return"undefined"==typeof u._touch&&(u._touch=new r(n,t,i)),u._touch}function f(n,t,i){var r,u,f,e,o;return r=n.$element.offset(),u=n.$element.width(),f=n.$element.height(),e=Math.min(Math.max(t,r.left),r.left+u),o=Math.min(Math.max(i,r.top),r.top+f),{x:e,y:o}}var e=n(document),u=null,t=null,o={useTouch:!0,useMouse:!0,trackDocument:!1,trackDocumentNormalize:!1,noClick:!1,dragThreshold:10,dragDelay:200,swipeThreshold:30,tapDelay:250,tapAndHoldDelay:500,delegateSelector:null,dropFilter:!1,dropFilterTraversal:!0,coordinates:"page",preventDefault:{drag:!1,swipe:!1,tap:!1}};r.prototype.uses=function(t){var i=n._data(this.$sourceElement[0],"events");switch(t){case"swipe":return i.hasOwnProperty(t)||i.hasOwnProperty("swipeUp")||i.hasOwnProperty("swipeDown")||i.hasOwnProperty("swipeLeft")||i.hasOwnProperty("swipeRight");case"drag":return i.hasOwnProperty(t)||i.hasOwnProperty("dragStart")||i.hasOwnProperty("dragEnd");case"tapAndHold":case"doubleTap":return i.hasOwnProperty(t);case"tap":return i.hasOwnProperty(t)||i.hasOwnProperty("doubleTap")||i.hasOwnProperty("tapAndHold")}return!1};r.prototype.cancel=function(n){var t=this;t.taps=0;t.inTap=!1;t.inTapAndHold=!1;t.inDrag=!1;t.tapStart=null;t.dragStart=null;t.xStart=null;t.yStart=null;t.exStart=null;t.eyStart=null;n&&(t.mouseDown=!1)};r.prototype.doStart=function(n,t,i){var r=this,u=r.$element.offset();n.stopPropagation();(r.uses("drag")&&r.settings.preventDefault.drag(r)||r.uses("swipe")&&r.settings.preventDefault.swipe(r)||r.uses("tap")&&r.settings.preventDefault.tap(r))&&n.preventDefault();r.uses("tapAndHold")&&r.$element.css("-webkit-tap-highlight-color","rgba(0,0,0,0)").css("-webkit-touch-callout","none").css("-webkit-user-select","none");r.x=t;r.y=i;r.ex=t-u.left;r.ey=i-u.top;r.tapStart=Date.now();clearTimeout(r.timerTap);r.timerTap=setTimeout(function(){r.inTap&&r.taps>0&&(r.$element.trigger(2==r.taps?"doubleTap":"tap",{taps:r.taps,x:r.x,y:r.y,ex:r.ex,ey:r.ey,duration:Date.now()-r.tapStart,event:n}),r.cancel());r.timerTap=null},r.settings.tapDelay);r.uses("tapAndHold")&&(clearTimeout(r.timerTapAndHold),r.timerTapAndHold=setTimeout(function(){r.inTap&&(r.$element.trigger("tapAndHold",{x:r.x,y:r.y,ex:r.ex,ey:r.ey,duration:Date.now()-r.tapStart,event:n}),r.cancel());r.timerTapAndHold=null;r.inTapAndHold=!0},r.settings.tapAndHoldDelay));r.inTap=!0};r.prototype.doMove=function(i,r,f){var s,l,o=this,h=o.$element.offset(),c=(Math.abs(o.x-r)+Math.abs(o.y-f))/2;if(i.stopPropagation(),(o.uses("swipe")&&o.settings.preventDefault.swipe(o)||o.uses("drag")&&o.settings.preventDefault.drag(o))&&i.preventDefault(),c>2&&clearTimeout(o.timerTapAndHold),o.inDrag&&u==o){if(o.$element.trigger("drag",{x:r,y:f,ex:r-h.left,ey:f-h.top,start:{x:o.xStart,y:o.yStart,ex:o.exStart,ey:o.eyStart},event:i,exStart:o.exStart,eyStart:o.eyStart}),o.$element.css("pointer-events","none"),s="fixed"==o.$element.css("position")?document.elementFromPoint(r-e.scrollLeft(),f-e.scrollTop()):document.elementFromPoint(r,f),o.$element.css("pointer-events",""),s){if(o.settings.dropFilter!==!1)switch(l=typeof o.settings.dropFilter){case"string":if(o.settings.dropFilterTraversal)for(;s&&!n(s).is(o.settings.dropFilter);)s=s.parentElement;else n(s).is(o.settings.dropFilter)||(s=null);break;case"function":if(o.settings.dropFilterTraversal)for(;s&&o.settings.dropFilter(o.$element[0],s)!==!0;)s=s.parentElement;else o.settings.dropFilter(o.$element[0],s)===!1&&(s=null);break;default:case"boolean":if(o.settings.dropFilter===!0)for(;s.parentElement!=o.$element[0].parentElement;)if(s=s.parentElement,!s){s=null;break}}s===o.$element[0]&&(s=null)}t&&t!==s&&(o.$element.trigger("dragLeave",{element:t,event:i}),t=null);!t&&s&&(t=s,o.$element.trigger("dragEnter",{element:t,event:i}));t&&(h=n(t).offset(),o.$element.trigger("dragOver",{element:t,event:i,x:r,y:f,ex:r-h.left,ey:f-h.top}))}else if(c>o.settings.dragThreshold){if(Date.now()-o.tapStart<o.settings.dragDelay)return void o.cancel();o.cancel();o.inDrag=!0;o.dragStart=Date.now();o.xStart=r;o.yStart=f;o.exStart=r-h.left;o.eyStart=f-h.top;o.uses("drag")&&o.settings.preventDefault.drag(o)&&i.preventDefault();o.$element.trigger("dragStart",{x:o.xStart,y:o.yStart,ex:o.exStart,ey:o.eyStart,event:i});u=o}};r.prototype.doEnd=function(i,r,f){var a,s,o,e=this,l=e.$element.offset(),h=Math.abs(e.x-r),c=Math.abs(e.y-f);i.stopPropagation();e.inTap?(clearTimeout(e.timerTapAndHold),e.taps++,(!e.timerTap||1==e.taps&&!e.uses("doubleTap")||2==e.taps&&e.uses("doubleTap"))&&(e.$element.trigger(2==e.taps?"doubleTap":"tap",{taps:e.taps,x:e.x,y:e.y,ex:e.ex,ey:e.ey,duration:Date.now()-e.tapStart,event:i}),e.cancel())):e.inDrag?(t&&(l=n(t).offset(),e.$element.trigger("drop",{element:t,event:i,x:r,y:f,ex:r-l.left,ey:f-l.top}),t=null),o=Date.now()-e.dragStart,a=Math.sqrt(Math.pow(Math.abs(e.x-r),2)+Math.pow(Math.abs(e.y-f),2)),s=a/o,e.$element.trigger("dragEnd",{start:{x:e.x,y:e.y,ex:e.ex,ey:e.ey},end:{x:r,y:f,ex:r-l.left,ey:f-l.top},distance:a,duration:o,velocity:s,event:i}),u=null,(h>e.settings.swipeThreshold||c>e.settings.swipeThreshold)&&(e.$element.trigger("swipe",{distance:a,duration:o,velocity:s,event:i}),h>c?(s=h/o,r<e.x?e.$element.trigger("swipeLeft",{distance:h,duration:o,velocity:s,event:i}):e.$element.trigger("swipeRight",{distance:h,duration:o,velocity:s,event:i})):c>h&&(s=c/o,f<e.y?e.$element.trigger("swipeUp",{distance:c,duration:o,velocity:s,event:i}):e.$element.trigger("swipeDown",{distance:c,duration:o,velocity:s,event:i}))),e.inDrag=!1):e.inTapAndHold&&(clearTimeout(e.timerTapAndHold),e.$element.trigger("tapAndHoldEnd",{x:e.x,y:e.y,event:i}),e.inTapAndHold=!1)};n.fn.touch=function(t){var r=n(this),i;if(this.length>1)for(i=0;i<this.length;i++)n.touch(n(this[i]),t);else 1==this.length&&n.touch(r,t);return r};n.fn.enableTouch=function(t){return n(this).touch(t)};n.touch=function(t,r){var u={},s,h,c,l,a,v;(u=n.extend(u,o),u=n.extend(u,r),"function"!=typeof u.preventDefault.drag&&(u.preventDefault.drag=u.preventDefault.drag===!0?function(){return!0}:function(){return!1}),"function"!=typeof u.preventDefault.swipe&&(u.preventDefault.swipe=u.preventDefault.swipe===!0?function(){return!0}:function(){return!1}),"function"!=typeof u.preventDefault.tap&&(u.preventDefault.tap=u.preventDefault.tap===!0?function(){return!0}:function(){return!1}),u.noClick&&t.on("click",function(n){n.preventDefault()}),u.useTouch)&&(s=function(r){var e=n(this),f=i(e,t,u);f.started=!0;f.doStart(r,r.originalEvent.touches[0][u.coordinates+"X"],r.originalEvent.touches[0][u.coordinates+"Y"]);setTimeout(function(){f.started=!1},1e3)},t.on("touchstart",s),u.delegateSelector&&t.on("touchstart",u.delegateSelector,s),h=function(r){var c=n(this),e=i(c,t,u),o=r.originalEvent.touches[0][u.coordinates+"X"],s=r.originalEvent.touches[0][u.coordinates+"Y"],h;e.settings.trackDocument&&e.settings.trackDocumentNormalize&&(h=f(e,o,s),o=h.x,s=h.y);e.doMove(r,o,s)},t.on("touchmove",h),u.delegateSelector&&t.on("touchmove",u.delegateSelector,h),c=function(r){var s=n(this),e=i(s,t,u),o;e.ended=!0;o=f(e,r.originalEvent.changedTouches[0][u.coordinates+"X"],r.originalEvent.changedTouches[0][u.coordinates+"Y"]);e.doEnd(r,o.x,o.y);setTimeout(function(){e.ended=!1},1e3)},t.on("touchend",c),u.delegateSelector&&t.on("touchend",u.delegateSelector,c));u.useMouse&&(l=function(r){var e=n(this),f=i(e,t,u);return!f.started&&(f.mouseDown=!0,void f.doStart(r,r[u.coordinates+"X"],r[u.coordinates+"Y"]))},t.on("mousedown",l),u.delegateSelector&&t.on("mousedown",u.delegateSelector,l),a=function(r){var e=n(this),f=i(e,t,u);f.mouseDown&&f.doMove(r,r[u.coordinates+"X"],r[u.coordinates+"Y"])},t.on("mousemove",a),u.delegateSelector&&t.on("mousemove",u.delegateSelector,a),v=function(r){var o=n(this),f=i(o,t,u);return!f.ended&&(e.triggerHandler("mouseup",r),f.doEnd(r,r[u.coordinates+"X"],r[u.coordinates+"Y"]),void(f.mouseDown=!1))},t.on("mouseup",v),u.delegateSelector&&t.on("mouseup",u.delegateSelector,v));u.trackDocument||t.on("mouseleave",function(r){var e=n(this),f=i(e,t,u);f.doEnd(r,r[u.coordinates+"X"],r[u.coordinates+"Y"]);f.mouseDown=!1})};e.on("mousemove",function(n){var t=u,i,r,e;t&&t.settings.useMouse&&t.mouseDown&&t.settings.trackDocument&&(i=n[t.settings.coordinates+"X"],r=n[t.settings.coordinates+"Y"],t.settings.trackDocumentNormalize&&(e=f(t,i,r),i=e.x,r=e.y),t.doMove(n,i,r))}).on("mouseup",function(n,t){var i=u,r,e,o;if(i&&i.settings.useMouse&&i.settings.trackDocument){if("undefined"!=typeof t&&(n=t),!(i.settings.coordinates+"X"in n))return;r=n[i.settings.coordinates+"X"];e=n[i.settings.coordinates+"Y"];i.settings.trackDocumentNormalize&&(o=f(i,r,e),r=o.x,e=o.y);i.doEnd(n,r,e);i.mouseDown=!1}})}(jQuery),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Popper=t()}(this,function(){"use strict";function ut(n){return n&&"[object Function]"==={}.toString.call(n)}function e(n,t){if(1!==n.nodeType)return[];var i=window.getComputedStyle(n,null);return t?i[t]:i}function y(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function o(n){if(!n||-1!==["HTML","BODY","#document"].indexOf(n.nodeName))return window.document.body;var t=e(n),i=t.overflow,r=t.overflowX,u=t.overflowY;return/(auto|scroll)/.test(i+u+r)?n:o(y(n))}function r(n){var t=n&&n.offsetParent,i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===e(t,"position")?r(t):t:window.document.documentElement}function ri(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||r(n.firstElementChild)===n)}function p(n){return null===n.parentNode?n:p(n.parentNode)}function h(n,t){var i,f;if(!n||!n.nodeType||!t||!t.nodeType)return window.document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,u=document.createRange();return(u.setStart(o,0),u.setEnd(s,0),i=u.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?ri(i)?i:r(i):(f=p(n),f.host?h(f.host,t):h(n,p(t).host))}function u(n){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",t="top"===f?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return"BODY"===i||"HTML"===i?(r=window.document.documentElement,u=window.document.scrollingElement||r,u[t]):n[t]}function ui(n,t){var e=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=u(t,"top"),f=u(t,"left"),i=e?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=f*i,n.right+=f*i,n}function ft(n,t){var i="x"===t?"Left":"Top",r="Left"==i?"Right":"Bottom";return+n["border"+i+"Width"].split("px")[0]+ +n["border"+r+"Width"].split("px")[0]}function et(n,t,r,u){return i(t["offset"+n],r["client"+n],r["offset"+n],l()?r["offset"+n]+u["margin"+("Height"===n?"Top":"Left")]+u["margin"+("Height"===n?"Bottom":"Right")]:0)}function ot(){var t=window.document.body,n=window.document.documentElement,i=l()&&window.getComputedStyle(n);return{height:et("Height",t,n,i),width:et("Width",t,n,i)}}function t(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function w(n){var i={},f,o,c;if(l())try{i=n.getBoundingClientRect();f=u(n,"top");o=u(n,"left");i.top+=f;i.left+=o;i.bottom+=f;i.right+=o}catch(n){}else i=n.getBoundingClientRect();var r={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},a="HTML"===n.nodeName?ot():{},v=a.width||n.clientWidth||r.right-r.left,y=a.height||n.clientHeight||r.bottom-r.top,s=n.offsetWidth-v,h=n.offsetHeight-y;return(s||h)&&(c=e(n),s-=ft(c,"x"),h-=ft(c,"y"),r.width-=s,r.height-=h),t(r)}function b(n,i){var y=l(),b="HTML"===i.nodeName,u=w(n),p=w(i),c=o(n),f=e(i),a=+f.borderTopWidth.split("px")[0],v=+f.borderLeftWidth.split("px")[0],r=t({top:u.top-p.top-a,left:u.left-p.left-v,width:u.width,height:u.height}),s,h;return(r.marginTop=0,r.marginLeft=0,!y&&b)&&(s=+f.marginTop.split("px")[0],h=+f.marginLeft.split("px")[0],r.top-=a-s,r.bottom-=a-s,r.left-=v-h,r.right-=v-h,r.marginTop=s,r.marginLeft=h),(y?i.contains(c):i===c&&"BODY"!==c.nodeName)&&(r=ui(r,i)),r}function fi(n){var r=window.document.documentElement,f=b(n,r),e=i(r.clientWidth,window.innerWidth||0),o=i(r.clientHeight,window.innerHeight||0),s=u(r),h=u(r,"left"),c={top:s-f.top+f.marginTop,left:h-f.left+f.marginLeft,width:e,height:o};return t(c)}function st(n){var t=n.nodeName;return"BODY"===t||"HTML"===t?!1:"fixed"===e(n,"position")||st(y(n))}function k(n,t,i,r){var u={top:0,left:0},s=h(n,t),e,f;if("viewport"===r)u=fi(s);else if("scrollParent"===r?(e=o(y(n)),"BODY"===e.nodeName&&(e=window.document.documentElement)):e="window"===r?window.document.documentElement:r,f=b(e,s),"HTML"!==e.nodeName||st(s))u=f;else{var c=ot(),l=c.height,a=c.width;u.top+=f.top-f.marginTop;u.bottom=l+f.top;u.left+=f.left-f.marginLeft;u.right=a+f.left}return u.left+=i,u.top+=i,u.right-=i,u.bottom-=i,u}function ei(n){var t=n.width,i=n.height;return t*i}function ht(t,i,r,u,f){var l=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var e=k(r,u,l,f),o={top:{width:e.width,height:i.top-e.top},right:{width:e.right-i.right,height:e.height},bottom:{width:e.width,height:e.bottom-i.bottom},left:{width:i.left-e.left,height:e.height}},s=Object.keys(o).map(function(t){return n({key:t},o[t],{area:ei(o[t])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=0<h.length?h[0].key:s[0].key,c=t.split("-")[1];return a+(c?"-"+c:"")}function ct(n,t,i){var r=h(t,i);return b(i,r)}function lt(n){var t=window.getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function c(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function at(n,t,i){i=i.split("-")[0];var r=lt(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[c(f)],e}function s(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function oi(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=s(n,function(n){return n[t]===i});return n.indexOf(r)}function vt(n,i,r){var u=void 0===r?n:n.slice(0,oi(n,"name",r));return u.forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=n.function||n.fn;n.enabled&&ut(r)&&(i.offsets.popper=t(i.offsets.popper),i.offsets.reference=t(i.offsets.reference),i=r(i,n))}),i}function si(){if(!this.state.isDestroyed){var n={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=ct(this.state,this.popper,this.reference);n.placement=ht(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.offsets.popper=at(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position="absolute";n=vt(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function yt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function pt(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length-1;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof window.document.body.style[r])return r;return null}function hi(){return this.state.isDestroyed=!0,yt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[pt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function wt(n,t,i,r){var f="BODY"===n.nodeName,u=f?window:n;u.addEventListener(t,i,{passive:!0});f||wt(o(u.parentNode),t,i,r);r.push(u)}function ci(n,t,i,r){i.updateBound=r;window.addEventListener("resize",i.updateBound,{passive:!0});var u=o(n);return wt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function li(){this.state.eventsEnabled||(this.state=ci(this.reference,this.options,this.state,this.scheduleUpdate))}function ai(n,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function vi(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=ai(this.reference,this.state))}function d(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function g(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&d(t[i])&&(r="px");n.style[i]=t[i]+r})}function yi(n,t){Object.keys(t).forEach(function(i){var r=t[i];!1===r?n.removeAttribute(i):n.setAttribute(i,t[i])})}function bt(n,t,i){var u=s(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r;return f||(r="`"+t+"`",console.warn("`"+i+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function pi(n){return"end"===n?"start":"start"===n?"end":n}function kt(n){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=it.indexOf(n),i=it.slice(t+1).concat(it.slice(0,t));return r?i.reverse():i}function wi(n,r,u,f){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+h[1],e=h[2],s,c,l;if(!o)return n;if(0===e.indexOf("%")){switch(e){case"%p":s=u;break;case"%":case"%r":default:s=f}return c=t(s),c[r]/100*o}return"vh"===e||"vw"===e?(l="vh"===e?i(document.documentElement.clientHeight,window.innerHeight||0):i(document.documentElement.clientWidth,window.innerWidth||0),l/100*o):o}function bi(n,t,i,r){var h=[0,0],c=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(s(u,function(n){return-1!==n.search(/,|\s/)})),o,e;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=-1===f?[u]:[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))],e=e.map(function(n,r){var f=(1===r?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return wi(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){d(i)&&(h[t]+=i*("-"===n[r-1]?-1:1))})}),h}for(var dt=Math.min,f=Math.floor,i=Math.max,ki=["native code","[object MutationObserverConstructor]"],di=function(n){return ki.some(function(t){return-1<(n||"").toString().indexOf(t)})},gt="undefined"!=typeof window,ni=["Edge","Trident","Firefox"],ti=0,nt=0;nt<ni.length;nt+=1)if(gt&&0<=navigator.userAgent.indexOf(ni[nt])){ti=1;break}var tt,gi=gt&&di(window.MutationObserver),nr=gi?function(n){var t=!1,i=0,r=document.createElement("span"),u=new MutationObserver(function(){n();t=!1});return u.observe(r,{attributes:!0}),function(){t||(t=!0,r.setAttribute("x-index",i),++i)}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ti))}},l=function(){return void 0==tt&&(tt=-1!==navigator.appVersion.indexOf("MSIE 10")),tt},tr=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},ir=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},n=Object.assign||function(n){for(var t,r,i=1;i<arguments.length;i++)for(r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},ii=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],it=ii.slice(3),rt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},v=function(){function t(i,r){var u=this,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e;tr(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=nr(this.update.bind(this));this.options=n({},t.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=i.jquery?i[0]:i;this.popper=r.jquery?r[0]:r;this.options.modifiers={};Object.keys(n({},t.Defaults.modifiers,f.modifiers)).forEach(function(i){u.options.modifiers[i]=n({},t.Defaults.modifiers[i]||{},f.modifiers?f.modifiers[i]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return n({name:t},u.options.modifiers[t])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&ut(n.onLoad)&&n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return ir(t,[{key:"update",value:function(){return si.call(this)}},{key:"destroy",value:function(){return hi.call(this)}},{key:"enableEventListeners",value:function(){return li.call(this)}},{key:"disableEventListeners",value:function(){return vi.call(this)}}]),t}();return v.Utils=("undefined"==typeof window?global:window).PopperUtils,v.placements=ii,v.Defaults={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var u=t.placement,c=u.split("-")[0],f=u.split("-")[1];if(f){var e=t.offsets,r=e.reference,o=e.popper,s=-1!==["bottom","top"].indexOf(c),i=s?"left":"top",h=s?"width":"height",l={start:a({},i,r[i]),end:a({},i,r[i]+r[h]-o[h])};t.offsets.popper=n({},o,l[f])}return t}},offset:{order:200,enabled:!0,fn:function(n,t){var r,f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0];return r=d(+f)?[+f,0]:bi(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,u){var o=u.boundariesElement||r(t.instance.popper),e;t.instance.reference===o&&(o=r(o));e=k(t.instance.popper,t.instance.reference,u.padding,o);u.boundaries=e;var s=u.priority,f=t.offsets.popper,h={primary:function(n){var t=f[n];return f[n]<e[n]&&!u.escapeWithReference&&(t=i(f[n],e[n])),a({},n,t)},secondary:function(n){var t="right"===n?"left":"top",i=f[t];return f[n]>e[n]&&!u.escapeWithReference&&(i=dt(f[t],e[n]-("right"===n?f.width:f.height))),a({},t,i)}};return s.forEach(function(t){var i=-1===["left","top"].indexOf(t)?"secondary":"primary";f=n({},f,h[i](t))}),t.offsets.popper=f,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var s=n.offsets,u=s.popper,i=s.reference,h=n.placement.split("-")[0],r=f,e=-1!==["top","bottom"].indexOf(h),o=e?"right":"bottom",t=e?"left":"top",c=e?"width":"height";return u[o]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[c]),u[t]>r(i[o])&&(n.offsets.popper[t]=r(i[o])),n}},arrow:{order:500,enabled:!0,fn:function(n,r){var f,y,l;if(!bt(n.instance.modifiers,"arrow","keepTogether"))return n;if(f=r.element,"string"==typeof f){if(f=n.instance.popper.querySelector(f),!f)return n}else if(!n.instance.popper.contains(f))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var p=n.placement.split("-")[0],v=n.offsets,s=v.popper,e=v.reference,h=-1!==["left","right"].indexOf(p),a=h?"height":"width",u=h?"top":"left",w=h?"left":"top",c=h?"bottom":"right",o=lt(f)[a];return e[c]-o<s[u]&&(n.offsets.popper[u]-=s[u]-(e[c]-o)),e[u]+o>s[c]&&(n.offsets.popper[u]+=e[u]+o-s[c]),y=e[u]+e[a]/2-o/2,l=y-t(n.offsets.popper)[u],l=i(dt(s[a]-o,l),0),n.arrowElement=f,n.offsets.arrow={},n.offsets.arrow[u]=Math.round(l),n.offsets.arrow[w]="",n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,i){if(yt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var o=k(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement),r=t.placement.split("-")[0],s=c(r),u=t.placement.split("-")[1]||"",e=[];switch(i.behavior){case rt.FLIP:e=[r,s];break;case rt.CLOCKWISE:e=kt(r);break;case rt.COUNTERCLOCKWISE:e=kt(r,!0);break;default:e=i.behavior}return e.forEach(function(h,l){if(r!==h||e.length===l+1)return t;r=t.placement.split("-")[0];s=c(r);var v=t.offsets.popper,y=t.offsets.reference,a=f,w="left"===r&&a(v.right)>a(y.left)||"right"===r&&a(v.left)<a(y.right)||"top"===r&&a(v.bottom)>a(y.top)||"bottom"===r&&a(v.top)<a(y.bottom),b=a(v.left)<a(o.left),k=a(v.right)>a(o.right),d=a(v.top)<a(o.top),g=a(v.bottom)>a(o.bottom),nt="left"===r&&b||"right"===r&&k||"top"===r&&d||"bottom"===r&&g,p=-1!==["top","bottom"].indexOf(r),tt=!!i.flipVariations&&(p&&"start"===u&&b||p&&"end"===u&&k||!p&&"start"===u&&d||!p&&"end"===u&&g);(w||nt||tt)&&(t.flipped=!0,(w||nt)&&(r=e[l+1]),tt&&(u=pi(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,at(t.instance.popper,t.offsets.reference,t.placement)),t=vt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(n){var i=n.placement,u=i.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=-1!==["left","right"].indexOf(u),s=-1===["top","left"].indexOf(u);return r[e?"left":"top"]=o[i]-(s?r[e?"width":"height"]:0),n.placement=c(i),n.offsets.popper=t(r),n}},hide:{order:800,enabled:!0,fn:function(n){if(!bt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=s(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(t,i){var g=i.x,nt=i.y,e=t.offsets.popper,l=s(t.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,b,k,d;void 0!==l&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,v,tt=void 0===l?i.gpuAcceleration:l,it=r(t.instance.popper),y=w(it),u={position:e.position},c={left:f(e.left),top:f(e.top),bottom:f(e.bottom),right:f(e.right)},o="bottom"===g?"top":"bottom",h="right"===nt?"left":"right",p=pt("transform");return(v="bottom"==o?-y.height+c.bottom:c.top,a="right"==h?-y.width+c.right:c.left,tt&&p)?(u[p]="translate3d("+a+"px, "+v+"px, 0)",u[o]=0,u[h]=0,u.willChange="transform"):(b="bottom"==o?-1:1,k="right"==h?-1:1,u[o]=v*b,u[h]=a*k,u.willChange=o+", "+h),d={"x-placement":t.placement},t.attributes=n({},d,t.attributes),t.styles=n({},u,t.styles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){return g(n.instance.popper,n.styles),yi(n.instance.popper,n.attributes),n.offsets.arrow&&g(n.arrowElement,n.offsets.arrow),n},onLoad:function(n,t,i,r,u){var f=ct(u,t,n),e=ht(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),g(t,{position:"absolute"}),i},gpuAcceleration:void 0}}},v}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");!function(){var n=jQuery.fn.jquery.split(" ")[0].split(".");if(n[0]<2&&n[1]<9||1==n[0]&&9==n[1]&&n[2]<1||n[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}(),function(){function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function t(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),n=function(n){function u(n){return{}.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function f(n){return(n[0]||n).nodeType}function e(){return{bindType:t.end,delegateType:t.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function o(){var t,n;if(window.QUnit)return!1;t=document.createElement("bootstrap");for(n in r)if(void 0!==t.style[n])return{end:r[n]};return!1}function s(t){var u=this,r=!1;return n(this).one(i.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||i.triggerTransitionEnd(u)},t),this}var t=!1,r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n},getSelectorFromElement:function(t){var i=t.getAttribute("data-target");i&&"#"!==i||(i=t.getAttribute("href")||"");try{return n(i).length>0?i:null}catch(n){return null}},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(i){n(i).trigger(t.end)},supportsTransitionEnd:function(){return Boolean(t)},typeCheckConfig:function(n,t,i){for(var r in i)if(i.hasOwnProperty(r)){var o=i[r],e=t[r],s=e&&f(e)?"element":u(e);if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+': Option "'+r+'" provided type "'+s+'" but expected type "'+o+'".');}}};return t=o(),n.fn.emulateTransitionEnd=s,i.supportsTransitionEnd()&&(n.event.special[i.TRANSITION_END]=e()),i}(jQuery),u=(function(r){var u="alert",s=r.fn[u],e={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},o={ALERT:"alert",FADE:"fade",SHOW:"show"},f=function(){function u(n){t(this,u);this._element=n}return u.prototype.close=function(n){n=n||this._element;var t=this._getRootElement(n);this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},u.prototype.dispose=function(){r.removeData(this._element,"bs.alert");this._element=null},u.prototype._getRootElement=function(t){var u=n.getSelectorFromElement(t),i=!1;return u&&(i=r(u)[0]),i||(i=r(t).closest("."+o.ALERT)[0]),i},u.prototype._triggerCloseEvent=function(n){var t=r.Event(e.CLOSE);return r(n).trigger(t),t},u.prototype._removeElement=function(t){var i=this;r(t).removeClass(o.SHOW);n.supportsTransitionEnd()&&r(t).hasClass(o.FADE)?r(t).one(n.TRANSITION_END,function(n){return i._destroyElement(t,n)}).emulateTransitionEnd(150):this._destroyElement(t)},u.prototype._destroyElement=function(n){r(n).detach().trigger(e.CLOSED).remove()},u._jQueryInterface=function(n){return this.each(function(){var i=r(this),t=i.data("bs.alert");t||(t=new u(this),i.data("bs.alert",t));"close"===n&&t[n](this)})},u._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},i(u,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),u}();r(document).on(e.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,f._handleDismiss(new f));r.fn[u]=f._jQueryInterface;r.fn[u].Constructor=f;r.fn[u].noConflict=function(){return r.fn[u]=s,f._jQueryInterface}}(jQuery),function(n){var f="button",s=n.fn[f],r={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},u={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},o={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},e=function(){function f(n){t(this,f);this._element=n}return f.prototype.toggle=function(){var f=!0,o=!0,i=n(this._element).closest(u.DATA_TOGGLE)[0],t,e;if(i&&(t=n(this._element).find(u.INPUT)[0],t)){if("radio"===t.type&&(t.checked&&n(this._element).hasClass(r.ACTIVE)?f=!1:(e=n(i).find(u.ACTIVE)[0],e&&n(e).removeClass(r.ACTIVE))),f){if(t.hasAttribute("disabled")||i.hasAttribute("disabled")||t.classList.contains("disabled")||i.classList.contains("disabled"))return;t.checked=!n(this._element).hasClass(r.ACTIVE);n(t).trigger("change")}t.focus();o=!1}o&&this._element.setAttribute("aria-pressed",!n(this._element).hasClass(r.ACTIVE));f&&n(this._element).toggleClass(r.ACTIVE)},f.prototype.dispose=function(){n.removeData(this._element,"bs.button");this._element=null},f._jQueryInterface=function(t){return this.each(function(){var i=n(this).data("bs.button");i||(i=new f(this),n(this).data("bs.button",i));"toggle"===t&&i[t]()})},i(f,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),f}();n(document).on(o.CLICK_DATA_API,u.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var i=t.target;n(i).hasClass(r.BUTTON)||(i=n(i).closest(u.BUTTON));e._jQueryInterface.call(n(i),"toggle")}).on(o.FOCUS_BLUR_DATA_API,u.DATA_TOGGLE_CARROT,function(t){var i=n(t.target).closest(u.BUTTON)[0];n(i).toggleClass(r.FOCUS,/^focus(in)?$/.test(t.type))});n.fn[f]=e._jQueryInterface;n.fn[f].Constructor=e;n.fn[f].noConflict=function(){return n.fn[f]=s,e._jQueryInterface}}(jQuery),function(u){var c="carousel",l="bs.carousel",h="."+l,y=u.fn[c],v={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},p={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},e={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},o={SLIDE:"slide"+h,SLID:"slid"+h,KEYDOWN:"keydown"+h,MOUSEENTER:"mouseenter"+h,MOUSELEAVE:"mouseleave"+h,TOUCHEND:"touchend"+h,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},f={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},s={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},a=function(){function a(n,i){t(this,a);this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this._config=this._getConfig(i);this._element=u(n)[0];this._indicatorsElement=u(this._element).find(s.INDICATORS)[0];this._addEventListeners()}return a.prototype.next=function(){this._isSliding||this._slide(e.NEXT)},a.prototype.nextWhenVisible=function(){document.hidden||this.next()},a.prototype.prev=function(){this._isSliding||this._slide(e.PREV)},a.prototype.pause=function(t){t||(this._isPaused=!0);u(this._element).find(s.NEXT_PREV)[0]&&n.supportsTransitionEnd()&&(n.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},a.prototype.cycle=function(n){n||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},a.prototype.to=function(n){var r=this,t,i;if(this._activeElement=u(this._element).find(s.ACTIVE_ITEM)[0],t=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)u(this._element).one(o.SLID,function(){return r.to(n)});else{if(t===n)return this.pause(),void this.cycle();i=n>t?e.NEXT:e.PREV;this._slide(i,this._items[n])}},a.prototype.dispose=function(){u(this._element).off(h);u.removeData(this._element,l);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},a.prototype._getConfig=function(t){return t=u.extend({},v,t),n.typeCheckConfig(c,t,p),t},a.prototype._addEventListeners=function(){var n=this;this._config.keyboard&&u(this._element).on(o.KEYDOWN,function(t){return n._keydown(t)});"hover"===this._config.pause&&(u(this._element).on(o.MOUSEENTER,function(t){return n.pause(t)}).on(o.MOUSELEAVE,function(t){return n.cycle(t)}),"ontouchstart"in document.documentElement&&u(this._element).on(o.TOUCHEND,function(){n.pause();n.touchTimeout&&clearTimeout(n.touchTimeout);n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval)}))},a.prototype._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault();this.prev();break;case 39:n.preventDefault();this.next();break;default:return}},a.prototype._getItemIndex=function(n){return this._items=u.makeArray(u(n).parent().find(s.ITEM)),this._items.indexOf(n)},a.prototype._getItemByDirection=function(n,t){var u=n===e.NEXT,f=n===e.PREV,i=this._getItemIndex(t),o=this._items.length-1,r;return(f&&0===i||u&&i===o)&&!this._config.wrap?t:(r=(i+(n===e.PREV?-1:1))%this._items.length,-1===r?this._items[this._items.length-1]:this._items[r])},a.prototype._triggerSlideEvent=function(n,t){var r=this._getItemIndex(n),f=this._getItemIndex(u(this._element).find(s.ACTIVE_ITEM)[0]),i=u.Event(o.SLIDE,{relatedTarget:n,direction:t,from:f,to:r});return u(this._element).trigger(i),i},a.prototype._setActiveIndicatorElement=function(n){if(this._indicatorsElement){u(this._indicatorsElement).find(s.ACTIVE).removeClass(f.ACTIVE);var t=this._indicatorsElement.children[this._getItemIndex(n)];t&&u(t).addClass(f.ACTIVE)}},a.prototype._slide=function(t,i){var y=this,h=u(this._element).find(s.ACTIVE_ITEM)[0],w=this._getItemIndex(h),r=i||h&&this._getItemByDirection(t,h),b=this._getItemIndex(r),p=Boolean(this._interval),c=void 0,l=void 0,a=void 0,v;(t===e.NEXT?(c=f.LEFT,l=f.NEXT,a=e.LEFT):(c=f.RIGHT,l=f.PREV,a=e.RIGHT),r&&u(r).hasClass(f.ACTIVE))?this._isSliding=!1:!this._triggerSlideEvent(r,a).isDefaultPrevented()&&h&&r&&(this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(r),v=u.Event(o.SLID,{relatedTarget:r,direction:a,from:w,to:b}),n.supportsTransitionEnd()&&u(this._element).hasClass(f.SLIDE)?(u(r).addClass(l),n.reflow(r),u(h).addClass(c),u(r).addClass(c),u(h).one(n.TRANSITION_END,function(){u(r).removeClass(c+" "+l).addClass(f.ACTIVE);u(h).removeClass(f.ACTIVE+" "+l+" "+c);y._isSliding=!1;setTimeout(function(){return u(y._element).trigger(v)},0)}).emulateTransitionEnd(600)):(u(h).removeClass(f.ACTIVE),u(r).addClass(f.ACTIVE),this._isSliding=!1,u(this._element).trigger(v)),p&&this.cycle())},a._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(l),f=u.extend({},v,u(this).data()),i;if("object"===(void 0===n?"undefined":r(n))&&u.extend(f,n),i="string"==typeof n?n:f.slide,t||(t=new a(this,f),u(this).data(l,t)),"number"==typeof n)t.to(n);else if("string"==typeof i){if(void 0===t[i])throw new Error('No method named "'+i+'"');t[i]()}else f.interval&&(t.pause(),t.cycle())})},a._dataApiClickHandler=function(t){var o=n.getSelectorFromElement(this),i,e,r;o&&(i=u(o)[0],i&&u(i).hasClass(f.CAROUSEL)&&(e=u.extend({},u(i).data(),u(this).data()),r=this.getAttribute("data-slide-to"),r&&(e.interval=!1),a._jQueryInterface.call(u(i),e),r&&u(i).data(l).to(r),t.preventDefault()))},i(a,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return v}}]),a}();u(document).on(o.CLICK_DATA_API,s.DATA_SLIDE,a._dataApiClickHandler);u(window).on(o.LOAD_DATA_API,function(){u(s.DATA_RIDE).each(function(){var n=u(this);a._jQueryInterface.call(n,n.data())})});u.fn[c]=a._jQueryInterface;u.fn[c].Constructor=a;u.fn[c].noConflict=function(){return u.fn[c]=y,a._jQueryInterface}}(jQuery),function(u){var e="collapse",o="bs.collapse",v=u.fn[e],c={toggle:!0,parent:""},y={toggle:"boolean",parent:"string"},s={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},f={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},l={WIDTH:"width",HEIGHT:"height"},a={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},h=function(){function h(i,r){var e,f,o,s;for(t(this,h),this._isTransitioning=!1,this._element=i,this._config=this._getConfig(r),this._triggerArray=u.makeArray(u('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]')),e=u(a.DATA_TOGGLE),f=0;f<e.length;f++)o=e[f],s=n.getSelectorFromElement(o),null!==s&&u(s).filter(i).length>0&&this._triggerArray.push(o);this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}return h.prototype.toggle=function(){u(this._element).hasClass(f.SHOW)?this.hide():this.show()},h.prototype.show=function(){var r=this,t,e,c,i,l,v;this._isTransitioning||u(this._element).hasClass(f.SHOW)||(t=void 0,e=void 0,(this._parent&&((t=u.makeArray(u(this._parent).children().children(a.ACTIVES))).length||(t=null)),t&&(e=u(t).data(o))&&e._isTransitioning)||(c=u.Event(s.SHOW),(u(this._element).trigger(c),c.isDefaultPrevented())||(t&&(h._jQueryInterface.call(u(t),"hide"),e||u(t).data(o,null)),i=this._getDimension(),u(this._element).removeClass(f.COLLAPSE).addClass(f.COLLAPSING),this._element.style[i]=0,this._triggerArray.length&&u(this._triggerArray).removeClass(f.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),l=function(){u(r._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).addClass(f.SHOW);r._element.style[i]="";r.setTransitioning(!1);u(r._element).trigger(s.SHOWN)},n.supportsTransitionEnd()?(v="scroll"+(i[0].toUpperCase()+i.slice(1)),u(this._element).one(n.TRANSITION_END,l).emulateTransitionEnd(600),this._element.style[i]=this._element[v]+"px"):l())))},h.prototype.hide=function(){var c=this,r,t,i,e,o,h;if(!this._isTransitioning&&u(this._element).hasClass(f.SHOW)&&(r=u.Event(s.HIDE),u(this._element).trigger(r),!r.isDefaultPrevented())){if(t=this._getDimension(),this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",n.reflow(this._element),u(this._element).addClass(f.COLLAPSING).removeClass(f.COLLAPSE).removeClass(f.SHOW),this._triggerArray.length)for(i=0;i<this._triggerArray.length;i++)e=this._triggerArray[i],o=n.getSelectorFromElement(e),null!==o&&(u(o).hasClass(f.SHOW)||u(e).addClass(f.COLLAPSED).attr("aria-expanded",!1));this.setTransitioning(!0);h=function(){c.setTransitioning(!1);u(c._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).trigger(s.HIDDEN)};this._element.style[t]="";n.supportsTransitionEnd()?u(this._element).one(n.TRANSITION_END,h).emulateTransitionEnd(600):h()}},h.prototype.setTransitioning=function(n){this._isTransitioning=n},h.prototype.dispose=function(){u.removeData(this._element,o);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},h.prototype._getConfig=function(t){return t=u.extend({},c,t),t.toggle=Boolean(t.toggle),n.typeCheckConfig(e,t,y),t},h.prototype._getDimension=function(){return u(this._element).hasClass(l.WIDTH)?l.WIDTH:l.HEIGHT},h.prototype._getParent=function(){var t=this,n=u(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return u(n).find(i).each(function(n,i){t._addAriaAndCollapsedClass(h._getTargetFromElement(i),[i])}),n},h.prototype._addAriaAndCollapsedClass=function(n,t){if(n){var i=u(n).hasClass(f.SHOW);t.length&&u(t).toggleClass(f.COLLAPSED,!i).attr("aria-expanded",i)}},h._getTargetFromElement=function(t){var i=n.getSelectorFromElement(t);return i?u(i)[0]:null},h._jQueryInterface=function(n){return this.each(function(){var i=u(this),t=i.data(o),f=u.extend({},c,i.data(),"object"===(void 0===n?"undefined":r(n))&&n);if(!t&&f.toggle&&/show|hide/.test(n)&&(f.toggle=!1),t||(t=new h(this,f),i.data(o,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(h,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return c}}]),h}();u(document).on(s.CLICK_DATA_API,a.DATA_TOGGLE,function(t){/input|textarea/i.test(t.target.tagName)||t.preventDefault();var i=u(this),r=n.getSelectorFromElement(this);u(r).each(function(){var n=u(this),t=n.data(o)?"toggle":i.data();h._jQueryInterface.call(n,t)})});u.fn[e]=h._jQueryInterface;u.fn[e].Constructor=h;u.fn[e].noConflict=function(){return u.fn[e]=v,h._jQueryInterface}}(jQuery),function(u){if("undefined"==typeof Popper)throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var h="dropdown",a="bs.dropdown",c="."+a,v=u.fn[h],y=new RegExp("38|40|27"),e={HIDE:"hide"+c,HIDDEN:"hidden"+c,SHOW:"show"+c,SHOWN:"shown"+c,CLICK:"click"+c,CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},f={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left"},o={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},l={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},p={placement:l.BOTTOM,offset:0,flip:!0},w={placement:"string",offset:"(number|string)",flip:"boolean"},s=function(){function s(n,i){t(this,s);this._element=n;this._popper=null;this._config=this._getConfig(i);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}return s.prototype.toggle=function(){var n,h,t,i,r;this._element.disabled||u(this._element).hasClass(f.DISABLED)||(n=s._getParentFromElement(this._element),h=u(this._menu).hasClass(f.SHOW),(s._clearMenus(),h)||(t={relatedTarget:this._element},i=u.Event(e.SHOW,t),(u(n).trigger(i),i.isDefaultPrevented())||(r=this._element,u(n).hasClass(f.DROPUP)&&(u(this._menu).hasClass(f.MENULEFT)||u(this._menu).hasClass(f.MENURIGHT))&&(r=n),this._popper=new Popper(r,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!u(n).closest(o.NAVBAR_NAV).length&&u("body").children().on("mouseover",null,u.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),u(this._menu).toggleClass(f.SHOW),u(n).toggleClass(f.SHOW).trigger(u.Event(e.SHOWN,t)))))},s.prototype.dispose=function(){u.removeData(this._element,a);u(this._element).off(c);this._element=null;this._menu=null;null!==this._popper&&this._popper.destroy();this._popper=null},s.prototype.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},s.prototype._addEventListeners=function(){var n=this;u(this._element).on(e.CLICK,function(t){t.preventDefault();t.stopPropagation();n.toggle()})},s.prototype._getConfig=function(t){var i=u(this._element).data();return void 0!==i.placement&&(i.placement=l[i.placement.toUpperCase()]),t=u.extend({},this.constructor.Default,u(this._element).data(),t),n.typeCheckConfig(h,t,this.constructor.DefaultType),t},s.prototype._getMenuElement=function(){if(!this._menu){var n=s._getParentFromElement(this._element);this._menu=u(n).find(o.MENU)[0]}return this._menu},s.prototype._getPlacement=function(){var t=u(this._element).parent(),n=this._config.placement;return t.hasClass(f.DROPUP)||this._config.placement===l.TOP?(n=l.TOP,u(this._menu).hasClass(f.MENURIGHT)&&(n=l.TOPEND)):u(this._menu).hasClass(f.MENURIGHT)&&(n=l.BOTTOMEND),n},s.prototype._detectNavbar=function(){return u(this._element).closest(".navbar").length>0},s.prototype._getPopperConfig=function(){var n={placement:this._getPlacement(),modifiers:{offset:{offset:this._config.offset},flip:{enabled:this._config.flip}}};return this._inNavbar&&(n.modifiers.applyStyle={enabled:!this._inNavbar}),n},s._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(a),i="object"===(void 0===n?"undefined":r(n))?n:null;if(t||(t=new s(this,i),u(this).data(a,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},s._clearMenus=function(n){var i,t,v,h;if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(i=u.makeArray(u(o.DATA_TOGGLE)),t=0;t<i.length;t++){var r=s._getParentFromElement(i[t]),c=u(i[t]).data(a),l={relatedTarget:i[t]};c&&(v=c._menu,!u(r).hasClass(f.SHOW)||n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"keyup"===n.type&&9===n.which)&&u.contains(r,n.target)||(h=u.Event(e.HIDE,l),u(r).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&u("body").children().off("mouseover",null,u.noop),i[t].setAttribute("aria-expanded","false"),u(v).removeClass(f.SHOW),u(r).removeClass(f.SHOW).trigger(u.Event(e.HIDDEN,l)))))}},s._getParentFromElement=function(t){var i=void 0,r=n.getSelectorFromElement(t);return r&&(i=u(r)[0]),i||t.parentNode},s._dataApiKeydownHandler=function(n){var r,e,i,t,h;!y.test(n.which)||/button/i.test(n.target.tagName)&&32===n.which||/input|textarea/i.test(n.target.tagName)||(n.preventDefault(),n.stopPropagation(),this.disabled||u(this).hasClass(f.DISABLED))||(r=s._getParentFromElement(this),e=u(r).hasClass(f.SHOW),(e||27===n.which&&32===n.which)&&(!e||27!==n.which&&32!==n.which)?(i=u(r).find(o.VISIBLE_ITEMS).get(),i.length&&(t=i.indexOf(n.target),38===n.which&&t>0&&t--,40===n.which&&t<i.length-1&&t++,t<0&&(t=0),i[t].focus())):(27===n.which&&(h=u(r).find(o.DATA_TOGGLE)[0],u(h).trigger("focus")),u(this).trigger("click")))},i(s,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return p}},{key:"DefaultType",get:function(){return w}}]),s}();u(document).on(e.KEYDOWN_DATA_API,o.DATA_TOGGLE,s._dataApiKeydownHandler).on(e.KEYDOWN_DATA_API,o.MENU,s._dataApiKeydownHandler).on(e.CLICK_DATA_API+" "+e.KEYUP_DATA_API,s._clearMenus).on(e.CLICK_DATA_API,o.DATA_TOGGLE,function(n){n.preventDefault();n.stopPropagation();s._jQueryInterface.call(u(this),"toggle")}).on(e.CLICK_DATA_API,o.FORM_CHILD,function(n){n.stopPropagation()});u.fn[h]=s._jQueryInterface;u.fn[h].Constructor=s;u.fn[h].noConflict=function(){return u.fn[h]=v,s._jQueryInterface}}(jQuery),function(u){var s="modal",l=".bs.modal",a=u.fn[s],c={backdrop:!0,keyboard:!0,focus:!0,show:!0},v={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},f={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},e={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},o={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},h=function(){function h(n,i){t(this,h);this._config=this._getConfig(i);this._element=n;this._dialog=u(n).find(o.DIALOG)[0];this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._originalBodyPadding=0;this._scrollbarWidth=0}return h.prototype.toggle=function(n){return this._isShown?this.hide():this.show(n)},h.prototype.show=function(t){var i=this,r;this._isTransitioning||(n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE)&&(this._isTransitioning=!0),r=u.Event(f.SHOW,{relatedTarget:t}),u(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),u(document.body).addClass(e.OPEN),this._setEscapeEvent(),this._setResizeEvent(),u(this._element).on(f.CLICK_DISMISS,o.DATA_DISMISS,function(n){return i.hide(n)}),u(this._dialog).on(f.MOUSEDOWN_DISMISS,function(){u(i._element).one(f.MOUSEUP_DISMISS,function(n){u(n.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(t)})))},h.prototype.hide=function(t){var o=this,i,r;(t&&t.preventDefault(),!this._isTransitioning&&this._isShown)&&(i=n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE),i&&(this._isTransitioning=!0),r=u.Event(f.HIDE),u(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),u(document).off(f.FOCUSIN),u(this._element).removeClass(e.SHOW),u(this._element).off(f.CLICK_DISMISS),u(this._dialog).off(f.MOUSEDOWN_DISMISS),i?u(this._element).one(n.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(300):this._hideModal()))},h.prototype.dispose=function(){u.removeData(this._element,"bs.modal");u(window,document,this._element,this._backdrop).off(l);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null},h.prototype.handleUpdate=function(){this._adjustDialog()},h.prototype._getConfig=function(t){return t=u.extend({},c,t),n.typeCheckConfig(s,t,v),t},h.prototype._showElement=function(t){var i=this,o=n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE),s,r;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.scrollTop=0;o&&n.reflow(this._element);u(this._element).addClass(e.SHOW);this._config.focus&&this._enforceFocus();s=u.Event(f.SHOWN,{relatedTarget:t});r=function(){i._config.focus&&i._element.focus();i._isTransitioning=!1;u(i._element).trigger(s)};o?u(this._dialog).one(n.TRANSITION_END,r).emulateTransitionEnd(300):r()},h.prototype._enforceFocus=function(){var n=this;u(document).off(f.FOCUSIN).on(f.FOCUSIN,function(t){document===t.target||n._element===t.target||u(n._element).has(t.target).length||n._element.focus()})},h.prototype._setEscapeEvent=function(){var n=this;this._isShown&&this._config.keyboard?u(this._element).on(f.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),n.hide())}):this._isShown||u(this._element).off(f.KEYDOWN_DISMISS)},h.prototype._setResizeEvent=function(){var n=this;this._isShown?u(window).on(f.RESIZE,function(t){return n.handleUpdate(t)}):u(window).off(f.RESIZE)},h.prototype._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._isTransitioning=!1;this._showBackdrop(function(){u(document.body).removeClass(e.OPEN);n._resetAdjustments();n._resetScrollbar();u(n._element).trigger(f.HIDDEN)})},h.prototype._removeBackdrop=function(){this._backdrop&&(u(this._backdrop).remove(),this._backdrop=null)},h.prototype._showBackdrop=function(t){var i=this,r=u(this._element).hasClass(e.FADE)?e.FADE:"",o,s;if(this._isShown&&this._config.backdrop){if(o=n.supportsTransitionEnd()&&r,this._backdrop=document.createElement("div"),this._backdrop.className=e.BACKDROP,r&&u(this._backdrop).addClass(r),u(this._backdrop).appendTo(document.body),u(this._element).on(f.CLICK_DISMISS,function(n){i._ignoreBackdropClick?i._ignoreBackdropClick=!1:n.target===n.currentTarget&&("static"===i._config.backdrop?i._element.focus():i.hide())}),o&&n.reflow(this._backdrop),u(this._backdrop).addClass(e.SHOW),!t)return;if(!o)return void t();u(this._backdrop).one(n.TRANSITION_END,t).emulateTransitionEnd(150)}else!this._isShown&&this._backdrop?(u(this._backdrop).removeClass(e.SHOW),s=function(){i._removeBackdrop();t&&t()},n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE)?u(this._backdrop).one(n.TRANSITION_END,s).emulateTransitionEnd(150):s()):t&&t()},h.prototype._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},h.prototype._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},h.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},h.prototype._setScrollbar=function(){var n=this,t,i;this._isBodyOverflowing&&(u(o.FIXED_CONTENT).each(function(t,i){var r=u(i)[0].style.paddingRight,f=u(i).css("padding-right");u(i).data("padding-right",r).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),u(o.NAVBAR_TOGGLER).each(function(t,i){var r=u(i)[0].style.marginRight,f=u(i).css("margin-right");u(i).data("margin-right",r).css("margin-right",parseFloat(f)+n._scrollbarWidth+"px")}),t=document.body.style.paddingRight,i=u("body").css("padding-right"),u("body").data("padding-right",t).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px"))},h.prototype._resetScrollbar=function(){u(o.FIXED_CONTENT).each(function(n,t){var i=u(t).data("padding-right");void 0!==i&&u(t).css("padding-right",i).removeData("padding-right")});u(o.NAVBAR_TOGGLER).each(function(n,t){var i=u(t).data("margin-right");void 0!==i&&u(t).css("margin-right",i).removeData("margin-right")});var n=u("body").data("padding-right");void 0!==n&&u("body").css("padding-right",n).removeData("padding-right")},h.prototype._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=e.SCROLLBAR_MEASURER,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},h._jQueryInterface=function(n,t){return this.each(function(){var i=u(this).data("bs.modal"),f=u.extend({},h.Default,u(this).data(),"object"===(void 0===n?"undefined":r(n))&&n);if(i||(i=new h(this,f),u(this).data("bs.modal",i)),"string"==typeof n){if(void 0===i[n])throw new Error('No method named "'+n+'"');i[n](t)}else f.show&&i.show(t)})},i(h,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return c}}]),h}();u(document).on(f.CLICK_DATA_API,o.DATA_TOGGLE,function(t){var r=this,i=void 0,e=n.getSelectorFromElement(this),o,s;e&&(i=u(e)[0]);o=u(i).data("bs.modal")?"toggle":u.extend({},u(i).data(),u(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();s=u(i).one(f.SHOW,function(n){n.isDefaultPrevented()||s.one(f.HIDDEN,function(){u(r).is(":visible")&&r.focus()})});h._jQueryInterface.call(u(i),o,this)});u.fn[s]=h._jQueryInterface;u.fn[s].Constructor=h;u.fn[s].noConflict=function(){return u.fn[s]=a,h._jQueryInterface}}(jQuery),function(u){var e="scrollspy",a=u.fn[e],l={offset:10,method:"auto",target:""},v={offset:"number",method:"string",target:"(string|element)"},h={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},o={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},c={OFFSET:"offset",POSITION:"position"},s=function(){function s(n,i){var r=this;t(this,s);this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(i);this._selector=this._config.target+" "+f.NAV_LINKS+","+this._config.target+" "+f.LIST_ITEMS+","+this._config.target+" "+f.DROPDOWN_ITEMS;this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;u(this._scrollElement).on(h.SCROLL,function(n){return r._process(n)});this.refresh();this._process()}return s.prototype.refresh=function(){var t=this,r=this._scrollElement!==this._scrollElement.window?c.POSITION:c.OFFSET,i="auto"===this._config.method?r:this._config.method,f=i===c.POSITION?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();u.makeArray(u(this._selector)).map(function(t){var r=void 0,e=n.getSelectorFromElement(t),o;return(e&&(r=u(e)[0]),r)&&(o=r.getBoundingClientRect(),o.width||o.height)?[u(r)[i]().top+f,e]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(n){t._offsets.push(n[0]);t._targets.push(n[1])})},s.prototype.dispose=function(){u.removeData(this._element,"bs.scrollspy");u(this._scrollElement).off(".bs.scrollspy");this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},s.prototype._getConfig=function(t){if("string"!=typeof(t=u.extend({},l,t)).target){var i=u(t.target).attr("id");i||(i=n.getUID(e),u(t.target).attr("id",i));t.target="#"+i}return n.typeCheckConfig(e,t,v),t},s.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},s.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},s.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},s.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),u=this._config.offset+r-this._getOffsetHeight(),i,n;if(this._scrollHeight!==r&&this.refresh(),t>=u)i=this._targets[this._targets.length-1],this._activeTarget!==i&&this._activate(i);else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(void 0===this._offsets[n+1]||t<this._offsets[n+1])&&this._activate(this._targets[n])}},s.prototype._activate=function(n){var i,t;this._activeTarget=n;this._clear();i=this._selector.split(",");i=i.map(function(t){return t+'[data-target="'+n+'"],'+t+'[href="'+n+'"]'});t=u(i.join(","));t.hasClass(o.DROPDOWN_ITEM)?(t.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(o.ACTIVE),t.addClass(o.ACTIVE)):(t.addClass(o.ACTIVE),t.parents(f.NAV_LIST_GROUP).prev(f.NAV_LINKS+", "+f.LIST_ITEMS).addClass(o.ACTIVE));u(this._scrollElement).trigger(h.ACTIVATE,{relatedTarget:n})},s.prototype._clear=function(){u(this._selector).filter(f.ACTIVE).removeClass(o.ACTIVE)},s._jQueryInterface=function(n){return this.each(function(){var t=u(this).data("bs.scrollspy"),i="object"===(void 0===n?"undefined":r(n))&&n;if(t||(t=new s(this,i),u(this).data("bs.scrollspy",t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(s,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return l}}]),s}();u(window).on(h.LOAD_DATA_API,function(){for(var i,n=u.makeArray(u(f.DATA_SPY)),t=n.length;t--;)i=u(n[t]),s._jQueryInterface.call(i,i.data())});u.fn[e]=s._jQueryInterface;u.fn[e].Constructor=s;u.fn[e].noConflict=function(){return u.fn[e]=a,s._jQueryInterface}}(jQuery),function(r){var s=r.fn.tab,e={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},u={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},f={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},o=function(){function o(n){t(this,o);this._element=n}return o.prototype.show=function(){var l=this,s,h,c;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r(this._element).hasClass(u.ACTIVE)||r(this._element).hasClass(u.DISABLED))){var i=void 0,t=void 0,o=r(this._element).closest(f.NAV_LIST_GROUP)[0],a=n.getSelectorFromElement(this._element);o&&(t=r.makeArray(r(o).find(f.ACTIVE)),t=t[t.length-1]);s=r.Event(e.HIDE,{relatedTarget:this._element});h=r.Event(e.SHOW,{relatedTarget:t});(t&&r(t).trigger(s),r(this._element).trigger(h),h.isDefaultPrevented()||s.isDefaultPrevented())||(a&&(i=r(a)[0]),this._activate(this._element,o),c=function(){var n=r.Event(e.HIDDEN,{relatedTarget:l._element}),i=r.Event(e.SHOWN,{relatedTarget:t});r(t).trigger(n);r(l._element).trigger(i)},i?this._activate(i,i.parentNode,c):c())}},o.prototype.dispose=function(){r.removeData(this._element,"bs.tab");this._element=null},o.prototype._activate=function(t,i,e){var c=this,o=r(i).find(f.ACTIVE)[0],s=e&&n.supportsTransitionEnd()&&o&&r(o).hasClass(u.FADE),h=function(){return c._transitionComplete(t,o,s,e)};o&&s?r(o).one(n.TRANSITION_END,h).emulateTransitionEnd(150):h();o&&r(o).removeClass(u.SHOW)},o.prototype._transitionComplete=function(t,i,e,o){var s,h;i&&(r(i).removeClass(u.ACTIVE),s=r(i.parentNode).find(f.DROPDOWN_ACTIVE_CHILD)[0],s&&r(s).removeClass(u.ACTIVE),i.setAttribute("aria-expanded",!1));(r(t).addClass(u.ACTIVE),t.setAttribute("aria-expanded",!0),e?(n.reflow(t),r(t).addClass(u.SHOW)):r(t).removeClass(u.FADE),t.parentNode&&r(t.parentNode).hasClass(u.DROPDOWN_MENU))&&(h=r(t).closest(f.DROPDOWN)[0],h&&r(h).find(f.DROPDOWN_TOGGLE).addClass(u.ACTIVE),t.setAttribute("aria-expanded",!0));o&&o()},o._jQueryInterface=function(n){return this.each(function(){var i=r(this),t=i.data("bs.tab");if(t||(t=new o(this),i.data("bs.tab",t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(o,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}}]),o}();r(document).on(e.CLICK_DATA_API,f.DATA_TOGGLE,function(n){n.preventDefault();o._jQueryInterface.call(r(this),"show")});r.fn.tab=o._jQueryInterface;r.fn.tab.Constructor=o;r.fn.tab.noConflict=function(){return r.fn.tab=s,o._jQueryInterface}}(jQuery),function(u){if("undefined"==typeof Popper)throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var h="tooltip",f=".bs.tooltip",a=u.fn[h],v=new RegExp("(^|\\s)bs-tooltip\\S+","g"),y={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)"},p={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},w={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip"},s={SHOW:"show",OUT:"out"},b={HIDE:"hide"+f,HIDDEN:"hidden"+f,SHOW:"show"+f,SHOWN:"shown"+f,INSERTED:"inserted"+f,CLICK:"click"+f,FOCUSIN:"focusin"+f,FOCUSOUT:"focusout"+f,MOUSEENTER:"mouseenter"+f,MOUSELEAVE:"mouseleave"+f},e={FADE:"fade",SHOW:"show"},l={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},o={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},c=function(){function c(n,i){t(this,c);this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=n;this.config=this._getConfig(i);this.tip=null;this._setListeners()}return c.prototype.enable=function(){this._isEnabled=!0},c.prototype.disable=function(){this._isEnabled=!1},c.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},c.prototype.toggle=function(n){if(n){var i=this.constructor.DATA_KEY,t=u(n.currentTarget).data(i);t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));t._activeTrigger.click=!t._activeTrigger.click;t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(u(this.getTipElement()).hasClass(e.SHOW))return void this._leave(null,this);this._enter(null,this)}},c.prototype.dispose=function(){clearTimeout(this._timeout);u.removeData(this.element,this.constructor.DATA_KEY);u(this.element).off(this.constructor.EVENT_KEY);u(this.element).closest(".modal").off("hide.bs.modal");this.tip&&u(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;null!==this._popper&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},c.prototype.show=function(){var t=this,r,a,i,f,v,o,y,h;if("none"===u(this.element).css("display"))throw new Error("Please use show on visible elements");if(r=u.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(u(this.element).trigger(r),a=u.contains(this.element.ownerDocument.documentElement,this.element),r.isDefaultPrevented()||!a)return;i=this.getTipElement();f=n.getUID(this.constructor.NAME);i.setAttribute("id",f);this.element.setAttribute("aria-describedby",f);this.setContent();this.config.animation&&u(i).addClass(e.FADE);v="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement;o=this._getAttachment(v);this.addAttachmentClass(o);y=!1===this.config.container?document.body:u(this.config.container);u(i).data(this.constructor.DATA_KEY,this);u.contains(this.element.ownerDocument.documentElement,this.tip)||u(i).appendTo(y);u(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new Popper(this.element,i,{placement:o,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:l.ARROW}},onCreate:function(n){n.originalPlacement!==n.placement&&t._handlePopperPlacementChange(n)},onUpdate:function(n){t._handlePopperPlacementChange(n)}});u(i).addClass(e.SHOW);"ontouchstart"in document.documentElement&&u("body").children().on("mouseover",null,u.noop);h=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null;u(t.element).trigger(t.constructor.Event.SHOWN);n===s.OUT&&t._leave(null,t)};n.supportsTransitionEnd()&&u(this.tip).hasClass(e.FADE)?u(this.tip).one(n.TRANSITION_END,h).emulateTransitionEnd(c._TRANSITION_DURATION):h()}},c.prototype.hide=function(t){var i=this,r=this.getTipElement(),f=u.Event(this.constructor.Event.HIDE),h=function(){i._hoverState!==s.SHOW&&r.parentNode&&r.parentNode.removeChild(r);i._cleanTipClass();i.element.removeAttribute("aria-describedby");u(i.element).trigger(i.constructor.Event.HIDDEN);null!==i._popper&&i._popper.destroy();t&&t()};u(this.element).trigger(f);f.isDefaultPrevented()||(u(r).removeClass(e.SHOW),"ontouchstart"in document.documentElement&&u("body").children().off("mouseover",null,u.noop),this._activeTrigger[o.CLICK]=!1,this._activeTrigger[o.FOCUS]=!1,this._activeTrigger[o.HOVER]=!1,n.supportsTransitionEnd()&&u(this.tip).hasClass(e.FADE)?u(r).one(n.TRANSITION_END,h).emulateTransitionEnd(150):h(),this._hoverState="")},c.prototype.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},c.prototype.isWithContent=function(){return Boolean(this.getTitle())},c.prototype.addAttachmentClass=function(n){u(this.getTipElement()).addClass("bs-tooltip-"+n)},c.prototype.getTipElement=function(){return this.tip=this.tip||u(this.config.template)[0]},c.prototype.setContent=function(){var n=u(this.getTipElement());this.setElementContent(n.find(l.TOOLTIP_INNER),this.getTitle());n.removeClass(e.FADE+" "+e.SHOW)},c.prototype.setElementContent=function(n,t){var i=this.config.html;"object"===(void 0===t?"undefined":r(t))&&(t.nodeType||t.jquery)?i?u(t).parent().is(n)||n.empty().append(t):n.text(u(t).text()):n[i?"html":"text"](t)},c.prototype.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),n},c.prototype._getAttachment=function(n){return p[n.toUpperCase()]},c.prototype._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)u(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(t!==o.MANUAL){var i=t===o.HOVER?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,r=t===o.HOVER?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;u(n.element).on(i,n.config.selector,function(t){return n._enter(t)}).on(r,n.config.selector,function(t){return n._leave(t)})}u(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})});this.config.selector?this.config=u.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},c.prototype._fixTitle=function(){var n=r(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",""))},c.prototype._enter=function(n,t){var i=this.constructor.DATA_KEY;(t=t||u(n.currentTarget).data(i))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));n&&(t._activeTrigger["focusin"===n.type?o.FOCUS:o.HOVER]=!0);u(t.getTipElement()).hasClass(e.SHOW)||t._hoverState===s.SHOW?t._hoverState=s.SHOW:(clearTimeout(t._timeout),t._hoverState=s.SHOW,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===s.SHOW&&t.show()},t.config.delay.show):t.show())},c.prototype._leave=function(n,t){var i=this.constructor.DATA_KEY;(t=t||u(n.currentTarget).data(i))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));n&&(t._activeTrigger["focusout"===n.type?o.FOCUS:o.HOVER]=!1);t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=s.OUT,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===s.OUT&&t.hide()},t.config.delay.hide):t.hide())},c.prototype._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},c.prototype._getConfig=function(t){return(t=u.extend({},this.constructor.Default,u(this.element).data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.title&&"number"==typeof t.title&&(t.title=t.title.toString()),t.content&&"number"==typeof t.content&&(t.content=t.content.toString()),n.typeCheckConfig(h,t,this.constructor.DefaultType),t},c.prototype._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},c.prototype._cleanTipClass=function(){var t=u(this.getTipElement()),n=t.attr("class").match(v);null!==n&&n.length>0&&t.removeClass(n.join(""))},c.prototype._handlePopperPlacementChange=function(n){this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},c.prototype._fixTransition=function(){var n=this.getTipElement(),t=this.config.animation;null===n.getAttribute("x-placement")&&(u(n).removeClass(e.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},c._jQueryInterface=function(n){return this.each(function(){var t=u(this).data("bs.tooltip"),i="object"===(void 0===n?"undefined":r(n))&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new c(this,i),u(this).data("bs.tooltip",t)),"string"==typeof n)){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(c,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return w}},{key:"NAME",get:function(){return h}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return b}},{key:"EVENT_KEY",get:function(){return f}},{key:"DefaultType",get:function(){return y}}]),c}();return u.fn[h]=c._jQueryInterface,u.fn[h].Constructor=c,u.fn[h].noConflict=function(){return u.fn[h]=a,c._jQueryInterface},c}(jQuery));!function(n){var s="popover",o=".bs.popover",a=n.fn[s],v=new RegExp("(^|\\s)bs-popover\\S+","g"),y=n.extend({},u.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-header"><\/h3><div class="popover-body"><\/div><\/div>'}),p=n.extend({},u.DefaultType,{content:"(string|element|function)"}),c={FADE:"fade",SHOW:"show"},l={TITLE:".popover-header",CONTENT:".popover-body"},w={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},h=function(u){function h(){return t(this,h),f(this,u.apply(this,arguments))}return e(h,u),h.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},h.prototype.addAttachmentClass=function(t){n(this.getTipElement()).addClass("bs-popover-"+t)},h.prototype.getTipElement=function(){return this.tip=this.tip||n(this.config.template)[0]},h.prototype.setContent=function(){var t=n(this.getTipElement());this.setElementContent(t.find(l.TITLE),this.getTitle());this.setElementContent(t.find(l.CONTENT),this._getContent());t.removeClass(c.FADE+" "+c.SHOW)},h.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},h.prototype._cleanTipClass=function(){var i=n(this.getTipElement()),t=i.attr("class").match(v);null!==t&&t.length>0&&i.removeClass(t.join(""))},h._jQueryInterface=function(t){return this.each(function(){var i=n(this).data("bs.popover"),u="object"===(void 0===t?"undefined":r(t))?t:null;if((i||!/destroy|hide/.test(t))&&(i||(i=new h(this,u),n(this).data("bs.popover",i)),"string"==typeof t)){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})},i(h,null,[{key:"VERSION",get:function(){return"4.0.0-beta"}},{key:"Default",get:function(){return y}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return w}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return p}}]),h}(u);n.fn[s]=h._jQueryInterface;n.fn[s].Constructor=h;n.fn[s].noConflict=function(){return n.fn[s]=a,h._jQueryInterface}}(jQuery)}();$(function(){$('[data-toggle="tooltip"]').tooltip()});ownJS.counter=0;$(document).ready(articleImg);$(window).resize(articleImg);$(window).on("resize",autocollapseMGO);$(document).ready(function(){checkSize();$(window).resize(checkSize)});$(".hamburger-menu").append('<div id="accordion" data-children=".mItem"><\/div>');$("#navbar").children("li").each(function(){$("#accordion").append('<div class="mItem" id="mItem-'+ownJS.counter+'"><\/div>');0==$(this).children("ul").length?$("#mItem-"+ownJS.counter).append('<a class="btn btn-primary btn-block" id="a-'+ownJS.counter+'"  href="'+$(this).find("a").attr("href")+'" ><\/a>'):$("#mItem-"+ownJS.counter).append('<a class="btn btn-primary btn-block" id="a-'+ownJS.counter+'" data-toggle="collapse" data-parent="#accordion" href="#collapse-'+ownJS.counter+'" aria-expanded="false" aria-controls="collapse-'+ownJS.counter+'"><\/a>');$("#a-"+ownJS.counter).append($(this).find(".menuItemLarge").first().text());0<$(this).children("ul").length&&($("#a-"+ownJS.counter).addClass("drop-icon"),$("#mItem-"+ownJS.counter).append('<div id="collapse-'+ownJS.counter+'" class="collapse px-3" role="tabpanel"><\/div>'),$(this).find("ul").clone().appendTo("#collapse-"+ownJS.counter));ownJS.counter++});$(".nav_sky.social").clone().appendTo(".hamburger-menu");$(".hamburger-menu .nav_sky.social").removeClass("nav_sky");$(".hamburger-menu").on("show.bs.collapse",function(){$("#profil-menu").collapse("hide");$("#search-menu").collapse("hide")});$(".hamburger-menu").on("shown.bs.collapse",function(){$(window).height()<$(".hamburger-menu").outerHeight()+$("nav .nav_main").parent(".container").outerHeight()&&($(".hamburger-menu").css("height",$(window).height()-$("nav .nav_main").parent(".container").outerHeight()),$(".hamburger-menu").css("overflow","auto"))});document.addEventListener("DOMContentLoaded",function(){for(var t,i=document.getElementsByClassName("youtube-player"),n=0;n<i.length;n++)(t=document.createElement("div")).setAttribute("data-id",i[n].dataset.id),t.innerHTML=labnolThumb(i[n].dataset.id),t.onclick=labnolIframe,i[n].appendChild(t)});$(document).ready(function(){var t;if($(".main-carousel .tab-content").length){var n=[],f=0,r=!1;for($(".main-carousel .car-nav ul").children("li").each(function(){n[f]=$(this).find("a").attr("id").slice(-1);f++}),t=$(".main-carousel .nav-link.active").attr("id").slice(-1),$(".main-carousel .car-main").append('<div class="dots hide"><ul class="slick-dots"><\/ul><\/div>'),i=1;i<n.length+1;i++)1===i?$(".slick-dots").append('<li class="slick-active" id="dot-'+i+'"><button type="button">2<\/button><\/li>'):$(".slick-dots").append('<li id="dot-'+i+'"><button type="button">2<\/button><\/li>');function u(){$(".main-carousel").width()-196<420?($(".main-carousel .car-nav").removeClass("show"),$(".main-carousel .car-nav").addClass("hide"),$(".main-carousel .car-cont").css("margin-right","0"),$(".dots").removeClass("hide"),$(".dots").addClass("show"),$(".main-carousel .car-cont").height($(".main-carousel .active img").outerHeight(!0)+$(".main-carousel .active h3").outerHeight(!0))):($(".main-carousel .car-nav").removeClass("hide"),$(".main-carousel .car-nav").addClass("show"),$(".main-carousel .car-cont").css("margin-right","8px"),$(".dots").removeClass("show"),$(".dots").addClass("hide"),$(".main-carousel .car-cont").height($(".main-carousel .active img").outerHeight()+$(".main-carousel .active h3").outerHeight()+(21===$(".main-carousel .active h3").height()?70:50)))}$(".main-carousel .nav-link").on("click",function(i){var f,u,e,s,h;if(i.clientX&&i.screenX&&0!==i.screenX&&i.screenY&&0!==i.screenY&&(r=!0),f=$(".main-carousel .car-nav"),u=$(this).attr("id").slice(-1),$(".main-carousel .slick-dots li").removeClass("slick-active"),$(".main-carousel #dot-"+u).addClass("slick-active"),e=0,$(".main-carousel .car-nav ul > li").each(function(){e+=$(this).outerHeight(!0)}),$(".main-carousel .car-nav").outerHeight()<e){if(t<u&&u!==n[n.length-1]){var c=$(".main-carousel .car-nav ul li:nth-child("+(Number(u)+1)+")"),o=c.offset(),l=o.top+c.height();o=f.offset();navBotPos=o.top+f.height();l>navBotPos&&f.animate({scrollTop:f.scrollTop()+(l-navBotPos)},"500")}u<t&&u!==n[0]&&(s=$(".main-carousel .car-nav ul li:nth-child("+(Number(u)-1)+")").offset(),h=f.offset(),s.top<h.top&&f.animate({scrollTop:f.scrollTop()-(s.top-h.top)},"500"))}t=u});setInterval(function(){r||(t==n[n.length-1]?($(".main-carousel .car-nav").animate({scrollTop:0},"500"),$(".main-carousel .car-nav ul li:nth-child("+Number(n[0])+") a").trigger("click"),t=n[0]):$(".main-carousel .car-nav ul li:nth-child("+(Number(t)+1)+") a").trigger("click"))},5e3);$(".main-carousel .slick-dots li").on("click",function(){r=!0;var n=$(this).attr("id").slice(-1);$(".main-carousel .car-nav ul li:nth-child("+n+") a").trigger("click")});$('.main-carousel a[data-toggle="tab"]').on("shown.bs.tab",function(){u()});$(document).ready(function(){u()});$(window).on("resize",function(){u()});$(".car-main").touch({useMouse:!0,dragDelay:100});$(".car-main").on("swipeLeft",function(){r=!0;t===n[n.length-1]?$(".main-carousel .car-nav ul li:nth-child("+n[0]+") a").trigger("click"):$(".main-carousel .car-nav ul li:nth-child("+(Number(t)+1)+") a").trigger("click")});$(".car-main").on("swipeRight",function(){r=!0;t===n[0]?$(".main-carousel .car-nav ul li:nth-child("+n[n.length-1]+") a").trigger("click"):$(".main-carousel .car-nav ul li:nth-child("+(Number(t)-1)+") a").trigger("click")})}}),function(n){var t=function(t,i){var u=this,p={allowFreeEntries:!0,allowDuplicates:!1,ajaxConfig:{},autoSelect:!0,selectFirst:!1,queryParam:"query",beforeSend:function(){},cls:"",data:null,dataUrlParams:{},disabled:!1,disabledField:null,displayField:"name",editable:!0,expanded:!1,expandOnFocus:!1,groupBy:null,hideTrigger:!1,highlight:!0,id:null,infoMsgCls:"",inputCfg:{},invalidCls:"ms-inv",matchCase:!1,maxDropHeight:290,maxEntryLength:null,maxEntryRenderer:function(n){return"Please reduce your entry by "+n+" character"+(n>1?"s":"")},maxSuggestions:null,maxSelection:10,maxSelectionRenderer:function(n){return"You cannot choose more than "+n+" item"+(n>1?"s":"")},method:"POST",minChars:0,minCharsRenderer:function(n){return"Please type "+n+" more character"+(n>1?"s":"")},mode:"local",name:null,noSuggestionText:"No suggestions",placeholder:"Type or click here",renderer:null,required:!1,resultAsString:!1,resultAsStringDelimiter:",",resultsField:"results",selectionCls:"",selectionContainer:null,selectionPosition:"inner",selectionRenderer:null,selectionStacked:!1,sortDir:"asc",sortOrder:null,strictSuggest:!1,style:"",toggleOnClick:!1,typeDelay:400,useTabKey:!1,useCommaKey:!0,useZebraStyle:!1,value:null,valueField:"id",vregex:null,vtype:null},w=n.extend({},i),r=n.extend(!0,{},p,w);this.addToSelection=function(t,i){if(!r.maxSelection||e.length<r.maxSelection){n.isArray(t)||(t=[t]);var o=!1;n.each(t,function(t,i){(r.allowDuplicates||n.inArray(i[r.valueField],u.getValue())===-1)&&(e.push(i),o=!0)});o===!0&&(f._renderSelection(),this.empty(),i!==!0&&n(this).trigger("selectionchange",[this,this.getSelection()]))}this.input.attr("placeholder",r.selectionPosition==="inner"&&this.getValue().length>0?"":r.placeholder)};this.clear=function(n){this.removeFromSelection(e.slice(0),n)};this.collapse=function(){r.expanded===!0&&(this.combobox.detach(),r.expanded=!1,n(this).trigger("collapse",[this]))};this.disable=function(){this.container.addClass("ms-ctn-disabled");r.disabled=!0;u.input.attr("disabled",!0)};this.empty=function(){this.input.val("")};this.enable=function(){this.container.removeClass("ms-ctn-disabled");r.disabled=!1;u.input.attr("disabled",!1)};this.expand=function(){!r.expanded&&(this.input.val().length>=r.minChars||this.combobox.children().length>0)&&(this.combobox.appendTo(this.container),f._processSuggestions(),r.expanded=!0,n(this).trigger("expand",[this]))};this.isDisabled=function(){return r.disabled};this.isValid=function(){var t=r.required===!1||e.length>0;return(r.vtype||r.vregex)&&n.each(e,function(n,i){t=t&&f._validateSingleItem(i[r.valueField])}),t};this.getDataUrlParams=function(){return r.dataUrlParams};this.getName=function(){return r.name};this.getSelection=function(){return e};this.getRawValue=function(){return u.input.val()};this.getValue=function(){return n.map(e,function(n){return n[r.valueField]})};this.removeFromSelection=function(t,i){n.isArray(t)||(t=[t]);var o=!1;n.each(t,function(t,i){var f=n.inArray(i[r.valueField],u.getValue());f>-1&&(e.splice(f,1),o=!0)});o===!0&&(f._renderSelection(),i!==!0&&n(this).trigger("selectionchange",[this,this.getSelection()]),r.expandOnFocus&&u.expand(),r.expanded&&f._processSuggestions());this.input.attr("placeholder",r.selectionPosition==="inner"&&this.getValue().length>0?"":r.placeholder)};this.getData=function(){return a};this.setData=function(n){r.data=n;f._processSuggestions()};this.setName=function(t){r.name=t;t&&(r.name+=t.indexOf("[]")>0?"":"[]");u._valueContainer&&n.each(u._valueContainer.children(),function(n,t){t.name=r.name})};this.setSelection=function(n){this.clear();this.addToSelection(n)};this.setValue=function(t){var i=[];n.each(t,function(t,u){var e=!1,f;n.each(a,function(n,t){if(t[r.valueField]==u)return i.push(t),e=!0,!1});e||(typeof u=="object"?i.push(u):(f={},f[r.valueField]=u,f[r.displayField]=u,i.push(f)))});i.length>0&&this.addToSelection(i)};this.setDataUrlParams=function(t){r.dataUrlParams=n.extend({},t)};var e=[],h=0,y,c=!1,l=null,a=[],v=!1,o={BACKSPACE:8,TAB:9,ENTER:13,CTRL:17,ESC:27,SPACE:32,UPARROW:38,DOWNARROW:40,COMMA:188},f={_displaySuggestions:function(t){var i,e,o,s,c,a;if(u.combobox.show(),u.combobox.empty(),i=0,e=0,l===null)f._renderComboItems(t),i=h*t.length;else{for(o in l)e+=1,n("<div/>",{"class":"ms-res-group",html:o}).appendTo(u.combobox),f._renderComboItems(l[o].items,!0);s=u.combobox.find(".ms-res-group").outerHeight();s!==null?(c=e*s,i=h*t.length+c):i=h*(t.length+e)}i<u.combobox.height()||i<=r.maxDropHeight?u.combobox.height(i):i>=u.combobox.height()&&i>r.maxDropHeight&&u.combobox.height(r.maxDropHeight);t.length===1&&r.autoSelect===!0&&u.combobox.children().filter(":not(.ms-res-item-disabled):last").addClass("ms-res-item-active");r.selectFirst===!0&&u.combobox.children().filter(":not(.ms-res-item-disabled):first").addClass("ms-res-item-active");t.length===0&&u.getRawValue()!==""&&(a=r.noSuggestionText.replace(/\{\{.*\}\}/,u.input.val()),f._updateHelper(a),u.collapse());r.allowFreeEntries===!1&&(t.length===0?(n(u.input).addClass(r.invalidCls),u.combobox.hide()):n(u.input).removeClass(r.invalidCls))},_getEntriesFromStringArray:function(t){var i=[];return n.each(t,function(t,u){var f={};f[r.displayField]=f[r.valueField]=n.trim(u);i.push(f)}),i},_highlightSuggestion:function(t){var i=u.input.val(),f;return(n.each(["^","$","*","+","?",".","(",")",":","!","|","{","}","[","]"],function(n,t){i=i.replace(t,"\\"+t)}),i.length===0)?t:(f=r.matchCase===!0?"g":"gi",t.replace(new RegExp("("+i+")(?!([^<]+)?>)",f),"<em>$1<\/em>"))},_moveSelectedRow:function(n){r.expanded||u.expand();var i,t,f,e;i=u.combobox.find(".ms-res-item:not(.ms-res-item-disabled)");t=n==="down"?i.eq(0):i.filter(":last");f=u.combobox.find(".ms-res-item-active:not(.ms-res-item-disabled):first");f.length>0&&(n==="down"?(t=f.nextAll(".ms-res-item:not(.ms-res-item-disabled)").first(),t.length===0&&(t=i.eq(0)),e=u.combobox.scrollTop(),u.combobox.scrollTop(0),t[0].offsetTop+t.outerHeight()>u.combobox.height()&&u.combobox.scrollTop(e+h)):(t=f.prevAll(".ms-res-item:not(.ms-res-item-disabled)").first(),t.length===0&&(t=i.filter(":last"),u.combobox.scrollTop(h*i.length)),t[0].offsetTop<u.combobox.scrollTop()&&u.combobox.scrollTop(u.combobox.scrollTop()-h)));i.removeClass("ms-res-item-active");t.addClass("ms-res-item-active")},_processSuggestions:function(t){var e=null,i=t||r.data,o,s,h;if(i!==null){if(typeof i=="function"&&(i=i.call(u,u.getRawValue())),typeof i=="string"){n(u).trigger("beforeload",[u]);o={};o[r.queryParam]=u.input.val();s=n.extend(o,r.dataUrlParams);n.ajax(n.extend({type:r.method,url:i,data:s,beforeSend:r.beforeSend,success:function(t){e=typeof t=="string"?JSON.parse(t):t;f._processSuggestions(e);n(u).trigger("load",[u,e]);f._asyncValues&&(u.setValue(typeof f._asyncValues=="string"?JSON.parse(f._asyncValues):f._asyncValues),f._renderSelection(),delete f._asyncValues)},error:function(){throw"Could not reach server";}},r.ajaxConfig));return}a=i.length>0&&typeof i[0]=="string"?f._getEntriesFromStringArray(i):i[r.resultsField]||i;h=r.mode==="remote"?a:f._sortAndTrim(a);f._displaySuggestions(f._group(h))}},_render:function(t){u.setName(r.name);u.container=n("<div/>",{"class":"ms-ctn form-control "+(r.resultAsString?"ms-as-string ":"")+r.cls+(n(t).hasClass("input-lg")?" input-lg":"")+(n(t).hasClass("input-sm")?" input-sm":"")+(r.disabled===!0?" ms-ctn-disabled":"")+(r.editable===!0?"":" ms-ctn-readonly")+(r.hideTrigger===!1?"":" ms-no-trigger"),style:r.style,id:r.id});u.container.focus(n.proxy(s._onFocus,this));u.container.blur(n.proxy(s._onBlur,this));u.container.keydown(n.proxy(s._onKeyDown,this));u.container.keyup(n.proxy(s._onKeyUp,this));u.input=n("<input/>",n.extend({type:"text","class":r.editable===!0?"":" ms-input-readonly",readonly:!r.editable,placeholder:r.placeholder,disabled:r.disabled},r.inputCfg));u.input.focus(n.proxy(s._onInputFocus,this));u.input.click(n.proxy(s._onInputClick,this));u.combobox=n("<div/>",{"class":"ms-res-ctn dropdown-menu"}).height(r.maxDropHeight);u.combobox.on("click","div.ms-res-item",n.proxy(s._onComboItemSelected,this));u.combobox.on("mouseover","div.ms-res-item",n.proxy(s._onComboItemMouseOver,this));if(r.selectionContainer?(u.selectionContainer=r.selectionContainer,n(u.selectionContainer).addClass("ms-sel-ctn")):u.selectionContainer=n("<div/>",{"class":"ms-sel-ctn"}),u.selectionContainer.click(n.proxy(s._onFocus,this)),r.selectionPosition!=="inner"||r.selectionContainer?u.container.append(u.input):u.selectionContainer.append(u.input),u.helper=n("<span/>",{"class":"ms-helper "+r.infoMsgCls}),f._updateHelper(),u.container.append(u.helper),n(t).replaceWith(u.container),!r.selectionContainer)switch(r.selectionPosition){case"bottom":u.selectionContainer.insertAfter(u.container);r.selectionStacked===!0&&(u.selectionContainer.width(u.container.width()),u.selectionContainer.addClass("ms-stacked"));break;case"right":u.selectionContainer.insertAfter(u.container);u.container.css("float","left");break;default:u.container.append(u.selectionContainer)}r.hideTrigger===!1&&(u.trigger=n("<div/>",{"class":"ms-trigger",html:'<div class="ms-trigger-ico"><\/div>'}),u.trigger.click(n.proxy(s._onTriggerClick,this)),u.container.append(u.trigger));n(window).resize(n.proxy(s._onWindowResized,this));(r.value!==null||r.data!==null)&&(typeof r.data=="string"?(f._asyncValues=r.value,f._processSuggestions()):(f._processSuggestions(),r.value!==null&&(u.setValue(r.value),f._renderSelection())));n("body").click(function(n){u.container.hasClass("ms-ctn-focus")&&u.container.has(n.target).length===0&&n.target.className.indexOf("ms-res-item")<0&&n.target.className.indexOf("ms-close-btn")<0&&u.container[0]!==n.target&&s._onBlur()});r.expanded===!0&&(r.expanded=!1,u.expand())},_renderComboItems:function(t,i){var o=this,e="";n.each(t,function(t,u){var s=r.renderer!==null?r.renderer.call(o,u):u[r.displayField],h=r.disabledField!==null&&u[r.disabledField]===!0,c=n("<div/>",{"class":"ms-res-item "+(i?"ms-res-item-grouped ":"")+(h?"ms-res-item-disabled ":"")+(t%2==1&&r.useZebraStyle===!0?"ms-res-odd":""),html:r.highlight===!0?f._highlightSuggestion(s):s,"data-json":JSON.stringify(u)});e+=n("<div/>").append(c).html()});u.combobox.append(e);h=u.combobox.find(".ms-res-item:first").outerHeight()},_renderSelection:function(){var t=this,i=0,o=0,h=[],l=r.resultAsString===!0&&!c;u.selectionContainer.find(".ms-sel-item").remove();u._valueContainer!==undefined&&u._valueContainer.remove();n.each(e,function(i,u){var o,c,a=r.selectionRenderer!==null?r.selectionRenderer.call(t,u):u[r.displayField],v=f._validateSingleItem(u[r.displayField])?"":" ms-sel-invalid";l===!0?o=n("<div/>",{"class":"ms-sel-item ms-sel-text "+r.selectionCls+v,html:a+(i===e.length-1?"":r.resultAsStringDelimiter)}).data("json",u):(o=n("<div/>",{"class":"ms-sel-item "+r.selectionCls+v,html:a}).data("json",u),r.disabled===!1&&(c=n("<span/>",{"class":"ms-close-btn"}).data("json",u).appendTo(o),c.click(n.proxy(s._onTagTriggerClick,t))));h.push(o)});u.selectionContainer.prepend(h);u._valueContainer=n("<div/>",{style:"display: none;"});n.each(u.getValue(),function(t,i){var f=n("<input/>",{type:"hidden",name:r.name,value:i});f.appendTo(u._valueContainer)});u._valueContainer.appendTo(u.selectionContainer);r.selectionPosition!=="inner"||r.selectionContainer||(u.input.width(0),o=u.input.offset().left-u.selectionContainer.offset().left,i=u.container.width()-o-42,u.input.width(i));e.length===r.maxSelection?f._updateHelper(r.maxSelectionRenderer.call(this,e.length)):u.helper.hide()},_selectItem:function(n){r.maxSelection===1&&(e=[]);u.addToSelection(n.data("json"));n.removeClass("ms-res-item-active");(r.expandOnFocus===!1||e.length===r.maxSelection)&&u.collapse();c?c&&(r.expandOnFocus||v)&&(f._processSuggestions(),v&&u.expand()):u.input.focus()},_sortAndTrim:function(t){var f=u.getRawValue(),e=[],i=[],o=u.getValue();return f.length>0?n.each(t,function(n,t){var i=t[r.displayField];(r.matchCase===!0&&i.indexOf(f)>-1||r.matchCase===!1&&i.toLowerCase().indexOf(f.toLowerCase())>-1)&&(r.strictSuggest===!1||i.toLowerCase().indexOf(f.toLowerCase())===0)&&e.push(t)}):e=t,n.each(e,function(t,u){(r.allowDuplicates||n.inArray(u[r.valueField],o)===-1)&&i.push(u)}),r.sortOrder!==null&&i.sort(function(n,t){return n[r.sortOrder]<t[r.sortOrder]?r.sortDir==="asc"?-1:1:n[r.sortOrder]>t[r.sortOrder]?r.sortDir==="asc"?1:-1:0}),r.maxSuggestions&&r.maxSuggestions>0&&(i=i.slice(0,r.maxSuggestions)),i},_group:function(t){return r.groupBy!==null&&(l={},n.each(t,function(n,t){var u=r.groupBy.indexOf(".")>-1?r.groupBy.split("."):r.groupBy,i=t[r.groupBy];if(typeof u!="string")for(i=t;u.length>0;)i=i[u.shift()];l[i]===undefined?l[i]={title:i,items:[t]}:l[i].items.push(t)})),t},_updateHelper:function(n){u.helper.html(n);u.helper.is(":visible")||u.helper.fadeIn()},_validateSingleItem:function(n){if(r.vregex!==null&&r.vregex instanceof RegExp)return r.vregex.test(n);if(r.vtype!==null)switch(r.vtype){case"alpha":return/^[a-zA-Z_]+$/.test(n);case"alphanum":return/^[a-zA-Z0-9_]+$/.test(n);case"email":return/^(\w+)([\-+.][\w]+)*@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/.test(n);case"url":return/(((^https?)|(^ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i.test(n);case"ipaddress":return/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n)}return!0}},s={_onBlur:function(){if(u.container.removeClass("ms-ctn-focus"),u.collapse(),c=!1,u.getRawValue()!==""&&r.allowFreeEntries===!0){var t={};t[r.displayField]=t[r.valueField]=u.getRawValue().trim();u.addToSelection(t)}f._renderSelection();u.isValid()===!1?u.container.addClass(r.invalidCls):u.input.val()!==""&&r.allowFreeEntries===!1&&(u.empty(),f._updateHelper(""));n(u).trigger("blur",[u])},_onComboItemMouseOver:function(t){var i=n(t.currentTarget);i.hasClass("ms-res-item-disabled")||(u.combobox.children().removeClass("ms-res-item-active"),i.addClass("ms-res-item-active"))},_onComboItemSelected:function(t){var i=n(t.currentTarget);i.hasClass("ms-res-item-disabled")||f._selectItem(n(t.currentTarget))},_onFocus:function(){u.input.focus()},_onInputClick:function(){u.isDisabled()===!1&&c&&r.toggleOnClick===!0&&(r.expanded?u.collapse():u.expand())},_onInputFocus:function(){if(u.isDisabled()===!1&&!c){c=!0;u.container.addClass("ms-ctn-focus");u.container.removeClass(r.invalidCls);var t=u.getRawValue().length;r.expandOnFocus===!0&&u.expand();e.length===r.maxSelection?f._updateHelper(r.maxSelectionRenderer.call(this,e.length)):t<r.minChars&&f._updateHelper(r.minCharsRenderer.call(this,r.minChars-t));f._renderSelection();n(u).trigger("focus",[u])}},_onKeyDown:function(t){var h=u.combobox.find(".ms-res-item-active:not(.ms-res-item-disabled):first"),i=u.input.val();if(n(u).trigger("keydown",[u,t]),t.keyCode===o.TAB&&(r.useTabKey===!1||r.useTabKey===!0&&h.length===0&&u.input.val().length===0)){s._onBlur();return}switch(t.keyCode){case o.BACKSPACE:i.length===0&&u.getSelection().length>0&&r.selectionPosition==="inner"&&(e.pop(),f._renderSelection(),n(u).trigger("selectionchange",[u,u.getSelection()]),u.input.attr("placeholder",r.selectionPosition==="inner"&&u.getValue().length>0?"":r.placeholder),u.input.focus(),t.preventDefault());break;case o.TAB:case o.ESC:t.preventDefault();break;case o.ENTER:(i!==""||r.expanded)&&t.preventDefault();break;case o.COMMA:r.useCommaKey===!0&&t.preventDefault();break;case o.CTRL:v=!0;break;case o.DOWNARROW:t.preventDefault();f._moveSelectedRow("down");break;case o.UPARROW:t.preventDefault();f._moveSelectedRow("up");break;default:e.length===r.maxSelection&&t.preventDefault()}},_onKeyUp:function(t){var i=u.getRawValue(),c=n.trim(u.input.val()).length>0&&(!r.maxEntryLength||n.trim(u.input.val()).length<=r.maxEntryLength),s,h={};if(n(u).trigger("keyup",[u,t]),clearTimeout(y),t.keyCode===o.ESC&&r.expanded&&u.combobox.hide(),t.keyCode===o.TAB&&r.useTabKey===!1||t.keyCode>o.ENTER&&t.keyCode<o.SPACE){t.keyCode===o.CTRL&&(v=!1);return}switch(t.keyCode){case o.UPARROW:case o.DOWNARROW:t.preventDefault();break;case o.ENTER:case o.TAB:case o.COMMA:if(t.keyCode!==o.COMMA||r.useCommaKey===!0){if(t.preventDefault(),r.expanded===!0&&(s=u.combobox.find(".ms-res-item-active:not(.ms-res-item-disabled):first"),s.length>0)){f._selectItem(s);return}c===!0&&r.allowFreeEntries===!0&&(h[r.displayField]=h[r.valueField]=i.trim(),u.addToSelection(h),u.collapse(),u.input.focus());break}default:e.length===r.maxSelection?f._updateHelper(r.maxSelectionRenderer.call(this,e.length)):i.length<r.minChars?(f._updateHelper(r.minCharsRenderer.call(this,r.minChars-i.length)),r.expanded===!0&&u.collapse()):r.maxEntryLength&&i.length>r.maxEntryLength?(f._updateHelper(r.maxEntryRenderer.call(this,i.length-r.maxEntryLength)),r.expanded===!0&&u.collapse()):(u.helper.hide(),r.minChars<=i.length&&(y=setTimeout(function(){r.expanded===!0?f._processSuggestions():u.expand()},r.typeDelay)))}},_onTagTriggerClick:function(t){u.removeFromSelection(n(t.currentTarget).data("json"))},_onTriggerClick:function(){if(u.isDisabled()===!1&&!(r.expandOnFocus===!0&&e.length===r.maxSelection))if(n(u).trigger("triggerclick",[u]),r.expanded===!0)u.collapse();else{var t=u.getRawValue().length;t>=r.minChars?(u.input.focus(),u.expand()):f._updateHelper(r.minCharsRenderer.call(this,r.minChars-t))}},_onWindowResized:function(){f._renderSelection()}};t!==null&&f._render(t)};n.fn.magicSuggest=function(i){var r=n(this);return r.length===1&&r.data("magicSuggest")?r.data("magicSuggest"):(r.each(function(){var f=n(this),u,r;f.data("magicSuggest")||(this.nodeName.toLowerCase()==="select"&&(i.data=[],i.value=[],n.each(this.children,function(t,r){r.nodeName&&r.nodeName.toLowerCase()==="option"&&(i.data.push({id:r.value,name:r.text}),n(r).attr("selected")&&i.value.push(r.value))})),u={},n.each(this.attributes,function(n,t){u[t.name]=t.name==="value"&&t.value!==""?JSON.parse(t.value):t.value}),r=new t(this,n.extend([],n.fn.magicSuggest.defaults,i,u)),f.data("magicSuggest",r),r.container.data("magicSuggest",r))}),r.length===1)?r.data("magicSuggest"):r};n.fn.magicSuggest.defaults={}}(jQuery)