/*! * CoreUI v3.4.0 (https://coreui.io) * Copyright 2020 creativeLabs Ɓukasz Holeczek * Licensed under MIT (https://coreui.io) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).coreui=e()}(this,(function(){"use strict";function t(t,e){for(var n=0;n-1||(r=t),[i,o,r]}function q(t,e,n,i,o){if("string"==typeof e&&t){n||(n=i,i=null);var r=U(e,n,i),s=r[0],a=r[1],l=r[2],c=X(t),u=c[l]||(c[l]={}),f=B(u,a,s?n:null);if(f)f.oneOff=f.oneOff&&o;else{var h=Y(a,e.replace(N,"")),d=s?function(t,e,n){return function i(o){for(var r=t.querySelectorAll(e),s=o.target;s&&s!==this;s=s.parentNode)for(var a=r.length;a--;)if(r[a]===s)return o.delegateTarget=s,i.oneOff&&F.off(t,o.type,n),n.apply(s,[o]);return null}}(t,n,i):function(t,e){return function n(i){return i.delegateTarget=t,n.oneOff&&F.off(t,i.type,e),e.apply(t,[i])}}(t,n);d.delegationSelector=s?n:null,d.originalHandler=a,d.oneOff=o,d.uidEvent=h,u[h]=d,t.addEventListener(l,d,s)}}}function Q(t,e,n,i,o){var r=B(e[n],i,o);r&&(t.removeEventListener(n,r,Boolean(o)),delete e[n][r.uidEvent])}var F={on:function(t,e,n,i){q(t,e,n,i,!1)},one:function(t,e,n,i){q(t,e,n,i,!0)},off:function(t,e,n,i){if("string"==typeof e&&t){var o=U(e,n,i),r=o[0],s=o[1],a=o[2],l=a!==e,c=X(t),u="."===e.charAt(0);if("undefined"==typeof s){u&&Object.keys(c).forEach((function(n){!function(t,e,n,i){var o=e[n]||{};Object.keys(o).forEach((function(r){if(r.indexOf(i)>-1){var s=o[r];Q(t,e,n,s.originalHandler,s.delegationSelector)}}))}(t,c,n,e.slice(1))}));var f=c[a]||{};Object.keys(f).forEach((function(n){var i=n.replace(P,"");if(!l||e.indexOf(i)>-1){var o=f[n];Q(t,c,a,o.originalHandler,o.delegationSelector)}}))}else{if(!c||!c[a])return;Q(t,c,a,s,r?n:null)}}},trigger:function(t,e,n){if("string"!=typeof e||!t)return null;var i,o=e.replace(I,""),r=e!==o,s=W.indexOf(o)>-1,a=!0,l=!0,c=!1,u=null;return r&&j&&(i=j.Event(e,n),j(t).trigger(i),a=!i.isPropagationStopped(),l=!i.isImmediatePropagationStopped(),c=i.isDefaultPrevented()),s?(u=document.createEvent("HTMLEvents")).initEvent(o,a,!0):u=new CustomEvent(e,{bubbles:a,cancelable:!0}),"undefined"!=typeof n&&Object.keys(n).forEach((function(t){Object.defineProperty(u,t,{get:function(){return n[t]}})})),c&&(u.preventDefault(),x||Object.defineProperty(u,"defaultPrevented",{get:function(){return!0}})),l&&t.dispatchEvent(u),u.defaultPrevented&&"undefined"!=typeof i&&i.preventDefault(),u}},V="asyncLoad",z="coreui.asyncLoad",K="c-active",$="c-show",G=".c-sidebar-nav-dropdown",J=".c-xhr-link, .c-sidebar-nav-link",Z={defaultPage:"main.html",errorPage:"404.html",subpagesDirectory:"views/"},tt=function(){function t(t,e){this._config=this._getConfig(e),this._element=t;var n=location.hash.replace(/^#/,"");""!==n?this._setUpUrl(n):this._setUpUrl(this._config.defaultPage),this._addEventListeners()}var n=t.prototype;return n._getConfig=function(t){return t=o(o({},Z),t)},n._loadPage=function(t){var e=this,n=this._element,i=this._config,o=function t(n,i){void 0===i&&(i=0);var o=document.createElement("script");o.type="text/javascript",o.src=n[i],o.className="view-script",o.onload=o.onreadystatechange=function(){e.readyState&&"complete"!==e.readyState||n.length>i+1&&t(n,i+1)},document.getElementsByTagName("body")[0].appendChild(o)},r=new XMLHttpRequest;r.open("GET",i.subpagesDirectory+t);var s=new CustomEvent("xhr",{detail:{url:t,status:r.status}});n.dispatchEvent(s),r.onload=function(e){if(200===r.status){s=new CustomEvent("xhr",{detail:{url:t,status:r.status}}),n.dispatchEvent(s);var a=document.createElement("div");a.innerHTML=e.target.response;var l=Array.from(a.querySelectorAll("script")).map((function(t){return t.attributes.getNamedItem("src").nodeValue}));a.querySelectorAll("script").forEach((function(t){return t.remove(t)})),window.scrollTo(0,0),n.innerHTML="",n.appendChild(a),(c=document.querySelectorAll(".view-script")).length&&c.forEach((function(t){t.remove()})),l.length&&o(l),window.location.hash=t}else window.location.href=i.errorPage;var c},r.send()},n._setUpUrl=function(t){t=t.replace(/^\//,"").split("?")[0],Array.from(document.querySelectorAll(J)).forEach((function(t){t.classList.remove(K)})),Array.from(document.querySelectorAll(J)).forEach((function(t){t.classList.remove(K)})),Array.from(document.querySelectorAll(G)).forEach((function(t){t.classList.remove($)})),Array.from(document.querySelectorAll(G)).forEach((function(e){Array.from(e.querySelectorAll('a[href*="'+t+'"]')).length>0&&e.classList.add($)})),Array.from(document.querySelectorAll('.c-sidebar-nav-item a[href*="'+t+'"]')).forEach((function(t){t.classList.add(K)})),this._loadPage(t)},n._loadBlank=function(t){window.open(t)},n._loadTop=function(t){window.location=t},n._update=function(t){"#"!==t.href&&("undefined"!=typeof t.dataset.toggle&&"null"!==t.dataset.toggle||("_top"===t.target?this._loadTop(t.href):"_blank"===t.target?this._loadBlank(t.href):this._setUpUrl(t.getAttribute("href"))))},n._addEventListeners=function(){var t=this;F.on(document,"click.coreui.asyncLoad.data-api",J,(function(e){e.preventDefault();var n=e.target;n.classList.contains("c-sidebar-nav-link")||(n=n.closest(J)),n.classList.contains("c-sidebar-nav-dropdown-toggle")||"#"===n.getAttribute("href")||t._update(n)}))},t._asyncLoadInterface=function(e,n){var i=O(e,z);if(i||(i=new t(e,"object"==typeof n&&n)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}},t.jQueryInterface=function(e){return this.each((function(){t._asyncLoadInterface(this,e)}))},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"Default",get:function(){return Z}}]),t}(),et=L();if(et){var nt=et.fn[V];et.fn[V]=tt.jQueryInterface,et.fn[V].Constructor=tt,et.fn[V].noConflict=function(){return et.fn[V]=nt,tt.jQueryInterface}}var it="coreui.alert",ot=function(){function t(t){this._element=t,this._element&&k(t,it,this)}var n=t.prototype;return n.close=function(t){var e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);null===n||n.defaultPrevented||this._removeElement(e)},n.dispose=function(){C(this._element,it),this._element=null},n._getRootElement=function(t){return d(t)||t.closest(".alert")},n._triggerCloseEvent=function(t){return F.trigger(t,"close.coreui.alert")},n._removeElement=function(t){var e=this;if(t.classList.remove("show"),t.classList.contains("fade")){var n=p(t);F.one(t,c,(function(){return e._destroyElement(t)})),v(t,n)}else this._destroyElement(t)},n._destroyElement=function(t){t.parentNode&&t.parentNode.removeChild(t),F.trigger(t,"closed.coreui.alert")},t.jQueryInterface=function(e){return this.each((function(){var n=O(this,it);n||(n=new t(this)),"close"===e&&n[e](this)}))},t.handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},t.getInstance=function(t){return O(t,it)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}}]),t}();F.on(document,"click.coreui.alert.data-api",'[data-dismiss="alert"]',ot.handleDismiss(new ot));var rt=L();if(rt){var st=rt.fn.alert;rt.fn.alert=ot.jQueryInterface,rt.fn.alert.Constructor=ot,rt.fn.alert.noConflict=function(){return rt.fn.alert=st,ot.jQueryInterface}}var at={matches:function(t,e){return t.matches(e)},find:function(t,e){var n;return void 0===e&&(e=document.documentElement),(n=[]).concat.apply(n,S.call(e,t))},findOne:function(t,e){return void 0===e&&(e=document.documentElement),A.call(e,t)},children:function(t,e){var n,i=(n=[]).concat.apply(n,t.children);return i.filter((function(t){return t.matches(e)}))},parents:function(t,e){for(var n=[],i=t.parentNode;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)this.matches(i,e)&&n.push(i),i=i.parentNode;return n},prev:function(t,e){for(var n=t.previousElementSibling;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next:function(t,e){for(var n=t.nextElementSibling;n;){if(this.matches(n,e))return[n];n=n.nextElementSibling}return[]}},lt="coreui.button",ct="active",ut="disabled",ft="focus",ht='[data-toggle^="button"]',dt=".btn",pt=function(){function t(t){this._element=t,k(t,lt,this)}var n=t.prototype;return n.toggle=function(){var t=!0,e=!0,n=this._element.closest('[data-toggle="buttons"]');if(n){var i=at.findOne('input:not([type="hidden"])',this._element);if(i&&"radio"===i.type){if(i.checked&&this._element.classList.contains(ct))t=!1;else{var o=at.findOne(".active",n);o&&o.classList.remove(ct)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains(ut)||n.classList.contains(ut))return;i.checked=!this._element.classList.contains(ct),F.trigger(i,"change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(ct)),t&&this._element.classList.toggle(ct)},n.dispose=function(){C(this._element,lt),this._element=null},t.jQueryInterface=function(e){return this.each((function(){var n=O(this,lt);n||(n=new t(this)),"toggle"===e&&n[e]()}))},t.getInstance=function(t){return O(t,lt)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}}]),t}();F.on(document,"click.coreui.button.data-api",ht,(function(t){t.preventDefault();var e=t.target.closest(dt),n=O(e,lt);n||(n=new pt(e)),n.toggle()})),F.on(document,"focus.coreui.button.data-api",ht,(function(t){var e=t.target.closest(dt);e&&e.classList.add(ft)})),F.on(document,"blur.coreui.button.data-api",ht,(function(t){var e=t.target.closest(dt);e&&e.classList.remove(ft)}));var gt=L();if(gt){var mt=gt.fn.button;gt.fn.button=pt.jQueryInterface,gt.fn.button.Constructor=pt,gt.fn.button.noConflict=function(){return gt.fn.button=mt,pt.jQueryInterface}}function vt(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function _t(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))}var bt={setDataAttribute:function(t,e,n){t.setAttribute("data-"+_t(e),n)},removeDataAttribute:function(t,e){t.removeAttribute("data-"+_t(e))},getDataAttributes:function(t){if(!t)return{};var e=o({},t.dataset);return Object.keys(e).forEach((function(t){e[t]=vt(e[t])})),e},getDataAttribute:function(t,e){return vt(t.getAttribute("data-"+_t(e)))},offset:function(t){var e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:function(t){return{top:t.offsetTop,left:t.offsetLeft}},toggleClass:function(t,e){t&&(t.classList.contains(e)?t.classList.remove(e):t.classList.add(e))}},yt="carousel",wt="coreui.carousel",Et="."+wt,Lt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Tt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},kt="next",Ot="prev",Ct="slid"+Et,St="active",At=".active.carousel-item",xt={TOUCH:"touch",PEN:"pen"},Dt=function(){function t(t,e){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(e),this._element=t,this._indicatorsElement=at.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners(),k(t,wt,this)}var n=t.prototype;return n.next=function(){this._isSliding||this._slide(kt)},n.nextWhenVisible=function(){!document.hidden&&b(this._element)&&this.next()},n.prev=function(){this._isSliding||this._slide(Ot)},n.pause=function(t){t||(this._isPaused=!0),at.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(g(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var e=this;this._activeElement=at.findOne(At,this._element);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)F.one(this._element,Ct,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?kt:Ot;this._slide(i,this._items[t])}},n.dispose=function(){F.off(this._element,Et),C(this._element,wt),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=o(o({},Lt),t),_(yt,t,Tt),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},n._addEventListeners=function(){var t=this;this._config.keyboard&&F.on(this._element,"keydown.coreui.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&(F.on(this._element,"mouseenter.coreui.carousel",(function(e){return t.pause(e)})),F.on(this._element,"mouseleave.coreui.carousel",(function(e){return t.cycle(e)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this,e=function(e){t._pointerEvent&&xt[e.pointerType.toUpperCase()]?t.touchStartX=e.clientX:t._pointerEvent||(t.touchStartX=e.touches[0].clientX)},n=function(e){t._pointerEvent&&xt[e.pointerType.toUpperCase()]&&(t.touchDeltaX=e.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};at.find(".carousel-item img",this._element).forEach((function(t){F.on(t,"dragstart.coreui.carousel",(function(t){return t.preventDefault()}))})),this._pointerEvent?(F.on(this._element,"pointerdown.coreui.carousel",(function(t){return e(t)})),F.on(this._element,"pointerup.coreui.carousel",(function(t){return n(t)})),this._element.classList.add("pointer-event")):(F.on(this._element,"touchstart.coreui.carousel",(function(t){return e(t)})),F.on(this._element,"touchmove.coreui.carousel",(function(e){return function(e){e.touches&&e.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.touches[0].clientX-t.touchStartX}(e)})),F.on(this._element,"touchend.coreui.carousel",(function(t){return n(t)})))},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.key){case"ArrowLeft":t.preventDefault(),this.prev();break;case"ArrowRight":t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?at.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n=t===kt,i=t===Ot,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===Ot?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},n._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(at.findOne(At,this._element));return F.trigger(this._element,"slide.coreui.carousel",{relatedTarget:t,direction:e,from:i,to:n})},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){for(var e=at.find(".active",this._indicatorsElement),n=0;n0})).filter((function(e){return t.includes(e)}))[0]},n._breakpoints=function(t){var e=this._config.breakpoints;return e.slice(0,e.indexOf(e.filter((function(t){return t.length>0})).filter((function(e){return t.includes(e)}))[0])+1)},n._updateResponsiveClassNames=function(t){var e=this._breakpoint(t);return this._breakpoints(t).map((function(n){return n.length>0?t.replace(e,n):t.replace("-"+e,n)}))},n._includesResponsiveClass=function(t){var e=this;return this._updateResponsiveClassNames(t).filter((function(t){return e._config.target.contains(t)}))},n._getConfig=function(t){return t=o(o(o({},this.constructor.Default),bt.getDataAttributes(this._element)),t),_(It,t,this.constructor.DefaultType),t},t.classTogglerInterface=function(e,n){var i=O(e,Pt);if(i||(i=new t(e,"object"==typeof n&&n)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}},t.jQueryInterface=function(e){return this.each((function(){t.classTogglerInterface(this,e)}))},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"Default",get:function(){return Mt}},{key:"DefaultType",get:function(){return Rt}}]),t}();F.on(document,"click.coreui.class-toggler.data-api",Yt,(function(t){t.preventDefault(),t.stopPropagation();var e=t.target;e.classList.contains("c-class-toggler")||(e=e.closest(Yt)),"undefined"!=typeof e.dataset.addClass&&Xt.classTogglerInterface(e,"add"),"undefined"!=typeof e.dataset.removeClass&&Xt.classTogglerInterface(e,"remove"),"undefined"!=typeof e.dataset.toggleClass&&Xt.classTogglerInterface(e,"toggle"),"undefined"!=typeof e.dataset.class&&Xt.classTogglerInterface(e,"class")}));var Bt=L();if(Bt){var Ut=Bt.fn[It];Bt.fn[It]=Xt.jQueryInterface,Bt.fn[It].Constructor=Xt,Bt.fn[It].noConflict=function(){return Bt.fn[It]=Ut,Xt.jQueryInterface}}var qt="collapse",Qt="coreui.collapse",Ft={toggle:!0,parent:""},Vt={toggle:"boolean",parent:"(string|element)"},zt="show",Kt="collapse",$t="collapsing",Gt="collapsed",Jt="width",Zt='[data-toggle="collapse"]',te=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=at.find(Zt+'[href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]');for(var n=at.find(Zt),i=0,o=n.length;i0)for(var i=0;i=0}function ke(t){return((_e(t)?t.ownerDocument:t.document)||window.document).documentElement}function Oe(t){return"html"===me(t)?t:t.assignedSlot||t.parentNode||t.host||ke(t)}function Ce(t){if(!be(t)||"fixed"===Le(t).position)return null;var e=t.offsetParent;if(e){var n=ke(e);if("body"===me(e)&&"static"===Le(e).position&&"static"!==Le(n).position)return n}return e}function Se(t){for(var e=ve(t),n=Ce(t);n&&Te(n)&&"static"===Le(n).position;)n=Ce(n);return n&&"body"===me(n)&&"static"===Le(n).position?e:n||function(t){for(var e=Oe(t);be(e)&&["html","body"].indexOf(me(e))<0;){var n=Le(e);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return e;e=e.parentNode}return null}(t)||e}function Ae(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xe(t,e,n){return Math.max(t,Math.min(e,n))}function De(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function je(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var Ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ie(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.offsets,s=t.position,a=t.gpuAcceleration,l=t.adaptive,c=function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:Math.round(e*i)/i||0,y:Math.round(n*i)/i||0}}(r),u=c.x,f=c.y,h=r.hasOwnProperty("x"),d=r.hasOwnProperty("y"),p=se,g=ie,m=window;if(l){var v=Se(n);v===ve(n)&&(v=ke(n)),o===ie&&(g=oe,f-=v.clientHeight-i.height,f*=a?1:-1),o===se&&(p=re,u-=v.clientWidth-i.width,u*=a?1:-1)}var _,b=Object.assign({position:s},l&&Ne);return a?Object.assign(Object.assign({},b),{},((_={})[g]=d?"0":"",_[p]=h?"0":"",_.transform=(m.devicePixelRatio||1)<2?"translate("+u+"px, "+f+"px)":"translate3d("+u+"px, "+f+"px, 0)",_)):Object.assign(Object.assign({},b),{},((e={})[g]=d?f+"px":"",e[p]=h?u+"px":"",e.transform="",e))}var Pe={passive:!0};var Re={left:"right",right:"left",bottom:"top",top:"bottom"};function Me(t){return t.replace(/left|right|bottom|top/g,(function(t){return Re[t]}))}var He={start:"end",end:"start"};function We(t){return t.replace(/start|end/g,(function(t){return He[t]}))}function Ye(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function Xe(t){var e=ve(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Be(t){return Ye(ke(t)).left+Xe(t).scrollLeft}function Ue(t){var e=Le(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function qe(t){return["html","body","#document"].indexOf(me(t))>=0?t.ownerDocument.body:be(t)&&Ue(t)?t:qe(Oe(t))}function Qe(t,e){void 0===e&&(e=[]);var n=qe(t),i="body"===me(n),o=ve(n),r=i?[o].concat(o.visualViewport||[],Ue(n)?n:[]):n,s=e.concat(r);return i?s:s.concat(Qe(Oe(r)))}function Fe(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ve(t,e){return e===fe?Fe(function(t){var e=ve(t),n=ke(t),i=e.visualViewport,o=n.clientWidth,r=n.clientHeight,s=0,a=0;return i&&(o=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,a=i.offsetTop)),{width:o,height:r,x:s+Be(t),y:a}}(t)):be(e)?function(t){var e=Ye(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Fe(function(t){var e=ke(t),n=Xe(t),i=t.ownerDocument.body,o=Math.max(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=Math.max(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Be(t),a=-n.scrollTop;return"rtl"===Le(i||e).direction&&(s+=Math.max(e.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:s,y:a}}(ke(t)))}function ze(t,e,n){var i="clippingParents"===e?function(t){var e=Qe(Oe(t)),n=["absolute","fixed"].indexOf(Le(t).position)>=0&&be(t)?Se(t):t;return _e(n)?e.filter((function(t){return _e(t)&&Ee(t,n)&&"body"!==me(t)})):[]}(t):[].concat(e),o=[].concat(i,[n]),r=o[0],s=o.reduce((function(e,n){var i=Ve(t,n);return e.top=Math.max(i.top,e.top),e.right=Math.min(i.right,e.right),e.bottom=Math.min(i.bottom,e.bottom),e.left=Math.max(i.left,e.left),e}),Ve(t,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ke(t){return t.split("-")[1]}function $e(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?ye(o):null,s=o?Ke(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case ie:e={x:a,y:n.y-i.height};break;case oe:e={x:a,y:n.y+n.height};break;case re:e={x:n.x+n.width,y:l};break;case se:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var c=r?Ae(r):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case ce:e[c]=Math.floor(e[c])-Math.floor(n[u]/2-i[u]/2);break;case ue:e[c]=Math.floor(e[c])+Math.ceil(n[u]/2-i[u]/2)}}return e}function Ge(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.boundary,s=void 0===r?"clippingParents":r,a=n.rootBoundary,l=void 0===a?fe:a,c=n.elementContext,u=void 0===c?he:c,f=n.altBoundary,h=void 0!==f&&f,d=n.padding,p=void 0===d?0:d,g=De("number"!=typeof p?p:je(p,le)),m=u===he?"reference":he,v=t.elements.reference,_=t.rects.popper,b=t.elements[h?m:u],y=ze(_e(b)?b:b.contextElement||ke(t.elements.popper),s,l),w=Ye(v),E=$e({reference:w,element:_,strategy:"absolute",placement:o}),L=Fe(Object.assign(Object.assign({},_),E)),T=u===he?L:w,k={top:y.top-T.top+g.top,bottom:T.bottom-y.bottom+g.bottom,left:y.left-T.left+g.left,right:T.right-y.right+g.right},O=t.modifiersData.offset;if(u===he&&O){var C=O[o];Object.keys(k).forEach((function(t){var e=[re,oe].indexOf(t)>=0?1:-1,n=[ie,oe].indexOf(t)>=0?"y":"x";k[t]+=C[n]*e}))}return k}function Je(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?pe:l,u=Ke(i),f=u?a?de:de.filter((function(t){return Ke(t)===u})):le,h=f.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=f);var d=h.reduce((function(e,n){return e[n]=Ge(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[ye(n)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}function Ze(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function tn(t){return[ie,re,oe,se].some((function(e){return t[e]>=0}))}function en(t,e,n){void 0===n&&(n=!1);var i,o=ke(e),r=Ye(t),s=be(e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&(("body"!==me(e)||Ue(o))&&(a=(i=e)!==ve(i)&&be(i)?function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(i):Xe(i)),be(e)?((l=Ye(e)).x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Be(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function nn(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||o(t)})),i}var on={placement:"bottom",modifiers:[],strategy:"absolute"};function rn(){for(var t=arguments.length,e=new Array(t),n=0;n=0?-1:1,r="function"==typeof n?n(Object.assign(Object.assign({},e),{},{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[se,re].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=void 0===d||d,g=n.allowedAutoPlacements,m=e.options.placement,v=ye(m),_=l||(v===m||!p?[Me(m)]:function(t){if(ye(t)===ae)return[];var e=Me(t);return[We(t),e,We(e)]}(m)),b=[m].concat(_).reduce((function(t,n){return t.concat(ye(n)===ae?Je(e,{placement:n,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),y=e.rects.reference,w=e.rects.popper,E=new Map,L=!0,T=b[0],k=0;k=0,x=A?"width":"height",D=Ge(e,{placement:O,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),j=A?S?re:se:S?oe:ie;y[x]>w[x]&&(j=Me(j));var N=Me(j),I=[];if(r&&I.push(D[C]<=0),a&&I.push(D[j]<=0,D[N]<=0),I.every((function(t){return t}))){T=O,L=!1;break}E.set(O,I)}if(L)for(var P=function(t){var e=b.find((function(e){var n=E.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},R=p?3:1;R>0;R--){if("break"===P(R))break}e.placement!==T&&(e.modifiersData[i]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,d=void 0===h||h,p=n.tetherOffset,g=void 0===p?0:p,m=Ge(e,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=ye(e.placement),_=Ke(e.placement),b=!_,y=Ae(v),w="x"===y?"y":"x",E=e.modifiersData.popperOffsets,L=e.rects.reference,T=e.rects.popper,k="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,O={x:0,y:0};if(E){if(r){var C="y"===y?ie:se,S="y"===y?oe:re,A="y"===y?"height":"width",x=E[y],D=E[y]+m[C],j=E[y]-m[S],N=d?-T[A]/2:0,I=_===ce?L[A]:T[A],P=_===ce?-T[A]:-L[A],R=e.elements.arrow,M=d&&R?we(R):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=H[C],Y=H[S],X=xe(0,L[A],M[A]),B=b?L[A]/2-N-X-W-k:I-X-W-k,U=b?-L[A]/2+N+X+Y+k:P+X+Y+k,q=e.elements.arrow&&Se(e.elements.arrow),Q=q?"y"===y?q.clientTop||0:q.clientLeft||0:0,F=e.modifiersData.offset?e.modifiersData.offset[e.placement][y]:0,V=E[y]+B-F-Q,z=E[y]+U-F,K=xe(d?Math.min(D,V):D,x,d?Math.max(j,z):j);E[y]=K,O[y]=K-x}if(a){var $="x"===y?ie:se,G="x"===y?oe:re,J=E[w],Z=xe(J+m[$],J,J-m[G]);E[w]=Z,O[w]=Z-J}e.modifiersData[i]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=n.elements.arrow,r=n.modifiersData.popperOffsets,s=ye(n.placement),a=Ae(s),l=[se,re].indexOf(s)>=0?"height":"width";if(o&&r){var c=n.modifiersData[i+"#persistent"].padding,u=we(o),f="y"===a?ie:se,h="y"===a?oe:re,d=n.rects.reference[l]+n.rects.reference[a]-r[a]-n.rects.popper[l],p=r[a]-n.rects.reference[a],g=Se(o),m=g?"y"===a?g.clientHeight||0:g.clientWidth||0:0,v=d/2-p/2,_=c[f],b=m-u[l]-c[h],y=m/2-u[l]/2+v,w=xe(_,y,b),E=a;n.modifiersData[i]=((e={})[E]=w,e.centerOffset=w-y,e)}},effect:function(t){var e=t.state,n=t.options,i=t.name,o=n.element,r=void 0===o?"[data-popper-arrow]":o,s=n.padding,a=void 0===s?0:s;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&Ee(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[i+"#persistent"]={padding:De("number"!=typeof a?a:je(a,le))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=Ge(e,{elementContext:"reference"}),a=Ge(e,{altBoundary:!0}),l=Ze(s,i),c=Ze(a,o,r),u=tn(l),f=tn(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),ln="dropdown",cn="coreui.dropdown",un="."+cn,fn="Escape",hn="Space",dn="ArrowUp",pn="ArrowDown",gn=new RegExp("ArrowUp|ArrowDown|Escape"),mn="hide"+un,vn="hidden"+un,_n="click.coreui.dropdown.data-api",bn="keydown.coreui.dropdown.data-api",yn="disabled",wn="show",En="dropdown-menu-right",Ln='[data-toggle="dropdown"]',Tn=".dropdown-menu",kn={offset:[0,0],flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},On={offset:"(array|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Cn=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._inHeader=this._detectHeader(),this._addEventListeners(),k(t,cn,this)}var n=t.prototype;return n.toggle=function(){if(!this._element.disabled&&!this._element.classList.contains(yn)){var e=this._menu.classList.contains(wn);t.clearMenus(),e||this.show()}},n.show=function(){if(!(this._element.disabled||this._element.classList.contains(yn)||this._menu.classList.contains(wn))){var e=t.getParentFromElement(this._element),n={relatedTarget:this._element};if(!F.trigger(e,"show.coreui.dropdown",n).defaultPrevented){if(!this._inNavbar&&!this._inHeader){if("undefined"==typeof an)throw new TypeError("CoreUI's dropdowns require Popper.js (https://popper.js.org)");var i=this._element;"parent"===this._config.reference?i=e:m(this._config.reference)&&(i=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(i=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e.classList.add("position-static"),this._popper=an(i,this._menu,this._getPopperConfig())}var o,r;if("ontouchstart"in document.documentElement&&!e.closest(".navbar-nav"))(o=[]).concat.apply(o,document.body.children).forEach((function(t){return F.on(t,"mouseover",null,(function(){}))}));if("ontouchstart"in document.documentElement&&!e.closest(".c-header-nav"))(r=[]).concat.apply(r,document.body.children).forEach((function(t){return F.on(t,"mouseover",null,(function(){}))}));this._element.focus(),this._element.setAttribute("aria-expanded",!0),bt.toggleClass(this._menu,wn),bt.toggleClass(e,wn),F.trigger(e,"shown.coreui.dropdown",n)}}},n.hide=function(){if(!this._element.disabled&&!this._element.classList.contains(yn)&&this._menu.classList.contains(wn)){var e=t.getParentFromElement(this._element),n={relatedTarget:this._element};F.trigger(e,mn,n).defaultPrevented||(this._popper&&this._popper.destroy(),bt.toggleClass(this._menu,wn),bt.toggleClass(e,wn),F.trigger(e,vn,n))}},n.dispose=function(){C(this._element,cn),F.off(this._element,un),this._element=null,this._menu=null,this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),this._inHeader=this._detectHeader(),this._popper&&this._popper.update()},n._addEventListeners=function(){var t=this;F.on(this._element,"click.coreui.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},n._getConfig=function(t){return t=o(o(o({},this.constructor.Default),bt.getDataAttributes(this._element)),t),_(ln,t,this.constructor.DefaultType),t},n._getMenuElement=function(){var e=t.getParentFromElement(this._element);return at.findOne(Tn,e)},n._getPlacement=function(){var t=this._element.parentNode,e="bottom-start";return t.classList.contains("dropup")?(e="top-start",this._menu.classList.contains(En)&&(e="top-end")):t.classList.contains("dropright")?e="right-start":t.classList.contains("dropleft")?e="left-start":this._menu.classList.contains(En)&&(e="bottom-end"),e},n._detectNavbar=function(){return Boolean(this._element.closest(".navbar"))},n._detectHeader=function(){return Boolean(this._element.closest(".c-header"))},n._getOffset=function(){var t=this;return"function"==typeof this._config.offset?function(e){var n=e.placement,i=e.reference,o=e.popper;return t._config.offset({placement:n,reference:i,popper:o})}:this._config.offset},n._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:[{name:"offset",options:{offset:this._getOffset()}},{name:"flip",enabled:this._config.flip},{name:"preventOverflow",options:{boundary:this._config.boundary}}]};return"static"===this._config.display&&(t.modifiers={name:"applyStyles",enabled:!1}),o(o({},t),this._config.popperConfig)},t.dropdownInterface=function(e,n){var i=O(e,cn);if(i||(i=new t(e,"object"==typeof n?n:null)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}},t.jQueryInterface=function(e){return this.each((function(){t.dropdownInterface(this,e)}))},t.clearMenus=function(e){if(!e||2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(var n=at.find(Ln),i=0,o=n.length;i0&&r--,e.key===pn&&rdocument.documentElement.clientHeight;e||(this._element.style.overflowY="hidden"),this._element.classList.add(Fn);var n=p(this._dialog);F.off(this._element,c),F.one(this._element,c,(function(){t._element.classList.remove(Fn),e||(F.one(t._element,c,(function(){t._element.style.overflowY=""})),v(t._element,n))})),v(this._element,n),this._element.focus()}else this.hide()},n._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:ei,popperConfig:null},fi={HIDE:"hide"+ri,HIDDEN:"hidden"+ri,SHOW:"show"+ri,SHOWN:"shown"+ri,INSERTED:"inserted"+ri,CLICK:"click"+ri,FOCUSIN:"focusin"+ri,FOCUSOUT:"focusout"+ri,MOUSEENTER:"mouseenter"+ri,MOUSELEAVE:"mouseleave"+ri},hi="fade",di="show",pi="show",gi="out",mi="hover",vi="focus",_i=function(){function t(t,e){if("undefined"==typeof an)throw new TypeError("CoreUI's tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners(),k(t,this.constructor.DATA_KEY,this)}var n=t.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=O(t.delegateTarget,e);n||(n=new this.constructor(t.delegateTarget,this._getDelegateConfig()),k(t.delegateTarget,e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(this.getTipElement().classList.contains(di))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),C(this.element,this.constructor.DATA_KEY),F.off(this.element,this.constructor.EVENT_KEY),F.off(this.element.closest(".modal"),"hide.coreui.modal",this._hideModalHandler),this.tip&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},n.show=function(){var t=this;if("none"===this.element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var e=F.trigger(this.element,this.constructor.Event.SHOW),n=y(this.element),i=null===n?this.element.ownerDocument.documentElement.contains(this.element):n.contains(this.element);if(e.defaultPrevented||!i)return;var o=this.getTipElement(),r=u(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&o.classList.add(hi);var s,a="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,l=this._getAttachment(a),f=this._getContainer();if(k(o,this.constructor.DATA_KEY,this),this.element.ownerDocument.documentElement.contains(this.tip)||f.appendChild(o),F.trigger(this.element,this.constructor.Event.INSERTED),this._popper=an(this.element,o,this._getPopperConfig(l)),o.classList.add(di),"ontouchstart"in document.documentElement)(s=[]).concat.apply(s,document.body.children).forEach((function(t){F.on(t,"mouseover",(function(){}))}));var h=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,F.trigger(t.element,t.constructor.Event.SHOWN),e===gi&&t._leave(null,t)};if(this.tip.classList.contains(hi)){var d=p(this.tip);F.one(this.tip,c,h),v(this.tip,d)}else h()}},n.hide=function(){var t=this,e=this.getTipElement(),n=function(){t._hoverState!==pi&&e.parentNode&&e.parentNode.removeChild(e),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),F.trigger(t.element,t.constructor.Event.HIDDEN),t._popper.destroy()};if(!F.trigger(this.element,this.constructor.Event.HIDE).defaultPrevented){var i;if(e.classList.remove(di),"ontouchstart"in document.documentElement)(i=[]).concat.apply(i,document.body.children).forEach((function(t){return F.off(t,"mouseover",w)}));if(this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains(hi)){var o=p(e);F.one(e,c,n),v(e,o)}else n();this._hoverState=""}},n.update=function(){null!==this._popper&&this._popper.update()},n.isWithContent=function(){return Boolean(this.getTitle())},n.getTipElement=function(){if(this.tip)return this.tip;var t=document.createElement("div");return t.innerHTML=this.config.template,this.tip=t.children[0],this.tip},n.setContent=function(){var t=this.getTipElement();this.setElementContent(at.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove(hi,di)},n.setElementContent=function(t,e){if(null!==t)return"object"==typeof e&&m(e)?(e.jquery&&(e=e[0]),void(this.config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this.config.html?(this.config.sanitize&&(e=ni(e,this.config.whiteList,this.config.sanitizeFn)),t.innerHTML=e):t.textContent=e)},n.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},n._getPopperConfig=function(t){var e=this;return o(o({},{placement:t,modifiers:[{name:"offset",options:{offset:this._getOffset()}},{name:"arrow",options:{element:"."+this.constructor.NAME+"-arrow"}},{name:"preventOverflow",options:{boundary:this.config.boundary}}],onFirstUpdate:function(t){t.originalPlacement!==t.placement&&e._popper.update()}}),this.config.popperConfig)},n._getOffset=function(){var t=this;return"function"==typeof this.config.offset?function(e){var n=e.placement,i=e.reference,o=e.popper;return t.config.offset({placement:n,reference:i,popper:o})}:this.config.offset},n._getContainer=function(){return!1===this.config.container?document.body:m(this.config.container)?this.config.container:at.findOne(this.config.container)},n._getAttachment=function(t){return ci[t.toUpperCase()]},n._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)F.on(t.element,t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n=e===mi?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=e===mi?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;F.on(t.element,n,t.config.selector,(function(e){return t._enter(e)})),F.on(t.element,i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},F.on(this.element.closest(".modal"),"hide.coreui.modal",this._hideModalHandler),this.config.selector?this.config=o(o({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||O(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),k(t.delegateTarget,n,e)),t&&(e._activeTrigger["focusin"===t.type?vi:mi]=!0),e.getTipElement().classList.contains(di)||e._hoverState===pi?e._hoverState=pi:(clearTimeout(e._timeout),e._hoverState=pi,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===pi&&e.show()}),e.config.delay.show):e.show())},n._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||O(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),k(t.delegateTarget,n,e)),t&&(e._activeTrigger["focusout"===t.type?vi:mi]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=gi,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===gi&&e.hide()}),e.config.delay.hide):e.hide())},n._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},n._getConfig=function(t){var e=bt.getDataAttributes(this.element);return Object.keys(e).forEach((function(t){-1!==ai.indexOf(t)&&delete e[t]})),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof(t=o(o(o({},this.constructor.Default),e),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),_(ii,t,this.constructor.DefaultType),t.sanitize&&(t.template=ni(t.template,t.whiteList,t.sanitizeFn)),t},n._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},n._cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(si);null!==e&&e.length>0&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},n._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("data-popper-placement")&&(t.classList.remove(hi),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t.jQueryInterface=function(e){return this.each((function(){var n=O(this,oi),i="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,i)),"string"==typeof e)){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t.getInstance=function(t){return O(t,oi)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"Default",get:function(){return ui}},{key:"NAME",get:function(){return ii}},{key:"DATA_KEY",get:function(){return oi}},{key:"Event",get:function(){return fi}},{key:"EVENT_KEY",get:function(){return ri}},{key:"DefaultType",get:function(){return li}}]),t}(),bi=L();if(bi){var yi=bi.fn.tooltip;bi.fn.tooltip=_i.jQueryInterface,bi.fn.tooltip.Constructor=_i,bi.fn.tooltip.noConflict=function(){return bi.fn.tooltip=yi,_i.jQueryInterface}}var wi="popover",Ei="coreui.popover",Li="."+Ei,Ti=new RegExp("(^|\\s)bs-popover\\S+","g"),ki=o(o({},_i.Default),{},{placement:"right",trigger:"click",content:"",template:''}),Oi=o(o({},_i.DefaultType),{},{content:"(string|element|function)"}),Ci={HIDE:"hide"+Li,HIDDEN:"hidden"+Li,SHOW:"show"+Li,SHOWN:"shown"+Li,INSERTED:"inserted"+Li,CLICK:"click"+Li,FOCUSIN:"focusin"+Li,FOCUSOUT:"focusout"+Li,MOUSEENTER:"mouseenter"+Li,MOUSELEAVE:"mouseleave"+Li},Si=function(t){var n,i;function o(){return t.apply(this,arguments)||this}i=t,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var r=o.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.setContent=function(){var t=this.getTipElement();this.setElementContent(at.findOne(".popover-header",t),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(at.findOne(".popover-body",t),e),t.classList.remove("fade","show")},r._addAttachmentClass=function(t){this.getTipElement().classList.add("bs-popover-"+t)},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(Ti);null!==e&&e.length>0&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},o.jQueryInterface=function(t){return this.each((function(){var e=O(this,Ei),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new o(this,n),k(this,Ei,e)),"string"==typeof t)){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},o.getInstance=function(t){return O(t,Ei)},e(o,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"Default",get:function(){return ki}},{key:"NAME",get:function(){return wi}},{key:"DATA_KEY",get:function(){return Ei}},{key:"Event",get:function(){return Ci}},{key:"EVENT_KEY",get:function(){return Li}},{key:"DefaultType",get:function(){return Oi}}]),o}(_i),Ai=L();if(Ai){var xi=Ai.fn.popover;Ai.fn.popover=Si.jQueryInterface,Ai.fn.popover.Constructor=Si,Ai.fn.popover.noConflict=function(){return Ai.fn.popover=xi,Si.jQueryInterface}}var Di="scrollspy",ji="coreui.scrollspy",Ni="."+ji,Ii={offset:10,method:"auto",target:""},Pi={offset:"number",method:"string",target:"(string|element)"},Ri="dropdown-item",Mi="active",Hi=".nav-link",Wi="position",Yi=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+".nav-link, "+this._config.target+" "+".list-group-item, "+this._config.target+" ."+Ri,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,F.on(this._scrollElement,"scroll.coreui.scrollspy",(function(t){return n._process(t)})),this.refresh(),this._process(),k(t,ji,this)}var n=t.prototype;return n.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":Wi,n="auto"===this._config.method?e:this._config.method,i=n===Wi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),at.find(this._selector).map((function(t){var e=h(t),o=e?at.findOne(e):null;if(o){var r=o.getBoundingClientRect();if(r.width||r.height)return[bt[n](o).top+i,e]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},n.dispose=function(){C(this._element,ji),F.off(this._scrollElement,Ni),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){if("string"!=typeof(t=o(o({},Ii),"object"==typeof t&&t?t:{})).target&&m(t.target)){var e=t.target.id;e||(e=u(Di),t.target.id=e),t.target="#"+e}return _(Di,t,Pi),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||tt[r]-t[s]-1&&(t.reach[l]="end");e&&(f.dispatchEvent(so("ps-scroll-"+l)),e<0?f.dispatchEvent(so("ps-scroll-"+c)):e>0&&f.dispatchEvent(so("ps-scroll-"+u)),i&&function(t,e){eo(t,e),no(t,e)}(t,l));t.reach[l]&&(e||o)&&f.dispatchEvent(so("ps-"+l+"-reach-"+t.reach[l]))}(t,n,r,i,o)}function lo(t){return parseInt(t,10)||0}ro.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new io(t),this.eventElements.push(e)),e},ro.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},ro.prototype.unbind=function(t,e,n){var i=this.eventElement(t);i.unbind(e,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},ro.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},ro.prototype.once=function(t,e,n){var i=this.eventElement(t),o=function(t){i.unbind(e,o),n(t)};i.bind(e,o)};var co={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function uo(t){var e=t.element,n=Math.floor(e.scrollTop),i=e.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(Ki(e,Ji.rail("x")).forEach((function(t){return zi(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(Ki(e,Ji.rail("y")).forEach((function(t){return zi(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var n={width:e.railXWidth},i=Math.floor(t.scrollTop);e.isRtl?n.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:n.left=t.scrollLeft;e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-i:n.top=e.scrollbarXTop+i;qi(e.scrollbarXRail,n);var o={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?o.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:o.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?o.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:o.left=e.scrollbarYLeft+t.scrollLeft;qi(e.scrollbarYRail,o),qi(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),qi(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(Zi.active("x")):(e.classList.remove(Zi.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(Zi.active("y")):(e.classList.remove(Zi.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function fo(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function ho(t,e){var n=e[0],i=e[1],o=e[2],r=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8],f=t.element,h=null,d=null,p=null;function g(e){e.touches&&e.touches[0]&&(e[o]=e.touches[0].pageY),f[l]=h+p*(e[o]-d),eo(t,c),uo(t),e.stopPropagation(),e.preventDefault()}function m(){no(t,c),t[u].classList.remove(Zi.clicking),t.event.unbind(t.ownerDocument,"mousemove",g)}function v(e,s){h=f[l],s&&e.touches&&(e[o]=e.touches[0].pageY),d=e[o],p=(t[i]-t[n])/(t[r]-t[a]),s?t.event.bind(t.ownerDocument,"touchmove",g):(t.event.bind(t.ownerDocument,"mousemove",g),t.event.once(t.ownerDocument,"mouseup",m),e.preventDefault()),t[u].classList.add(Zi.clicking),e.stopPropagation()}t.event.bind(t[s],"mousedown",(function(t){v(t)})),t.event.bind(t[s],"touchstart",(function(t){v(t,!0)}))}var po={"click-rail":function(t){t.element,t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=n*t.containerHeight,uo(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=n*t.containerWidth,uo(t),e.stopPropagation()}))},"drag-thumb":function(t){ho(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),ho(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(Vi(e,":hover")||Vi(t.scrollbarX,":focus")||Vi(t.scrollbarY,":focus"))){var i,o=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(o){if("IFRAME"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(Vi(i=o,"input,[contenteditable]")||Vi(i,"select,[contenteditable]")||Vi(i,"textarea,[contenteditable]")||Vi(i,"button,[contenteditable]"))return}var r=0,s=0;switch(n.which){case 37:r=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:s=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:r=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:s=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:s=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:s=t.containerHeight;break;case 34:s=-t.containerHeight;break;case 36:s=t.contentHeight;break;case 35:s=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==r||t.settings.suppressScrollY&&0!==s||(e.scrollTop-=s,e.scrollLeft+=r,uo(t),function(n,i){var o=Math.floor(e.scrollTop);if(0===n){if(!t.scrollbarYActive)return!1;if(0===o&&i>0||o>=t.contentHeight-t.containerHeight&&i<0)return!t.settings.wheelPropagation}var r=e.scrollLeft;if(0===i){if(!t.scrollbarXActive)return!1;if(0===r&&n<0||r>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(r,s)&&n.preventDefault())}}))},wheel:function(t){var e=t.element;function n(n){var i=function(t){var e=t.deltaX,n=-1*t.deltaY;return"undefined"!=typeof e&&"undefined"!=typeof n||(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!=e&&n!=n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}(n),o=i[0],r=i[1];if(!function(t,n,i){if(!co.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var o=t;o&&o!==e;){if(o.classList.contains(Ji.consuming))return!0;var r=Ui(o);if(i&&r.overflowY.match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(s>0&&(o.scrollTop>0&&i<0||o.scrollTop0))return!0}if(n&&r.overflowX.match(/(scroll|auto)/)){var a=o.scrollWidth-o.clientWidth;if(a>0&&(o.scrollLeft>0&&n<0||o.scrollLeft0))return!0}o=o.parentNode}return!1}(n.target,o,r)){var s=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(r?e.scrollTop-=r*t.settings.wheelSpeed:e.scrollTop+=o*t.settings.wheelSpeed,s=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(o?e.scrollLeft+=o*t.settings.wheelSpeed:e.scrollLeft-=r*t.settings.wheelSpeed,s=!0):(e.scrollTop-=r*t.settings.wheelSpeed,e.scrollLeft+=o*t.settings.wheelSpeed),uo(t),(s=s||function(n,i){var o=Math.floor(e.scrollTop),r=0===e.scrollTop,s=o+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,l=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(i)>Math.abs(n)?r||s:a||l)||!t.settings.wheelPropagation}(o,r))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}"undefined"!=typeof window.onwheel?t.event.bind(e,"wheel",n):"undefined"!=typeof window.onmousewheel&&t.event.bind(e,"mousewheel",n)},touch:function(t){if(co.supportsTouch||co.supportsIePointer){var e=t.element,n={},i=0,o={},r=null;co.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",u),t.event.bind(e,"touchend",f)):co.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",u),t.event.bind(e,"pointerup",f)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",u),t.event.bind(e,"MSPointerUp",f)))}function s(n,i){e.scrollTop-=i,e.scrollLeft-=n,uo(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function l(t){return(!t.pointerType||"pen"!==t.pointerType||0!==t.buttons)&&(!(!t.targetTouches||1!==t.targetTouches.length)||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function c(t){if(l(t)){var e=a(t);n.pageX=e.pageX,n.pageY=e.pageY,i=(new Date).getTime(),null!==r&&clearInterval(r)}}function u(r){if(l(r)){var c=a(r),u={pageX:c.pageX,pageY:c.pageY},f=u.pageX-n.pageX,h=u.pageY-n.pageY;if(function(t,n,i){if(!e.contains(t))return!1;for(var o=t;o&&o!==e;){if(o.classList.contains(Ji.consuming))return!0;var r=Ui(o);if(i&&r.overflowY.match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(s>0&&(o.scrollTop>0&&i<0||o.scrollTop0))return!0}if(n&&r.overflowX.match(/(scroll|auto)/)){var a=o.scrollWidth-o.clientWidth;if(a>0&&(o.scrollLeft>0&&n<0||o.scrollLeft0))return!0}o=o.parentNode}return!1}(r.target,f,h))return;s(f,h),n=u;var d=(new Date).getTime(),p=d-i;p>0&&(o.x=f/p,o.y=h/p,i=d),function(n,i){var o=Math.floor(e.scrollTop),r=e.scrollLeft,s=Math.abs(n),a=Math.abs(i);if(a>s){if(i<0&&o===t.contentHeight-t.containerHeight||i>0&&0===o)return 0===window.scrollY&&i>0&&co.isChrome}else if(s>a&&(n<0&&r===t.contentWidth-t.containerWidth||n>0&&0===r))return!0;return!0}(f,h)&&r.preventDefault()}}function f(){t.settings.swipeEasing&&(clearInterval(r),r=setInterval((function(){t.isInitialized?clearInterval(r):o.x||o.y?Math.abs(o.x)<.01&&Math.abs(o.y)<.01?clearInterval(r):(s(30*o.x,30*o.y),o.x*=.8,o.y*=.8):clearInterval(r)}),10))}}},go=function(t,e){var n=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var i in this.element=t,t.classList.add($i),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[i]=e[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var o,r,s=function(){return t.classList.add(Zi.focus)},a=function(){return t.classList.remove(Zi.focus)};this.isRtl="rtl"===Ui(t).direction,!0===this.isRtl&&t.classList.add(Gi),this.isNegativeScroll=(r=t.scrollLeft,t.scrollLeft=-1,o=t.scrollLeft<0,t.scrollLeft=r,o),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new ro,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=Qi(Ji.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=Qi(Ji.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=Ui(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=lo(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=lo(l.borderLeftWidth)+lo(l.borderRightWidth),qi(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=lo(l.marginLeft)+lo(l.marginRight),qi(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Qi(Ji.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=Qi(Ji.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=Ui(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=lo(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=Ui(t);return lo(e.width)+lo(e.paddingLeft)+lo(e.paddingRight)+lo(e.borderLeftWidth)+lo(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=lo(c.borderTopWidth)+lo(c.borderBottomWidth),qi(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=lo(c.marginTop)+lo(c.marginBottom),qi(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return po[t](n)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return n.onScroll(t)})),uo(this)};go.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,qi(this.scrollbarXRail,{display:"block"}),qi(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=lo(Ui(this.scrollbarXRail).marginLeft)+lo(Ui(this.scrollbarXRail).marginRight),this.railYMarginHeight=lo(Ui(this.scrollbarYRail).marginTop)+lo(Ui(this.scrollbarYRail).marginBottom),qi(this.scrollbarXRail,{display:"none"}),qi(this.scrollbarYRail,{display:"none"}),uo(this),ao(this,"top",0,!1,!0),ao(this,"left",0,!1,!0),qi(this.scrollbarXRail,{display:""}),qi(this.scrollbarYRail,{display:""}))},go.prototype.onScroll=function(t){this.isAlive&&(uo(this),ao(this,"top",this.element.scrollTop-this.lastScrollTop),ao(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},go.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),zi(this.scrollbarX),zi(this.scrollbarY),zi(this.scrollbarXRail),zi(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},go.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};var mo="sidebar",vo="coreui.sidebar",_o={activeLinksExact:!0,breakpoints:{xs:"c-sidebar-show",sm:"c-sidebar-sm-show",md:"c-sidebar-md-show",lg:"c-sidebar-lg-show",xl:"c-sidebar-xl-show",xxl:"c-sidebar-xxl-show"},dropdownAccordion:!0},bo={activeLinksExact:"boolean",breakpoints:"object",dropdownAccordion:"(string|boolean)"},yo="c-active",wo="c-sidebar-nav-dropdown",Eo="c-show",Lo="c-sidebar-minimized",To="c-sidebar-unfoldable",ko="click.coreui.sidebar.data-api",Oo=".c-sidebar-nav-dropdown-toggle",Co=".c-sidebar-nav-dropdown",So=".c-sidebar-nav-link",Ao=".c-sidebar-nav",xo=".c-sidebar",Do=function(){function t(t,e){if("undefined"==typeof go)throw new TypeError("CoreUI's sidebar require Perfect Scrollbar");this._element=t,this._config=this._getConfig(e),this._open=this._isVisible(),this._mobile=this._isMobile(),this._overlaid=this._isOverlaid(),this._minimize=this._isMinimized(),this._unfoldable=this._isUnfoldable(),this._setActiveLink(),this._ps=null,this._backdrop=null,this._psInit(),this._addEventListeners(),k(t,vo,this)}var n=t.prototype;return n.open=function(t){var e=this;F.trigger(this._element,"open.coreui.sidebar"),this._isMobile()?(this._addClassName(this._firstBreakpointClassName()),this._showBackdrop(),F.one(this._element,c,(function(){e._addClickOutListener()}))):t?(this._addClassName(this._getBreakpointClassName(t)),this._isOverlaid()&&F.one(this._element,c,(function(){e._addClickOutListener()}))):(this._addClassName(this._firstBreakpointClassName()),this._isOverlaid()&&F.one(this._element,c,(function(){e._addClickOutListener()})));var n=p(this._element);F.one(this._element,c,(function(){!0===e._isVisible()&&(e._open=!0,F.trigger(e._element,"opened.coreui.sidebar"))})),v(this._element,n)},n.close=function(t){var e=this;F.trigger(this._element,"close.coreui.sidebar"),this._isMobile()?(this._element.classList.remove(this._firstBreakpointClassName()),this._removeBackdrop(),this._removeClickOutListener()):t?(this._element.classList.remove(this._getBreakpointClassName(t)),this._isOverlaid()&&this._removeClickOutListener()):(this._element.classList.remove(this._firstBreakpointClassName()),this._isOverlaid()&&this._removeClickOutListener());var n=p(this._element);F.one(this._element,c,(function(){!1===e._isVisible()&&(e._open=!1,F.trigger(e._element,"closed.coreui.sidebar"))})),v(this._element,n)},n.toggle=function(t){this._open?this.close(t):this.open(t)},n.minimize=function(){this._isMobile()||(this._addClassName(Lo),this._minimize=!0,this._psDestroy())},n.unfoldable=function(){this._isMobile()||(this._addClassName(To),this._unfoldable=!0)},n.reset=function(){this._element.classList.contains(Lo)&&(this._element.classList.remove(Lo),this._minimize=!1,F.one(this._element,c,this._psInit())),this._element.classList.contains(To)&&(this._element.classList.remove(To),this._unfoldable=!1)},n._getConfig=function(t){return t=o(o(o({},this.constructor.Default),bt.getDataAttributes(this._element)),t),_(mo,t,this.constructor.DefaultType),t},n._isMobile=function(){return Boolean(window.getComputedStyle(this._element,null).getPropertyValue("--is-mobile"))},n._isIOS=function(){var t=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"];if(Boolean(navigator.platform))for(;t.length;)if(navigator.platform===t.pop())return!0;return!1},n._isMinimized=function(){return this._element.classList.contains(Lo)},n._isOverlaid=function(){return this._element.classList.contains("c-sidebar-overlaid")},n._isUnfoldable=function(){return this._element.classList.contains(To)},n._isVisible=function(){var t=this._element.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},n._addClassName=function(t){this._element.classList.add(t)},n._firstBreakpointClassName=function(){return Object.keys(_o.breakpoints).map((function(t){return _o.breakpoints[t]}))[0]},n._getBreakpointClassName=function(t){return _o.breakpoints[t]},n._removeBackdrop=function(){this._backdrop&&(this._backdrop.parentNode.removeChild(this._backdrop),this._backdrop=null)},n._showBackdrop=function(){this._backdrop||(this._backdrop=document.createElement("div"),this._backdrop.className="c-sidebar-backdrop",this._backdrop.classList.add("c-fade"),document.body.appendChild(this._backdrop),E(this._backdrop),this._backdrop.classList.add(Eo))},n._clickOutListener=function(t,e){null===t.target.closest(xo)&&(t.preventDefault(),t.stopPropagation(),e.close())},n._addClickOutListener=function(){var t=this;F.on(document,ko,(function(e){t._clickOutListener(e,t)}))},n._removeClickOutListener=function(){F.off(document,ko)},n._getAllSiblings=function(t,e){var n=[];t=t.parentNode.firstChild;do{3!==t.nodeType&&8!==t.nodeType&&(e&&!e(t)||n.push(t))}while(t=t.nextSibling);return n},n._toggleDropdown=function(t,e){var n=t.target;n.classList.contains("c-sidebar-nav-dropdown-toggle")||(n=n.closest(Oo));var i=n.closest(Ao).dataset;"undefined"!=typeof i.dropdownAccordion&&(_o.dropdownAccordion=JSON.parse(i.dropdownAccordion)),!0===_o.dropdownAccordion&&this._getAllSiblings(n.parentElement,(function(t){return Boolean(t.classList.contains(wo))})).forEach((function(t){t!==n.parentNode&&t.classList.contains(wo)&&t.classList.remove(Eo)})),n.parentNode.classList.toggle(Eo),e._psUpdate()},n._psInit=function(){this._element.querySelector(Ao)&&!this._isIOS()&&(this._ps=new go(this._element.querySelector(Ao),{suppressScrollX:!0,wheelPropagation:!1}))},n._psUpdate=function(){this._ps&&this._ps.update()},n._psDestroy=function(){this._ps&&(this._ps.destroy(),this._ps=null)},n._getParents=function(t,e){for(var n=[];t&&t!==document;t=t.parentNode)e?t.matches(e)&&n.push(t):n.push(t);return n},n._setActiveLink=function(){var t=this;Array.from(this._element.querySelectorAll(So)).forEach((function(e){var n=String(window.location);(/\?.*=/.test(n)||/\?./.test(n))&&(n=n.split("?")[0]),/#./.test(n)&&(n=n.split("#")[0]);var i=e.closest(Ao).dataset;"undefined"!=typeof i.activeLinksExact&&(_o.activeLinksExact=JSON.parse(i.activeLinksExact)),_o.activeLinksExact&&e.href===n&&(e.classList.add(yo),Array.from(t._getParents(e,Co)).forEach((function(t){t.classList.add(Eo)}))),!_o.activeLinksExact&&e.href.startsWith(n)&&(e.classList.add(yo),Array.from(t._getParents(e,Co)).forEach((function(t){t.classList.add(Eo)})))}))},n._addEventListeners=function(){var t=this;this._mobile&&this._open&&this._addClickOutListener(),this._overlaid&&this._open&&this._addClickOutListener(),F.on(this._element,"classtoggle",(function(e){if(e.detail.className===Lo&&(t._element.classList.contains(Lo)?t.minimize():t.reset()),e.detail.className===To&&(t._element.classList.contains(To)?t.unfoldable():t.reset()),"undefined"!=typeof Object.keys(_o.breakpoints).find((function(t){return _o.breakpoints[t]===e.detail.className}))){var n=e.detail.className,i=Object.keys(_o.breakpoints).find((function(t){return _o.breakpoints[t]===n}));e.detail.add?t.open(i):t.close(i)}})),F.on(this._element,ko,Oo,(function(e){e.preventDefault(),t._toggleDropdown(e,t)})),F.on(this._element,ko,So,(function(){t._isMobile()&&t.close()}))},t._sidebarInterface=function(e,n){var i=O(e,vo);if(i||(i=new t(e,"object"==typeof n&&n)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}},t.jQueryInterface=function(e){return this.each((function(){t._sidebarInterface(this,e)}))},t.getInstance=function(t){return O(t,vo)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"Default",get:function(){return _o}},{key:"DefaultType",get:function(){return bo}}]),t}();F.on(window,"load.coreui.sidebar.data-api",(function(){Array.from(document.querySelectorAll(xo)).forEach((function(t){Do._sidebarInterface(t)}))}));var jo=L();if(jo){var No=jo.fn.sidebar;jo.fn.sidebar=Do.jQueryInterface,jo.fn.sidebar.Constructor=Do,jo.fn.sidebar.noConflict=function(){return jo.fn.sidebar=No,Do.jQueryInterface}}var Io="coreui.tab",Po="active",Ro="fade",Mo="show",Ho=".active",Wo=":scope > li > .active",Yo=function(){function t(t){this._element=t,k(this._element,Io,this)}var n=t.prototype;return n.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Po)||this._element.classList.contains("disabled"))){var e,n=d(this._element),i=this._element.closest(".nav, .list-group");if(i){var o="UL"===i.nodeName||"OL"===i.nodeName?Wo:Ho;e=(e=at.find(o,i))[e.length-1]}var r=null;if(e&&(r=F.trigger(e,"hide.coreui.tab",{relatedTarget:this._element})),!(F.trigger(this._element,"show.coreui.tab",{relatedTarget:e}).defaultPrevented||null!==r&&r.defaultPrevented)){this._activate(this._element,i);var s=function(){F.trigger(e,"hidden.coreui.tab",{relatedTarget:t._element}),F.trigger(t._element,"shown.coreui.tab",{relatedTarget:e})};n?this._activate(n,n.parentNode,s):s()}}},n.dispose=function(){C(this._element,Io),this._element=null},n._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?at.children(e,Ho):at.find(Wo,e))[0],r=n&&o&&o.classList.contains(Ro),s=function(){return i._transitionComplete(t,o,n)};if(o&&r){var a=p(o);o.classList.remove(Mo),F.one(o,c,s),v(o,a)}else s()},n._transitionComplete=function(t,e,n){if(e){e.classList.remove(Po);var i=at.findOne(":scope > .dropdown-menu .active",e.parentNode);i&&i.classList.remove(Po),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}(t.classList.add(Po),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),E(t),t.classList.contains(Ro)&&t.classList.add(Mo),t.parentNode&&t.parentNode.classList.contains("dropdown-menu"))&&(t.closest(".dropdown")&&at.find(".dropdown-toggle").forEach((function(t){return t.classList.add(Po)})),t.setAttribute("aria-expanded",!0));n&&n()},t.jQueryInterface=function(e){return this.each((function(){var n=O(this,Io)||new t(this);if("string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t.getInstance=function(t){return O(t,Io)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}}]),t}();F.on(document,"click.coreui.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),(O(this,Io)||new Yo(this)).show()}));var Xo=L();if(Xo){var Bo=Xo.fn.tab;Xo.fn.tab=Yo.jQueryInterface,Xo.fn.tab.Constructor=Yo,Xo.fn.tab.noConflict=function(){return Xo.fn.tab=Bo,Yo.jQueryInterface}}var Uo,qo,Qo,Fo,Vo,zo="toast",Ko="coreui.toast",$o="."+Ko,Go="click.dismiss"+$o,Jo="hide",Zo="show",tr="showing",er={animation:"boolean",autohide:"boolean",delay:"number"},nr={animation:!0,autohide:!0,delay:5e3},ir=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners(),k(t,Ko,this)}var n=t.prototype;return n.show=function(){var t=this;if(!F.trigger(this._element,"show.coreui.toast").defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var e=function(){t._element.classList.remove(tr),t._element.classList.add(Zo),F.trigger(t._element,"shown.coreui.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(Jo),E(this._element),this._element.classList.add(tr),this._config.animation){var n=p(this._element);F.one(this._element,c,e),v(this._element,n)}else e()}},n.hide=function(){var t=this;if(this._element.classList.contains(Zo)&&!F.trigger(this._element,"hide.coreui.toast").defaultPrevented){var e=function(){t._element.classList.add(Jo),F.trigger(t._element,"hidden.coreui.toast")};if(this._element.classList.remove(Zo),this._config.animation){var n=p(this._element);F.one(this._element,c,e),v(this._element,n)}else e()}},n.dispose=function(){this._clearTimeout(),this._element.classList.contains(Zo)&&this._element.classList.remove(Zo),F.off(this._element,Go),C(this._element,Ko),this._element=null,this._config=null},n._getConfig=function(t){return t=o(o(o({},nr),bt.getDataAttributes(this._element)),"object"==typeof t&&t?t:{}),_(zo,t,this.constructor.DefaultType),t},n._setListeners=function(){var t=this;F.on(this._element,Go,'[data-dismiss="toast"]',(function(){return t.hide()}))},n._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t.jQueryInterface=function(e){return this.each((function(){var n=O(this,Ko);if(n||(n=new t(this,"object"==typeof e&&e)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e](this)}}))},t.getInstance=function(t){return O(t,Ko)},e(t,null,[{key:"VERSION",get:function(){return"3.2.2"}},{key:"DefaultType",get:function(){return er}},{key:"Default",get:function(){return nr}}]),t}(),or=L();if(or){var rr=or.fn.toast;or.fn.toast=ir.jQueryInterface,or.fn.toast.Constructor=ir,or.fn.toast.noConflict=function(){return or.fn.toast=rr,ir.jQueryInterface}}return Array.from||(Array.from=(Uo=Object.prototype.toString,qo=function(t){return"function"==typeof t||"[object Function]"===Uo.call(t)},Qo=Math.pow(2,53)-1,Fo=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),Qo)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i,o=arguments.length>1?arguments[1]:void 0;if("undefined"!=typeof o){if(!qo(o))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(i=arguments[2])}for(var r,s=Fo(n.length),a=qo(e)?Object(new e(s)):new Array(s),l=0;l=0&&e.item(n)!==this;);return n>-1}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var i=arguments[1],o=0;o-1||(t.prototype=window.Event.prototype,window.CustomEvent=t)}(),{AsyncLoad:tt,Alert:ot,Button:pt,Carousel:Dt,ClassToggler:Xt,Collapse:te,Dropdown:Cn,Modal:Kn,Popover:Si,Scrollspy:Yi,Sidebar:Do,Tab:Yo,Toast:ir,Tooltip:_i}})); //# sourceMappingURL=coreui.bundle.min.js.map