portfolios_lea-jean/public/js/academia.min.e40e230d9b3dfeac86994156b6388764.js
2022-02-02 16:09:48 +01:00

8 lines
64 KiB
JavaScript

/* Source Themes academia v4.3.1 | https://sourcethemes.com/academic/ */
;
/*!
* Bootstrap v4.3.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],b):b((a=a||self).bootstrap={},a.jQuery,a.Popper)}(this,function(j,a,o){"use strict";var af,b,W,ar,aD,cU,aC,cT,cS,cR,G,J,ao,az,ay,cG,H,cE,cD,aS,bK,cB,cA,aV,aX,K,x,I,f,aY,cj,aF,ci,aj,ai,ch,cg,g,bX,t,bW,bV,bU,bR,bQ,bN,bM,aI,bJ,bB,bA,bz,bt,bm,be,D,E,r,M,bg,aB,bl,L,s,O,at,aw,bc,bs,bD,a$,R,F,T,n,av,cJ,cN,e,am,h,bf,da,c_,aM,cY,al,cM,aE,cI,cC,cz,cu,cs,cr,cp,cn,cl,bZ,p,B,Q,i,br,aA,bk,c,bh,bi,bj,aJ,z,ag,bn,bo,bp,bq,bd,bb,Y,bu,bv,bw,bx,v,ad,l,bC,ba,bE,bF,bG,bH,bI,aa,aH,bL,ab,_,bO,bP,Z,aG,bS,bT,q,C,ah,k,bY,a_,b_,b$,ca,cb,cc,cd,ce,cf,ae,w,ak,ap,ck,aZ,cm,ax,co,u,cq,aW,au,ct,aU,cv,cw,cx,cy,aT,P,ac,S,db,X,cF,V,cH,aR,aQ,cK,cL,aP,aO,cO,cP,cQ,N,A,an,U,cV,y,cX,aN,$,aL,c$,aK,cW,aq;function cZ(d,c){for(var b=0,a;b<c.length;b++)a=c[b],a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}function m(a,b,c){return b&&cZ(a.prototype,b),c&&cZ(a,c),a}function d(d){for(var a=1,b,c;a<arguments.length;a++)b=null!=arguments[a]?arguments[a]:{},c=Object.keys(b),"function"==typeof Object.getOwnPropertySymbols&&(c=c.concat(Object.getOwnPropertySymbols(b).filter(function(a){return Object.getOwnPropertyDescriptor(b,a).enumerable}))),c.forEach(function(f){var a,c,e;a=d,e=b[c=f],c in a?Object.defineProperty(a,c,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[c]=e});return d}a=a&&a.hasOwnProperty("default")?a.default:a,o=o&&o.hasOwnProperty("default")?o.default:o,af="transitionend";function dc(d){var e=this,c=!1;return a(this).one(b.TRANSITION_END,function(){c=!0}),setTimeout(function(){c||b.triggerTransitionEnd(e)},d),this}b={TRANSITION_END:"bsTransitionEnd",getUID:function(a){for(;a+=~~(1e6*Math.random()),document.getElementById(a););return a},getSelectorFromElement:function(c){var a=c.getAttribute("data-target"),b;(!a||"#"===a)&&(b=c.getAttribute("href"),a=b&&"#"!==b?b.trim():"");try{return document.querySelector(a)?a:null}catch(a){return null}},getTransitionDurationFromElement:function(d){if(!d)return 0;var b=a(d).css("transition-duration"),c=a(d).css("transition-delay"),e=parseFloat(b),f=parseFloat(c);return e||f?(b=b.split(",")[0],c=c.split(",")[0],1e3*(parseFloat(b)+parseFloat(c))):0},reflow:function(a){return a.offsetHeight},triggerTransitionEnd:function(b){a(b).trigger(af)},supportsTransitionEnd:function(){return Boolean(af)},isElement:function(a){return(a[0]||a).nodeType},typeCheckConfig:function(h,i,f){var a,g,c,d,e;for(a in f)if(Object.prototype.hasOwnProperty.call(f,a))if(g=f[a],c=i[a],d=c&&b.isElement(c)?"element":(e=c,{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()),!new RegExp(g).test(d))throw new Error(h.toUpperCase()+': Option "'+a+'" provided type "'+d+'" but expected type "'+g+'".')},findShadowRoot:function(a){if(!document.documentElement.attachShadow)return null;if("function"!=typeof a.getRootNode)return a instanceof ShadowRoot?a:a.parentNode?b.findShadowRoot(a.parentNode):null;var c=a.getRootNode();return c instanceof ShadowRoot?c:null}},a.fn.emulateTransitionEnd=dc,a.event.special[b.TRANSITION_END]={bindType:af,delegateType:af,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}},W="alert",ar="bs.alert",aD="."+ar,cU=a.fn[W],aC={CLOSE:"close"+aD,CLOSED:"closed"+aD,CLICK_DATA_API:"click"+aD+".data-api"},cT="alert",cS="fade",cR="show",G=function(){function c(a){this._element=a}var d=c.prototype;return d.close=function(b){var a=this._element;b&&(a=this._getRootElement(b)),this._triggerCloseEvent(a).isDefaultPrevented()||this._removeElement(a)},d.dispose=function(){a.removeData(this._element,ar),this._element=null},d._getRootElement=function(d){var e=b.getSelectorFromElement(d),c=!1;return e&&(c=document.querySelector(e)),c||(c=a(d).closest("."+cT)[0]),c},d._triggerCloseEvent=function(c){var b=a.Event(aC.CLOSE);return a(c).trigger(b),b},d._removeElement=function(c){var d=this,e;a(c).removeClass(cR),a(c).hasClass(cS)?(e=b.getTransitionDurationFromElement(c),a(c).one(b.TRANSITION_END,function(a){return d._destroyElement(c,a)}).emulateTransitionEnd(e)):this._destroyElement(c)},d._destroyElement=function(b){a(b).detach().trigger(aC.CLOSED).remove()},c._jQueryInterface=function(b){return this.each(function(){var e=a(this),d=e.data(ar);d||(d=new c(this),e.data(ar,d)),"close"===b&&d[b](this)})},c._handleDismiss=function(a){return function(b){b&&b.preventDefault(),a.close(this)}},m(c,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),c}(),a(document).on(aC.CLICK_DATA_API,'[data-dismiss="alert"]',G._handleDismiss(new G)),a.fn[W]=G._jQueryInterface,a.fn[W].Constructor=G,a.fn[W].noConflict=function(){return a.fn[W]=cU,G._jQueryInterface},J="button",ao="bs.button",az="."+ao,ay=".data-api",cG=a.fn[J],H="active",cE="btn",cD="focus",aS='[data-toggle^="button"]',bK='[data-toggle="buttons"]',cB='input:not([type="hidden"])',cA=".active",aV=".btn",aX={CLICK_DATA_API:"click"+az+ay,FOCUS_BLUR_DATA_API:"focus"+az+ay+" blur"+az+ay},K=function(){function b(a){this._element=a}var c=b.prototype;return c.toggle=function(){var d=!0,e=!0,c=a(this._element).closest(bK)[0],b,f;if(c)if(b=this._element.querySelector(cB),b){if("radio"===b.type&&(b.checked&&this._element.classList.contains(H)?d=!1:(f=c.querySelector(cA),f&&a(f).removeClass(H))),d){if(b.hasAttribute("disabled")||c.hasAttribute("disabled")||b.classList.contains("disabled")||c.classList.contains("disabled"))return;b.checked=!this._element.classList.contains(H),a(b).trigger("change")}b.focus(),e=!1}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(H)),d&&a(this._element).toggleClass(H)},c.dispose=function(){a.removeData(this._element,ao),this._element=null},b._jQueryInterface=function(c){return this.each(function(){var d=a(this).data(ao);d||(d=new b(this),a(this).data(ao,d)),"toggle"===c&&d[c]()})},m(b,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),b}(),a(document).on(aX.CLICK_DATA_API,aS,function(c){c.preventDefault();var b=c.target;a(b).hasClass(cE)||(b=a(b).closest(aV)),K._jQueryInterface.call(a(b),"toggle")}).on(aX.FOCUS_BLUR_DATA_API,aS,function(b){var c=a(b.target).closest(aV)[0];a(c).toggleClass(cD,/^focus(in)?$/.test(b.type))}),a.fn[J]=K._jQueryInterface,a.fn[J].Constructor=K,a.fn[J].noConflict=function(){return a.fn[J]=cG,K._jQueryInterface},x="carousel",I="bs.carousel",f="."+I,aY=".data-api",cj=a.fn[x],aF={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ci={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},aj="next",ai="prev",ch="left",cg="right",g={SLIDE:"slide"+f,SLID:"slid"+f,KEYDOWN:"keydown"+f,MOUSEENTER:"mouseenter"+f,MOUSELEAVE:"mouseleave"+f,TOUCHSTART:"touchstart"+f,TOUCHMOVE:"touchmove"+f,TOUCHEND:"touchend"+f,POINTERDOWN:"pointerdown"+f,POINTERUP:"pointerup"+f,DRAG_START:"dragstart"+f,LOAD_DATA_API:"load"+f+aY,CLICK_DATA_API:"click"+f+aY},bX="carousel",t="active",bW="slide",bV="carousel-item-right",bU="carousel-item-left",bR="carousel-item-next",bQ="carousel-item-prev",bN="pointer-event",bM=".active",aI=".active.carousel-item",bJ=".carousel-item",bB=".carousel-item img",bA=".carousel-item-next, .carousel-item-prev",bz=".carousel-indicators",bt="[data-slide], [data-slide-to]",bm='[data-ride="carousel"]',be={TOUCH:"touch",PEN:"pen"},D=function(){function e(a,b){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(b),this._element=a,this._indicatorsElement=this._element.querySelector(bz),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var c=e.prototype;return c.next=function(){this._isSliding||this._slide(aj)},c.nextWhenVisible=function(){!document.hidden&&a(this._element).is(":visible")&&"hidden"!==a(this._element).css("visibility")&&this.next()},c.prev=function(){this._isSliding||this._slide(ai)},c.pause=function(a){a||(this._isPaused=!0),this._element.querySelector(bA)&&(b.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},c.cycle=function(a){a||(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))},c.to=function(b){var d=this,c,e;if(this._activeElement=this._element.querySelector(aI),c=this._getItemIndex(this._activeElement),!(b>this._items.length-1||b<0))if(this._isSliding)a(this._element).one(g.SLID,function(){return d.to(b)});else{if(c===b)return this.pause(),void this.cycle();e=c<b?aj:ai,this._slide(e,this._items[b])}},c.dispose=function(){a(this._element).off(f),a.removeData(this._element,I),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},c._getConfig=function(a){return a=d({},aF,a),b.typeCheckConfig(x,a,ci),a},c._handleSwipe=function(){var a=Math.abs(this.touchDeltaX),b;a<=40||(b=a/this.touchDeltaX,0<b&&this.prev(),b<0&&this.next())},c._addEventListeners=function(){var b=this;this._config.keyboard&&a(this._element).on(g.KEYDOWN,function(a){return b._keydown(a)}),"hover"===this._config.pause&&a(this._element).on(g.MOUSEENTER,function(a){return b.pause(a)}).on(g.MOUSELEAVE,function(a){return b.cycle(a)}),this._config.touch&&this._addTouchEventListeners()},c._addTouchEventListeners=function(){var b=this,c,d;this._touchSupported&&(c=function(a){b._pointerEvent&&be[a.originalEvent.pointerType.toUpperCase()]?b.touchStartX=a.originalEvent.clientX:b._pointerEvent||(b.touchStartX=a.originalEvent.touches[0].clientX)},d=function(a){b._pointerEvent&&be[a.originalEvent.pointerType.toUpperCase()]&&(b.touchDeltaX=a.originalEvent.clientX-b.touchStartX),b._handleSwipe(),"hover"===b._config.pause&&(b.pause(),b.touchTimeout&&clearTimeout(b.touchTimeout),b.touchTimeout=setTimeout(function(a){return b.cycle(a)},500+b._config.interval))},a(this._element.querySelectorAll(bB)).on(g.DRAG_START,function(a){return a.preventDefault()}),this._pointerEvent?(a(this._element).on(g.POINTERDOWN,function(a){return c(a)}),a(this._element).on(g.POINTERUP,function(a){return d(a)}),this._element.classList.add(bN)):(a(this._element).on(g.TOUCHSTART,function(a){return c(a)}),a(this._element).on(g.TOUCHMOVE,function(c){var a;(a=c).originalEvent.touches&&1<a.originalEvent.touches.length?b.touchDeltaX=0:b.touchDeltaX=a.originalEvent.touches[0].clientX-b.touchStartX}),a(this._element).on(g.TOUCHEND,function(a){return d(a)})))},c._keydown=function(a){if(!/input|textarea/i.test(a.target.tagName))switch(a.which){case 37:a.preventDefault(),this.prev();break;case 39:a.preventDefault(),this.next()}},c._getItemIndex=function(a){return this._items=a&&a.parentNode?[].slice.call(a.parentNode.querySelectorAll(bJ)):[],this._items.indexOf(a)},c._getItemByDirection=function(a,c){var e=a===aj,f=a===ai,b=this._getItemIndex(c),g=this._items.length-1,d;return(f&&0===b||e&&b===g)&&!this._config.wrap?c:(d=(b+(a===ai?-1:1))%this._items.length,-1===d?this._items[this._items.length-1]:this._items[d])},c._triggerSlideEvent=function(b,d){var e=this._getItemIndex(b),f=this._getItemIndex(this._element.querySelector(aI)),c=a.Event(g.SLIDE,{relatedTarget:b,direction:d,from:f,to:e});return a(this._element).trigger(c),c},c._setActiveIndicatorElement=function(d){var c,b;this._indicatorsElement&&(c=[].slice.call(this._indicatorsElement.querySelectorAll(bM)),a(c).removeClass(t),b=this._indicatorsElement.children[this._getItemIndex(d)],b&&a(b).addClass(t))},c._slide=function(l,p){var e,f,h,j=this,d=this._element.querySelector(aI),n=this._getItemIndex(d),c=p||d&&this._getItemByDirection(l,d),o=this._getItemIndex(c),k=Boolean(this._interval),m,i,q;h=l===aj?(e=bU,f=bR,ch):(e=bV,f=bQ,cg),c&&a(c).hasClass(t)?this._isSliding=!1:!this._triggerSlideEvent(c,h).isDefaultPrevented()&&d&&c&&(this._isSliding=!0,k&&this.pause(),this._setActiveIndicatorElement(c),m=a.Event(g.SLID,{relatedTarget:c,direction:h,from:n,to:o}),a(this._element).hasClass(bW)?(a(c).addClass(f),b.reflow(c),a(d).addClass(e),a(c).addClass(e),i=parseInt(c.getAttribute("data-interval"),10),this._config.interval=i?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,i):this._config.defaultInterval||this._config.interval,q=b.getTransitionDurationFromElement(d),a(d).one(b.TRANSITION_END,function(){a(c).removeClass(e+" "+f).addClass(t),a(d).removeClass(t+" "+f+" "+e),j._isSliding=!1,setTimeout(function(){return a(j._element).trigger(m)},0)}).emulateTransitionEnd(q)):(a(d).removeClass(t),a(c).addClass(t),this._isSliding=!1,a(this._element).trigger(m)),k&&this.cycle())},e._jQueryInterface=function(b){return this.each(function(){var c=a(this).data(I),f=d({},aF,a(this).data()),g;if("object"==typeof b&&(f=d({},f,b)),g="string"==typeof b?b:f.slide,c||(c=new e(this,f),a(this).data(I,c)),"number"==typeof b)c.to(b);else if("string"==typeof g){if("undefined"==typeof c[g])throw new TypeError('No method named "'+g+'"');c[g]()}else f.interval&&f.ride&&(c.pause(),c.cycle())})},e._dataApiClickHandler=function(i){var g=b.getSelectorFromElement(this),c,h,f;g&&(c=a(g)[0],c&&a(c).hasClass(bX)&&(h=d({},a(c).data(),a(this).data()),f=this.getAttribute("data-slide-to"),f&&(h.interval=!1),e._jQueryInterface.call(a(c),h),f&&a(c).data(I).to(f),i.preventDefault()))},m(e,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return aF}}]),e}(),a(document).on(g.CLICK_DATA_API,bt,D._dataApiClickHandler),a(window).on(g.LOAD_DATA_API,function(){for(var c=[].slice.call(document.querySelectorAll(bm)),b=0,e=c.length,d;b<e;b++)d=a(c[b]),D._jQueryInterface.call(d,d.data())}),a.fn[x]=D._jQueryInterface,a.fn[x].Constructor=D,a.fn[x].noConflict=function(){return a.fn[x]=cj,D._jQueryInterface},E="collapse",r="bs.collapse",M="."+r,bg=a.fn[E],aB={toggle:!0,parent:""},bl={toggle:"boolean",parent:"(string|element)"},L={SHOW:"show"+M,SHOWN:"shown"+M,HIDE:"hide"+M,HIDDEN:"hidden"+M,CLICK_DATA_API:"click"+M+".data-api"},s="show",O="collapse",at="collapsing",aw="collapsed",bc="width",bs="height",bD=".show, .collapsing",a$='[data-toggle="collapse"]',R=function(){function e(a,i){var e,c,h,f,d,g;this._isTransitioning=!1,this._element=a,this._config=this._getConfig(i),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+a.id+'"],[data-toggle="collapse"][data-target="#'+a.id+'"]'));for(e=[].slice.call(document.querySelectorAll(a$)),c=0,h=e.length;c<h;c++)f=e[c],d=b.getSelectorFromElement(f),g=[].slice.call(document.querySelectorAll(d)).filter(function(b){return b===a}),null!==d&&0<g.length&&(this._selector=d,this._triggerArray.push(f));this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var c=e.prototype;return c.toggle=function(){a(this._element).hasClass(s)?this.hide():this.show()},c.show=function(){var c,g,d=this,h,f,i,j;!this._isTransitioning&&!a(this._element).hasClass(s)&&(this._parent&&0===(c=[].slice.call(this._parent.querySelectorAll(bD)).filter(function(a){return"string"==typeof d._config.parent?a.getAttribute("data-parent")===d._config.parent:a.classList.contains(O)})).length&&(c=null),!(c&&(g=a(c).not(this._selector).data(r))&&g._isTransitioning))&&(h=a.Event(L.SHOW),(a(this._element).trigger(h),!h.isDefaultPrevented())&&(c&&(e._jQueryInterface.call(a(c).not(this._selector),"hide"),g||a(c).data(r,null)),f=this._getDimension(),a(this._element).removeClass(O).addClass(at),this._element.style[f]=0,this._triggerArray.length&&a(this._triggerArray).removeClass(aw).attr("aria-expanded",!0),this.setTransitioning(!0),i="scroll"+(f[0].toUpperCase()+f.slice(1)),j=b.getTransitionDurationFromElement(this._element),a(this._element).one(b.TRANSITION_END,function(){a(d._element).removeClass(at).addClass(O).addClass(s),d._element.style[f]="",d.setTransitioning(!1),a(d._element).trigger(L.SHOWN)}).emulateTransitionEnd(j),this._element.style[f]=this._element[i]+"px"))},c.hide=function(){var e=this,f,c,g,d,h,i,j;if(!this._isTransitioning&&a(this._element).hasClass(s))if(f=a.Event(L.HIDE),a(this._element).trigger(f),!f.isDefaultPrevented()){if(c=this._getDimension(),this._element.style[c]=this._element.getBoundingClientRect()[c]+"px",b.reflow(this._element),a(this._element).addClass(at).removeClass(O).removeClass(s),g=this._triggerArray.length,0<g)for(d=0;d<g;d++)h=this._triggerArray[d],i=b.getSelectorFromElement(h),null!==i&&(a([].slice.call(document.querySelectorAll(i))).hasClass(s)||a(h).addClass(aw).attr("aria-expanded",!1));this.setTransitioning(!0),this._element.style[c]="",j=b.getTransitionDurationFromElement(this._element),a(this._element).one(b.TRANSITION_END,function(){e.setTransitioning(!1),a(e._element).removeClass(at).addClass(O).trigger(L.HIDDEN)}).emulateTransitionEnd(j)}},c.setTransitioning=function(a){this._isTransitioning=a},c.dispose=function(){a.removeData(this._element,r),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},c._getConfig=function(a){return(a=d({},aB,a)).toggle=Boolean(a.toggle),b.typeCheckConfig(E,a,bl),a},c._getDimension=function(){return a(this._element).hasClass(bc)?bc:bs},c._getParent=function(){var c,d=this,f,g;return b.isElement(this._config.parent)?(c=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(c=this._config.parent[0])):c=document.querySelector(this._config.parent),f='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',g=[].slice.call(c.querySelectorAll(f)),a(g).each(function(b,a){d._addAriaAndCollapsedClass(e._getTargetFromElement(a),[a])}),c},c._addAriaAndCollapsedClass=function(d,b){var c=a(d).hasClass(s);b.length&&a(b).toggleClass(aw,!c).attr("aria-expanded",c)},e._getTargetFromElement=function(c){var a=b.getSelectorFromElement(c);return a?document.querySelector(a):null},e._jQueryInterface=function(b){return this.each(function(){var f=a(this),c=f.data(r),g=d({},aB,f.data(),"object"==typeof b&&b?b:{});if(!c&&g.toggle&&/show|hide/.test(b)&&(g.toggle=!1),c||(c=new e(this,g),f.data(r,c)),"string"==typeof b){if("undefined"==typeof c[b])throw new TypeError('No method named "'+b+'"');c[b]()}})},m(e,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return aB}}]),e}(),a(document).on(L.CLICK_DATA_API,a$,function(c){"A"===c.currentTarget.tagName&&c.preventDefault();var d=a(this),e=b.getSelectorFromElement(this),f=[].slice.call(document.querySelectorAll(e));a(f).each(function(){var b=a(this),c=b.data(r)?"toggle":d.data();R._jQueryInterface.call(b,c)})}),a.fn[E]=R._jQueryInterface,a.fn[E].Constructor=R,a.fn[E].noConflict=function(){return a.fn[E]=bg,R._jQueryInterface},F="dropdown",T="bs.dropdown",n="."+T,av=".data-api",cJ=a.fn[F],cN=new RegExp("38|40|27"),e={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,CLICK:"click"+n,CLICK_DATA_API:"click"+n+av,KEYDOWN_DATA_API:"keydown"+n+av,KEYUP_DATA_API:"keyup"+n+av},am="disabled",h="show",bf="dropup",da="dropright",c_="dropleft",aM="dropdown-menu-right",cY="position-static",al='[data-toggle="dropdown"]',cM=".dropdown form",aE=".dropdown-menu",cI=".navbar-nav",cC=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",cz="top-start",cu="top-end",cs="bottom-start",cr="bottom-end",cp="right-start",cn="left-start",cl={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},bZ={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},p=function(){function c(a,b){this._element=a,this._popper=null,this._config=this._getConfig(b),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var f=c.prototype;return f.toggle=function(){var d,j,g,i,f;if(!this._element.disabled&&!a(this._element).hasClass(am))if(d=c._getParentFromElement(this._element),j=a(this._menu).hasClass(h),c._clearMenus(),!j)if(g={relatedTarget:this._element},i=a.Event(e.SHOW,g),a(d).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof o)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");f=this._element,"parent"===this._config.reference?f=d:b.isElement(this._config.reference)&&(f=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(f=this._config.reference[0])),"scrollParent"!==this._config.boundary&&a(d).addClass(cY),this._popper=new o(f,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===a(d).closest(cI).length&&a(document.body).children().on("mouseover",null,a.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),a(this._menu).toggleClass(h),a(d).toggleClass(h).trigger(a.Event(e.SHOWN,g))}},f.show=function(){if(!(this._element.disabled||a(this._element).hasClass(am)||a(this._menu).hasClass(h))){var b={relatedTarget:this._element},d=a.Event(e.SHOW,b),f=c._getParentFromElement(this._element);a(f).trigger(d),d.isDefaultPrevented()||(a(this._menu).toggleClass(h),a(f).toggleClass(h).trigger(a.Event(e.SHOWN,b)))}},f.hide=function(){if(!this._element.disabled&&!a(this._element).hasClass(am)&&a(this._menu).hasClass(h)){var b={relatedTarget:this._element},d=a.Event(e.HIDE,b),f=c._getParentFromElement(this._element);a(f).trigger(d),d.isDefaultPrevented()||(a(this._menu).toggleClass(h),a(f).toggleClass(h).trigger(a.Event(e.HIDDEN,b)))}},f.dispose=function(){a.removeData(this._element,T),a(this._element).off(n),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},f.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},f._addEventListeners=function(){var b=this;a(this._element).on(e.CLICK,function(a){a.preventDefault(),a.stopPropagation(),b.toggle()})},f._getConfig=function(c){return c=d({},this.constructor.Default,a(this._element).data(),c),b.typeCheckConfig(F,c,this.constructor.DefaultType),c},f._getMenuElement=function(){if(!this._menu){var a=c._getParentFromElement(this._element);a&&(this._menu=a.querySelector(aE))}return this._menu},f._getPlacement=function(){var c=a(this._element.parentNode),b=cs;return c.hasClass(bf)?(b=cz,a(this._menu).hasClass(aM)&&(b=cu)):c.hasClass(da)?b=cp:c.hasClass(c_)?b=cn:a(this._menu).hasClass(aM)&&(b=cr),b},f._detectNavbar=function(){return 0<a(this._element).closest(".navbar").length},f._getOffset=function(){var b=this,a={};return"function"==typeof this._config.offset?a.fn=function(a){return a.offsets=d({},a.offsets,b._config.offset(a.offsets,b._element)||{}),a}:a.offset=this._config.offset,a},f._getPopperConfig=function(){var a={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(a.modifiers.applyStyle={enabled:!1}),a},c._jQueryInterface=function(b){return this.each(function(){var d=a(this).data(T);if(d||(d=new c(this,"object"==typeof b?b:null),a(this).data(T,d)),"string"==typeof b){if("undefined"==typeof d[b])throw new TypeError('No method named "'+b+'"');d[b]()}})},c._clearMenus=function(b){var f,d,l,g,j,i,m,k;if(!b||3!==b.which&&("keyup"!==b.type||9===b.which))for(f=[].slice.call(document.querySelectorAll(al)),d=0,l=f.length;d<l;d++)g=c._getParentFromElement(f[d]),j=a(f[d]).data(T),i={relatedTarget:f[d]},(b&&"click"===b.type&&(i.clickEvent=b),j)&&(m=j._menu,a(g).hasClass(h)&&!(b&&("click"===b.type&&/input|textarea/i.test(b.target.tagName)||"keyup"===b.type&&9===b.which)&&a.contains(g,b.target))&&(k=a.Event(e.HIDE,i),a(g).trigger(k),k.isDefaultPrevented()||("ontouchstart"in document.documentElement&&a(document.body).children().off("mouseover",null,a.noop),f[d].setAttribute("aria-expanded","false"),a(m).removeClass(h),a(g).removeClass(h).trigger(a.Event(e.HIDDEN,i)))))},c._getParentFromElement=function(a){var c,d=b.getSelectorFromElement(a);return d&&(c=document.querySelector(d)),c||a.parentNode},c._dataApiKeydownHandler=function(b){var f,g,e,d,i;(/input|textarea/i.test(b.target.tagName)?!(32===b.which||27!==b.which&&(40!==b.which&&38!==b.which||a(b.target).closest(aE).length)):cN.test(b.which))&&(b.preventDefault(),b.stopPropagation(),!this.disabled&&!a(this).hasClass(am))&&(f=c._getParentFromElement(this),g=a(f).hasClass(h),g&&(!g||27!==b.which&&32!==b.which)?(e=[].slice.call(f.querySelectorAll(cC)),0!==e.length&&(d=e.indexOf(b.target),38===b.which&&0<d&&d--,40===b.which&&d<e.length-1&&d++,d<0&&(d=0),e[d].focus())):(27===b.which&&(i=f.querySelector(al),a(i).trigger("focus")),a(this).trigger("click")))},m(c,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return cl}},{key:"DefaultType",get:function(){return bZ}}]),c}(),a(document).on(e.KEYDOWN_DATA_API,al,p._dataApiKeydownHandler).on(e.KEYDOWN_DATA_API,aE,p._dataApiKeydownHandler).on(e.CLICK_DATA_API+" "+e.KEYUP_DATA_API,p._clearMenus).on(e.CLICK_DATA_API,al,function(b){b.preventDefault(),b.stopPropagation(),p._jQueryInterface.call(a(this),"toggle")}).on(e.CLICK_DATA_API,cM,function(a){a.stopPropagation()}),a.fn[F]=p._jQueryInterface,a.fn[F].Constructor=p,a.fn[F].noConflict=function(){return a.fn[F]=cJ,p._jQueryInterface},B="modal",Q="bs.modal",i="."+Q,br=a.fn[B],aA={backdrop:!0,keyboard:!0,focus:!0,show:!0},bk={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},c={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,FOCUSIN:"focusin"+i,RESIZE:"resize"+i,CLICK_DISMISS:"click.dismiss"+i,KEYDOWN_DISMISS:"keydown.dismiss"+i,MOUSEUP_DISMISS:"mouseup.dismiss"+i,MOUSEDOWN_DISMISS:"mousedown.dismiss"+i,CLICK_DATA_API:"click"+i+".data-api"},bh="modal-dialog-scrollable",bi="modal-scrollbar-measure",bj="modal-backdrop",aJ="modal-open",z="fade",ag="show",bn=".modal-dialog",bo=".modal-body",bp='[data-toggle="modal"]',bq='[data-dismiss="modal"]',bd=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",bb=".sticky-top",Y=function(){function f(a,b){this._config=this._getConfig(b),this._element=a,this._dialog=a.querySelector(bn),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=f.prototype;return e.toggle=function(a){return this._isShown?this.hide():this.show(a)},e.show=function(d){var b=this,e;!this._isShown&&!this._isTransitioning&&(a(this._element).hasClass(z)&&(this._isTransitioning=!0),e=a.Event(c.SHOW,{relatedTarget:d}),a(this._element).trigger(e),this._isShown||e.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),a(this._element).on(c.CLICK_DISMISS,bq,function(a){return b.hide(a)}),a(this._dialog).on(c.MOUSEDOWN_DISMISS,function(){a(b._element).one(c.MOUSEUP_DISMISS,function(c){a(c.target).is(b._element)&&(b._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return b._showElement(d)})))},e.hide=function(d){var g=this,e,f,h;d&&d.preventDefault(),this._isShown&&!this._isTransitioning&&(e=a.Event(c.HIDE),(a(this._element).trigger(e),this._isShown&&!e.isDefaultPrevented())&&(this._isShown=!1,f=a(this._element).hasClass(z),(f&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),a(document).off(c.FOCUSIN),a(this._element).removeClass(ag),a(this._element).off(c.CLICK_DISMISS),a(this._dialog).off(c.MOUSEDOWN_DISMISS),f)?(h=b.getTransitionDurationFromElement(this._element),a(this._element).one(b.TRANSITION_END,function(a){return g._hideModal(a)}).emulateTransitionEnd(h)):this._hideModal()))},e.dispose=function(){[window,this._element,this._dialog].forEach(function(b){return a(b).off(i)}),a(document).off(c.FOCUSIN),a.removeData(this._element,Q),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(a){return a=d({},aA,a),b.typeCheckConfig(B,a,bk),a},e._showElement=function(g){var d=this,e=a(this._element).hasClass(z),h,f,i;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),a(this._dialog).hasClass(bh)?this._dialog.querySelector(bo).scrollTop=0:this._element.scrollTop=0,e&&b.reflow(this._element),a(this._element).addClass(ag),this._config.focus&&this._enforceFocus(),h=a.Event(c.SHOWN,{relatedTarget:g}),f=function(){d._config.focus&&d._element.focus(),d._isTransitioning=!1,a(d._element).trigger(h)},e?(i=b.getTransitionDurationFromElement(this._dialog),a(this._dialog).one(b.TRANSITION_END,f).emulateTransitionEnd(i)):f()},e._enforceFocus=function(){var b=this;a(document).off(c.FOCUSIN).on(c.FOCUSIN,function(c){document!==c.target&&b._element!==c.target&&0===a(b._element).has(c.target).length&&b._element.focus()})},e._setEscapeEvent=function(){var b=this;this._isShown&&this._config.keyboard?a(this._element).on(c.KEYDOWN_DISMISS,function(a){27===a.which&&(a.preventDefault(),b.hide())}):this._isShown||a(this._element).off(c.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var b=this;this._isShown?a(window).on(c.RESIZE,function(a){return b.handleUpdate(a)}):a(window).off(c.RESIZE)},e._hideModal=function(){var b=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){a(document.body).removeClass(aJ),b._resetAdjustments(),b._resetScrollbar(),a(b._element).trigger(c.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(a(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(d){var e=this,f=a(this._element).hasClass(z)?z:"",h,g,i;if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=bj,f&&this._backdrop.classList.add(f),a(this._backdrop).appendTo(document.body),a(this._element).on(c.CLICK_DISMISS,function(a){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:a.target===a.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),f&&b.reflow(this._backdrop),a(this._backdrop).addClass(ag),!d)return;if(!f)return void d();h=b.getTransitionDurationFromElement(this._backdrop),a(this._backdrop).one(b.TRANSITION_END,d).emulateTransitionEnd(h)}else!this._isShown&&this._backdrop?(a(this._backdrop).removeClass(ag),g=function(){e._removeBackdrop(),d&&d()},a(this._element).hasClass(z)?(i=b.getTransitionDurationFromElement(this._backdrop),a(this._backdrop).one(b.TRANSITION_END,g).emulateTransitionEnd(i)):g()):d&&d()},e._adjustDialog=function(){var a=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&a&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!a&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var a=document.body.getBoundingClientRect();this._isBodyOverflowing=a.left+a.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var b=this,c,d,e,f;this._isBodyOverflowing&&(c=[].slice.call(document.querySelectorAll(bd)),d=[].slice.call(document.querySelectorAll(bb)),a(c).each(function(f,c){var d=c.style.paddingRight,e=a(c).css("padding-right");a(c).data("padding-right",d).css("padding-right",parseFloat(e)+b._scrollbarWidth+"px")}),a(d).each(function(f,c){var d=c.style.marginRight,e=a(c).css("margin-right");a(c).data("margin-right",d).css("margin-right",parseFloat(e)-b._scrollbarWidth+"px")}),e=document.body.style.paddingRight,f=a(document.body).css("padding-right"),a(document.body).data("padding-right",e).css("padding-right",parseFloat(f)+this._scrollbarWidth+"px")),a(document.body).addClass(aJ)},e._resetScrollbar=function(){var b=[].slice.call(document.querySelectorAll(bd)),c,d;a(b).each(function(d,b){var c=a(b).data("padding-right");a(b).removeData("padding-right"),b.style.paddingRight=c||""}),c=[].slice.call(document.querySelectorAll(""+bb)),a(c).each(function(d,b){var c=a(b).data("margin-right");"undefined"!=typeof c&&a(b).css("margin-right",c).removeData("margin-right")}),d=a(document.body).data("padding-right"),a(document.body).removeData("padding-right"),document.body.style.paddingRight=d||""},e._getScrollbarWidth=function(){var a=document.createElement("div"),b;return a.className=bi,document.body.appendChild(a),b=a.getBoundingClientRect().width-a.clientWidth,document.body.removeChild(a),b},f._jQueryInterface=function(b,c){return this.each(function(){var e=a(this).data(Q),g=d({},aA,a(this).data(),"object"==typeof b&&b?b:{});if(e||(e=new f(this,g),a(this).data(Q,e)),"string"==typeof b){if("undefined"==typeof e[b])throw new TypeError('No method named "'+b+'"');e[b](c)}else g.show&&e.show(c)})},m(f,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return aA}}]),f}(),a(document).on(c.CLICK_DATA_API,bp,function(h){var e,f=this,g=b.getSelectorFromElement(this),i,j;g&&(e=document.querySelector(g)),i=a(e).data(Q)?"toggle":d({},a(e).data(),a(this).data()),"A"!==this.tagName&&"AREA"!==this.tagName||h.preventDefault(),j=a(e).one(c.SHOW,function(b){b.isDefaultPrevented()||j.one(c.HIDDEN,function(){a(f).is(":visible")&&f.focus()})}),Y._jQueryInterface.call(a(e),i,this)}),a.fn[B]=Y._jQueryInterface,a.fn[B].Constructor=Y,a.fn[B].noConflict=function(){return a.fn[B]=br,Y._jQueryInterface},bu=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],bv={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},bw=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,bx=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function by(a,b,c){if(0===a.length)return a;if(c&&"function"==typeof c)return c(a);for(var e=(new window.DOMParser).parseFromString(a,"text/html"),g=Object.keys(b),f=[].slice.call(e.body.querySelectorAll("*")),h=function(c,i){var a=f[c],d=a.nodeName.toLowerCase(),e,h;if(-1===g.indexOf(a.nodeName.toLowerCase()))return a.parentNode.removeChild(a),"continue";e=[].slice.call(a.attributes),h=[].concat(b["*"]||[],b[d]||[]),e.forEach(function(b){(function(a,d){var b=a.nodeName.toLowerCase(),e,c,f;if(-1!==d.indexOf(b))return-1===bu.indexOf(b)||Boolean(a.nodeValue.match(bw)||a.nodeValue.match(bx));for(e=d.filter(function(a){return a instanceof RegExp}),c=0,f=e.length;c<f;c++)if(b.match(e[c]))return!0;return!1})(b,h)||a.removeAttribute(b.nodeName)})},d=0,i=f.length;d<i;d++)h(d);return e.body.innerHTML}v="tooltip",ad="bs.tooltip",l="."+ad,bC=a.fn[v],ba="bs-tooltip",bE=new RegExp("(^|\\s)"+ba+"\\S+","g"),bF=["sanitize","whiteList","sanitizeFn"],bG={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},bH={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},bI={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:bv},aa="show",aH="out",bL={HIDE:"hide"+l,HIDDEN:"hidden"+l,SHOW:"show"+l,SHOWN:"shown"+l,INSERTED:"inserted"+l,CLICK:"click"+l,FOCUSIN:"focusin"+l,FOCUSOUT:"focusout"+l,MOUSEENTER:"mouseenter"+l,MOUSELEAVE:"mouseleave"+l},ab="fade",_="show",bO=".tooltip-inner",bP=".arrow",Z="hover",aG="focus",bS="click",bT="manual",q=function(){function e(a,b){if("undefined"==typeof o)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=a,this.config=this._getConfig(b),this.tip=null,this._setListeners()}var c=e.prototype;return c.enable=function(){this._isEnabled=!0},c.disable=function(){this._isEnabled=!1},c.toggleEnabled=function(){this._isEnabled=!this._isEnabled},c.toggle=function(c){if(this._isEnabled)if(c){var d=this.constructor.DATA_KEY,b=a(c.currentTarget).data(d);b||(b=new this.constructor(c.currentTarget,this._getDelegateConfig()),a(c.currentTarget).data(d,b)),b._activeTrigger.click=!b._activeTrigger.click,b._isWithActiveTrigger()?b._enter(null,b):b._leave(null,b)}else{if(a(this.getTipElement()).hasClass(_))return void this._leave(null,this);this._enter(null,this)}},c.dispose=function(){clearTimeout(this._timeout),a.removeData(this.element,this.constructor.DATA_KEY),a(this.element).off(this.constructor.EVENT_KEY),a(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&a(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},c.show=function(){var c=this,e,f,l,d,h,j,i,k,g,m;if("none"===a(this.element).css("display"))throw new Error("Please use show on visible elements");if(e=a.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(a(this.element).trigger(e),f=b.findShadowRoot(this.element),l=a.contains(null!==f?f:this.element.ownerDocument.documentElement,this.element),e.isDefaultPrevented()||!l)return;d=this.getTipElement(),h=b.getUID(this.constructor.NAME),d.setAttribute("id",h),this.element.setAttribute("aria-describedby",h),this.setContent(),this.config.animation&&a(d).addClass(ab),j="function"==typeof this.config.placement?this.config.placement.call(this,d,this.element):this.config.placement,i=this._getAttachment(j),this.addAttachmentClass(i),k=this._getContainer(),a(d).data(this.constructor.DATA_KEY,this),a.contains(this.element.ownerDocument.documentElement,this.tip)||a(d).appendTo(k),a(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o(this.element,d,{placement:i,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:bP},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(a){a.originalPlacement!==a.placement&&c._handlePopperPlacementChange(a)},onUpdate:function(a){return c._handlePopperPlacementChange(a)}}),a(d).addClass(_),"ontouchstart"in document.documentElement&&a(document.body).children().on("mouseover",null,a.noop),g=function(){c.config.animation&&c._fixTransition();var b=c._hoverState;c._hoverState=null,a(c.element).trigger(c.constructor.Event.SHOWN),b===aH&&c._leave(null,c)},a(this.tip).hasClass(ab)?(m=b.getTransitionDurationFromElement(this.tip),a(this.tip).one(b.TRANSITION_END,g).emulateTransitionEnd(m)):g()}},c.hide=function(e){var c=this,d=this.getTipElement(),f=a.Event(this.constructor.Event.HIDE),g=function(){c._hoverState!==aa&&d.parentNode&&d.parentNode.removeChild(d),c._cleanTipClass(),c.element.removeAttribute("aria-describedby"),a(c.element).trigger(c.constructor.Event.HIDDEN),null!==c._popper&&c._popper.destroy(),e&&e()},h;a(this.element).trigger(f),!f.isDefaultPrevented()&&(a(d).removeClass(_),"ontouchstart"in document.documentElement&&a(document.body).children().off("mouseover",null,a.noop),this._activeTrigger[bS]=!1,this._activeTrigger[aG]=!1,this._activeTrigger[Z]=!1,a(this.tip).hasClass(ab)?(h=b.getTransitionDurationFromElement(d),a(d).one(b.TRANSITION_END,g).emulateTransitionEnd(h)):g(),this._hoverState="")},c.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},c.isWithContent=function(){return Boolean(this.getTitle())},c.addAttachmentClass=function(b){a(this.getTipElement()).addClass(ba+"-"+b)},c.getTipElement=function(){return this.tip=this.tip||a(this.config.template)[0],this.tip},c.setContent=function(){var b=this.getTipElement();this.setElementContent(a(b.querySelectorAll(bO)),this.getTitle()),a(b).removeClass(ab+" "+_)},c.setElementContent=function(c,b){"object"!=typeof b||!b.nodeType&&!b.jquery?this.config.html?(this.config.sanitize&&(b=by(b,this.config.whiteList,this.config.sanitizeFn)),c.html(b)):c.text(b):this.config.html?a(b).parent().is(c)||c.empty().append(b):c.text(a(b).text())},c.getTitle=function(){var a=this.element.getAttribute("data-original-title");return a||(a="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),a},c._getOffset=function(){var b=this,a={};return"function"==typeof this.config.offset?a.fn=function(a){return a.offsets=d({},a.offsets,b.config.offset(a.offsets,b.element)||{}),a}:a.offset=this.config.offset,a},c._getContainer=function(){return!1===this.config.container?document.body:b.isElement(this.config.container)?a(this.config.container):a(document).find(this.config.container)},c._getAttachment=function(a){return bH[a.toUpperCase()]},c._setListeners=function(){var b=this;this.config.trigger.split(" ").forEach(function(c){if("click"===c)a(b.element).on(b.constructor.Event.CLICK,b.config.selector,function(a){return b.toggle(a)});else if(c!==bT){var d=c===Z?b.constructor.Event.MOUSEENTER:b.constructor.Event.FOCUSIN,e=c===Z?b.constructor.Event.MOUSELEAVE:b.constructor.Event.FOCUSOUT;a(b.element).on(d,b.config.selector,function(a){return b._enter(a)}).on(e,b.config.selector,function(a){return b._leave(a)})}}),a(this.element).closest(".modal").on("hide.bs.modal",function(){b.element&&b.hide()}),this.config.selector?this.config=d({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},c._fixTitle=function(){var a=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==a)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},c._enter=function(c,b){var d=this.constructor.DATA_KEY;(b=b||a(c.currentTarget).data(d))||(b=new this.constructor(c.currentTarget,this._getDelegateConfig()),a(c.currentTarget).data(d,b)),c&&(b._activeTrigger["focusin"===c.type?aG:Z]=!0),a(b.getTipElement()).hasClass(_)||b._hoverState===aa?b._hoverState=aa:(clearTimeout(b._timeout),b._hoverState=aa,b.config.delay&&b.config.delay.show?b._timeout=setTimeout(function(){b._hoverState===aa&&b.show()},b.config.delay.show):b.show())},c._leave=function(c,b){var d=this.constructor.DATA_KEY;(b=b||a(c.currentTarget).data(d))||(b=new this.constructor(c.currentTarget,this._getDelegateConfig()),a(c.currentTarget).data(d,b)),c&&(b._activeTrigger["focusout"===c.type?aG:Z]=!1),b._isWithActiveTrigger()||(clearTimeout(b._timeout),b._hoverState=aH,b.config.delay&&b.config.delay.hide?b._timeout=setTimeout(function(){b._hoverState===aH&&b.hide()},b.config.delay.hide):b.hide())},c._isWithActiveTrigger=function(){for(var a in this._activeTrigger)if(this._activeTrigger[a])return!0;return!1},c._getConfig=function(c){var e=a(this.element).data();return Object.keys(e).forEach(function(a){-1!==bF.indexOf(a)&&delete e[a]}),"number"==typeof(c=d({},this.constructor.Default,e,"object"==typeof c&&c?c:{})).delay&&(c.delay={show:c.delay,hide:c.delay}),"number"==typeof c.title&&(c.title=c.title.toString()),"number"==typeof c.content&&(c.content=c.content.toString()),b.typeCheckConfig(v,c,this.constructor.DefaultType),c.sanitize&&(c.template=by(c.template,c.whiteList,c.sanitizeFn)),c},c._getDelegateConfig=function(){var b={},a;if(this.config)for(a in this.config)this.constructor.Default[a]!==this.config[a]&&(b[a]=this.config[a]);return b},c._cleanTipClass=function(){var c=a(this.getTipElement()),b=c.attr("class").match(bE);null!==b&&b.length&&c.removeClass(b.join(""))},c._handlePopperPlacementChange=function(a){var b=a.instance;this.tip=b.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(a.placement))},c._fixTransition=function(){var b=this.getTipElement(),c=this.config.animation;null===b.getAttribute("x-placement")&&(a(b).removeClass(ab),this.config.animation=!1,this.hide(),this.show(),this.config.animation=c)},e._jQueryInterface=function(b){return this.each(function(){var c=a(this).data(ad),d="object"==typeof b&&b;if((c||!/dispose|hide/.test(b))&&(c||(c=new e(this,d),a(this).data(ad,c)),"string"==typeof b)){if("undefined"==typeof c[b])throw new TypeError('No method named "'+b+'"');c[b]()}})},m(e,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return bI}},{key:"NAME",get:function(){return v}},{key:"DATA_KEY",get:function(){return ad}},{key:"Event",get:function(){return bL}},{key:"EVENT_KEY",get:function(){return l}},{key:"DefaultType",get:function(){return bG}}]),e}(),a.fn[v]=q._jQueryInterface,a.fn[v].Constructor=q,a.fn[v].noConflict=function(){return a.fn[v]=bC,q._jQueryInterface},C="popover",ah="bs.popover",k="."+ah,bY=a.fn[C],a_="bs-popover",b_=new RegExp("(^|\\s)"+a_+"\\S+","g"),b$=d({},q.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>'}),ca=d({},q.DefaultType,{content:"(string|element|function)"}),cb="fade",cc="show",cd=".popover-header",ce=".popover-body",cf={HIDE:"hide"+k,HIDDEN:"hidden"+k,SHOW:"show"+k,SHOWN:"shown"+k,INSERTED:"inserted"+k,CLICK:"click"+k,FOCUSIN:"focusin"+k,FOCUSOUT:"focusout"+k,MOUSEENTER:"mouseenter"+k,MOUSELEAVE:"mouseleave"+k},ae=function(f){var d,e,c;function b(){return f.apply(this,arguments)||this}return e=f,(d=b).prototype=Object.create(e.prototype),(d.prototype.constructor=d).__proto__=e,c=b.prototype,c.isWithContent=function(){return this.getTitle()||this._getContent()},c.addAttachmentClass=function(b){a(this.getTipElement()).addClass(a_+"-"+b)},c.getTipElement=function(){return this.tip=this.tip||a(this.config.template)[0],this.tip},c.setContent=function(){var c=a(this.getTipElement()),b;this.setElementContent(c.find(cd),this.getTitle()),b=this._getContent(),"function"==typeof b&&(b=b.call(this.element)),this.setElementContent(c.find(ce),b),c.removeClass(cb+" "+cc)},c._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},c._cleanTipClass=function(){var c=a(this.getTipElement()),b=c.attr("class").match(b_);null!==b&&0<b.length&&c.removeClass(b.join(""))},b._jQueryInterface=function(c){return this.each(function(){var d=a(this).data(ah),e="object"==typeof c?c:null;if((d||!/dispose|hide/.test(c))&&(d||(d=new b(this,e),a(this).data(ah,d)),"string"==typeof c)){if("undefined"==typeof d[c])throw new TypeError('No method named "'+c+'"');d[c]()}})},m(b,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return b$}},{key:"NAME",get:function(){return C}},{key:"DATA_KEY",get:function(){return ah}},{key:"Event",get:function(){return cf}},{key:"EVENT_KEY",get:function(){return k}},{key:"DefaultType",get:function(){return ca}}]),b}(q),a.fn[C]=ae._jQueryInterface,a.fn[C].Constructor=ae,a.fn[C].noConflict=function(){return a.fn[C]=bY,ae._jQueryInterface},w="scrollspy",ak="bs.scrollspy",ap="."+ak,ck=a.fn[w],aZ={offset:10,method:"auto",target:""},cm={offset:"number",method:"string",target:"(string|element)"},ax={ACTIVATE:"activate"+ap,SCROLL:"scroll"+ap,LOAD_DATA_API:"load"+ap+".data-api"},co="dropdown-item",u="active",cq='[data-spy="scroll"]',aW=".nav, .list-group",au=".nav-link",ct=".nav-item",aU=".list-group-item",cv=".dropdown",cw=".dropdown-item",cx=".dropdown-toggle",cy="offset",aT="position",P=function(){function e(b,c){var d=this;this._element=b,this._scrollElement="BODY"===b.tagName?window:b,this._config=this._getConfig(c),this._selector=this._config.target+" "+au+","+this._config.target+" "+aU+","+this._config.target+" "+cw,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,a(this._scrollElement).on(ax.SCROLL,function(a){return d._process(a)}),this.refresh(),this._process()}var c=e.prototype;return c.refresh=function(){var c=this,e=this._scrollElement===this._scrollElement.window?cy:aT,d="auto"===this._config.method?e:this._config.method,f=d===aT?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(h){var c,e=b.getSelectorFromElement(h),g;if(e&&(c=document.querySelector(e)),c)if(g=c.getBoundingClientRect(),g.width||g.height)return[a(c)[d]().top+f,e];return null}).filter(function(a){return a}).sort(function(a,b){return a[0]-b[0]}).forEach(function(a){c._offsets.push(a[0]),c._targets.push(a[1])})},c.dispose=function(){a.removeData(this._element,ak),a(this._scrollElement).off(ap),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},c._getConfig=function(c){if("string"!=typeof(c=d({},aZ,"object"==typeof c&&c?c:{})).target){var e=a(c.target).attr("id");e||(e=b.getUID(w),a(c.target).attr("id",e)),c.target="#"+e}return b.typeCheckConfig(w,c,cm),c},c._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},c._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},c._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},c._process=function(){var b=this._getScrollTop()+this._config.offset,c=this._getScrollHeight(),e=this._config.offset+c-this._getOffsetHeight(),d,a;if(this._scrollHeight!==c&&this.refresh(),e<=b)d=this._targets[this._targets.length-1],this._activeTarget!==d&&this._activate(d);else{if(this._activeTarget&&b<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(a=this._offsets.length;a--;)this._activeTarget!==this._targets[a]&&b>=this._offsets[a]&&("undefined"==typeof this._offsets[a+1]||b<this._offsets[a+1])&&this._activate(this._targets[a])}},c._activate=function(c){this._activeTarget=c,this._clear();var d=this._selector.split(",").map(function(a){return a+'[data-target="'+c+'"],'+a+'[href="'+c+'"]'}),b=a([].slice.call(document.querySelectorAll(d.join(","))));b.hasClass(co)?(b.closest(cv).find(cx).addClass(u),b.addClass(u)):(b.addClass(u),b.parents(aW).prev(au+", "+aU).addClass(u),b.parents(aW).prev(ct).children(au).addClass(u)),a(this._scrollElement).trigger(ax.ACTIVATE,{relatedTarget:c})},c._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(a){return a.classList.contains(u)}).forEach(function(a){return a.classList.remove(u)})},e._jQueryInterface=function(b){return this.each(function(){var c=a(this).data(ak);if(c||(c=new e(this,"object"==typeof b&&b),a(this).data(ak,c)),"string"==typeof b){if("undefined"==typeof c[b])throw new TypeError('No method named "'+b+'"');c[b]()}})},m(e,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return aZ}}]),e}(),a(window).on(ax.LOAD_DATA_API,function(){for(var b=[].slice.call(document.querySelectorAll(cq)),c=b.length,d;c--;)d=a(b[c]),P._jQueryInterface.call(d,d.data())}),a.fn[w]=P._jQueryInterface,a.fn[w].Constructor=P,a.fn[w].noConflict=function(){return a.fn[w]=ck,P._jQueryInterface},ac="bs.tab",S="."+ac,db=a.fn.tab,X={HIDE:"hide"+S,HIDDEN:"hidden"+S,SHOW:"show"+S,SHOWN:"shown"+S,CLICK_DATA_API:"click"+S+".data-api"},cF="dropdown-menu",V="active",cH="disabled",aR="fade",aQ="show",cK=".dropdown",cL=".nav, .list-group",aP=".active",aO="> li > .active",cO='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',cP=".dropdown-toggle",cQ="> .dropdown-menu .active",N=function(){function c(a){this._element=a}var d=c.prototype;return d.show=function(){var f=this,e,c,d,g,k,h,i,j;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&a(this._element).hasClass(V)||a(this._element).hasClass(cH)||(d=a(this._element).closest(cL)[0],g=b.getSelectorFromElement(this._element),d&&(k="UL"===d.nodeName||"OL"===d.nodeName?aO:aP,c=(c=a.makeArray(a(d).find(k)))[c.length-1]),h=a.Event(X.HIDE,{relatedTarget:this._element}),i=a.Event(X.SHOW,{relatedTarget:c}),(c&&a(c).trigger(h),a(this._element).trigger(i),!i.isDefaultPrevented()&&!h.isDefaultPrevented())&&(g&&(e=document.querySelector(g)),this._activate(this._element,d),j=function(){var b=a.Event(X.HIDDEN,{relatedTarget:f._element}),d=a.Event(X.SHOWN,{relatedTarget:c});a(c).trigger(b),a(f._element).trigger(d)},e?this._activate(e,e.parentNode,j):j()))},d.dispose=function(){a.removeData(this._element,ac),this._element=null},d._activate=function(i,d,f){var g=this,c=(!d||"UL"!==d.nodeName&&"OL"!==d.nodeName?a(d).children(aP):a(d).find(aO))[0],h=f&&c&&a(c).hasClass(aR),e=function(){return g._transitionComplete(i,c,f)},j;c&&h?(j=b.getTransitionDurationFromElement(c),a(c).removeClass(aQ).one(b.TRANSITION_END,e).emulateTransitionEnd(j)):e()},d._transitionComplete=function(c,d,g){var e,f,h;d&&(a(d).removeClass(V),e=a(d.parentNode).find(cQ)[0],e&&a(e).removeClass(V),"tab"===d.getAttribute("role")&&d.setAttribute("aria-selected",!1)),(a(c).addClass(V),"tab"===c.getAttribute("role")&&c.setAttribute("aria-selected",!0),b.reflow(c),c.classList.contains(aR)&&c.classList.add(aQ),c.parentNode&&a(c.parentNode).hasClass(cF))&&(f=a(c).closest(cK)[0],f&&(h=[].slice.call(f.querySelectorAll(cP)),a(h).addClass(V)),c.setAttribute("aria-expanded",!0)),g&&g()},c._jQueryInterface=function(b){return this.each(function(){var e=a(this),d=e.data(ac);if(d||(d=new c(this),e.data(ac,d)),"string"==typeof b){if("undefined"==typeof d[b])throw new TypeError('No method named "'+b+'"');d[b]()}})},m(c,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),c}(),a(document).on(X.CLICK_DATA_API,cO,function(b){b.preventDefault(),N._jQueryInterface.call(a(this),"show")}),a.fn.tab=N._jQueryInterface,a.fn.tab.Constructor=N,a.fn.tab.noConflict=function(){return a.fn.tab=db,N._jQueryInterface},A="toast",an="bs.toast",U="."+an,cV=a.fn[A],y={CLICK_DISMISS:"click.dismiss"+U,HIDE:"hide"+U,HIDDEN:"hidden"+U,SHOW:"show"+U,SHOWN:"shown"+U},cX="fade",aN="hide",$="show",aL="showing",c$={animation:"boolean",autohide:"boolean",delay:"number"},aK={animation:!0,autohide:!0,delay:500},cW='[data-dismiss="toast"]',aq=function(){function e(a,b){this._element=a,this._config=this._getConfig(b),this._timeout=null,this._setListeners()}var c=e.prototype;return c.show=function(){var c=this,d,e;a(this._element).trigger(y.SHOW),this._config.animation&&this._element.classList.add(cX),d=function(){c._element.classList.remove(aL),c._element.classList.add($),a(c._element).trigger(y.SHOWN),c._config.autohide&&c.hide()},(this._element.classList.remove(aN),this._element.classList.add(aL),this._config.animation)?(e=b.getTransitionDurationFromElement(this._element),a(this._element).one(b.TRANSITION_END,d).emulateTransitionEnd(e)):d()},c.hide=function(b){var c=this;this._element.classList.contains($)&&(a(this._element).trigger(y.HIDE),b?this._close():this._timeout=setTimeout(function(){c._close()},this._config.delay))},c.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains($)&&this._element.classList.remove($),a(this._element).off(y.CLICK_DISMISS),a.removeData(this._element,an),this._element=null,this._config=null},c._getConfig=function(c){return c=d({},aK,a(this._element).data(),"object"==typeof c&&c?c:{}),b.typeCheckConfig(A,c,this.constructor.DefaultType),c},c._setListeners=function(){var b=this;a(this._element).on(y.CLICK_DISMISS,cW,function(){return b.hide(!0)})},c._close=function(){var c=this,d=function(){c._element.classList.add(aN),a(c._element).trigger(y.HIDDEN)},e;this._element.classList.remove($),this._config.animation?(e=b.getTransitionDurationFromElement(this._element),a(this._element).one(b.TRANSITION_END,d).emulateTransitionEnd(e)):d()},e._jQueryInterface=function(b){return this.each(function(){var d=a(this),c=d.data(an);if(c||(c=new e(this,"object"==typeof b&&b),d.data(an,c)),"string"==typeof b){if("undefined"==typeof c[b])throw new TypeError('No method named "'+b+'"');c[b](this)}})},m(e,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return c$}},{key:"Default",get:function(){return aK}}]),e}(),a.fn[A]=aq._jQueryInterface,a.fn[A].Constructor=aq,a.fn[A].noConflict=function(){return a.fn[A]=cV,aq._jQueryInterface},function(){if("undefined"==typeof a)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1===b[0]&&9===b[1]&&b[2]<1||4<=b[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),j.Util=b,j.Alert=G,j.Button=K,j.Carousel=D,j.Collapse=R,j.Dropdown=p,j.Modal=Y,j.Popover=ae,j.Scrollspy=P,j.Tab=N,j.Toast=aq,j.Tooltip=q,Object.defineProperty(j,"__esModule",{value:!0})}),function(a){let k=a('.navbar'),c=k.innerHeight();function f(b){b=typeof b=='undefined'||typeof b=='object'?window.location.hash:b,b=b.replace(/:/g,'\\:'),a(b).length&&(a('body').addClass('scrolling'),a('html, body').animate({scrollTop:a(b).offset().top-c},600,function(){a('body').removeClass('scrolling')}))}function n(){let b=a('body'),d=b.data('bs.scrollspy');d&&(d._config.offset=c,b.data('bs.scrollspy',d),b.scrollspy('refresh'))}function j(){if(window.history.pushState){let a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.hash;window.history.pushState({path:a},'',a)}}window.addEventListener("hashchange",f);var r=a('html, body');a('nav a, .page-scroll').on('click',function(){if(location.pathname.replace(/^\//,'')===this.pathname.replace(/^\//,'')&&location.hostname===this.hostname){var b=a(this.hash);if(b=b.length?b:a('[name="'+this.hash.slice(1)+'"]'),b.length)return r.animate({scrollTop:b.offset().top-c},1500,'easeInOutExpo'),!1}}),jQuery.extend(jQuery.easing,{easeInOutExpo:function(e,a,b,c,d){return a===0?b:a===d?b+c:(a/=d/2)<1?c/2*Math.pow(2,10*(a-1))+b:c/2*(-Math.pow(2,-10*--a)+2)+b}}),a(document).on('click','.navbar-collapse.show',function(b){let c=a(b.target).is('a')?a(b.target):a(b.target).parent();c.is('a')&&c.attr('class')!='dropdown-toggle'&&a(this).collapse('hide')});let b={},h,d,e=a('#container-publications');e.isotope({itemSelector:'.isotope-item',percentPosition:!0,masonry:{columnWidth:'.grid-sizer'},filter:function(){let b=a(this),c=!h||b.text().match(h),e=!d||b.is(d);return c&&e}});let l=a('.filter-search').keyup(m(function(){h=new RegExp(l.val(),'gi'),e.isotope()}));function m(c,a){let b;return a=a||100,function(){clearTimeout(b);let d=arguments,e=this;function f(){c.apply(e,d)}b=setTimeout(f,a)}}function i(a){let b='';for(let c in a)b+=a[c];return b}a('.pub-filters').on('change',function(){let f=a(this),c=f[0].getAttribute('data-filter-group');if(b[c]=this.value,d=i(b),e.isotope(),c=="pubtype"){let b=a(this).val();b.substr(0,9)=='.pubtype-'?window.location.hash=b.substr(9):window.location.hash=''}});function o(){let c=window.location.hash.replace('#',''),f='*';c!=''&&!isNaN(c)&&(f='.pubtype-'+c);let g='pubtype';b[g]=f,d=i(b),e.isotope(),a('.pubtype-select').val(f)}function p(){if(a('#map').length){let f=a('#map-provider').val(),b=a('#map-lat').val(),c=a('#map-lng').val(),d=parseInt(a('#map-zoom').val()),e=a('#map-dir').val(),g=a('#map-api-key').val();if(f==1){let a=new GMaps({div:'#map',lat:b,lng:c,zoom:d,zoomControl:!0,zoomControlOpt:{style:'SMALL',position:'TOP_LEFT'},panControl:!1,streetViewControl:!1,mapTypeControl:!1,overviewMapControl:!1,scrollwheel:!0,draggable:!0});a.addMarker({lat:b,lng:c,click:function(d){let a='https://www.google.com/maps/place/'+encodeURIComponent(e)+'/@'+b+','+c+'/';window.open(a,'_blank')},title:e})}else{let a=new L.map('map').setView([b,c],d);f==3&&g.length?L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}',{attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>',maxZoom:18,id:'mapbox.streets',accessToken:g}).addTo(a):L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(a);let h=L.marker([b,c]).addTo(a),i=b+','+c+'#map='+d+'/'+b+'/'+c+'&layers=N';h.bindPopup(e+'<p><a href="https://www.openstreetmap.org/directions?engine=osrm_car&route='+i+'">Routing via OpenStreetMap</a></p>')}}}function q(b,c){a.getJSON('https://api.github.com/repos/'+c+'/tags').done(function(c){let d=c[0];a(b).append(' '+d.name)}).fail(function(d,a,b){let c=a+", "+b;console.log("Request Failed: "+c)})}function g(){a('body').hasClass('searching')?(a('[id=search-query]').blur(),a('body').removeClass('searching'),j()):(a('body').addClass('searching'),a('.search-results').css({opacity:0,visibility:'visible'}).animate({opacity:1},200),a('#search-query').focus())}function s(b,c,d,e){a('body').hasClass('dark')?(a('body').css({opacity:0,visibility:'visible'}).animate({opacity:1},500),a('body').removeClass('dark'),b&&(c.disabled=!1,d.disabled=!0),a('.js-dark-toggle i').removeClass('fa-sun').addClass('fa-moon'),localStorage.setItem('dark_mode','0'),e&&location.reload()):(a('body').css({opacity:0,visibility:'visible'}).animate({opacity:1},500),a('body').addClass('dark'),b&&(c.disabled=!0,d.disabled=!1),a('.js-dark-toggle i').removeClass('fa-moon').addClass('fa-sun'),localStorage.setItem('dark_mode','1'),e&&location.reload())}function t(){a('.carousel').each(function(){let b=a('.carousel-item',this);b.css('min-height',0);let c=Math.max.apply(null,b.map(function(){return a(this).outerHeight()}).get());b.css('min-height',c+'px')})}a(document).ready(function(){a('#TableOfContents > ul > li > ul').unwrap().unwrap(),a('#TableOfContents').addClass('nav flex-column'),a('#TableOfContents li').addClass('nav-item'),a('#TableOfContents li a').addClass('nav-link');let f=0;a('body').hasClass('dark')&&(f=1);let g=parseInt(localStorage.getItem('dark_mode')||f);const b=a('link[title=hl-light]').length>0,c=a('link[title=hl-light]')[0],d=a('link[title=hl-dark]')[0],e=a('script[title=mermaid]').length>0;g?(a('body').addClass('dark'),b&&(c.disabled=!0,d.disabled=!1),e&&mermaid.initialize({theme:'dark'}),a('.js-dark-toggle i').removeClass('fa-moon').addClass('fa-sun')):(a('body').removeClass('dark'),b&&(c.disabled=!1,d.disabled=!0),e&&mermaid.initialize({theme:'default'}),a('.js-dark-toggle i').removeClass('fa-sun').addClass('fa-moon')),a('.js-dark-toggle').click(function(a){a.preventDefault(),s(b,c,d,e)})}),a(window).on('load',function(){window.location.hash&&(window.location.hash=="#top"?window.location.hash="":a('.projects-container').length||f());let e=a('body');e.scrollspy({offset:c});let d;a(window).resize(function(){clearTimeout(d),d=setTimeout(n,200)}),a('.projects-container').each(function(g,e){let b=a(e),c=b.closest('section'),d;c.find('.isotope').hasClass('js-layout-row')?d='fitRows':d='masonry',b.imagesLoaded(function(){b.isotope({itemSelector:'.isotope-item',layoutMode:d,masonry:{gutter:20},filter:c.find('.default-project-filter').text()}),c.find('.project-filters a').click(function(){let c=a(this).attr('data-filter');return b.isotope({filter:c}),a(this).removeClass('active').addClass('active').siblings().removeClass('active all'),!1}),window.location.hash&&f()})}),a('.pub-filters-select')&&o(),a('.js-cite-modal').click(function(d){d.preventDefault();let b=a(this).attr('data-filename'),c=a('#modal');c.find('.modal-body code').load(b,function(e,d,c){if(d=='error'){let b="Error: ";a('#modal-error').html(b+c.status+" "+c.statusText)}else a('.js-download-cite').attr('href',b)}),c.modal('show')}),a('.js-copy-cite').click(function(b){b.preventDefault();let a=document.createRange(),c=document.querySelector('#modal .modal-body');a.selectNode(c),window.getSelection().addRange(a);try{document.execCommand('copy')}catch(a){console.log('Error: citation copy failed.')}window.getSelection().removeRange(a)}),p();let b='.js-github-release';a(b).length>0&&q(b,a(b).data('repo')),a('.js-search').click(function(a){a.preventDefault(),g()}),a(document).on('keydown',function(b){b.which==27?a('body').hasClass('searching')&&g():b.which==191&&b.shiftKey==!1&&!a('input,textarea').is(':focus')&&(b.preventDefault(),g())})}),a(window).on('load resize orientationchange',t)}(jQuery)