@castlabs/ui 7.5.2 → 7.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");function ni(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}var Ja=typeof global=="object"&&global&&global.Object===Object&&global,Za=typeof self=="object"&&self&&self.Object===Object&&self,er=Ja||Za||Function("return this")(),xi=function(){return er.Date.now()},ec=/\s/;function tc(e){for(var i=e.length;i--&&ec.test(e.charAt(i)););return i}var nc=/^\s+/;function ic(e){return e&&e.slice(0,tc(e)+1).replace(nc,"")}var ii=er.Symbol,tr=Object.prototype,oc=tr.hasOwnProperty,sc=tr.toString,Nn=ii?ii.toStringTag:void 0;function rc(e){var i=oc.call(e,Nn),a=e[Nn];try{e[Nn]=void 0;var r=!0}catch{}var c=sc.call(e);return r&&(i?e[Nn]=a:delete e[Nn]),c}var lc=Object.prototype,ac=lc.toString;function cc(e){return ac.call(e)}var dc="[object Null]",uc="[object Undefined]",Hs=ii?ii.toStringTag:void 0;function fc(e){return e==null?e===void 0?uc:dc:Hs&&Hs in Object(e)?rc(e):cc(e)}function pc(e){return e!=null&&typeof e=="object"}var hc="[object Symbol]";function mc(e){return typeof e=="symbol"||pc(e)&&fc(e)==hc}var Us=NaN,gc=/^[-+]0x[0-9a-f]+$/i,vc=/^0b[01]+$/i,bc=/^0o[0-7]+$/i,yc=parseInt;function Xs(e){if(typeof e=="number")return e;if(mc(e))return Us;if(ni(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=ni(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=ic(e);var a=vc.test(e);return a||bc.test(e)?yc(e.slice(2),a?2:8):gc.test(e)?Us:+e}var _c="Expected a function",Cc=Math.max,kc=Math.min;function Jn(e,i,a){var r,c,u,d,v,$,B=0,x=!1,M=!1,Q=!0;if(typeof e!="function")throw new TypeError(_c);i=Xs(i)||0,ni(a)&&(x=!!a.leading,M="maxWait"in a,u=M?Cc(Xs(a.maxWait)||0,i):u,Q="trailing"in a?!!a.trailing:Q);function U(j){var ce=r,de=c;return r=c=void 0,B=j,d=e.apply(de,ce),d}function ie(j){return B=j,v=setTimeout(q,i),x?U(j):d}function ve(j){var ce=j-$,de=j-B,et=i-ce;return M?kc(et,u-de):et}function oe(j){var ce=j-$,de=j-B;return $===void 0||ce>=i||ce<0||M&&de>=u}function q(){var j=xi();if(oe(j))return X(j);v=setTimeout(q,ve(j))}function X(j){return v=void 0,Q&&r?U(j):(r=c=void 0,d)}function K(){v!==void 0&&clearTimeout(v),B=0,r=$=c=v=void 0}function Ze(){return v===void 0?d:X(xi())}function Se(){var j=xi(),ce=oe(j);if(r=arguments,c=this,$=j,ce){if(v===void 0)return ie($);if(M)return clearTimeout(v),v=setTimeout(q,i),U($)}return v===void 0&&(v=setTimeout(q,i)),d}return Se.cancel=K,Se.flush=Ze,Se}var $c="Expected a function";function Ec(e,i,a){var r=!0,c=!0;if(typeof e!="function")throw new TypeError($c);return ni(a)&&(r="leading"in a?!!a.leading:r,c="trailing"in a?!!a.trailing:c),Jn(e,i,{leading:r,maxWait:i,trailing:c})}var bt=function(){return bt=Object.assign||function(i){for(var a,r=1,c=arguments.length;r<c;r++){a=arguments[r];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])}return i},bt.apply(this,arguments)};function nr(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function ir(e){return!e||!e.ownerDocument?document:e.ownerDocument}var or=function(e){var i={},a=Array.prototype.reduce.call(e,function(r,c){var u=c.name.match(/data-simplebar-(.+)/);if(u){var d=u[1].replace(/\W+(.)/g,function(v,$){return $.toUpperCase()});switch(c.value){case"true":r[d]=!0;break;case"false":r[d]=!1;break;case void 0:r[d]=!0;break;default:r[d]=c.value}}return r},i);return a};function sr(e,i){var a;e&&(a=e.classList).add.apply(a,i.split(" "))}function rr(e,i){e&&i.split(" ").forEach(function(a){e.classList.remove(a)})}function lr(e){return".".concat(e.split(" ").join("."))}var Yi=!!(typeof window<"u"&&window.document&&window.document.createElement),wc=Object.freeze({__proto__:null,addClasses:sr,canUseDOM:Yi,classNamesToQuery:lr,getElementDocument:ir,getElementWindow:nr,getOptions:or,removeClasses:rr}),vt=null,Ys=null;Yi&&window.addEventListener("resize",function(){Ys!==window.devicePixelRatio&&(Ys=window.devicePixelRatio,vt=null)});function Ks(){if(vt===null){if(typeof document>"u")return vt=0,vt;var e=document.body,i=document.createElement("div");i.classList.add("simplebar-hide-scrollbar"),e.appendChild(i);var a=i.getBoundingClientRect().right;e.removeChild(i),vt=a}return vt}var ze=nr,qi=ir,Sc=or,Le=sr,Ie=rr,ne=lr,Zn=(function(){function e(i,a){a===void 0&&(a={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var c=ze(r.el);r.scrollXTicking||(c.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(c.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Le(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ie(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Le(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ie(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(c){r.mouseX=c.clientX,r.mouseY=c.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(c){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var u,d;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(u=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(d=r.isWithinBounds(r.axis.y.track.rect)),(u||d)&&(c.stopPropagation(),c.type==="pointerdown"&&c.pointerType!=="touch"&&(u&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(c,"x"):r.onTrackClick(c,"x")),d&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(c,"y"):r.onTrackClick(c,"y"))))}},this.drag=function(c){var u,d,v,$,B,x,M,Q,U,ie,ve;if(!(!r.draggedAxis||!r.contentWrapperEl)){var oe,q=r.axis[r.draggedAxis].track,X=(d=(u=q.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:0,K=r.axis[r.draggedAxis].scrollbar,Ze=($=(v=r.contentWrapperEl)===null||v===void 0?void 0:v[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&$!==void 0?$:0,Se=parseInt((x=(B=r.elStyles)===null||B===void 0?void 0:B[r.axis[r.draggedAxis].sizeAttr])!==null&&x!==void 0?x:"0px",10);c.preventDefault(),c.stopPropagation(),r.draggedAxis==="y"?oe=c.pageY:oe=c.pageX;var j=oe-((Q=(M=q.rect)===null||M===void 0?void 0:M[r.axis[r.draggedAxis].offsetAttr])!==null&&Q!==void 0?Q:0)-r.axis[r.draggedAxis].dragOffset;j=r.draggedAxis==="x"&&r.isRtl?((ie=(U=q.rect)===null||U===void 0?void 0:U[r.axis[r.draggedAxis].sizeAttr])!==null&&ie!==void 0?ie:0)-K.size-j:j;var ce=j/(X-K.size),de=ce*(Ze-Se);r.draggedAxis==="x"&&r.isRtl&&(de=!((ve=e.getRtlHelpers())===null||ve===void 0)&&ve.isScrollingToNegative?-de:de),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=de}},this.onEndDrag=function(c){r.isDragging=!1;var u=qi(r.el),d=ze(r.el);c.preventDefault(),c.stopPropagation(),Ie(r.el,r.classNames.dragging),r.onStopScrolling(),u.removeEventListener("mousemove",r.drag,!0),u.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=d.setTimeout(function(){u.removeEventListener("click",r.preventClick,!0),u.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(c){c.preventDefault(),c.stopPropagation()},this.el=i,this.options=bt(bt({},e.defaultOptions),a),this.classNames=bt(bt({},e.defaultOptions.classNames),a.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Ec(this._onMouseMove,64),this.onWindowResize=Jn(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Jn(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Jn(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var i=document.createElement("div");i.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var a=i.firstElementChild,r=a?.firstElementChild;if(!r)return null;document.body.appendChild(a),a.scrollLeft=0;var c=e.getOffset(a),u=e.getOffset(r);a.scrollLeft=-999;var d=e.getOffset(r);return document.body.removeChild(a),e.rtlHelpers={isScrollOriginAtZero:c.left!==u.left,isScrollingToNegative:u.left!==d.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ks()}catch{return Ks()}},e.getOffset=function(i){var a=i.getBoundingClientRect(),r=qi(i),c=ze(i);return{top:a.top+(c.pageYOffset||r.documentElement.scrollTop),left:a.left+(c.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Yi&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var i,a;this.wrapperEl=this.el.querySelector(ne(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ne(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ne(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ne(this.classNames.offset)),this.maskEl=this.el.querySelector(ne(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ne(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ne(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ne(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ne(this.classNames.track)).concat(ne(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ne(this.classNames.track)).concat(ne(this.classNames.vertical))),this.axis.x.scrollbar.el=((i=this.axis.x.track.el)===null||i===void 0?void 0:i.querySelector(ne(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((a=this.axis.y.track.el)===null||a===void 0?void 0:a.querySelector(ne(this.classNames.scrollbar)))||null,this.options.autoHide||(Le(this.axis.x.scrollbar.el,this.classNames.visible),Le(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var i=this,a,r=ze(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(a=this.contentWrapperEl)===null||a===void 0||a.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var c=!1,u=r.ResizeObserver||ResizeObserver;this.resizeObserver=new u(function(){c&&r.requestAnimationFrame(function(){i.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){c=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){i.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var i=ze(this.el);this.elStyles=i.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var a=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,c=this.heightAutoObserverEl.offsetWidth<=1||a>0,u=this.contentWrapperEl.offsetWidth,d=this.elStyles.overflowX,v=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var $=this.contentEl.scrollHeight,B=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=c?"".concat(a||B,"px"):"auto",this.placeholderEl.style.height="".concat($,"px");var x=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=a!==0&&B>a,this.axis.y.isOverflowing=$>x,this.axis.x.isOverflowing=d==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=v==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var M=this.axis.x.isOverflowing?this.scrollbarWidth:0,Q=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&B>u-Q,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&$>x-M,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(i){var a,r;if(i===void 0&&(i="y"),!this.axis[i].isOverflowing||!this.contentEl)return 0;var c=this.contentEl[this.axis[i].scrollSizeAttr],u=(r=(a=this.axis[i].track.el)===null||a===void 0?void 0:a[this.axis[i].offsetSizeAttr])!==null&&r!==void 0?r:0,d=u/c,v;return v=Math.max(~~(d*u),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(v=Math.min(v,this.options.scrollbarMaxSize)),v},e.prototype.positionScrollbar=function(i){var a,r,c;i===void 0&&(i="y");var u=this.axis[i].scrollbar;if(!(!this.axis[i].isOverflowing||!this.contentWrapperEl||!u.el||!this.elStyles)){var d=this.contentWrapperEl[this.axis[i].scrollSizeAttr],v=((a=this.axis[i].track.el)===null||a===void 0?void 0:a[this.axis[i].offsetSizeAttr])||0,$=parseInt(this.elStyles[this.axis[i].sizeAttr],10),B=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];B=i==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-B:B,i==="x"&&this.isRtl&&(B=!((c=e.getRtlHelpers())===null||c===void 0)&&c.isScrollingToNegative?B:-B);var x=B/(d-$),M=~~((v-u.size)*x);M=i==="x"&&this.isRtl?-M+(v-u.size):M,u.el.style.transform=i==="x"?"translate3d(".concat(M,"px, 0, 0)"):"translate3d(0, ".concat(M,"px, 0)")}},e.prototype.toggleTrackVisibility=function(i){i===void 0&&(i="y");var a=this.axis[i].track.el,r=this.axis[i].scrollbar.el;!a||!r||!this.contentWrapperEl||(this.axis[i].isOverflowing||this.axis[i].forceVisible?(a.style.visibility="visible",this.contentWrapperEl.style[this.axis[i].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(i))):(a.style.visibility="hidden",this.contentWrapperEl.style[this.axis[i].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(i))),this.axis[i].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(i){i===void 0&&(i="y"),this.axis[i].isOverflowing&&!this.axis[i].scrollbar.isVisible&&(Le(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(i){i===void 0&&(i="y"),!this.isDragging&&this.axis[i].isOverflowing&&this.axis[i].scrollbar.isVisible&&(Ie(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(i){i===void 0&&(i="y");var a=this.axis[i];!a.track.el||!a.scrollbar.el||(a.track.rect=a.track.el.getBoundingClientRect(),a.scrollbar.rect=a.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(a.track.rect)?(this.showScrollbar(i),Le(a.track.el,this.classNames.hover),this.isWithinBounds(a.scrollbar.rect)?Le(a.scrollbar.el,this.classNames.hover):Ie(a.scrollbar.el,this.classNames.hover)):(Ie(a.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},e.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),Ie(this.axis[i].track.el,this.classNames.hover),Ie(this.axis[i].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)},e.prototype.onDragStart=function(i,a){var r;a===void 0&&(a="y"),this.isDragging=!0;var c=qi(this.el),u=ze(this.el),d=this.axis[a].scrollbar,v=a==="y"?i.pageY:i.pageX;this.axis[a].dragOffset=v-(((r=d.rect)===null||r===void 0?void 0:r[this.axis[a].offsetAttr])||0),this.draggedAxis=a,Le(this.el,this.classNames.dragging),c.addEventListener("mousemove",this.drag,!0),c.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(c.addEventListener("click",this.preventClick,!0),c.addEventListener("dblclick",this.preventClick,!0)):(u.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(i,a){var r=this,c,u,d,v;a===void 0&&(a="y");var $=this.axis[a];if(!(!this.options.clickOnTrack||!$.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var B=ze(this.el);this.axis[a].scrollbar.rect=$.scrollbar.el.getBoundingClientRect();var x=this.axis[a].scrollbar,M=(u=(c=x.rect)===null||c===void 0?void 0:c[this.axis[a].offsetAttr])!==null&&u!==void 0?u:0,Q=parseInt((v=(d=this.elStyles)===null||d===void 0?void 0:d[this.axis[a].sizeAttr])!==null&&v!==void 0?v:"0px",10),U=this.contentWrapperEl[this.axis[a].scrollOffsetAttr],ie=a==="y"?this.mouseY-M:this.mouseX-M,ve=ie<0?-1:1,oe=ve===-1?U-Q:U+Q,q=40,X=function(){r.contentWrapperEl&&(ve===-1?U>oe&&(U-=q,r.contentWrapperEl[r.axis[a].scrollOffsetAttr]=U,B.requestAnimationFrame(X)):U<oe&&(U+=q,r.contentWrapperEl[r.axis[a].scrollOffsetAttr]=U,B.requestAnimationFrame(X)))};X()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var i=ze(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),i.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(i){return this.mouseX>=i.left&&this.mouseX<=i.left+i.width&&this.mouseY>=i.top&&this.mouseY<=i.top+i.height},e.prototype.findChild=function(i,a){var r=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector;return Array.prototype.filter.call(i.children,function(c){return r.call(c,a)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Sc,e.helpers=wc,e})(),Xi=function(e,i){return Xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(a[c]=r[c])},Xi(e,i)};function Nc(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Xi(e,i);function a(){this.constructor=e}e.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}var Ki=Zn.helpers,Hi=Ki.getOptions,ge=Ki.addClasses,Tc=Ki.canUseDOM,Ac=(function(e){Nc(i,e);function i(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];var c=e.apply(this,a)||this;return i.instances.set(a[0],c),c}return i.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(a){a.getAttribute("data-simplebar")!=="init"&&!i.instances.has(a)&&new i(a,Hi(a.attributes))})},i.removeObserver=function(){var a;(a=i.globalObserver)===null||a===void 0||a.disconnect()},i.prototype.initDOM=function(){var a=this,r,c,u;if(!Array.prototype.filter.call(this.el.children,function($){return $.classList.contains(a.classNames.wrapper)}).length){for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),ge(this.wrapperEl,this.classNames.wrapper),ge(this.contentWrapperEl,this.classNames.contentWrapper),ge(this.offsetEl,this.classNames.offset),ge(this.maskEl,this.classNames.mask),ge(this.contentEl,this.classNames.contentEl),ge(this.placeholderEl,this.classNames.placeholder),ge(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),ge(this.heightAutoObserverEl,this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl),(r=this.contentWrapperEl)===null||r===void 0||r.setAttribute("tabindex",this.options.tabIndex.toString()),(c=this.contentWrapperEl)===null||c===void 0||c.setAttribute("role","region"),(u=this.contentWrapperEl)===null||u===void 0||u.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var d=document.createElement("div"),v=document.createElement("div");ge(d,this.classNames.track),ge(v,this.classNames.scrollbar),d.appendChild(v),this.axis.x.track.el=d.cloneNode(!0),ge(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=d.cloneNode(!0),ge(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}Zn.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},i.prototype.unMount=function(){Zn.prototype.unMount.call(this),i.instances.delete(this.el)},i.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(i.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},i.handleMutations=function(a){a.forEach(function(r){r.addedNodes.forEach(function(c){c.nodeType===1&&(c.hasAttribute("data-simplebar")?!i.instances.has(c)&&document.documentElement.contains(c)&&new i(c,Hi(c.attributes)):c.querySelectorAll("[data-simplebar]").forEach(function(u){u.getAttribute("data-simplebar")!=="init"&&!i.instances.has(u)&&document.documentElement.contains(u)&&new i(u,Hi(u.attributes))}))}),r.removedNodes.forEach(function(c){var u;c.nodeType===1&&(c.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(c)&&((u=i.instances.get(c))===null||u===void 0||u.unMount()):Array.prototype.forEach.call(c.querySelectorAll('[data-simplebar="init"]'),function(d){var v;!document.documentElement.contains(d)&&((v=i.instances.get(d))===null||v===void 0||v.unMount())}))})})},i.instances=new WeakMap,i})(Zn);Tc&&Ac.initHtmlApi();const Oc=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"7.5.2"}}),w=(e,i)=>{const a=e.__vccOpts||e;for(const[r,c]of i)a[r]=c;return a};function Bc(e,i,a,r,c,u){return n.toDisplayString(e.VITE_APP_VERSION())}const Dc=w(Oc,[["render",Bc]]),Vc=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Mc(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const _t=w(Vc,[["render",Mc]]);_t.install=e=>{e.component(_t.name??"ClNoName",_t)};function zc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ei={exports:{}};var Lc=ei.exports,Gs;function Ic(){return Gs||(Gs=1,(function(e,i){(function(a,r){e.exports=r()})(Lc,function(){const a=new Map,r={set(s,t,o){a.has(s)||a.set(s,new Map);const l=a.get(s);l.has(t)||l.size===0?l.set(t,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(l.keys())[0]}.`)},get:(s,t)=>a.has(s)&&a.get(s).get(t)||null,remove(s,t){if(!a.has(s))return;const o=a.get(s);o.delete(t),o.size===0&&a.delete(s)}},c="transitionend",u=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,o)=>`#${CSS.escape(o)}`)),s),d=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),v=s=>{s.dispatchEvent(new Event(c))},$=s=>!(!s||typeof s!="object")&&(s.jquery!==void 0&&(s=s[0]),s.nodeType!==void 0),B=s=>$(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(u(s)):null,x=s=>{if(!$(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",o=s.closest("details:not([open])");if(!o)return t;if(o!==s){const l=s.closest("summary");if(l&&l.parentNode!==o||l===null)return!1}return t},M=s=>!s||s.nodeType!==Node.ELEMENT_NODE||!!s.classList.contains("disabled")||(s.disabled!==void 0?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"),Q=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const t=s.getRootNode();return t instanceof ShadowRoot?t:null}return s instanceof ShadowRoot?s:s.parentNode?Q(s.parentNode):null},U=()=>{},ie=s=>{s.offsetHeight},ve=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,oe=[],q=()=>document.documentElement.dir==="rtl",X=s=>{var t;t=()=>{const o=ve();if(o){const l=s.NAME,f=o.fn[l];o.fn[l]=s.jQueryInterface,o.fn[l].Constructor=s,o.fn[l].noConflict=()=>(o.fn[l]=f,s.jQueryInterface)}},document.readyState==="loading"?(oe.length||document.addEventListener("DOMContentLoaded",()=>{for(const o of oe)o()}),oe.push(t)):t()},K=(s,t=[],o=s)=>typeof s=="function"?s.call(...t):o,Ze=(s,t,o=!0)=>{if(!o)return void K(s);const l=(h=>{if(!h)return 0;let{transitionDuration:m,transitionDelay:b}=window.getComputedStyle(h);const _=Number.parseFloat(m),C=Number.parseFloat(b);return _||C?(m=m.split(",")[0],b=b.split(",")[0],1e3*(Number.parseFloat(m)+Number.parseFloat(b))):0})(t)+5;let f=!1;const p=({target:h})=>{h===t&&(f=!0,t.removeEventListener(c,p),K(s))};t.addEventListener(c,p),setTimeout(()=>{f||v(t)},l)},Se=(s,t,o,l)=>{const f=s.length;let p=s.indexOf(t);return p===-1?!o&&l?s[f-1]:s[0]:(p+=o?1:-1,l&&(p=(p+f)%f),s[Math.max(0,Math.min(p,f-1))])},j=/[^.]*(?=\..*)\.|.*/,ce=/\..*/,de=/::\d+$/,et={};let io=1;const oo={mouseenter:"mouseover",mouseleave:"mouseout"},Or=new Set(["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 so(s,t){return t&&`${t}::${io++}`||s.uidEvent||io++}function ro(s){const t=so(s);return s.uidEvent=t,et[t]=et[t]||{},et[t]}function lo(s,t,o=null){return Object.values(s).find(l=>l.callable===t&&l.delegationSelector===o)}function ao(s,t,o){const l=typeof t=="string",f=l?o:t||o;let p=uo(s);return Or.has(p)||(p=s),[l,f,p]}function co(s,t,o,l,f){if(typeof t!="string"||!s)return;let[p,h,m]=ao(t,o,l);t in oo&&(h=(N=>function(S){if(!S.relatedTarget||S.relatedTarget!==S.delegateTarget&&!S.delegateTarget.contains(S.relatedTarget))return N.call(this,S)})(h));const b=ro(s),_=b[m]||(b[m]={}),C=lo(_,h,p?o:null);if(C)return void(C.oneOff=C.oneOff&&f);const y=so(h,t.replace(j,"")),A=p?(function(E,N,S){return function T(F){const R=E.querySelectorAll(N);for(let{target:D}=F;D&&D!==this;D=D.parentNode)for(const z of R)if(z===D)return ri(F,{delegateTarget:D}),T.oneOff&&g.off(E,F.type,N,S),S.apply(D,[F])}})(s,o,h):(function(E,N){return function S(T){return ri(T,{delegateTarget:E}),S.oneOff&&g.off(E,T.type,N),N.apply(E,[T])}})(s,h);A.delegationSelector=p?o:null,A.callable=h,A.oneOff=f,A.uidEvent=y,_[y]=A,s.addEventListener(m,A,p)}function si(s,t,o,l,f){const p=lo(t[o],l,f);p&&(s.removeEventListener(o,p,!!f),delete t[o][p.uidEvent])}function Br(s,t,o,l){const f=t[o]||{};for(const[p,h]of Object.entries(f))p.includes(l)&&si(s,t,o,h.callable,h.delegationSelector)}function uo(s){return s=s.replace(ce,""),oo[s]||s}const g={on(s,t,o,l){co(s,t,o,l,!1)},one(s,t,o,l){co(s,t,o,l,!0)},off(s,t,o,l){if(typeof t!="string"||!s)return;const[f,p,h]=ao(t,o,l),m=h!==t,b=ro(s),_=b[h]||{},C=t.startsWith(".");if(p===void 0){if(C)for(const y of Object.keys(b))Br(s,b,y,t.slice(1));for(const[y,A]of Object.entries(_)){const E=y.replace(de,"");m&&!t.includes(E)||si(s,b,h,A.callable,A.delegationSelector)}}else{if(!Object.keys(_).length)return;si(s,b,h,p,f?o:null)}},trigger(s,t,o){if(typeof t!="string"||!s)return null;const l=ve();let f=null,p=!0,h=!0,m=!1;t!==uo(t)&&l&&(f=l.Event(t,o),l(s).trigger(f),p=!f.isPropagationStopped(),h=!f.isImmediatePropagationStopped(),m=f.isDefaultPrevented());const b=ri(new Event(t,{bubbles:p,cancelable:!0}),o);return m&&b.preventDefault(),h&&s.dispatchEvent(b),b.defaultPrevented&&f&&f.preventDefault(),b}};function ri(s,t={}){for(const[o,l]of Object.entries(t))try{s[o]=l}catch{Object.defineProperty(s,o,{configurable:!0,get:()=>l})}return s}function fo(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function li(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Ne={setDataAttribute(s,t,o){s.setAttribute(`data-bs-${li(t)}`,o)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${li(t)}`)},getDataAttributes(s){if(!s)return{};const t={},o=Object.keys(s.dataset).filter(l=>l.startsWith("bs")&&!l.startsWith("bsConfig"));for(const l of o){let f=l.replace(/^bs/,"");f=f.charAt(0).toLowerCase()+f.slice(1),t[f]=fo(s.dataset[l])}return t},getDataAttribute:(s,t)=>fo(s.getAttribute(`data-bs-${li(t)}`))};class gn{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,o){const l=$(o)?Ne.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof l=="object"?l:{},...$(o)?Ne.getDataAttributes(o):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,o=this.constructor.DefaultType){for(const[l,f]of Object.entries(o)){const p=t[l],h=$(p)?"element":d(p);if(!new RegExp(f).test(h))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${l}" provided type "${h}" but expected type "${f}".`)}}}class be extends gn{constructor(t,o){super(),(t=B(t))&&(this._element=t,this._config=this._getConfig(o),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),g.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,o,l=!0){Ze(t,o,l)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return r.get(B(t),this.DATA_KEY)}static getOrCreateInstance(t,o={}){return this.getInstance(t)||new this(t,typeof o=="object"?o:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const ai=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let o=s.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&o!=="#"?o.trim():null}return t?t.split(",").map(o=>u(o)).join(","):null},k={find:(s,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,s)),findOne:(s,t=document.documentElement)=>Element.prototype.querySelector.call(t,s),children:(s,t)=>[].concat(...s.children).filter(o=>o.matches(t)),parents(s,t){const o=[];let l=s.parentNode.closest(t);for(;l;)o.push(l),l=l.parentNode.closest(t);return o},prev(s,t){let o=s.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(s,t){let o=s.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(o=>!M(o)&&x(o))},getSelectorFromElement(s){const t=ai(s);return t&&k.findOne(t)?t:null},getElementFromSelector(s){const t=ai(s);return t?k.findOne(t):null},getMultipleElementsFromSelector(s){const t=ai(s);return t?k.find(t):[]}},On=(s,t="hide")=>{const o=`click.dismiss${s.EVENT_KEY}`,l=s.NAME;g.on(document,o,`[data-bs-dismiss="${l}"]`,function(f){if(["A","AREA"].includes(this.tagName)&&f.preventDefault(),M(this))return;const p=k.getElementFromSelector(this)||this.closest(`.${l}`);s.getOrCreateInstance(p)[t]()})},po=".bs.alert",Dr=`close${po}`,Vr=`closed${po}`;class vn extends be{static get NAME(){return"alert"}close(){if(g.trigger(this._element,Dr).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),g.trigger(this._element,Vr),this.dispose()}static jQueryInterface(t){return this.each(function(){const o=vn.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}On(vn,"close"),X(vn);const ho='[data-bs-toggle="button"]';class bn extends be{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const o=bn.getOrCreateInstance(this);t==="toggle"&&o[t]()})}}g.on(document,"click.bs.button.data-api",ho,s=>{s.preventDefault();const t=s.target.closest(ho);bn.getOrCreateInstance(t).toggle()}),X(bn);const tt=".bs.swipe",Mr=`touchstart${tt}`,zr=`touchmove${tt}`,Lr=`touchend${tt}`,Ir=`pointerdown${tt}`,Fr=`pointerup${tt}`,Pr={endCallback:null,leftCallback:null,rightCallback:null},Wr={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Bn extends gn{constructor(t,o){super(),this._element=t,t&&Bn.isSupported()&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Pr}static get DefaultType(){return Wr}static get NAME(){return"swipe"}dispose(){g.off(this._element,tt)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),K(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const o=t/this._deltaX;this._deltaX=0,o&&K(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(g.on(this._element,Ir,t=>this._start(t)),g.on(this._element,Fr,t=>this._end(t)),this._element.classList.add("pointer-event")):(g.on(this._element,Mr,t=>this._start(t)),g.on(this._element,zr,t=>this._move(t)),g.on(this._element,Lr,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType==="pen"||t.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Be=".bs.carousel",mo=".data-api",jr="ArrowLeft",Rr="ArrowRight",yn="next",nt="prev",it="left",Dn="right",xr=`slide${Be}`,ci=`slid${Be}`,qr=`keydown${Be}`,Hr=`mouseenter${Be}`,Ur=`mouseleave${Be}`,Xr=`dragstart${Be}`,Yr=`load${Be}${mo}`,Kr=`click${Be}${mo}`,go="carousel",Vn="active",vo=".active",bo=".carousel-item",Gr=vo+bo,Qr={[jr]:Dn,[Rr]:it},Jr={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Zr={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ot extends be{constructor(t,o){super(t,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=k.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===go&&this.cycle()}static get Default(){return Jr}static get DefaultType(){return Zr}static get NAME(){return"carousel"}next(){this._slide(yn)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(nt)}pause(){this._isSliding&&v(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?g.one(this._element,ci,()=>this.cycle()):this.cycle())}to(t){const o=this._getItems();if(t>o.length-1||t<0)return;if(this._isSliding)return void g.one(this._element,ci,()=>this.to(t));const l=this._getItemIndex(this._getActive());if(l===t)return;const f=t>l?yn:nt;this._slide(f,o[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&g.on(this._element,qr,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,Hr,()=>this.pause()),g.on(this._element,Ur,()=>this._maybeEnableCycle())),this._config.touch&&Bn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of k.find(".carousel-item img",this._element))g.on(o,Xr,l=>l.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(it)),rightCallback:()=>this._slide(this._directionToOrder(Dn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Bn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const o=Qr[t.key];o&&(t.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const o=k.findOne(vo,this._indicatorsElement);o.classList.remove(Vn),o.removeAttribute("aria-current");const l=k.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);l&&(l.classList.add(Vn),l.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const o=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(t,o=null){if(this._isSliding)return;const l=this._getActive(),f=t===yn,p=o||Se(this._getItems(),l,f,this._config.wrap);if(p===l)return;const h=this._getItemIndex(p),m=y=>g.trigger(this._element,y,{relatedTarget:p,direction:this._orderToDirection(t),from:this._getItemIndex(l),to:h});if(m(xr).defaultPrevented||!l||!p)return;const b=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(h),this._activeElement=p;const _=f?"carousel-item-start":"carousel-item-end",C=f?"carousel-item-next":"carousel-item-prev";p.classList.add(C),ie(p),l.classList.add(_),p.classList.add(_),this._queueCallback(()=>{p.classList.remove(_,C),p.classList.add(Vn),l.classList.remove(Vn,C,_),this._isSliding=!1,m(ci)},l,this._isAnimated()),b&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return k.findOne(Gr,this._element)}_getItems(){return k.find(bo,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return q()?t===it?nt:yn:t===it?yn:nt}_orderToDirection(t){return q()?t===nt?it:Dn:t===nt?Dn:it}static jQueryInterface(t){return this.each(function(){const o=ot.getOrCreateInstance(this,t);if(typeof t!="number"){if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}}else o.to(t)})}}g.on(document,Kr,"[data-bs-slide], [data-bs-slide-to]",function(s){const t=k.getElementFromSelector(this);if(!t||!t.classList.contains(go))return;s.preventDefault();const o=ot.getOrCreateInstance(t),l=this.getAttribute("data-bs-slide-to");return l?(o.to(l),void o._maybeEnableCycle()):Ne.getDataAttribute(this,"slide")==="next"?(o.next(),void o._maybeEnableCycle()):(o.prev(),void o._maybeEnableCycle())}),g.on(window,Yr,()=>{const s=k.find('[data-bs-ride="carousel"]');for(const t of s)ot.getOrCreateInstance(t)}),X(ot);const _n=".bs.collapse",el=`show${_n}`,tl=`shown${_n}`,nl=`hide${_n}`,il=`hidden${_n}`,ol=`click${_n}.data-api`,di="show",st="collapse",Mn="collapsing",sl=`:scope .${st} .${st}`,ui='[data-bs-toggle="collapse"]',rl={parent:null,toggle:!0},ll={parent:"(null|element)",toggle:"boolean"};class rt extends be{constructor(t,o){super(t,o),this._isTransitioning=!1,this._triggerArray=[];const l=k.find(ui);for(const f of l){const p=k.getSelectorFromElement(f),h=k.find(p).filter(m=>m===this._element);p!==null&&h.length&&this._triggerArray.push(f)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return rl}static get DefaultType(){return ll}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(f=>f!==this._element).map(f=>rt.getOrCreateInstance(f,{toggle:!1}))),t.length&&t[0]._isTransitioning||g.trigger(this._element,el).defaultPrevented)return;for(const f of t)f.hide();const o=this._getDimension();this._element.classList.remove(st),this._element.classList.add(Mn),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const l=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Mn),this._element.classList.add(st,di),this._element.style[o]="",g.trigger(this._element,tl)},this._element,!0),this._element.style[o]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._isShown()||g.trigger(this._element,nl).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,ie(this._element),this._element.classList.add(Mn),this._element.classList.remove(st,di);for(const o of this._triggerArray){const l=k.getElementFromSelector(o);l&&!this._isShown(l)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Mn),this._element.classList.add(st),g.trigger(this._element,il)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(di)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=B(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ui);for(const o of t){const l=k.getElementFromSelector(o);l&&this._addAriaAndCollapsedClass([o],this._isShown(l))}}_getFirstLevelChildren(t){const o=k.find(sl,this._config.parent);return k.find(t,this._config.parent).filter(l=>!o.includes(l))}_addAriaAndCollapsedClass(t,o){if(t.length)for(const l of t)l.classList.toggle("collapsed",!o),l.setAttribute("aria-expanded",o)}static jQueryInterface(t){const o={};return typeof t=="string"&&/show|hide/.test(t)&&(o.toggle=!1),this.each(function(){const l=rt.getOrCreateInstance(this,o);if(typeof t=="string"){if(l[t]===void 0)throw new TypeError(`No method named "${t}"`);l[t]()}})}}g.on(document,ol,ui,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of k.getMultipleElementsFromSelector(this))rt.getOrCreateInstance(t,{toggle:!1}).toggle()}),X(rt);var J="top",se="bottom",re="right",Z="left",zn="auto",lt=[J,se,re,Z],Pe="start",at="end",yo="clippingParents",fi="viewport",ct="popper",_o="reference",pi=lt.reduce(function(s,t){return s.concat([t+"-"+Pe,t+"-"+at])},[]),hi=[].concat(lt,[zn]).reduce(function(s,t){return s.concat([t,t+"-"+Pe,t+"-"+at])},[]),Co="beforeRead",ko="read",$o="afterRead",Eo="beforeMain",wo="main",So="afterMain",No="beforeWrite",To="write",Ao="afterWrite",Oo=[Co,ko,$o,Eo,wo,So,No,To,Ao];function Ce(s){return s?(s.nodeName||"").toLowerCase():null}function le(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var t=s.ownerDocument;return t&&t.defaultView||window}return s}function We(s){return s instanceof le(s).Element||s instanceof Element}function ue(s){return s instanceof le(s).HTMLElement||s instanceof HTMLElement}function mi(s){return typeof ShadowRoot<"u"&&(s instanceof le(s).ShadowRoot||s instanceof ShadowRoot)}const gi={name:"applyStyles",enabled:!0,phase:"write",fn:function(s){var t=s.state;Object.keys(t.elements).forEach(function(o){var l=t.styles[o]||{},f=t.attributes[o]||{},p=t.elements[o];ue(p)&&Ce(p)&&(Object.assign(p.style,l),Object.keys(f).forEach(function(h){var m=f[h];m===!1?p.removeAttribute(h):p.setAttribute(h,m===!0?"":m)}))})},effect:function(s){var t=s.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(l){var f=t.elements[l],p=t.attributes[l]||{},h=Object.keys(t.styles.hasOwnProperty(l)?t.styles[l]:o[l]).reduce(function(m,b){return m[b]="",m},{});ue(f)&&Ce(f)&&(Object.assign(f.style,h),Object.keys(p).forEach(function(m){f.removeAttribute(m)}))})}},requires:["computeStyles"]};function ke(s){return s.split("-")[0]}var je=Math.max,Ln=Math.min,dt=Math.round;function vi(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Bo(){return!/^((?!chrome|android).)*safari/i.test(vi())}function ut(s,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var l=s.getBoundingClientRect(),f=1,p=1;t&&ue(s)&&(f=s.offsetWidth>0&&dt(l.width)/s.offsetWidth||1,p=s.offsetHeight>0&&dt(l.height)/s.offsetHeight||1);var h=(We(s)?le(s):window).visualViewport,m=!Bo()&&o,b=(l.left+(m&&h?h.offsetLeft:0))/f,_=(l.top+(m&&h?h.offsetTop:0))/p,C=l.width/f,y=l.height/p;return{width:C,height:y,top:_,right:b+C,bottom:_+y,left:b,x:b,y:_}}function bi(s){var t=ut(s),o=s.offsetWidth,l=s.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:s.offsetLeft,y:s.offsetTop,width:o,height:l}}function Do(s,t){var o=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(o&&mi(o)){var l=t;do{if(l&&s.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Te(s){return le(s).getComputedStyle(s)}function al(s){return["table","td","th"].indexOf(Ce(s))>=0}function De(s){return((We(s)?s.ownerDocument:s.document)||window.document).documentElement}function In(s){return Ce(s)==="html"?s:s.assignedSlot||s.parentNode||(mi(s)?s.host:null)||De(s)}function Vo(s){return ue(s)&&Te(s).position!=="fixed"?s.offsetParent:null}function Cn(s){for(var t=le(s),o=Vo(s);o&&al(o)&&Te(o).position==="static";)o=Vo(o);return o&&(Ce(o)==="html"||Ce(o)==="body"&&Te(o).position==="static")?t:o||(function(l){var f=/firefox/i.test(vi());if(/Trident/i.test(vi())&&ue(l)&&Te(l).position==="fixed")return null;var p=In(l);for(mi(p)&&(p=p.host);ue(p)&&["html","body"].indexOf(Ce(p))<0;){var h=Te(p);if(h.transform!=="none"||h.perspective!=="none"||h.contain==="paint"||["transform","perspective"].indexOf(h.willChange)!==-1||f&&h.willChange==="filter"||f&&h.filter&&h.filter!=="none")return p;p=p.parentNode}return null})(s)||t}function yi(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function kn(s,t,o){return je(s,Ln(t,o))}function Mo(s){return Object.assign({},{top:0,right:0,bottom:0,left:0},s)}function zo(s,t){return t.reduce(function(o,l){return o[l]=s,o},{})}const Lo={name:"arrow",enabled:!0,phase:"main",fn:function(s){var t,o=s.state,l=s.name,f=s.options,p=o.elements.arrow,h=o.modifiersData.popperOffsets,m=ke(o.placement),b=yi(m),_=[Z,re].indexOf(m)>=0?"height":"width";if(p&&h){var C=(function(P,I){return Mo(typeof(P=typeof P=="function"?P(Object.assign({},I.rects,{placement:I.placement})):P)!="number"?P:zo(P,lt))})(f.padding,o),y=bi(p),A=b==="y"?J:Z,E=b==="y"?se:re,N=o.rects.reference[_]+o.rects.reference[b]-h[b]-o.rects.popper[_],S=h[b]-o.rects.reference[b],T=Cn(p),F=T?b==="y"?T.clientHeight||0:T.clientWidth||0:0,R=N/2-S/2,D=C[A],z=F-y[_]-C[E],O=F/2-y[_]/2+R,V=kn(D,O,z),L=b;o.modifiersData[l]=((t={})[L]=V,t.centerOffset=V-O,t)}},effect:function(s){var t=s.state,o=s.options.element,l=o===void 0?"[data-popper-arrow]":o;l!=null&&(typeof l!="string"||(l=t.elements.popper.querySelector(l)))&&Do(t.elements.popper,l)&&(t.elements.arrow=l)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ft(s){return s.split("-")[1]}var cl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Io(s){var t,o=s.popper,l=s.popperRect,f=s.placement,p=s.variation,h=s.offsets,m=s.position,b=s.gpuAcceleration,_=s.adaptive,C=s.roundOffsets,y=s.isFixed,A=h.x,E=A===void 0?0:A,N=h.y,S=N===void 0?0:N,T=typeof C=="function"?C({x:E,y:S}):{x:E,y:S};E=T.x,S=T.y;var F=h.hasOwnProperty("x"),R=h.hasOwnProperty("y"),D=Z,z=J,O=window;if(_){var V=Cn(o),L="clientHeight",P="clientWidth";V===le(o)&&Te(V=De(o)).position!=="static"&&m==="absolute"&&(L="scrollHeight",P="scrollWidth"),(f===J||(f===Z||f===re)&&p===at)&&(z=se,S-=(y&&V===O&&O.visualViewport?O.visualViewport.height:V[L])-l.height,S*=b?1:-1),f!==Z&&(f!==J&&f!==se||p!==at)||(D=re,E-=(y&&V===O&&O.visualViewport?O.visualViewport.width:V[P])-l.width,E*=b?1:-1)}var I,Y=Object.assign({position:m},_&&cl),ae=C===!0?(function(_e,ee){var pe=_e.x,he=_e.y,H=ee.devicePixelRatio||1;return{x:dt(pe*H)/H||0,y:dt(he*H)/H||0}})({x:E,y:S},le(o)):{x:E,y:S};return E=ae.x,S=ae.y,b?Object.assign({},Y,((I={})[z]=R?"0":"",I[D]=F?"0":"",I.transform=(O.devicePixelRatio||1)<=1?"translate("+E+"px, "+S+"px)":"translate3d("+E+"px, "+S+"px, 0)",I)):Object.assign({},Y,((t={})[z]=R?S+"px":"",t[D]=F?E+"px":"",t.transform="",t))}const _i={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(s){var t=s.state,o=s.options,l=o.gpuAcceleration,f=l===void 0||l,p=o.adaptive,h=p===void 0||p,m=o.roundOffsets,b=m===void 0||m,_={placement:ke(t.placement),variation:ft(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:f,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Io(Object.assign({},_,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:b})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Io(Object.assign({},_,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Fn={passive:!0};const Ci={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(s){var t=s.state,o=s.instance,l=s.options,f=l.scroll,p=f===void 0||f,h=l.resize,m=h===void 0||h,b=le(t.elements.popper),_=[].concat(t.scrollParents.reference,t.scrollParents.popper);return p&&_.forEach(function(C){C.addEventListener("scroll",o.update,Fn)}),m&&b.addEventListener("resize",o.update,Fn),function(){p&&_.forEach(function(C){C.removeEventListener("scroll",o.update,Fn)}),m&&b.removeEventListener("resize",o.update,Fn)}},data:{}};var dl={left:"right",right:"left",bottom:"top",top:"bottom"};function Pn(s){return s.replace(/left|right|bottom|top/g,function(t){return dl[t]})}var ul={start:"end",end:"start"};function Fo(s){return s.replace(/start|end/g,function(t){return ul[t]})}function ki(s){var t=le(s);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function $i(s){return ut(De(s)).left+ki(s).scrollLeft}function Ei(s){var t=Te(s),o=t.overflow,l=t.overflowX,f=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+l)}function Po(s){return["html","body","#document"].indexOf(Ce(s))>=0?s.ownerDocument.body:ue(s)&&Ei(s)?s:Po(In(s))}function $n(s,t){var o;t===void 0&&(t=[]);var l=Po(s),f=l===((o=s.ownerDocument)==null?void 0:o.body),p=le(l),h=f?[p].concat(p.visualViewport||[],Ei(l)?l:[]):l,m=t.concat(h);return f?m:m.concat($n(In(h)))}function wi(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Wo(s,t,o){return t===fi?wi((function(l,f){var p=le(l),h=De(l),m=p.visualViewport,b=h.clientWidth,_=h.clientHeight,C=0,y=0;if(m){b=m.width,_=m.height;var A=Bo();(A||!A&&f==="fixed")&&(C=m.offsetLeft,y=m.offsetTop)}return{width:b,height:_,x:C+$i(l),y}})(s,o)):We(t)?(function(l,f){var p=ut(l,!1,f==="fixed");return p.top=p.top+l.clientTop,p.left=p.left+l.clientLeft,p.bottom=p.top+l.clientHeight,p.right=p.left+l.clientWidth,p.width=l.clientWidth,p.height=l.clientHeight,p.x=p.left,p.y=p.top,p})(t,o):wi((function(l){var f,p=De(l),h=ki(l),m=(f=l.ownerDocument)==null?void 0:f.body,b=je(p.scrollWidth,p.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),_=je(p.scrollHeight,p.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),C=-h.scrollLeft+$i(l),y=-h.scrollTop;return Te(m||p).direction==="rtl"&&(C+=je(p.clientWidth,m?m.clientWidth:0)-b),{width:b,height:_,x:C,y}})(De(s)))}function jo(s){var t,o=s.reference,l=s.element,f=s.placement,p=f?ke(f):null,h=f?ft(f):null,m=o.x+o.width/2-l.width/2,b=o.y+o.height/2-l.height/2;switch(p){case J:t={x:m,y:o.y-l.height};break;case se:t={x:m,y:o.y+o.height};break;case re:t={x:o.x+o.width,y:b};break;case Z:t={x:o.x-l.width,y:b};break;default:t={x:o.x,y:o.y}}var _=p?yi(p):null;if(_!=null){var C=_==="y"?"height":"width";switch(h){case Pe:t[_]=t[_]-(o[C]/2-l[C]/2);break;case at:t[_]=t[_]+(o[C]/2-l[C]/2)}}return t}function pt(s,t){t===void 0&&(t={});var o=t,l=o.placement,f=l===void 0?s.placement:l,p=o.strategy,h=p===void 0?s.strategy:p,m=o.boundary,b=m===void 0?yo:m,_=o.rootBoundary,C=_===void 0?fi:_,y=o.elementContext,A=y===void 0?ct:y,E=o.altBoundary,N=E!==void 0&&E,S=o.padding,T=S===void 0?0:S,F=Mo(typeof T!="number"?T:zo(T,lt)),R=A===ct?_o:ct,D=s.rects.popper,z=s.elements[N?R:A],O=(function(ee,pe,he,H){var $e=pe==="clippingParents"?(function(W){var te=$n(In(W)),me=["absolute","fixed"].indexOf(Te(W).position)>=0&&ue(W)?Cn(W):W;return We(me)?te.filter(function(Me){return We(Me)&&Do(Me,me)&&Ce(Me)!=="body"}):[]})(ee):[].concat(pe),Ee=[].concat($e,[he]),gt=Ee[0],G=Ee.reduce(function(W,te){var me=Wo(ee,te,H);return W.top=je(me.top,W.top),W.right=Ln(me.right,W.right),W.bottom=Ln(me.bottom,W.bottom),W.left=je(me.left,W.left),W},Wo(ee,gt,H));return G.width=G.right-G.left,G.height=G.bottom-G.top,G.x=G.left,G.y=G.top,G})(We(z)?z:z.contextElement||De(s.elements.popper),b,C,h),V=ut(s.elements.reference),L=jo({reference:V,element:D,placement:f}),P=wi(Object.assign({},D,L)),I=A===ct?P:V,Y={top:O.top-I.top+F.top,bottom:I.bottom-O.bottom+F.bottom,left:O.left-I.left+F.left,right:I.right-O.right+F.right},ae=s.modifiersData.offset;if(A===ct&&ae){var _e=ae[f];Object.keys(Y).forEach(function(ee){var pe=[re,se].indexOf(ee)>=0?1:-1,he=[J,se].indexOf(ee)>=0?"y":"x";Y[ee]+=_e[he]*pe})}return Y}function fl(s,t){t===void 0&&(t={});var o=t,l=o.placement,f=o.boundary,p=o.rootBoundary,h=o.padding,m=o.flipVariations,b=o.allowedAutoPlacements,_=b===void 0?hi:b,C=ft(l),y=C?m?pi:pi.filter(function(N){return ft(N)===C}):lt,A=y.filter(function(N){return _.indexOf(N)>=0});A.length===0&&(A=y);var E=A.reduce(function(N,S){return N[S]=pt(s,{placement:S,boundary:f,rootBoundary:p,padding:h})[ke(S)],N},{});return Object.keys(E).sort(function(N,S){return E[N]-E[S]})}const Ro={name:"flip",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,l=s.name;if(!t.modifiersData[l]._skip){for(var f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h===void 0||h,b=o.fallbackPlacements,_=o.padding,C=o.boundary,y=o.rootBoundary,A=o.altBoundary,E=o.flipVariations,N=E===void 0||E,S=o.allowedAutoPlacements,T=t.options.placement,F=ke(T),R=b||(F!==T&&N?(function(W){if(ke(W)===zn)return[];var te=Pn(W);return[Fo(W),te,Fo(te)]})(T):[Pn(T)]),D=[T].concat(R).reduce(function(W,te){return W.concat(ke(te)===zn?fl(t,{placement:te,boundary:C,rootBoundary:y,padding:_,flipVariations:N,allowedAutoPlacements:S}):te)},[]),z=t.rects.reference,O=t.rects.popper,V=new Map,L=!0,P=D[0],I=0;I<D.length;I++){var Y=D[I],ae=ke(Y),_e=ft(Y)===Pe,ee=[J,se].indexOf(ae)>=0,pe=ee?"width":"height",he=pt(t,{placement:Y,boundary:C,rootBoundary:y,altBoundary:A,padding:_}),H=ee?_e?re:Z:_e?se:J;z[pe]>O[pe]&&(H=Pn(H));var $e=Pn(H),Ee=[];if(p&&Ee.push(he[ae]<=0),m&&Ee.push(he[H]<=0,he[$e]<=0),Ee.every(function(W){return W})){P=Y,L=!1;break}V.set(Y,Ee)}if(L)for(var gt=function(W){var te=D.find(function(me){var Me=V.get(me);if(Me)return Me.slice(0,W).every(function(Yn){return Yn})});if(te)return P=te,"break"},G=N?3:1;G>0&&gt(G)!=="break";G--);t.placement!==P&&(t.modifiersData[l]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xo(s,t,o){return o===void 0&&(o={x:0,y:0}),{top:s.top-t.height-o.y,right:s.right-t.width+o.x,bottom:s.bottom-t.height+o.y,left:s.left-t.width-o.x}}function qo(s){return[J,re,se,Z].some(function(t){return s[t]>=0})}const Ho={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(s){var t=s.state,o=s.name,l=t.rects.reference,f=t.rects.popper,p=t.modifiersData.preventOverflow,h=pt(t,{elementContext:"reference"}),m=pt(t,{altBoundary:!0}),b=xo(h,l),_=xo(m,f,p),C=qo(b),y=qo(_);t.modifiersData[o]={referenceClippingOffsets:b,popperEscapeOffsets:_,isReferenceHidden:C,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":y})}},Uo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(s){var t=s.state,o=s.options,l=s.name,f=o.offset,p=f===void 0?[0,0]:f,h=hi.reduce(function(C,y){return C[y]=(function(A,E,N){var S=ke(A),T=[Z,J].indexOf(S)>=0?-1:1,F=typeof N=="function"?N(Object.assign({},E,{placement:A})):N,R=F[0],D=F[1];return R=R||0,D=(D||0)*T,[Z,re].indexOf(S)>=0?{x:D,y:R}:{x:R,y:D}})(y,t.rects,p),C},{}),m=h[t.placement],b=m.x,_=m.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=b,t.modifiersData.popperOffsets.y+=_),t.modifiersData[l]=h}},Si={name:"popperOffsets",enabled:!0,phase:"read",fn:function(s){var t=s.state,o=s.name;t.modifiersData[o]=jo({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Xo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,l=s.name,f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h!==void 0&&h,b=o.boundary,_=o.rootBoundary,C=o.altBoundary,y=o.padding,A=o.tether,E=A===void 0||A,N=o.tetherOffset,S=N===void 0?0:N,T=pt(t,{boundary:b,rootBoundary:_,padding:y,altBoundary:C}),F=ke(t.placement),R=ft(t.placement),D=!R,z=yi(F),O=z==="x"?"y":"x",V=t.modifiersData.popperOffsets,L=t.rects.reference,P=t.rects.popper,I=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,Y=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),ae=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_e={x:0,y:0};if(V){if(p){var ee,pe=z==="y"?J:Z,he=z==="y"?se:re,H=z==="y"?"height":"width",$e=V[z],Ee=$e+T[pe],gt=$e-T[he],G=E?-P[H]/2:0,W=R===Pe?L[H]:P[H],te=R===Pe?-P[H]:-L[H],me=t.elements.arrow,Me=E&&me?bi(me):{width:0,height:0},Yn=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Vs=Yn[pe],Ms=Yn[he],Kn=kn(0,L[H],Me[H]),qa=D?L[H]/2-G-Kn-Vs-Y.mainAxis:W-Kn-Vs-Y.mainAxis,Ha=D?-L[H]/2+G+Kn+Ms+Y.mainAxis:te+Kn+Ms+Y.mainAxis,Wi=t.elements.arrow&&Cn(t.elements.arrow),Ua=Wi?z==="y"?Wi.clientTop||0:Wi.clientLeft||0:0,zs=(ee=ae?.[z])!=null?ee:0,Xa=$e+Ha-zs,Ls=kn(E?Ln(Ee,$e+qa-zs-Ua):Ee,$e,E?je(gt,Xa):gt);V[z]=Ls,_e[z]=Ls-$e}if(m){var Is,Ya=z==="x"?J:Z,Ka=z==="x"?se:re,Ke=V[O],Gn=O==="y"?"height":"width",Fs=Ke+T[Ya],Ps=Ke-T[Ka],ji=[J,Z].indexOf(F)!==-1,Ws=(Is=ae?.[O])!=null?Is:0,js=ji?Fs:Ke-L[Gn]-P[Gn]-Ws+Y.altAxis,Rs=ji?Ke+L[Gn]+P[Gn]-Ws-Y.altAxis:Ps,xs=E&&ji?(function(Ga,Qa,Ri){var qs=kn(Ga,Qa,Ri);return qs>Ri?Ri:qs})(js,Ke,Rs):kn(E?js:Fs,Ke,E?Rs:Ps);V[O]=xs,_e[O]=xs-Ke}t.modifiersData[l]=_e}},requiresIfExists:["offset"]};function pl(s,t,o){o===void 0&&(o=!1);var l,f,p=ue(t),h=ue(t)&&(function(y){var A=y.getBoundingClientRect(),E=dt(A.width)/y.offsetWidth||1,N=dt(A.height)/y.offsetHeight||1;return E!==1||N!==1})(t),m=De(t),b=ut(s,h,o),_={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(p||!p&&!o)&&((Ce(t)!=="body"||Ei(m))&&(_=(l=t)!==le(l)&&ue(l)?{scrollLeft:(f=l).scrollLeft,scrollTop:f.scrollTop}:ki(l)),ue(t)?((C=ut(t,!0)).x+=t.clientLeft,C.y+=t.clientTop):m&&(C.x=$i(m))),{x:b.left+_.scrollLeft-C.x,y:b.top+_.scrollTop-C.y,width:b.width,height:b.height}}function hl(s){var t=new Map,o=new Set,l=[];function f(p){o.add(p.name),[].concat(p.requires||[],p.requiresIfExists||[]).forEach(function(h){if(!o.has(h)){var m=t.get(h);m&&f(m)}}),l.push(p)}return s.forEach(function(p){t.set(p.name,p)}),s.forEach(function(p){o.has(p.name)||f(p)}),l}var Yo={placement:"bottom",modifiers:[],strategy:"absolute"};function Ko(){for(var s=arguments.length,t=new Array(s),o=0;o<s;o++)t[o]=arguments[o];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Wn(s){s===void 0&&(s={});var t=s,o=t.defaultModifiers,l=o===void 0?[]:o,f=t.defaultOptions,p=f===void 0?Yo:f;return function(h,m,b){b===void 0&&(b=p);var _,C,y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yo,p),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},A=[],E=!1,N={state:y,setOptions:function(T){var F=typeof T=="function"?T(y.options):T;S(),y.options=Object.assign({},p,y.options,F),y.scrollParents={reference:We(h)?$n(h):h.contextElement?$n(h.contextElement):[],popper:$n(m)};var R,D,z=(function(O){var V=hl(O);return Oo.reduce(function(L,P){return L.concat(V.filter(function(I){return I.phase===P}))},[])})((R=[].concat(l,y.options.modifiers),D=R.reduce(function(O,V){var L=O[V.name];return O[V.name]=L?Object.assign({},L,V,{options:Object.assign({},L.options,V.options),data:Object.assign({},L.data,V.data)}):V,O},{}),Object.keys(D).map(function(O){return D[O]})));return y.orderedModifiers=z.filter(function(O){return O.enabled}),y.orderedModifiers.forEach(function(O){var V=O.name,L=O.options,P=L===void 0?{}:L,I=O.effect;if(typeof I=="function"){var Y=I({state:y,name:V,instance:N,options:P});A.push(Y||function(){})}}),N.update()},forceUpdate:function(){if(!E){var T=y.elements,F=T.reference,R=T.popper;if(Ko(F,R)){y.rects={reference:pl(F,Cn(R),y.options.strategy==="fixed"),popper:bi(R)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(I){return y.modifiersData[I.name]=Object.assign({},I.data)});for(var D=0;D<y.orderedModifiers.length;D++)if(y.reset!==!0){var z=y.orderedModifiers[D],O=z.fn,V=z.options,L=V===void 0?{}:V,P=z.name;typeof O=="function"&&(y=O({state:y,options:L,name:P,instance:N})||y)}else y.reset=!1,D=-1}}},update:(_=function(){return new Promise(function(T){N.forceUpdate(),T(y)})},function(){return C||(C=new Promise(function(T){Promise.resolve().then(function(){C=void 0,T(_())})})),C}),destroy:function(){S(),E=!0}};if(!Ko(h,m))return N;function S(){A.forEach(function(T){return T()}),A=[]}return N.setOptions(b).then(function(T){!E&&b.onFirstUpdate&&b.onFirstUpdate(T)}),N}}var ml=Wn(),gl=Wn({defaultModifiers:[Ci,Si,_i,gi]}),Ni=Wn({defaultModifiers:[Ci,Si,_i,gi,Uo,Ro,Xo,Lo,Ho]});const Go=Object.freeze(Object.defineProperty({__proto__:null,afterMain:So,afterRead:$o,afterWrite:Ao,applyStyles:gi,arrow:Lo,auto:zn,basePlacements:lt,beforeMain:Eo,beforeRead:Co,beforeWrite:No,bottom:se,clippingParents:yo,computeStyles:_i,createPopper:Ni,createPopperBase:ml,createPopperLite:gl,detectOverflow:pt,end:at,eventListeners:Ci,flip:Ro,hide:Ho,left:Z,main:wo,modifierPhases:Oo,offset:Uo,placements:hi,popper:ct,popperGenerator:Wn,popperOffsets:Si,preventOverflow:Xo,read:ko,reference:_o,right:re,start:Pe,top:J,variationPlacements:pi,viewport:fi,write:To},Symbol.toStringTag,{value:"Module"})),Qo="dropdown",Re=".bs.dropdown",Ti=".data-api",vl="ArrowUp",Jo="ArrowDown",bl=`hide${Re}`,yl=`hidden${Re}`,_l=`show${Re}`,Cl=`shown${Re}`,Zo=`click${Re}${Ti}`,es=`keydown${Re}${Ti}`,kl=`keyup${Re}${Ti}`,ht="show",xe='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',$l=`${xe}.${ht}`,jn=".dropdown-menu",El=q()?"top-end":"top-start",wl=q()?"top-start":"top-end",Sl=q()?"bottom-end":"bottom-start",Nl=q()?"bottom-start":"bottom-end",Tl=q()?"left-start":"right-start",Al=q()?"right-start":"left-start",Ol={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Bl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ye extends be{constructor(t,o){super(t,o),this._popper=null,this._parent=this._element.parentNode,this._menu=k.next(this._element,jn)[0]||k.prev(this._element,jn)[0]||k.findOne(jn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ol}static get DefaultType(){return Bl}static get NAME(){return Qo}toggle(){return this._isShown()?this.hide():this.show()}show(){if(M(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!g.trigger(this._element,_l,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const o of[].concat(...document.body.children))g.on(o,"mouseover",U);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ht),this._element.classList.add(ht),g.trigger(this._element,Cl,t)}}hide(){if(M(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!g.trigger(this._element,bl,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))g.off(o,"mouseover",U);this._popper&&this._popper.destroy(),this._menu.classList.remove(ht),this._element.classList.remove(ht),this._element.setAttribute("aria-expanded","false"),Ne.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,yl,t)}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!$(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Qo.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(Go===void 0)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:$(this._config.reference)?t=B(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const o=this._getPopperConfig();this._popper=Ni(t,this._menu,o)}_isShown(){return this._menu.classList.contains(ht)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Tl;if(t.classList.contains("dropstart"))return Al;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains("dropup")?o?wl:El:o?Nl:Sl}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Ne.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...K(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:o}){const l=k.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(f=>x(f));l.length&&Se(l,o,t===Jo,!l.includes(o)).focus()}static jQueryInterface(t){return this.each(function(){const o=ye.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}static clearMenus(t){if(t.button===2||t.type==="keyup"&&t.key!=="Tab")return;const o=k.find($l);for(const l of o){const f=ye.getInstance(l);if(!f||f._config.autoClose===!1)continue;const p=t.composedPath(),h=p.includes(f._menu);if(p.includes(f._element)||f._config.autoClose==="inside"&&!h||f._config.autoClose==="outside"&&h||f._menu.contains(t.target)&&(t.type==="keyup"&&t.key==="Tab"||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const m={relatedTarget:f._element};t.type==="click"&&(m.clickEvent=t),f._completeHide(m)}}static dataApiKeydownHandler(t){const o=/input|textarea/i.test(t.target.tagName),l=t.key==="Escape",f=[vl,Jo].includes(t.key);if(!f&&!l||o&&!l)return;t.preventDefault();const p=this.matches(xe)?this:k.prev(this,xe)[0]||k.next(this,xe)[0]||k.findOne(xe,t.delegateTarget.parentNode),h=ye.getOrCreateInstance(p);if(f)return t.stopPropagation(),h.show(),void h._selectMenuItem(t);h._isShown()&&(t.stopPropagation(),h.hide(),p.focus())}}g.on(document,es,xe,ye.dataApiKeydownHandler),g.on(document,es,jn,ye.dataApiKeydownHandler),g.on(document,Zo,ye.clearMenus),g.on(document,kl,ye.clearMenus),g.on(document,Zo,xe,function(s){s.preventDefault(),ye.getOrCreateInstance(this).toggle()}),X(ye);const ts="backdrop",ns="show",is=`mousedown.bs.${ts}`,Dl={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Vl={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class os extends gn{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Dl}static get DefaultType(){return Vl}static get NAME(){return ts}show(t){if(!this._config.isVisible)return void K(t);this._append();const o=this._getElement();this._config.isAnimated&&ie(o),o.classList.add(ns),this._emulateAnimation(()=>{K(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(ns),this._emulateAnimation(()=>{this.dispose(),K(t)})):K(t)}dispose(){this._isAppended&&(g.off(this._element,is),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=B(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),g.on(t,is,()=>{K(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Ze(t,this._getElement(),this._config.isAnimated)}}const Rn=".bs.focustrap",Ml=`focusin${Rn}`,zl=`keydown.tab${Rn}`,ss="backward",Ll={autofocus:!0,trapElement:null},Il={autofocus:"boolean",trapElement:"element"};class rs extends gn{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ll}static get DefaultType(){return Il}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),g.off(document,Rn),g.on(document,Ml,t=>this._handleFocusin(t)),g.on(document,zl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,g.off(document,Rn))}_handleFocusin(t){const{trapElement:o}=this._config;if(t.target===document||t.target===o||o.contains(t.target))return;const l=k.focusableChildren(o);l.length===0?o.focus():this._lastTabNavDirection===ss?l[l.length-1].focus():l[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?ss:"forward")}}const ls=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",as=".sticky-top",xn="padding-right",cs="margin-right";class Ai{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,xn,o=>o+t),this._setElementAttributes(ls,xn,o=>o+t),this._setElementAttributes(as,cs,o=>o-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,xn),this._resetElementAttributes(ls,xn),this._resetElementAttributes(as,cs)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,o,l){const f=this.getWidth();this._applyManipulationCallback(t,p=>{if(p!==this._element&&window.innerWidth>p.clientWidth+f)return;this._saveInitialAttribute(p,o);const h=window.getComputedStyle(p).getPropertyValue(o);p.style.setProperty(o,`${l(Number.parseFloat(h))}px`)})}_saveInitialAttribute(t,o){const l=t.style.getPropertyValue(o);l&&Ne.setDataAttribute(t,o,l)}_resetElementAttributes(t,o){this._applyManipulationCallback(t,l=>{const f=Ne.getDataAttribute(l,o);f!==null?(Ne.removeDataAttribute(l,o),l.style.setProperty(o,f)):l.style.removeProperty(o)})}_applyManipulationCallback(t,o){if($(t))o(t);else for(const l of k.find(t,this._element))o(l)}}const fe=".bs.modal",Fl=`hide${fe}`,Pl=`hidePrevented${fe}`,ds=`hidden${fe}`,us=`show${fe}`,Wl=`shown${fe}`,jl=`resize${fe}`,Rl=`click.dismiss${fe}`,xl=`mousedown.dismiss${fe}`,ql=`keydown.dismiss${fe}`,Hl=`click${fe}.data-api`,fs="modal-open",ps="show",Oi="modal-static",Ul={backdrop:!0,focus:!0,keyboard:!0},Xl={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class qe extends be{constructor(t,o){super(t,o),this._dialog=k.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ai,this._addEventListeners()}static get Default(){return Ul}static get DefaultType(){return Xl}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||g.trigger(this._element,us,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(fs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(g.trigger(this._element,Fl).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ps),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){g.off(window,fe),g.off(this._dialog,fe),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new os({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new rs({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=k.findOne(".modal-body",this._dialog);o&&(o.scrollTop=0),ie(this._element),this._element.classList.add(ps),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,g.trigger(this._element,Wl,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){g.on(this._element,ql,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),g.on(window,jl,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),g.on(this._element,xl,t=>{g.one(this._element,Rl,o=>{this._element===t.target&&this._element===o.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(fs),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,ds)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(g.trigger(this._element,Pl).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(Oi)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Oi),this._queueCallback(()=>{this._element.classList.remove(Oi),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),l=o>0;if(l&&!t){const f=q()?"paddingLeft":"paddingRight";this._element.style[f]=`${o}px`}if(!l&&t){const f=q()?"paddingRight":"paddingLeft";this._element.style[f]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,o){return this.each(function(){const l=qe.getOrCreateInstance(this,t);if(typeof t=="string"){if(l[t]===void 0)throw new TypeError(`No method named "${t}"`);l[t](o)}})}}g.on(document,Hl,'[data-bs-toggle="modal"]',function(s){const t=k.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),g.one(t,us,l=>{l.defaultPrevented||g.one(t,ds,()=>{x(this)&&this.focus()})});const o=k.findOne(".modal.show");o&&qe.getInstance(o).hide(),qe.getOrCreateInstance(t).toggle(this)}),On(qe),X(qe);const Ae=".bs.offcanvas",hs=".data-api",Yl=`load${Ae}${hs}`,ms="show",gs="showing",vs="hiding",bs=".offcanvas.show",Kl=`show${Ae}`,Gl=`shown${Ae}`,Ql=`hide${Ae}`,ys=`hidePrevented${Ae}`,_s=`hidden${Ae}`,Jl=`resize${Ae}`,Zl=`click${Ae}${hs}`,ea=`keydown.dismiss${Ae}`,ta={backdrop:!0,keyboard:!0,scroll:!1},na={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Oe extends be{constructor(t,o){super(t,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ta}static get DefaultType(){return na}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||g.trigger(this._element,Kl,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ai().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(gs),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(ms),this._element.classList.remove(gs),g.trigger(this._element,Gl,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(g.trigger(this._element,Ql).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(vs),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(ms,vs),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ai().reset(),g.trigger(this._element,_s)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new os({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():g.trigger(this._element,ys)}:null})}_initializeFocusTrap(){return new rs({trapElement:this._element})}_addEventListeners(){g.on(this._element,ea,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():g.trigger(this._element,ys))})}static jQueryInterface(t){return this.each(function(){const o=Oe.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}g.on(document,Zl,'[data-bs-toggle="offcanvas"]',function(s){const t=k.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this))return;g.one(t,_s,()=>{x(this)&&this.focus()});const o=k.findOne(bs);o&&o!==t&&Oe.getInstance(o).hide(),Oe.getOrCreateInstance(t).toggle(this)}),g.on(window,Yl,()=>{for(const s of k.find(bs))Oe.getOrCreateInstance(s).show()}),g.on(window,Jl,()=>{for(const s of k.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Oe.getOrCreateInstance(s).hide()}),On(Oe),X(Oe);const Cs={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},ia=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),oa=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,sa=(s,t)=>{const o=s.nodeName.toLowerCase();return t.includes(o)?!ia.has(o)||!!oa.test(s.nodeValue):t.filter(l=>l instanceof RegExp).some(l=>l.test(o))},ra={allowList:Cs,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},la={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},aa={entry:"(string|element|function|null)",selector:"(string|element)"};class ca extends gn{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return ra}static get DefaultType(){return la}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[f,p]of Object.entries(this._config.content))this._setContent(t,p,f);const o=t.children[0],l=this._resolvePossibleFunction(this._config.extraClass);return l&&o.classList.add(...l.split(" ")),o}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[o,l]of Object.entries(t))super._typeCheckConfig({selector:o,entry:l},aa)}_setContent(t,o,l){const f=k.findOne(l,t);f&&((o=this._resolvePossibleFunction(o))?$(o)?this._putElementInTemplate(B(o),f):this._config.html?f.innerHTML=this._maybeSanitize(o):f.textContent=o:f.remove())}_maybeSanitize(t){return this._config.sanitize?(function(o,l,f){if(!o.length)return o;if(f&&typeof f=="function")return f(o);const p=new window.DOMParser().parseFromString(o,"text/html"),h=[].concat(...p.body.querySelectorAll("*"));for(const m of h){const b=m.nodeName.toLowerCase();if(!Object.keys(l).includes(b)){m.remove();continue}const _=[].concat(...m.attributes),C=[].concat(l["*"]||[],l[b]||[]);for(const y of _)sa(y,C)||m.removeAttribute(y.nodeName)}return p.body.innerHTML})(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return K(t,[void 0,this])}_putElementInTemplate(t,o){if(this._config.html)return o.innerHTML="",void o.append(t);o.textContent=t.textContent}}const da=new Set(["sanitize","allowList","sanitizeFn"]),Bi="fade",qn="show",ua=".tooltip-inner",ks=".modal",$s="hide.bs.modal",En="hover",Di="focus",Vi="click",fa={AUTO:"auto",TOP:"top",RIGHT:q()?"left":"right",BOTTOM:"bottom",LEFT:q()?"right":"left"},pa={allowList:Cs,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ha={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class He extends be{constructor(t,o){if(Go===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return pa}static get DefaultType(){return ha}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),g.off(this._element.closest(ks),$s,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=g.trigger(this._element,this.constructor.eventName("show")),o=(Q(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!o)return;this._disposePopper();const l=this._getTipElement();this._element.setAttribute("aria-describedby",l.getAttribute("id"));const{container:f}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(f.append(l),g.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(l),l.classList.add(qn),"ontouchstart"in document.documentElement)for(const p of[].concat(...document.body.children))g.on(p,"mouseover",U);this._queueCallback(()=>{g.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!g.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(qn),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))g.off(t,"mouseover",U);this._activeTrigger[Vi]=!1,this._activeTrigger[Di]=!1,this._activeTrigger[En]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),g.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const o=this._getTemplateFactory(t).toHtml();if(!o)return null;o.classList.remove(Bi,qn),o.classList.add(`bs-${this.constructor.NAME}-auto`);const l=(f=>{do f+=Math.floor(1e6*Math.random());while(document.getElementById(f));return f})(this.constructor.NAME).toString();return o.setAttribute("id",l),this._isAnimated()&&o.classList.add(Bi),o}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new ca({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ua]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Bi)}_isShown(){return this.tip&&this.tip.classList.contains(qn)}_createPopper(t){const o=K(this._config.placement,[this,t,this._element]),l=fa[o.toUpperCase()];return Ni(this._element,t,this._getPopperConfig(l))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_resolvePossibleFunction(t){return K(t,[this._element,this._element])}_getPopperConfig(t){const o={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:l=>{this._getTipElement().setAttribute("data-popper-placement",l.state.placement)}}]};return{...o,...K(this._config.popperConfig,[void 0,o])}}_setListeners(){const t=this._config.trigger.split(" ");for(const o of t)if(o==="click")g.on(this._element,this.constructor.eventName("click"),this._config.selector,l=>{const f=this._initializeOnDelegatedTarget(l);f._activeTrigger[Vi]=!(f._isShown()&&f._activeTrigger[Vi]),f.toggle()});else if(o!=="manual"){const l=o===En?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),f=o===En?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");g.on(this._element,l,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusin"?Di:En]=!0,h._enter()}),g.on(this._element,f,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusout"?Di:En]=h._element.contains(p.relatedTarget),h._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest(ks),$s,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,o){clearTimeout(this._timeout),this._timeout=setTimeout(t,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const o=Ne.getDataAttributes(this._element);for(const l of Object.keys(o))da.has(l)&&delete o[l];return t={...o,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:B(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[o,l]of Object.entries(this._config))this.constructor.Default[o]!==l&&(t[o]=l);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const o=He.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}X(He);const ma=".popover-header",ga=".popover-body",va={...He.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},ba={...He.DefaultType,content:"(null|string|element|function)"};class Hn extends He{static get Default(){return va}static get DefaultType(){return ba}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ma]:this._getTitle(),[ga]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const o=Hn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}X(Hn);const Mi=".bs.scrollspy",ya=`activate${Mi}`,Es=`click${Mi}`,_a=`load${Mi}.data-api`,mt="active",zi="[href]",ws=".nav-link",Ca=`${ws}, .nav-item > ${ws}, .list-group-item`,ka={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},$a={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class wn extends be{constructor(t,o){super(t,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return ka}static get DefaultType(){return $a}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=B(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(o=>Number.parseFloat(o))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(g.off(this._config.target,Es),g.on(this._config.target,Es,zi,t=>{const o=this._observableSections.get(t.target.hash);if(o){t.preventDefault();const l=this._rootElement||window,f=o.offsetTop-this._element.offsetTop;if(l.scrollTo)return void l.scrollTo({top:f,behavior:"smooth"});l.scrollTop=f}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),t)}_observerCallback(t){const o=h=>this._targetLinks.get(`#${h.target.id}`),l=h=>{this._previousScrollData.visibleEntryTop=h.target.offsetTop,this._process(o(h))},f=(this._rootElement||document.documentElement).scrollTop,p=f>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=f;for(const h of t){if(!h.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(h));continue}const m=h.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(p&&m){if(l(h),!f)return}else p||m||l(h)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=k.find(zi,this._config.target);for(const o of t){if(!o.hash||M(o))continue;const l=k.findOne(decodeURI(o.hash),this._element);x(l)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,l))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(mt),this._activateParents(t),g.trigger(this._element,ya,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))k.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(mt);else for(const o of k.parents(t,".nav, .list-group"))for(const l of k.prev(o,Ca))l.classList.add(mt)}_clearActiveClass(t){t.classList.remove(mt);const o=k.find(`${zi}.${mt}`,t);for(const l of o)l.classList.remove(mt)}static jQueryInterface(t){return this.each(function(){const o=wn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(window,_a,()=>{for(const s of k.find('[data-bs-spy="scroll"]'))wn.getOrCreateInstance(s)}),X(wn);const Ue=".bs.tab",Ea=`hide${Ue}`,wa=`hidden${Ue}`,Sa=`show${Ue}`,Na=`shown${Ue}`,Ta=`click${Ue}`,Aa=`keydown${Ue}`,Oa=`load${Ue}`,Ba="ArrowLeft",Ss="ArrowRight",Da="ArrowUp",Ns="ArrowDown",Li="Home",Ts="End",Xe="active",As="fade",Ii="show",Os=".dropdown-toggle",Fi=`:not(${Os})`,Bs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Pi=`.nav-link${Fi}, .list-group-item${Fi}, [role="tab"]${Fi}, ${Bs}`,Va=`.${Xe}[data-bs-toggle="tab"], .${Xe}[data-bs-toggle="pill"], .${Xe}[data-bs-toggle="list"]`;class Ye extends be{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),g.on(this._element,Aa,o=>this._keydown(o)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const o=this._getActiveElem(),l=o?g.trigger(o,Ea,{relatedTarget:t}):null;g.trigger(t,Sa,{relatedTarget:o}).defaultPrevented||l&&l.defaultPrevented||(this._deactivate(o,t),this._activate(t,o))}_activate(t,o){t&&(t.classList.add(Xe),this._activate(k.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),g.trigger(t,Na,{relatedTarget:o})):t.classList.add(Ii)},t,t.classList.contains(As)))}_deactivate(t,o){t&&(t.classList.remove(Xe),t.blur(),this._deactivate(k.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),g.trigger(t,wa,{relatedTarget:o})):t.classList.remove(Ii)},t,t.classList.contains(As)))}_keydown(t){if(![Ba,Ss,Da,Ns,Li,Ts].includes(t.key))return;t.stopPropagation(),t.preventDefault();const o=this._getChildren().filter(f=>!M(f));let l;if([Li,Ts].includes(t.key))l=o[t.key===Li?0:o.length-1];else{const f=[Ss,Ns].includes(t.key);l=Se(o,t.target,f,!0)}l&&(l.focus({preventScroll:!0}),Ye.getOrCreateInstance(l).show())}_getChildren(){return k.find(Pi,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,o){this._setAttributeIfNotExists(t,"role","tablist");for(const l of o)this._setInitialAttributesOnChild(l)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const o=this._elemIsActive(t),l=this._getOuterElement(t);t.setAttribute("aria-selected",o),l!==t&&this._setAttributeIfNotExists(l,"role","presentation"),o||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const o=k.getElementFromSelector(t);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,o){const l=this._getOuterElement(t);if(!l.classList.contains("dropdown"))return;const f=(p,h)=>{const m=k.findOne(p,l);m&&m.classList.toggle(h,o)};f(Os,Xe),f(".dropdown-menu",Ii),l.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(t,o,l){t.hasAttribute(o)||t.setAttribute(o,l)}_elemIsActive(t){return t.classList.contains(Xe)}_getInnerElement(t){return t.matches(Pi)?t:k.findOne(Pi,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const o=Ye.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(document,Ta,Bs,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this)||Ye.getOrCreateInstance(this).show()}),g.on(window,Oa,()=>{for(const s of k.find(Va))Ye.getOrCreateInstance(s)}),X(Ye);const Ve=".bs.toast",Ma=`mouseover${Ve}`,za=`mouseout${Ve}`,La=`focusin${Ve}`,Ia=`focusout${Ve}`,Fa=`hide${Ve}`,Pa=`hidden${Ve}`,Wa=`show${Ve}`,ja=`shown${Ve}`,Ds="hide",Un="show",Xn="showing",Ra={animation:"boolean",autohide:"boolean",delay:"number"},xa={animation:!0,autohide:!0,delay:5e3};class Sn extends be{constructor(t,o){super(t,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return xa}static get DefaultType(){return Ra}static get NAME(){return"toast"}show(){g.trigger(this._element,Wa).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Ds),ie(this._element),this._element.classList.add(Un,Xn),this._queueCallback(()=>{this._element.classList.remove(Xn),g.trigger(this._element,ja),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(g.trigger(this._element,Fa).defaultPrevented||(this._element.classList.add(Xn),this._queueCallback(()=>{this._element.classList.add(Ds),this._element.classList.remove(Xn,Un),g.trigger(this._element,Pa)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Un),super.dispose()}isShown(){return this._element.classList.contains(Un)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,o){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=o;break;case"focusin":case"focusout":this._hasKeyboardInteraction=o}if(o)return void this._clearTimeout();const l=t.relatedTarget;this._element===l||this._element.contains(l)||this._maybeScheduleHide()}_setListeners(){g.on(this._element,Ma,t=>this._onInteraction(t,!0)),g.on(this._element,za,t=>this._onInteraction(t,!1)),g.on(this._element,La,t=>this._onInteraction(t,!0)),g.on(this._element,Ia,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const o=Sn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t](this)}})}}return On(Sn),X(Sn),{Alert:vn,Button:bn,Carousel:ot,Collapse:rt,Dropdown:ye,Modal:qe,Offcanvas:Oe,Popover:Hn,ScrollSpy:wn,Tab:Ye,Toast:Sn,Tooltip:He}})})(ei)),ei.exports}var Fc=Ic();const Gi=zc(Fc);function ar(e,i=!0){const a=document.getElementById(e);let r=a?.parentElement;for(;r;){const c=(r.getAttribute("class")??"").match(/cl-tab-[0-9]+/);if(c){const u=document.querySelector(`input.${c}`);if(u){u.checked=!0;break}}r=r.parentElement}setTimeout(()=>{i?a?.scrollIntoView({behavior:"smooth"}):a?.scrollIntoView()},0)}let we=null;function pn(){we?.hide(),we=null}function Qi(e,i){pn();const a=document.getElementById(e);if(a){we=new Gi.Modal(a,{backdrop:"static"}),we.value=i,we.id=e,we.show();const r=document.querySelector(`#${e} [autofocus]`);r&&r.focus()}}function ti(e){return Gi.Modal.getInstance(document.getElementById(e))?.value}function Pc(e){return we?e?we.id===e&&we._isShown:we._isShown:!1}function cr(e,i=0,a=25){return e?.slice(i*a,i*a+a)??[]}function Wc(e="#invalid"){document.querySelector(e)?.focus()}function dr(e,i=[]){for(const r of i)r.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function ur(e,i){e&&(e.modelValue=i,e.valid=!0)}function Ji(e){const i=document.querySelector(`#${e}`);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(a=>{a.focus(),a.blur()}),i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)?(Zi(e),!1):!0):(console.error("can't find/validate form",e),!1)}async function fr(e){const i=document.getElementById(e);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(a=>{a.focus(),a.blur()}),document.querySelectorAll(`#${e} .ace_editor`).forEach(a=>{a.click()}),new Promise(a=>setTimeout(()=>{if(i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)){Zi(e),a(!1);return}a(!0)}))):(console.error("can't find/validate form",e),Promise.resolve(!1))}function jc(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function Zi(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function Rc(e){return e<1024?`${e}B`:e<1024*1024?`${Math.floor(e/1024)}kB`:e<1024*1024*1024?`${Math.floor(e/1024/1024)}MB`:`${Math.floor(e/1024/1024/1024)}GB`}function pr(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),a=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${a} ${i}`}function hr(e,i=!1){const[a,r,c]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];return i?`${a}:${r}:${c}`:`${a}:${r}`}function xc(e,i=!1){return`${pr(e)} ${hr(e,i)}`}function qc(e,i,a=!0,r=!1){let c=i.getTime()-e.getTime();r?c+=1:a?c+=1e3:c+=60*1e3;const u=(""+c%1e3).padStart(3,"0");c=Math.floor(c/1e3);const d=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const v=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const $=(""+c).padStart(2,"0");return r?`${$}:${v}:${d}.${u}`:a?`${$}:${v}:${d}`:`${$}:${v}`}function Hc(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e);return`${new Intl.DateTimeFormat("en",{month:"short"}).format(e)} ${i}`}function oi(e,i=0){return e.toLocaleString("en",{minimumFractionDigits:i})}function Uc(e,i,a=2){switch(i){case"EUR":i="€";break;case"USD":i="$";break}return`${i} ${oi(e/10**a,a)}`}function Xc(e,i){return`${oi(e)} - ${oi(i)}`}function mr(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function Yc(e,i,a=e.ID_FORM){if(a){if(Ji(a)&&!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1})}else if(!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1});return Promise.resolve()}function Kc(e,i,a=e.ID_FORM){return e.submitting?Promise.resolve():fr(a).then(r=>{if(r)return e.submitting=!0,i().finally(()=>{e.submitting=!1})})}function yt(e,i){const a=i.split("."),r=a.shift(),c=e[r];return[void 0,null].includes(c)?c:a.length>0?yt(c,a.join(".")):c}function gr(e,i,a="ASC",r=!1){if(!e)return[];const c=typeof e=="function"?[...e()]:[...e],u=(d,v)=>d.localeCompare(v,void 0,{ignorePunctuation:!0});return a==="ASC"?c.sort((d,v)=>(d=yt(d,i)??"",v=yt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(d.toUpperCase(),v.toUpperCase()):u(d,v):d>v?1:d<v?-1:0)):c.sort((d,v)=>(d=yt(d,i)??"",v=yt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(v.toUpperCase(),d.toUpperCase()):u(v,d):d<v?1:d>v?-1:0))}function vr(e,i=0,a="ASC"){return{col:i,order:a,set:function(r,c){const u=this.sort(r,c);this.col=r,this.order=u},get:function(r){return this.col===r?this.order:"NONE"},sorted:[],sorter:e,sort:function(r=this.col,c=this.order){const{sorted:u,sortedOrder:d}=this.sorter(r,c);return this.sorted=u,d}}}function Gc(e,i,a=0,r=()=>0,c=()=>Number.MAX_SAFE_INTEGER){return vr((u,d)=>({sorted:cr(gr(e,i[u],d),r(),c()),sortedOrder:d}),a)}function Qc(e,i=500,a="none"){clearTimeout(Qs.get(a)),Qs.set(a,setTimeout(e,i))}const Qs=new Map;function Jc(e=3,i=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","eiusmod","tempor","incididunt","labore","et","dolore","magna","aliqua"]){let a="";for(let r=0;r<e;r++)a+=" "+i[Math.floor(Math.random()*i.length)];return a.substr(1)}function Zc(e=3,i=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","omicorn"]){const a=[];for(let r=0;r<e;r++)a.push(i[Math.floor(Math.random()*i.length)]);return a}function ed(e){navigator.clipboard.writeText(e)}function td(e,i=[],a=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u());else if(u){const d=u.shift();c.push(d(...u))}for(const u of a)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(u.shift(),!1))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function nd(e,i=[],a=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u(!0));else if(u){const d=u.shift();c.push(d(!0,...u))}for(const u of a)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(!1,...u))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function id(e){return new Promise(i=>setTimeout(i,e))}function od(e){return e}function sd(e){return e}function rd(e){return e}const ld=n.defineComponent({name:"ClBackCancelOk",props:{ok:{type:String,default:"Ok"},back:{type:String,default:"Back"},cancel:{type:String,default:"Cancel"},disabled:{type:Boolean,default:!1},dirty:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},backHidden:{type:Boolean,default:!1},spinner:{type:Boolean,default:!1}},emits:["ok","cancel"],data(){return{ID_MODAL:"cl-modal-back-cancel-ok"}},methods:{clModalHide:pn,abort:function(){this.dirty?Qi(this.ID_MODAL,{}):this.$emit("cancel")},emit:function(e){pn(),this.$emit(e)}}}),ad={key:0},cd={key:1},dd=["disabled"];function ud(e,i,a,r,c,u){const d=n.resolveComponent("cl-modal"),v=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(v,{class:"cl-back-cancel-ok"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("div",{class:n.normalizeClass(["cl-spacing-box cl-spacing-medium it-buttons",[e.backHidden?"text-end":"cl-spread"]])},[e.backHidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=$=>e.abort())},[e.dirty?(n.openBlock(),n.createElementBlock("span",ad,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",cd,n.toDisplayString(e.back),1))])),e.hidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),disabled:e.disabled||!e.dirty,onClick:i[1]||(i[1]=$=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],10,dd))],2),n.createVNode(d,{id:e.ID_MODAL},{title:n.withCtx(()=>[...i[4]||(i[4]=[n.createTextVNode(" Unsaved changes ",-1)])]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"modal",{},()=>[i[5]||(i[5]=n.createElementVNode("p",null,"There are unsaved changes. Do you want to discard them or continue editing?",-1))])]),"footer-left":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[2]||(i[2]=$=>e.emit("cancel",!0))}," Discard changes ")]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-primary it-ok",onClick:i[3]||(i[3]=$=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const Ct=w(ld,[["render",ud]]);Ct.install=e=>{e.component(Ct.name??"ClNoName",Ct)};const fd=n.defineComponent({name:"ClCookieBanner",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},local:{type:Boolean,default:!1}},emits:["consent"],data(){return{fade:!1,visible:!0,cookie:"cl_banner_nok"}},computed:{clazz:function(){return(this.fade?" cl-fade-away":"")+(this.class?` ${this.class}`:"")}},created(){for(const e of document?.cookie?.split(/; */)??[]){const[i,a]=e.split("=");if(i===this.cookie&&["-mtm","+mtm"].includes(a)){this.visible=!1;break}}},methods:{accept:function(){document.cookie=this.cookieString("+mtm"),this.hide(),this.$emit("consent")},decline:function(){document.cookie=this.cookieString("-mtm"),this.hide()},cookieString:function(e){return this.local?`${this.cookie}=${e}; max-age=${3600*24*395}; path=/; SameSite=Lax;`:`${this.cookie}=${e}; max-age=${3600*24*395}; domain=.castlabs.com; path=/; SameSite=Lax;`},hide:function(){this.fade=!0,setTimeout(()=>{this.visible=!1},500)}}}),pd=["id"],hd={class:"card-body"},md={class:"cl-spacing-box text-center"};function gd(e,i,a,r,c,u){return e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,id:e.id,class:n.normalizeClass(["card cl-card cl-cookie-banner",e.clazz])},[n.createElementVNode("div",hd,[n.renderSlot(e.$slots,"default",{},()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-small"},[n.createTextVNode(" For our services to work, we use essential cookies which we control. We'd also like to include others to analyze how our site is used to help improve it - but only if you accept. Learn more in our "),n.createElementVNode("a",{class:"cl-a-text",href:"https://castlabs.com/privacy-cookie-policy/"},"privacy policy"),n.createTextVNode(". ")],-1))]),n.createElementVNode("div",md,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-primary it-ok",onClick:i[0]||(i[0]=d=>e.accept())}," Accept "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-secondary it-cancel",onClick:i[1]||(i[1]=d=>e.decline())}," Decline ")])])],10,pd)):n.createCommentVNode("",!0)}const kt=w(fd,[["render",gd]]);kt.install=e=>{e.component(kt.name??"ClNoName",kt)};const mn={mounted(e,i){let a="";for(const c of["cl-tooltip-primary","cl-tooltip-secondary","cl-tooltip-light","cl-tooltip-dark"])e.classList.contains(c)&&(a+=` ${c}`);const r=new Gi.Tooltip(e,{title:i.value,placement:i.arg,html:!0,trigger:"hover",delay:{show:65,hide:0},template:`<div class="tooltip cl-tooltip${a}" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`});return e.__tooltipInstance=r,e.addEventListener("show.bs.tooltip",function(){document.querySelectorAll(".cl-tooltip").forEach(u=>u.remove())}),r},unmounted(e){const i=e.__tooltipInstance;if(i){typeof i.dispose=="function"&&i.dispose();const a=document.querySelector(".cl-tooltip");a&&a.remove(),delete e.__tooltipInstance}}},eo={mounted(e,i){e.addEventListener("click",function(){const a=typeof i.value=="function"?i.value():i.value;i.value!==""&&navigator.clipboard?.writeText(a),e.classList.add("cl-animation-flash-text"),setTimeout(()=>{e.classList.remove("cl-animation-flash-text")},1500)})}},vd=n.defineComponent({name:"ClCopy",directives:{tooltip:mn,clipboard:eo},props:{show:{type:String,default:void 0},copy:{type:String,default:void 0},underline:{type:Boolean,default:!1},code:{type:Boolean,default:!1},unstyled:{type:Boolean,default:!1}},methods:{tooltip:function(){return this.show&&this.contentToCopy()!==this.show?`${this.contentToCopy()}<br><small>Click-to-copy!</small>`:"<small>Click-to-copy!</small>"},contentToCopy:function(){return this.copy??this.$refs.content?.textContent.trim()}}}),bd={key:0,ref:"content",class:"cl-copy"},yd={ref:"content"};function _d(e,i,a,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return e.unstyled?n.withDirectives((n.openBlock(),n.createElementBlock("span",bd,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))])),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):e.code?n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[n.createElementVNode("code",yd,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],512)],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:2,ref:"content",class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]])}const $t=w(vd,[["render",_d]]);$t.install=e=>{e.component($t.name??"ClNoName",$t)};const Cd=n.defineComponent({name:"ClCreditcardNumber",props:{id:{type:String,default:void 0},class:{type:String,default:""},number:{type:String,default:"0000000000000000"},expires:{type:String,default:"MM/YYYY"},expired:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""},validText:function(){return this.expired?"expired":"valid until"}},methods:{clFormatCardNumber:mr}}),kd=["id"];function $d(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("code",{id:e.id,class:n.normalizeClass(e.clazz)},n.toDisplayString(e.clFormatCardNumber(e.number)),11,kd),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const Et=w(Cd,[["render",$d]]);Et.install=e=>{e.component(Et.name??"ClNoName",Et)};function Js(e){e.preventDefault()}const Ed=n.defineComponent({name:"ClDropzone",props:{what:{type:String,default:"a file"},why:{type:String,default:"to add"},accept:{type:String,default:void 0},camera:{type:Boolean,default:!1}},emits:["file","content"],data(){return{$uid:0,dragging:!1}},mounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.addEventListener(e,Js)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,Js)})},methods:{browse:function(){const e=document.getElementById(`cl-dropzone-file-${this.$uid}`);if(e&&document.createEvent){const i=document.createEvent("MouseEvents");i.initEvent("click",!0,!1),e.dispatchEvent(i)}},browsed:function(){const i=document.getElementById(`cl-dropzone-file-${this.$uid}`).files??[];i.length>0&&this.loadFile(i[0])},mock:function(e){this.$emit("file",e)},loadFile:function(e){const i=new FileReader,a=this.$emit;a("file",e),i.onload=function(r){a("content",r.target?.result)},i.readAsText(e)},onDrop:function(e){e.dataTransfer&&this.loadFile(e.dataTransfer.files[0]),this.dragging=!1},onDrag:function(e){this.dragging=e}}}),wd=["id"],Sd=["id","accept"];function Nd(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["cl-spacing-small",e.dragging?"cl-dragging":""]),onDragover:i[6]||(i[6]=d=>e.onDrag(!0)),onDragleave:i[7]||(i[7]=d=>e.onDrag(!1)),onDrop:i[8]||(i[8]=n.withModifiers((...d)=>e.onDrop&&e.onDrop(...d),["prevent"]))},[e.camera?(n.openBlock(),n.createElementBlock("input",{key:0,id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:"image/*",class:"cl-dropzone-file",capture:"environment",onChange:i[0]||(i[0]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,wd)):n.createCommentVNode("",!0),n.createElementVNode("input",{id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:e.accept,class:"cl-dropzone-file",onChange:i[1]||(i[1]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,Sd),e.camera?(n.openBlock(),n.createElementBlock("div",{key:1,class:"cl-dropzone",onClick:i[3]||(i[3]=d=>e.browse())},[i[9]||(i[9]=n.createElementVNode("i",{class:"fas fa-camera"},null,-1)),i[10]||(i[10]=n.createTextVNode("Use your ",-1)),n.createElementVNode("a",{href:"#",onClick:i[2]||(i[2]=n.withModifiers(()=>{},["prevent"]))},"camera"),n.createTextVNode(" to take a picture "+n.toDisplayString(e.why)+". ",1)])):(n.openBlock(),n.createElementBlock("div",{key:2,class:"cl-dropzone",onClick:i[5]||(i[5]=d=>e.browse())},[i[11]||(i[11]=n.createElementVNode("i",{class:"fas fa-file-upload"},null,-1)),i[12]||(i[12]=n.createTextVNode("Drop or ",-1)),n.createElementVNode("a",{href:"#",onClick:i[4]||(i[4]=n.withModifiers(()=>{},["prevent"]))},"browse"),n.createTextVNode(" "+n.toDisplayString(e.what)+" "+n.toDisplayString(e.why)+". ",1)])),n.renderSlot(e.$slots,"default")],34)}const wt=w(Ed,[["render",Nd]]);wt.install=e=>{e.component(wt.name??"ClNoName",wt)};const Td=n.defineComponent({name:"ClField",inheritAttrs:!1,props:{value:{type:String,default:void 0},type:{type:String,default:"text"},label:{type:String,default:void 0},placeholder:{type:String,default:void 0},class:{type:String,default:""},help:{type:String,default:void 0},error:{type:String,default:void 0},nofeedback:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autotrim:{type:Boolean,default:!1},prevalidate:{type:Boolean,default:!1},minlength:{type:String,default:void 0},maxlength:{type:String,default:void 0},min:{type:String,default:void 0},max:{type:String,default:void 0},pattern:{type:String,default:void 0}},emits:["valid","invalid","changed","update:modelValue"],data(){return{valid:!0,modelValue:this.value??"",invalidMessage:this.error??"Input invalid.",filePlaceholder:this.placeholder??"Please select ..."}},computed:{clazz:function(){return this.type==="file"?this.class+" cl-file"+(this.valid?"":" invalid"):this.class+" form-control"+(this.valid?"":" invalid")}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},mounted:function(){this.prevalidate&&this.validate()},methods:{runAutotrim:function(){if(this.autotrim||["number"].includes(this.type)){const e=this.$refs.input;e.value=e.value.trim(),this.modelValue=e.value}},focus:function(){this.$nextTick(()=>{this.$refs.input?.focus()})},validate:function(e=!1){if(this.valid=!0,e&&this.runAutotrim(),this.type==="file"&&this.modelValue!==""&&(this.filePlaceholder=this.modelValue.replace(/.*[/\\]/,"")),this.required&&(this.modelValue?.length??0)<=0)this.setInvalid("This field may not be blank.");else switch(this.type){case"number":this.validateNumber();break;case"email":this.validateEMail();break;default:this.validateText()}this.valid&&this.setValid(this.modelValue)},validateText:function(){const e=Number(this.minlength),i=Number(this.maxlength);this.minlength&&(this.modelValue?.length??0)<e&&this.setInvalid(this.error??`Please enter at least ${e} character`+(e>1?"s.":".")),this.maxlength&&(this.modelValue?.length??0)>i&&this.setInvalid(this.error??`Please enter at most ${i} character`+(e>1?"s.":".")),this.pattern&&!new RegExp(this.pattern,"g").test(this.modelValue)&&this.setInvalid(this.error)},validateNumber:function(){const e=this.modelValue.trim();if(!/^-?[0-9]*$/.test(e.trim())){this.setInvalid("Please enter a number.");return}const i=parseInt(e.trim());if(i.toString()!==e){this.setInvalid("Please enter a number.");return}this.min!==void 0&&this.max!==void 0?(i<parseInt(this.min)||i>parseInt(this.max))&&this.setInvalid(`Please enter a number between ${this.min} and ${this.max}.`):this.min!==void 0?i<parseInt(this.min)&&this.setInvalid(`Please enter a number >= ${this.min}.`):this.max!==void 0&&i>parseInt(this.max)&&this.setInvalid(`Please enter a number <= ${this.max}.`)},validateEMail:function(){/^[^\s@]+@[^\s@]+\.[^\s@]+[^\s@.]$/.test(this.modelValue)||this.setInvalid("Please enter a valid email address.")},setValid:function(e=""){this.valid=!0,this.modelValue=e,this.$emit("update:modelValue",this.modelValue),this.$emit("valid",this.help??""),this.$emit("changed",this.modelValue)},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid.",this.$emit("update:modelValue",this.modelValue),this.$emit("invalid",this.invalidMessage),this.$emit("changed",this.modelValue)}}}),Ad=["for"],Od={key:0,class:"required"},Bd=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Dd=["id","autofocus","disabled","required"],Vd=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Md=["id","for"],zd={key:1,class:"valid-feedback valid-feedback-none"};function Ld(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,for:e.$uid,class:n.normalizeClass(["form-label",{disabled:e.disabled}])},[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Od,"*")):n.createCommentVNode("",!0)],10,Ad)):n.createCommentVNode("",!0),e.type==="textarea"?n.withDirectives((n.openBlock(),n.createElementBlock("textarea",n.mergeProps({key:1,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required,onBlur:i[1]||(i[1]=d=>e.validate(!0)),onChange:i[2]||(i[2]=d=>e.validate()),onInput:i[3]||(i[3]=d=>e.validate())}),null,16,Bd)),[[n.vModelText,e.modelValue]]):e.type==="select"?n.withDirectives((n.openBlock(),n.createElementBlock("select",n.mergeProps({key:2,id:e.$uid,"onUpdate:modelValue":i[4]||(i[4]=d=>e.modelValue=d),class:["form-select",e.clazz],autofocus:e.autofocus,disabled:e.disabled,required:e.required},e.$attrs,{onBlur:i[5]||(i[5]=d=>e.validate(!0)),onChange:i[6]||(i[6]=d=>e.validate())}),[n.renderSlot(e.$slots,"default")],16,Dd)),[[n.vModelSelect,e.modelValue]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",n.mergeProps({key:3,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[7]||(i[7]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,min:e.min,max:e.max,maxlength:e.maxlength,minlength:e.minlength,pattern:e.pattern,placeholder:e.placeholder,required:e.required,type:["number"].includes(e.type)?"text":e.type,onBlur:i[8]||(i[8]=d=>e.validate(!0)),onChange:i[9]||(i[9]=d=>e.validate()),onInput:i[10]||(i[10]=d=>e.validate())}),null,16,Vd)),[[n.vModelDynamic,e.modelValue]]),e.type==="file"?(n.openBlock(),n.createElementBlock("label",{key:4,id:`${e.$uid}-companion`,for:e.$uid,class:"cl-file-companion"},n.toDisplayString(e.filePlaceholder),9,Md)):n.createCommentVNode("",!0),e.nofeedback?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[n.createElementVNode("p",{class:n.normalizeClass(["invalid-feedback",{disabled:e.disabled}])},n.toDisplayString(e.invalidMessage),3),e.help?(n.openBlock(),n.createElementBlock("p",{key:0,class:n.normalizeClass(["valid-feedback",{disabled:e.disabled}])},n.toDisplayString(e.help),3)):(n.openBlock(),n.createElementBlock("p",zd))],64))],64)}const St=w(Td,[["render",Ld]]);St.install=e=>{e.component(St.name??"ClNoName",St)};const Id=n.defineComponent({name:"ClFieldCheck",inheritAttrs:!1,props:{id:{type:String,default:void 0},value:{type:Boolean,default:!1},label:{type:String,default:void 0},class:{type:String,default:""},inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{modelValue:this.value}},computed:{clazz:function(){return`form-check${this.inline?" form-check-inline":""} ${this.class}`}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},methods:{check:function(e=!1){this.modelValue=e,this.$refs.input.checked=e},focus:function(){this.$nextTick(()=>{this.$refs.input.focus()})}}}),Fd=["id","disabled","indeterminate","autofocus"],Pd=["for"];function Wd(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.clazz)},[n.withDirectives(n.createElementVNode("input",n.mergeProps({id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,indeterminate:e.indeterminate,autofocus:e.autofocus},e.$attrs,{onChange:i[1]||(i[1]=d=>e.$emit("update:modelValue",e.modelValue))}),null,16,Fd),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,Pd)],2)}const Nt=w(Id,[["render",Wd]]);Nt.install=e=>{e.component(Nt.name??"ClNoName",Nt)};const jd=n.defineComponent({name:"ClFieldGroup",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},label:{type:String,default:void 0},help:{type:String,default:void 0},error:{type:String,default:void 0},required:{type:Boolean,default:!1}},data(){return{valid:!0,invalidMessage:this.error??"Input invalid."}},computed:{clazz:function(){return(this.valid?"":" invalid")+(this.class?` ${this.class}`:"")}},methods:{setValid:function(){this.valid=!0,this.invalidMessage="Input invalid."},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid."}}}),Rd={key:0,class:"form-label"},xd={key:0,class:"required"},qd=["id"],Hd={class:"invalid-feedback"},Ud={key:1,class:"valid-feedback"};function Xd(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",Rd,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",xd,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(`input-group${e.clazz}`),id:e.id},[n.renderSlot(e.$slots,"default")],10,qd),n.createElementVNode("p",Hd,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",Ud,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Tt=w(jd,[["render",Xd]]);Tt.install=e=>{e.component(Tt.name??"ClNoName",Tt)};const Yd=n.defineComponent({name:"ClHashtag",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-hashtag ";return!this.primary&&!this.secondary?this.class.includes("cl-color")||(e+=" cl-color-steel"):this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),Kd={key:0,class:"cl-badge-derived"},Gd=["id"],Qd=["id"];function Jd(e,i,a,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",Kd,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Gd)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Qd))}const At=w(Yd,[["render",Jd]]);At.install=e=>{e.component(At.name??"ClNoName",At)};const Zd=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),eu={class:"container cl-container-iconotron"},tu={class:"row"},nu={class:"col-12 col-md-3"},iu=["src"],ou={class:"col-12 col-md-9"};function su(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",eu,[n.createElementVNode("div",tu,[n.createElementVNode("div",nu,[n.createElementVNode("img",{src:e.src,alt:""},null,8,iu)]),n.createElementVNode("div",ou,[n.renderSlot(e.$slots,"default")])])])}const Ot=w(Zd,[["render",su]]);Ot.install=e=>{e.component(Ot.name??"ClNoName",Ot)};const ru=n.defineComponent({name:"ClInfo",directives:{tooltip:mn},props:{bottom:{type:Boolean,default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},top:{type:Boolean,default:!0},info:{type:String,default:"Tooltip"},faded:{type:Boolean,default:!0},icon:{type:String,default:"far fa-question-circle"}},computed:{classes:function(){return this.icon+(this.faded?" cl-faded":"")}}});function lu(e,i,a,r,c,u){const d=n.resolveDirective("tooltip");return e.bottom?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"top"]])}const Bt=w(ru,[["render",lu]]);Bt.install=e=>{e.component(Bt.name??"ClNoName",Bt)};const au=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function cu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass({"cl-a-external":!e.noicon}),target:"_blank",rel:"noopener noreferrer"},[n.renderSlot(e.$slots,"default")],2)}const Dt=w(au,[["render",cu]]);Dt.install=e=>{e.component(Dt.name??"ClNoName",Dt)};const du=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");function ni(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}var Ja=typeof global=="object"&&global&&global.Object===Object&&global,Za=typeof self=="object"&&self&&self.Object===Object&&self,er=Ja||Za||Function("return this")(),xi=function(){return er.Date.now()},ec=/\s/;function tc(e){for(var i=e.length;i--&&ec.test(e.charAt(i)););return i}var nc=/^\s+/;function ic(e){return e&&e.slice(0,tc(e)+1).replace(nc,"")}var ii=er.Symbol,tr=Object.prototype,oc=tr.hasOwnProperty,sc=tr.toString,Nn=ii?ii.toStringTag:void 0;function rc(e){var i=oc.call(e,Nn),a=e[Nn];try{e[Nn]=void 0;var r=!0}catch{}var c=sc.call(e);return r&&(i?e[Nn]=a:delete e[Nn]),c}var lc=Object.prototype,ac=lc.toString;function cc(e){return ac.call(e)}var dc="[object Null]",uc="[object Undefined]",Hs=ii?ii.toStringTag:void 0;function fc(e){return e==null?e===void 0?uc:dc:Hs&&Hs in Object(e)?rc(e):cc(e)}function pc(e){return e!=null&&typeof e=="object"}var hc="[object Symbol]";function mc(e){return typeof e=="symbol"||pc(e)&&fc(e)==hc}var Us=NaN,gc=/^[-+]0x[0-9a-f]+$/i,vc=/^0b[01]+$/i,bc=/^0o[0-7]+$/i,yc=parseInt;function Xs(e){if(typeof e=="number")return e;if(mc(e))return Us;if(ni(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=ni(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=ic(e);var a=vc.test(e);return a||bc.test(e)?yc(e.slice(2),a?2:8):gc.test(e)?Us:+e}var _c="Expected a function",Cc=Math.max,kc=Math.min;function Jn(e,i,a){var r,c,u,d,v,$,B=0,x=!1,M=!1,Q=!0;if(typeof e!="function")throw new TypeError(_c);i=Xs(i)||0,ni(a)&&(x=!!a.leading,M="maxWait"in a,u=M?Cc(Xs(a.maxWait)||0,i):u,Q="trailing"in a?!!a.trailing:Q);function U(j){var ce=r,de=c;return r=c=void 0,B=j,d=e.apply(de,ce),d}function ie(j){return B=j,v=setTimeout(q,i),x?U(j):d}function ve(j){var ce=j-$,de=j-B,et=i-ce;return M?kc(et,u-de):et}function oe(j){var ce=j-$,de=j-B;return $===void 0||ce>=i||ce<0||M&&de>=u}function q(){var j=xi();if(oe(j))return X(j);v=setTimeout(q,ve(j))}function X(j){return v=void 0,Q&&r?U(j):(r=c=void 0,d)}function K(){v!==void 0&&clearTimeout(v),B=0,r=$=c=v=void 0}function Ze(){return v===void 0?d:X(xi())}function Se(){var j=xi(),ce=oe(j);if(r=arguments,c=this,$=j,ce){if(v===void 0)return ie($);if(M)return clearTimeout(v),v=setTimeout(q,i),U($)}return v===void 0&&(v=setTimeout(q,i)),d}return Se.cancel=K,Se.flush=Ze,Se}var $c="Expected a function";function Ec(e,i,a){var r=!0,c=!0;if(typeof e!="function")throw new TypeError($c);return ni(a)&&(r="leading"in a?!!a.leading:r,c="trailing"in a?!!a.trailing:c),Jn(e,i,{leading:r,maxWait:i,trailing:c})}var bt=function(){return bt=Object.assign||function(i){for(var a,r=1,c=arguments.length;r<c;r++){a=arguments[r];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])}return i},bt.apply(this,arguments)};function nr(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function ir(e){return!e||!e.ownerDocument?document:e.ownerDocument}var or=function(e){var i={},a=Array.prototype.reduce.call(e,function(r,c){var u=c.name.match(/data-simplebar-(.+)/);if(u){var d=u[1].replace(/\W+(.)/g,function(v,$){return $.toUpperCase()});switch(c.value){case"true":r[d]=!0;break;case"false":r[d]=!1;break;case void 0:r[d]=!0;break;default:r[d]=c.value}}return r},i);return a};function sr(e,i){var a;e&&(a=e.classList).add.apply(a,i.split(" "))}function rr(e,i){e&&i.split(" ").forEach(function(a){e.classList.remove(a)})}function lr(e){return".".concat(e.split(" ").join("."))}var Yi=!!(typeof window<"u"&&window.document&&window.document.createElement),wc=Object.freeze({__proto__:null,addClasses:sr,canUseDOM:Yi,classNamesToQuery:lr,getElementDocument:ir,getElementWindow:nr,getOptions:or,removeClasses:rr}),vt=null,Ys=null;Yi&&window.addEventListener("resize",function(){Ys!==window.devicePixelRatio&&(Ys=window.devicePixelRatio,vt=null)});function Ks(){if(vt===null){if(typeof document>"u")return vt=0,vt;var e=document.body,i=document.createElement("div");i.classList.add("simplebar-hide-scrollbar"),e.appendChild(i);var a=i.getBoundingClientRect().right;e.removeChild(i),vt=a}return vt}var ze=nr,qi=ir,Sc=or,Le=sr,Ie=rr,ne=lr,Zn=(function(){function e(i,a){a===void 0&&(a={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var c=ze(r.el);r.scrollXTicking||(c.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(c.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Le(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ie(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Le(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ie(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(c){r.mouseX=c.clientX,r.mouseY=c.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(c){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var u,d;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(u=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(d=r.isWithinBounds(r.axis.y.track.rect)),(u||d)&&(c.stopPropagation(),c.type==="pointerdown"&&c.pointerType!=="touch"&&(u&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(c,"x"):r.onTrackClick(c,"x")),d&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(c,"y"):r.onTrackClick(c,"y"))))}},this.drag=function(c){var u,d,v,$,B,x,M,Q,U,ie,ve;if(!(!r.draggedAxis||!r.contentWrapperEl)){var oe,q=r.axis[r.draggedAxis].track,X=(d=(u=q.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:0,K=r.axis[r.draggedAxis].scrollbar,Ze=($=(v=r.contentWrapperEl)===null||v===void 0?void 0:v[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&$!==void 0?$:0,Se=parseInt((x=(B=r.elStyles)===null||B===void 0?void 0:B[r.axis[r.draggedAxis].sizeAttr])!==null&&x!==void 0?x:"0px",10);c.preventDefault(),c.stopPropagation(),r.draggedAxis==="y"?oe=c.pageY:oe=c.pageX;var j=oe-((Q=(M=q.rect)===null||M===void 0?void 0:M[r.axis[r.draggedAxis].offsetAttr])!==null&&Q!==void 0?Q:0)-r.axis[r.draggedAxis].dragOffset;j=r.draggedAxis==="x"&&r.isRtl?((ie=(U=q.rect)===null||U===void 0?void 0:U[r.axis[r.draggedAxis].sizeAttr])!==null&&ie!==void 0?ie:0)-K.size-j:j;var ce=j/(X-K.size),de=ce*(Ze-Se);r.draggedAxis==="x"&&r.isRtl&&(de=!((ve=e.getRtlHelpers())===null||ve===void 0)&&ve.isScrollingToNegative?-de:de),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=de}},this.onEndDrag=function(c){r.isDragging=!1;var u=qi(r.el),d=ze(r.el);c.preventDefault(),c.stopPropagation(),Ie(r.el,r.classNames.dragging),r.onStopScrolling(),u.removeEventListener("mousemove",r.drag,!0),u.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=d.setTimeout(function(){u.removeEventListener("click",r.preventClick,!0),u.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(c){c.preventDefault(),c.stopPropagation()},this.el=i,this.options=bt(bt({},e.defaultOptions),a),this.classNames=bt(bt({},e.defaultOptions.classNames),a.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Ec(this._onMouseMove,64),this.onWindowResize=Jn(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Jn(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Jn(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var i=document.createElement("div");i.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var a=i.firstElementChild,r=a?.firstElementChild;if(!r)return null;document.body.appendChild(a),a.scrollLeft=0;var c=e.getOffset(a),u=e.getOffset(r);a.scrollLeft=-999;var d=e.getOffset(r);return document.body.removeChild(a),e.rtlHelpers={isScrollOriginAtZero:c.left!==u.left,isScrollingToNegative:u.left!==d.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ks()}catch{return Ks()}},e.getOffset=function(i){var a=i.getBoundingClientRect(),r=qi(i),c=ze(i);return{top:a.top+(c.pageYOffset||r.documentElement.scrollTop),left:a.left+(c.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Yi&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var i,a;this.wrapperEl=this.el.querySelector(ne(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ne(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ne(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ne(this.classNames.offset)),this.maskEl=this.el.querySelector(ne(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ne(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ne(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ne(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ne(this.classNames.track)).concat(ne(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ne(this.classNames.track)).concat(ne(this.classNames.vertical))),this.axis.x.scrollbar.el=((i=this.axis.x.track.el)===null||i===void 0?void 0:i.querySelector(ne(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((a=this.axis.y.track.el)===null||a===void 0?void 0:a.querySelector(ne(this.classNames.scrollbar)))||null,this.options.autoHide||(Le(this.axis.x.scrollbar.el,this.classNames.visible),Le(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var i=this,a,r=ze(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(a=this.contentWrapperEl)===null||a===void 0||a.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var c=!1,u=r.ResizeObserver||ResizeObserver;this.resizeObserver=new u(function(){c&&r.requestAnimationFrame(function(){i.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){c=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){i.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var i=ze(this.el);this.elStyles=i.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var a=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,c=this.heightAutoObserverEl.offsetWidth<=1||a>0,u=this.contentWrapperEl.offsetWidth,d=this.elStyles.overflowX,v=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var $=this.contentEl.scrollHeight,B=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=c?"".concat(a||B,"px"):"auto",this.placeholderEl.style.height="".concat($,"px");var x=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=a!==0&&B>a,this.axis.y.isOverflowing=$>x,this.axis.x.isOverflowing=d==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=v==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var M=this.axis.x.isOverflowing?this.scrollbarWidth:0,Q=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&B>u-Q,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&$>x-M,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(i){var a,r;if(i===void 0&&(i="y"),!this.axis[i].isOverflowing||!this.contentEl)return 0;var c=this.contentEl[this.axis[i].scrollSizeAttr],u=(r=(a=this.axis[i].track.el)===null||a===void 0?void 0:a[this.axis[i].offsetSizeAttr])!==null&&r!==void 0?r:0,d=u/c,v;return v=Math.max(~~(d*u),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(v=Math.min(v,this.options.scrollbarMaxSize)),v},e.prototype.positionScrollbar=function(i){var a,r,c;i===void 0&&(i="y");var u=this.axis[i].scrollbar;if(!(!this.axis[i].isOverflowing||!this.contentWrapperEl||!u.el||!this.elStyles)){var d=this.contentWrapperEl[this.axis[i].scrollSizeAttr],v=((a=this.axis[i].track.el)===null||a===void 0?void 0:a[this.axis[i].offsetSizeAttr])||0,$=parseInt(this.elStyles[this.axis[i].sizeAttr],10),B=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];B=i==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-B:B,i==="x"&&this.isRtl&&(B=!((c=e.getRtlHelpers())===null||c===void 0)&&c.isScrollingToNegative?B:-B);var x=B/(d-$),M=~~((v-u.size)*x);M=i==="x"&&this.isRtl?-M+(v-u.size):M,u.el.style.transform=i==="x"?"translate3d(".concat(M,"px, 0, 0)"):"translate3d(0, ".concat(M,"px, 0)")}},e.prototype.toggleTrackVisibility=function(i){i===void 0&&(i="y");var a=this.axis[i].track.el,r=this.axis[i].scrollbar.el;!a||!r||!this.contentWrapperEl||(this.axis[i].isOverflowing||this.axis[i].forceVisible?(a.style.visibility="visible",this.contentWrapperEl.style[this.axis[i].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(i))):(a.style.visibility="hidden",this.contentWrapperEl.style[this.axis[i].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(i))),this.axis[i].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(i){i===void 0&&(i="y"),this.axis[i].isOverflowing&&!this.axis[i].scrollbar.isVisible&&(Le(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(i){i===void 0&&(i="y"),!this.isDragging&&this.axis[i].isOverflowing&&this.axis[i].scrollbar.isVisible&&(Ie(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(i){i===void 0&&(i="y");var a=this.axis[i];!a.track.el||!a.scrollbar.el||(a.track.rect=a.track.el.getBoundingClientRect(),a.scrollbar.rect=a.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(a.track.rect)?(this.showScrollbar(i),Le(a.track.el,this.classNames.hover),this.isWithinBounds(a.scrollbar.rect)?Le(a.scrollbar.el,this.classNames.hover):Ie(a.scrollbar.el,this.classNames.hover)):(Ie(a.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},e.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),Ie(this.axis[i].track.el,this.classNames.hover),Ie(this.axis[i].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)},e.prototype.onDragStart=function(i,a){var r;a===void 0&&(a="y"),this.isDragging=!0;var c=qi(this.el),u=ze(this.el),d=this.axis[a].scrollbar,v=a==="y"?i.pageY:i.pageX;this.axis[a].dragOffset=v-(((r=d.rect)===null||r===void 0?void 0:r[this.axis[a].offsetAttr])||0),this.draggedAxis=a,Le(this.el,this.classNames.dragging),c.addEventListener("mousemove",this.drag,!0),c.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(c.addEventListener("click",this.preventClick,!0),c.addEventListener("dblclick",this.preventClick,!0)):(u.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(i,a){var r=this,c,u,d,v;a===void 0&&(a="y");var $=this.axis[a];if(!(!this.options.clickOnTrack||!$.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var B=ze(this.el);this.axis[a].scrollbar.rect=$.scrollbar.el.getBoundingClientRect();var x=this.axis[a].scrollbar,M=(u=(c=x.rect)===null||c===void 0?void 0:c[this.axis[a].offsetAttr])!==null&&u!==void 0?u:0,Q=parseInt((v=(d=this.elStyles)===null||d===void 0?void 0:d[this.axis[a].sizeAttr])!==null&&v!==void 0?v:"0px",10),U=this.contentWrapperEl[this.axis[a].scrollOffsetAttr],ie=a==="y"?this.mouseY-M:this.mouseX-M,ve=ie<0?-1:1,oe=ve===-1?U-Q:U+Q,q=40,X=function(){r.contentWrapperEl&&(ve===-1?U>oe&&(U-=q,r.contentWrapperEl[r.axis[a].scrollOffsetAttr]=U,B.requestAnimationFrame(X)):U<oe&&(U+=q,r.contentWrapperEl[r.axis[a].scrollOffsetAttr]=U,B.requestAnimationFrame(X)))};X()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var i=ze(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),i.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(i){return this.mouseX>=i.left&&this.mouseX<=i.left+i.width&&this.mouseY>=i.top&&this.mouseY<=i.top+i.height},e.prototype.findChild=function(i,a){var r=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector;return Array.prototype.filter.call(i.children,function(c){return r.call(c,a)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Sc,e.helpers=wc,e})(),Xi=function(e,i){return Xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(a[c]=r[c])},Xi(e,i)};function Nc(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Xi(e,i);function a(){this.constructor=e}e.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}var Ki=Zn.helpers,Hi=Ki.getOptions,ge=Ki.addClasses,Tc=Ki.canUseDOM,Ac=(function(e){Nc(i,e);function i(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];var c=e.apply(this,a)||this;return i.instances.set(a[0],c),c}return i.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(a){a.getAttribute("data-simplebar")!=="init"&&!i.instances.has(a)&&new i(a,Hi(a.attributes))})},i.removeObserver=function(){var a;(a=i.globalObserver)===null||a===void 0||a.disconnect()},i.prototype.initDOM=function(){var a=this,r,c,u;if(!Array.prototype.filter.call(this.el.children,function($){return $.classList.contains(a.classNames.wrapper)}).length){for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),ge(this.wrapperEl,this.classNames.wrapper),ge(this.contentWrapperEl,this.classNames.contentWrapper),ge(this.offsetEl,this.classNames.offset),ge(this.maskEl,this.classNames.mask),ge(this.contentEl,this.classNames.contentEl),ge(this.placeholderEl,this.classNames.placeholder),ge(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),ge(this.heightAutoObserverEl,this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl),(r=this.contentWrapperEl)===null||r===void 0||r.setAttribute("tabindex",this.options.tabIndex.toString()),(c=this.contentWrapperEl)===null||c===void 0||c.setAttribute("role","region"),(u=this.contentWrapperEl)===null||u===void 0||u.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var d=document.createElement("div"),v=document.createElement("div");ge(d,this.classNames.track),ge(v,this.classNames.scrollbar),d.appendChild(v),this.axis.x.track.el=d.cloneNode(!0),ge(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=d.cloneNode(!0),ge(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}Zn.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},i.prototype.unMount=function(){Zn.prototype.unMount.call(this),i.instances.delete(this.el)},i.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(i.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},i.handleMutations=function(a){a.forEach(function(r){r.addedNodes.forEach(function(c){c.nodeType===1&&(c.hasAttribute("data-simplebar")?!i.instances.has(c)&&document.documentElement.contains(c)&&new i(c,Hi(c.attributes)):c.querySelectorAll("[data-simplebar]").forEach(function(u){u.getAttribute("data-simplebar")!=="init"&&!i.instances.has(u)&&document.documentElement.contains(u)&&new i(u,Hi(u.attributes))}))}),r.removedNodes.forEach(function(c){var u;c.nodeType===1&&(c.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(c)&&((u=i.instances.get(c))===null||u===void 0||u.unMount()):Array.prototype.forEach.call(c.querySelectorAll('[data-simplebar="init"]'),function(d){var v;!document.documentElement.contains(d)&&((v=i.instances.get(d))===null||v===void 0||v.unMount())}))})})},i.instances=new WeakMap,i})(Zn);Tc&&Ac.initHtmlApi();const Oc=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"7.6.1"}}),w=(e,i)=>{const a=e.__vccOpts||e;for(const[r,c]of i)a[r]=c;return a};function Bc(e,i,a,r,c,u){return n.toDisplayString(e.VITE_APP_VERSION())}const Dc=w(Oc,[["render",Bc]]),Vc=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Mc(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const _t=w(Vc,[["render",Mc]]);_t.install=e=>{e.component(_t.name??"ClNoName",_t)};function zc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ei={exports:{}};var Lc=ei.exports,Gs;function Ic(){return Gs||(Gs=1,(function(e,i){(function(a,r){e.exports=r()})(Lc,function(){const a=new Map,r={set(s,t,o){a.has(s)||a.set(s,new Map);const l=a.get(s);l.has(t)||l.size===0?l.set(t,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(l.keys())[0]}.`)},get:(s,t)=>a.has(s)&&a.get(s).get(t)||null,remove(s,t){if(!a.has(s))return;const o=a.get(s);o.delete(t),o.size===0&&a.delete(s)}},c="transitionend",u=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,o)=>`#${CSS.escape(o)}`)),s),d=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),v=s=>{s.dispatchEvent(new Event(c))},$=s=>!(!s||typeof s!="object")&&(s.jquery!==void 0&&(s=s[0]),s.nodeType!==void 0),B=s=>$(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(u(s)):null,x=s=>{if(!$(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",o=s.closest("details:not([open])");if(!o)return t;if(o!==s){const l=s.closest("summary");if(l&&l.parentNode!==o||l===null)return!1}return t},M=s=>!s||s.nodeType!==Node.ELEMENT_NODE||!!s.classList.contains("disabled")||(s.disabled!==void 0?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"),Q=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const t=s.getRootNode();return t instanceof ShadowRoot?t:null}return s instanceof ShadowRoot?s:s.parentNode?Q(s.parentNode):null},U=()=>{},ie=s=>{s.offsetHeight},ve=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,oe=[],q=()=>document.documentElement.dir==="rtl",X=s=>{var t;t=()=>{const o=ve();if(o){const l=s.NAME,f=o.fn[l];o.fn[l]=s.jQueryInterface,o.fn[l].Constructor=s,o.fn[l].noConflict=()=>(o.fn[l]=f,s.jQueryInterface)}},document.readyState==="loading"?(oe.length||document.addEventListener("DOMContentLoaded",()=>{for(const o of oe)o()}),oe.push(t)):t()},K=(s,t=[],o=s)=>typeof s=="function"?s.call(...t):o,Ze=(s,t,o=!0)=>{if(!o)return void K(s);const l=(h=>{if(!h)return 0;let{transitionDuration:m,transitionDelay:b}=window.getComputedStyle(h);const _=Number.parseFloat(m),C=Number.parseFloat(b);return _||C?(m=m.split(",")[0],b=b.split(",")[0],1e3*(Number.parseFloat(m)+Number.parseFloat(b))):0})(t)+5;let f=!1;const p=({target:h})=>{h===t&&(f=!0,t.removeEventListener(c,p),K(s))};t.addEventListener(c,p),setTimeout(()=>{f||v(t)},l)},Se=(s,t,o,l)=>{const f=s.length;let p=s.indexOf(t);return p===-1?!o&&l?s[f-1]:s[0]:(p+=o?1:-1,l&&(p=(p+f)%f),s[Math.max(0,Math.min(p,f-1))])},j=/[^.]*(?=\..*)\.|.*/,ce=/\..*/,de=/::\d+$/,et={};let io=1;const oo={mouseenter:"mouseover",mouseleave:"mouseout"},Or=new Set(["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 so(s,t){return t&&`${t}::${io++}`||s.uidEvent||io++}function ro(s){const t=so(s);return s.uidEvent=t,et[t]=et[t]||{},et[t]}function lo(s,t,o=null){return Object.values(s).find(l=>l.callable===t&&l.delegationSelector===o)}function ao(s,t,o){const l=typeof t=="string",f=l?o:t||o;let p=uo(s);return Or.has(p)||(p=s),[l,f,p]}function co(s,t,o,l,f){if(typeof t!="string"||!s)return;let[p,h,m]=ao(t,o,l);t in oo&&(h=(N=>function(S){if(!S.relatedTarget||S.relatedTarget!==S.delegateTarget&&!S.delegateTarget.contains(S.relatedTarget))return N.call(this,S)})(h));const b=ro(s),_=b[m]||(b[m]={}),C=lo(_,h,p?o:null);if(C)return void(C.oneOff=C.oneOff&&f);const y=so(h,t.replace(j,"")),A=p?(function(E,N,S){return function T(F){const R=E.querySelectorAll(N);for(let{target:D}=F;D&&D!==this;D=D.parentNode)for(const z of R)if(z===D)return ri(F,{delegateTarget:D}),T.oneOff&&g.off(E,F.type,N,S),S.apply(D,[F])}})(s,o,h):(function(E,N){return function S(T){return ri(T,{delegateTarget:E}),S.oneOff&&g.off(E,T.type,N),N.apply(E,[T])}})(s,h);A.delegationSelector=p?o:null,A.callable=h,A.oneOff=f,A.uidEvent=y,_[y]=A,s.addEventListener(m,A,p)}function si(s,t,o,l,f){const p=lo(t[o],l,f);p&&(s.removeEventListener(o,p,!!f),delete t[o][p.uidEvent])}function Br(s,t,o,l){const f=t[o]||{};for(const[p,h]of Object.entries(f))p.includes(l)&&si(s,t,o,h.callable,h.delegationSelector)}function uo(s){return s=s.replace(ce,""),oo[s]||s}const g={on(s,t,o,l){co(s,t,o,l,!1)},one(s,t,o,l){co(s,t,o,l,!0)},off(s,t,o,l){if(typeof t!="string"||!s)return;const[f,p,h]=ao(t,o,l),m=h!==t,b=ro(s),_=b[h]||{},C=t.startsWith(".");if(p===void 0){if(C)for(const y of Object.keys(b))Br(s,b,y,t.slice(1));for(const[y,A]of Object.entries(_)){const E=y.replace(de,"");m&&!t.includes(E)||si(s,b,h,A.callable,A.delegationSelector)}}else{if(!Object.keys(_).length)return;si(s,b,h,p,f?o:null)}},trigger(s,t,o){if(typeof t!="string"||!s)return null;const l=ve();let f=null,p=!0,h=!0,m=!1;t!==uo(t)&&l&&(f=l.Event(t,o),l(s).trigger(f),p=!f.isPropagationStopped(),h=!f.isImmediatePropagationStopped(),m=f.isDefaultPrevented());const b=ri(new Event(t,{bubbles:p,cancelable:!0}),o);return m&&b.preventDefault(),h&&s.dispatchEvent(b),b.defaultPrevented&&f&&f.preventDefault(),b}};function ri(s,t={}){for(const[o,l]of Object.entries(t))try{s[o]=l}catch{Object.defineProperty(s,o,{configurable:!0,get:()=>l})}return s}function fo(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function li(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Ne={setDataAttribute(s,t,o){s.setAttribute(`data-bs-${li(t)}`,o)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${li(t)}`)},getDataAttributes(s){if(!s)return{};const t={},o=Object.keys(s.dataset).filter(l=>l.startsWith("bs")&&!l.startsWith("bsConfig"));for(const l of o){let f=l.replace(/^bs/,"");f=f.charAt(0).toLowerCase()+f.slice(1),t[f]=fo(s.dataset[l])}return t},getDataAttribute:(s,t)=>fo(s.getAttribute(`data-bs-${li(t)}`))};class gn{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,o){const l=$(o)?Ne.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof l=="object"?l:{},...$(o)?Ne.getDataAttributes(o):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,o=this.constructor.DefaultType){for(const[l,f]of Object.entries(o)){const p=t[l],h=$(p)?"element":d(p);if(!new RegExp(f).test(h))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${l}" provided type "${h}" but expected type "${f}".`)}}}class be extends gn{constructor(t,o){super(),(t=B(t))&&(this._element=t,this._config=this._getConfig(o),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),g.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,o,l=!0){Ze(t,o,l)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return r.get(B(t),this.DATA_KEY)}static getOrCreateInstance(t,o={}){return this.getInstance(t)||new this(t,typeof o=="object"?o:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const ai=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let o=s.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&o!=="#"?o.trim():null}return t?t.split(",").map(o=>u(o)).join(","):null},k={find:(s,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,s)),findOne:(s,t=document.documentElement)=>Element.prototype.querySelector.call(t,s),children:(s,t)=>[].concat(...s.children).filter(o=>o.matches(t)),parents(s,t){const o=[];let l=s.parentNode.closest(t);for(;l;)o.push(l),l=l.parentNode.closest(t);return o},prev(s,t){let o=s.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(s,t){let o=s.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(o=>!M(o)&&x(o))},getSelectorFromElement(s){const t=ai(s);return t&&k.findOne(t)?t:null},getElementFromSelector(s){const t=ai(s);return t?k.findOne(t):null},getMultipleElementsFromSelector(s){const t=ai(s);return t?k.find(t):[]}},On=(s,t="hide")=>{const o=`click.dismiss${s.EVENT_KEY}`,l=s.NAME;g.on(document,o,`[data-bs-dismiss="${l}"]`,function(f){if(["A","AREA"].includes(this.tagName)&&f.preventDefault(),M(this))return;const p=k.getElementFromSelector(this)||this.closest(`.${l}`);s.getOrCreateInstance(p)[t]()})},po=".bs.alert",Dr=`close${po}`,Vr=`closed${po}`;class vn extends be{static get NAME(){return"alert"}close(){if(g.trigger(this._element,Dr).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),g.trigger(this._element,Vr),this.dispose()}static jQueryInterface(t){return this.each(function(){const o=vn.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}On(vn,"close"),X(vn);const ho='[data-bs-toggle="button"]';class bn extends be{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const o=bn.getOrCreateInstance(this);t==="toggle"&&o[t]()})}}g.on(document,"click.bs.button.data-api",ho,s=>{s.preventDefault();const t=s.target.closest(ho);bn.getOrCreateInstance(t).toggle()}),X(bn);const tt=".bs.swipe",Mr=`touchstart${tt}`,zr=`touchmove${tt}`,Lr=`touchend${tt}`,Ir=`pointerdown${tt}`,Fr=`pointerup${tt}`,Pr={endCallback:null,leftCallback:null,rightCallback:null},Wr={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Bn extends gn{constructor(t,o){super(),this._element=t,t&&Bn.isSupported()&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Pr}static get DefaultType(){return Wr}static get NAME(){return"swipe"}dispose(){g.off(this._element,tt)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),K(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const o=t/this._deltaX;this._deltaX=0,o&&K(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(g.on(this._element,Ir,t=>this._start(t)),g.on(this._element,Fr,t=>this._end(t)),this._element.classList.add("pointer-event")):(g.on(this._element,Mr,t=>this._start(t)),g.on(this._element,zr,t=>this._move(t)),g.on(this._element,Lr,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType==="pen"||t.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Be=".bs.carousel",mo=".data-api",jr="ArrowLeft",Rr="ArrowRight",yn="next",nt="prev",it="left",Dn="right",xr=`slide${Be}`,ci=`slid${Be}`,qr=`keydown${Be}`,Hr=`mouseenter${Be}`,Ur=`mouseleave${Be}`,Xr=`dragstart${Be}`,Yr=`load${Be}${mo}`,Kr=`click${Be}${mo}`,go="carousel",Vn="active",vo=".active",bo=".carousel-item",Gr=vo+bo,Qr={[jr]:Dn,[Rr]:it},Jr={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Zr={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ot extends be{constructor(t,o){super(t,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=k.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===go&&this.cycle()}static get Default(){return Jr}static get DefaultType(){return Zr}static get NAME(){return"carousel"}next(){this._slide(yn)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(nt)}pause(){this._isSliding&&v(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?g.one(this._element,ci,()=>this.cycle()):this.cycle())}to(t){const o=this._getItems();if(t>o.length-1||t<0)return;if(this._isSliding)return void g.one(this._element,ci,()=>this.to(t));const l=this._getItemIndex(this._getActive());if(l===t)return;const f=t>l?yn:nt;this._slide(f,o[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&g.on(this._element,qr,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,Hr,()=>this.pause()),g.on(this._element,Ur,()=>this._maybeEnableCycle())),this._config.touch&&Bn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of k.find(".carousel-item img",this._element))g.on(o,Xr,l=>l.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(it)),rightCallback:()=>this._slide(this._directionToOrder(Dn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Bn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const o=Qr[t.key];o&&(t.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const o=k.findOne(vo,this._indicatorsElement);o.classList.remove(Vn),o.removeAttribute("aria-current");const l=k.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);l&&(l.classList.add(Vn),l.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const o=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(t,o=null){if(this._isSliding)return;const l=this._getActive(),f=t===yn,p=o||Se(this._getItems(),l,f,this._config.wrap);if(p===l)return;const h=this._getItemIndex(p),m=y=>g.trigger(this._element,y,{relatedTarget:p,direction:this._orderToDirection(t),from:this._getItemIndex(l),to:h});if(m(xr).defaultPrevented||!l||!p)return;const b=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(h),this._activeElement=p;const _=f?"carousel-item-start":"carousel-item-end",C=f?"carousel-item-next":"carousel-item-prev";p.classList.add(C),ie(p),l.classList.add(_),p.classList.add(_),this._queueCallback(()=>{p.classList.remove(_,C),p.classList.add(Vn),l.classList.remove(Vn,C,_),this._isSliding=!1,m(ci)},l,this._isAnimated()),b&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return k.findOne(Gr,this._element)}_getItems(){return k.find(bo,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return q()?t===it?nt:yn:t===it?yn:nt}_orderToDirection(t){return q()?t===nt?it:Dn:t===nt?Dn:it}static jQueryInterface(t){return this.each(function(){const o=ot.getOrCreateInstance(this,t);if(typeof t!="number"){if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}}else o.to(t)})}}g.on(document,Kr,"[data-bs-slide], [data-bs-slide-to]",function(s){const t=k.getElementFromSelector(this);if(!t||!t.classList.contains(go))return;s.preventDefault();const o=ot.getOrCreateInstance(t),l=this.getAttribute("data-bs-slide-to");return l?(o.to(l),void o._maybeEnableCycle()):Ne.getDataAttribute(this,"slide")==="next"?(o.next(),void o._maybeEnableCycle()):(o.prev(),void o._maybeEnableCycle())}),g.on(window,Yr,()=>{const s=k.find('[data-bs-ride="carousel"]');for(const t of s)ot.getOrCreateInstance(t)}),X(ot);const _n=".bs.collapse",el=`show${_n}`,tl=`shown${_n}`,nl=`hide${_n}`,il=`hidden${_n}`,ol=`click${_n}.data-api`,di="show",st="collapse",Mn="collapsing",sl=`:scope .${st} .${st}`,ui='[data-bs-toggle="collapse"]',rl={parent:null,toggle:!0},ll={parent:"(null|element)",toggle:"boolean"};class rt extends be{constructor(t,o){super(t,o),this._isTransitioning=!1,this._triggerArray=[];const l=k.find(ui);for(const f of l){const p=k.getSelectorFromElement(f),h=k.find(p).filter(m=>m===this._element);p!==null&&h.length&&this._triggerArray.push(f)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return rl}static get DefaultType(){return ll}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(f=>f!==this._element).map(f=>rt.getOrCreateInstance(f,{toggle:!1}))),t.length&&t[0]._isTransitioning||g.trigger(this._element,el).defaultPrevented)return;for(const f of t)f.hide();const o=this._getDimension();this._element.classList.remove(st),this._element.classList.add(Mn),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const l=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Mn),this._element.classList.add(st,di),this._element.style[o]="",g.trigger(this._element,tl)},this._element,!0),this._element.style[o]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._isShown()||g.trigger(this._element,nl).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,ie(this._element),this._element.classList.add(Mn),this._element.classList.remove(st,di);for(const o of this._triggerArray){const l=k.getElementFromSelector(o);l&&!this._isShown(l)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Mn),this._element.classList.add(st),g.trigger(this._element,il)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(di)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=B(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ui);for(const o of t){const l=k.getElementFromSelector(o);l&&this._addAriaAndCollapsedClass([o],this._isShown(l))}}_getFirstLevelChildren(t){const o=k.find(sl,this._config.parent);return k.find(t,this._config.parent).filter(l=>!o.includes(l))}_addAriaAndCollapsedClass(t,o){if(t.length)for(const l of t)l.classList.toggle("collapsed",!o),l.setAttribute("aria-expanded",o)}static jQueryInterface(t){const o={};return typeof t=="string"&&/show|hide/.test(t)&&(o.toggle=!1),this.each(function(){const l=rt.getOrCreateInstance(this,o);if(typeof t=="string"){if(l[t]===void 0)throw new TypeError(`No method named "${t}"`);l[t]()}})}}g.on(document,ol,ui,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of k.getMultipleElementsFromSelector(this))rt.getOrCreateInstance(t,{toggle:!1}).toggle()}),X(rt);var J="top",se="bottom",re="right",Z="left",zn="auto",lt=[J,se,re,Z],Pe="start",at="end",yo="clippingParents",fi="viewport",ct="popper",_o="reference",pi=lt.reduce(function(s,t){return s.concat([t+"-"+Pe,t+"-"+at])},[]),hi=[].concat(lt,[zn]).reduce(function(s,t){return s.concat([t,t+"-"+Pe,t+"-"+at])},[]),Co="beforeRead",ko="read",$o="afterRead",Eo="beforeMain",wo="main",So="afterMain",No="beforeWrite",To="write",Ao="afterWrite",Oo=[Co,ko,$o,Eo,wo,So,No,To,Ao];function Ce(s){return s?(s.nodeName||"").toLowerCase():null}function le(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var t=s.ownerDocument;return t&&t.defaultView||window}return s}function We(s){return s instanceof le(s).Element||s instanceof Element}function ue(s){return s instanceof le(s).HTMLElement||s instanceof HTMLElement}function mi(s){return typeof ShadowRoot<"u"&&(s instanceof le(s).ShadowRoot||s instanceof ShadowRoot)}const gi={name:"applyStyles",enabled:!0,phase:"write",fn:function(s){var t=s.state;Object.keys(t.elements).forEach(function(o){var l=t.styles[o]||{},f=t.attributes[o]||{},p=t.elements[o];ue(p)&&Ce(p)&&(Object.assign(p.style,l),Object.keys(f).forEach(function(h){var m=f[h];m===!1?p.removeAttribute(h):p.setAttribute(h,m===!0?"":m)}))})},effect:function(s){var t=s.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(l){var f=t.elements[l],p=t.attributes[l]||{},h=Object.keys(t.styles.hasOwnProperty(l)?t.styles[l]:o[l]).reduce(function(m,b){return m[b]="",m},{});ue(f)&&Ce(f)&&(Object.assign(f.style,h),Object.keys(p).forEach(function(m){f.removeAttribute(m)}))})}},requires:["computeStyles"]};function ke(s){return s.split("-")[0]}var je=Math.max,Ln=Math.min,dt=Math.round;function vi(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Bo(){return!/^((?!chrome|android).)*safari/i.test(vi())}function ut(s,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var l=s.getBoundingClientRect(),f=1,p=1;t&&ue(s)&&(f=s.offsetWidth>0&&dt(l.width)/s.offsetWidth||1,p=s.offsetHeight>0&&dt(l.height)/s.offsetHeight||1);var h=(We(s)?le(s):window).visualViewport,m=!Bo()&&o,b=(l.left+(m&&h?h.offsetLeft:0))/f,_=(l.top+(m&&h?h.offsetTop:0))/p,C=l.width/f,y=l.height/p;return{width:C,height:y,top:_,right:b+C,bottom:_+y,left:b,x:b,y:_}}function bi(s){var t=ut(s),o=s.offsetWidth,l=s.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:s.offsetLeft,y:s.offsetTop,width:o,height:l}}function Do(s,t){var o=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(o&&mi(o)){var l=t;do{if(l&&s.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Te(s){return le(s).getComputedStyle(s)}function al(s){return["table","td","th"].indexOf(Ce(s))>=0}function De(s){return((We(s)?s.ownerDocument:s.document)||window.document).documentElement}function In(s){return Ce(s)==="html"?s:s.assignedSlot||s.parentNode||(mi(s)?s.host:null)||De(s)}function Vo(s){return ue(s)&&Te(s).position!=="fixed"?s.offsetParent:null}function Cn(s){for(var t=le(s),o=Vo(s);o&&al(o)&&Te(o).position==="static";)o=Vo(o);return o&&(Ce(o)==="html"||Ce(o)==="body"&&Te(o).position==="static")?t:o||(function(l){var f=/firefox/i.test(vi());if(/Trident/i.test(vi())&&ue(l)&&Te(l).position==="fixed")return null;var p=In(l);for(mi(p)&&(p=p.host);ue(p)&&["html","body"].indexOf(Ce(p))<0;){var h=Te(p);if(h.transform!=="none"||h.perspective!=="none"||h.contain==="paint"||["transform","perspective"].indexOf(h.willChange)!==-1||f&&h.willChange==="filter"||f&&h.filter&&h.filter!=="none")return p;p=p.parentNode}return null})(s)||t}function yi(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function kn(s,t,o){return je(s,Ln(t,o))}function Mo(s){return Object.assign({},{top:0,right:0,bottom:0,left:0},s)}function zo(s,t){return t.reduce(function(o,l){return o[l]=s,o},{})}const Lo={name:"arrow",enabled:!0,phase:"main",fn:function(s){var t,o=s.state,l=s.name,f=s.options,p=o.elements.arrow,h=o.modifiersData.popperOffsets,m=ke(o.placement),b=yi(m),_=[Z,re].indexOf(m)>=0?"height":"width";if(p&&h){var C=(function(P,I){return Mo(typeof(P=typeof P=="function"?P(Object.assign({},I.rects,{placement:I.placement})):P)!="number"?P:zo(P,lt))})(f.padding,o),y=bi(p),A=b==="y"?J:Z,E=b==="y"?se:re,N=o.rects.reference[_]+o.rects.reference[b]-h[b]-o.rects.popper[_],S=h[b]-o.rects.reference[b],T=Cn(p),F=T?b==="y"?T.clientHeight||0:T.clientWidth||0:0,R=N/2-S/2,D=C[A],z=F-y[_]-C[E],O=F/2-y[_]/2+R,V=kn(D,O,z),L=b;o.modifiersData[l]=((t={})[L]=V,t.centerOffset=V-O,t)}},effect:function(s){var t=s.state,o=s.options.element,l=o===void 0?"[data-popper-arrow]":o;l!=null&&(typeof l!="string"||(l=t.elements.popper.querySelector(l)))&&Do(t.elements.popper,l)&&(t.elements.arrow=l)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ft(s){return s.split("-")[1]}var cl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Io(s){var t,o=s.popper,l=s.popperRect,f=s.placement,p=s.variation,h=s.offsets,m=s.position,b=s.gpuAcceleration,_=s.adaptive,C=s.roundOffsets,y=s.isFixed,A=h.x,E=A===void 0?0:A,N=h.y,S=N===void 0?0:N,T=typeof C=="function"?C({x:E,y:S}):{x:E,y:S};E=T.x,S=T.y;var F=h.hasOwnProperty("x"),R=h.hasOwnProperty("y"),D=Z,z=J,O=window;if(_){var V=Cn(o),L="clientHeight",P="clientWidth";V===le(o)&&Te(V=De(o)).position!=="static"&&m==="absolute"&&(L="scrollHeight",P="scrollWidth"),(f===J||(f===Z||f===re)&&p===at)&&(z=se,S-=(y&&V===O&&O.visualViewport?O.visualViewport.height:V[L])-l.height,S*=b?1:-1),f!==Z&&(f!==J&&f!==se||p!==at)||(D=re,E-=(y&&V===O&&O.visualViewport?O.visualViewport.width:V[P])-l.width,E*=b?1:-1)}var I,Y=Object.assign({position:m},_&&cl),ae=C===!0?(function(_e,ee){var pe=_e.x,he=_e.y,H=ee.devicePixelRatio||1;return{x:dt(pe*H)/H||0,y:dt(he*H)/H||0}})({x:E,y:S},le(o)):{x:E,y:S};return E=ae.x,S=ae.y,b?Object.assign({},Y,((I={})[z]=R?"0":"",I[D]=F?"0":"",I.transform=(O.devicePixelRatio||1)<=1?"translate("+E+"px, "+S+"px)":"translate3d("+E+"px, "+S+"px, 0)",I)):Object.assign({},Y,((t={})[z]=R?S+"px":"",t[D]=F?E+"px":"",t.transform="",t))}const _i={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(s){var t=s.state,o=s.options,l=o.gpuAcceleration,f=l===void 0||l,p=o.adaptive,h=p===void 0||p,m=o.roundOffsets,b=m===void 0||m,_={placement:ke(t.placement),variation:ft(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:f,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Io(Object.assign({},_,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:b})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Io(Object.assign({},_,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Fn={passive:!0};const Ci={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(s){var t=s.state,o=s.instance,l=s.options,f=l.scroll,p=f===void 0||f,h=l.resize,m=h===void 0||h,b=le(t.elements.popper),_=[].concat(t.scrollParents.reference,t.scrollParents.popper);return p&&_.forEach(function(C){C.addEventListener("scroll",o.update,Fn)}),m&&b.addEventListener("resize",o.update,Fn),function(){p&&_.forEach(function(C){C.removeEventListener("scroll",o.update,Fn)}),m&&b.removeEventListener("resize",o.update,Fn)}},data:{}};var dl={left:"right",right:"left",bottom:"top",top:"bottom"};function Pn(s){return s.replace(/left|right|bottom|top/g,function(t){return dl[t]})}var ul={start:"end",end:"start"};function Fo(s){return s.replace(/start|end/g,function(t){return ul[t]})}function ki(s){var t=le(s);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function $i(s){return ut(De(s)).left+ki(s).scrollLeft}function Ei(s){var t=Te(s),o=t.overflow,l=t.overflowX,f=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+l)}function Po(s){return["html","body","#document"].indexOf(Ce(s))>=0?s.ownerDocument.body:ue(s)&&Ei(s)?s:Po(In(s))}function $n(s,t){var o;t===void 0&&(t=[]);var l=Po(s),f=l===((o=s.ownerDocument)==null?void 0:o.body),p=le(l),h=f?[p].concat(p.visualViewport||[],Ei(l)?l:[]):l,m=t.concat(h);return f?m:m.concat($n(In(h)))}function wi(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Wo(s,t,o){return t===fi?wi((function(l,f){var p=le(l),h=De(l),m=p.visualViewport,b=h.clientWidth,_=h.clientHeight,C=0,y=0;if(m){b=m.width,_=m.height;var A=Bo();(A||!A&&f==="fixed")&&(C=m.offsetLeft,y=m.offsetTop)}return{width:b,height:_,x:C+$i(l),y}})(s,o)):We(t)?(function(l,f){var p=ut(l,!1,f==="fixed");return p.top=p.top+l.clientTop,p.left=p.left+l.clientLeft,p.bottom=p.top+l.clientHeight,p.right=p.left+l.clientWidth,p.width=l.clientWidth,p.height=l.clientHeight,p.x=p.left,p.y=p.top,p})(t,o):wi((function(l){var f,p=De(l),h=ki(l),m=(f=l.ownerDocument)==null?void 0:f.body,b=je(p.scrollWidth,p.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),_=je(p.scrollHeight,p.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),C=-h.scrollLeft+$i(l),y=-h.scrollTop;return Te(m||p).direction==="rtl"&&(C+=je(p.clientWidth,m?m.clientWidth:0)-b),{width:b,height:_,x:C,y}})(De(s)))}function jo(s){var t,o=s.reference,l=s.element,f=s.placement,p=f?ke(f):null,h=f?ft(f):null,m=o.x+o.width/2-l.width/2,b=o.y+o.height/2-l.height/2;switch(p){case J:t={x:m,y:o.y-l.height};break;case se:t={x:m,y:o.y+o.height};break;case re:t={x:o.x+o.width,y:b};break;case Z:t={x:o.x-l.width,y:b};break;default:t={x:o.x,y:o.y}}var _=p?yi(p):null;if(_!=null){var C=_==="y"?"height":"width";switch(h){case Pe:t[_]=t[_]-(o[C]/2-l[C]/2);break;case at:t[_]=t[_]+(o[C]/2-l[C]/2)}}return t}function pt(s,t){t===void 0&&(t={});var o=t,l=o.placement,f=l===void 0?s.placement:l,p=o.strategy,h=p===void 0?s.strategy:p,m=o.boundary,b=m===void 0?yo:m,_=o.rootBoundary,C=_===void 0?fi:_,y=o.elementContext,A=y===void 0?ct:y,E=o.altBoundary,N=E!==void 0&&E,S=o.padding,T=S===void 0?0:S,F=Mo(typeof T!="number"?T:zo(T,lt)),R=A===ct?_o:ct,D=s.rects.popper,z=s.elements[N?R:A],O=(function(ee,pe,he,H){var $e=pe==="clippingParents"?(function(W){var te=$n(In(W)),me=["absolute","fixed"].indexOf(Te(W).position)>=0&&ue(W)?Cn(W):W;return We(me)?te.filter(function(Me){return We(Me)&&Do(Me,me)&&Ce(Me)!=="body"}):[]})(ee):[].concat(pe),Ee=[].concat($e,[he]),gt=Ee[0],G=Ee.reduce(function(W,te){var me=Wo(ee,te,H);return W.top=je(me.top,W.top),W.right=Ln(me.right,W.right),W.bottom=Ln(me.bottom,W.bottom),W.left=je(me.left,W.left),W},Wo(ee,gt,H));return G.width=G.right-G.left,G.height=G.bottom-G.top,G.x=G.left,G.y=G.top,G})(We(z)?z:z.contextElement||De(s.elements.popper),b,C,h),V=ut(s.elements.reference),L=jo({reference:V,element:D,placement:f}),P=wi(Object.assign({},D,L)),I=A===ct?P:V,Y={top:O.top-I.top+F.top,bottom:I.bottom-O.bottom+F.bottom,left:O.left-I.left+F.left,right:I.right-O.right+F.right},ae=s.modifiersData.offset;if(A===ct&&ae){var _e=ae[f];Object.keys(Y).forEach(function(ee){var pe=[re,se].indexOf(ee)>=0?1:-1,he=[J,se].indexOf(ee)>=0?"y":"x";Y[ee]+=_e[he]*pe})}return Y}function fl(s,t){t===void 0&&(t={});var o=t,l=o.placement,f=o.boundary,p=o.rootBoundary,h=o.padding,m=o.flipVariations,b=o.allowedAutoPlacements,_=b===void 0?hi:b,C=ft(l),y=C?m?pi:pi.filter(function(N){return ft(N)===C}):lt,A=y.filter(function(N){return _.indexOf(N)>=0});A.length===0&&(A=y);var E=A.reduce(function(N,S){return N[S]=pt(s,{placement:S,boundary:f,rootBoundary:p,padding:h})[ke(S)],N},{});return Object.keys(E).sort(function(N,S){return E[N]-E[S]})}const Ro={name:"flip",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,l=s.name;if(!t.modifiersData[l]._skip){for(var f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h===void 0||h,b=o.fallbackPlacements,_=o.padding,C=o.boundary,y=o.rootBoundary,A=o.altBoundary,E=o.flipVariations,N=E===void 0||E,S=o.allowedAutoPlacements,T=t.options.placement,F=ke(T),R=b||(F!==T&&N?(function(W){if(ke(W)===zn)return[];var te=Pn(W);return[Fo(W),te,Fo(te)]})(T):[Pn(T)]),D=[T].concat(R).reduce(function(W,te){return W.concat(ke(te)===zn?fl(t,{placement:te,boundary:C,rootBoundary:y,padding:_,flipVariations:N,allowedAutoPlacements:S}):te)},[]),z=t.rects.reference,O=t.rects.popper,V=new Map,L=!0,P=D[0],I=0;I<D.length;I++){var Y=D[I],ae=ke(Y),_e=ft(Y)===Pe,ee=[J,se].indexOf(ae)>=0,pe=ee?"width":"height",he=pt(t,{placement:Y,boundary:C,rootBoundary:y,altBoundary:A,padding:_}),H=ee?_e?re:Z:_e?se:J;z[pe]>O[pe]&&(H=Pn(H));var $e=Pn(H),Ee=[];if(p&&Ee.push(he[ae]<=0),m&&Ee.push(he[H]<=0,he[$e]<=0),Ee.every(function(W){return W})){P=Y,L=!1;break}V.set(Y,Ee)}if(L)for(var gt=function(W){var te=D.find(function(me){var Me=V.get(me);if(Me)return Me.slice(0,W).every(function(Yn){return Yn})});if(te)return P=te,"break"},G=N?3:1;G>0&&gt(G)!=="break";G--);t.placement!==P&&(t.modifiersData[l]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xo(s,t,o){return o===void 0&&(o={x:0,y:0}),{top:s.top-t.height-o.y,right:s.right-t.width+o.x,bottom:s.bottom-t.height+o.y,left:s.left-t.width-o.x}}function qo(s){return[J,re,se,Z].some(function(t){return s[t]>=0})}const Ho={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(s){var t=s.state,o=s.name,l=t.rects.reference,f=t.rects.popper,p=t.modifiersData.preventOverflow,h=pt(t,{elementContext:"reference"}),m=pt(t,{altBoundary:!0}),b=xo(h,l),_=xo(m,f,p),C=qo(b),y=qo(_);t.modifiersData[o]={referenceClippingOffsets:b,popperEscapeOffsets:_,isReferenceHidden:C,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":y})}},Uo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(s){var t=s.state,o=s.options,l=s.name,f=o.offset,p=f===void 0?[0,0]:f,h=hi.reduce(function(C,y){return C[y]=(function(A,E,N){var S=ke(A),T=[Z,J].indexOf(S)>=0?-1:1,F=typeof N=="function"?N(Object.assign({},E,{placement:A})):N,R=F[0],D=F[1];return R=R||0,D=(D||0)*T,[Z,re].indexOf(S)>=0?{x:D,y:R}:{x:R,y:D}})(y,t.rects,p),C},{}),m=h[t.placement],b=m.x,_=m.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=b,t.modifiersData.popperOffsets.y+=_),t.modifiersData[l]=h}},Si={name:"popperOffsets",enabled:!0,phase:"read",fn:function(s){var t=s.state,o=s.name;t.modifiersData[o]=jo({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Xo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(s){var t=s.state,o=s.options,l=s.name,f=o.mainAxis,p=f===void 0||f,h=o.altAxis,m=h!==void 0&&h,b=o.boundary,_=o.rootBoundary,C=o.altBoundary,y=o.padding,A=o.tether,E=A===void 0||A,N=o.tetherOffset,S=N===void 0?0:N,T=pt(t,{boundary:b,rootBoundary:_,padding:y,altBoundary:C}),F=ke(t.placement),R=ft(t.placement),D=!R,z=yi(F),O=z==="x"?"y":"x",V=t.modifiersData.popperOffsets,L=t.rects.reference,P=t.rects.popper,I=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,Y=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),ae=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_e={x:0,y:0};if(V){if(p){var ee,pe=z==="y"?J:Z,he=z==="y"?se:re,H=z==="y"?"height":"width",$e=V[z],Ee=$e+T[pe],gt=$e-T[he],G=E?-P[H]/2:0,W=R===Pe?L[H]:P[H],te=R===Pe?-P[H]:-L[H],me=t.elements.arrow,Me=E&&me?bi(me):{width:0,height:0},Yn=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Vs=Yn[pe],Ms=Yn[he],Kn=kn(0,L[H],Me[H]),qa=D?L[H]/2-G-Kn-Vs-Y.mainAxis:W-Kn-Vs-Y.mainAxis,Ha=D?-L[H]/2+G+Kn+Ms+Y.mainAxis:te+Kn+Ms+Y.mainAxis,Wi=t.elements.arrow&&Cn(t.elements.arrow),Ua=Wi?z==="y"?Wi.clientTop||0:Wi.clientLeft||0:0,zs=(ee=ae?.[z])!=null?ee:0,Xa=$e+Ha-zs,Ls=kn(E?Ln(Ee,$e+qa-zs-Ua):Ee,$e,E?je(gt,Xa):gt);V[z]=Ls,_e[z]=Ls-$e}if(m){var Is,Ya=z==="x"?J:Z,Ka=z==="x"?se:re,Ke=V[O],Gn=O==="y"?"height":"width",Fs=Ke+T[Ya],Ps=Ke-T[Ka],ji=[J,Z].indexOf(F)!==-1,Ws=(Is=ae?.[O])!=null?Is:0,js=ji?Fs:Ke-L[Gn]-P[Gn]-Ws+Y.altAxis,Rs=ji?Ke+L[Gn]+P[Gn]-Ws-Y.altAxis:Ps,xs=E&&ji?(function(Ga,Qa,Ri){var qs=kn(Ga,Qa,Ri);return qs>Ri?Ri:qs})(js,Ke,Rs):kn(E?js:Fs,Ke,E?Rs:Ps);V[O]=xs,_e[O]=xs-Ke}t.modifiersData[l]=_e}},requiresIfExists:["offset"]};function pl(s,t,o){o===void 0&&(o=!1);var l,f,p=ue(t),h=ue(t)&&(function(y){var A=y.getBoundingClientRect(),E=dt(A.width)/y.offsetWidth||1,N=dt(A.height)/y.offsetHeight||1;return E!==1||N!==1})(t),m=De(t),b=ut(s,h,o),_={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(p||!p&&!o)&&((Ce(t)!=="body"||Ei(m))&&(_=(l=t)!==le(l)&&ue(l)?{scrollLeft:(f=l).scrollLeft,scrollTop:f.scrollTop}:ki(l)),ue(t)?((C=ut(t,!0)).x+=t.clientLeft,C.y+=t.clientTop):m&&(C.x=$i(m))),{x:b.left+_.scrollLeft-C.x,y:b.top+_.scrollTop-C.y,width:b.width,height:b.height}}function hl(s){var t=new Map,o=new Set,l=[];function f(p){o.add(p.name),[].concat(p.requires||[],p.requiresIfExists||[]).forEach(function(h){if(!o.has(h)){var m=t.get(h);m&&f(m)}}),l.push(p)}return s.forEach(function(p){t.set(p.name,p)}),s.forEach(function(p){o.has(p.name)||f(p)}),l}var Yo={placement:"bottom",modifiers:[],strategy:"absolute"};function Ko(){for(var s=arguments.length,t=new Array(s),o=0;o<s;o++)t[o]=arguments[o];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Wn(s){s===void 0&&(s={});var t=s,o=t.defaultModifiers,l=o===void 0?[]:o,f=t.defaultOptions,p=f===void 0?Yo:f;return function(h,m,b){b===void 0&&(b=p);var _,C,y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yo,p),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},A=[],E=!1,N={state:y,setOptions:function(T){var F=typeof T=="function"?T(y.options):T;S(),y.options=Object.assign({},p,y.options,F),y.scrollParents={reference:We(h)?$n(h):h.contextElement?$n(h.contextElement):[],popper:$n(m)};var R,D,z=(function(O){var V=hl(O);return Oo.reduce(function(L,P){return L.concat(V.filter(function(I){return I.phase===P}))},[])})((R=[].concat(l,y.options.modifiers),D=R.reduce(function(O,V){var L=O[V.name];return O[V.name]=L?Object.assign({},L,V,{options:Object.assign({},L.options,V.options),data:Object.assign({},L.data,V.data)}):V,O},{}),Object.keys(D).map(function(O){return D[O]})));return y.orderedModifiers=z.filter(function(O){return O.enabled}),y.orderedModifiers.forEach(function(O){var V=O.name,L=O.options,P=L===void 0?{}:L,I=O.effect;if(typeof I=="function"){var Y=I({state:y,name:V,instance:N,options:P});A.push(Y||function(){})}}),N.update()},forceUpdate:function(){if(!E){var T=y.elements,F=T.reference,R=T.popper;if(Ko(F,R)){y.rects={reference:pl(F,Cn(R),y.options.strategy==="fixed"),popper:bi(R)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(I){return y.modifiersData[I.name]=Object.assign({},I.data)});for(var D=0;D<y.orderedModifiers.length;D++)if(y.reset!==!0){var z=y.orderedModifiers[D],O=z.fn,V=z.options,L=V===void 0?{}:V,P=z.name;typeof O=="function"&&(y=O({state:y,options:L,name:P,instance:N})||y)}else y.reset=!1,D=-1}}},update:(_=function(){return new Promise(function(T){N.forceUpdate(),T(y)})},function(){return C||(C=new Promise(function(T){Promise.resolve().then(function(){C=void 0,T(_())})})),C}),destroy:function(){S(),E=!0}};if(!Ko(h,m))return N;function S(){A.forEach(function(T){return T()}),A=[]}return N.setOptions(b).then(function(T){!E&&b.onFirstUpdate&&b.onFirstUpdate(T)}),N}}var ml=Wn(),gl=Wn({defaultModifiers:[Ci,Si,_i,gi]}),Ni=Wn({defaultModifiers:[Ci,Si,_i,gi,Uo,Ro,Xo,Lo,Ho]});const Go=Object.freeze(Object.defineProperty({__proto__:null,afterMain:So,afterRead:$o,afterWrite:Ao,applyStyles:gi,arrow:Lo,auto:zn,basePlacements:lt,beforeMain:Eo,beforeRead:Co,beforeWrite:No,bottom:se,clippingParents:yo,computeStyles:_i,createPopper:Ni,createPopperBase:ml,createPopperLite:gl,detectOverflow:pt,end:at,eventListeners:Ci,flip:Ro,hide:Ho,left:Z,main:wo,modifierPhases:Oo,offset:Uo,placements:hi,popper:ct,popperGenerator:Wn,popperOffsets:Si,preventOverflow:Xo,read:ko,reference:_o,right:re,start:Pe,top:J,variationPlacements:pi,viewport:fi,write:To},Symbol.toStringTag,{value:"Module"})),Qo="dropdown",Re=".bs.dropdown",Ti=".data-api",vl="ArrowUp",Jo="ArrowDown",bl=`hide${Re}`,yl=`hidden${Re}`,_l=`show${Re}`,Cl=`shown${Re}`,Zo=`click${Re}${Ti}`,es=`keydown${Re}${Ti}`,kl=`keyup${Re}${Ti}`,ht="show",xe='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',$l=`${xe}.${ht}`,jn=".dropdown-menu",El=q()?"top-end":"top-start",wl=q()?"top-start":"top-end",Sl=q()?"bottom-end":"bottom-start",Nl=q()?"bottom-start":"bottom-end",Tl=q()?"left-start":"right-start",Al=q()?"right-start":"left-start",Ol={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Bl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ye extends be{constructor(t,o){super(t,o),this._popper=null,this._parent=this._element.parentNode,this._menu=k.next(this._element,jn)[0]||k.prev(this._element,jn)[0]||k.findOne(jn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ol}static get DefaultType(){return Bl}static get NAME(){return Qo}toggle(){return this._isShown()?this.hide():this.show()}show(){if(M(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!g.trigger(this._element,_l,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const o of[].concat(...document.body.children))g.on(o,"mouseover",U);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ht),this._element.classList.add(ht),g.trigger(this._element,Cl,t)}}hide(){if(M(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!g.trigger(this._element,bl,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))g.off(o,"mouseover",U);this._popper&&this._popper.destroy(),this._menu.classList.remove(ht),this._element.classList.remove(ht),this._element.setAttribute("aria-expanded","false"),Ne.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,yl,t)}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!$(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Qo.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(Go===void 0)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:$(this._config.reference)?t=B(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const o=this._getPopperConfig();this._popper=Ni(t,this._menu,o)}_isShown(){return this._menu.classList.contains(ht)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Tl;if(t.classList.contains("dropstart"))return Al;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains("dropup")?o?wl:El:o?Nl:Sl}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Ne.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...K(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:o}){const l=k.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(f=>x(f));l.length&&Se(l,o,t===Jo,!l.includes(o)).focus()}static jQueryInterface(t){return this.each(function(){const o=ye.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}static clearMenus(t){if(t.button===2||t.type==="keyup"&&t.key!=="Tab")return;const o=k.find($l);for(const l of o){const f=ye.getInstance(l);if(!f||f._config.autoClose===!1)continue;const p=t.composedPath(),h=p.includes(f._menu);if(p.includes(f._element)||f._config.autoClose==="inside"&&!h||f._config.autoClose==="outside"&&h||f._menu.contains(t.target)&&(t.type==="keyup"&&t.key==="Tab"||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const m={relatedTarget:f._element};t.type==="click"&&(m.clickEvent=t),f._completeHide(m)}}static dataApiKeydownHandler(t){const o=/input|textarea/i.test(t.target.tagName),l=t.key==="Escape",f=[vl,Jo].includes(t.key);if(!f&&!l||o&&!l)return;t.preventDefault();const p=this.matches(xe)?this:k.prev(this,xe)[0]||k.next(this,xe)[0]||k.findOne(xe,t.delegateTarget.parentNode),h=ye.getOrCreateInstance(p);if(f)return t.stopPropagation(),h.show(),void h._selectMenuItem(t);h._isShown()&&(t.stopPropagation(),h.hide(),p.focus())}}g.on(document,es,xe,ye.dataApiKeydownHandler),g.on(document,es,jn,ye.dataApiKeydownHandler),g.on(document,Zo,ye.clearMenus),g.on(document,kl,ye.clearMenus),g.on(document,Zo,xe,function(s){s.preventDefault(),ye.getOrCreateInstance(this).toggle()}),X(ye);const ts="backdrop",ns="show",is=`mousedown.bs.${ts}`,Dl={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Vl={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class os extends gn{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Dl}static get DefaultType(){return Vl}static get NAME(){return ts}show(t){if(!this._config.isVisible)return void K(t);this._append();const o=this._getElement();this._config.isAnimated&&ie(o),o.classList.add(ns),this._emulateAnimation(()=>{K(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(ns),this._emulateAnimation(()=>{this.dispose(),K(t)})):K(t)}dispose(){this._isAppended&&(g.off(this._element,is),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=B(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),g.on(t,is,()=>{K(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Ze(t,this._getElement(),this._config.isAnimated)}}const Rn=".bs.focustrap",Ml=`focusin${Rn}`,zl=`keydown.tab${Rn}`,ss="backward",Ll={autofocus:!0,trapElement:null},Il={autofocus:"boolean",trapElement:"element"};class rs extends gn{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ll}static get DefaultType(){return Il}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),g.off(document,Rn),g.on(document,Ml,t=>this._handleFocusin(t)),g.on(document,zl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,g.off(document,Rn))}_handleFocusin(t){const{trapElement:o}=this._config;if(t.target===document||t.target===o||o.contains(t.target))return;const l=k.focusableChildren(o);l.length===0?o.focus():this._lastTabNavDirection===ss?l[l.length-1].focus():l[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?ss:"forward")}}const ls=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",as=".sticky-top",xn="padding-right",cs="margin-right";class Ai{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,xn,o=>o+t),this._setElementAttributes(ls,xn,o=>o+t),this._setElementAttributes(as,cs,o=>o-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,xn),this._resetElementAttributes(ls,xn),this._resetElementAttributes(as,cs)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,o,l){const f=this.getWidth();this._applyManipulationCallback(t,p=>{if(p!==this._element&&window.innerWidth>p.clientWidth+f)return;this._saveInitialAttribute(p,o);const h=window.getComputedStyle(p).getPropertyValue(o);p.style.setProperty(o,`${l(Number.parseFloat(h))}px`)})}_saveInitialAttribute(t,o){const l=t.style.getPropertyValue(o);l&&Ne.setDataAttribute(t,o,l)}_resetElementAttributes(t,o){this._applyManipulationCallback(t,l=>{const f=Ne.getDataAttribute(l,o);f!==null?(Ne.removeDataAttribute(l,o),l.style.setProperty(o,f)):l.style.removeProperty(o)})}_applyManipulationCallback(t,o){if($(t))o(t);else for(const l of k.find(t,this._element))o(l)}}const fe=".bs.modal",Fl=`hide${fe}`,Pl=`hidePrevented${fe}`,ds=`hidden${fe}`,us=`show${fe}`,Wl=`shown${fe}`,jl=`resize${fe}`,Rl=`click.dismiss${fe}`,xl=`mousedown.dismiss${fe}`,ql=`keydown.dismiss${fe}`,Hl=`click${fe}.data-api`,fs="modal-open",ps="show",Oi="modal-static",Ul={backdrop:!0,focus:!0,keyboard:!0},Xl={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class qe extends be{constructor(t,o){super(t,o),this._dialog=k.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ai,this._addEventListeners()}static get Default(){return Ul}static get DefaultType(){return Xl}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||g.trigger(this._element,us,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(fs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(g.trigger(this._element,Fl).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ps),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){g.off(window,fe),g.off(this._dialog,fe),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new os({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new rs({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=k.findOne(".modal-body",this._dialog);o&&(o.scrollTop=0),ie(this._element),this._element.classList.add(ps),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,g.trigger(this._element,Wl,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){g.on(this._element,ql,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),g.on(window,jl,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),g.on(this._element,xl,t=>{g.one(this._element,Rl,o=>{this._element===t.target&&this._element===o.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(fs),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,ds)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(g.trigger(this._element,Pl).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(Oi)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Oi),this._queueCallback(()=>{this._element.classList.remove(Oi),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),l=o>0;if(l&&!t){const f=q()?"paddingLeft":"paddingRight";this._element.style[f]=`${o}px`}if(!l&&t){const f=q()?"paddingRight":"paddingLeft";this._element.style[f]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,o){return this.each(function(){const l=qe.getOrCreateInstance(this,t);if(typeof t=="string"){if(l[t]===void 0)throw new TypeError(`No method named "${t}"`);l[t](o)}})}}g.on(document,Hl,'[data-bs-toggle="modal"]',function(s){const t=k.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),g.one(t,us,l=>{l.defaultPrevented||g.one(t,ds,()=>{x(this)&&this.focus()})});const o=k.findOne(".modal.show");o&&qe.getInstance(o).hide(),qe.getOrCreateInstance(t).toggle(this)}),On(qe),X(qe);const Ae=".bs.offcanvas",hs=".data-api",Yl=`load${Ae}${hs}`,ms="show",gs="showing",vs="hiding",bs=".offcanvas.show",Kl=`show${Ae}`,Gl=`shown${Ae}`,Ql=`hide${Ae}`,ys=`hidePrevented${Ae}`,_s=`hidden${Ae}`,Jl=`resize${Ae}`,Zl=`click${Ae}${hs}`,ea=`keydown.dismiss${Ae}`,ta={backdrop:!0,keyboard:!0,scroll:!1},na={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Oe extends be{constructor(t,o){super(t,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ta}static get DefaultType(){return na}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||g.trigger(this._element,Kl,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ai().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(gs),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(ms),this._element.classList.remove(gs),g.trigger(this._element,Gl,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(g.trigger(this._element,Ql).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(vs),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(ms,vs),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ai().reset(),g.trigger(this._element,_s)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new os({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():g.trigger(this._element,ys)}:null})}_initializeFocusTrap(){return new rs({trapElement:this._element})}_addEventListeners(){g.on(this._element,ea,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():g.trigger(this._element,ys))})}static jQueryInterface(t){return this.each(function(){const o=Oe.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}g.on(document,Zl,'[data-bs-toggle="offcanvas"]',function(s){const t=k.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this))return;g.one(t,_s,()=>{x(this)&&this.focus()});const o=k.findOne(bs);o&&o!==t&&Oe.getInstance(o).hide(),Oe.getOrCreateInstance(t).toggle(this)}),g.on(window,Yl,()=>{for(const s of k.find(bs))Oe.getOrCreateInstance(s).show()}),g.on(window,Jl,()=>{for(const s of k.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Oe.getOrCreateInstance(s).hide()}),On(Oe),X(Oe);const Cs={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},ia=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),oa=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,sa=(s,t)=>{const o=s.nodeName.toLowerCase();return t.includes(o)?!ia.has(o)||!!oa.test(s.nodeValue):t.filter(l=>l instanceof RegExp).some(l=>l.test(o))},ra={allowList:Cs,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},la={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},aa={entry:"(string|element|function|null)",selector:"(string|element)"};class ca extends gn{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return ra}static get DefaultType(){return la}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[f,p]of Object.entries(this._config.content))this._setContent(t,p,f);const o=t.children[0],l=this._resolvePossibleFunction(this._config.extraClass);return l&&o.classList.add(...l.split(" ")),o}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[o,l]of Object.entries(t))super._typeCheckConfig({selector:o,entry:l},aa)}_setContent(t,o,l){const f=k.findOne(l,t);f&&((o=this._resolvePossibleFunction(o))?$(o)?this._putElementInTemplate(B(o),f):this._config.html?f.innerHTML=this._maybeSanitize(o):f.textContent=o:f.remove())}_maybeSanitize(t){return this._config.sanitize?(function(o,l,f){if(!o.length)return o;if(f&&typeof f=="function")return f(o);const p=new window.DOMParser().parseFromString(o,"text/html"),h=[].concat(...p.body.querySelectorAll("*"));for(const m of h){const b=m.nodeName.toLowerCase();if(!Object.keys(l).includes(b)){m.remove();continue}const _=[].concat(...m.attributes),C=[].concat(l["*"]||[],l[b]||[]);for(const y of _)sa(y,C)||m.removeAttribute(y.nodeName)}return p.body.innerHTML})(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return K(t,[void 0,this])}_putElementInTemplate(t,o){if(this._config.html)return o.innerHTML="",void o.append(t);o.textContent=t.textContent}}const da=new Set(["sanitize","allowList","sanitizeFn"]),Bi="fade",qn="show",ua=".tooltip-inner",ks=".modal",$s="hide.bs.modal",En="hover",Di="focus",Vi="click",fa={AUTO:"auto",TOP:"top",RIGHT:q()?"left":"right",BOTTOM:"bottom",LEFT:q()?"right":"left"},pa={allowList:Cs,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ha={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class He extends be{constructor(t,o){if(Go===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return pa}static get DefaultType(){return ha}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),g.off(this._element.closest(ks),$s,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=g.trigger(this._element,this.constructor.eventName("show")),o=(Q(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!o)return;this._disposePopper();const l=this._getTipElement();this._element.setAttribute("aria-describedby",l.getAttribute("id"));const{container:f}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(f.append(l),g.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(l),l.classList.add(qn),"ontouchstart"in document.documentElement)for(const p of[].concat(...document.body.children))g.on(p,"mouseover",U);this._queueCallback(()=>{g.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!g.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(qn),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))g.off(t,"mouseover",U);this._activeTrigger[Vi]=!1,this._activeTrigger[Di]=!1,this._activeTrigger[En]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),g.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const o=this._getTemplateFactory(t).toHtml();if(!o)return null;o.classList.remove(Bi,qn),o.classList.add(`bs-${this.constructor.NAME}-auto`);const l=(f=>{do f+=Math.floor(1e6*Math.random());while(document.getElementById(f));return f})(this.constructor.NAME).toString();return o.setAttribute("id",l),this._isAnimated()&&o.classList.add(Bi),o}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new ca({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ua]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Bi)}_isShown(){return this.tip&&this.tip.classList.contains(qn)}_createPopper(t){const o=K(this._config.placement,[this,t,this._element]),l=fa[o.toUpperCase()];return Ni(this._element,t,this._getPopperConfig(l))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_resolvePossibleFunction(t){return K(t,[this._element,this._element])}_getPopperConfig(t){const o={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:l=>{this._getTipElement().setAttribute("data-popper-placement",l.state.placement)}}]};return{...o,...K(this._config.popperConfig,[void 0,o])}}_setListeners(){const t=this._config.trigger.split(" ");for(const o of t)if(o==="click")g.on(this._element,this.constructor.eventName("click"),this._config.selector,l=>{const f=this._initializeOnDelegatedTarget(l);f._activeTrigger[Vi]=!(f._isShown()&&f._activeTrigger[Vi]),f.toggle()});else if(o!=="manual"){const l=o===En?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),f=o===En?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");g.on(this._element,l,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusin"?Di:En]=!0,h._enter()}),g.on(this._element,f,this._config.selector,p=>{const h=this._initializeOnDelegatedTarget(p);h._activeTrigger[p.type==="focusout"?Di:En]=h._element.contains(p.relatedTarget),h._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest(ks),$s,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,o){clearTimeout(this._timeout),this._timeout=setTimeout(t,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const o=Ne.getDataAttributes(this._element);for(const l of Object.keys(o))da.has(l)&&delete o[l];return t={...o,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:B(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[o,l]of Object.entries(this._config))this.constructor.Default[o]!==l&&(t[o]=l);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const o=He.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}X(He);const ma=".popover-header",ga=".popover-body",va={...He.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},ba={...He.DefaultType,content:"(null|string|element|function)"};class Hn extends He{static get Default(){return va}static get DefaultType(){return ba}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ma]:this._getTitle(),[ga]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const o=Hn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t]()}})}}X(Hn);const Mi=".bs.scrollspy",ya=`activate${Mi}`,Es=`click${Mi}`,_a=`load${Mi}.data-api`,mt="active",zi="[href]",ws=".nav-link",Ca=`${ws}, .nav-item > ${ws}, .list-group-item`,ka={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},$a={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class wn extends be{constructor(t,o){super(t,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return ka}static get DefaultType(){return $a}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=B(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(o=>Number.parseFloat(o))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(g.off(this._config.target,Es),g.on(this._config.target,Es,zi,t=>{const o=this._observableSections.get(t.target.hash);if(o){t.preventDefault();const l=this._rootElement||window,f=o.offsetTop-this._element.offsetTop;if(l.scrollTo)return void l.scrollTo({top:f,behavior:"smooth"});l.scrollTop=f}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),t)}_observerCallback(t){const o=h=>this._targetLinks.get(`#${h.target.id}`),l=h=>{this._previousScrollData.visibleEntryTop=h.target.offsetTop,this._process(o(h))},f=(this._rootElement||document.documentElement).scrollTop,p=f>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=f;for(const h of t){if(!h.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(h));continue}const m=h.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(p&&m){if(l(h),!f)return}else p||m||l(h)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=k.find(zi,this._config.target);for(const o of t){if(!o.hash||M(o))continue;const l=k.findOne(decodeURI(o.hash),this._element);x(l)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,l))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(mt),this._activateParents(t),g.trigger(this._element,ya,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))k.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(mt);else for(const o of k.parents(t,".nav, .list-group"))for(const l of k.prev(o,Ca))l.classList.add(mt)}_clearActiveClass(t){t.classList.remove(mt);const o=k.find(`${zi}.${mt}`,t);for(const l of o)l.classList.remove(mt)}static jQueryInterface(t){return this.each(function(){const o=wn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(window,_a,()=>{for(const s of k.find('[data-bs-spy="scroll"]'))wn.getOrCreateInstance(s)}),X(wn);const Ue=".bs.tab",Ea=`hide${Ue}`,wa=`hidden${Ue}`,Sa=`show${Ue}`,Na=`shown${Ue}`,Ta=`click${Ue}`,Aa=`keydown${Ue}`,Oa=`load${Ue}`,Ba="ArrowLeft",Ss="ArrowRight",Da="ArrowUp",Ns="ArrowDown",Li="Home",Ts="End",Xe="active",As="fade",Ii="show",Os=".dropdown-toggle",Fi=`:not(${Os})`,Bs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Pi=`.nav-link${Fi}, .list-group-item${Fi}, [role="tab"]${Fi}, ${Bs}`,Va=`.${Xe}[data-bs-toggle="tab"], .${Xe}[data-bs-toggle="pill"], .${Xe}[data-bs-toggle="list"]`;class Ye extends be{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),g.on(this._element,Aa,o=>this._keydown(o)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const o=this._getActiveElem(),l=o?g.trigger(o,Ea,{relatedTarget:t}):null;g.trigger(t,Sa,{relatedTarget:o}).defaultPrevented||l&&l.defaultPrevented||(this._deactivate(o,t),this._activate(t,o))}_activate(t,o){t&&(t.classList.add(Xe),this._activate(k.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),g.trigger(t,Na,{relatedTarget:o})):t.classList.add(Ii)},t,t.classList.contains(As)))}_deactivate(t,o){t&&(t.classList.remove(Xe),t.blur(),this._deactivate(k.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),g.trigger(t,wa,{relatedTarget:o})):t.classList.remove(Ii)},t,t.classList.contains(As)))}_keydown(t){if(![Ba,Ss,Da,Ns,Li,Ts].includes(t.key))return;t.stopPropagation(),t.preventDefault();const o=this._getChildren().filter(f=>!M(f));let l;if([Li,Ts].includes(t.key))l=o[t.key===Li?0:o.length-1];else{const f=[Ss,Ns].includes(t.key);l=Se(o,t.target,f,!0)}l&&(l.focus({preventScroll:!0}),Ye.getOrCreateInstance(l).show())}_getChildren(){return k.find(Pi,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,o){this._setAttributeIfNotExists(t,"role","tablist");for(const l of o)this._setInitialAttributesOnChild(l)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const o=this._elemIsActive(t),l=this._getOuterElement(t);t.setAttribute("aria-selected",o),l!==t&&this._setAttributeIfNotExists(l,"role","presentation"),o||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const o=k.getElementFromSelector(t);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,o){const l=this._getOuterElement(t);if(!l.classList.contains("dropdown"))return;const f=(p,h)=>{const m=k.findOne(p,l);m&&m.classList.toggle(h,o)};f(Os,Xe),f(".dropdown-menu",Ii),l.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(t,o,l){t.hasAttribute(o)||t.setAttribute(o,l)}_elemIsActive(t){return t.classList.contains(Xe)}_getInnerElement(t){return t.matches(Pi)?t:k.findOne(Pi,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const o=Ye.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}g.on(document,Ta,Bs,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),M(this)||Ye.getOrCreateInstance(this).show()}),g.on(window,Oa,()=>{for(const s of k.find(Va))Ye.getOrCreateInstance(s)}),X(Ye);const Ve=".bs.toast",Ma=`mouseover${Ve}`,za=`mouseout${Ve}`,La=`focusin${Ve}`,Ia=`focusout${Ve}`,Fa=`hide${Ve}`,Pa=`hidden${Ve}`,Wa=`show${Ve}`,ja=`shown${Ve}`,Ds="hide",Un="show",Xn="showing",Ra={animation:"boolean",autohide:"boolean",delay:"number"},xa={animation:!0,autohide:!0,delay:5e3};class Sn extends be{constructor(t,o){super(t,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return xa}static get DefaultType(){return Ra}static get NAME(){return"toast"}show(){g.trigger(this._element,Wa).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Ds),ie(this._element),this._element.classList.add(Un,Xn),this._queueCallback(()=>{this._element.classList.remove(Xn),g.trigger(this._element,ja),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(g.trigger(this._element,Fa).defaultPrevented||(this._element.classList.add(Xn),this._queueCallback(()=>{this._element.classList.add(Ds),this._element.classList.remove(Xn,Un),g.trigger(this._element,Pa)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Un),super.dispose()}isShown(){return this._element.classList.contains(Un)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,o){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=o;break;case"focusin":case"focusout":this._hasKeyboardInteraction=o}if(o)return void this._clearTimeout();const l=t.relatedTarget;this._element===l||this._element.contains(l)||this._maybeScheduleHide()}_setListeners(){g.on(this._element,Ma,t=>this._onInteraction(t,!0)),g.on(this._element,za,t=>this._onInteraction(t,!1)),g.on(this._element,La,t=>this._onInteraction(t,!0)),g.on(this._element,Ia,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const o=Sn.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0)throw new TypeError(`No method named "${t}"`);o[t](this)}})}}return On(Sn),X(Sn),{Alert:vn,Button:bn,Carousel:ot,Collapse:rt,Dropdown:ye,Modal:qe,Offcanvas:Oe,Popover:Hn,ScrollSpy:wn,Tab:Ye,Toast:Sn,Tooltip:He}})})(ei)),ei.exports}var Fc=Ic();const Gi=zc(Fc);function ar(e,i=!0){const a=document.getElementById(e);let r=a?.parentElement;for(;r;){const c=(r.getAttribute("class")??"").match(/cl-tab-[0-9]+/);if(c){const u=document.querySelector(`input.${c}`);if(u){u.checked=!0;break}}r=r.parentElement}setTimeout(()=>{i?a?.scrollIntoView({behavior:"smooth"}):a?.scrollIntoView()},0)}let we=null;function pn(){we?.hide(),we=null}function Qi(e,i){pn();const a=document.getElementById(e);if(a){we=new Gi.Modal(a,{backdrop:"static"}),we.value=i,we.id=e,we.show();const r=document.querySelector(`#${e} [autofocus]`);r&&r.focus()}}function ti(e){return Gi.Modal.getInstance(document.getElementById(e))?.value}function Pc(e){return we?e?we.id===e&&we._isShown:we._isShown:!1}function cr(e,i=0,a=25){return e?.slice(i*a,i*a+a)??[]}function Wc(e="#invalid"){document.querySelector(e)?.focus()}function dr(e,i=[]){for(const r of i)r.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function ur(e,i){e&&(e.modelValue=i,e.valid=!0)}function Ji(e){const i=document.querySelector(`#${e}`);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(a=>{a.focus(),a.blur()}),i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)?(Zi(e),!1):!0):(console.error("can't find/validate form",e),!1)}async function fr(e){const i=document.getElementById(e);return i?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(a=>{a.focus(),a.blur()}),document.querySelectorAll(`#${e} .ace_editor`).forEach(a=>{a.click()}),new Promise(a=>setTimeout(()=>{if(i.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)){Zi(e),a(!1);return}a(!0)}))):(console.error("can't find/validate form",e),Promise.resolve(!1))}function jc(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function Zi(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function Rc(e){return e<1024?`${e}B`:e<1024*1024?`${Math.floor(e/1024)}kB`:e<1024*1024*1024?`${Math.floor(e/1024/1024)}MB`:`${Math.floor(e/1024/1024/1024)}GB`}function pr(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),a=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${a} ${i}`}function hr(e,i=!1){const[a,r,c]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];return i?`${a}:${r}:${c}`:`${a}:${r}`}function xc(e,i=!1){return`${pr(e)} ${hr(e,i)}`}function qc(e,i,a=!0,r=!1){let c=i.getTime()-e.getTime();r?c+=1:a?c+=1e3:c+=60*1e3;const u=(""+c%1e3).padStart(3,"0");c=Math.floor(c/1e3);const d=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const v=(""+c%60).padStart(2,"0");c=Math.floor(c/60);const $=(""+c).padStart(2,"0");return r?`${$}:${v}:${d}.${u}`:a?`${$}:${v}:${d}`:`${$}:${v}`}function Hc(e){const i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e);return`${new Intl.DateTimeFormat("en",{month:"short"}).format(e)} ${i}`}function oi(e,i=0){return e.toLocaleString("en",{minimumFractionDigits:i})}function Uc(e,i,a=2){switch(i){case"EUR":i="€";break;case"USD":i="$";break}return`${i} ${oi(e/10**a,a)}`}function Xc(e,i){return`${oi(e)} - ${oi(i)}`}function mr(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function Yc(e,i,a=e.ID_FORM){if(a){if(Ji(a)&&!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1})}else if(!e.submitting)return e.submitting=!0,i().finally(()=>{e.submitting=!1});return Promise.resolve()}function Kc(e,i,a=e.ID_FORM){return e.submitting?Promise.resolve():fr(a).then(r=>{if(r)return e.submitting=!0,i().finally(()=>{e.submitting=!1})})}function yt(e,i){const a=i.split("."),r=a.shift(),c=e[r];return[void 0,null].includes(c)?c:a.length>0?yt(c,a.join(".")):c}function gr(e,i,a="ASC",r=!1){if(!e)return[];const c=typeof e=="function"?[...e()]:[...e],u=(d,v)=>d.localeCompare(v,void 0,{ignorePunctuation:!0});return a==="ASC"?c.sort((d,v)=>(d=yt(d,i)??"",v=yt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(d.toUpperCase(),v.toUpperCase()):u(d,v):d>v?1:d<v?-1:0)):c.sort((d,v)=>(d=yt(d,i)??"",v=yt(v,i)??"",typeof d=="string"&&typeof v=="string"?r?u(v.toUpperCase(),d.toUpperCase()):u(v,d):d<v?1:d>v?-1:0))}function vr(e,i=0,a="ASC"){return{col:i,order:a,set:function(r,c){const u=this.sort(r,c);this.col=r,this.order=u},get:function(r){return this.col===r?this.order:"NONE"},sorted:[],sorter:e,sort:function(r=this.col,c=this.order){const{sorted:u,sortedOrder:d}=this.sorter(r,c);return this.sorted=u,d}}}function Gc(e,i,a=0,r=()=>0,c=()=>Number.MAX_SAFE_INTEGER){return vr((u,d)=>({sorted:cr(gr(e,i[u],d),r(),c()),sortedOrder:d}),a)}function Qc(e,i=500,a="none"){clearTimeout(Qs.get(a)),Qs.set(a,setTimeout(e,i))}const Qs=new Map;function Jc(e=3,i=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","eiusmod","tempor","incididunt","labore","et","dolore","magna","aliqua"]){let a="";for(let r=0;r<e;r++)a+=" "+i[Math.floor(Math.random()*i.length)];return a.substr(1)}function Zc(e=3,i=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","omicorn"]){const a=[];for(let r=0;r<e;r++)a.push(i[Math.floor(Math.random()*i.length)]);return a}function ed(e){navigator.clipboard.writeText(e)}function td(e,i=[],a=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u());else if(u){const d=u.shift();c.push(d(...u))}for(const u of a)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(u.shift(),!1))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function nd(e,i=[],a=[],r=!0){const c=[];for(const u of i)if(typeof u=="function")c.push(u(!0));else if(u){const d=u.shift();c.push(d(!0,...u))}for(const u of a)if(typeof u=="function")c.push(u(!1));else if(u){const d=u.shift();c.push(d(!1,...u))}return r?(e.loading=Promise.all(c).finally(()=>{r&&(e.loading=null)}),e.loading):Promise.all(c)}function id(e){return new Promise(i=>setTimeout(i,e))}function od(e){return e}function sd(e){return e}function rd(e){return e}const ld=n.defineComponent({name:"ClBackCancelOk",props:{ok:{type:String,default:"Ok"},back:{type:String,default:"Back"},cancel:{type:String,default:"Cancel"},disabled:{type:Boolean,default:!1},dirty:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},backHidden:{type:Boolean,default:!1},spinner:{type:Boolean,default:!1}},emits:["ok","cancel"],data(){return{ID_MODAL:"cl-modal-back-cancel-ok"}},methods:{clModalHide:pn,abort:function(){this.dirty?Qi(this.ID_MODAL,{}):this.$emit("cancel")},emit:function(e){pn(),this.$emit(e)}}}),ad={key:0},cd={key:1},dd=["disabled"];function ud(e,i,a,r,c,u){const d=n.resolveComponent("cl-modal"),v=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(v,{class:"cl-back-cancel-ok"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("div",{class:n.normalizeClass(["cl-spacing-box cl-spacing-medium it-buttons",[e.backHidden?"text-end":"cl-spread"]])},[e.backHidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=$=>e.abort())},[e.dirty?(n.openBlock(),n.createElementBlock("span",ad,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",cd,n.toDisplayString(e.back),1))])),e.hidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),disabled:e.disabled||!e.dirty,onClick:i[1]||(i[1]=$=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],10,dd))],2),n.createVNode(d,{id:e.ID_MODAL},{title:n.withCtx(()=>[...i[4]||(i[4]=[n.createTextVNode(" Unsaved changes ",-1)])]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"modal",{},()=>[i[5]||(i[5]=n.createElementVNode("p",null,"There are unsaved changes. Do you want to discard them or continue editing?",-1))])]),"footer-left":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[2]||(i[2]=$=>e.emit("cancel",!0))}," Discard changes ")]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-primary it-ok",onClick:i[3]||(i[3]=$=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const Ct=w(ld,[["render",ud]]);Ct.install=e=>{e.component(Ct.name??"ClNoName",Ct)};const fd=n.defineComponent({name:"ClCookieBanner",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},local:{type:Boolean,default:!1}},emits:["consent"],data(){return{fade:!1,visible:!0,cookie:"cl_banner_nok"}},computed:{clazz:function(){return(this.fade?" cl-fade-away":"")+(this.class?` ${this.class}`:"")}},created(){for(const e of document?.cookie?.split(/; */)??[]){const[i,a]=e.split("=");if(i===this.cookie&&["-mtm","+mtm"].includes(a)){this.visible=!1;break}}},methods:{accept:function(){document.cookie=this.cookieString("+mtm"),this.hide(),this.$emit("consent")},decline:function(){document.cookie=this.cookieString("-mtm"),this.hide()},cookieString:function(e){return this.local?`${this.cookie}=${e}; max-age=${3600*24*395}; path=/; SameSite=Lax;`:`${this.cookie}=${e}; max-age=${3600*24*395}; domain=.castlabs.com; path=/; SameSite=Lax;`},hide:function(){this.fade=!0,setTimeout(()=>{this.visible=!1},500)}}}),pd=["id"],hd={class:"card-body"},md={class:"cl-spacing-box text-center"};function gd(e,i,a,r,c,u){return e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,id:e.id,class:n.normalizeClass(["card cl-card cl-cookie-banner",e.clazz])},[n.createElementVNode("div",hd,[n.renderSlot(e.$slots,"default",{},()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-small"},[n.createTextVNode(" For our services to work, we use essential cookies which we control. We'd also like to include others to analyze how our site is used to help improve it - but only if you accept. Learn more in our "),n.createElementVNode("a",{class:"cl-a-text",href:"https://castlabs.com/privacy-cookie-policy/"},"privacy policy"),n.createTextVNode(". ")],-1))]),n.createElementVNode("div",md,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-primary it-ok",onClick:i[0]||(i[0]=d=>e.accept())}," Accept "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-secondary it-cancel",onClick:i[1]||(i[1]=d=>e.decline())}," Decline ")])])],10,pd)):n.createCommentVNode("",!0)}const kt=w(fd,[["render",gd]]);kt.install=e=>{e.component(kt.name??"ClNoName",kt)};const mn={mounted(e,i){let a="";for(const c of["cl-tooltip-primary","cl-tooltip-secondary","cl-tooltip-light","cl-tooltip-dark"])e.classList.contains(c)&&(a+=` ${c}`);const r=new Gi.Tooltip(e,{title:i.value,placement:i.arg,html:!0,trigger:"hover",delay:{show:65,hide:0},template:`<div class="tooltip cl-tooltip${a}" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`});return e.__tooltipInstance=r,e.addEventListener("show.bs.tooltip",function(){document.querySelectorAll(".cl-tooltip").forEach(u=>u.remove())}),r},unmounted(e){const i=e.__tooltipInstance;if(i){typeof i.dispose=="function"&&i.dispose();const a=document.querySelector(".cl-tooltip");a&&a.remove(),delete e.__tooltipInstance}}},eo={mounted(e,i){e.addEventListener("click",function(){const a=typeof i.value=="function"?i.value():i.value;i.value!==""&&navigator.clipboard?.writeText(a),e.classList.add("cl-animation-flash-text"),setTimeout(()=>{e.classList.remove("cl-animation-flash-text")},1500)})}},vd=n.defineComponent({name:"ClCopy",directives:{tooltip:mn,clipboard:eo},props:{show:{type:String,default:void 0},copy:{type:String,default:void 0},underline:{type:Boolean,default:!1},code:{type:Boolean,default:!1},unstyled:{type:Boolean,default:!1}},methods:{tooltip:function(){return this.show&&this.contentToCopy()!==this.show?`${this.contentToCopy()}<br><small>Click-to-copy!</small>`:"<small>Click-to-copy!</small>"},contentToCopy:function(){return this.copy??this.$refs.content?.textContent.trim()}}}),bd={key:0,ref:"content",class:"cl-copy"},yd={ref:"content"};function _d(e,i,a,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return e.unstyled?n.withDirectives((n.openBlock(),n.createElementBlock("span",bd,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))])),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):e.code?n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[n.createElementVNode("code",yd,[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],512)],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]]):n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:2,ref:"content",class:n.normalizeClass(e.underline?"cl-copy cl-copy-text":"cl-copy cl-copy-transparent")},[e.show?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.show),1)],64)):e.$slots.default?n.renderSlot(e.$slots,"default",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString(e.copy??"?"),1)],64))],2)),[[d,e.tooltip,"top"],[v,e.contentToCopy]])}const $t=w(vd,[["render",_d]]);$t.install=e=>{e.component($t.name??"ClNoName",$t)};const Cd=n.defineComponent({name:"ClCreditcardNumber",props:{id:{type:String,default:void 0},class:{type:String,default:""},number:{type:String,default:"0000000000000000"},expires:{type:String,default:"MM/YYYY"},expired:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""},validText:function(){return this.expired?"expired":"valid until"}},methods:{clFormatCardNumber:mr}}),kd=["id"];function $d(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("code",{id:e.id,class:n.normalizeClass(e.clazz)},n.toDisplayString(e.clFormatCardNumber(e.number)),11,kd),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const Et=w(Cd,[["render",$d]]);Et.install=e=>{e.component(Et.name??"ClNoName",Et)};function Js(e){e.preventDefault()}const Ed=n.defineComponent({name:"ClDropzone",props:{what:{type:String,default:"a file"},why:{type:String,default:"to add"},accept:{type:String,default:void 0},camera:{type:Boolean,default:!1}},emits:["file","content"],data(){return{$uid:0,dragging:!1}},mounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.addEventListener(e,Js)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,Js)})},methods:{browse:function(){const e=document.getElementById(`cl-dropzone-file-${this.$uid}`);if(e&&document.createEvent){const i=document.createEvent("MouseEvents");i.initEvent("click",!0,!1),e.dispatchEvent(i)}},browsed:function(){const i=document.getElementById(`cl-dropzone-file-${this.$uid}`).files??[];i.length>0&&this.loadFile(i[0])},mock:function(e){this.$emit("file",e)},loadFile:function(e){const i=new FileReader,a=this.$emit;a("file",e),i.onload=function(r){a("content",r.target?.result)},i.readAsText(e)},onDrop:function(e){e.dataTransfer&&this.loadFile(e.dataTransfer.files[0]),this.dragging=!1},onDrag:function(e){this.dragging=e}}}),wd=["id"],Sd=["id","accept"];function Nd(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["cl-spacing-small",e.dragging?"cl-dragging":""]),onDragover:i[6]||(i[6]=d=>e.onDrag(!0)),onDragleave:i[7]||(i[7]=d=>e.onDrag(!1)),onDrop:i[8]||(i[8]=n.withModifiers((...d)=>e.onDrop&&e.onDrop(...d),["prevent"]))},[e.camera?(n.openBlock(),n.createElementBlock("input",{key:0,id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:"image/*",class:"cl-dropzone-file",capture:"environment",onChange:i[0]||(i[0]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,wd)):n.createCommentVNode("",!0),n.createElementVNode("input",{id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:e.accept,class:"cl-dropzone-file",onChange:i[1]||(i[1]=(...d)=>e.browsed&&e.browsed(...d)),tabindex:"-1"},null,40,Sd),e.camera?(n.openBlock(),n.createElementBlock("div",{key:1,class:"cl-dropzone",onClick:i[3]||(i[3]=d=>e.browse())},[i[9]||(i[9]=n.createElementVNode("i",{class:"fas fa-camera"},null,-1)),i[10]||(i[10]=n.createTextVNode("Use your ",-1)),n.createElementVNode("a",{href:"#",onClick:i[2]||(i[2]=n.withModifiers(()=>{},["prevent"]))},"camera"),n.createTextVNode(" to take a picture "+n.toDisplayString(e.why)+". ",1)])):(n.openBlock(),n.createElementBlock("div",{key:2,class:"cl-dropzone",onClick:i[5]||(i[5]=d=>e.browse())},[i[11]||(i[11]=n.createElementVNode("i",{class:"fas fa-file-upload"},null,-1)),i[12]||(i[12]=n.createTextVNode("Drop or ",-1)),n.createElementVNode("a",{href:"#",onClick:i[4]||(i[4]=n.withModifiers(()=>{},["prevent"]))},"browse"),n.createTextVNode(" "+n.toDisplayString(e.what)+" "+n.toDisplayString(e.why)+". ",1)])),n.renderSlot(e.$slots,"default")],34)}const wt=w(Ed,[["render",Nd]]);wt.install=e=>{e.component(wt.name??"ClNoName",wt)};const Td=n.defineComponent({name:"ClField",inheritAttrs:!1,props:{value:{type:String,default:void 0},type:{type:String,default:"text"},label:{type:String,default:void 0},placeholder:{type:String,default:void 0},class:{type:String,default:""},help:{type:String,default:void 0},error:{type:String,default:void 0},nofeedback:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autotrim:{type:Boolean,default:!1},prevalidate:{type:Boolean,default:!1},minlength:{type:String,default:void 0},maxlength:{type:String,default:void 0},min:{type:String,default:void 0},max:{type:String,default:void 0},pattern:{type:String,default:void 0}},emits:["valid","invalid","changed","update:modelValue"],data(){return{valid:!0,modelValue:this.value??"",invalidMessage:this.error??"Input invalid.",filePlaceholder:this.placeholder??"Please select ..."}},computed:{clazz:function(){return this.type==="file"?this.class+" cl-file"+(this.valid?"":" invalid"):this.class+" form-control"+(this.valid?"":" invalid")}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},mounted:function(){this.prevalidate&&this.validate()},methods:{runAutotrim:function(){if(this.autotrim||["number"].includes(this.type)){const e=this.$refs.input;e.value=e.value.trim(),this.modelValue=e.value}},focus:function(){this.$nextTick(()=>{this.$refs.input?.focus()})},validate:function(e=!1){if(this.valid=!0,e&&this.runAutotrim(),this.type==="file"&&this.modelValue!==""&&(this.filePlaceholder=this.modelValue.replace(/.*[/\\]/,"")),this.required&&(this.modelValue?.length??0)<=0)this.setInvalid("This field may not be blank.");else switch(this.type){case"number":this.validateNumber();break;case"email":this.validateEMail();break;default:this.validateText()}this.valid&&this.setValid(this.modelValue)},validateText:function(){const e=Number(this.minlength),i=Number(this.maxlength);this.minlength&&(this.modelValue?.length??0)<e&&this.setInvalid(this.error??`Please enter at least ${e} character`+(e>1?"s.":".")),this.maxlength&&(this.modelValue?.length??0)>i&&this.setInvalid(this.error??`Please enter at most ${i} character`+(e>1?"s.":".")),this.pattern&&!new RegExp(this.pattern,"g").test(this.modelValue)&&this.setInvalid(this.error)},validateNumber:function(){const e=this.modelValue.trim();if(!/^-?[0-9]*$/.test(e.trim())){this.setInvalid("Please enter a number.");return}const i=parseInt(e.trim());if(i.toString()!==e){this.setInvalid("Please enter a number.");return}this.min!==void 0&&this.max!==void 0?(i<parseInt(this.min)||i>parseInt(this.max))&&this.setInvalid(`Please enter a number between ${this.min} and ${this.max}.`):this.min!==void 0?i<parseInt(this.min)&&this.setInvalid(`Please enter a number >= ${this.min}.`):this.max!==void 0&&i>parseInt(this.max)&&this.setInvalid(`Please enter a number <= ${this.max}.`)},validateEMail:function(){/^[^\s@]+@[^\s@]+\.[^\s@]+[^\s@.]$/.test(this.modelValue)||this.setInvalid("Please enter a valid email address.")},setValid:function(e=""){this.valid=!0,this.modelValue=e,this.$emit("update:modelValue",this.modelValue),this.$emit("valid",this.help??""),this.$emit("changed",this.modelValue)},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid.",this.$emit("update:modelValue",this.modelValue),this.$emit("invalid",this.invalidMessage),this.$emit("changed",this.modelValue)}}}),Ad=["for"],Od={key:0,class:"required"},Bd=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Dd=["id","autofocus","disabled","required"],Vd=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Md=["id","for"],zd={key:1,class:"valid-feedback valid-feedback-none"};function Ld(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,for:e.$uid,class:n.normalizeClass(["form-label",{disabled:e.disabled}])},[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Od,"*")):n.createCommentVNode("",!0)],10,Ad)):n.createCommentVNode("",!0),e.type==="textarea"?n.withDirectives((n.openBlock(),n.createElementBlock("textarea",n.mergeProps({key:1,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required,onBlur:i[1]||(i[1]=d=>e.validate(!0)),onChange:i[2]||(i[2]=d=>e.validate()),onInput:i[3]||(i[3]=d=>e.validate())}),null,16,Bd)),[[n.vModelText,e.modelValue]]):e.type==="select"?n.withDirectives((n.openBlock(),n.createElementBlock("select",n.mergeProps({key:2,id:e.$uid,"onUpdate:modelValue":i[4]||(i[4]=d=>e.modelValue=d),class:["form-select",e.clazz],autofocus:e.autofocus,disabled:e.disabled,required:e.required},e.$attrs,{onBlur:i[5]||(i[5]=d=>e.validate(!0)),onChange:i[6]||(i[6]=d=>e.validate())}),[n.renderSlot(e.$slots,"default")],16,Dd)),[[n.vModelSelect,e.modelValue]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",n.mergeProps({key:3,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":i[7]||(i[7]=d=>e.modelValue=d),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,min:e.min,max:e.max,maxlength:e.maxlength,minlength:e.minlength,pattern:e.pattern,placeholder:e.placeholder,required:e.required,type:["number"].includes(e.type)?"text":e.type,onBlur:i[8]||(i[8]=d=>e.validate(!0)),onChange:i[9]||(i[9]=d=>e.validate()),onInput:i[10]||(i[10]=d=>e.validate())}),null,16,Vd)),[[n.vModelDynamic,e.modelValue]]),e.type==="file"?(n.openBlock(),n.createElementBlock("label",{key:4,id:`${e.$uid}-companion`,for:e.$uid,class:"cl-file-companion"},n.toDisplayString(e.filePlaceholder),9,Md)):n.createCommentVNode("",!0),e.nofeedback?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:5},[n.createElementVNode("p",{class:n.normalizeClass(["invalid-feedback",{disabled:e.disabled}])},n.toDisplayString(e.invalidMessage),3),e.help?(n.openBlock(),n.createElementBlock("p",{key:0,class:n.normalizeClass(["valid-feedback",{disabled:e.disabled}])},n.toDisplayString(e.help),3)):(n.openBlock(),n.createElementBlock("p",zd))],64))],64)}const St=w(Td,[["render",Ld]]);St.install=e=>{e.component(St.name??"ClNoName",St)};const Id=n.defineComponent({name:"ClFieldCheck",inheritAttrs:!1,props:{id:{type:String,default:void 0},value:{type:Boolean,default:!1},label:{type:String,default:void 0},class:{type:String,default:""},inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{modelValue:this.value}},computed:{clazz:function(){return`form-check${this.inline?" form-check-inline":""} ${this.class}`}},watch:{value(e){this.modelValue!==e&&(this.modelValue=e)}},methods:{check:function(e=!1){this.modelValue=e,this.$refs.input.checked=e},focus:function(){this.$nextTick(()=>{this.$refs.input.focus()})}}}),Fd=["id","disabled","indeterminate","autofocus"],Pd=["for"];function Wd(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.clazz)},[n.withDirectives(n.createElementVNode("input",n.mergeProps({id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,indeterminate:e.indeterminate,autofocus:e.autofocus},e.$attrs,{onChange:i[1]||(i[1]=d=>e.$emit("update:modelValue",e.modelValue))}),null,16,Fd),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,Pd)],2)}const Nt=w(Id,[["render",Wd]]);Nt.install=e=>{e.component(Nt.name??"ClNoName",Nt)};const jd=n.defineComponent({name:"ClFieldGroup",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},label:{type:String,default:void 0},help:{type:String,default:void 0},error:{type:String,default:void 0},required:{type:Boolean,default:!1}},data(){return{valid:!0,invalidMessage:this.error??"Input invalid."}},computed:{clazz:function(){return(this.valid?"":" invalid")+(this.class?` ${this.class}`:"")}},methods:{setValid:function(){this.valid=!0,this.invalidMessage="Input invalid."},setInvalid:function(e){this.valid=!1,this.invalidMessage=e??"Input invalid."}}}),Rd={key:0,class:"form-label"},xd={key:0,class:"required"},qd=["id"],Hd={class:"invalid-feedback"},Ud={key:1,class:"valid-feedback"};function Xd(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",Rd,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",xd,"*")):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(`input-group${e.clazz}`),id:e.id},[n.renderSlot(e.$slots,"default")],10,qd),n.createElementVNode("p",Hd,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",Ud,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Tt=w(jd,[["render",Xd]]);Tt.install=e=>{e.component(Tt.name??"ClNoName",Tt)};const Yd=n.defineComponent({name:"ClHashtag",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-hashtag ";return!this.primary&&!this.secondary?this.class.includes("cl-color")||(e+=" cl-color-steel"):this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),Kd={key:0,class:"cl-badge-derived"},Gd=["id"],Qd=["id"];function Jd(e,i,a,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",Kd,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Gd)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Qd))}const At=w(Yd,[["render",Jd]]);At.install=e=>{e.component(At.name??"ClNoName",At)};const Zd=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),eu={class:"container cl-container-iconotron"},tu={class:"row"},nu={class:"col-12 col-md-3"},iu=["src"],ou={class:"col-12 col-md-9"};function su(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",eu,[n.createElementVNode("div",tu,[n.createElementVNode("div",nu,[n.createElementVNode("img",{src:e.src,alt:""},null,8,iu)]),n.createElementVNode("div",ou,[n.renderSlot(e.$slots,"default")])])])}const Ot=w(Zd,[["render",su]]);Ot.install=e=>{e.component(Ot.name??"ClNoName",Ot)};const ru=n.defineComponent({name:"ClInfo",directives:{tooltip:mn},props:{bottom:{type:Boolean,default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},top:{type:Boolean,default:!0},info:{type:String,default:"Tooltip"},faded:{type:Boolean,default:!0},icon:{type:String,default:"far fa-question-circle"}},computed:{classes:function(){return this.icon+(this.faded?" cl-faded":"")}}});function lu(e,i,a,r,c,u){const d=n.resolveDirective("tooltip");return e.bottom?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes)},null,2)),[[d,e.info,"top"]])}const Bt=w(ru,[["render",lu]]);Bt.install=e=>{e.component(Bt.name??"ClNoName",Bt)};const au=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function cu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass({"cl-a-external":!e.noicon}),target:"_blank",rel:"noopener noreferrer"},[n.renderSlot(e.$slots,"default")],2)}const Dt=w(au,[["render",cu]]);Dt.install=e=>{e.component(Dt.name??"ClNoName",Dt)};const du=`
2
2
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
3
3
  incididunt ut labore et dolore magna aliqua. Sed ullamcorper morbi tincidunt
4
4
  ornare massa eget egestas purus viverra. Faucibus in ornare quam viverra orci
@@ -22,5 +22,5 @@
22
22
  Congue eu consequat ac felis donec. Aliquam etiam erat velit scelerisque in
23
23
  dictum non. Dis parturient montes nascetur ridiculus mus mauris vitae ultricies.
24
24
  Morbi quis commodo odio aenean sed adipiscing diam donec adipiscing. Sit amet
25
- justo donec enim diam.`,fu=n.defineComponent({name:"ClLorem",props:{words:{type:Number,default:10},paragraphs:{type:Number,default:0}},methods:{lorem(e){return((e%2?uu:du).trim().replace(/\s+/g," ").split(" ").splice(0,this.words).join(" ")+".").replace(/\.+/g,".")}}});function pu(e,i,a,r,c,u){return e.paragraphs<=0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.lorem(0)),1)],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(parseInt(e.paragraphs),d=>(n.openBlock(),n.createElementBlock("p",{key:d},n.toDisplayString(e.lorem(d)),1))),128))}const Vt=w(fu,[["render",pu]]);Vt.install=e=>{e.component(Vt.name??"ClNoName",Vt)};const hu=n.defineComponent({name:"ClMailto",props:{to:{type:String,default:"office@castlabs.com"}}}),mu=["href"];function gu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:"cl-a-email",href:`mailto:${e.to}`},n.toDisplayString(e.to),9,mu)}const Mt=w(hu,[["render",gu]]);Mt.install=e=>{e.component(Mt.name??"ClNoName",Mt)};const vu=n.defineComponent({props:{to:{type:void 0,default:()=>({})},class:{type:String,default:""}},computed:{classes:function(){return this.class}},methods:{push:function(){this.$router.push(this.to)}}}),bu=["to","name","aid","bid","cid","did","eid","fid","gid","hid","iid","jid","kid","lid","mid","nid","oid","pid","qid","rid","sid","tid","uid","vid","wid","xid","yid","zid"];function yu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass(e.classes),to:JSON.stringify(e.to),name:e.to.name,aid:e.to.params?.aid,bid:e.to.params?.bid,cid:e.to.params?.cid,did:e.to.params?.did,eid:e.to.params?.eid,fid:e.to.params?.fid,gid:e.to.params?.gid,hid:e.to.params?.hid,iid:e.to.params?.iid,jid:e.to.params?.jid,kid:e.to.params?.kid,lid:e.to.params?.lid,mid:e.to.params?.mid,nid:e.to.params?.nid,oid:e.to.params?.oid,pid:e.to.params?.pid,qid:e.to.params?.qid,rid:e.to.params?.rid,sid:e.to.params?.sid,tid:e.to.params?.tid,uid:e.to.params?.uid,vid:e.to.params?.vid,wid:e.to.params?.wid,xid:e.to.params?.xid,yid:e.to.params?.yid,zid:e.to.params?.zid,onClick:i[0]||(i[0]=d=>e.push())},[n.renderSlot(e.$slots,"default")],10,bu)}const Tn=w(vu,[["render",yu]]);Tn.install=e=>{e.component(Tn.name??"ClNoName",Tn)};const _u=n.defineComponent({name:"ClModal",inheritAttrs:!1,props:{id:{type:String,default:null},form:{type:Boolean,default:!1},class:{type:String,default:null},helpUrl:{type:String,default:null},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},computed:{clazz:function(){return this.class}},mounted(){const e=document.getElementById(this.id||""),i=this;e&&(e.addEventListener("hidden.bs.modal",function(){i.onClose&&i.onClose()}),e.addEventListener("show.bs.modal",function(){i.onOpen&&i.onOpen()}))}}),Cu=["id"],ku={class:"modal-dialog"},$u={class:"modal-content"},Eu={class:"modal-header"},wu=["href"],Su=["id"],Nu={key:1,class:"modal-body"},Tu={class:"modal-footer"},Au={class:"modal-footer-left cl-spacing-box cl-spacing-none"},Ou={class:"modal-footer-center cl-spacing-box cl-spacing-none"},Bu={class:"modal-footer-right cl-spacing-box cl-spacing-none"};function Du(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",{id:e.id,class:n.normalizeClass(`modal ${e.clazz}`),tabindex:"-1","data-bs-backdrop":"static"},[n.createElementVNode("div",ku,[n.createElementVNode("div",$u,[n.createElementVNode("div",Eu,[n.renderSlot(e.$slots,"title",{},()=>[i[1]||(i[1]=n.createTextVNode("Information",-1))]),e.helpUrl?(n.openBlock(),n.createElementBlock("a",{key:0,class:"modal-help",href:e.helpUrl,target:"_blank",title:"Show help in new window."},[...i[2]||(i[2]=[n.createElementVNode("i",{class:"far fa-question-circle"},null,-1)])],8,wu)):n.createCommentVNode("",!0)]),e.form?(n.openBlock(),n.createElementBlock("form",{key:0,id:`${e.id}-form`,class:"modal-body cl-form container",novalidate:"",onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")],40,Su)):(n.openBlock(),n.createElementBlock("div",Nu,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])),n.createElementVNode("div",Tu,[n.createElementVNode("span",Au,[n.renderSlot(e.$slots,"footer-left")]),n.createElementVNode("span",Ou,[n.renderSlot(e.$slots,"footer")]),n.createElementVNode("span",Bu,[n.renderSlot(e.$slots,"footer-right")])])])])],10,Cu)}const zt=w(_u,[["render",Du]]);zt.install=e=>{e.component(zt.name??"ClNoName",zt)};const Vu=n.defineComponent({name:"ClModalConfirm",inheritAttrs:!1,props:{id:{type:String,default:"modal-confirm"},class:{type:String,default:void 0},text:{type:String,default:"confirm"},title:{type:String,default:"Are you sure?"},ok:{type:String,default:void 0},button:{type:String,default:"OK"},spinner:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{reset:function(){ur(this.$refs.text,""),dr(`${this.id}-form`)},submit:function(){Ji(`${this.id}-form`)&&this.$emit("ok")}}});function Mu(e,i,a,r,c,u){const d=n.resolveComponent("cl-field"),v=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(v,{id:e.id,class:n.normalizeClass(e.clazz),form:"","on-open":e.reset},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("p",null,[i[2]||(i[2]=n.createTextVNode(" To confirm your intention, please type ",-1)),n.createElementVNode("code",null,n.toDisplayString(e.text),1),i[3]||(i[3]=n.createTextVNode(" into this text field: ",-1))]),n.createVNode(d,{ref:"text",type:"text",required:"",pattern:`^${e.text}$`,class:"text-center cl-field-monospace it-confirm",autofocus:"",onKeyup:i[0]||(i[0]=n.withKeys($=>e.submit(),["enter"]))},null,8,["pattern"])]),"footer-left":n.withCtx(()=>[...i[4]||(i[4]=[n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary it-cancel","data-bs-dismiss":"modal"},[n.createElementVNode("span",null,"Cancel")],-1)])]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),onClick:i[1]||(i[1]=$=>e.submit())},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1)],2)]),_:3},8,["id","class","on-open"])}const Lt=w(Vu,[["render",Mu]]);Lt.install=e=>{e.component(Lt.name??"ClNoName",Lt)};const zu=n.defineComponent({name:"ClModalOk",inheritAttrs:!1,props:{id:{type:String,default:"modal-ok"},class:{type:String,default:void 0},title:{type:String,default:"Information"},form:{type:Boolean,default:!1},body:{type:String,default:void 0},ok:{type:String,default:void 0},button:{type:String,default:"OK"},cancel:{type:String,default:null},spinner:{type:Boolean,default:!1},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},emits:["ok","cancel"],data(){return{emitted:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},methods:{buttonOk:function(){this.emitted=!0,pn(),this.$emit("ok",ti(this.id))},buttonCancel:function(){this.emitted=!0,pn(),this.$emit("cancel",ti(this.id))},opened:function(){this.emitted=!1,this.onOpen&&this.onOpen()},closed:function(){this.emitted||this.$emit("cancel",ti(this.id)),this.onClose&&this.onClose()}}});function Lu(e,i,a,r,c,u){const d=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(d,{id:e.id,class:n.normalizeClass(e.clazz),form:e.form,"on-open":e.opened,"on-close":e.closed},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createTextVNode(n.toDisplayString(e.body),1)]),"footer-left":n.withCtx(()=>[e.cancel?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=(...v)=>e.buttonCancel&&e.buttonCancel(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.cancel),1)])):n.createCommentVNode("",!0)]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),onClick:i[1]||(i[1]=(...v)=>e.buttonOk&&e.buttonOk(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1)],2)]),_:3},8,["id","class","form","on-open","on-close"])}const It=w(zu,[["render",Lu]]);It.install=e=>{e.component(It.name??"ClNoName",It)};function br(){const e=document.getElementById("cl-nav-side");if(e)if(e.checked){e.parentNode.classList.add("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","true")}catch(i){i.ignore?.()}}else{e.parentNode.classList.remove("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}}function Iu(){Zs(Fu()),document.querySelectorAll(".cl-nav-drawer a").forEach(e=>{e.addEventListener("click",()=>{if(yr()){Zs(!1);try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}})}),document.getElementById("cl-nav-side")?.addEventListener("change",function(){br()}),document.querySelectorAll(".cl-nav-drawer details[id]").forEach(e=>{e.addEventListener("toggle",i=>{try{localStorage.setItem(`cl-nav-${e.id}`,i.target.hasAttribute("open"))}catch(a){a.ignore?.()}});try{localStorage.getItem(`cl-nav-${e.id}`)==="true"&&(e.open=!0)}catch(i){i.ignore?.()}}),setTimeout(function(){document.querySelectorAll("body").forEach(e=>{e.classList.add("cl-animate")})},1e3)}function Zs(e){const i=document.getElementById("cl-nav-side");i&&(i.checked=e)}function yr(){return Math.max(document?.documentElement?.clientWidth||0,window?.innerWidth||0)<1200}function Fu(){const e=localStorage.getItem("sidenavOpen");return e==null?!yr():JSON.parse(e)}const Pu=n.defineComponent({name:"ClNavSide",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){this.setup()},methods:{toggle:function(){br()},setup:function(){this.$nextTick(()=>{Iu()})}}}),Wu={class:"cl-nav-side"},ju={class:"cl-nav-drawer"},Ru={"data-simplebar":""};function xu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:"cl-nav-side",type:"checkbox",class:n.normalizeClass(`cl-nav-checkbox${e.clazz}`),onChange:i[0]||(i[0]=(...d)=>e.toggle&&e.toggle(...d)),tabindex:"-1"},null,34),n.createElementVNode("nav",Wu,[i[1]||(i[1]=n.createElementVNode("label",{class:"cl-nav-backdrop",for:"cl-nav-side"},null,-1)),n.createElementVNode("div",ju,[n.createElementVNode("div",Ru,[n.renderSlot(e.$slots,"default")])])])],64)}const Ft=w(Pu,[["render",xu]]);Ft.install=e=>{e.component(Ft.name??"ClNoName",Ft)};const qu=n.defineComponent({name:"ClNavTop",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{isFluid:function(){return this.$route.meta?.fluid},clazz:function(){return this.class?` ${this.class}`:""},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),Hu={class:"row"},Uu={class:"col-12 cl-grid-flex-centered"};function Xu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("nav",{id:"cl-nav-top",class:n.normalizeClass(`cl-nav-top${e.clazz}`)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Hu,[n.createElementVNode("div",Uu,[i[0]||(i[0]=n.createElementVNode("label",{class:"cl-nav-side-burger",for:"cl-nav-side"},[n.createElementVNode("i",{class:"fas fa-bars"})],-1)),n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"title")])])],2)],2)}const Pt=w(qu,[["render",Xu]]);Pt.install=e=>{e.component(Pt.name??"ClNoName",Pt)};const Yu=n.defineComponent({name:"ClOrg",props:{name:{type:String,default:"No organization"}}}),Ku={class:"cl-org"};function Gu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("span",Ku,[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")])}const Wt=w(Yu,[["render",Gu]]);Wt.install=e=>{e.component(Wt.name??"ClNoName",Wt)};const Qu=n.defineComponent({name:"ClPage",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},title:{type:String,default:void 0},loading:{type:Boolean,default:!1},notFound:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){const e=this.$route?.query?.goto;e&&ar(e)},methods:{back(){history.go(-1)}}}),Ju={key:0,class:"cl-page-spinner"};function Zu(e,i,a,r,c,u){const d=n.resolveComponent("cl-section-headline"),v=n.resolveComponent("cl-spinner"),$=n.resolveComponent("cl-section-main");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(d,{id:e.id??e.$route.name,title:e.title??e.$route.meta?.title??"Castlabs",class:n.normalizeClass(e.clazz),fluid:e.$route.meta?.fluid},null,8,["id","title","class","fluid"]),e.loading?(n.openBlock(),n.createElementBlock("div",Ju,[n.createVNode(v)])):e.notFound?n.renderSlot(e.$slots,"notFound",{key:1},()=>[n.createVNode($,{fluid:e.$route.meta?.fluid},{default:n.withCtx(()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-large"},"Hmm, it seems we can’t find what you’re looking for.",-1)),i[3]||(i[3]=n.createElementVNode("p",{class:"alert cl-alert-info"},"This resource may have been moved or it might have expired.",-1)),n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary cl-spacing-large",onClick:i[0]||(i[0]=(...B)=>e.back&&e.back(...B))},[...i[1]||(i[1]=[n.createElementVNode("span",null,"Back",-1)])])]),_:1},8,["fluid"])]):n.renderSlot(e.$slots,"default",{key:2})],64)}const jt=w(Qu,[["render",Zu]]);jt.install=e=>{e.component(jt.name??"ClNoName",jt)};function ef(e,i,a,r){const c=[],u=Math.ceil(e/i);a<1&&(a=1),a>u&&(a=u);for(let d=1;d<=u;d++)(d>=a-r&&d<=a+r||d===1||d===u)&&c.push(d);return{previous:a>1?a-1:null,next:a<u?a+1:null,current:a,pages:c}}const tf=n.defineComponent({name:"ClPagination",props:{items:{type:Number,default:0},pagesize:{type:Number,default:25},current:{type:Number,default:1},window:{type:Number,default:3},test:{type:Boolean,default:!1}},emits:["page"],computed:{pager:function(){return ef(this.items,this.pagesize,this.current,this.window)}}}),nf={key:0,class:"col-12 cl-spacing-medium"},of={class:"pagination"},sf={key:0,class:"page-item"},rf={key:1,class:"page-item disabled"},lf={key:0,class:"page-item disabled"},af=["onClick"],cf={key:2,class:"page-item"},df={key:3,class:"page-item disabled"};function uf(e,i,a,r,c,u){return e.pager?.pages?.length>1?(n.openBlock(),n.createElementBlock("nav",nf,[n.createElementVNode("ul",of,[e.pager.previous?(n.openBlock(),n.createElementBlock("li",sf,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[0]||(i[0]=d=>e.$emit("page",e.pager.previous))},[i[2]||(i[2]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",rf,[i[3]||(i[3]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pager.pages,(d,v)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[v>0&&e.pager.pages[v-1]!==d-1?(n.openBlock(),n.createElementBlock("li",lf," … ")):n.createCommentVNode("",!0),n.createElementVNode("li",{class:n.normalizeClass(["page-item",{active:d===e.pager.current}])},[n.createElementVNode("button",{class:"page-link",onClick:$=>e.$emit("page",d)},n.toDisplayString(d),9,af)],2)],64))),128)),e.pager.next?(n.openBlock(),n.createElementBlock("li",cf,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[1]||(i[1]=d=>e.$emit("page",e.pager.next))},[i[4]||(i[4]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",df,[i[5]||(i[5]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)]))])])):n.createCommentVNode("",!0)}const Rt=w(tf,[["render",uf]]);Rt.install=e=>{e.component(Rt.name??"ClNoName",Rt)};const ff=n.defineComponent({name:"ClPlan",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-plan ";return!this.primary&&!this.secondary?e+=" cl-color-steel":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),pf={key:0,class:"cl-badge-derived"},hf=["id"],mf=["id"];function gf(e,i,a,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",pf,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,hf)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,mf))}const xt=w(ff,[["render",gf]]);xt.install=e=>{e.component(xt.name??"ClNoName",xt)};const vf=n.defineComponent({name:"ClRole",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-role ";return!this.primary&&!this.secondary?e+=" cl-color-steel":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-role-steel"),e+(this.class?` ${this.class}`:"")}}}),bf={key:0,class:"cl-badge-derived"},yf=["id"],_f=["id"];function Cf(e,i,a,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",bf,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,yf)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,_f))}const qt=w(vf,[["render",Cf]]);qt.install=e=>{e.component(qt.name??"ClNoName",qt)};const kf=n.defineComponent({name:"ClSectionForm",props:{id:{type:String,default:"FORM"},fluid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"cl-form container-fluid":"cl-form container"}}}),$f={class:"cl-section cl-section-form"},Ef=["id"],wf=["disabled"],Sf={key:1,class:"col-12"};function Nf(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("section",$f,[n.createElementVNode("form",{id:e.id,novalidate:"",class:n.normalizeClass(e.containerClass),onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.createElementVNode("fieldset",{class:"row",disabled:e.disabled},[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Sf,[n.renderSlot(e.$slots,"default")]))],8,wf)],42,Ef)])}const Ht=w(kf,[["render",Nf]]);Ht.install=e=>{e.component(Ht.name??"ClNoName",Ht)};const Tf=n.defineComponent({name:"ClSectionHeadline",props:{fluid:{type:Boolean,default:!1},title:{type:String,default:void 0},href:{type:String,default:void 0}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"container-fluid cl-container-spacing-small":"container cl-container-spacing-small"}}}),Af={class:"cl-section cl-section-headline"},Of={class:"row"},Bf={class:"col-12"},Df={key:0},Vf=["href"];function Mf(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("section",Af,[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Of,[n.createElementVNode("div",Bf,[e.title?(n.openBlock(),n.createElementBlock("h1",Df,[n.createTextVNode(n.toDisplayString(e.title),1),e.href?(n.openBlock(),n.createElementBlock("a",{key:0,href:e.href,class:"cl-headline-help-icon",target:"_blank",rel:"noopener noreferrer",title:"Help"},[...i[0]||(i[0]=[n.createElementVNode("i",{class:"fas fa-question-circle"},null,-1)])],8,Vf)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")])])],2)])}const Ut=w(Tf,[["render",Mf]]);Ut.install=e=>{e.component(Ut.name??"ClNoName",Ut)};const zf=n.defineComponent({name:"ClSectionMain",props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},sectionClass:function(){return this.alternate?"cl-section-alternate":"cl-section"},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),Lf={class:"row"},If={key:1,class:"col-12"};function Ff(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(e.sectionClass)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Lf,[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",If,[n.renderSlot(e.$slots,"default")]))])],2)],2)}const Qe=w(zf,[["render",Ff]]);Qe.install=e=>{e.component(Qe.name??"ClNoName",Qe)};const Pf=n.defineComponent({name:"ClSectionMainSide",components:{ClSectionMain:Qe},props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},slim:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},mainClass:function(){return"col-12 "+(this.slim?"col-lg-9":"col-lg-8")},sideClass:function(){return"col-12 "+(this.slim?"col-lg-3":"col-lg-4")},sectionClass:function(){return"cl-section-main-side "+(this.alternate?"cl-section-alternate":"")}}});function Wf(e,i,a,r,c,u){const d=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(d,{class:n.normalizeClass(e.sectionClass),"no-col":"",fluid:e.isFluid},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(e.mainClass)},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"main")],2),e.$slots.side?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.sideClass)},[n.renderSlot(e.$slots,"side")],2)):n.createCommentVNode("",!0)]),_:3},8,["class","fluid"])}const Xt=w(Pf,[["render",Wf]]);Xt.install=e=>{e.component(Xt.name??"ClNoName",Xt)};const jf=n.defineComponent({name:"ClSpinner",props:{title:{type:String,default:"Loading ..."}}}),Rf={class:"cl-spinner"};function xf(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",Rf,[n.createTextVNode(n.toDisplayString(e.title),1),i[0]||(i[0]=n.createElementVNode("i",{class:"fas fa-spinner fa-spin"},null,-1))])}const Yt=w(jf,[["render",xf]]);Yt.install=e=>{e.component(Yt.name??"ClNoName",Yt)};function qf(e){document.querySelectorAll(`#${e} .cl-resizer`).forEach(i=>{Hf(i)})}let An=0,hn=null;function Hf(e){An=0,hn=null,e.addEventListener("mousedown",Uf),document.addEventListener("mousemove",Xf),document.addEventListener("mouseup",Yf)}const Uf=e=>{e.preventDefault(),hn=e.target?e.target.parentElement:null,An=e.pageX},Xf=e=>{if(hn!==null){e.preventDefault();const i=e.pageX-An;An=e.pageX;const a=Kf(hn),r=e.target?.closest("table")?.id??"unknown";!!document.querySelector(`#${r}.cl-table-nowrap`)?document.querySelectorAll(`#${r} tr th:nth-child(${a-1})`).forEach(u=>{const d=(u.style.maxWidth===""?u.offsetWidth:parseInt(u.style.maxWidth))+i;u.style.width=(d>32?d:32)+"px",u.style.maxWidth=(d>32?d:32)+"px"}):(document.querySelectorAll(`#${r} tr td:nth-child(${a-1})`).forEach(u=>{const d=u.offsetWidth+i;u.style.width=(d>32?d:32)+"px"}),document.querySelectorAll(`#${r} tr td:nth-child(${a})`).forEach(u=>{const d=u.offsetWidth-i;u.style.width=(d>32?d:32)+"px"}))}},Yf=e=>{hn!==null&&(e.preventDefault(),An=0,hn=null)};function Kf(e){let i=0;for(;e;)i++,e=e.previousElementSibling;return i}const Gf=n.defineComponent({name:"ClTable",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},nowrap:{type:Boolean,default:!1},noDataText:{type:String,default:"No data available."},rows:{type:Number,default:1},nonresponsive:{type:Boolean,default:!1},hideCols:{type:Array,default:void 0},fixed:{type:Boolean,default:!1}},data(){return{show:Array(32).fill(!0)}},computed:{clazz:function(){let e=this.class;this.nonresponsive&&(e+=" cl-table-nonresponsive"),this.nowrap&&(e+=" cl-table-nowrap"),this.fixed&&(e+=" cl-table-fixed");for(let i=1;i<=this.show.length;i++)this.show[i-1]||(e+=` cl-table-col-${i}-hide`);return e}},watch:{rows:function(){this.setupResizer()}},mounted(){this.setupResizer()},methods:{setupResizer:function(){this.$nextTick(()=>{qf(this.$uid)})}}}),Qf=["id"],Jf=["id"],Zf={key:0},ep={key:1},tp={class:"cl-tr-no-data"},np={colspan:"100"},ip={key:2},op={class:"cl-tr-no-data"},sp={colspan:"100"},rp={key:3};function lp(e,i,a,r,c,u){const d=n.resolveComponent("cl-spinner"),v=n.resolveComponent("cl-field-check"),$=n.resolveComponent("cl-modal-ok");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{id:e.id,class:"cl-table-scroll"},[n.createElementVNode("table",{id:e.$uid,class:n.normalizeClass(`cl-table-data ${e.clazz}`)},[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"header")])]),e.rows>=1?(n.openBlock(),n.createElementBlock("tbody",Zf,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])):e.rows===0?(n.openBlock(),n.createElementBlock("tbody",ep,[n.createElementVNode("tr",tp,[n.createElementVNode("td",np,n.toDisplayString(e.noDataText),1)])])):(n.openBlock(),n.createElementBlock("tbody",ip,[n.createElementVNode("tr",op,[n.createElementVNode("td",sp,[n.createVNode(d)])])])),e.$slots.footer?(n.openBlock(),n.createElementBlock("tfoot",rp,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"footer")])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"tfoot")],10,Jf)],8,Qf),e.hideCols?(n.openBlock(),n.createBlock($,{key:0,id:e.$uid+"-settings",title:"Configure table"},{default:n.withCtx(()=>[i[0]||(i[0]=n.createElementVNode("p",null,"Which of the following columns would you like to see?",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hideCols,(B,x)=>(n.openBlock(),n.createBlock(v,{key:B,value:e.show[x],modelValue:e.show[x],"onUpdate:modelValue":M=>e.show[x]=M},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(B),1)]),_:2},1032,["value","modelValue","onUpdate:modelValue"]))),128))]),_:1},8,["id"])):n.createCommentVNode("",!0)],64)}const Kt=w(Gf,[["render",lp]]);Kt.install=e=>{e.component(Kt.name??"ClNoName",Kt)};const ap=n.defineComponent({name:"ClTableCel",props:{condensed:{type:Boolean,default:!1}}});function cp(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(e.condensed?"cl-font-condensed":"")},[n.renderSlot(e.$slots,"default")],2)}const Gt=w(ap,[["render",cp]]);Gt.install=e=>{e.component(Gt.name??"ClNoName",Gt)};const dp=n.defineComponent({name:"ClTableCelActions",props:{content:{type:String,default:""}}}),up={class:"cl-td-actions"};function fp(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",up,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const Qt=w(dp,[["render",fp]]);Qt.install=e=>{e.component(Qt.name??"ClNoName",Qt)};const pp=n.defineComponent({name:"ClTableCelAudit",directives:{tooltip:mn},props:{value:{type:String,default:"???"}}}),hp={class:"cl-td-audit"},mp={class:"fas fa-info-circle"};function gp(e,i,a,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("td",hp,[n.withDirectives(n.createElementVNode("i",mp,null,512),[[d,e.value,"left"]])])}const Jt=w(pp,[["render",gp]]);Jt.install=e=>{e.component(Jt.name??"ClNoName",Jt)};const vp=n.defineComponent({name:"ClTableCelBoolean",props:{value:{type:Boolean,default:!1}}}),bp={class:"cl-td-boolean"};function yp(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",bp,[n.createElementVNode("i",{class:n.normalizeClass(`fas ${e.value?"fa-check":"fa-minus"}`)},null,2)])}const Zt=w(vp,[["render",yp]]);Zt.install=e=>{e.component(Zt.name??"ClNoName",Zt)};const _p=n.defineComponent({name:"ClTableCelCheckbox",props:{id:{type:String,default:void 0},disabled:{type:Boolean,default:!1},value:{type:Boolean,default:!1}},emits:["update:modelValue","changed"],data(){return{modelValue:this.value}},watch:{value:function(e){this.modelValue=e}},methods:{emitAll:function(){this.$emit("update:modelValue",this.modelValue),this.$emit("changed",this.modelValue)}}}),Cp={class:"cl-td-checkbox"},kp={class:"form-check text-center"},$p=["id","disabled"];function Ep(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",Cp,[n.createElementVNode("div",kp,[n.withDirectives(n.createElementVNode("input",{id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,onChange:i[1]||(i[1]=d=>e.emitAll())},null,40,$p),[[n.vModelCheckbox,e.modelValue]])])])}const en=w(_p,[["render",Ep]]);en.install=e=>{e.component(en.name??"ClNoName",en)};const wp=n.defineComponent({name:"ClTableCelCode"}),Sp={class:"cl-td-code"};function Np(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",Sp,[n.renderSlot(e.$slots,"default")])}const tn=w(wp,[["render",Np]]);tn.install=e=>{e.component(tn.name??"ClNoName",tn)};const Tp=n.defineComponent({name:"ClTableCelCurrency",props:{amount:{type:Number,default:0},currency:{type:String,default:"EUR"}}}),Ap={class:"cl-td-currency"};function Op(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",Ap,n.toDisplayString(e.currency)+" "+n.toDisplayString(e.amount),1)}const nn=w(Tp,[["render",Op]]);nn.install=e=>{e.component(nn.name??"ClNoName",nn)};const Bp=n.defineComponent({name:"ClTableCelDate",props:{value:{type:String,default:void 0}},computed:{content:function(){if(this.value){const e=new Date(this.value),i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),a=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),r=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),c=new Intl.DateTimeFormat("en",{hour:"2-digit",hour12:!1}).format(e),u=new Intl.DateTimeFormat("en",{minute:"2-digit"}).format(e);return`${i}-${a}-${r} ${c}:${u}`}return"-"}}}),Dp={class:"cl-td-date"};function Vp(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",Dp,n.toDisplayString(e.content),1)}const on=w(Bp,[["render",Vp]]);on.install=e=>{e.component(on.name??"ClNoName",on)};const Mp=n.defineComponent({name:"ClTableCelId",directives:{tooltip:mn,clipboard:eo},props:{value:{type:String,default:"ABCDEF01"},full:{type:String,default:void 0}},computed:{tooltip:function(){return(this.full??this.value)+"<br><small>click-to-copy!</small>"}}}),zp={class:"cl-td-id"};function Lp(e,i,a,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return n.withDirectives((n.openBlock(),n.createElementBlock("td",zp,[n.createTextVNode(n.toDisplayString(e.value),1)])),[[d,e.tooltip,"right"],[v,e.full??e.value]])}const sn=w(Mp,[["render",Lp]]);sn.install=e=>{e.component(sn.name??"ClNoName",sn)};const Ip=n.defineComponent({name:"ClTableCelLinks",props:{content:{type:String,default:""}}}),Fp={class:"cl-td-links"};function Pp(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",Fp,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const rn=w(Ip,[["render",Pp]]);rn.install=e=>{e.component(rn.name??"ClNoName",rn)};const Wp=n.defineComponent({name:"ClTableCelUuid",props:{value:{type:String,default:"00000000-0000-0000-0000-000000000000"}}});function jp(e,i,a,r,c,u){const d=n.resolveComponent("cl-table-cel-id");return n.openBlock(),n.createBlock(d,{value:e.value.substring(0,8),full:e.value},null,8,["value","full"])}const ln=w(Wp,[["render",jp]]);ln.install=e=>{e.component(ln.name??"ClNoName",ln)};const Rp=n.defineComponent({name:"ClTableFootChecked",props:{checked:{type:Object,default:()=>({})}},computed:{any:function(){for(const e in this.checked)if(this.checked[e])return!0;return!1}}}),xp={key:0,class:"cl-table-foot-checked"},qp={class:"cl-td-links",colspan:"100"};function Hp(e,i,a,r,c,u){return e.any?(n.openBlock(),n.createElementBlock("tfoot",xp,[n.createElementVNode("tr",null,[n.createElementVNode("td",qp,[i[0]||(i[0]=n.createElementVNode("small",null,[n.createElementVNode("i",{class:"fas fa-share fa-rotate-270 cl-faded"})],-1)),i[1]||(i[1]=n.createTextVNode("   ",-1)),n.renderSlot(e.$slots,"default")])])])):n.createCommentVNode("",!0)}const an=w(Rp,[["render",Hp]]);an.install=e=>{e.component(an.name??"ClNoName",an)};const Up=n.defineComponent({name:"ClTableHead",directives:{tooltip:mn},props:{resize:{type:Boolean,default:!1},sort:{type:String,default:"OFF"},width:{type:String,default:""},checkbox:{type:Boolean,default:!1},initial:{type:String,default:"NONE"},sorter:{type:Object,default:null},col:{type:Number,default:0},settings:{type:Boolean,default:!1}},emits:["sort","all","none"],data(){return{checkState:this.initial,modelValue:this.initial==="ALL",mySorter:this.sorter}},watch:{initial:function(e,i){e!==i&&(this.checkState=e,this.modelValue=this.checkState==="ALL")}},mounted(){this.$nextTick(()=>{this.mySorter&&this.mySorter.col===this.col&&this.mySorter.sort()})},methods:{check(){switch(this.checkState){case"NONE":case"SOME":this.checkState="ALL",this.$emit("all");break;case"ALL":this.checkState="NONE",this.$emit("none");break}},openSettings(e){let i=e?.target;for(;i;){if(i.tagName==="TABLE"){Qi(`${i.id}-settings`);return}i=i.parentElement}},sortCol(){let e="NONE";switch(this.mySorter.col===this.col&&(e=this.mySorter?this.mySorter.order.toUpperCase():this.sort.toUpperCase()),e){case"OFF":break;case"ASC":this.mySorter?this.mySorter.set(this.col,"DESC"):this.$emit("sort","DESC");break;case"DESC":default:this.mySorter?this.mySorter.set(this.col,"ASC"):this.$emit("sort","ASC")}}}}),Xp=["id","width"],Yp={class:"fas fa-cog cl-faded"},Kp={key:0,class:"cl-resizer"},Gp={key:1,class:"form-check text-center"},Qp=["indeterminate"],Jp={key:2,class:"cl-resizer"};function Zp(e,i,a,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("th",{id:e.$uid,class:n.normalizeClass(["cl-table-head",{"cl-table-head-sort":e.sort!==null,"cl-table-head-checkbox":e.checkbox,"cl-th-links":e.settings}]),width:e.settings?"1%":e.width},[e.settings?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("button",{type:"button",class:"cl-btn-ghost",onClick:i[0]||(i[0]=(...v)=>e.openSettings&&e.openSettings(...v))},[n.withDirectives(n.createElementVNode("i",Yp,null,512),[[d,"Configure table","left"]])]),e.resize?(n.openBlock(),n.createElementBlock("div",Kp)):n.createCommentVNode("",!0)],64)):e.checkbox?(n.openBlock(),n.createElementBlock("div",Gp,[n.withDirectives(n.createElementVNode("input",{ref:"checkbox","onUpdate:modelValue":i[1]||(i[1]=v=>e.modelValue=v),class:"form-check-input",type:"checkbox",indeterminate:e.checkState==="SOME",onChange:i[2]||(i[2]=v=>e.check())},null,40,Qp),[[n.vModelCheckbox,e.modelValue]])])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[e.sort?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"cl-btn-ghost",onClick:i[3]||(i[3]=(...v)=>e.sortCol&&e.sortCol(...v))},[n.renderSlot(e.$slots,"default"),e.sorter?.col===e.col?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sorter.order.toUpperCase()==="ASC","fa-sort-down":e.sorter.order.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sorter.order.toUpperCase())}])},null,2)):e.sort!==null?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sort.toUpperCase()==="ASC","fa-sort-down":e.sort.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sort.toUpperCase())}])},null,2)):n.createCommentVNode("",!0)])):n.renderSlot(e.$slots,"default",{key:1}),e.resize?(n.openBlock(),n.createElementBlock("div",Jp)):n.createCommentVNode("",!0)],64))],10,Xp)}const cn=w(Up,[["render",Zp]]);cn.install=e=>{e.component(cn.name??"ClNoName",cn)};const eh=n.defineComponent({name:"ClTableRow",props:{id:{type:String,default:null},class:{type:String,default:null},highlight:{type:Boolean,default:!1}},computed:{clazz:function(){return this.highlight?this.class+" cl-highlight":this.class}}}),th=["id"];function nh(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("tr",{id:e.id,class:n.normalizeClass(e.clazz)},[n.renderSlot(e.$slots,"default")],10,th)}const dn=w(eh,[["render",nh]]);dn.install=e=>{e.component(dn.name??"ClNoName",dn)};const ih=n.defineComponent({name:"ClTabs",props:{index:{type:Number,default:0}},emits:["tab"],data(){return{tabs:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}},methods:{slotExists(e){return this.$slots[`tabs-${e}-label`]!==void 0},emit(e){this.$emit("tab",e)}}}),oh={class:"cl-tabs"},sh=["id","name","checked","onChange"],rh=["for"];function lh(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",oh,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("input",{key:0,id:`tabs-${e.$uid}-${d}`,class:n.normalizeClass(`cl-tab-${d}`),type:"radio",name:`tabs-${e.$uid}`,checked:e.index===d-1,onChange:v=>e.emit(d)},null,42,sh)):n.createCommentVNode("",!0)],64))),128)),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("li",{key:0,class:n.normalizeClass(`cl-tab-${d}`)},[n.createElementVNode("label",{for:`tabs-${e.$uid}-${d}`},[n.renderSlot(e.$slots,`tabs-${d}-label`)],8,rh)],2)):n.createCommentVNode("",!0)],64))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(`cl-tab-${d} cl-tab-content`)},[n.renderSlot(e.$slots,`tabs-${d}-content`)],2)):n.createCommentVNode("",!0)],64))),128))])}const un=w(ih,[["render",lh]]);un.install=e=>{e.component(un.name??"ClNoName",un)};const ah=n.defineComponent({name:"ClToggle",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},modelValue:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},title:{type:String,default:""},iconOn:{type:String,default:"fas fa-check"},iconOff:{type:String,default:"fas fa-times"}},emits:["update:modelValue"],data(){return{clazz:"cl-badge "+(this.class??"")}},methods:{toggle:function(){if(this.enabled){const e=document.getElementById(this.$uid);e&&(this.$emit("update:modelValue",e.checked),e.focus(),e.blur(),e.focus())}}}}),ch=["id","checked","disabled"],dh=["id","for","disabled"];function uh(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:e.$uid,type:"checkbox",class:n.normalizeClass("cl-toggle-checkbox"),checked:e.modelValue,disabled:e.enabled?null:!0,onChange:i[0]||(i[0]=d=>e.toggle())},null,40,ch),n.createElementVNode("label",{id:e.id,class:n.normalizeClass(e.clazz),for:e.$uid,disabled:e.enabled?null:!0},[n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOn} fa-fw`)},null,2),n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOff} fa-fw`)},null,2),n.createTextVNode(n.toDisplayString(e.title),1)],10,dh)],64)}const fn=w(ah,[["render",uh]]);fn.install=e=>{e.component(fn.name??"ClNoName",fn)};const fh={install:e=>{let i=0;e.mixin({beforeCreate:function(){let r;const c="uid-"+i++;Object.defineProperties(this,(r={},r.$uid={get:function(){return c}},r))}})}};function ph(){return{ClAlert:_t,ClBackCancelOk:Ct,ClCookieBanner:kt,ClCopy:$t,ClCreditcardNumber:Et,ClDropzone:wt,ClField:St,ClFieldCheck:Nt,ClFieldGroup:Tt,ClHashtag:At,ClIconotron:Ot,ClInfo:Bt,ClLinkExternal:Dt,ClLorem:Vt,ClMailto:Mt,ClModal:zt,ClModalConfirm:Lt,ClModalOk:It,ClNavSide:Ft,ClNavTop:Pt,ClOrg:Wt,ClPage:jt,ClPagination:Rt,ClPlan:xt,ClRole:qt,ClSectionForm:Ht,ClSectionHeadline:Ut,ClSectionMain:Qe,ClSectionMainSide:Xt,ClSpinner:Yt,ClTable:Kt,ClTableCel:Gt,ClTableCelActions:Qt,ClTableCelAudit:Jt,ClTableCelBoolean:Zt,ClTableCelCheckbox:en,ClTableCelCode:tn,ClTableCelCurrency:nn,ClTableCelDate:on,ClTableCelId:sn,ClTableCelLinks:rn,ClTableCelUuid:ln,ClTableFootChecked:an,ClTableHead:cn,ClTableRow:dn,ClTabs:un,ClToggle:fn}}function hh(){return[fh]}function to(e,i){const a=JSON.parse(JSON.stringify(e));for(const r in i)typeof i[r]=="object"&&!Array.isArray(i[r])?a[r]=to(e[r]??{},i[r]):a[r]=i[r];return a}function mh(e,i){return{store:to(e,i)}}const _r="✺";let Qn={};function gh(e,i="",a=!1){const r=Qn[i]??Fe(Cr(i));return Object.keys(Qn).length>100&&(Qn={}),Qn[i]=r,Ge(a?e.toLowerCase():e,r,a)}function Ge(e,i,a){if(typeof i=="string"){const r=i.replaceAll(_r," ");return r[0]==="-"?!Ge(e,r.substring(1),a):a?e.includes(r):e.toLowerCase().includes(r.toLowerCase())}else switch(i[0]){case"&":return Ge(e,i[1])&&Ge(e,i[2]);case"|":return Ge(e,i[1])||Ge(e,i[2]);default:return!1}}function Cr(e){const i=[];let a=!1;for(let d=0;d<e.length;d++)a?e[d]===a?a=!1:i.push([" "].includes(e[d])?_r:e[d]):["'",'"'].includes(e[d])?a=e[d]:i.push(e[d]);const r=i.join("").replace(/\s+/g," ").trim();if(r.length<=0)return"";const c=r.split(" ");if(c.length<=0)return"";const u=[];["NOT","-"].includes(c[0])||u.push(c.shift());for(let d=0;d<c.length;d++)switch(c[d]){case"AND":case"&":case"&&":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("&"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("&"),u.push(c[d])}break;case"OR":case"|":case"||":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("|"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("|"),u.push(c[d])}break;case"NOT":case"-":u.push("-"),u.push(c[++d]);break;default:u.push("&"),u.push(c[d])}return` ${u.join(" ")} `.replace(/ - /g," -").trim()}function Fe(e){const i=e.indexOf(" | ");if(i>=0)return["|",Fe(e.substring(0,i)),Fe(e.substring(i+3))];const a=e.indexOf(" & ");if(a>=0)return["&",Fe(e.substring(0,a)),Fe(e.substring(a+3))];const r=e.indexOf(" ");return r>=0?["&",Fe(e.substring(0,r)),Fe(e.substring(r+1))]:e}const Je={DEV:"DEV",TEST:"TEST",PROD:"PROD"},kr={id:"CP",subtitle:"Access the Content Platform, manage, encode and watermark assets",title:"Content Platform",urlManage:function(e,i){return e===Je.PROD?`https://platform.content.castlabs.com/#/o/${i??""}`:`https://platform.content-stag.castlabs.com/#/o/${i??""}`},sidenav:!1},$r={id:"CS",subtitle:"Manage organizations, plans, downloads",title:"Castlabs hub",urlManage:function(e,i){return no(e,`https://account.test.cs.castlabs.com/o/${i??""}`,`https://account.castlabs.com/o/${i??""}`)},sidenav:!0},Er={id:"DT",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday",urlManage:function(e,i){return no(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.drmtoday.com/dashboard/${i?`${i}/`:""}index`)},sidenav:!0},wr={id:"DTO",subtitle:"",title:"DRMtoday Onboard (staging)",urlManage:function(e,i){return`https://onboard.castlabs.com/o/${i??""}/devices`},sidenav:!1},Sr={id:"DTS",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday (staging)",urlManage:function(e,i){return no(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.staging.drmtoday.com/dashboard/${i?`${i}/`:""}index`)},sidenav:!1},Nr={id:"PP",subtitle:"Cross-platform video players (via Castlabs hub)",title:"PRESTOplay",urlManage:function(e,i){return e===Je.PROD?`https://account.castlabs.com/o/${i}/prestoplay`:`https://account.test.cs.castlabs.com/o/${i}/prestoplay`},sidenav:!0},Tr={id:"VTK",subtitle:"Cloud encoding, packaging, watermarking",title:"Video Toolkit",urlManage:function(e){return e===Je.PROD?"https://vtk.castlabs.com/":"https://vtks.castlabs.com/"},sidenav:!0},Ar={id:"WM",subtitle:"Video & image forensic watermarking",title:"STARDUSTmark",urlManage:function(e,i){return e===Je.PROD?`https://watermark.castlabs.com/#/o/${i}`:`https://demo-stag.fwm.castlabs.com/#/o/${i}`},sidenav:!0};function no(e=Je.PROD,i,a){return[Je.DEV,Je.TEST].includes(e)?i:a}function vh(){return[$r,kr,Er,Sr,wr,Nr,Ar,Tr]}const bh={CP:kr,CS:$r,DT:Er,DTS:Sr,DTO:wr,PP:Nr,WM:Ar,VTK:Tr},Ui={ClAlert:_t,ClBackCancelOk:Ct,ClCookieBanner:kt,ClCopy:$t,ClCreditcardNumber:Et,ClDropzone:wt,ClField:St,ClFieldCheck:Nt,ClFieldGroup:Tt,ClHashtag:At,ClIconotron:Ot,ClInfo:Bt,ClLinkExternal:Dt,ClLorem:Vt,ClMailto:Mt,ClModal:zt,ClModalConfirm:Lt,ClModalOk:It,ClNavSide:Ft,ClNavTop:Pt,ClOrg:Wt,ClPage:jt,ClPagination:Rt,ClPlan:xt,ClRole:qt,ClSectionForm:Ht,ClSectionHeadline:Ut,ClSectionMain:Qe,ClSectionMainSide:Xt,ClSpinner:Yt,ClTable:Kt,ClTableCel:Gt,ClTableCelActions:Qt,ClTableCelAudit:Jt,ClTableCelBoolean:Zt,ClTableCelCheckbox:en,ClTableCelCode:tn,ClTableCelCurrency:nn,ClTableCelDate:on,ClTableCelId:sn,ClTableCelLinks:rn,ClTableCelUuid:ln,ClTableFootChecked:an,ClTableHead:cn,ClTableRow:dn,ClTabs:un,ClToggle:fn,ClMockRouterLink:Tn,ClUI:Dc};function yh(e){for(const i in Ui)e.component(Ui[i].name,Ui[i])}exports.ClAlert=_t;exports.ClBackCancelOk=Ct;exports.ClCookieBanner=kt;exports.ClCopy=$t;exports.ClCreditcardNumber=Et;exports.ClDropzone=wt;exports.ClField=St;exports.ClFieldCheck=Nt;exports.ClFieldGroup=Tt;exports.ClHashtag=At;exports.ClIconotron=Ot;exports.ClInfo=Bt;exports.ClLinkExternal=Dt;exports.ClLorem=Vt;exports.ClMailto=Mt;exports.ClMockRouterLink=Tn;exports.ClModal=zt;exports.ClModalConfirm=Lt;exports.ClModalOk=It;exports.ClNavSide=Ft;exports.ClNavTop=Pt;exports.ClOrg=Wt;exports.ClPage=jt;exports.ClPagination=Rt;exports.ClPlan=xt;exports.ClRole=qt;exports.ClSectionForm=Ht;exports.ClSectionHeadline=Ut;exports.ClSectionMain=Qe;exports.ClSectionMainSide=Xt;exports.ClSpinner=Yt;exports.ClTable=Kt;exports.ClTableCel=Gt;exports.ClTableCelActions=Qt;exports.ClTableCelAudit=Jt;exports.ClTableCelBoolean=Zt;exports.ClTableCelCheckbox=en;exports.ClTableCelCode=tn;exports.ClTableCelCurrency=nn;exports.ClTableCelDate=on;exports.ClTableCelId=sn;exports.ClTableCelLinks=rn;exports.ClTableCelUuid=ln;exports.ClTableFootChecked=an;exports.ClTableHead=cn;exports.ClTableRow=dn;exports.ClTabs=un;exports.ClToggle=fn;exports.NAV=bh;exports._getProperty=yt;exports._sanitize=Cr;exports._tokenize=Fe;exports.castlabsUi=yh;exports.clCopyData=ed;exports.clDebounce=Qc;exports.clFocus=Wc;exports.clFormAutofocus=jc;exports.clFormFieldFocusFirstInvalid=Zi;exports.clFormFieldReset=ur;exports.clFormIsValid=Ji;exports.clFormIsValidAsync=fr;exports.clFormReset=dr;exports.clFormatAmount=Uc;exports.clFormatCardNumber=mr;exports.clFormatDate=pr;exports.clFormatDateTimeUTC=xc;exports.clFormatDuration=qc;exports.clFormatFilesize=Rc;exports.clFormatNumber=oi;exports.clFormatPeriod=Hc;exports.clFormatRange=Xc;exports.clFormatTimeUTC=hr;exports.clGetAllComponents=ph;exports.clGetAllPlugins=hh;exports.clGetServices=vh;exports.clMatch=gh;exports.clModalHide=pn;exports.clModalIsShown=Pc;exports.clModalShow=Qi;exports.clModalValue=ti;exports.clPaginate=cr;exports.clPatch=to;exports.clPatchStore=mh;exports.clRandomList=Zc;exports.clRandomString=Jc;exports.clRefClField=od;exports.clRefClFieldGroup=sd;exports.clRefHTMLElement=rd;exports.clReload=nd;exports.clReloadStore=td;exports.clScrollToId=ar;exports.clSleep=id;exports.clSort=gr;exports.clSynchronizedSubmit=Yc;exports.clSynchronizedSubmitAsync=Kc;exports.clTableSorter=vr;exports.clTableSorterObjects=Gc;exports.clVClipboard=eo;exports.clVTooltip=mn;
25
+ justo donec enim diam.`,fu=n.defineComponent({name:"ClLorem",props:{words:{type:Number,default:10},paragraphs:{type:Number,default:0}},methods:{lorem(e){return((e%2?uu:du).trim().replace(/\s+/g," ").split(" ").splice(0,this.words).join(" ")+".").replace(/\.+/g,".")}}});function pu(e,i,a,r,c,u){return e.paragraphs<=0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.lorem(0)),1)],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(parseInt(e.paragraphs),d=>(n.openBlock(),n.createElementBlock("p",{key:d},n.toDisplayString(e.lorem(d)),1))),128))}const Vt=w(fu,[["render",pu]]);Vt.install=e=>{e.component(Vt.name??"ClNoName",Vt)};const hu=n.defineComponent({name:"ClMailto",props:{to:{type:String,default:"office@castlabs.com"}}}),mu=["href"];function gu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:"cl-a-email",href:`mailto:${e.to}`},n.toDisplayString(e.to),9,mu)}const Mt=w(hu,[["render",gu]]);Mt.install=e=>{e.component(Mt.name??"ClNoName",Mt)};const vu=n.defineComponent({props:{to:{type:void 0,default:()=>({})},class:{type:String,default:""}},computed:{classes:function(){return this.class}},methods:{push:function(){this.$router.push(this.to)}}}),bu=["to","name","aid","bid","cid","did","eid","fid","gid","hid","iid","jid","kid","lid","mid","nid","oid","pid","qid","rid","sid","tid","uid","vid","wid","xid","yid","zid"];function yu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass(e.classes),to:JSON.stringify(e.to),name:e.to.name,aid:e.to.params?.aid,bid:e.to.params?.bid,cid:e.to.params?.cid,did:e.to.params?.did,eid:e.to.params?.eid,fid:e.to.params?.fid,gid:e.to.params?.gid,hid:e.to.params?.hid,iid:e.to.params?.iid,jid:e.to.params?.jid,kid:e.to.params?.kid,lid:e.to.params?.lid,mid:e.to.params?.mid,nid:e.to.params?.nid,oid:e.to.params?.oid,pid:e.to.params?.pid,qid:e.to.params?.qid,rid:e.to.params?.rid,sid:e.to.params?.sid,tid:e.to.params?.tid,uid:e.to.params?.uid,vid:e.to.params?.vid,wid:e.to.params?.wid,xid:e.to.params?.xid,yid:e.to.params?.yid,zid:e.to.params?.zid,onClick:i[0]||(i[0]=d=>e.push())},[n.renderSlot(e.$slots,"default")],10,bu)}const Tn=w(vu,[["render",yu]]);Tn.install=e=>{e.component(Tn.name??"ClNoName",Tn)};const _u=n.defineComponent({name:"ClModal",inheritAttrs:!1,props:{id:{type:String,default:null},form:{type:Boolean,default:!1},class:{type:String,default:null},helpUrl:{type:String,default:null},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},computed:{clazz:function(){return this.class}},mounted(){const e=document.getElementById(this.id||""),i=this;e&&(e.addEventListener("hidden.bs.modal",function(){i.onClose&&i.onClose()}),e.addEventListener("show.bs.modal",function(){i.onOpen&&i.onOpen()}))}}),Cu=["id"],ku={class:"modal-dialog"},$u={class:"modal-content"},Eu={class:"modal-header"},wu=["href"],Su=["id"],Nu={key:1,class:"modal-body"},Tu={class:"modal-footer"},Au={class:"modal-footer-left cl-spacing-box cl-spacing-none"},Ou={class:"modal-footer-center cl-spacing-box cl-spacing-none"},Bu={class:"modal-footer-right cl-spacing-box cl-spacing-none"};function Du(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",{id:e.id,class:n.normalizeClass(`modal ${e.clazz}`),tabindex:"-1","data-bs-backdrop":"static"},[n.createElementVNode("div",ku,[n.createElementVNode("div",$u,[n.createElementVNode("div",Eu,[n.renderSlot(e.$slots,"title",{},()=>[i[1]||(i[1]=n.createTextVNode("Information",-1))]),e.helpUrl?(n.openBlock(),n.createElementBlock("a",{key:0,class:"modal-help",href:e.helpUrl,target:"_blank",title:"Show help in new window."},[...i[2]||(i[2]=[n.createElementVNode("i",{class:"far fa-question-circle"},null,-1)])],8,wu)):n.createCommentVNode("",!0)]),e.form?(n.openBlock(),n.createElementBlock("form",{key:0,id:`${e.id}-form`,class:"modal-body cl-form container",novalidate:"",onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")],40,Su)):(n.openBlock(),n.createElementBlock("div",Nu,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])),n.createElementVNode("div",Tu,[n.createElementVNode("span",Au,[n.renderSlot(e.$slots,"footer-left")]),n.createElementVNode("span",Ou,[n.renderSlot(e.$slots,"footer")]),n.createElementVNode("span",Bu,[n.renderSlot(e.$slots,"footer-right")])])])])],10,Cu)}const zt=w(_u,[["render",Du]]);zt.install=e=>{e.component(zt.name??"ClNoName",zt)};const Vu=n.defineComponent({name:"ClModalConfirm",inheritAttrs:!1,props:{id:{type:String,default:"modal-confirm"},class:{type:String,default:void 0},text:{type:String,default:"confirm"},title:{type:String,default:"Are you sure?"},ok:{type:String,default:void 0},button:{type:String,default:"OK"},spinner:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},emits:["ok"],methods:{reset:function(){ur(this.$refs.text,""),dr(`${this.id}-form`)},submit:function(){Ji(`${this.id}-form`)&&this.$emit("ok")}}});function Mu(e,i,a,r,c,u){const d=n.resolveComponent("cl-field"),v=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(v,{id:e.id,class:n.normalizeClass(e.clazz),form:"","on-open":e.reset},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createElementVNode("p",null,[i[2]||(i[2]=n.createTextVNode(" To confirm your intention, please type ",-1)),n.createElementVNode("code",null,n.toDisplayString(e.text),1),i[3]||(i[3]=n.createTextVNode(" into this text field: ",-1))]),n.createVNode(d,{ref:"text",type:"text",required:"",pattern:`^${e.text}$`,class:"text-center cl-field-monospace it-confirm",autofocus:"",onKeyup:i[0]||(i[0]=n.withKeys($=>e.submit(),["enter"]))},null,8,["pattern"])]),"footer-left":n.withCtx(()=>[...i[4]||(i[4]=[n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary it-cancel","data-bs-dismiss":"modal"},[n.createElementVNode("span",null,"Cancel")],-1)])]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),onClick:i[1]||(i[1]=$=>e.submit())},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1)],2)]),_:3},8,["id","class","on-open"])}const Lt=w(Vu,[["render",Mu]]);Lt.install=e=>{e.component(Lt.name??"ClNoName",Lt)};const zu=n.defineComponent({name:"ClModalOk",inheritAttrs:!1,props:{id:{type:String,default:"modal-ok"},class:{type:String,default:void 0},title:{type:String,default:"Information"},form:{type:Boolean,default:!1},body:{type:String,default:void 0},ok:{type:String,default:void 0},button:{type:String,default:"OK"},cancel:{type:String,default:null},spinner:{type:Boolean,default:!1},onClose:{type:Function,default:null},onOpen:{type:Function,default:null}},emits:["ok","cancel"],data(){return{emitted:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},methods:{buttonOk:function(){this.emitted=!0,pn(),this.$emit("ok",ti(this.id))},buttonCancel:function(){this.emitted=!0,pn(),this.$emit("cancel",ti(this.id))},opened:function(){this.emitted=!1,this.onOpen&&this.onOpen()},closed:function(){this.emitted||this.$emit("cancel",ti(this.id)),this.onClose&&this.onClose()}}});function Lu(e,i,a,r,c,u){const d=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(d,{id:e.id,class:n.normalizeClass(e.clazz),form:e.form,"on-open":e.opened,"on-close":e.closed},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"default"),n.createTextVNode(n.toDisplayString(e.body),1)]),"footer-left":n.withCtx(()=>[e.cancel?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn cl-color-secondary it-cancel",onClick:i[0]||(i[0]=(...v)=>e.buttonCancel&&e.buttonCancel(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.cancel),1)])):n.createCommentVNode("",!0)]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-color-primary it-ok",{"cl-btn-spinner":e.spinner}]),onClick:i[1]||(i[1]=(...v)=>e.buttonOk&&e.buttonOk(...v))},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1)],2)]),_:3},8,["id","class","form","on-open","on-close"])}const It=w(zu,[["render",Lu]]);It.install=e=>{e.component(It.name??"ClNoName",It)};function br(){const e=document.getElementById("cl-nav-side");if(e)if(e.checked){e.parentNode.classList.add("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","true")}catch(i){i.ignore?.()}}else{e.parentNode.classList.remove("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}}function Iu(){Zs(Fu()),document.querySelectorAll(".cl-nav-drawer a").forEach(e=>{e.addEventListener("click",()=>{if(yr()){Zs(!1);try{localStorage.setItem("sidenavOpen","false")}catch(i){i.ignore?.()}}})}),document.getElementById("cl-nav-side")?.addEventListener("change",function(){br()}),document.querySelectorAll(".cl-nav-drawer details[id]").forEach(e=>{e.addEventListener("toggle",i=>{try{localStorage.setItem(`cl-nav-${e.id}`,i.target.hasAttribute("open"))}catch(a){a.ignore?.()}});try{localStorage.getItem(`cl-nav-${e.id}`)==="true"&&(e.open=!0)}catch(i){i.ignore?.()}}),setTimeout(function(){document.querySelectorAll("body").forEach(e=>{e.classList.add("cl-animate")})},1e3)}function Zs(e){const i=document.getElementById("cl-nav-side");i&&(i.checked=e)}function yr(){return Math.max(document?.documentElement?.clientWidth||0,window?.innerWidth||0)<1200}function Fu(){const e=localStorage.getItem("sidenavOpen");return e==null?!yr():JSON.parse(e)}const Pu=n.defineComponent({name:"ClNavSide",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){this.setup()},methods:{toggle:function(){br()},setup:function(){this.$nextTick(()=>{Iu()})}}}),Wu={class:"cl-nav-side"},ju={class:"cl-nav-drawer"},Ru={"data-simplebar":""};function xu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:"cl-nav-side",type:"checkbox",class:n.normalizeClass(`cl-nav-checkbox${e.clazz}`),onChange:i[0]||(i[0]=(...d)=>e.toggle&&e.toggle(...d)),tabindex:"-1"},null,34),n.createElementVNode("nav",Wu,[i[1]||(i[1]=n.createElementVNode("label",{class:"cl-nav-backdrop",for:"cl-nav-side"},null,-1)),n.createElementVNode("div",ju,[n.createElementVNode("div",Ru,[n.renderSlot(e.$slots,"default")])])])],64)}const Ft=w(Pu,[["render",xu]]);Ft.install=e=>{e.component(Ft.name??"ClNoName",Ft)};const qu=n.defineComponent({name:"ClNavTop",inheritAttrs:!1,props:{class:{type:String,default:void 0}},computed:{isFluid:function(){return this.$route.meta?.fluid},clazz:function(){return this.class?` ${this.class}`:""},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),Hu={class:"row"},Uu={class:"col-12 cl-grid-flex-centered"};function Xu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("nav",{id:"cl-nav-top",class:n.normalizeClass(`cl-nav-top${e.clazz}`)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Hu,[n.createElementVNode("div",Uu,[i[0]||(i[0]=n.createElementVNode("label",{class:"cl-nav-side-burger",for:"cl-nav-side"},[n.createElementVNode("i",{class:"fas fa-bars"})],-1)),n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"title")])])],2)],2)}const Pt=w(qu,[["render",Xu]]);Pt.install=e=>{e.component(Pt.name??"ClNoName",Pt)};const Yu=n.defineComponent({name:"ClOrg",props:{name:{type:String,default:"No organization"}}}),Ku={class:"cl-org"};function Gu(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("span",Ku,[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")])}const Wt=w(Yu,[["render",Gu]]);Wt.install=e=>{e.component(Wt.name??"ClNoName",Wt)};const Qu=n.defineComponent({name:"ClPage",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},title:{type:String,default:void 0},loading:{type:Boolean,default:!1},notFound:{type:Boolean,default:!1}},computed:{clazz:function(){return this.class?` ${this.class}`:""}},mounted(){const e=this.$route?.query?.goto;e&&ar(e)},methods:{back(){history.go(-1)}}}),Ju={key:0,class:"cl-page-spinner"};function Zu(e,i,a,r,c,u){const d=n.resolveComponent("cl-section-headline"),v=n.resolveComponent("cl-spinner"),$=n.resolveComponent("cl-section-main");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(d,{id:e.id??e.$route.name,title:e.title??e.$route.meta?.title??"Castlabs",class:n.normalizeClass(e.clazz),fluid:e.$route.meta?.fluid},null,8,["id","title","class","fluid"]),e.loading?(n.openBlock(),n.createElementBlock("div",Ju,[n.createVNode(v)])):e.notFound?n.renderSlot(e.$slots,"notFound",{key:1},()=>[n.createVNode($,{fluid:e.$route.meta?.fluid},{default:n.withCtx(()=>[i[2]||(i[2]=n.createElementVNode("p",{class:"cl-p-large"},"Hmm, it seems we can’t find what you’re looking for.",-1)),i[3]||(i[3]=n.createElementVNode("p",{class:"alert cl-alert-info"},"This resource may have been moved or it might have expired.",-1)),n.createElementVNode("button",{type:"button",class:"btn cl-color-secondary cl-spacing-large",onClick:i[0]||(i[0]=(...B)=>e.back&&e.back(...B))},[...i[1]||(i[1]=[n.createElementVNode("span",null,"Back",-1)])])]),_:1},8,["fluid"])]):n.renderSlot(e.$slots,"default",{key:2})],64)}const jt=w(Qu,[["render",Zu]]);jt.install=e=>{e.component(jt.name??"ClNoName",jt)};function ef(e,i,a,r){const c=[],u=Math.ceil(e/i);a<1&&(a=1),a>u&&(a=u);for(let d=1;d<=u;d++)(d>=a-r&&d<=a+r||d===1||d===u)&&c.push(d);return{previous:a>1?a-1:null,next:a<u?a+1:null,current:a,pages:c}}const tf=n.defineComponent({name:"ClPagination",props:{items:{type:Number,default:0},pagesize:{type:Number,default:25},current:{type:Number,default:1},window:{type:Number,default:3},test:{type:Boolean,default:!1}},emits:["page"],computed:{pager:function(){return ef(this.items,this.pagesize,this.current,this.window)}}}),nf={key:0,class:"col-12 cl-spacing-medium"},of={class:"pagination"},sf={key:0,class:"page-item"},rf={key:1,class:"page-item disabled"},lf={key:0,class:"page-item disabled"},af=["onClick"],cf={key:2,class:"page-item"},df={key:3,class:"page-item disabled"};function uf(e,i,a,r,c,u){return e.pager?.pages?.length>1?(n.openBlock(),n.createElementBlock("nav",nf,[n.createElementVNode("ul",of,[e.pager.previous?(n.openBlock(),n.createElementBlock("li",sf,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[0]||(i[0]=d=>e.$emit("page",e.pager.previous))},[i[2]||(i[2]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",rf,[i[3]||(i[3]=n.createElementVNode("i",{class:"fas fa-arrow-left"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("P")],64)):n.createCommentVNode("",!0)])),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pager.pages,(d,v)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[v>0&&e.pager.pages[v-1]!==d-1?(n.openBlock(),n.createElementBlock("li",lf," … ")):n.createCommentVNode("",!0),n.createElementVNode("li",{class:n.normalizeClass(["page-item",{active:d===e.pager.current}])},[n.createElementVNode("button",{class:"page-link",onClick:$=>e.$emit("page",d)},n.toDisplayString(d),9,af)],2)],64))),128)),e.pager.next?(n.openBlock(),n.createElementBlock("li",cf,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:i[1]||(i[1]=d=>e.$emit("page",e.pager.next))},[i[4]||(i[4]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock("li",df,[i[5]||(i[5]=n.createElementVNode("i",{class:"fas fa-arrow-right"},null,-1)),e.test?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("N")],64)):n.createCommentVNode("",!0)]))])])):n.createCommentVNode("",!0)}const Rt=w(tf,[["render",uf]]);Rt.install=e=>{e.component(Rt.name??"ClNoName",Rt)};const ff=n.defineComponent({name:"ClPlan",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-plan ";return!this.primary&&!this.secondary?e+=" cl-color-steel":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-steel"),e+(this.class?` ${this.class}`:"")}}}),pf={key:0,class:"cl-badge-derived"},hf=["id"],mf=["id"];function gf(e,i,a,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",pf,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,hf)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,mf))}const xt=w(ff,[["render",gf]]);xt.install=e=>{e.component(xt.name??"ClNoName",xt)};const vf=n.defineComponent({name:"ClRole",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},name:{type:String,default:""},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},derived:{type:Boolean,default:!1}},computed:{clazz:function(){let e="cl-role ";return!this.primary&&!this.secondary?e+=" cl-color-steel":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-role-steel"),e+(this.class?` ${this.class}`:"")}}}),bf={key:0,class:"cl-badge-derived"},yf=["id"],_f=["id"];function Cf(e,i,a,r,c,u){return e.derived?(n.openBlock(),n.createElementBlock("span",bf,[n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,yf)])):(n.openBlock(),n.createElementBlock("span",{key:1,id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,_f))}const qt=w(vf,[["render",Cf]]);qt.install=e=>{e.component(qt.name??"ClNoName",qt)};const kf=n.defineComponent({name:"ClSectionForm",props:{id:{type:String,default:"FORM"},fluid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"cl-form container-fluid":"cl-form container"}}}),$f={class:"cl-section cl-section-form"},Ef=["id"],wf=["disabled"],Sf={key:1,class:"col-12"};function Nf(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("section",$f,[n.createElementVNode("form",{id:e.id,novalidate:"",class:n.normalizeClass(e.containerClass),onSubmit:i[0]||(i[0]=n.withModifiers(()=>{},["prevent"]))},[n.createElementVNode("fieldset",{class:"row",disabled:e.disabled},[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Sf,[n.renderSlot(e.$slots,"default")]))],8,wf)],42,Ef)])}const Ht=w(kf,[["render",Nf]]);Ht.install=e=>{e.component(Ht.name??"ClNoName",Ht)};const Tf=n.defineComponent({name:"ClSectionHeadline",props:{fluid:{type:Boolean,default:!1},title:{type:String,default:void 0},href:{type:String,default:void 0}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},containerClass:function(){return this.isFluid?"container-fluid cl-container-spacing-small":"container cl-container-spacing-small"}}}),Af={class:"cl-section cl-section-headline"},Of={class:"row"},Bf={class:"col-12"},Df={key:0},Vf=["href"];function Mf(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("section",Af,[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Of,[n.createElementVNode("div",Bf,[e.title?(n.openBlock(),n.createElementBlock("h1",Df,[n.createTextVNode(n.toDisplayString(e.title),1),e.href?(n.openBlock(),n.createElementBlock("a",{key:0,href:e.href,class:"cl-headline-help-icon",target:"_blank",rel:"noopener noreferrer",title:"Help"},[...i[0]||(i[0]=[n.createElementVNode("i",{class:"fas fa-question-circle"},null,-1)])],8,Vf)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")])])],2)])}const Ut=w(Tf,[["render",Mf]]);Ut.install=e=>{e.component(Ut.name??"ClNoName",Ut)};const zf=n.defineComponent({name:"ClSectionMain",props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},noCol:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},sectionClass:function(){return this.alternate?"cl-section-alternate":"cl-section"},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),Lf={class:"row"},If={key:1,class:"col-12"};function Ff(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(e.sectionClass)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Lf,[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",If,[n.renderSlot(e.$slots,"default")]))])],2)],2)}const Qe=w(zf,[["render",Ff]]);Qe.install=e=>{e.component(Qe.name??"ClNoName",Qe)};const Pf=n.defineComponent({name:"ClSectionMainSide",components:{ClSectionMain:Qe},props:{alternate:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},slim:{type:Boolean,default:!1}},computed:{isFluid:function(){return this.fluid||this.$route.meta?.fluid},mainClass:function(){return"col-12 "+(this.slim?"col-lg-9":"col-lg-8")},sideClass:function(){return"col-12 "+(this.slim?"col-lg-3":"col-lg-4")},sectionClass:function(){return"cl-section-main-side "+(this.alternate?"cl-section-alternate":"")}}});function Wf(e,i,a,r,c,u){const d=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(d,{class:n.normalizeClass(e.sectionClass),"no-col":"",fluid:e.isFluid},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(e.mainClass)},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"main")],2),e.$slots.side?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.sideClass)},[n.renderSlot(e.$slots,"side")],2)):n.createCommentVNode("",!0)]),_:3},8,["class","fluid"])}const Xt=w(Pf,[["render",Wf]]);Xt.install=e=>{e.component(Xt.name??"ClNoName",Xt)};const jf=n.defineComponent({name:"ClSpinner",props:{title:{type:String,default:"Loading ..."}}}),Rf={class:"cl-spinner"};function xf(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",Rf,[n.createTextVNode(n.toDisplayString(e.title),1),i[0]||(i[0]=n.createElementVNode("i",{class:"fas fa-spinner fa-spin"},null,-1))])}const Yt=w(jf,[["render",xf]]);Yt.install=e=>{e.component(Yt.name??"ClNoName",Yt)};function qf(e){document.querySelectorAll(`#${e} .cl-resizer`).forEach(i=>{Hf(i)})}let An=0,hn=null;function Hf(e){An=0,hn=null,e.addEventListener("mousedown",Uf),document.addEventListener("mousemove",Xf),document.addEventListener("mouseup",Yf)}const Uf=e=>{e.preventDefault(),hn=e.target?e.target.parentElement:null,An=e.pageX},Xf=e=>{if(hn!==null){e.preventDefault();const i=e.pageX-An;An=e.pageX;const a=Kf(hn),r=e.target?.closest("table")?.id??"unknown";!!document.querySelector(`#${r}.cl-table-nowrap`)?document.querySelectorAll(`#${r} tr th:nth-child(${a-1})`).forEach(u=>{const d=(u.style.maxWidth===""?u.offsetWidth:parseInt(u.style.maxWidth))+i;u.style.width=(d>32?d:32)+"px",u.style.maxWidth=(d>32?d:32)+"px"}):(document.querySelectorAll(`#${r} tr td:nth-child(${a-1})`).forEach(u=>{const d=u.offsetWidth+i;u.style.width=(d>32?d:32)+"px"}),document.querySelectorAll(`#${r} tr td:nth-child(${a})`).forEach(u=>{const d=u.offsetWidth-i;u.style.width=(d>32?d:32)+"px"}))}},Yf=e=>{hn!==null&&(e.preventDefault(),An=0,hn=null)};function Kf(e){let i=0;for(;e;)i++,e=e.previousElementSibling;return i}const Gf=n.defineComponent({name:"ClTable",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:""},nowrap:{type:Boolean,default:!1},noDataText:{type:String,default:"No data available."},rows:{type:Number,default:1},nonresponsive:{type:Boolean,default:!1},hideCols:{type:Array,default:void 0},fixed:{type:Boolean,default:!1}},data(){return{show:Array(32).fill(!0)}},computed:{clazz:function(){let e=this.class;this.nonresponsive&&(e+=" cl-table-nonresponsive"),this.nowrap&&(e+=" cl-table-nowrap"),this.fixed&&(e+=" cl-table-fixed");for(let i=1;i<=this.show.length;i++)this.show[i-1]||(e+=` cl-table-col-${i}-hide`);return e}},watch:{rows:function(){this.setupResizer()}},mounted(){this.setupResizer()},methods:{setupResizer:function(){this.$nextTick(()=>{qf(this.$uid)})}}}),Qf=["id"],Jf=["id"],Zf={key:0},ep={key:1},tp={class:"cl-tr-no-data"},np={colspan:"100"},ip={key:2},op={class:"cl-tr-no-data"},sp={colspan:"100"},rp={key:3};function lp(e,i,a,r,c,u){const d=n.resolveComponent("cl-spinner"),v=n.resolveComponent("cl-field-check"),$=n.resolveComponent("cl-modal-ok");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{id:e.id,class:"cl-table-scroll"},[n.createElementVNode("table",{id:e.$uid,class:n.normalizeClass(`cl-table-data ${e.clazz}`)},[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"header")])]),e.rows>=1?(n.openBlock(),n.createElementBlock("tbody",Zf,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])):e.rows===0?(n.openBlock(),n.createElementBlock("tbody",ep,[n.createElementVNode("tr",tp,[n.createElementVNode("td",np,n.toDisplayString(e.noDataText),1)])])):(n.openBlock(),n.createElementBlock("tbody",ip,[n.createElementVNode("tr",op,[n.createElementVNode("td",sp,[n.createVNode(d)])])])),e.$slots.footer?(n.openBlock(),n.createElementBlock("tfoot",rp,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"footer")])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"tfoot")],10,Jf)],8,Qf),e.hideCols?(n.openBlock(),n.createBlock($,{key:0,id:e.$uid+"-settings",title:"Configure table"},{default:n.withCtx(()=>[i[0]||(i[0]=n.createElementVNode("p",null,"Which of the following columns would you like to see?",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hideCols,(B,x)=>(n.openBlock(),n.createBlock(v,{key:B,value:e.show[x],modelValue:e.show[x],"onUpdate:modelValue":M=>e.show[x]=M},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(B),1)]),_:2},1032,["value","modelValue","onUpdate:modelValue"]))),128))]),_:1},8,["id"])):n.createCommentVNode("",!0)],64)}const Kt=w(Gf,[["render",lp]]);Kt.install=e=>{e.component(Kt.name??"ClNoName",Kt)};const ap=n.defineComponent({name:"ClTableCel",props:{condensed:{type:Boolean,default:!1}}});function cp(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(e.condensed?"cl-font-condensed":"")},[n.renderSlot(e.$slots,"default")],2)}const Gt=w(ap,[["render",cp]]);Gt.install=e=>{e.component(Gt.name??"ClNoName",Gt)};const dp=n.defineComponent({name:"ClTableCelActions",props:{content:{type:String,default:""}}}),up={class:"cl-td-actions"};function fp(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",up,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const Qt=w(dp,[["render",fp]]);Qt.install=e=>{e.component(Qt.name??"ClNoName",Qt)};const pp=n.defineComponent({name:"ClTableCelAudit",directives:{tooltip:mn},props:{value:{type:String,default:"???"}}}),hp={class:"cl-td-audit"},mp={class:"fas fa-info-circle"};function gp(e,i,a,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("td",hp,[n.withDirectives(n.createElementVNode("i",mp,null,512),[[d,e.value,"left"]])])}const Jt=w(pp,[["render",gp]]);Jt.install=e=>{e.component(Jt.name??"ClNoName",Jt)};const vp=n.defineComponent({name:"ClTableCelBoolean",props:{value:{type:Boolean,default:!1}}}),bp={class:"cl-td-boolean"};function yp(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",bp,[n.createElementVNode("i",{class:n.normalizeClass(`fas ${e.value?"fa-check":"fa-minus"}`)},null,2)])}const Zt=w(vp,[["render",yp]]);Zt.install=e=>{e.component(Zt.name??"ClNoName",Zt)};const _p=n.defineComponent({name:"ClTableCelCheckbox",props:{id:{type:String,default:void 0},disabled:{type:Boolean,default:!1},value:{type:Boolean,default:!1}},emits:["update:modelValue","changed"],data(){return{modelValue:this.value}},watch:{value:function(e){this.modelValue=e}},methods:{emitAll:function(){this.$emit("update:modelValue",this.modelValue),this.$emit("changed",this.modelValue)}}}),Cp={class:"cl-td-checkbox"},kp={class:"form-check text-center"},$p=["id","disabled"];function Ep(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",Cp,[n.createElementVNode("div",kp,[n.withDirectives(n.createElementVNode("input",{id:e.id??e.$uid,"onUpdate:modelValue":i[0]||(i[0]=d=>e.modelValue=d),class:"form-check-input",type:"checkbox",disabled:e.disabled,onChange:i[1]||(i[1]=d=>e.emitAll())},null,40,$p),[[n.vModelCheckbox,e.modelValue]])])])}const en=w(_p,[["render",Ep]]);en.install=e=>{e.component(en.name??"ClNoName",en)};const wp=n.defineComponent({name:"ClTableCelCode"}),Sp={class:"cl-td-code"};function Np(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",Sp,[n.renderSlot(e.$slots,"default")])}const tn=w(wp,[["render",Np]]);tn.install=e=>{e.component(tn.name??"ClNoName",tn)};const Tp=n.defineComponent({name:"ClTableCelCurrency",props:{amount:{type:Number,default:0},currency:{type:String,default:"EUR"}}}),Ap={class:"cl-td-currency"};function Op(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",Ap,n.toDisplayString(e.currency)+" "+n.toDisplayString(e.amount),1)}const nn=w(Tp,[["render",Op]]);nn.install=e=>{e.component(nn.name??"ClNoName",nn)};const Bp=n.defineComponent({name:"ClTableCelDate",props:{value:{type:String,default:void 0}},computed:{content:function(){if(this.value){const e=new Date(this.value),i=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),a=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),r=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),c=new Intl.DateTimeFormat("en",{hour:"2-digit",hour12:!1}).format(e),u=new Intl.DateTimeFormat("en",{minute:"2-digit"}).format(e);return`${i}-${a}-${r} ${c}:${u}`}return"-"}}}),Dp={class:"cl-td-date"};function Vp(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",Dp,n.toDisplayString(e.content),1)}const on=w(Bp,[["render",Vp]]);on.install=e=>{e.component(on.name??"ClNoName",on)};const Mp=n.defineComponent({name:"ClTableCelId",directives:{tooltip:mn,clipboard:eo},props:{value:{type:String,default:"ABCDEF01"},full:{type:String,default:void 0}},computed:{tooltip:function(){return(this.full??this.value)+"<br><small>click-to-copy!</small>"}}}),zp={class:"cl-td-id"};function Lp(e,i,a,r,c,u){const d=n.resolveDirective("tooltip"),v=n.resolveDirective("clipboard");return n.withDirectives((n.openBlock(),n.createElementBlock("td",zp,[n.createTextVNode(n.toDisplayString(e.value),1)])),[[d,e.tooltip,"right"],[v,e.full??e.value]])}const sn=w(Mp,[["render",Lp]]);sn.install=e=>{e.component(sn.name??"ClNoName",sn)};const Ip=n.defineComponent({name:"ClTableCelLinks",props:{content:{type:String,default:""}}}),Fp={class:"cl-td-links"};function Pp(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("td",Fp,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const rn=w(Ip,[["render",Pp]]);rn.install=e=>{e.component(rn.name??"ClNoName",rn)};const Wp=n.defineComponent({name:"ClTableCelUuid",props:{value:{type:String,default:"00000000-0000-0000-0000-000000000000"}}});function jp(e,i,a,r,c,u){const d=n.resolveComponent("cl-table-cel-id");return n.openBlock(),n.createBlock(d,{value:e.value.substring(0,8),full:e.value},null,8,["value","full"])}const ln=w(Wp,[["render",jp]]);ln.install=e=>{e.component(ln.name??"ClNoName",ln)};const Rp=n.defineComponent({name:"ClTableFootChecked",props:{checked:{type:Object,default:()=>({})}},computed:{any:function(){for(const e in this.checked)if(this.checked[e])return!0;return!1}}}),xp={key:0,class:"cl-table-foot-checked"},qp={class:"cl-td-links",colspan:"100"};function Hp(e,i,a,r,c,u){return e.any?(n.openBlock(),n.createElementBlock("tfoot",xp,[n.createElementVNode("tr",null,[n.createElementVNode("td",qp,[i[0]||(i[0]=n.createElementVNode("small",null,[n.createElementVNode("i",{class:"fas fa-share fa-rotate-270 cl-faded"})],-1)),i[1]||(i[1]=n.createTextVNode("   ",-1)),n.renderSlot(e.$slots,"default")])])])):n.createCommentVNode("",!0)}const an=w(Rp,[["render",Hp]]);an.install=e=>{e.component(an.name??"ClNoName",an)};const Up=n.defineComponent({name:"ClTableHead",directives:{tooltip:mn},props:{resize:{type:Boolean,default:!1},sort:{type:String,default:"OFF"},width:{type:String,default:""},checkbox:{type:Boolean,default:!1},initial:{type:String,default:"NONE"},sorter:{type:Object,default:null},col:{type:Number,default:0},settings:{type:Boolean,default:!1}},emits:["sort","all","none"],data(){return{checkState:this.initial,modelValue:this.initial==="ALL",mySorter:this.sorter}},watch:{initial:function(e,i){e!==i&&(this.checkState=e,this.modelValue=this.checkState==="ALL")}},mounted(){this.$nextTick(()=>{this.mySorter&&this.mySorter.col===this.col&&this.mySorter.sort()})},methods:{check(){switch(this.checkState){case"NONE":case"SOME":this.checkState="ALL",this.$emit("all");break;case"ALL":this.checkState="NONE",this.$emit("none");break}},openSettings(e){let i=e?.target;for(;i;){if(i.tagName==="TABLE"){Qi(`${i.id}-settings`);return}i=i.parentElement}},sortCol(){let e="NONE";switch(this.mySorter.col===this.col&&(e=this.mySorter?this.mySorter.order.toUpperCase():this.sort.toUpperCase()),e){case"OFF":break;case"ASC":this.mySorter?this.mySorter.set(this.col,"DESC"):this.$emit("sort","DESC");break;case"DESC":default:this.mySorter?this.mySorter.set(this.col,"ASC"):this.$emit("sort","ASC")}}}}),Xp=["id","width"],Yp={class:"fas fa-cog cl-faded"},Kp={key:0,class:"cl-resizer"},Gp={key:1,class:"form-check text-center"},Qp=["indeterminate"],Jp={key:2,class:"cl-resizer"};function Zp(e,i,a,r,c,u){const d=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("th",{id:e.$uid,class:n.normalizeClass(["cl-table-head",{"cl-table-head-sort":e.sort!==null,"cl-table-head-checkbox":e.checkbox,"cl-th-links":e.settings}]),width:e.settings?"1%":e.width},[e.settings?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("button",{type:"button",class:"cl-btn-ghost",onClick:i[0]||(i[0]=(...v)=>e.openSettings&&e.openSettings(...v))},[n.withDirectives(n.createElementVNode("i",Yp,null,512),[[d,"Configure table","left"]])]),e.resize?(n.openBlock(),n.createElementBlock("div",Kp)):n.createCommentVNode("",!0)],64)):e.checkbox?(n.openBlock(),n.createElementBlock("div",Gp,[n.withDirectives(n.createElementVNode("input",{ref:"checkbox","onUpdate:modelValue":i[1]||(i[1]=v=>e.modelValue=v),class:"form-check-input",type:"checkbox",indeterminate:e.checkState==="SOME",onChange:i[2]||(i[2]=v=>e.check())},null,40,Qp),[[n.vModelCheckbox,e.modelValue]])])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[e.sort?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"cl-btn-ghost",onClick:i[3]||(i[3]=(...v)=>e.sortCol&&e.sortCol(...v))},[n.renderSlot(e.$slots,"default"),e.sorter?.col===e.col?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sorter.order.toUpperCase()==="ASC","fa-sort-down":e.sorter.order.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sorter.order.toUpperCase())}])},null,2)):e.sort!==null?(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["fas fa-fw",{"fa-sort-up":e.sort.toUpperCase()==="ASC","fa-sort-down":e.sort.toUpperCase()==="DESC","fa-sort":!["ASC","DESC"].includes(e.sort.toUpperCase())}])},null,2)):n.createCommentVNode("",!0)])):n.renderSlot(e.$slots,"default",{key:1}),e.resize?(n.openBlock(),n.createElementBlock("div",Jp)):n.createCommentVNode("",!0)],64))],10,Xp)}const cn=w(Up,[["render",Zp]]);cn.install=e=>{e.component(cn.name??"ClNoName",cn)};const eh=n.defineComponent({name:"ClTableRow",props:{id:{type:String,default:null},class:{type:String,default:null},highlight:{type:Boolean,default:!1}},computed:{clazz:function(){return this.highlight?this.class+" cl-highlight":this.class}}}),th=["id"];function nh(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("tr",{id:e.id,class:n.normalizeClass(e.clazz)},[n.renderSlot(e.$slots,"default")],10,th)}const dn=w(eh,[["render",nh]]);dn.install=e=>{e.component(dn.name??"ClNoName",dn)};const ih=n.defineComponent({name:"ClTabs",props:{index:{type:Number,default:0}},emits:["tab"],data(){return{tabs:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}},methods:{slotExists(e){return this.$slots[`tabs-${e}-label`]!==void 0},emit(e){this.$emit("tab",e)}}}),oh={class:"cl-tabs"},sh=["id","name","checked","onChange"],rh=["for"];function lh(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock("div",oh,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("input",{key:0,id:`tabs-${e.$uid}-${d}`,class:n.normalizeClass(`cl-tab-${d}`),type:"radio",name:`tabs-${e.$uid}`,checked:e.index===d-1,onChange:v=>e.emit(d)},null,42,sh)):n.createCommentVNode("",!0)],64))),128)),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("li",{key:0,class:n.normalizeClass(`cl-tab-${d}`)},[n.createElementVNode("label",{for:`tabs-${e.$uid}-${d}`},[n.renderSlot(e.$slots,`tabs-${d}-label`)],8,rh)],2)):n.createCommentVNode("",!0)],64))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,d=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:d},[e.slotExists(d)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(`cl-tab-${d} cl-tab-content`)},[n.renderSlot(e.$slots,`tabs-${d}-content`)],2)):n.createCommentVNode("",!0)],64))),128))])}const un=w(ih,[["render",lh]]);un.install=e=>{e.component(un.name??"ClNoName",un)};const ah=n.defineComponent({name:"ClToggle",inheritAttrs:!1,props:{id:{type:String,default:void 0},class:{type:String,default:void 0},modelValue:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},title:{type:String,default:""},iconOn:{type:String,default:"fas fa-check"},iconOff:{type:String,default:"fas fa-times"}},emits:["update:modelValue"],data(){return{clazz:"cl-badge "+(this.class??"")}},methods:{toggle:function(){if(this.enabled){const e=document.getElementById(this.$uid);e&&(this.$emit("update:modelValue",e.checked),e.focus(),e.blur(),e.focus())}}}}),ch=["id","checked","disabled"],dh=["id","for","disabled"];function uh(e,i,a,r,c,u){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:e.$uid,type:"checkbox",class:n.normalizeClass("cl-toggle-checkbox"),checked:e.modelValue,disabled:e.enabled?null:!0,onChange:i[0]||(i[0]=d=>e.toggle())},null,40,ch),n.createElementVNode("label",{id:e.id,class:n.normalizeClass(e.clazz),for:e.$uid,disabled:e.enabled?null:!0},[n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOn} fa-fw`)},null,2),n.createElementVNode("i",{class:n.normalizeClass(`${e.iconOff} fa-fw`)},null,2),n.createTextVNode(n.toDisplayString(e.title),1)],10,dh)],64)}const fn=w(ah,[["render",uh]]);fn.install=e=>{e.component(fn.name??"ClNoName",fn)};const fh={install:e=>{let i=0;e.mixin({beforeCreate:function(){let r;const c="uid-"+i++;Object.defineProperties(this,(r={},r.$uid={get:function(){return c}},r))}})}};function ph(){return{ClAlert:_t,ClBackCancelOk:Ct,ClCookieBanner:kt,ClCopy:$t,ClCreditcardNumber:Et,ClDropzone:wt,ClField:St,ClFieldCheck:Nt,ClFieldGroup:Tt,ClHashtag:At,ClIconotron:Ot,ClInfo:Bt,ClLinkExternal:Dt,ClLorem:Vt,ClMailto:Mt,ClModal:zt,ClModalConfirm:Lt,ClModalOk:It,ClNavSide:Ft,ClNavTop:Pt,ClOrg:Wt,ClPage:jt,ClPagination:Rt,ClPlan:xt,ClRole:qt,ClSectionForm:Ht,ClSectionHeadline:Ut,ClSectionMain:Qe,ClSectionMainSide:Xt,ClSpinner:Yt,ClTable:Kt,ClTableCel:Gt,ClTableCelActions:Qt,ClTableCelAudit:Jt,ClTableCelBoolean:Zt,ClTableCelCheckbox:en,ClTableCelCode:tn,ClTableCelCurrency:nn,ClTableCelDate:on,ClTableCelId:sn,ClTableCelLinks:rn,ClTableCelUuid:ln,ClTableFootChecked:an,ClTableHead:cn,ClTableRow:dn,ClTabs:un,ClToggle:fn}}function hh(){return[fh]}function to(e,i){const a=JSON.parse(JSON.stringify(e));for(const r in i)typeof i[r]=="object"&&!Array.isArray(i[r])?a[r]=to(e[r]??{},i[r]):a[r]=i[r];return a}function mh(e,i){return{store:to(e,i)}}const _r="✺";let Qn={};function gh(e,i="",a=!1){const r=Qn[i]??Fe(Cr(i));return Object.keys(Qn).length>100&&(Qn={}),Qn[i]=r,Ge(a?e.toLowerCase():e,r,a)}function Ge(e,i,a){if(typeof i=="string"){const r=i.replaceAll(_r," ");return r[0]==="-"?!Ge(e,r.substring(1),a):a?e.includes(r):e.toLowerCase().includes(r.toLowerCase())}else switch(i[0]){case"&":return Ge(e,i[1])&&Ge(e,i[2]);case"|":return Ge(e,i[1])||Ge(e,i[2]);default:return!1}}function Cr(e){const i=[];let a=!1;for(let d=0;d<e.length;d++)a?e[d]===a?a=!1:i.push([" "].includes(e[d])?_r:e[d]):["'",'"'].includes(e[d])?a=e[d]:i.push(e[d]);const r=i.join("").replace(/\s+/g," ").trim();if(r.length<=0)return"";const c=r.split(" ");if(c.length<=0)return"";const u=[];["NOT","-"].includes(c[0])||u.push(c.shift());for(let d=0;d<c.length;d++)switch(c[d]){case"AND":case"&":case"&&":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("&"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("&"),u.push(c[d])}break;case"OR":case"|":case"||":switch(c[++d]){case"NOT":case"-":c[d+1]&&(u.push("|"),u.push("-"),u.push(c[++d]));break;case void 0:break;default:u.push("|"),u.push(c[d])}break;case"NOT":case"-":u.push("-"),u.push(c[++d]);break;default:u.push("&"),u.push(c[d])}return` ${u.join(" ")} `.replace(/ - /g," -").trim()}function Fe(e){const i=e.indexOf(" | ");if(i>=0)return["|",Fe(e.substring(0,i)),Fe(e.substring(i+3))];const a=e.indexOf(" & ");if(a>=0)return["&",Fe(e.substring(0,a)),Fe(e.substring(a+3))];const r=e.indexOf(" ");return r>=0?["&",Fe(e.substring(0,r)),Fe(e.substring(r+1))]:e}const Je={DEV:"DEV",TEST:"TEST",PROD:"PROD"},kr={id:"CP",subtitle:"Access the Content Platform, manage, encode and watermark assets",title:"Content Platform",urlManage:function(e,i){return e===Je.PROD?`https://platform.content.castlabs.com/#/o/${i??""}`:`https://platform.content-stag.castlabs.com/#/o/${i??""}`},sidenav:!1},$r={id:"CS",subtitle:"Manage organizations, plans, downloads",title:"Castlabs hub",urlManage:function(e,i){return no(e,`https://account.test.cs.castlabs.com/o/${i??""}`,`https://account.castlabs.com/o/${i??""}`)},sidenav:!0},Er={id:"DT",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday",urlManage:function(e,i){return no(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.drmtoday.com/dashboard/${i?`${i}/`:""}index`)},sidenav:!0},wr={id:"DTO",subtitle:"",title:"DRMtoday Onboard (staging)",urlManage:function(e,i){return`https://onboard.castlabs.com/o/${i??""}/devices`},sidenav:!1},Sr={id:"DTS",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday (staging)",urlManage:function(e,i){return no(e,`https://fe.test.drmtoday.com/dashboard/${i?`${i}/`:""}index`,`https://fe.staging.drmtoday.com/dashboard/${i?`${i}/`:""}index`)},sidenav:!1},Nr={id:"PP",subtitle:"Cross-platform video players (via Castlabs hub)",title:"PRESTOplay",urlManage:function(e,i){return e===Je.PROD?`https://account.castlabs.com/o/${i}/prestoplay`:`https://account.test.cs.castlabs.com/o/${i}/prestoplay`},sidenav:!0},Tr={id:"VTK",subtitle:"Cloud encoding, packaging, watermarking",title:"Video Toolkit",urlManage:function(e){return e===Je.PROD?"https://vtk.castlabs.com/":"https://vtks.castlabs.com/"},sidenav:!0},Ar={id:"WM",subtitle:"Video & image forensic watermarking",title:"STARDUSTmark",urlManage:function(e,i){return e===Je.PROD?`https://watermark.castlabs.com/#/o/${i}`:`https://demo-stag.fwm.castlabs.com/#/o/${i}`},sidenav:!0};function no(e=Je.PROD,i,a){return[Je.DEV,Je.TEST].includes(e)?i:a}function vh(){return[$r,kr,Er,Sr,wr,Nr,Ar,Tr]}const bh={CP:kr,CS:$r,DT:Er,DTS:Sr,DTO:wr,PP:Nr,WM:Ar,VTK:Tr},Ui={ClAlert:_t,ClBackCancelOk:Ct,ClCookieBanner:kt,ClCopy:$t,ClCreditcardNumber:Et,ClDropzone:wt,ClField:St,ClFieldCheck:Nt,ClFieldGroup:Tt,ClHashtag:At,ClIconotron:Ot,ClInfo:Bt,ClLinkExternal:Dt,ClLorem:Vt,ClMailto:Mt,ClModal:zt,ClModalConfirm:Lt,ClModalOk:It,ClNavSide:Ft,ClNavTop:Pt,ClOrg:Wt,ClPage:jt,ClPagination:Rt,ClPlan:xt,ClRole:qt,ClSectionForm:Ht,ClSectionHeadline:Ut,ClSectionMain:Qe,ClSectionMainSide:Xt,ClSpinner:Yt,ClTable:Kt,ClTableCel:Gt,ClTableCelActions:Qt,ClTableCelAudit:Jt,ClTableCelBoolean:Zt,ClTableCelCheckbox:en,ClTableCelCode:tn,ClTableCelCurrency:nn,ClTableCelDate:on,ClTableCelId:sn,ClTableCelLinks:rn,ClTableCelUuid:ln,ClTableFootChecked:an,ClTableHead:cn,ClTableRow:dn,ClTabs:un,ClToggle:fn,ClMockRouterLink:Tn,ClUI:Dc};function yh(e){for(const i in Ui)e.component(Ui[i].name,Ui[i])}exports.ClAlert=_t;exports.ClBackCancelOk=Ct;exports.ClCookieBanner=kt;exports.ClCopy=$t;exports.ClCreditcardNumber=Et;exports.ClDropzone=wt;exports.ClField=St;exports.ClFieldCheck=Nt;exports.ClFieldGroup=Tt;exports.ClHashtag=At;exports.ClIconotron=Ot;exports.ClInfo=Bt;exports.ClLinkExternal=Dt;exports.ClLorem=Vt;exports.ClMailto=Mt;exports.ClMockRouterLink=Tn;exports.ClModal=zt;exports.ClModalConfirm=Lt;exports.ClModalOk=It;exports.ClNavSide=Ft;exports.ClNavTop=Pt;exports.ClOrg=Wt;exports.ClPage=jt;exports.ClPagination=Rt;exports.ClPlan=xt;exports.ClRole=qt;exports.ClSectionForm=Ht;exports.ClSectionHeadline=Ut;exports.ClSectionMain=Qe;exports.ClSectionMainSide=Xt;exports.ClSpinner=Yt;exports.ClTable=Kt;exports.ClTableCel=Gt;exports.ClTableCelActions=Qt;exports.ClTableCelAudit=Jt;exports.ClTableCelBoolean=Zt;exports.ClTableCelCheckbox=en;exports.ClTableCelCode=tn;exports.ClTableCelCurrency=nn;exports.ClTableCelDate=on;exports.ClTableCelId=sn;exports.ClTableCelLinks=rn;exports.ClTableCelUuid=ln;exports.ClTableFootChecked=an;exports.ClTableHead=cn;exports.ClTableRow=dn;exports.ClTabs=un;exports.ClToggle=fn;exports.NAV=bh;exports._getProperty=yt;exports._sanitize=Cr;exports._tokenize=Fe;exports.clCopyData=ed;exports.clDebounce=Qc;exports.clFocus=Wc;exports.clFormAutofocus=jc;exports.clFormFieldFocusFirstInvalid=Zi;exports.clFormFieldReset=ur;exports.clFormIsValid=Ji;exports.clFormIsValidAsync=fr;exports.clFormReset=dr;exports.clFormatAmount=Uc;exports.clFormatCardNumber=mr;exports.clFormatDate=pr;exports.clFormatDateTimeUTC=xc;exports.clFormatDuration=qc;exports.clFormatFilesize=Rc;exports.clFormatNumber=oi;exports.clFormatPeriod=Hc;exports.clFormatRange=Xc;exports.clFormatTimeUTC=hr;exports.clGetAllComponents=ph;exports.clGetAllPlugins=hh;exports.clGetServices=vh;exports.clMatch=gh;exports.clModalHide=pn;exports.clModalIsShown=Pc;exports.clModalShow=Qi;exports.clModalValue=ti;exports.clPaginate=cr;exports.clPatch=to;exports.clPatchStore=mh;exports.clRandomList=Zc;exports.clRandomString=Jc;exports.clRefClField=od;exports.clRefClFieldGroup=sd;exports.clRefHTMLElement=rd;exports.clReload=nd;exports.clReloadStore=td;exports.clScrollToId=ar;exports.clSleep=id;exports.clSort=gr;exports.clSynchronizedSubmit=Yc;exports.clSynchronizedSubmitAsync=Kc;exports.clTableSorter=vr;exports.clTableSorterObjects=Gc;exports.clUi=yh;exports.clVClipboard=eo;exports.clVTooltip=mn;
26
26
  //# sourceMappingURL=castlabs-ui.common.js.map