hap-homematic
Version:
provides a homekit bridge to the ccu
6 lines • 118 kB
JavaScript
/*!
* CoreUI v3.0.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=t||self).coreui=e()}(this,(function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function e(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var o,s,a,l=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},c=function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():null}return e},u=function(t){var e=c(t);return e&&document.querySelector(e)?e:null},f=function(t){var e=c(t);return e?document.querySelector(e):null},h=function(t){if(!t)return 0;var e=window.getComputedStyle(t),n=e.transitionDuration,i=e.transitionDelay,r=parseFloat(n),o=parseFloat(i);return r||o?(n=n.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(n)+parseFloat(i))):0},d=function(t){var e=document.createEvent("HTMLEvents");e.initEvent("transitionend",!0,!0),t.dispatchEvent(e)},p=function(t){return(t[0]||t).nodeType},g=function(t,e){var n=!1,i=e+5;t.addEventListener("transitionend",(function e(){n=!0,t.removeEventListener("transitionend",e)})),setTimeout((function(){n||d(t)}),i)},m=function(t,e,n){Object.keys(n).forEach((function(i){var r,o=n[i],s=e[i],a=s&&p(s)?"element":(r=s,{}.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}))},v=function(t){return t?[].slice.call(t):[]},_=function(t){if(!t)return!1;if(t.style&&t.parentNode&&t.parentNode.style){var e=getComputedStyle(t),n=getComputedStyle(t.parentNode);return"none"!==e.display&&"none"!==n.display&&"hidden"!==e.visibility}return!1},b=function(){return function(){}},y=function(t){return t.offsetHeight},E=function(){var t=window.jQuery;return t&&!document.body.hasAttribute("data-no-jquery")?t:null},w=(o={},s=1,{set:function(t,e,n){"undefined"==typeof t.key&&(t.key={key:e,id:s},s++),o[t.key.id]=n},get:function(t,e){if(!t||"undefined"==typeof t.key)return null;var n=t.key;return n.key===e?o[n.id]:null},delete:function(t,e){if("undefined"!=typeof t.key){var n=t.key;n.key===e&&(delete o[n.id],delete t.key)}}}),A=function(t,e,n){w.set(t,e,n)},L=function(t,e){return w.get(t,e)},T=function(t,e){w.delete(t,e)},S=Element.prototype,D=S.matches,C=S.closest,O=Element.prototype.querySelectorAll,I=Element.prototype.querySelector,k=function(t,e){return new CustomEvent(t,e)};if("function"!=typeof window.CustomEvent&&(k=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}),!((a=document.createEvent("CustomEvent")).initEvent("Bootstrap",!0,!0),a.preventDefault(),a.defaultPrevented)){var N=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(N.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var P=function(){var t=k("Bootstrap",{cancelable:!0}),e=document.createElement("div");return e.addEventListener("Bootstrap",(function(){return null})),t.preventDefault(),e.dispatchEvent(t),t.defaultPrevented}();D||(D=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),C||(C=function(t){var e=this;do{if(D.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var H=/:scope\b/;(function(){var t=document.createElement("div");try{t.querySelectorAll(":scope *")}catch(t){return!1}return!0})()||(O=function(t){if(!H.test(t))return this.querySelectorAll(t);var e=Boolean(this.id);e||(this.id=l("scope"));var n=null;try{t=t.replace(H,"#"+this.id),n=this.querySelectorAll(t)}finally{e||this.removeAttribute("id")}return n},I=function(t){if(!H.test(t))return this.querySelector(t);var e=O.call(this,t);return"undefined"!=typeof e[0]?e[0]:null});var x=E(),W=/[^.]*(?=\..*)\.|.*/,M=/\..*/,R=/^key/,j=/::\d+$/,Y={},X=1,B={mouseenter:"mouseover",mouseleave:"mouseout"},U=["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"];function K(t,e){return e&&e+"::"+X++||t.uidEvent||X++}function V(t){var e=K(t);return t.uidEvent=e,Y[e]=Y[e]||{},Y[e]}function q(t,e){null===t.which&&R.test(t.type)&&(t.which=null===t.charCode?t.keyCode:t.charCode),t.delegateTarget=e}function F(t,e,n){void 0===n&&(n=null);for(var i=Object.keys(t),r=0,o=i.length;r<o;r++){var s=t[i[r]];if(s.originalHandler===e&&s.delegationSelector===n)return s}return null}function Q(t,e,n){var i="string"==typeof e,r=i?n:e,o=t.replace(M,""),s=B[o];return s&&(o=s),U.indexOf(o)>-1||(o=t),[i,r,o]}function z(t,e,n,i,r){if("string"==typeof e&&t){n||(n=i,i=null);var o=Q(e,n,i),s=o[0],a=o[1],l=o[2],c=V(t),u=c[l]||(c[l]={}),f=F(u,a,s?n:null);if(f)f.oneOff=f.oneOff&&r;else{var h=K(a,e.replace(W,"")),d=s?function(t,e,n){return function i(r){for(var o=t.querySelectorAll(e),s=r.target;s&&s!==this;s=s.parentNode)for(var a=o.length;a--;)if(o[a]===s)return q(r,s),i.oneOff&&$.off(t,r.type,n),n.apply(s,[r]);return null}}(t,n,i):function(t,e){return function n(i){return q(i,t),n.oneOff&&$.off(t,i.type,e),e.apply(t,[i])}}(t,n);d.delegationSelector=s?n:null,d.originalHandler=a,d.oneOff=r,d.uidEvent=h,u[h]=d,t.addEventListener(l,d,s)}}}function G(t,e,n,i,r){var o=F(e[n],i,r);o&&(t.removeEventListener(n,o,Boolean(r)),delete e[n][o.uidEvent])}var $={on:function(t,e,n,i){z(t,e,n,i,!1)},one:function(t,e,n,i){z(t,e,n,i,!0)},off:function(t,e,n,i){if("string"==typeof e&&t){var r=Q(e,n,i),o=r[0],s=r[1],a=r[2],l=a!==e,c=V(t),u="."===e.charAt(0);if("undefined"==typeof s){u&&Object.keys(c).forEach((function(n){!function(t,e,n,i){var r=e[n]||{};Object.keys(r).forEach((function(o){if(o.indexOf(i)>-1){var s=r[o];G(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(j,"");if(!l||e.indexOf(i)>-1){var r=f[n];G(t,c,a,r.originalHandler,r.delegationSelector)}}))}else{if(!c||!c[a])return;G(t,c,a,s,o?n:null)}}},trigger:function(t,e,n){if("string"!=typeof e||!t)return null;var i,r=e.replace(M,""),o=e!==r,s=U.indexOf(r)>-1,a=!0,l=!0,c=!1,u=null;return o&&x&&(i=x.Event(e,n),x(t).trigger(i),a=!i.isPropagationStopped(),l=!i.isImmediatePropagationStopped(),c=i.isDefaultPrevented()),s?(u=document.createEvent("HTMLEvents")).initEvent(r,a,!0):u=k(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(),P||Object.defineProperty(u,"defaultPrevented",{get:function(){return!0}})),l&&t.dispatchEvent(u),u.defaultPrevented&&"undefined"!=typeof i&&i.preventDefault(),u}},Z="asyncLoad",J={ACTIVE:"c-active",NAV_DROPDOWN_TOGGLE:"c-sidebar-nav-dropdown-toggle",SHOW:"c-show",VIEW_SCRIPT:"view-script"},tt={CLICK_DATA_API:"click.coreui.asyncLoad.data-api",XHR_STATUS:"xhr"},et=".c-sidebar-nav-dropdown",nt=".c-xhr-link, .c-sidebar-nav-link",it=".c-sidebar-nav-item",rt=".view-script",ot={defaultPage:"main.html",errorPage:"404.html",subpagesDirectory:"views/"},st=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=r({},ot,{},t)},n._loadPage=function(t){var e=this,n=this._element,i=this._config,r=new XMLHttpRequest;r.open("GET",i.subpagesDirectory+t);var o=new CustomEvent(tt.XHR_STATUS,{detail:{url:t,status:r.status}});n.dispatchEvent(o),r.onload=function(s){if(200===r.status){o=new CustomEvent(tt.XHR_STATUS,{detail:{url:t,status:r.status}}),n.dispatchEvent(o);var a=document.createElement("div");a.innerHTML=s.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(rt)).length&&c.forEach((function(t){t.remove()})),l.length&&function t(n,i){void 0===i&&(i=0);var r=document.createElement("script");r.type="text/javascript",r.src=n[i],r.className=J.VIEW_SCRIPT,r.onload=r.onreadystatechange=function(){e.readyState&&"complete"!==e.readyState||n.length>i+1&&t(n,i+1)},document.getElementsByTagName("body")[0].appendChild(r)}(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(nt)).forEach((function(t){t.classList.remove(J.ACTIVE)})),Array.from(document.querySelectorAll(nt)).forEach((function(t){t.classList.remove(J.ACTIVE)})),Array.from(document.querySelectorAll(et)).forEach((function(t){t.classList.remove(J.SHOW)})),Array.from(document.querySelectorAll(et)).forEach((function(e){Array.from(e.querySelectorAll('a[href*="'+t+'"]')).length>0&&e.classList.add(J.SHOW)})),Array.from(document.querySelectorAll(it+' a[href*="'+t+'"]')).forEach((function(t){t.classList.add(J.ACTIVE)})),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;$.on(document,tt.CLICK_DATA_API,nt,(function(e){e.preventDefault();var n=e.target;n.classList.contains(J.NAV_LINK)||(n=n.closest(nt)),n.classList.contains(J.NAV_DROPDOWN_TOGGLE)||"#"===n.getAttribute("href")||t._update(n)}))},t._asyncLoadInterface=function(e,n){var i=L(e,"coreui.asyncLoad");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.0.0"}},{key:"Default",get:function(){return ot}}]),t}(),at=E();if(at){var lt=at.fn[Z];at.fn[Z]=st.jQueryInterface,at.fn[Z].Constructor=st,at.fn[Z].noConflict=function(){return at.fn[Z]=lt,st.jQueryInterface}}var ct={matches:function(t,e){return D.call(t,e)},find:function(t,e){return void 0===e&&(e=document.documentElement),O.call(e,t)},findOne:function(t,e){return void 0===e&&(e=document.documentElement),I.call(e,t)},children:function(t,e){var n=this,i=v(t.children);return i.filter((function(t){return n.matches(t,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},closest:function(t,e){return C.call(t,e)},prev:function(t,e){for(var n=[],i=t.previousSibling;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)this.matches(i,e)&&n.push(i),i=i.previousSibling;return n}},ut={CLOSE:"close.coreui.alert",CLOSED:"closed.coreui.alert",CLICK_DATA_API:"click.coreui.alert.data-api"},ft="alert",ht="fade",dt="show",pt=function(){function t(t){this._element=t,this._element&&A(t,"coreui.alert",this)}var n=t.prototype;return n.close=function(t){var e=this._element;t&&(e=this._getRootElement(t));var n=this._triggerCloseEvent(e);null===n||n.defaultPrevented||this._removeElement(e)},n.dispose=function(){T(this._element,"coreui.alert"),this._element=null},n._getRootElement=function(t){var e=f(t);return e||(e=ct.closest(t,"."+ft)),e},n._triggerCloseEvent=function(t){return $.trigger(t,ut.CLOSE)},n._removeElement=function(t){var e=this;if(t.classList.remove(dt),t.classList.contains(ht)){var n=h(t);$.one(t,"transitionend",(function(){return e._destroyElement(t)})),g(t,n)}else this._destroyElement(t)},n._destroyElement=function(t){t.parentNode&&t.parentNode.removeChild(t),$.trigger(t,ut.CLOSED)},t.jQueryInterface=function(e){return this.each((function(){var n=L(this,"coreui.alert");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 L(t,"coreui.alert")},e(t,null,[{key:"VERSION",get:function(){return"3.0.0"}}]),t}();$.on(document,ut.CLICK_DATA_API,'[data-dismiss="alert"]',pt.handleDismiss(new pt));var gt=E();if(gt){var mt=gt.fn.alert;gt.fn.alert=pt.jQueryInterface,gt.fn.alert.Constructor=pt,gt.fn.alert.noConflict=function(){return gt.fn.alert=mt,pt.jQueryInterface}}var vt="coreui.button",_t="active",bt="btn",yt="focus",Et='[data-toggle^="button"]',wt='[data-toggle="buttons"]',At='input:not([type="hidden"])',Lt=".active",Tt=".btn",St={CLICK_DATA_API:"click.coreui.button.data-api",FOCUS_DATA_API:"focus.coreui.button.data-api",BLUR_DATA_API:"blur.coreui.button.data-api"},Dt=function(){function t(t){this._element=t,A(t,vt,this)}var n=t.prototype;return n.toggle=function(){var t=!0,e=!0,n=ct.closest(this._element,wt);if(n){var i=ct.findOne(At,this._element);if(i&&"radio"===i.type){if(i.checked&&this._element.classList.contains(_t))t=!1;else{var r=ct.findOne(Lt,n);r&&r.classList.remove(_t)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(_t),$.trigger(i,"change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(_t)),t&&this._element.classList.toggle(_t)},n.dispose=function(){T(this._element,vt),this._element=null},t.jQueryInterface=function(e){return this.each((function(){var n=L(this,vt);n||(n=new t(this)),"toggle"===e&&n[e]()}))},t.getInstance=function(t){return L(t,vt)},e(t,null,[{key:"VERSION",get:function(){return"3.0.0"}}]),t}();$.on(document,St.CLICK_DATA_API,Et,(function(t){t.preventDefault();var e=t.target;e.classList.contains(bt)||(e=ct.closest(e,Tt));var n=L(e,vt);n||(n=new Dt(e)),n.toggle()})),$.on(document,St.FOCUS_DATA_API,Et,(function(t){var e=ct.closest(t.target,Tt);e&&e.classList.add(yt)})),$.on(document,St.BLUR_DATA_API,Et,(function(t){var e=ct.closest(t.target,Tt);e&&e.classList.remove(yt)}));var Ct=E();if(Ct){var Ot=Ct.fn.button;Ct.fn.button=Dt.jQueryInterface,Ct.fn.button.Constructor=Dt,Ct.fn.button.noConflict=function(){return Ct.fn.button=Ot,Dt.jQueryInterface}}function It(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function kt(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))}var Nt={setDataAttribute:function(t,e,n){t.setAttribute("data-"+kt(e),n)},removeDataAttribute:function(t,e){t.removeAttribute("data-"+kt(e))},getDataAttributes:function(t){if(!t)return{};var e=r({},t.dataset);return Object.keys(e).forEach((function(t){e[t]=It(e[t])})),e},getDataAttribute:function(t,e){return It(t.getAttribute("data-"+kt(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))}},Pt="carousel",Ht="coreui.carousel",xt="."+Ht,Wt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Mt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Rt="next",jt="prev",Yt="left",Xt="right",Bt={SLIDE:"slide"+xt,SLID:"slid"+xt,KEYDOWN:"keydown"+xt,MOUSEENTER:"mouseenter"+xt,MOUSELEAVE:"mouseleave"+xt,TOUCHSTART:"touchstart"+xt,TOUCHMOVE:"touchmove"+xt,TOUCHEND:"touchend"+xt,POINTERDOWN:"pointerdown"+xt,POINTERUP:"pointerup"+xt,DRAG_START:"dragstart"+xt,LOAD_DATA_API:"load"+xt+".data-api",CLICK_DATA_API:"click"+xt+".data-api"},Ut="carousel",Kt="active",Vt="slide",qt="carousel-item-right",Ft="carousel-item-left",Qt="carousel-item-next",zt="carousel-item-prev",Gt="pointer-event",$t=".active",Zt=".active.carousel-item",Jt=".carousel-item",te=".carousel-item img",ee=".carousel-item-next, .carousel-item-prev",ne=".carousel-indicators",ie="[data-slide], [data-slide-to]",re='[data-ride="carousel"]',oe={TOUCH:"touch",PEN:"pen"},se=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=ct.findOne(ne,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners(),A(t,Ht,this)}var n=t.prototype;return n.next=function(){this._isSliding||this._slide(Rt)},n.nextWhenVisible=function(){!document.hidden&&_(this._element)&&this.next()},n.prev=function(){this._isSliding||this._slide(jt)},n.pause=function(t){t||(this._isPaused=!0),ct.findOne(ee,this._element)&&(d(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=ct.findOne(Zt,this._element);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)$.one(this._element,Bt.SLID,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?Rt:jt;this._slide(i,this._items[t])}},n.dispose=function(){$.off(this._element,xt),T(this._element,Ht),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=r({},Wt,{},t),m(Pt,t,Mt),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&&$.on(this._element,Bt.KEYDOWN,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&($.on(this._element,Bt.MOUSEENTER,(function(e){return t.pause(e)})),$.on(this._element,Bt.MOUSELEAVE,(function(e){return t.cycle(e)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this,e=function(e){t._pointerEvent&&oe[e.pointerType.toUpperCase()]?t.touchStartX=e.clientX:t._pointerEvent||(t.touchStartX=e.touches[0].clientX)},n=function(e){t._pointerEvent&&oe[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))};v(ct.find(te,this._element)).forEach((function(t){$.on(t,Bt.DRAG_START,(function(t){return t.preventDefault()}))})),this._pointerEvent?($.on(this._element,Bt.POINTERDOWN,(function(t){return e(t)})),$.on(this._element,Bt.POINTERUP,(function(t){return n(t)})),this._element.classList.add(Gt)):($.on(this._element,Bt.TOUCHSTART,(function(t){return e(t)})),$.on(this._element,Bt.TOUCHMOVE,(function(e){return function(e){e.touches&&e.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.touches[0].clientX-t.touchStartX}(e)})),$.on(this._element,Bt.TOUCHEND,(function(t){return n(t)})))},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?v(ct.find(Jt,t.parentNode)):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n=t===Rt,i=t===jt,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=(r+(t===jt?-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(ct.findOne(Zt,this._element));return $.trigger(this._element,Bt.SLIDE,{relatedTarget:t,direction:e,from:i,to:n})},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){for(var e=ct.find($t,this._indicatorsElement),n=0;n<e.length;n++)e[n].classList.remove(Kt);var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&i.classList.add(Kt)}},n._slide=function(t,e){var n,i,r,o=this,s=ct.findOne(Zt,this._element),a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),u=Boolean(this._interval);if(t===Rt?(n=Ft,i=Qt,r=Yt):(n=qt,i=zt,r=Xt),l&&l.classList.contains(Kt))this._isSliding=!1;else if(!this._triggerSlideEvent(l,r).defaultPrevented&&s&&l){if(this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(l),this._element.classList.contains(Vt)){l.classList.add(i),y(l),s.classList.add(n),l.classList.add(n);var f=parseInt(l.getAttribute("data-interval"),10);f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=f):this._config.interval=this._config.defaultInterval||this._config.interval;var d=h(s);$.one(s,"transitionend",(function(){l.classList.remove(n),l.classList.remove(i),l.classList.add(Kt),s.classList.remove(Kt),s.classList.remove(i),s.classList.remove(n),o._isSliding=!1,setTimeout((function(){$.trigger(o._element,Bt.SLID,{relatedTarget:l,direction:r,from:a,to:c})}),0)})),g(s,d)}else s.classList.remove(Kt),l.classList.add(Kt),this._isSliding=!1,$.trigger(this._element,Bt.SLID,{relatedTarget:l,direction:r,from:a,to:c});u&&this.cycle()}},t.carouselInterface=function(e,n){var i=L(e,Ht),o=r({},Wt,{},Nt.getDataAttributes(e));"object"==typeof n&&(o=r({},o,{},n));var s="string"==typeof n?n:o.slide;if(i||(i=new t(e,o)),"number"==typeof n)i.to(n);else if("string"==typeof s){if("undefined"==typeof i[s])throw new TypeError('No method named "'+s+'"');i[s]()}else o.interval&&o.ride&&(i.pause(),i.cycle())},t.jQueryInterface=function(e){return this.each((function(){t.carouselInterface(this,e)}))},t.dataApiClickHandler=function(e){var n=f(this);if(n&&n.classList.contains(Ut)){var i=r({},Nt.getDataAttributes(n),{},Nt.getDataAttributes(this)),o=this.getAttribute("data-slide-to");o&&(i.interval=!1),t.carouselInterface(n,i),o&&L(n,Ht).to(o),e.preventDefault()}},t.getInstance=function(t){return L(t,Ht)},e(t,null,[{key:"VERSION",get:function(){return"3.0.0"}},{key:"Default",get:function(){return Wt}}]),t}();$.on(document,Bt.CLICK_DATA_API,ie,se.dataApiClickHandler),$.on(window,Bt.LOAD_DATA_API,(function(){for(var t=v(ct.find(re)),e=0,n=t.length;e<n;e++)se.carouselInterface(t[e],L(t[e],Ht))}));var ae=E();if(ae){var le=ae.fn[Pt];ae.fn[Pt]=se.jQueryInterface,ae.fn[Pt].Constructor=se,ae.fn[Pt].noConflict=function(){return ae.fn[Pt]=le,se.jQueryInterface}}var ce="class-toggler",ue="-sm,-md,-lg,-xl",fe="-show",he=!1,de="body",pe="c-class-toggler",ge={CLASS_TOGGLE:"classtoggle",CLICK_DATA_API:"click.coreui.class-toggler.data-api"},me=".c-class-toggler",ve=function(){function t(t){this._element=t}var n=t.prototype;return n.toggle=function(){var t=this;this._getElementDataAttributes(this._element).forEach((function(e){var n,i=e.target,r=e.toggle;n="_parent"===i||"parent"===i?t._element.parentNode:document.querySelector(i),r.forEach((function(e){var r=e.className,o=e.responsive,s=e.postfix,a="undefined"==typeof e.breakpoints||null===e.breakpoints?null:t._arrayFromString(e.breakpoints);if(o){var l;a.forEach((function(t){r.includes(t)&&(l=t)}));var c=[];"undefined"==typeof l?c.push(r):(c.push(r.replace(""+l+s,s)),a.splice(0,a.indexOf(l)+1).forEach((function(t){c.push(r.replace(""+l+s,""+t+s))})));var u=!1;if(c.forEach((function(t){n.classList.contains(t)&&(u=!0)})),u)c.forEach((function(t){n.classList.remove(t);var e=new CustomEvent(ge.CLASS_TOGGLE,{detail:{target:i,add:!1,className:t}});n.dispatchEvent(e)}));else{n.classList.add(r);var f=new CustomEvent(ge.CLASS_TOGGLE,{detail:{target:i,add:!0,className:r}});n.dispatchEvent(f)}}else{var h=n.classList.toggle(r),d=new CustomEvent(ge.CLASS_TOGGLE,{detail:{target:i,add:h,className:r}});n.dispatchEvent(d)}}))}))},n._arrayFromString=function(t){return t.replace(/ /g,"").split(",")},n._isArray=function(t){try{return JSON.parse(t.replace(/'/g,'"')),!0}catch(t){return!1}},n._convertToArray=function(t){return JSON.parse(t.replace(/'/g,'"'))},n._getDataAttributes=function(t,e){var n=t[e];return this._isArray(n)?this._convertToArray(n):n},n._getToggleDetails=function(t,e,n,i){var r=function(t,e,n,i){void 0===e&&(e=he),this.className=t,this.responsive=e,this.breakpoints=n,this.postfix=i},o=[];return Array.isArray(t)?t.forEach((function(t,s){e=Array.isArray(e)?e[s]:e,n=e?Array.isArray(n)?n[s]:n:null,i=e?Array.isArray(i)?i[s]:i:null,o.push(new r(t,e,n,i))})):(n=e?n:null,i=e?i:null,o.push(new r(t,e,n,i))),o},n._ifArray=function(t,e){return Array.isArray(t)?t[e]:t},n._getElementDataAttributes=function(t){var e=this,n=t.dataset,i="undefined"==typeof n.target?de:this._getDataAttributes(n,"target"),r="undefined"==typeof n.class?"undefined":this._getDataAttributes(n,"class"),o="undefined"==typeof n.responsive?he:this._getDataAttributes(n,"responsive"),s="undefined"==typeof n.breakpoints?ue:this._getDataAttributes(n,"breakpoints"),a="undefined"==typeof n.postfix?fe:this._getDataAttributes(n,"postfix"),l=[],c=function(t,e){this.target=t,this.toggle=e};return Array.isArray(i)?i.forEach((function(t,n){l.push(new c(t,e._getToggleDetails(e._ifArray(r,n),e._ifArray(o,n),e._ifArray(s,n),e._ifArray(a,n))))})):l.push(new c(i,this._getToggleDetails(r,o,s,a))),l},t._classTogglerInterface=function(e,n){var i=L(e,"coreui.class-toggler");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.0.0"}}]),t}();$.on(document,ge.CLICK_DATA_API,me,(function(t){t.preventDefault();var e=t.target;e.classList.contains(pe)||(e=e.closest(me)),ve._classTogglerInterface(e,"toggle")}));var _e=E();if(_e){var be=_e.fn[ce];_e.fn[ce]=ve.jQueryInterface,_e.fn[ce].Constructor=ve,_e.fn[ce].noConflict=function(){return _e.fn[ce]=be,ve.jQueryInterface}}var ye="collapse",Ee="coreui.collapse",we="."+Ee,Ae={toggle:!0,parent:""},Le={toggle:"boolean",parent:"(string|element)"},Te={SHOW:"show"+we,SHOWN:"shown"+we,HIDE:"hide"+we,HIDDEN:"hidden"+we,CLICK_DATA_API:"click"+we+".data-api"},Se="show",De="collapse",Ce="collapsing",Oe="collapsed",Ie="width",ke="height",Ne=".show, .collapsing",Pe='[data-toggle="collapse"]',He=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=v(ct.find('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=v(ct.find(Pe)),i=0,r=n.length;i<r;i++){var o=n[i],s=u(o),a=v(ct.find(s)).filter((function(e){return e===t}));null!==s&&a.length&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle(),A(t,Ee,this)}var n=t.prototype;return n.toggle=function(){this._element.classList.contains(Se)?this.hide():this.show()},n.show=function(){var e=this;if(!this._isTransitioning&&!this._element.classList.contains(Se)){var n,i;this._parent&&0===(n=v(ct.find(Ne,this._parent)).filter((function(t){return"string"==typeof e._config.parent?t.getAttribute("data-parent")===e._config.parent:t.classList.contains(De)}))).length&&(n=null);var r=ct.findOne(this._selector);if(n){var o=n.filter((function(t){return r!==t}));if((i=o[0]?L(o[0],Ee):null)&&i._isTransitioning)return}if(!$.trigger(this._element,Te.SHOW).defaultPrevented){n&&n.forEach((function(e){r!==e&&t.collapseInterface(e,"hide"),i||A(e,Ee,null)}));var s=this._getDimension();this._element.classList.remove(De),this._element.classList.add(Ce),this._element.style[s]=0,this._triggerArray.length&&this._triggerArray.forEach((function(t){t.classList.remove(Oe),t.setAttribute("aria-expanded",!0)})),this.setTransitioning(!0);var a="scroll"+(s[0].toUpperCase()+s.slice(1)),l=h(this._element);$.one(this._element,"transitionend",(function(){e._element.classList.remove(Ce),e._element.classList.add(De),e._element.classList.add(Se),e._element.style[s]="",e.setTransitioning(!1),$.trigger(e._element,Te.SHOWN)})),g(this._element,l),this._element.style[s]=this._element[a]+"px"}}},n.hide=function(){var t=this;if(!this._isTransitioning&&this._element.classList.contains(Se)&&!$.trigger(this._element,Te.HIDE).defaultPrevented){var e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",y(this._element),this._element.classList.add(Ce),this._element.classList.remove(De),this._element.classList.remove(Se);var n=this._triggerArray.length;if(n>0)for(var i=0;i<n;i++){var r=this._triggerArray[i],o=f(r);o&&!o.classList.contains(Se)&&(r.classList.add(Oe),r.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);this._element.style[e]="";var s=h(this._element);$.one(this._element,"transitionend",(function(){t.setTransitioning(!1),t._element.classList.remove(Ce),t._element.classList.add(De),$.trigger(t._element,Te.HIDDEN)})),g(this._element,s)}},n.setTransitioning=function(t){this._isTransitioning=t},n.dispose=function(){T(this._element,Ee),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(t){return(t=r({},Ae,{},t)).toggle=Boolean(t.toggle),m(ye,t,Le),t},n._getDimension=function(){return this._element.classList.contains(Ie)?Ie:ke},n._getParent=function(){var t=this,e=this._config.parent;p(e)?"undefined"==typeof e.jquery&&"undefined"==typeof e[0]||(e=e[0]):e=ct.findOne(e);var n='[data-toggle="collapse"][data-parent="'+e+'"]';return v(ct.find(n,e)).forEach((function(e){var n=f(e);t._addAriaAndCollapsedClass(n,[e])})),e},n._addAriaAndCollapsedClass=function(t,e){if(t){var n=t.classList.contains(Se);e.length&&e.forEach((function(t){n?t.classList.remove(Oe):t.classList.add(Oe),t.setAttribute("aria-expanded",n)}))}},t.collapseInterface=function(e,n){var i=L(e,Ee),o=r({},Ae,{},Nt.getDataAttributes(e),{},"object"==typeof n&&n?n:{});if(!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||(i=new t(e,o)),"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.collapseInterface(this,e)}))},t.getInstance=function(t){return L(t,Ee)},e(t,null,[{key:"VERSION",get:function(){return"3.0.0"}},{key:"Default",get:function(){return Ae}}]),t}();$.on(document,Te.CLICK_DATA_API,Pe,(function(t){"A"===t.target.tagName&&t.preventDefault();var e=Nt.getDataAttributes(this),n=u(this);v(ct.find(n)).forEach((function(t){var n,i=L(t,Ee);i?(null===i._parent&&"string"==typeof e.parent&&(i._config.parent=e.parent,i._parent=i._getParent()),n="toggle"):n=e,He.collapseInterface(t,n)}))}));var xe=E();if(xe){var We=xe.fn[ye];xe.fn[ye]=He.jQueryInterface,xe.fn[ye].Constructor=He,xe.fn[ye].noConflict=function(){return xe.fn[ye]=We,He.jQueryInterface}}function Me(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 Re(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e?e.defaultView:window}return t}function je(t){var e=Re(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ye(t){return t instanceof Re(t).Element}function Xe(t){return t instanceof Re(t).HTMLElement}function Be(t){return t?(t.nodeName||"").toLowerCase():null}function Ue(t){return(Ye(t)?t.ownerDocument:t.document).documentElement}function Ke(t){return Me(Ue(t)).left+je(t).scrollLeft}function Ve(t,e,n){var i;void 0===n&&(n=!1);var r,o,s=Me(t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return n||("body"!==Be(e)&&(a=(r=e)!==Re(r)&&Xe(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:je(r)),Xe(e)?((l=Me(e)).x+=e.clientLeft,l.y+=e.clientTop):(i=Ue(e))&&(l.x=Ke(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function qe(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function Fe(t){return"html"===Be(t)?t:t.parentNode||t.host||document.ownerDocument||document.documentElement}function Qe(t){return Re(t).getComputedStyle(t)}function ze(t,e){void 0===e&&(e=[]);var n=function t(e){if(["html","body","#document"].indexOf(Be(e))>=0)return e.ownerDocument.body;if(Xe(e)){var n=Qe(e),i=n.overflow,r=n.overflowX,o=n.overflowY;if(/auto|scroll|overlay|hidden/.test(i+o+r))return e}return t(Fe(e))}(t),i="body"===Be(n),r=i?Re(n):n,o=e.concat(r);return i?o:o.concat(ze(Fe(r)))}function Ge(t){return["table","td","th"].indexOf(Be(t))>=0}function $e(t){var e;return!Xe(t)||!(e=t.offsetParent)||"undefined"!=typeof window.InstallTrigger&&"fixed"===Qe(e).position?null:e}function Ze(t){for(var e=Re(t),n=$e(t);n&&Ge(n);)n=$e(n);return n&&"body"===Be(n)&&"static"===Qe(n).position?e:n||e}var Je="top",tn="bottom",en="right",nn="left",rn=[Je,tn,en,nn],on=rn.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),sn=[].concat(rn,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),an=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ln(t){var e=new Map,n=new Set,i=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(i){if(!n.has(i)){var r=e.get(i);r&&t(r)}})),i.push(r)}(t)})),i}function cn(t){return t.split("-")[0]}var un={placement:"bottom",modifiers:[],strategy:"absolute"};function fn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function hn(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,r=e.defaultOptions,o=void 0===r?un:r;return function(t,e,n){void 0===n&&(n=o);var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},un,{},o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){f(),a.options=Object.assign({},o,{},a.options,{},n),a.scrollParents={reference:Ye(t)?ze(t):[],popper:ze(e)};var r,s,c=function(t){var e=ln(t);return an.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((r=[].concat(i,a.options.modifiers),s=r.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,{},e,{options:Object.assign({},n.options,{},e.options),data:Object.assign({},n.data,{},e.data)}):e,t}),{}),Object.keys(s).map((function(t){return s[t]}))));return a.orderedModifiers=c.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,r=t.effect;if("function"==typeof r){var o=r({state:a,name:e,instance:u,options:i});l.push(o||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,n=t.popper;if(fn(e,n)){a.rects={reference:Ve(e,Ze(n),"fixed"===a.options.strategy),popper:qe(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],o=r.fn,s=r.options,l=void 0===s?{}:s,f=r.name;"function"==typeof o&&(a=o({state:a,options:l,name:f,instance:u})||a)}else a.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(t){u.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(r())}))}))),s}),destroy:function(){f(),c=!0}};if(!fn(t,e))return u;function f(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(n).then((function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)})),u}}var dn={passive:!0};function pn(t){return t.split("-")[1]}function gn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function mn(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?cn(r):null,s=r?pn(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case Je:e={x:a,y:n.y-i.height};break;case tn:e={x:a,y:n.y+n.height};break;case en:e={x:n.x+n.width,y:l};break;case nn:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var c=o?gn(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case"start":e[c]=Math.floor(e[c])-Math.floor(n[u]/2-i[u]/2);break;case"end":e[c]=Math.floor(e[c])+Math.ceil(n[u]/2-i[u]/2)}}return e}var vn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _n(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=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}}(o),u=c.x,f=c.y,h=o.hasOwnProperty("x"),d=o.hasOwnProperty("y"),p=nn,g=Je,m=window;if(l){var v=Ze(n);v===Re(n)&&(v=Ue(n)),r===Je&&(g=tn,f-=v.clientHeight-i.height,f*=a?1:-1),r===nn&&(p=en,u-=v.clientWidth-i.width,u*=a?1:-1)}var _,b=Object.assign({position:s},l&&vn);return a?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({},b,((e={})[g]=d?f+"px":"",e[p]=h?u+"px":"",e.transform="",e))}var bn={left:"right",right:"left",bottom:"top",top:"bottom"};function yn(t){return t.replace(/left|right|bottom|top/g,(function(t){return bn[t]}))}var En={start:"end",end:"start"};function wn(t){return t.replace(/start|end/g,(function(t){return En[t]}))}function An(t){return parseFloat(t)||0}function Ln(t){var e=Re(t),n=function(t){var e=Xe(t)?Qe(t):{};return{top:An(e.borderTopWidth),right:An(e.borderRightWidth),bottom:An(e.borderBottomWidth),left:An(e.borderLeftWidth)}}(t),i="html"===Be(t),r=Ke(t),o=t.clientWidth+n.right,s=t.clientHeight+n.bottom;return i&&e.innerHeight-t.clientHeight>50&&(s=e.innerHeight-n.bottom),{top:i?0:t.clientTop,right:t.clientLeft>n.left?n.right:i?e.innerWidth-o-r:t.offsetWidth-o,bottom:i?e.innerHeight-s:t.offsetHeight-s,left:i?r:t.clientLeft}}function Tn(t,e){var n=Boolean(e.getRootNode&&e.getRootNode().host);if(t.contains(e))return!0;if(n){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Sn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Dn(t,e){return"viewport"===e?Sn(function(t){var e=Re(t);return{width:e.innerWidth,height:e.innerHeight,x:0,y:0}}(t)):Xe(e)?Me(e):Sn(function(t){var e=Re(t),n=je(t),i=Ve(Ue(t),e);return i.height=Math.max(i.height,e.innerHeight),i.width=Math.max(i.width,e.innerWidth),i.x=-n.scrollLeft,i.y=-n.scrollTop,i}(Ue(t)))}function Cn(t,e,n){var i="clippingParents"===e?function(t){var e=ze(t),n=["absolute","fixed"].indexOf(Qe(t).position)>=0&&Xe(t)?Ze(t):t;return Ye(n)?e.filter((function(t){return Ye(t)&&Tn(t,n)})):[]}(t):[].concat(e),r=[].concat(i,[n]),o=r[0],s=r.reduce((function(e,n){var i=Dn(t,n),r=Ln(Xe(n)?n:Ue(t));return e.top=Math.max(i.top+r.top,e.top),e.right=Math.min(i.right-r.right,e.right),e.bottom=Math.min(i.bottom-r.bottom,e.bottom),e.left=Math.max(i.left+r.left,e.left),e}),Dn(t,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function On(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},{},t)}function In(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function kn(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=void 0===i?t.placement:i,o=n.boundary,s=void 0===o?"clippingParents":o,a=n.rootBoundary,l=void 0===a?"viewport":a,c=n.elementContext,u=void 0===c?"popper":c,f=n.altBoundary,h=void 0!==f&&f,d=n.padding,p=void 0===d?0:d,g=On("number"!=typeof p?p:In(p,rn)),m="popper"===u?"reference":"popper",v=t.elements.reference,_=t.rects.popper,b=t.elements[h?m:u],y=Cn(Ye(b)?b:Ue(t.elements.popper),s,l),E=Me(v),w=mn({reference:E,element:_,strategy:"absolute",placement:r}),A=Sn(Object.assign({},_,{},w)),L="popper"===u?A:E,T={top:y.top-L.top+g.top,bottom:L.bottom-y.bottom+g.bottom,left:y.left-L.left+g.left,right:L.right-y.right+g.right},S=t.modifiersData.offset;if("popper"===u&&S){var D=S[r];Object.keys(T).forEach((function(t){var e=[en,tn].indexOf(t)>=0?1:-1,n=[Je,tn].indexOf(t)>=0?"y":"x";T[t]+=D[n]*e}))}return T}function Nn(t,e,n){return Math.max(t,Math.min(e,n))}function Pn(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 Hn(t){return[Je,en,tn,nn].some((function(e){return t[e]>=0}))}var xn=hn({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,l=Re(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",n.update,dn)})),a&&l.addEventListener("resize",n.update,dn),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",n.update,dn)})),a&&l.removeEventListener("resize",n.update,dn)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=mn({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a={placement:cn(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};e.styles.popper=Object.assign({},e.styles.popper,{},_n(Object.assign({},a,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s}))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,{},_n(Object.assign({},a,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];Xe(r)&&Be(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:"absolute",left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Xe(i)&&Be(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.offset,o=void 0===r?[0,0]:r,s=sn.reduce((function(t,n){return t[n]=function(t,e,n){var i=cn(t),r=[nn,Je].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[nn,en].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,o),t}),{}),a=s[e.placement],l=a.x,c=a.y;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 r=n.fallbackPlacements,o=n.padding,s=n.boundary,a=n.rootBoundary,l=n.flipVariations,c=void 0===l||l,u=e.options.placement,f=cn(u),h=r||(f===u||!c?[yn(u)]:function(t){if("auto"===cn(t))return[];var e=yn(t);return[wn(t),e,wn(e)]}(u)),d=[u].concat(h).reduce((function(t,n){return t.concat("auto"===cn(n)?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=pn(i),c=(l?a?on:on.filter((function(t){return pn(t)===l})):rn).reduce((function(e,n){return e[n]=kn(t,{placement:n,boundary:r,rootBoundary:o,padding:s})[cn(n)],e}),{});return Object.keys(c).sort((function(t,e){return c[t]-c[e]}))}(e,{placement:n,boundary:s,rootBoundary:a,padding:o,flipVariations:c}):n)}),[]),p=e.rects.reference,g=e.rects.popper,m=new Map,v=!0,_=d[0],b=0;b<d.length;b++){var y=d[b],E=cn(y),w="start"===pn(y),A=[Je,tn].indexOf(E)>=0,L=A?"width":"height",T=kn(e,{placement:y,boundary:s,rootBoundary:a,padding:o}),S=A?w?en:nn:w?tn:Je;p[L]>g[L]&&(S=yn(S));var D=yn(S),C=[T[E]<=0,T[S]<=0,T[D]<=0];if(C.every((function(t){return t}))){_=y,v=!1;break}m.set(y,C)}if(v)for(var O=function(t){var e=d.find((function(e){var n=m.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return _=e,"break"},I=c?3:1;I>0;I--){if("break"===O(I))break}e.placement!==_&&(e.modifiersData[i]._skip=!0,e.placement=_,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,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.padding,f=n.tether,h=void 0===f||f,d=n.tetherOffset,p=void 0===d?0:d,g=kn(e,{boundary:l,rootBoundary:c,padding:u}),m=cn(e.placement),v=pn(e.placement),_=!v,b=gn(m),y="x"===b?"y":"x",E=e.modifiersData.popperOffsets,w=e.rects.reference,A=e.rects.popper,L="function"==typeof p?p(Object.assign({},e.rects,{placement:e.placement})):p,T={x:0,y:0};if(o){var S="y"===b?Je:nn,D="y"===b?tn:en,C="y"===b?"height":"width",O=E[b],I=E[b]+g[S],k=E[b]-g[D],N=h?-A[C]/2:0,P="start"===v?w[C]:A[C],H="start"===v?-A[C]:-w[C],x=e.elements.arrow,W=h&&x?qe(x):{width:0,height:0},M=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},R=M[S],j=M[D],Y=Nn(0,w[C],W[C]),X=_?w[C]/2-N-Y-R-L:P-Y-R-L,B=_?-w[C]/2+N+Y+j+L:H+Y+j+L,U=e.modifiersData.offset?e.modifiersData.offset[e.placement][b]:0,K=E[b]+X-U,V=E[b]+B-U,q=Nn(h?Math.min(I,K):I,O,h?Math.max(k,V):k);E[b]=q,T[b]=q-O}if(a){var F="x"===b?Je:nn,Q="x"===b?tn:en,z=E[y],G=Nn(z+g[F],z,z-g[Q]);e.modifiersData.popperOffsets[y]=G,T[y]=G-z}e.modifiersData[i]=T},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=n.elements.arrow,o=n.modifiersData.popperOffsets,s=cn(n.placement),a=gn(s),l=[nn,en].indexOf(s)>=0?"height":"width";if(r){var c=n.modifiersData[i+"#persistent"].padding,u=qe(r),f="y"===a?Je:nn,h="y"===a?tn:en,d=(n.rects.reference[l]+n.rects.reference[a]-o[a]-n.rects.popper[l])/2-(o[a]-n.rects.reference[a])/2,p=Nn(c[f],n.rects.popper[l]/2-u[l]/2+d,n.rects.popper[l]-u[l]-c[h]),g=a;n.modifiersData[i]=((e={})[g]=p,e)}},effect:function(t){var e=t.state,n=t.options,i=t.name,r=n.element,o=void 0===r?"[data-popper-arrow]":r,s=n.padding,a=void 0===s?0:s;("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&Tn(e.elements.popper,o)&&(e.elements.arrow=o,e.modifiersData[i+"#persistent"]={padding:On("number"!=typeof a?a:In(a,rn))})},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,r=e.rects.popper,o=e.modifiersData.preventOverflow,s=kn(e,{elementContext:"reference"}),a=kn(e,{altBoundary:!0}),l=Pn(s,i),c=Pn(a,r,o),u=Hn(l),f=Hn(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),Wn="dropdown",Mn="coreui.dropdown",Rn="."+Mn,jn=new RegExp("38|40|27"),Yn={HIDE:"hide"+Rn,HIDDEN:"hidden"+Rn,SHOW:"show"+Rn,SHOWN:"shown"+Rn,CLICK:"click"+Rn,CLICK_DATA_API:"click"+Rn+".data-api",KEYDOWN_DATA_API:"keydown"+Rn+".data-api",KEYUP_DATA_API:"keyup"+Rn+".data-api"},Xn="disabled",Bn="show",Un="dropup",Kn="dropright",Vn="dropleft",qn="dropdown-menu-right",Fn="position-static",Qn='[data-toggle="dropdown"]',zn=".dropdown form",Gn=".dropdown-menu",$n=".navbar-nav",Zn=".c-header-nav",Jn=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ti="top-start",ei="top-end",ni="b