@castlabs/ui 6.0.3 → 7.0.0

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.
Files changed (145) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/castlabs-logo-eggshell.svg +31 -162
  3. package/dist/assets/castlabs-logo.svg +31 -162
  4. package/dist/castlabs-ui-editor.css +1 -1
  5. package/dist/castlabs-ui-editor.umd.js +30 -30
  6. package/dist/castlabs-ui.common.js +5 -5
  7. package/dist/castlabs-ui.common.js.map +1 -1
  8. package/dist/castlabs-ui.core.js +28 -35
  9. package/dist/castlabs-ui.css +7 -7
  10. package/dist/castlabs-ui.module.js +28 -35
  11. package/dist/castlabs-ui.umd.js +13 -13
  12. package/dist/castlabs-ui.umd.js.map +1 -1
  13. package/package.json +18 -18
  14. package/src/assets/castlabs-logo-eggshell.svg +31 -162
  15. package/src/assets/castlabs-logo.svg +31 -162
  16. package/src/components/ClAlert/style.scss +46 -43
  17. package/src/components/ClBadge/style.scss +13 -15
  18. package/src/components/ClBadge/style.variables.scss +39 -33
  19. package/src/components/ClButton/style.scss +47 -249
  20. package/src/components/ClCard/style.scss +20 -20
  21. package/src/components/ClCard/style.variables.scss +121 -106
  22. package/src/components/ClDropdown/style.scss +47 -150
  23. package/src/components/ClDropzone/style.scss +4 -4
  24. package/src/components/ClFooter/style.scss +6 -105
  25. package/src/components/ClIconotron/style.scss +3 -8
  26. package/src/components/ClList/style.scss +10 -13
  27. package/src/components/ClList/style.variables.scss +27 -22
  28. package/src/components/ClPagination/style.scss +48 -85
  29. package/src/components/ClProgress/style.scss +8 -23
  30. package/src/components/ClSpinner/style.scss +1 -1
  31. package/src/components/ClTabs/style.scss +9 -9
  32. package/src/components/ClToggle/style.scss +18 -59
  33. package/src/components/ClTooltip/style.scss +9 -24
  34. package/src/components/ClWizard/style.scss +14 -12
  35. package/src/components/form/ClField/style.scss +4 -4
  36. package/src/components/form/ClFieldCheck/style.scss +25 -20
  37. package/src/components/form/ClFieldFile/style.scss +11 -13
  38. package/src/components/form/ClFieldGroup/style.scss +38 -4
  39. package/src/components/form/ClFieldInput/style.scss +15 -11
  40. package/src/components/form/ClFieldSelect/style.scss +6 -5
  41. package/src/components/form/ClFieldSet/style.scss +2 -2
  42. package/src/components/form/ClForm/style.scss +6 -8
  43. package/src/components/modal/ClModal/style.scss +50 -35
  44. package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +112 -180
  45. package/src/components/navigation/ClNavSide/ClNavSideMenu/style.scss +0 -23
  46. package/src/components/navigation/ClNavSide/style.scss +11 -17
  47. package/src/components/navigation/ClNavTop/style.scss +39 -35
  48. package/src/components/section/ClSectionForm/style.scss +6 -3
  49. package/src/components/section/ClSectionHeadline/style.scss +23 -25
  50. package/src/components/table/ClTable/style.variables.scss +18 -69
  51. package/src/components/table/ClTableCel/Actions/style.scss +1 -1
  52. package/src/components/table/ClTableCel/Audit/style.scss +2 -4
  53. package/src/components/table/ClTableCel/Boolean/style.scss +1 -1
  54. package/src/components/table/ClTableCel/Checkbox/style.scss +2 -2
  55. package/src/components/table/ClTableCel/Code/style.scss +1 -1
  56. package/src/components/table/ClTableCel/Currency/style.scss +1 -1
  57. package/src/components/table/ClTableCel/Date/style.scss +1 -1
  58. package/src/components/table/ClTableCel/ID/style.scss +2 -2
  59. package/src/components/table/ClTableCel/Links/style.scss +10 -11
  60. package/src/components/table/ClTableCel/style.variables.scss +3 -3
  61. package/src/components/text/ClCopy/style.scss +4 -21
  62. package/src/components/text/ClHashtag/style.scss +7 -25
  63. package/src/components/text/ClLinkExternal/style.scss +21 -19
  64. package/src/components/text/ClOrg/style.scss +1 -19
  65. package/src/components/text/ClPlan/style.scss +7 -25
  66. package/src/components/text/ClRole/style.scss +7 -25
  67. package/src/components/widget/ClCookieBanner/style.scss +5 -1
  68. package/src/fonts/DMMono/DMMono.scss +36 -0
  69. package/src/fonts/DMMono/DM_Mono_300.woff2 +0 -0
  70. package/src/fonts/DMMono/DM_Mono_300italic.woff2 +0 -0
  71. package/src/fonts/DMMono/DM_Mono_400.woff2 +0 -0
  72. package/src/fonts/DMMono/DM_Mono_400italic.woff2 +0 -0
  73. package/src/fonts/DMMono/DM_Mono_500.woff2 +0 -0
  74. package/src/fonts/DMMono/DM_Mono_500italic.woff2 +0 -0
  75. package/src/fonts/FontAwesome5/FontAwesome5.scss +2 -2
  76. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Bold.woff2 +0 -0
  77. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Medium.woff2 +0 -0
  78. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Regular.woff2 +0 -0
  79. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap.scss +21 -0
  80. package/src/styles/_global.scss +2 -0
  81. package/src/styles/abstracts/brand.scss +9 -0
  82. package/src/styles/abstracts/color.scss +243 -98
  83. package/src/styles/abstracts/spacing.scss +2 -2
  84. package/src/styles/abstracts/tools.scss +0 -82
  85. package/src/styles/assets/fontawesome.scss +2 -0
  86. package/src/styles/assets/fontawesome.variables.scss +88 -0
  87. package/src/styles/assets/logo.scss +12 -6
  88. package/src/styles/components/button.variables.scss +79 -6
  89. package/src/styles/components/form.variables.scss +15 -16
  90. package/src/styles/layout/app.scss +29 -0
  91. package/src/styles/layout/color.scss +115 -0
  92. package/src/styles/layout/grid.scss +2 -1
  93. package/src/styles/layout/helper.scss +14 -2
  94. package/src/styles/layout/section.scss +46 -47
  95. package/src/styles/layout/spacing.scss +4 -4
  96. package/src/styles/layout/typography.scss +91 -112
  97. package/src/styles/layout/typography.variables.scss +281 -168
  98. package/src/styles/ui.scss +4 -5
  99. package/src/styles/vendors/bootstrap.scss +1 -1
  100. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCCwR26eg.9f9ebd6f.woff2 +0 -0
  101. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCFwR26eg.d7aed4ec.woff2 +0 -0
  102. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCGwR0.860d704d.woff2 +0 -0
  103. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCIwR26eg.196096f5.woff2 +0 -0
  104. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCJwR26eg.60896ebf.woff2 +0 -0
  105. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCKwR26eg.c5d717bd.woff2 +0 -0
  106. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCLwR26eg.e6581016.woff2 +0 -0
  107. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Udc1UAw.ed9c080e.woff2 +0 -0
  108. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.65f5554a.woff2 +0 -0
  109. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.ffa02f1c.woff2 +0 -0
  110. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Zdc0.157a9634.woff2 +0 -0
  111. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0adc1UAw.ae9457b8.woff2 +0 -0
  112. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0bdc1UAw.3c6000b1.woff2 +0 -0
  113. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0ddc1UAw.1244aaff.woff2 +0 -0
  114. package/dist/fonts/mem8YaGs126MiZpBA-UFUZ0bbck.32149fc9.woff2 +0 -0
  115. package/dist/fonts/mem8YaGs126MiZpBA-UFV50bbck.16910b81.woff2 +0 -0
  116. package/dist/fonts/mem8YaGs126MiZpBA-UFVZ0b.16652597.woff2 +0 -0
  117. package/dist/fonts/mem8YaGs126MiZpBA-UFVp0bbck.e1ba37a1.woff2 +0 -0
  118. package/dist/fonts/mem8YaGs126MiZpBA-UFW50bbck.b50868a3.woff2 +0 -0
  119. package/dist/fonts/mem8YaGs126MiZpBA-UFWJ0bbck.1250c5ba.woff2 +0 -0
  120. package/dist/fonts/mem8YaGs126MiZpBA-UFWp0bbck.3ec09e79.woff2 +0 -0
  121. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCCwR26eg.woff2 +0 -0
  122. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCFwR26eg.woff2 +0 -0
  123. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCGwR0.woff2 +0 -0
  124. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCIwR26eg.woff2 +0 -0
  125. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCJwR26eg.woff2 +0 -0
  126. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCKwR26eg.woff2 +0 -0
  127. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCLwR26eg.woff2 +0 -0
  128. package/src/fonts/NotoSansMono/NotoSansMono.scss +0 -84
  129. package/src/fonts/OpenSansVariable/OpenSansVariable.scss +0 -187
  130. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Udc1UAw.woff2 +0 -0
  131. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Vdc1UAw.woff2 +0 -0
  132. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.woff2 +0 -0
  133. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.woff2 +0 -0
  134. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Zdc0.woff2 +0 -0
  135. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0adc1UAw.woff2 +0 -0
  136. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0bdc1UAw.woff2 +0 -0
  137. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0ddc1UAw.woff2 +0 -0
  138. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFUZ0bbck.woff2 +0 -0
  139. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFV50bbck.woff2 +0 -0
  140. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFVZ0b.woff2 +0 -0
  141. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFVp0bbck.woff2 +0 -0
  142. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFW50bbck.woff2 +0 -0
  143. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWJ0bbck.woff2 +0 -0
  144. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWZ0bbck.woff2 +0 -0
  145. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWp0bbck.woff2 +0 -0
@@ -1,8 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");var Qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Js={},Zs;function $a(){return Zs||(Zs=1,function(){var e=function(m,f){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,l){h.__proto__=l}||function(h,l){for(var _ in l)Object.prototype.hasOwnProperty.call(l,_)&&(h[_]=l[_])},e(m,f)},o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Qs<"u"?Qs:typeof self<"u"?self:{},c=function(m){var f=typeof m;return m!=null&&(f=="object"||f=="function")},p=typeof o=="object"&&o&&o.Object===Object&&o,b=typeof self=="object"&&self&&self.Object===Object&&self,v=p||b||Function("return this")(),u=v,S=function(){return u.Date.now()},Y=/\s/,ve=function(m){for(var f=m.length;f--&&Y.test(m.charAt(f)););return f},pe=/^\s+/,Ct=function(m){return m&&m.slice(0,ve(m)+1).replace(pe,"")},Xe=v.Symbol,Ye=Xe,Ln=Object.prototype,zn=Ln.hasOwnProperty,he=Ln.toString,te=Ye?Ye.toStringTag:void 0,oe=function(m){var f=zn.call(m,te),h=m[te];try{m[te]=void 0;var l=!0}catch{}var _=he.call(m);return l&&(f?m[te]=h:delete m[te]),_},Jn=Object.prototype.toString,In=oe,Di=function(m){return Jn.call(m)},Zn=Xe?Xe.toStringTag:void 0,Vi=function(m){return m==null?m===void 0?"[object Undefined]":"[object Null]":Zn&&Zn in Object(m)?In(m):Di(m)},Fn=function(m){return m!=null&&typeof m=="object"},ei=Ct,xn=c,Mi=function(m){return typeof m=="symbol"||Fn(m)&&Vi(m)=="[object Symbol]"},ti=/^[-+]0x[0-9a-f]+$/i,ni=/^0b[01]+$/i,ii=/^0o[0-7]+$/i,oi=parseInt,si=c,ot=S,ri=function(m){if(typeof m=="number")return m;if(Mi(m))return NaN;if(xn(m)){var f=typeof m.valueOf=="function"?m.valueOf():m;m=xn(f)?f+"":f}if(typeof m!="string")return m===0?m:+m;m=ei(m);var h=ni.test(m);return h||ii.test(m)?oi(m.slice(2),h?2:8):ti.test(m)?NaN:+m},li=Math.max,C=Math.min,Ke=function(m,f,h){var l,_,T,M,z,K,U=0,re=!1,Q=!1,J=!0;if(typeof m!="function")throw new TypeError("Expected a function");function ae(ee){var ne=l,ge=_;return l=_=void 0,U=ee,M=m.apply(ge,ne)}function Oe(ee){return U=ee,z=setTimeout(Ie,f),re?ae(ee):M}function be(ee){var ne=ee-K;return K===void 0||ne>=f||ne<0||Q&&ee-U>=T}function Ie(){var ee=ot();if(be(ee))return Et(ee);z=setTimeout(Ie,function(ne){var ge=f-(ne-K);return Q?C(ge,T-(ne-U)):ge}(ee))}function Et(ee){return z=void 0,J&&l?ae(ee):(l=_=void 0,M)}function Ze(){var ee=ot(),ne=be(ee);if(l=arguments,_=this,K=ee,ne){if(z===void 0)return Oe(K);if(Q)return clearTimeout(z),z=setTimeout(Ie,f),ae(K)}return z===void 0&&(z=setTimeout(Ie,f)),M}return f=ri(f)||0,si(h)&&(re=!!h.leading,T=(Q="maxWait"in h)?li(ri(h.maxWait)||0,f):T,J="trailing"in h?!!h.trailing:J),Ze.cancel=function(){z!==void 0&&clearTimeout(z),U=0,l=K=_=z=void 0},Ze.flush=function(){return z===void 0?M:Et(ot())},Ze},ai=Ke,Pn=c,Be=function(m,f,h){var l=!0,_=!0;if(typeof m!="function")throw new TypeError("Expected a function");return Pn(h)&&(l="leading"in h?!!h.leading:l,_="trailing"in h?!!h.trailing:_),ai(m,f,{leading:l,maxWait:f,trailing:_})},$e=function(){return $e=Object.assign||function(m){for(var f,h=1,l=arguments.length;h<l;h++)for(var _ in f=arguments[h])Object.prototype.hasOwnProperty.call(f,_)&&(m[_]=f[_]);return m},$e.apply(this,arguments)};function me(m){return m&&m.ownerDocument&&m.ownerDocument.defaultView?m.ownerDocument.defaultView:window}function kt(m){return m&&m.ownerDocument?m.ownerDocument:document}var N=function(m){return Array.prototype.reduce.call(m,function(f,h){var l=h.name.match(/data-simplebar-(.+)/);if(l){var _=l[1].replace(/\W+(.)/g,function(T,M){return M.toUpperCase()});switch(h.value){case"true":f[_]=!0;break;case"false":f[_]=!1;break;case void 0:f[_]=!0;break;default:f[_]=h.value}}return f},{})};function st(m,f){var h;m&&(h=m.classList).add.apply(h,f.split(" "))}function jn(m,f){m&&f.split(" ").forEach(function(h){m.classList.remove(h)})}function ci(m){return".".concat(m.split(" ").join("."))}var Wn=!(typeof window>"u"||!window.document||!window.document.createElement),rt=Object.freeze({__proto__:null,addClasses:st,canUseDOM:Wn,classNamesToQuery:ci,getElementDocument:kt,getElementWindow:me,getOptions:N,removeClasses:jn}),Ge=null,Qe=null;function Re(){if(Ge===null){if(typeof document>"u")return Ge=0;var m=document.body,f=document.createElement("div");f.classList.add("simplebar-hide-scrollbar"),m.appendChild(f);var h=f.getBoundingClientRect().right;m.removeChild(f),Ge=h}return Ge}Wn&&window.addEventListener("resize",function(){Qe!==window.devicePixelRatio&&(Qe=window.devicePixelRatio,Ge=null)});var Me=me,Rn=kt,Li=N,Le=st,ze=jn,se=ci,$t=function(){function m(f,h){h===void 0&&(h={});var l=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 _=Me(l.el);l.scrollXTicking||(_.requestAnimationFrame(l.scrollX),l.scrollXTicking=!0),l.scrollYTicking||(_.requestAnimationFrame(l.scrollY),l.scrollYTicking=!0),l.isScrolling||(l.isScrolling=!0,Le(l.el,l.classNames.scrolling)),l.showScrollbar("x"),l.showScrollbar("y"),l.onStopScrolling()},this.scrollX=function(){l.axis.x.isOverflowing&&l.positionScrollbar("x"),l.scrollXTicking=!1},this.scrollY=function(){l.axis.y.isOverflowing&&l.positionScrollbar("y"),l.scrollYTicking=!1},this._onStopScrolling=function(){ze(l.el,l.classNames.scrolling),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isScrolling=!1},this.onMouseEnter=function(){l.isMouseEntering||(Le(l.el,l.classNames.mouseEntered),l.showScrollbar("x"),l.showScrollbar("y"),l.isMouseEntering=!0),l.onMouseEntered()},this._onMouseEntered=function(){ze(l.el,l.classNames.mouseEntered),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isMouseEntering=!1},this._onMouseMove=function(_){l.mouseX=_.clientX,l.mouseY=_.clientY,(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseMoveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseMoveForAxis("y")},this.onMouseLeave=function(){l.onMouseMove.cancel(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseLeaveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseLeaveForAxis("y"),l.mouseX=-1,l.mouseY=-1},this._onWindowResize=function(){l.scrollbarWidth=l.getScrollbarWidth(),l.hideNativeScrollbar()},this.onPointerEvent=function(_){var T,M;l.axis.x.track.el&&l.axis.y.track.el&&l.axis.x.scrollbar.el&&l.axis.y.scrollbar.el&&(l.axis.x.track.rect=l.axis.x.track.el.getBoundingClientRect(),l.axis.y.track.rect=l.axis.y.track.el.getBoundingClientRect(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&(T=l.isWithinBounds(l.axis.x.track.rect)),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&(M=l.isWithinBounds(l.axis.y.track.rect)),(T||M)&&(_.stopPropagation(),_.type==="pointerdown"&&_.pointerType!=="touch"&&(T&&(l.axis.x.scrollbar.rect=l.axis.x.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.x.scrollbar.rect)?l.onDragStart(_,"x"):l.onTrackClick(_,"x")),M&&(l.axis.y.scrollbar.rect=l.axis.y.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.y.scrollbar.rect)?l.onDragStart(_,"y"):l.onTrackClick(_,"y")))))},this.drag=function(_){var T,M,z,K,U,re,Q,J,ae,Oe,be;if(l.draggedAxis&&l.contentWrapperEl){var Ie=l.axis[l.draggedAxis].track,Et=(M=(T=Ie.rect)===null||T===void 0?void 0:T[l.axis[l.draggedAxis].sizeAttr])!==null&&M!==void 0?M:0,Ze=l.axis[l.draggedAxis].scrollbar,ee=(K=(z=l.contentWrapperEl)===null||z===void 0?void 0:z[l.axis[l.draggedAxis].scrollSizeAttr])!==null&&K!==void 0?K:0,ne=parseInt((re=(U=l.elStyles)===null||U===void 0?void 0:U[l.axis[l.draggedAxis].sizeAttr])!==null&&re!==void 0?re:"0px",10);_.preventDefault(),_.stopPropagation();var ge=(l.draggedAxis==="y"?_.pageY:_.pageX)-((J=(Q=Ie.rect)===null||Q===void 0?void 0:Q[l.axis[l.draggedAxis].offsetAttr])!==null&&J!==void 0?J:0)-l.axis[l.draggedAxis].dragOffset,wt=(ge=l.draggedAxis==="x"&&l.isRtl?((Oe=(ae=Ie.rect)===null||ae===void 0?void 0:ae[l.axis[l.draggedAxis].sizeAttr])!==null&&Oe!==void 0?Oe:0)-Ze.size-ge:ge)/(Et-Ze.size)*(ee-ne);l.draggedAxis==="x"&&l.isRtl&&(wt=!((be=m.getRtlHelpers())===null||be===void 0)&&be.isScrollingToNegative?-wt:wt),l.contentWrapperEl[l.axis[l.draggedAxis].scrollOffsetAttr]=wt}},this.onEndDrag=function(_){l.isDragging=!1;var T=Rn(l.el),M=Me(l.el);_.preventDefault(),_.stopPropagation(),ze(l.el,l.classNames.dragging),l.onStopScrolling(),T.removeEventListener("mousemove",l.drag,!0),T.removeEventListener("mouseup",l.onEndDrag,!0),l.removePreventClickId=M.setTimeout(function(){T.removeEventListener("click",l.preventClick,!0),T.removeEventListener("dblclick",l.preventClick,!0),l.removePreventClickId=null})},this.preventClick=function(_){_.preventDefault(),_.stopPropagation()},this.el=f,this.options=$e($e({},m.defaultOptions),h),this.classNames=$e($e({},m.defaultOptions.classNames),h.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=Be(this._onMouseMove,64),this.onWindowResize=Ke(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ke(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ke(this._onMouseEntered,this.stopScrollDelay),this.init()}return m.getRtlHelpers=function(){if(m.rtlHelpers)return m.rtlHelpers;var f=document.createElement("div");f.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var h=f.firstElementChild,l=h?.firstElementChild;if(!l)return null;document.body.appendChild(h),h.scrollLeft=0;var _=m.getOffset(h),T=m.getOffset(l);h.scrollLeft=-999;var M=m.getOffset(l);return document.body.removeChild(h),m.rtlHelpers={isScrollOriginAtZero:_.left!==T.left,isScrollingToNegative:T.left!==M.left},m.rtlHelpers},m.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:Re()}catch{return Re()}},m.getOffset=function(f){var h=f.getBoundingClientRect(),l=Rn(f),_=Me(f);return{top:h.top+(_.pageYOffset||l.documentElement.scrollTop),left:h.left+(_.pageXOffset||l.documentElement.scrollLeft)}},m.prototype.init=function(){Wn&&(this.initDOM(),this.rtlHelpers=m.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},m.prototype.initDOM=function(){var f,h;this.wrapperEl=this.el.querySelector(se(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(se(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(se(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(se(this.classNames.offset)),this.maskEl=this.el.querySelector(se(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,se(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(se(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(se(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(se(this.classNames.track)).concat(se(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(se(this.classNames.track)).concat(se(this.classNames.vertical))),this.axis.x.scrollbar.el=((f=this.axis.x.track.el)===null||f===void 0?void 0:f.querySelector(se(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((h=this.axis.y.track.el)===null||h===void 0?void 0:h.querySelector(se(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))},m.prototype.initListeners=function(){var f,h=this,l=Me(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),(f=this.contentWrapperEl)===null||f===void 0||f.addEventListener("scroll",this.onScroll),l.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var _=!1,T=l.ResizeObserver||ResizeObserver;this.resizeObserver=new T(function(){_&&l.requestAnimationFrame(function(){h.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),l.requestAnimationFrame(function(){_=!0})}this.mutationObserver=new l.MutationObserver(function(){l.requestAnimationFrame(function(){h.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},m.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var f=Me(this.el);this.elStyles=f.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var h=this.contentEl.offsetWidth,l=this.heightAutoObserverEl.offsetHeight<=1,_=this.heightAutoObserverEl.offsetWidth<=1||h>0,T=this.contentWrapperEl.offsetWidth,M=this.elStyles.overflowX,z=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 K=this.contentEl.scrollHeight,U=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=l?"auto":"100%",this.placeholderEl.style.width=_?"".concat(h||U,"px"):"auto",this.placeholderEl.style.height="".concat(K,"px");var re=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=h!==0&&U>h,this.axis.y.isOverflowing=K>re,this.axis.x.isOverflowing=M!=="hidden"&&this.axis.x.isOverflowing,this.axis.y.isOverflowing=z!=="hidden"&&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 Q=this.axis.x.isOverflowing?this.scrollbarWidth:0,J=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&U>T-J,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&K>re-Q,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")}},m.prototype.getScrollbarSize=function(f){var h,l;if(f===void 0&&(f="y"),!this.axis[f].isOverflowing||!this.contentEl)return 0;var _,T=this.contentEl[this.axis[f].scrollSizeAttr],M=(l=(h=this.axis[f].track.el)===null||h===void 0?void 0:h[this.axis[f].offsetSizeAttr])!==null&&l!==void 0?l:0,z=M/T;return _=Math.max(~~(z*M),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(_=Math.min(_,this.options.scrollbarMaxSize)),_},m.prototype.positionScrollbar=function(f){var h,l,_;f===void 0&&(f="y");var T=this.axis[f].scrollbar;if(this.axis[f].isOverflowing&&this.contentWrapperEl&&T.el&&this.elStyles){var M=this.contentWrapperEl[this.axis[f].scrollSizeAttr],z=((h=this.axis[f].track.el)===null||h===void 0?void 0:h[this.axis[f].offsetSizeAttr])||0,K=parseInt(this.elStyles[this.axis[f].sizeAttr],10),U=this.contentWrapperEl[this.axis[f].scrollOffsetAttr];U=f==="x"&&this.isRtl&&(!((l=m.getRtlHelpers())===null||l===void 0)&&l.isScrollOriginAtZero)?-U:U,f==="x"&&this.isRtl&&(U=!((_=m.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?U:-U);var re=U/(M-K),Q=~~((z-T.size)*re);Q=f==="x"&&this.isRtl?-Q+(z-T.size):Q,T.el.style.transform=f==="x"?"translate3d(".concat(Q,"px, 0, 0)"):"translate3d(0, ".concat(Q,"px, 0)")}},m.prototype.toggleTrackVisibility=function(f){f===void 0&&(f="y");var h=this.axis[f].track.el,l=this.axis[f].scrollbar.el;h&&l&&this.contentWrapperEl&&(this.axis[f].isOverflowing||this.axis[f].forceVisible?(h.style.visibility="visible",this.contentWrapperEl.style[this.axis[f].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(f))):(h.style.visibility="hidden",this.contentWrapperEl.style[this.axis[f].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(f))),this.axis[f].isOverflowing?l.style.display="block":l.style.display="none")},m.prototype.showScrollbar=function(f){f===void 0&&(f="y"),this.axis[f].isOverflowing&&!this.axis[f].scrollbar.isVisible&&(Le(this.axis[f].scrollbar.el,this.classNames.visible),this.axis[f].scrollbar.isVisible=!0)},m.prototype.hideScrollbar=function(f){f===void 0&&(f="y"),this.isDragging||this.axis[f].isOverflowing&&this.axis[f].scrollbar.isVisible&&(ze(this.axis[f].scrollbar.el,this.classNames.visible),this.axis[f].scrollbar.isVisible=!1)},m.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")},m.prototype.onMouseMoveForAxis=function(f){f===void 0&&(f="y");var h=this.axis[f];h.track.el&&h.scrollbar.el&&(h.track.rect=h.track.el.getBoundingClientRect(),h.scrollbar.rect=h.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(h.track.rect)?(this.showScrollbar(f),Le(h.track.el,this.classNames.hover),this.isWithinBounds(h.scrollbar.rect)?Le(h.scrollbar.el,this.classNames.hover):ze(h.scrollbar.el,this.classNames.hover)):(ze(h.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)))},m.prototype.onMouseLeaveForAxis=function(f){f===void 0&&(f="y"),ze(this.axis[f].track.el,this.classNames.hover),ze(this.axis[f].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)},m.prototype.onDragStart=function(f,h){var l;h===void 0&&(h="y"),this.isDragging=!0;var _=Rn(this.el),T=Me(this.el),M=this.axis[h].scrollbar,z=h==="y"?f.pageY:f.pageX;this.axis[h].dragOffset=z-(((l=M.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])||0),this.draggedAxis=h,Le(this.el,this.classNames.dragging),_.addEventListener("mousemove",this.drag,!0),_.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(_.addEventListener("click",this.preventClick,!0),_.addEventListener("dblclick",this.preventClick,!0)):(T.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},m.prototype.onTrackClick=function(f,h){var l,_,T,M,z=this;h===void 0&&(h="y");var K=this.axis[h];if(this.options.clickOnTrack&&K.scrollbar.el&&this.contentWrapperEl){f.preventDefault();var U=Me(this.el);this.axis[h].scrollbar.rect=K.scrollbar.el.getBoundingClientRect();var re=(_=(l=this.axis[h].scrollbar.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])!==null&&_!==void 0?_:0,Q=parseInt((M=(T=this.elStyles)===null||T===void 0?void 0:T[this.axis[h].sizeAttr])!==null&&M!==void 0?M:"0px",10),J=this.contentWrapperEl[this.axis[h].scrollOffsetAttr],ae=(h==="y"?this.mouseY-re:this.mouseX-re)<0?-1:1,Oe=ae===-1?J-Q:J+Q,be=function(){z.contentWrapperEl&&(ae===-1?J>Oe&&(J-=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=J,U.requestAnimationFrame(be)):J<Oe&&(J+=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=J,U.requestAnimationFrame(be)))};be()}},m.prototype.getContentElement=function(){return this.contentEl},m.prototype.getScrollElement=function(){return this.contentWrapperEl},m.prototype.removeListeners=function(){var f=Me(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),f.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()},m.prototype.unMount=function(){this.removeListeners()},m.prototype.isWithinBounds=function(f){return this.mouseX>=f.left&&this.mouseX<=f.left+f.width&&this.mouseY>=f.top&&this.mouseY<=f.top+f.height},m.prototype.findChild=function(f,h){var l=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.msMatchesSelector;return Array.prototype.filter.call(f.children,function(_){return l.call(_,h)})[0]},m.rtlHelpers=null,m.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},m.getOptions=Li,m.helpers=rt,m}(),Je=$t.helpers,Ee=Je.getOptions,le=Je.addClasses,zi=Je.canUseDOM,di=function(m){function f(){for(var h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];var _=m.apply(this,h)||this;return f.instances.set(h[0],_),_}return function(h,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function _(){this.constructor=h}e(h,l),h.prototype=l===null?Object.create(l):(_.prototype=l.prototype,new _)}(f,m),f.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(h){h.getAttribute("data-simplebar")==="init"||f.instances.has(h)||new f(h,Ee(h.attributes))})},f.removeObserver=function(){var h;(h=f.globalObserver)===null||h===void 0||h.disconnect()},f.prototype.initDOM=function(){var h,l,_,T=this;if(!Array.prototype.filter.call(this.el.children,function(K){return K.classList.contains(T.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"),le(this.wrapperEl,this.classNames.wrapper),le(this.contentWrapperEl,this.classNames.contentWrapper),le(this.offsetEl,this.classNames.offset),le(this.maskEl,this.classNames.mask),le(this.contentEl,this.classNames.contentEl),le(this.placeholderEl,this.classNames.placeholder),le(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),le(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),(h=this.contentWrapperEl)===null||h===void 0||h.setAttribute("tabindex",this.options.tabIndex.toString()),(l=this.contentWrapperEl)===null||l===void 0||l.setAttribute("role","region"),(_=this.contentWrapperEl)===null||_===void 0||_.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var M=document.createElement("div"),z=document.createElement("div");le(M,this.classNames.track),le(z,this.classNames.scrollbar),M.appendChild(z),this.axis.x.track.el=M.cloneNode(!0),le(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=M.cloneNode(!0),le(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}$t.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},f.prototype.unMount=function(){$t.prototype.unMount.call(this),f.instances.delete(this.el)},f.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(f.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))},f.handleMutations=function(h){h.forEach(function(l){l.addedNodes.forEach(function(_){_.nodeType===1&&(_.hasAttribute("data-simplebar")?!f.instances.has(_)&&document.documentElement.contains(_)&&new f(_,Ee(_.attributes)):_.querySelectorAll("[data-simplebar]").forEach(function(T){T.getAttribute("data-simplebar")!=="init"&&!f.instances.has(T)&&document.documentElement.contains(T)&&new f(T,Ee(T.attributes))}))}),l.removedNodes.forEach(function(_){var T;_.nodeType===1&&(_.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(_)&&((T=f.instances.get(_))===null||T===void 0||T.unMount()):Array.prototype.forEach.call(_.querySelectorAll('[data-simplebar="init"]'),function(M){var z;!document.documentElement.contains(M)&&((z=f.instances.get(M))===null||z===void 0||z.unMount())}))})})},f.instances=new WeakMap,f}($t);return zi&&di.initHtmlApi(),di}()),Js}$a();const Ea=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"6.0.3"}}),B=(e,o)=>{const c=e.__vccOpts||e;for(const[p,b]of o)c[p]=b;return c};function wa(e,o,c,p,b,v){return n.toDisplayString(e.VITE_APP_VERSION())}const Sa=B(Ea,[["render",wa]]),Na=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Ta(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const xt=B(Na,[["render",Ta]]);xt.install=e=>{e.component(xt.name??"ClNoName",xt)};var Ai={exports:{}};/*!
2
- * Bootstrap v5.3.7 (https://getbootstrap.com/)
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");var Qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Js={},Zs;function Ea(){return Zs||(Zs=1,function(){var e=function(g,f){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,l){h.__proto__=l}||function(h,l){for(var y in l)Object.prototype.hasOwnProperty.call(l,y)&&(h[y]=l[y])},e(g,f)},s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Qs<"u"?Qs:typeof self<"u"?self:{},c=function(g){var f=typeof g;return g!=null&&(f=="object"||f=="function")},p=typeof s=="object"&&s&&s.Object===Object&&s,b=typeof self=="object"&&self&&self.Object===Object&&self,v=p||b||Function("return this")(),u=v,N=function(){return u.Date.now()},U=/\s/,ae=function(g){for(var f=g.length;f--&&U.test(g.charAt(f)););return f},we=/^\s+/,Se=function(g){return g&&g.slice(0,ae(g)+1).replace(we,"")},bt=v.Symbol,nt=bt,Xe=Object.prototype,Jn=Xe.hasOwnProperty,Vn=Xe.toString,ne=nt?nt.toStringTag:void 0,me=function(g){var f=Jn.call(g,ne),h=g[ne];try{g[ne]=void 0;var l=!0}catch{}var y=Vn.call(g);return l&&(f?g[ne]=h:delete g[ne]),y},oe=Object.prototype.toString,Zn=me,Mn=function(g){return oe.call(g)},ei=bt?bt.toStringTag:void 0,Oi=function(g){return g==null?g===void 0?"[object Undefined]":"[object Null]":ei&&ei in Object(g)?Zn(g):Mn(g)},Di=function(g){return g!=null&&typeof g=="object"},Ln=Se,zn=c,ti=function(g){return typeof g=="symbol"||Di(g)&&Oi(g)=="[object Symbol]"},Vi=/^[-+]0x[0-9a-f]+$/i,ni=/^0b[01]+$/i,ii=/^0o[0-7]+$/i,oi=parseInt,si=c,yt=N,_t=function(g){if(typeof g=="number")return g;if(ti(g))return NaN;if(zn(g)){var f=typeof g.valueOf=="function"?g.valueOf():g;g=zn(f)?f+"":f}if(typeof g!="string")return g===0?g:+g;g=Ln(g);var h=ni.test(g);return h||ii.test(g)?oi(g.slice(2),h?2:8):Vi.test(g)?NaN:+g},Mi=Math.max,ri=Math.min,_=function(g,f,h){var l,y,T,D,z,K,X=0,le=!1,J=!1,ee=!0;if(typeof g!="function")throw new TypeError("Expected a function");function ve(te){var _e=l,de=y;return l=y=void 0,X=te,D=g.apply(de,_e)}function be(te){return X=te,z=setTimeout(Ve,f),le?ve(te):D}function ye(te){var _e=te-K;return K===void 0||_e>=f||_e<0||J&&te-X>=T}function Ve(){var te=yt();if(ye(te))return $t(te);z=setTimeout(Ve,function(_e){var de=f-(_e-K);return J?ri(de,T-(_e-X)):de}(te))}function $t(te){return z=void 0,ee&&l?ve(te):(l=y=void 0,D)}function Qe(){var te=yt(),_e=ye(te);if(l=arguments,y=this,K=te,_e){if(z===void 0)return be(K);if(J)return clearTimeout(z),z=setTimeout(Ve,f),ve(K)}return z===void 0&&(z=setTimeout(Ve,f)),D}return f=_t(f)||0,si(h)&&(le=!!h.leading,T=(J="maxWait"in h)?Mi(_t(h.maxWait)||0,f):T,ee="trailing"in h?!!h.trailing:ee),Qe.cancel=function(){z!==void 0&&clearTimeout(z),X=0,l=K=y=z=void 0},Qe.flush=function(){return z===void 0?D:$t(yt())},Qe},In=_,li=c,Fn=function(g,f,h){var l=!0,y=!0;if(typeof g!="function")throw new TypeError("Expected a function");return li(h)&&(l="leading"in h?!!h.leading:l,y="trailing"in h?!!h.trailing:y),In(g,f,{leading:l,maxWait:f,trailing:y})},se=function(){return se=Object.assign||function(g){for(var f,h=1,l=arguments.length;h<l;h++)for(var y in f=arguments[h])Object.prototype.hasOwnProperty.call(f,y)&&(g[y]=f[y]);return g},se.apply(this,arguments)};function Ye(g){return g&&g.ownerDocument&&g.ownerDocument.defaultView?g.ownerDocument.defaultView:window}function ge(g){return g&&g.ownerDocument?g.ownerDocument:document}var Ct=function(g){return Array.prototype.reduce.call(g,function(f,h){var l=h.name.match(/data-simplebar-(.+)/);if(l){var y=l[1].replace(/\W+(.)/g,function(T,D){return D.toUpperCase()});switch(h.value){case"true":f[y]=!0;break;case"false":f[y]=!1;break;case void 0:f[y]=!0;break;default:f[y]=h.value}}return f},{})};function S(g,f){var h;g&&(h=g.classList).add.apply(h,f.split(" "))}function it(g,f){g&&f.split(" ").forEach(function(h){g.classList.remove(h)})}function Pn(g){return".".concat(g.split(" ").join("."))}var xn=!(typeof window>"u"||!window.document||!window.document.createElement),Li=Object.freeze({__proto__:null,addClasses:S,canUseDOM:xn,classNamesToQuery:Pn,getElementDocument:ge,getElementWindow:Ye,getOptions:Ct,removeClasses:it}),De=null,jn=null;function Ke(){if(De===null){if(typeof document>"u")return De=0;var g=document.body,f=document.createElement("div");f.classList.add("simplebar-hide-scrollbar"),g.appendChild(f);var h=f.getBoundingClientRect().right;g.removeChild(f),De=h}return De}xn&&window.addEventListener("resize",function(){jn!==window.devicePixelRatio&&(jn=window.devicePixelRatio,De=null)});var ce=Ye,Wn=ge,zi=Ct,ze=S,Ie=it,re=Pn,kt=function(){function g(f,h){h===void 0&&(h={});var l=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 y=ce(l.el);l.scrollXTicking||(y.requestAnimationFrame(l.scrollX),l.scrollXTicking=!0),l.scrollYTicking||(y.requestAnimationFrame(l.scrollY),l.scrollYTicking=!0),l.isScrolling||(l.isScrolling=!0,ze(l.el,l.classNames.scrolling)),l.showScrollbar("x"),l.showScrollbar("y"),l.onStopScrolling()},this.scrollX=function(){l.axis.x.isOverflowing&&l.positionScrollbar("x"),l.scrollXTicking=!1},this.scrollY=function(){l.axis.y.isOverflowing&&l.positionScrollbar("y"),l.scrollYTicking=!1},this._onStopScrolling=function(){Ie(l.el,l.classNames.scrolling),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isScrolling=!1},this.onMouseEnter=function(){l.isMouseEntering||(ze(l.el,l.classNames.mouseEntered),l.showScrollbar("x"),l.showScrollbar("y"),l.isMouseEntering=!0),l.onMouseEntered()},this._onMouseEntered=function(){Ie(l.el,l.classNames.mouseEntered),l.options.autoHide&&(l.hideScrollbar("x"),l.hideScrollbar("y")),l.isMouseEntering=!1},this._onMouseMove=function(y){l.mouseX=y.clientX,l.mouseY=y.clientY,(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseMoveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseMoveForAxis("y")},this.onMouseLeave=function(){l.onMouseMove.cancel(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&l.onMouseLeaveForAxis("x"),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&l.onMouseLeaveForAxis("y"),l.mouseX=-1,l.mouseY=-1},this._onWindowResize=function(){l.scrollbarWidth=l.getScrollbarWidth(),l.hideNativeScrollbar()},this.onPointerEvent=function(y){var T,D;l.axis.x.track.el&&l.axis.y.track.el&&l.axis.x.scrollbar.el&&l.axis.y.scrollbar.el&&(l.axis.x.track.rect=l.axis.x.track.el.getBoundingClientRect(),l.axis.y.track.rect=l.axis.y.track.el.getBoundingClientRect(),(l.axis.x.isOverflowing||l.axis.x.forceVisible)&&(T=l.isWithinBounds(l.axis.x.track.rect)),(l.axis.y.isOverflowing||l.axis.y.forceVisible)&&(D=l.isWithinBounds(l.axis.y.track.rect)),(T||D)&&(y.stopPropagation(),y.type==="pointerdown"&&y.pointerType!=="touch"&&(T&&(l.axis.x.scrollbar.rect=l.axis.x.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.x.scrollbar.rect)?l.onDragStart(y,"x"):l.onTrackClick(y,"x")),D&&(l.axis.y.scrollbar.rect=l.axis.y.scrollbar.el.getBoundingClientRect(),l.isWithinBounds(l.axis.y.scrollbar.rect)?l.onDragStart(y,"y"):l.onTrackClick(y,"y")))))},this.drag=function(y){var T,D,z,K,X,le,J,ee,ve,be,ye;if(l.draggedAxis&&l.contentWrapperEl){var Ve=l.axis[l.draggedAxis].track,$t=(D=(T=Ve.rect)===null||T===void 0?void 0:T[l.axis[l.draggedAxis].sizeAttr])!==null&&D!==void 0?D:0,Qe=l.axis[l.draggedAxis].scrollbar,te=(K=(z=l.contentWrapperEl)===null||z===void 0?void 0:z[l.axis[l.draggedAxis].scrollSizeAttr])!==null&&K!==void 0?K:0,_e=parseInt((le=(X=l.elStyles)===null||X===void 0?void 0:X[l.axis[l.draggedAxis].sizeAttr])!==null&&le!==void 0?le:"0px",10);y.preventDefault(),y.stopPropagation();var de=(l.draggedAxis==="y"?y.pageY:y.pageX)-((ee=(J=Ve.rect)===null||J===void 0?void 0:J[l.axis[l.draggedAxis].offsetAttr])!==null&&ee!==void 0?ee:0)-l.axis[l.draggedAxis].dragOffset,Fe=(de=l.draggedAxis==="x"&&l.isRtl?((be=(ve=Ve.rect)===null||ve===void 0?void 0:ve[l.axis[l.draggedAxis].sizeAttr])!==null&&be!==void 0?be:0)-Qe.size-de:de)/($t-Qe.size)*(te-_e);l.draggedAxis==="x"&&l.isRtl&&(Fe=!((ye=g.getRtlHelpers())===null||ye===void 0)&&ye.isScrollingToNegative?-Fe:Fe),l.contentWrapperEl[l.axis[l.draggedAxis].scrollOffsetAttr]=Fe}},this.onEndDrag=function(y){l.isDragging=!1;var T=Wn(l.el),D=ce(l.el);y.preventDefault(),y.stopPropagation(),Ie(l.el,l.classNames.dragging),l.onStopScrolling(),T.removeEventListener("mousemove",l.drag,!0),T.removeEventListener("mouseup",l.onEndDrag,!0),l.removePreventClickId=D.setTimeout(function(){T.removeEventListener("click",l.preventClick,!0),T.removeEventListener("dblclick",l.preventClick,!0),l.removePreventClickId=null})},this.preventClick=function(y){y.preventDefault(),y.stopPropagation()},this.el=f,this.options=se(se({},g.defaultOptions),h),this.classNames=se(se({},g.defaultOptions.classNames),h.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=Fn(this._onMouseMove,64),this.onWindowResize=_(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=_(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=_(this._onMouseEntered,this.stopScrollDelay),this.init()}return g.getRtlHelpers=function(){if(g.rtlHelpers)return g.rtlHelpers;var f=document.createElement("div");f.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var h=f.firstElementChild,l=h?.firstElementChild;if(!l)return null;document.body.appendChild(h),h.scrollLeft=0;var y=g.getOffset(h),T=g.getOffset(l);h.scrollLeft=-999;var D=g.getOffset(l);return document.body.removeChild(h),g.rtlHelpers={isScrollOriginAtZero:y.left!==T.left,isScrollingToNegative:T.left!==D.left},g.rtlHelpers},g.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:Ke()}catch{return Ke()}},g.getOffset=function(f){var h=f.getBoundingClientRect(),l=Wn(f),y=ce(f);return{top:h.top+(y.pageYOffset||l.documentElement.scrollTop),left:h.left+(y.pageXOffset||l.documentElement.scrollLeft)}},g.prototype.init=function(){xn&&(this.initDOM(),this.rtlHelpers=g.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},g.prototype.initDOM=function(){var f,h;this.wrapperEl=this.el.querySelector(re(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(re(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(re(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(re(this.classNames.offset)),this.maskEl=this.el.querySelector(re(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,re(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(re(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(re(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(re(this.classNames.track)).concat(re(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(re(this.classNames.track)).concat(re(this.classNames.vertical))),this.axis.x.scrollbar.el=((f=this.axis.x.track.el)===null||f===void 0?void 0:f.querySelector(re(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((h=this.axis.y.track.el)===null||h===void 0?void 0:h.querySelector(re(this.classNames.scrollbar)))||null,this.options.autoHide||(ze(this.axis.x.scrollbar.el,this.classNames.visible),ze(this.axis.y.scrollbar.el,this.classNames.visible))},g.prototype.initListeners=function(){var f,h=this,l=ce(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),(f=this.contentWrapperEl)===null||f===void 0||f.addEventListener("scroll",this.onScroll),l.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var y=!1,T=l.ResizeObserver||ResizeObserver;this.resizeObserver=new T(function(){y&&l.requestAnimationFrame(function(){h.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),l.requestAnimationFrame(function(){y=!0})}this.mutationObserver=new l.MutationObserver(function(){l.requestAnimationFrame(function(){h.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},g.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var f=ce(this.el);this.elStyles=f.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var h=this.contentEl.offsetWidth,l=this.heightAutoObserverEl.offsetHeight<=1,y=this.heightAutoObserverEl.offsetWidth<=1||h>0,T=this.contentWrapperEl.offsetWidth,D=this.elStyles.overflowX,z=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 K=this.contentEl.scrollHeight,X=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=l?"auto":"100%",this.placeholderEl.style.width=y?"".concat(h||X,"px"):"auto",this.placeholderEl.style.height="".concat(K,"px");var le=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=h!==0&&X>h,this.axis.y.isOverflowing=K>le,this.axis.x.isOverflowing=D!=="hidden"&&this.axis.x.isOverflowing,this.axis.y.isOverflowing=z!=="hidden"&&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 J=this.axis.x.isOverflowing?this.scrollbarWidth:0,ee=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&X>T-ee,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&K>le-J,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")}},g.prototype.getScrollbarSize=function(f){var h,l;if(f===void 0&&(f="y"),!this.axis[f].isOverflowing||!this.contentEl)return 0;var y,T=this.contentEl[this.axis[f].scrollSizeAttr],D=(l=(h=this.axis[f].track.el)===null||h===void 0?void 0:h[this.axis[f].offsetSizeAttr])!==null&&l!==void 0?l:0,z=D/T;return y=Math.max(~~(z*D),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(y=Math.min(y,this.options.scrollbarMaxSize)),y},g.prototype.positionScrollbar=function(f){var h,l,y;f===void 0&&(f="y");var T=this.axis[f].scrollbar;if(this.axis[f].isOverflowing&&this.contentWrapperEl&&T.el&&this.elStyles){var D=this.contentWrapperEl[this.axis[f].scrollSizeAttr],z=((h=this.axis[f].track.el)===null||h===void 0?void 0:h[this.axis[f].offsetSizeAttr])||0,K=parseInt(this.elStyles[this.axis[f].sizeAttr],10),X=this.contentWrapperEl[this.axis[f].scrollOffsetAttr];X=f==="x"&&this.isRtl&&(!((l=g.getRtlHelpers())===null||l===void 0)&&l.isScrollOriginAtZero)?-X:X,f==="x"&&this.isRtl&&(X=!((y=g.getRtlHelpers())===null||y===void 0)&&y.isScrollingToNegative?X:-X);var le=X/(D-K),J=~~((z-T.size)*le);J=f==="x"&&this.isRtl?-J+(z-T.size):J,T.el.style.transform=f==="x"?"translate3d(".concat(J,"px, 0, 0)"):"translate3d(0, ".concat(J,"px, 0)")}},g.prototype.toggleTrackVisibility=function(f){f===void 0&&(f="y");var h=this.axis[f].track.el,l=this.axis[f].scrollbar.el;h&&l&&this.contentWrapperEl&&(this.axis[f].isOverflowing||this.axis[f].forceVisible?(h.style.visibility="visible",this.contentWrapperEl.style[this.axis[f].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(f))):(h.style.visibility="hidden",this.contentWrapperEl.style[this.axis[f].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(f))),this.axis[f].isOverflowing?l.style.display="block":l.style.display="none")},g.prototype.showScrollbar=function(f){f===void 0&&(f="y"),this.axis[f].isOverflowing&&!this.axis[f].scrollbar.isVisible&&(ze(this.axis[f].scrollbar.el,this.classNames.visible),this.axis[f].scrollbar.isVisible=!0)},g.prototype.hideScrollbar=function(f){f===void 0&&(f="y"),this.isDragging||this.axis[f].isOverflowing&&this.axis[f].scrollbar.isVisible&&(Ie(this.axis[f].scrollbar.el,this.classNames.visible),this.axis[f].scrollbar.isVisible=!1)},g.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")},g.prototype.onMouseMoveForAxis=function(f){f===void 0&&(f="y");var h=this.axis[f];h.track.el&&h.scrollbar.el&&(h.track.rect=h.track.el.getBoundingClientRect(),h.scrollbar.rect=h.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(h.track.rect)?(this.showScrollbar(f),ze(h.track.el,this.classNames.hover),this.isWithinBounds(h.scrollbar.rect)?ze(h.scrollbar.el,this.classNames.hover):Ie(h.scrollbar.el,this.classNames.hover)):(Ie(h.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)))},g.prototype.onMouseLeaveForAxis=function(f){f===void 0&&(f="y"),Ie(this.axis[f].track.el,this.classNames.hover),Ie(this.axis[f].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(f)},g.prototype.onDragStart=function(f,h){var l;h===void 0&&(h="y"),this.isDragging=!0;var y=Wn(this.el),T=ce(this.el),D=this.axis[h].scrollbar,z=h==="y"?f.pageY:f.pageX;this.axis[h].dragOffset=z-(((l=D.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])||0),this.draggedAxis=h,ze(this.el,this.classNames.dragging),y.addEventListener("mousemove",this.drag,!0),y.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(y.addEventListener("click",this.preventClick,!0),y.addEventListener("dblclick",this.preventClick,!0)):(T.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},g.prototype.onTrackClick=function(f,h){var l,y,T,D,z=this;h===void 0&&(h="y");var K=this.axis[h];if(this.options.clickOnTrack&&K.scrollbar.el&&this.contentWrapperEl){f.preventDefault();var X=ce(this.el);this.axis[h].scrollbar.rect=K.scrollbar.el.getBoundingClientRect();var le=(y=(l=this.axis[h].scrollbar.rect)===null||l===void 0?void 0:l[this.axis[h].offsetAttr])!==null&&y!==void 0?y:0,J=parseInt((D=(T=this.elStyles)===null||T===void 0?void 0:T[this.axis[h].sizeAttr])!==null&&D!==void 0?D:"0px",10),ee=this.contentWrapperEl[this.axis[h].scrollOffsetAttr],ve=(h==="y"?this.mouseY-le:this.mouseX-le)<0?-1:1,be=ve===-1?ee-J:ee+J,ye=function(){z.contentWrapperEl&&(ve===-1?ee>be&&(ee-=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=ee,X.requestAnimationFrame(ye)):ee<be&&(ee+=40,z.contentWrapperEl[z.axis[h].scrollOffsetAttr]=ee,X.requestAnimationFrame(ye)))};ye()}},g.prototype.getContentElement=function(){return this.contentEl},g.prototype.getScrollElement=function(){return this.contentWrapperEl},g.prototype.removeListeners=function(){var f=ce(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),f.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()},g.prototype.unMount=function(){this.removeListeners()},g.prototype.isWithinBounds=function(f){return this.mouseX>=f.left&&this.mouseX<=f.left+f.width&&this.mouseY>=f.top&&this.mouseY<=f.top+f.height},g.prototype.findChild=function(f,h){var l=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.msMatchesSelector;return Array.prototype.filter.call(f.children,function(y){return l.call(y,h)})[0]},g.rtlHelpers=null,g.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},g.getOptions=zi,g.helpers=Li,g}(),Rn=kt.helpers,Ge=Rn.getOptions,Q=Rn.addClasses,ai=Rn.canUseDOM,ci=function(g){function f(){for(var h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];var y=g.apply(this,h)||this;return f.instances.set(h[0],y),y}return function(h,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function y(){this.constructor=h}e(h,l),h.prototype=l===null?Object.create(l):(y.prototype=l.prototype,new y)}(f,g),f.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(h){h.getAttribute("data-simplebar")==="init"||f.instances.has(h)||new f(h,Ge(h.attributes))})},f.removeObserver=function(){var h;(h=f.globalObserver)===null||h===void 0||h.disconnect()},f.prototype.initDOM=function(){var h,l,y,T=this;if(!Array.prototype.filter.call(this.el.children,function(K){return K.classList.contains(T.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"),Q(this.wrapperEl,this.classNames.wrapper),Q(this.contentWrapperEl,this.classNames.contentWrapper),Q(this.offsetEl,this.classNames.offset),Q(this.maskEl,this.classNames.mask),Q(this.contentEl,this.classNames.contentEl),Q(this.placeholderEl,this.classNames.placeholder),Q(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),Q(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),(h=this.contentWrapperEl)===null||h===void 0||h.setAttribute("tabindex",this.options.tabIndex.toString()),(l=this.contentWrapperEl)===null||l===void 0||l.setAttribute("role","region"),(y=this.contentWrapperEl)===null||y===void 0||y.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var D=document.createElement("div"),z=document.createElement("div");Q(D,this.classNames.track),Q(z,this.classNames.scrollbar),D.appendChild(z),this.axis.x.track.el=D.cloneNode(!0),Q(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=D.cloneNode(!0),Q(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}kt.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},f.prototype.unMount=function(){kt.prototype.unMount.call(this),f.instances.delete(this.el)},f.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(f.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))},f.handleMutations=function(h){h.forEach(function(l){l.addedNodes.forEach(function(y){y.nodeType===1&&(y.hasAttribute("data-simplebar")?!f.instances.has(y)&&document.documentElement.contains(y)&&new f(y,Ge(y.attributes)):y.querySelectorAll("[data-simplebar]").forEach(function(T){T.getAttribute("data-simplebar")!=="init"&&!f.instances.has(T)&&document.documentElement.contains(T)&&new f(T,Ge(T.attributes))}))}),l.removedNodes.forEach(function(y){var T;y.nodeType===1&&(y.getAttribute("data-simplebar")==="init"?!document.documentElement.contains(y)&&((T=f.instances.get(y))===null||T===void 0||T.unMount()):Array.prototype.forEach.call(y.querySelectorAll('[data-simplebar="init"]'),function(D){var z;!document.documentElement.contains(D)&&((z=f.instances.get(D))===null||z===void 0||z.unMount())}))})})},f.instances=new WeakMap,f}(kt);return ai&&ci.initHtmlApi(),ci}()),Js}Ea();const wa=n.defineComponent({name:"ClUI",methods:{VITE_APP_VERSION:()=>"7.0.0"}}),B=(e,s)=>{const c=e.__vccOpts||e;for(const[p,b]of s)c[p]=b;return c};function Sa(e,s,c,p,b,v){return n.toDisplayString(e.VITE_APP_VERSION())}const Na=B(wa,[["render",Sa]]),Ta=n.defineComponent({name:"ClAlert",props:{type:{type:String,default:"info"}}});function Aa(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("p",{class:n.normalizeClass(["alert",`cl-alert-${e.type}`]),role:"alert"},[n.renderSlot(e.$slots,"default")],2)}const It=B(Ta,[["render",Aa]]);It.install=e=>{e.component(It.name??"ClNoName",It)};var Ti={exports:{}};/*!
2
+ * Bootstrap v5.3.8 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
- */var Aa=Ai.exports,er;function Ba(){return er||(er=1,function(e,o){(function(c,p){e.exports=p()})(Aa,function(){const c=new Map,p={set(s,t,i){c.has(s)||c.set(s,new Map);const r=c.get(s);r.has(t)||r.size===0?r.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(s,t)=>c.has(s)&&c.get(s).get(t)||null,remove(s,t){if(!c.has(s))return;const i=c.get(s);i.delete(t),i.size===0&&c.delete(s)}},b="transitionend",v=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,i)=>`#${CSS.escape(i)}`)),s),u=s=>{s.dispatchEvent(new Event(b))},S=s=>!(!s||typeof s!="object")&&(s.jquery!==void 0&&(s=s[0]),s.nodeType!==void 0),Y=s=>S(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(v(s)):null,ve=s=>{if(!S(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",i=s.closest("details:not([open])");if(!i)return t;if(i!==s){const r=s.closest("summary");if(r&&r.parentNode!==i||r===null)return!1}return t},pe=s=>!s||s.nodeType!==Node.ELEMENT_NODE||!!s.classList.contains("disabled")||(s.disabled!==void 0?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"),Ct=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?Ct(s.parentNode):null},Xe=()=>{},Ye=s=>{s.offsetHeight},Ln=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,zn=[],he=()=>document.documentElement.dir==="rtl",te=s=>{var t;t=()=>{const i=Ln();if(i){const r=s.NAME,a=i.fn[r];i.fn[r]=s.jQueryInterface,i.fn[r].Constructor=s,i.fn[r].noConflict=()=>(i.fn[r]=a,s.jQueryInterface)}},document.readyState==="loading"?(zn.length||document.addEventListener("DOMContentLoaded",()=>{for(const i of zn)i()}),zn.push(t)):t()},oe=(s,t=[],i=s)=>typeof s=="function"?s.call(...t):i,Jn=(s,t,i=!0)=>{if(!i)return void oe(s);const r=(g=>{if(!g)return 0;let{transitionDuration:y,transitionDelay:k}=window.getComputedStyle(g);const E=Number.parseFloat(y),w=Number.parseFloat(k);return E||w?(y=y.split(",")[0],k=k.split(",")[0],1e3*(Number.parseFloat(y)+Number.parseFloat(k))):0})(t)+5;let a=!1;const d=({target:g})=>{g===t&&(a=!0,t.removeEventListener(b,d),oe(s))};t.addEventListener(b,d),setTimeout(()=>{a||u(t)},r)},In=(s,t,i,r)=>{const a=s.length;let d=s.indexOf(t);return d===-1?!i&&r?s[a-1]:s[0]:(d+=i?1:-1,r&&(d=(d+a)%a),s[Math.max(0,Math.min(d,a-1))])},Di=/[^.]*(?=\..*)\.|.*/,Zn=/\..*/,Vi=/::\d+$/,Fn={};let ei=1;const xn={mouseenter:"mouseover",mouseleave:"mouseout"},Mi=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 ti(s,t){return t&&`${t}::${ei++}`||s.uidEvent||ei++}function ni(s){const t=ti(s);return s.uidEvent=t,Fn[t]=Fn[t]||{},Fn[t]}function ii(s,t,i=null){return Object.values(s).find(r=>r.callable===t&&r.delegationSelector===i)}function oi(s,t,i){const r=typeof t=="string",a=r?i:t||i;let d=li(s);return Mi.has(d)||(d=s),[r,a,d]}function si(s,t,i,r,a){if(typeof t!="string"||!s)return;let[d,g,y]=oi(t,i,r);t in xn&&(g=(D=>function(O){if(!O.relatedTarget||O.relatedTarget!==O.delegateTarget&&!O.delegateTarget.contains(O.relatedTarget))return D.call(this,O)})(g));const k=ni(s),E=k[y]||(k[y]={}),w=ii(E,g,d?i:null);if(w)return void(w.oneOff=w.oneOff&&a);const $=ti(g,t.replace(Di,"")),L=d?function(A,D,O){return function V(R){const X=A.querySelectorAll(D);for(let{target:F}=R;F&&F!==this;F=F.parentNode)for(const P of X)if(P===F)return Ke(R,{delegateTarget:F}),V.oneOff&&C.off(A,R.type,D,O),O.apply(F,[R])}}(s,i,g):function(A,D){return function O(V){return Ke(V,{delegateTarget:A}),O.oneOff&&C.off(A,V.type,D),D.apply(A,[V])}}(s,g);L.delegationSelector=d?i:null,L.callable=g,L.oneOff=a,L.uidEvent=$,E[$]=L,s.addEventListener(y,L,d)}function ot(s,t,i,r,a){const d=ii(t[i],r,a);d&&(s.removeEventListener(i,d,!!a),delete t[i][d.uidEvent])}function ri(s,t,i,r){const a=t[i]||{};for(const[d,g]of Object.entries(a))d.includes(r)&&ot(s,t,i,g.callable,g.delegationSelector)}function li(s){return s=s.replace(Zn,""),xn[s]||s}const C={on(s,t,i,r){si(s,t,i,r,!1)},one(s,t,i,r){si(s,t,i,r,!0)},off(s,t,i,r){if(typeof t!="string"||!s)return;const[a,d,g]=oi(t,i,r),y=g!==t,k=ni(s),E=k[g]||{},w=t.startsWith(".");if(d===void 0){if(w)for(const $ of Object.keys(k))ri(s,k,$,t.slice(1));for(const[$,L]of Object.entries(E)){const A=$.replace(Vi,"");y&&!t.includes(A)||ot(s,k,g,L.callable,L.delegationSelector)}}else{if(!Object.keys(E).length)return;ot(s,k,g,d,a?i:null)}},trigger(s,t,i){if(typeof t!="string"||!s)return null;const r=Ln();let a=null,d=!0,g=!0,y=!1;t!==li(t)&&r&&(a=r.Event(t,i),r(s).trigger(a),d=!a.isPropagationStopped(),g=!a.isImmediatePropagationStopped(),y=a.isDefaultPrevented());const k=Ke(new Event(t,{bubbles:d,cancelable:!0}),i);return y&&k.preventDefault(),g&&s.dispatchEvent(k),k.defaultPrevented&&a&&a.preventDefault(),k}};function Ke(s,t={}){for(const[i,r]of Object.entries(t))try{s[i]=r}catch{Object.defineProperty(s,i,{configurable:!0,get:()=>r})}return s}function ai(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 Pn(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Be={setDataAttribute(s,t,i){s.setAttribute(`data-bs-${Pn(t)}`,i)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${Pn(t)}`)},getDataAttributes(s){if(!s)return{};const t={},i=Object.keys(s.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of i){let a=r.replace(/^bs/,"");a=a.charAt(0).toLowerCase()+a.slice(1),t[a]=ai(s.dataset[r])}return t},getDataAttribute:(s,t)=>ai(s.getAttribute(`data-bs-${Pn(t)}`))};class $e{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,i){const r=S(i)?Be.getDataAttribute(i,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...S(i)?Be.getDataAttributes(i):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,i=this.constructor.DefaultType){for(const[a,d]of Object.entries(i)){const g=t[a],y=S(g)?"element":(r=g)==null?`${r}`:Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(d).test(y))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${a}" provided type "${y}" but expected type "${d}".`)}var r}}class me extends $e{constructor(t,i){super(),(t=Y(t))&&(this._element=t,this._config=this._getConfig(i),p.set(this._element,this.constructor.DATA_KEY,this))}dispose(){p.remove(this._element,this.constructor.DATA_KEY),C.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,i,r=!0){Jn(t,i,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return p.get(Y(t),this.DATA_KEY)}static getOrCreateInstance(t,i={}){return this.getInstance(t)||new this(t,typeof i=="object"?i:null)}static get VERSION(){return"5.3.7"}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 kt=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let i=s.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&i!=="#"?i.trim():null}return t?t.split(",").map(i=>v(i)).join(","):null},N={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(i=>i.matches(t)),parents(s,t){const i=[];let r=s.parentNode.closest(t);for(;r;)i.push(r),r=r.parentNode.closest(t);return i},prev(s,t){let i=s.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(s,t){let i=s.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(i=>`${i}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(i=>!pe(i)&&ve(i))},getSelectorFromElement(s){const t=kt(s);return t&&N.findOne(t)?t:null},getElementFromSelector(s){const t=kt(s);return t?N.findOne(t):null},getMultipleElementsFromSelector(s){const t=kt(s);return t?N.find(t):[]}},st=(s,t="hide")=>{const i=`click.dismiss${s.EVENT_KEY}`,r=s.NAME;C.on(document,i,`[data-bs-dismiss="${r}"]`,function(a){if(["A","AREA"].includes(this.tagName)&&a.preventDefault(),pe(this))return;const d=N.getElementFromSelector(this)||this.closest(`.${r}`);s.getOrCreateInstance(d)[t]()})},jn=".bs.alert",ci=`close${jn}`,Wn=`closed${jn}`;class rt extends me{static get NAME(){return"alert"}close(){if(C.trigger(this._element,ci).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(),C.trigger(this._element,Wn),this.dispose()}static jQueryInterface(t){return this.each(function(){const i=rt.getOrCreateInstance(this);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}st(rt,"close"),te(rt);const Ge='[data-bs-toggle="button"]';class Qe extends me{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const i=Qe.getOrCreateInstance(this);t==="toggle"&&i[t]()})}}C.on(document,"click.bs.button.data-api",Ge,s=>{s.preventDefault();const t=s.target.closest(Ge);Qe.getOrCreateInstance(t).toggle()}),te(Qe);const Re=".bs.swipe",Me=`touchstart${Re}`,Rn=`touchmove${Re}`,Li=`touchend${Re}`,Le=`pointerdown${Re}`,ze=`pointerup${Re}`,se={endCallback:null,leftCallback:null,rightCallback:null},$t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Je extends $e{constructor(t,i){super(),this._element=t,t&&Je.isSupported()&&(this._config=this._getConfig(i),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return se}static get DefaultType(){return $t}static get NAME(){return"swipe"}dispose(){C.off(this._element,Re)}_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(),oe(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 i=t/this._deltaX;this._deltaX=0,i&&oe(i>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(C.on(this._element,Le,t=>this._start(t)),C.on(this._element,ze,t=>this._end(t)),this._element.classList.add("pointer-event")):(C.on(this._element,Me,t=>this._start(t)),C.on(this._element,Rn,t=>this._move(t)),C.on(this._element,Li,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 Ee=".bs.carousel",le=".data-api",zi="ArrowLeft",di="ArrowRight",m="next",f="prev",h="left",l="right",_=`slide${Ee}`,T=`slid${Ee}`,M=`keydown${Ee}`,z=`mouseenter${Ee}`,K=`mouseleave${Ee}`,U=`dragstart${Ee}`,re=`load${Ee}${le}`,Q=`click${Ee}${le}`,J="carousel",ae="active",Oe=".active",be=".carousel-item",Ie=Oe+be,Et={[zi]:l,[di]:h},Ze={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ee={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ne extends me{constructor(t,i){super(t,i),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=N.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===J&&this.cycle()}static get Default(){return Ze}static get DefaultType(){return ee}static get NAME(){return"carousel"}next(){this._slide(m)}nextWhenVisible(){!document.hidden&&ve(this._element)&&this.next()}prev(){this._slide(f)}pause(){this._isSliding&&u(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?C.one(this._element,T,()=>this.cycle()):this.cycle())}to(t){const i=this._getItems();if(t>i.length-1||t<0)return;if(this._isSliding)return void C.one(this._element,T,()=>this.to(t));const r=this._getItemIndex(this._getActive());if(r===t)return;const a=t>r?m:f;this._slide(a,i[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&C.on(this._element,M,t=>this._keydown(t)),this._config.pause==="hover"&&(C.on(this._element,z,()=>this.pause()),C.on(this._element,K,()=>this._maybeEnableCycle())),this._config.touch&&Je.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of N.find(".carousel-item img",this._element))C.on(i,U,r=>r.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(h)),rightCallback:()=>this._slide(this._directionToOrder(l)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Je(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const i=Et[t.key];i&&(t.preventDefault(),this._slide(this._directionToOrder(i)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const i=N.findOne(Oe,this._indicatorsElement);i.classList.remove(ae),i.removeAttribute("aria-current");const r=N.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(ae),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const i=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=i||this._config.defaultInterval}_slide(t,i=null){if(this._isSliding)return;const r=this._getActive(),a=t===m,d=i||In(this._getItems(),r,a,this._config.wrap);if(d===r)return;const g=this._getItemIndex(d),y=$=>C.trigger(this._element,$,{relatedTarget:d,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:g});if(y(_).defaultPrevented||!r||!d)return;const k=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(g),this._activeElement=d;const E=a?"carousel-item-start":"carousel-item-end",w=a?"carousel-item-next":"carousel-item-prev";d.classList.add(w),Ye(d),r.classList.add(E),d.classList.add(E),this._queueCallback(()=>{d.classList.remove(E,w),d.classList.add(ae),r.classList.remove(ae,w,E),this._isSliding=!1,y(T)},r,this._isAnimated()),k&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return N.findOne(Ie,this._element)}_getItems(){return N.find(be,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return he()?t===h?f:m:t===h?m:f}_orderToDirection(t){return he()?t===f?h:l:t===f?l:h}static jQueryInterface(t){return this.each(function(){const i=ne.getOrCreateInstance(this,t);if(typeof t!="number"){if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}}else i.to(t)})}}C.on(document,Q,"[data-bs-slide], [data-bs-slide-to]",function(s){const t=N.getElementFromSelector(this);if(!t||!t.classList.contains(J))return;s.preventDefault();const i=ne.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");return r?(i.to(r),void i._maybeEnableCycle()):Be.getDataAttribute(this,"slide")==="next"?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),C.on(window,re,()=>{const s=N.find('[data-bs-ride="carousel"]');for(const t of s)ne.getOrCreateInstance(t)}),te(ne);const ge=".bs.collapse",wt=`show${ge}`,wr=`shown${ge}`,Sr=`hide${ge}`,Nr=`hidden${ge}`,Tr=`click${ge}.data-api`,Ii="show",St="collapse",ui="collapsing",Ar=`:scope .${St} .${St}`,Fi='[data-bs-toggle="collapse"]',Br={parent:null,toggle:!0},Or={parent:"(null|element)",toggle:"boolean"};class Nt extends me{constructor(t,i){super(t,i),this._isTransitioning=!1,this._triggerArray=[];const r=N.find(Fi);for(const a of r){const d=N.getSelectorFromElement(a),g=N.find(d).filter(y=>y===this._element);d!==null&&g.length&&this._triggerArray.push(a)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Br}static get DefaultType(){return Or}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(a=>a!==this._element).map(a=>Nt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||C.trigger(this._element,wt).defaultPrevented)return;for(const a of t)a.hide();const i=this._getDimension();this._element.classList.remove(St),this._element.classList.add(ui),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ui),this._element.classList.add(St,Ii),this._element.style[i]="",C.trigger(this._element,wr)},this._element,!0),this._element.style[i]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||C.trigger(this._element,Sr).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Ye(this._element),this._element.classList.add(ui),this._element.classList.remove(St,Ii);for(const i of this._triggerArray){const r=N.getElementFromSelector(i);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ui),this._element.classList.add(St),C.trigger(this._element,Nr)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ii)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=Y(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Fi);for(const i of t){const r=N.getElementFromSelector(i);r&&this._addAriaAndCollapsedClass([i],this._isShown(r))}}_getFirstLevelChildren(t){const i=N.find(Ar,this._config.parent);return N.find(t,this._config.parent).filter(r=>!i.includes(r))}_addAriaAndCollapsedClass(t,i){if(t.length)for(const r of t)r.classList.toggle("collapsed",!i),r.setAttribute("aria-expanded",i)}static jQueryInterface(t){const i={};return typeof t=="string"&&/show|hide/.test(t)&&(i.toggle=!1),this.each(function(){const r=Nt.getOrCreateInstance(this,i);if(typeof t=="string"){if(r[t]===void 0)throw new TypeError(`No method named "${t}"`);r[t]()}})}}C.on(document,Tr,Fi,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of N.getMultipleElementsFromSelector(this))Nt.getOrCreateInstance(t,{toggle:!1}).toggle()}),te(Nt);var ce="top",ye="bottom",_e="right",de="left",fi="auto",Tt=[ce,ye,_e,de],lt="start",At="end",wo="clippingParents",xi="viewport",Bt="popper",So="reference",Pi=Tt.reduce(function(s,t){return s.concat([t+"-"+lt,t+"-"+At])},[]),ji=[].concat(Tt,[fi]).reduce(function(s,t){return s.concat([t,t+"-"+lt,t+"-"+At])},[]),No="beforeRead",To="read",Ao="afterRead",Bo="beforeMain",Oo="main",Do="afterMain",Vo="beforeWrite",Mo="write",Lo="afterWrite",zo=[No,To,Ao,Bo,Oo,Do,Vo,Mo,Lo];function Fe(s){return s?(s.nodeName||"").toLowerCase():null}function Ce(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var t=s.ownerDocument;return t&&t.defaultView||window}return s}function at(s){return s instanceof Ce(s).Element||s instanceof Element}function we(s){return s instanceof Ce(s).HTMLElement||s instanceof HTMLElement}function Wi(s){return typeof ShadowRoot<"u"&&(s instanceof Ce(s).ShadowRoot||s instanceof ShadowRoot)}const Ri={name:"applyStyles",enabled:!0,phase:"write",fn:function(s){var t=s.state;Object.keys(t.elements).forEach(function(i){var r=t.styles[i]||{},a=t.attributes[i]||{},d=t.elements[i];we(d)&&Fe(d)&&(Object.assign(d.style,r),Object.keys(a).forEach(function(g){var y=a[g];y===!1?d.removeAttribute(g):d.setAttribute(g,y===!0?"":y)}))})},effect:function(s){var t=s.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],d=t.attributes[r]||{},g=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:i[r]).reduce(function(y,k){return y[k]="",y},{});we(a)&&Fe(a)&&(Object.assign(a.style,g),Object.keys(d).forEach(function(y){a.removeAttribute(y)}))})}},requires:["computeStyles"]};function xe(s){return s.split("-")[0]}var ct=Math.max,pi=Math.min,Ot=Math.round;function qi(){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 Io(){return!/^((?!chrome|android).)*safari/i.test(qi())}function Dt(s,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var r=s.getBoundingClientRect(),a=1,d=1;t&&we(s)&&(a=s.offsetWidth>0&&Ot(r.width)/s.offsetWidth||1,d=s.offsetHeight>0&&Ot(r.height)/s.offsetHeight||1);var g=(at(s)?Ce(s):window).visualViewport,y=!Io()&&i,k=(r.left+(y&&g?g.offsetLeft:0))/a,E=(r.top+(y&&g?g.offsetTop:0))/d,w=r.width/a,$=r.height/d;return{width:w,height:$,top:E,right:k+w,bottom:E+$,left:k,x:k,y:E}}function Hi(s){var t=Dt(s),i=s.offsetWidth,r=s.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:s.offsetLeft,y:s.offsetTop,width:i,height:r}}function Fo(s,t){var i=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(i&&Wi(i)){var r=t;do{if(r&&s.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qe(s){return Ce(s).getComputedStyle(s)}function Dr(s){return["table","td","th"].indexOf(Fe(s))>=0}function et(s){return((at(s)?s.ownerDocument:s.document)||window.document).documentElement}function hi(s){return Fe(s)==="html"?s:s.assignedSlot||s.parentNode||(Wi(s)?s.host:null)||et(s)}function xo(s){return we(s)&&qe(s).position!=="fixed"?s.offsetParent:null}function qn(s){for(var t=Ce(s),i=xo(s);i&&Dr(i)&&qe(i).position==="static";)i=xo(i);return i&&(Fe(i)==="html"||Fe(i)==="body"&&qe(i).position==="static")?t:i||function(r){var a=/firefox/i.test(qi());if(/Trident/i.test(qi())&&we(r)&&qe(r).position==="fixed")return null;var d=hi(r);for(Wi(d)&&(d=d.host);we(d)&&["html","body"].indexOf(Fe(d))<0;){var g=qe(d);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||a&&g.willChange==="filter"||a&&g.filter&&g.filter!=="none")return d;d=d.parentNode}return null}(s)||t}function Ui(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function Hn(s,t,i){return ct(s,pi(t,i))}function Po(s){return Object.assign({},{top:0,right:0,bottom:0,left:0},s)}function jo(s,t){return t.reduce(function(i,r){return i[r]=s,i},{})}const Wo={name:"arrow",enabled:!0,phase:"main",fn:function(s){var t,i=s.state,r=s.name,a=s.options,d=i.elements.arrow,g=i.modifiersData.popperOffsets,y=xe(i.placement),k=Ui(y),E=[de,_e].indexOf(y)>=0?"height":"width";if(d&&g){var w=function(q,W){return Po(typeof(q=typeof q=="function"?q(Object.assign({},W.rects,{placement:W.placement})):q)!="number"?q:jo(q,Tt))}(a.padding,i),$=Hi(d),L=k==="y"?ce:de,A=k==="y"?ye:_e,D=i.rects.reference[E]+i.rects.reference[k]-g[k]-i.rects.popper[E],O=g[k]-i.rects.reference[k],V=qn(d),R=V?k==="y"?V.clientHeight||0:V.clientWidth||0:0,X=D/2-O/2,F=w[L],P=R-$[E]-w[A],I=R/2-$[E]/2+X,x=Hn(F,I,P),j=k;i.modifiersData[r]=((t={})[j]=x,t.centerOffset=x-I,t)}},effect:function(s){var t=s.state,i=s.options.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r!="string"||(r=t.elements.popper.querySelector(r)))&&Fo(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vt(s){return s.split("-")[1]}var Vr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ro(s){var t,i=s.popper,r=s.popperRect,a=s.placement,d=s.variation,g=s.offsets,y=s.position,k=s.gpuAcceleration,E=s.adaptive,w=s.roundOffsets,$=s.isFixed,L=g.x,A=L===void 0?0:L,D=g.y,O=D===void 0?0:D,V=typeof w=="function"?w({x:A,y:O}):{x:A,y:O};A=V.x,O=V.y;var R=g.hasOwnProperty("x"),X=g.hasOwnProperty("y"),F=de,P=ce,I=window;if(E){var x=qn(i),j="clientHeight",q="clientWidth";x===Ce(i)&&qe(x=et(i)).position!=="static"&&y==="absolute"&&(j="scrollHeight",q="scrollWidth"),(a===ce||(a===de||a===_e)&&d===At)&&(P=ye,O-=($&&x===I&&I.visualViewport?I.visualViewport.height:x[j])-r.height,O*=k?1:-1),a!==de&&(a!==ce&&a!==ye||d!==At)||(F=_e,A-=($&&x===I&&I.visualViewport?I.visualViewport.width:x[q])-r.width,A*=k?1:-1)}var W,Z=Object.assign({position:y},E&&Vr),ke=w===!0?function(Ve,ue){var Ne=Ve.x,Te=Ve.y,G=ue.devicePixelRatio||1;return{x:Ot(Ne*G)/G||0,y:Ot(Te*G)/G||0}}({x:A,y:O},Ce(i)):{x:A,y:O};return A=ke.x,O=ke.y,k?Object.assign({},Z,((W={})[P]=X?"0":"",W[F]=R?"0":"",W.transform=(I.devicePixelRatio||1)<=1?"translate("+A+"px, "+O+"px)":"translate3d("+A+"px, "+O+"px, 0)",W)):Object.assign({},Z,((t={})[P]=X?O+"px":"",t[F]=R?A+"px":"",t.transform="",t))}const Xi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(s){var t=s.state,i=s.options,r=i.gpuAcceleration,a=r===void 0||r,d=i.adaptive,g=d===void 0||d,y=i.roundOffsets,k=y===void 0||y,E={placement:xe(t.placement),variation:Vt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ro(Object.assign({},E,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:g,roundOffsets:k})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ro(Object.assign({},E,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:k})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var mi={passive:!0};const Yi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(s){var t=s.state,i=s.instance,r=s.options,a=r.scroll,d=a===void 0||a,g=r.resize,y=g===void 0||g,k=Ce(t.elements.popper),E=[].concat(t.scrollParents.reference,t.scrollParents.popper);return d&&E.forEach(function(w){w.addEventListener("scroll",i.update,mi)}),y&&k.addEventListener("resize",i.update,mi),function(){d&&E.forEach(function(w){w.removeEventListener("scroll",i.update,mi)}),y&&k.removeEventListener("resize",i.update,mi)}},data:{}};var Mr={left:"right",right:"left",bottom:"top",top:"bottom"};function gi(s){return s.replace(/left|right|bottom|top/g,function(t){return Mr[t]})}var Lr={start:"end",end:"start"};function qo(s){return s.replace(/start|end/g,function(t){return Lr[t]})}function Ki(s){var t=Ce(s);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gi(s){return Dt(et(s)).left+Ki(s).scrollLeft}function Qi(s){var t=qe(s),i=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+r)}function Ho(s){return["html","body","#document"].indexOf(Fe(s))>=0?s.ownerDocument.body:we(s)&&Qi(s)?s:Ho(hi(s))}function Un(s,t){var i;t===void 0&&(t=[]);var r=Ho(s),a=r===((i=s.ownerDocument)==null?void 0:i.body),d=Ce(r),g=a?[d].concat(d.visualViewport||[],Qi(r)?r:[]):r,y=t.concat(g);return a?y:y.concat(Un(hi(g)))}function Ji(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Uo(s,t,i){return t===xi?Ji(function(r,a){var d=Ce(r),g=et(r),y=d.visualViewport,k=g.clientWidth,E=g.clientHeight,w=0,$=0;if(y){k=y.width,E=y.height;var L=Io();(L||!L&&a==="fixed")&&(w=y.offsetLeft,$=y.offsetTop)}return{width:k,height:E,x:w+Gi(r),y:$}}(s,i)):at(t)?function(r,a){var d=Dt(r,!1,a==="fixed");return d.top=d.top+r.clientTop,d.left=d.left+r.clientLeft,d.bottom=d.top+r.clientHeight,d.right=d.left+r.clientWidth,d.width=r.clientWidth,d.height=r.clientHeight,d.x=d.left,d.y=d.top,d}(t,i):Ji(function(r){var a,d=et(r),g=Ki(r),y=(a=r.ownerDocument)==null?void 0:a.body,k=ct(d.scrollWidth,d.clientWidth,y?y.scrollWidth:0,y?y.clientWidth:0),E=ct(d.scrollHeight,d.clientHeight,y?y.scrollHeight:0,y?y.clientHeight:0),w=-g.scrollLeft+Gi(r),$=-g.scrollTop;return qe(y||d).direction==="rtl"&&(w+=ct(d.clientWidth,y?y.clientWidth:0)-k),{width:k,height:E,x:w,y:$}}(et(s)))}function Xo(s){var t,i=s.reference,r=s.element,a=s.placement,d=a?xe(a):null,g=a?Vt(a):null,y=i.x+i.width/2-r.width/2,k=i.y+i.height/2-r.height/2;switch(d){case ce:t={x:y,y:i.y-r.height};break;case ye:t={x:y,y:i.y+i.height};break;case _e:t={x:i.x+i.width,y:k};break;case de:t={x:i.x-r.width,y:k};break;default:t={x:i.x,y:i.y}}var E=d?Ui(d):null;if(E!=null){var w=E==="y"?"height":"width";switch(g){case lt:t[E]=t[E]-(i[w]/2-r[w]/2);break;case At:t[E]=t[E]+(i[w]/2-r[w]/2)}}return t}function Mt(s,t){t===void 0&&(t={});var i=t,r=i.placement,a=r===void 0?s.placement:r,d=i.strategy,g=d===void 0?s.strategy:d,y=i.boundary,k=y===void 0?wo:y,E=i.rootBoundary,w=E===void 0?xi:E,$=i.elementContext,L=$===void 0?Bt:$,A=i.altBoundary,D=A!==void 0&&A,O=i.padding,V=O===void 0?0:O,R=Po(typeof V!="number"?V:jo(V,Tt)),X=L===Bt?So:Bt,F=s.rects.popper,P=s.elements[D?X:L],I=function(ue,Ne,Te,G){var Pe=Ne==="clippingParents"?function(H){var fe=Un(hi(H)),Ae=["absolute","fixed"].indexOf(qe(H).position)>=0&&we(H)?qn(H):H;return at(Ae)?fe.filter(function(nt){return at(nt)&&Fo(nt,Ae)&&Fe(nt)!=="body"}):[]}(ue):[].concat(Ne),je=[].concat(Pe,[Te]),It=je[0],ie=je.reduce(function(H,fe){var Ae=Uo(ue,fe,G);return H.top=ct(Ae.top,H.top),H.right=pi(Ae.right,H.right),H.bottom=pi(Ae.bottom,H.bottom),H.left=ct(Ae.left,H.left),H},Uo(ue,It,G));return ie.width=ie.right-ie.left,ie.height=ie.bottom-ie.top,ie.x=ie.left,ie.y=ie.top,ie}(at(P)?P:P.contextElement||et(s.elements.popper),k,w,g),x=Dt(s.elements.reference),j=Xo({reference:x,element:F,placement:a}),q=Ji(Object.assign({},F,j)),W=L===Bt?q:x,Z={top:I.top-W.top+R.top,bottom:W.bottom-I.bottom+R.bottom,left:I.left-W.left+R.left,right:W.right-I.right+R.right},ke=s.modifiersData.offset;if(L===Bt&&ke){var Ve=ke[a];Object.keys(Z).forEach(function(ue){var Ne=[_e,ye].indexOf(ue)>=0?1:-1,Te=[ce,ye].indexOf(ue)>=0?"y":"x";Z[ue]+=Ve[Te]*Ne})}return Z}function zr(s,t){t===void 0&&(t={});var i=t,r=i.placement,a=i.boundary,d=i.rootBoundary,g=i.padding,y=i.flipVariations,k=i.allowedAutoPlacements,E=k===void 0?ji:k,w=Vt(r),$=w?y?Pi:Pi.filter(function(D){return Vt(D)===w}):Tt,L=$.filter(function(D){return E.indexOf(D)>=0});L.length===0&&(L=$);var A=L.reduce(function(D,O){return D[O]=Mt(s,{placement:O,boundary:a,rootBoundary:d,padding:g})[xe(O)],D},{});return Object.keys(A).sort(function(D,O){return A[D]-A[O]})}const Yo={name:"flip",enabled:!0,phase:"main",fn:function(s){var t=s.state,i=s.options,r=s.name;if(!t.modifiersData[r]._skip){for(var a=i.mainAxis,d=a===void 0||a,g=i.altAxis,y=g===void 0||g,k=i.fallbackPlacements,E=i.padding,w=i.boundary,$=i.rootBoundary,L=i.altBoundary,A=i.flipVariations,D=A===void 0||A,O=i.allowedAutoPlacements,V=t.options.placement,R=xe(V),X=k||(R!==V&&D?function(H){if(xe(H)===fi)return[];var fe=gi(H);return[qo(H),fe,qo(fe)]}(V):[gi(V)]),F=[V].concat(X).reduce(function(H,fe){return H.concat(xe(fe)===fi?zr(t,{placement:fe,boundary:w,rootBoundary:$,padding:E,flipVariations:D,allowedAutoPlacements:O}):fe)},[]),P=t.rects.reference,I=t.rects.popper,x=new Map,j=!0,q=F[0],W=0;W<F.length;W++){var Z=F[W],ke=xe(Z),Ve=Vt(Z)===lt,ue=[ce,ye].indexOf(ke)>=0,Ne=ue?"width":"height",Te=Mt(t,{placement:Z,boundary:w,rootBoundary:$,altBoundary:L,padding:E}),G=ue?Ve?_e:de:Ve?ye:ce;P[Ne]>I[Ne]&&(G=gi(G));var Pe=gi(G),je=[];if(d&&je.push(Te[ke]<=0),y&&je.push(Te[G]<=0,Te[Pe]<=0),je.every(function(H){return H})){q=Z,j=!1;break}x.set(Z,je)}if(j)for(var It=function(H){var fe=F.find(function(Ae){var nt=x.get(Ae);if(nt)return nt.slice(0,H).every(function(wi){return wi})});if(fe)return q=fe,"break"},ie=D?3:1;ie>0&&It(ie)!=="break";ie--);t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ko(s,t,i){return i===void 0&&(i={x:0,y:0}),{top:s.top-t.height-i.y,right:s.right-t.width+i.x,bottom:s.bottom-t.height+i.y,left:s.left-t.width-i.x}}function Go(s){return[ce,_e,ye,de].some(function(t){return s[t]>=0})}const Qo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(s){var t=s.state,i=s.name,r=t.rects.reference,a=t.rects.popper,d=t.modifiersData.preventOverflow,g=Mt(t,{elementContext:"reference"}),y=Mt(t,{altBoundary:!0}),k=Ko(g,r),E=Ko(y,a,d),w=Go(k),$=Go(E);t.modifiersData[i]={referenceClippingOffsets:k,popperEscapeOffsets:E,isReferenceHidden:w,hasPopperEscaped:$},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":w,"data-popper-escaped":$})}},Jo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(s){var t=s.state,i=s.options,r=s.name,a=i.offset,d=a===void 0?[0,0]:a,g=ji.reduce(function(w,$){return w[$]=function(L,A,D){var O=xe(L),V=[de,ce].indexOf(O)>=0?-1:1,R=typeof D=="function"?D(Object.assign({},A,{placement:L})):D,X=R[0],F=R[1];return X=X||0,F=(F||0)*V,[de,_e].indexOf(O)>=0?{x:F,y:X}:{x:X,y:F}}($,t.rects,d),w},{}),y=g[t.placement],k=y.x,E=y.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=k,t.modifiersData.popperOffsets.y+=E),t.modifiersData[r]=g}},Zi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(s){var t=s.state,i=s.name;t.modifiersData[i]=Xo({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Zo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(s){var t=s.state,i=s.options,r=s.name,a=i.mainAxis,d=a===void 0||a,g=i.altAxis,y=g!==void 0&&g,k=i.boundary,E=i.rootBoundary,w=i.altBoundary,$=i.padding,L=i.tether,A=L===void 0||L,D=i.tetherOffset,O=D===void 0?0:D,V=Mt(t,{boundary:k,rootBoundary:E,padding:$,altBoundary:w}),R=xe(t.placement),X=Vt(t.placement),F=!X,P=Ui(R),I=P==="x"?"y":"x",x=t.modifiersData.popperOffsets,j=t.rects.reference,q=t.rects.popper,W=typeof O=="function"?O(Object.assign({},t.rects,{placement:t.placement})):O,Z=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),ke=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ve={x:0,y:0};if(x){if(d){var ue,Ne=P==="y"?ce:de,Te=P==="y"?ye:_e,G=P==="y"?"height":"width",Pe=x[P],je=Pe+V[Ne],It=Pe-V[Te],ie=A?-q[G]/2:0,H=X===lt?j[G]:q[G],fe=X===lt?-q[G]:-j[G],Ae=t.elements.arrow,nt=A&&Ae?Hi(Ae):{width:0,height:0},wi=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},xs=wi[Ne],Ps=wi[Te],Si=Hn(0,j[G],nt[G]),ha=F?j[G]/2-ie-Si-xs-Z.mainAxis:H-Si-xs-Z.mainAxis,ma=F?-j[G]/2+ie+Si+Ps+Z.mainAxis:fe+Si+Ps+Z.mainAxis,ho=t.elements.arrow&&qn(t.elements.arrow),ga=ho?P==="y"?ho.clientTop||0:ho.clientLeft||0:0,js=(ue=ke?.[P])!=null?ue:0,va=Pe+ma-js,Ws=Hn(A?pi(je,Pe+ha-js-ga):je,Pe,A?ct(It,va):It);x[P]=Ws,Ve[P]=Ws-Pe}if(y){var Rs,ba=P==="x"?ce:de,ya=P==="x"?ye:_e,vt=x[I],Ni=I==="y"?"height":"width",qs=vt+V[ba],Hs=vt-V[ya],mo=[ce,de].indexOf(R)!==-1,Us=(Rs=ke?.[I])!=null?Rs:0,Xs=mo?qs:vt-j[Ni]-q[Ni]-Us+Z.altAxis,Ys=mo?vt+j[Ni]+q[Ni]-Us-Z.altAxis:Hs,Ks=A&&mo?function(_a,Ca,go){var Gs=Hn(_a,Ca,go);return Gs>go?go:Gs}(Xs,vt,Ys):Hn(A?Xs:qs,vt,A?Ys:Hs);x[I]=Ks,Ve[I]=Ks-vt}t.modifiersData[r]=Ve}},requiresIfExists:["offset"]};function Ir(s,t,i){i===void 0&&(i=!1);var r,a,d=we(t),g=we(t)&&function($){var L=$.getBoundingClientRect(),A=Ot(L.width)/$.offsetWidth||1,D=Ot(L.height)/$.offsetHeight||1;return A!==1||D!==1}(t),y=et(t),k=Dt(s,g,i),E={scrollLeft:0,scrollTop:0},w={x:0,y:0};return(d||!d&&!i)&&((Fe(t)!=="body"||Qi(y))&&(E=(r=t)!==Ce(r)&&we(r)?{scrollLeft:(a=r).scrollLeft,scrollTop:a.scrollTop}:Ki(r)),we(t)?((w=Dt(t,!0)).x+=t.clientLeft,w.y+=t.clientTop):y&&(w.x=Gi(y))),{x:k.left+E.scrollLeft-w.x,y:k.top+E.scrollTop-w.y,width:k.width,height:k.height}}function Fr(s){var t=new Map,i=new Set,r=[];function a(d){i.add(d.name),[].concat(d.requires||[],d.requiresIfExists||[]).forEach(function(g){if(!i.has(g)){var y=t.get(g);y&&a(y)}}),r.push(d)}return s.forEach(function(d){t.set(d.name,d)}),s.forEach(function(d){i.has(d.name)||a(d)}),r}var es={placement:"bottom",modifiers:[],strategy:"absolute"};function ts(){for(var s=arguments.length,t=new Array(s),i=0;i<s;i++)t[i]=arguments[i];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function vi(s){s===void 0&&(s={});var t=s,i=t.defaultModifiers,r=i===void 0?[]:i,a=t.defaultOptions,d=a===void 0?es:a;return function(g,y,k){k===void 0&&(k=d);var E,w,$={placement:"bottom",orderedModifiers:[],options:Object.assign({},es,d),modifiersData:{},elements:{reference:g,popper:y},attributes:{},styles:{}},L=[],A=!1,D={state:$,setOptions:function(V){var R=typeof V=="function"?V($.options):V;O(),$.options=Object.assign({},d,$.options,R),$.scrollParents={reference:at(g)?Un(g):g.contextElement?Un(g.contextElement):[],popper:Un(y)};var X,F,P=function(I){var x=Fr(I);return zo.reduce(function(j,q){return j.concat(x.filter(function(W){return W.phase===q}))},[])}((X=[].concat(r,$.options.modifiers),F=X.reduce(function(I,x){var j=I[x.name];return I[x.name]=j?Object.assign({},j,x,{options:Object.assign({},j.options,x.options),data:Object.assign({},j.data,x.data)}):x,I},{}),Object.keys(F).map(function(I){return F[I]})));return $.orderedModifiers=P.filter(function(I){return I.enabled}),$.orderedModifiers.forEach(function(I){var x=I.name,j=I.options,q=j===void 0?{}:j,W=I.effect;if(typeof W=="function"){var Z=W({state:$,name:x,instance:D,options:q});L.push(Z||function(){})}}),D.update()},forceUpdate:function(){if(!A){var V=$.elements,R=V.reference,X=V.popper;if(ts(R,X)){$.rects={reference:Ir(R,qn(X),$.options.strategy==="fixed"),popper:Hi(X)},$.reset=!1,$.placement=$.options.placement,$.orderedModifiers.forEach(function(W){return $.modifiersData[W.name]=Object.assign({},W.data)});for(var F=0;F<$.orderedModifiers.length;F++)if($.reset!==!0){var P=$.orderedModifiers[F],I=P.fn,x=P.options,j=x===void 0?{}:x,q=P.name;typeof I=="function"&&($=I({state:$,options:j,name:q,instance:D})||$)}else $.reset=!1,F=-1}}},update:(E=function(){return new Promise(function(V){D.forceUpdate(),V($)})},function(){return w||(w=new Promise(function(V){Promise.resolve().then(function(){w=void 0,V(E())})})),w}),destroy:function(){O(),A=!0}};if(!ts(g,y))return D;function O(){L.forEach(function(V){return V()}),L=[]}return D.setOptions(k).then(function(V){!A&&k.onFirstUpdate&&k.onFirstUpdate(V)}),D}}var xr=vi(),Pr=vi({defaultModifiers:[Yi,Zi,Xi,Ri]}),eo=vi({defaultModifiers:[Yi,Zi,Xi,Ri,Jo,Yo,Zo,Wo,Qo]});const ns=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Do,afterRead:Ao,afterWrite:Lo,applyStyles:Ri,arrow:Wo,auto:fi,basePlacements:Tt,beforeMain:Bo,beforeRead:No,beforeWrite:Vo,bottom:ye,clippingParents:wo,computeStyles:Xi,createPopper:eo,createPopperBase:xr,createPopperLite:Pr,detectOverflow:Mt,end:At,eventListeners:Yi,flip:Yo,hide:Qo,left:de,main:Oo,modifierPhases:zo,offset:Jo,placements:ji,popper:Bt,popperGenerator:vi,popperOffsets:Zi,preventOverflow:Zo,read:To,reference:So,right:_e,start:lt,top:ce,variationPlacements:Pi,viewport:xi,write:Mo},Symbol.toStringTag,{value:"Module"})),is="dropdown",dt=".bs.dropdown",to=".data-api",jr="ArrowUp",os="ArrowDown",Wr=`hide${dt}`,Rr=`hidden${dt}`,qr=`show${dt}`,Hr=`shown${dt}`,ss=`click${dt}${to}`,rs=`keydown${dt}${to}`,Ur=`keyup${dt}${to}`,Lt="show",ut='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Xr=`${ut}.${Lt}`,bi=".dropdown-menu",Yr=he()?"top-end":"top-start",Kr=he()?"top-start":"top-end",Gr=he()?"bottom-end":"bottom-start",Qr=he()?"bottom-start":"bottom-end",Jr=he()?"left-start":"right-start",Zr=he()?"right-start":"left-start",el={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},tl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class De extends me{constructor(t,i){super(t,i),this._popper=null,this._parent=this._element.parentNode,this._menu=N.next(this._element,bi)[0]||N.prev(this._element,bi)[0]||N.findOne(bi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return el}static get DefaultType(){return tl}static get NAME(){return is}toggle(){return this._isShown()?this.hide():this.show()}show(){if(pe(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!C.trigger(this._element,qr,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const i of[].concat(...document.body.children))C.on(i,"mouseover",Xe);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Lt),this._element.classList.add(Lt),C.trigger(this._element,Hr,t)}}hide(){if(pe(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(!C.trigger(this._element,Wr,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))C.off(i,"mouseover",Xe);this._popper&&this._popper.destroy(),this._menu.classList.remove(Lt),this._element.classList.remove(Lt),this._element.setAttribute("aria-expanded","false"),Be.removeDataAttribute(this._menu,"popper"),C.trigger(this._element,Rr,t),this._element.focus()}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!S(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${is.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(ns===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:S(this._config.reference)?t=Y(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const i=this._getPopperConfig();this._popper=eo(t,this._menu,i)}_isShown(){return this._menu.classList.contains(Lt)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Jr;if(t.classList.contains("dropstart"))return Zr;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const i=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains("dropup")?i?Kr:Yr:i?Qr:Gr}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(i=>Number.parseInt(i,10)):typeof t=="function"?i=>t(i,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")&&(Be.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...oe(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:i}){const r=N.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(a=>ve(a));r.length&&In(r,i,t===os,!r.includes(i)).focus()}static jQueryInterface(t){return this.each(function(){const i=De.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}static clearMenus(t){if(t.button===2||t.type==="keyup"&&t.key!=="Tab")return;const i=N.find(Xr);for(const r of i){const a=De.getInstance(r);if(!a||a._config.autoClose===!1)continue;const d=t.composedPath(),g=d.includes(a._menu);if(d.includes(a._element)||a._config.autoClose==="inside"&&!g||a._config.autoClose==="outside"&&g||a._menu.contains(t.target)&&(t.type==="keyup"&&t.key==="Tab"||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const y={relatedTarget:a._element};t.type==="click"&&(y.clickEvent=t),a._completeHide(y)}}static dataApiKeydownHandler(t){const i=/input|textarea/i.test(t.target.tagName),r=t.key==="Escape",a=[jr,os].includes(t.key);if(!a&&!r||i&&!r)return;t.preventDefault();const d=this.matches(ut)?this:N.prev(this,ut)[0]||N.next(this,ut)[0]||N.findOne(ut,t.delegateTarget.parentNode),g=De.getOrCreateInstance(d);if(a)return t.stopPropagation(),g.show(),void g._selectMenuItem(t);g._isShown()&&(t.stopPropagation(),g.hide(),d.focus())}}C.on(document,rs,ut,De.dataApiKeydownHandler),C.on(document,rs,bi,De.dataApiKeydownHandler),C.on(document,ss,De.clearMenus),C.on(document,Ur,De.clearMenus),C.on(document,ss,ut,function(s){s.preventDefault(),De.getOrCreateInstance(this).toggle()}),te(De);const ls="backdrop",as="show",cs=`mousedown.bs.${ls}`,nl={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},il={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ds extends $e{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return nl}static get DefaultType(){return il}static get NAME(){return ls}show(t){if(!this._config.isVisible)return void oe(t);this._append();const i=this._getElement();this._config.isAnimated&&Ye(i),i.classList.add(as),this._emulateAnimation(()=>{oe(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(as),this._emulateAnimation(()=>{this.dispose(),oe(t)})):oe(t)}dispose(){this._isAppended&&(C.off(this._element,cs),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=Y(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),C.on(t,cs,()=>{oe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Jn(t,this._getElement(),this._config.isAnimated)}}const yi=".bs.focustrap",ol=`focusin${yi}`,sl=`keydown.tab${yi}`,us="backward",rl={autofocus:!0,trapElement:null},ll={autofocus:"boolean",trapElement:"element"};class fs extends $e{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return rl}static get DefaultType(){return ll}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),C.off(document,yi),C.on(document,ol,t=>this._handleFocusin(t)),C.on(document,sl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,C.off(document,yi))}_handleFocusin(t){const{trapElement:i}=this._config;if(t.target===document||t.target===i||i.contains(t.target))return;const r=N.focusableChildren(i);r.length===0?i.focus():this._lastTabNavDirection===us?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?us:"forward")}}const ps=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hs=".sticky-top",_i="padding-right",ms="margin-right";class no{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,_i,i=>i+t),this._setElementAttributes(ps,_i,i=>i+t),this._setElementAttributes(hs,ms,i=>i-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,_i),this._resetElementAttributes(ps,_i),this._resetElementAttributes(hs,ms)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,i,r){const a=this.getWidth();this._applyManipulationCallback(t,d=>{if(d!==this._element&&window.innerWidth>d.clientWidth+a)return;this._saveInitialAttribute(d,i);const g=window.getComputedStyle(d).getPropertyValue(i);d.style.setProperty(i,`${r(Number.parseFloat(g))}px`)})}_saveInitialAttribute(t,i){const r=t.style.getPropertyValue(i);r&&Be.setDataAttribute(t,i,r)}_resetElementAttributes(t,i){this._applyManipulationCallback(t,r=>{const a=Be.getDataAttribute(r,i);a!==null?(Be.removeDataAttribute(r,i),r.style.setProperty(i,a)):r.style.removeProperty(i)})}_applyManipulationCallback(t,i){if(S(t))i(t);else for(const r of N.find(t,this._element))i(r)}}const Se=".bs.modal",al=`hide${Se}`,cl=`hidePrevented${Se}`,gs=`hidden${Se}`,vs=`show${Se}`,dl=`shown${Se}`,ul=`resize${Se}`,fl=`click.dismiss${Se}`,pl=`mousedown.dismiss${Se}`,hl=`keydown.dismiss${Se}`,ml=`click${Se}.data-api`,bs="modal-open",ys="show",io="modal-static",gl={backdrop:!0,focus:!0,keyboard:!0},vl={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ft extends me{constructor(t,i){super(t,i),this._dialog=N.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new no,this._addEventListeners()}static get Default(){return gl}static get DefaultType(){return vl}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||C.trigger(this._element,vs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(bs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(C.trigger(this._element,al).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ys),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){C.off(window,Se),C.off(this._dialog,Se),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ds({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new fs({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 i=N.findOne(".modal-body",this._dialog);i&&(i.scrollTop=0),Ye(this._element),this._element.classList.add(ys),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,C.trigger(this._element,dl,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){C.on(this._element,hl,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),C.on(window,ul,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),C.on(this._element,pl,t=>{C.one(this._element,fl,i=>{this._element===t.target&&this._element===i.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(bs),this._resetAdjustments(),this._scrollBar.reset(),C.trigger(this._element,gs)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(C.trigger(this._element,cl).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(io)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(io),this._queueCallback(()=>{this._element.classList.remove(io),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),r=i>0;if(r&&!t){const a=he()?"paddingLeft":"paddingRight";this._element.style[a]=`${i}px`}if(!r&&t){const a=he()?"paddingRight":"paddingLeft";this._element.style[a]=`${i}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){const r=ft.getOrCreateInstance(this,t);if(typeof t=="string"){if(r[t]===void 0)throw new TypeError(`No method named "${t}"`);r[t](i)}})}}C.on(document,ml,'[data-bs-toggle="modal"]',function(s){const t=N.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),C.one(t,vs,r=>{r.defaultPrevented||C.one(t,gs,()=>{ve(this)&&this.focus()})});const i=N.findOne(".modal.show");i&&ft.getInstance(i).hide(),ft.getOrCreateInstance(t).toggle(this)}),st(ft),te(ft);const He=".bs.offcanvas",_s=".data-api",bl=`load${He}${_s}`,Cs="show",ks="showing",$s="hiding",Es=".offcanvas.show",yl=`show${He}`,_l=`shown${He}`,Cl=`hide${He}`,ws=`hidePrevented${He}`,Ss=`hidden${He}`,kl=`resize${He}`,$l=`click${He}${_s}`,El=`keydown.dismiss${He}`,wl={backdrop:!0,keyboard:!0,scroll:!1},Sl={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ue extends me{constructor(t,i){super(t,i),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return wl}static get DefaultType(){return Sl}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||C.trigger(this._element,yl,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new no().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ks),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Cs),this._element.classList.remove(ks),C.trigger(this._element,_l,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(C.trigger(this._element,Cl).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($s),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Cs,$s),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new no().reset(),C.trigger(this._element,Ss)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new ds({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():C.trigger(this._element,ws)}:null})}_initializeFocusTrap(){return new fs({trapElement:this._element})}_addEventListeners(){C.on(this._element,El,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():C.trigger(this._element,ws))})}static jQueryInterface(t){return this.each(function(){const i=Ue.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}C.on(document,$l,'[data-bs-toggle="offcanvas"]',function(s){const t=N.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),pe(this))return;C.one(t,Ss,()=>{ve(this)&&this.focus()});const i=N.findOne(Es);i&&i!==t&&Ue.getInstance(i).hide(),Ue.getOrCreateInstance(t).toggle(this)}),C.on(window,bl,()=>{for(const s of N.find(Es))Ue.getOrCreateInstance(s).show()}),C.on(window,kl,()=>{for(const s of N.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Ue.getOrCreateInstance(s).hide()}),st(Ue),te(Ue);const Ns={"*":["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:[]},Nl=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Tl=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Al=(s,t)=>{const i=s.nodeName.toLowerCase();return t.includes(i)?!Nl.has(i)||!!Tl.test(s.nodeValue):t.filter(r=>r instanceof RegExp).some(r=>r.test(i))},Bl={allowList:Ns,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ol={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Dl={entry:"(string|element|function|null)",selector:"(string|element)"};class Vl extends $e{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Bl}static get DefaultType(){return Ol}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[a,d]of Object.entries(this._config.content))this._setContent(t,d,a);const i=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&i.classList.add(...r.split(" ")),i}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[i,r]of Object.entries(t))super._typeCheckConfig({selector:i,entry:r},Dl)}_setContent(t,i,r){const a=N.findOne(r,t);a&&((i=this._resolvePossibleFunction(i))?S(i)?this._putElementInTemplate(Y(i),a):this._config.html?a.innerHTML=this._maybeSanitize(i):a.textContent=i:a.remove())}_maybeSanitize(t){return this._config.sanitize?function(i,r,a){if(!i.length)return i;if(a&&typeof a=="function")return a(i);const d=new window.DOMParser().parseFromString(i,"text/html"),g=[].concat(...d.body.querySelectorAll("*"));for(const y of g){const k=y.nodeName.toLowerCase();if(!Object.keys(r).includes(k)){y.remove();continue}const E=[].concat(...y.attributes),w=[].concat(r["*"]||[],r[k]||[]);for(const $ of E)Al($,w)||y.removeAttribute($.nodeName)}return d.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return oe(t,[void 0,this])}_putElementInTemplate(t,i){if(this._config.html)return i.innerHTML="",void i.append(t);i.textContent=t.textContent}}const Ml=new Set(["sanitize","allowList","sanitizeFn"]),oo="fade",Ci="show",Ll=".tooltip-inner",Ts=".modal",As="hide.bs.modal",Xn="hover",so="focus",ro="click",zl={AUTO:"auto",TOP:"top",RIGHT:he()?"left":"right",BOTTOM:"bottom",LEFT:he()?"right":"left"},Il={allowList:Ns,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"},Fl={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 pt extends me{constructor(t,i){if(ns===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,i),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 Il}static get DefaultType(){return Fl}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),C.off(this._element.closest(Ts),As,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=C.trigger(this._element,this.constructor.eventName("show")),i=(Ct(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:a}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(r),C.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(Ci),"ontouchstart"in document.documentElement)for(const d of[].concat(...document.body.children))C.on(d,"mouseover",Xe);this._queueCallback(()=>{C.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!C.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ci),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))C.off(t,"mouseover",Xe);this._activeTrigger[ro]=!1,this._activeTrigger[so]=!1,this._activeTrigger[Xn]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),C.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 i=this._getTemplateFactory(t).toHtml();if(!i)return null;i.classList.remove(oo,Ci),i.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(a=>{do a+=Math.floor(1e6*Math.random());while(document.getElementById(a));return a})(this.constructor.NAME).toString();return i.setAttribute("id",r),this._isAnimated()&&i.classList.add(oo),i}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Vl({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ll]: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(oo)}_isShown(){return this.tip&&this.tip.classList.contains(Ci)}_createPopper(t){const i=oe(this._config.placement,[this,t,this._element]),r=zl[i.toUpperCase()];return eo(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(i=>Number.parseInt(i,10)):typeof t=="function"?i=>t(i,this._element):t}_resolvePossibleFunction(t){return oe(t,[this._element,this._element])}_getPopperConfig(t){const i={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:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...i,...oe(this._config.popperConfig,[void 0,i])}}_setListeners(){const t=this._config.trigger.split(" ");for(const i of t)if(i==="click")C.on(this._element,this.constructor.eventName("click"),this._config.selector,r=>{const a=this._initializeOnDelegatedTarget(r);a._activeTrigger[ro]=!(a._isShown()&&a._activeTrigger[ro]),a.toggle()});else if(i!=="manual"){const r=i===Xn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),a=i===Xn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");C.on(this._element,r,this._config.selector,d=>{const g=this._initializeOnDelegatedTarget(d);g._activeTrigger[d.type==="focusin"?so:Xn]=!0,g._enter()}),C.on(this._element,a,this._config.selector,d=>{const g=this._initializeOnDelegatedTarget(d);g._activeTrigger[d.type==="focusout"?so:Xn]=g._element.contains(d.relatedTarget),g._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},C.on(this._element.closest(Ts),As,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,i){clearTimeout(this._timeout),this._timeout=setTimeout(t,i)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const i=Be.getDataAttributes(this._element);for(const r of Object.keys(i))Ml.has(r)&&delete i[r];return t={...i,...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:Y(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[i,r]of Object.entries(this._config))this.constructor.Default[i]!==r&&(t[i]=r);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 i=pt.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}}te(pt);const xl=".popover-header",Pl=".popover-body",jl={...pt.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"},Wl={...pt.DefaultType,content:"(null|string|element|function)"};class ki extends pt{static get Default(){return jl}static get DefaultType(){return Wl}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[xl]:this._getTitle(),[Pl]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const i=ki.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}}te(ki);const lo=".bs.scrollspy",Rl=`activate${lo}`,Bs=`click${lo}`,ql=`load${lo}.data-api`,zt="active",ao="[href]",Os=".nav-link",Hl=`${Os}, .nav-item > ${Os}, .list-group-item`,Ul={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Xl={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Yn extends me{constructor(t,i){super(t,i),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 Ul}static get DefaultType(){return Xl}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=Y(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(i=>Number.parseFloat(i))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(C.off(this._config.target,Bs),C.on(this._config.target,Bs,ao,t=>{const i=this._observableSections.get(t.target.hash);if(i){t.preventDefault();const r=this._rootElement||window,a=i.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:a,behavior:"smooth"});r.scrollTop=a}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(i=>this._observerCallback(i),t)}_observerCallback(t){const i=g=>this._targetLinks.get(`#${g.target.id}`),r=g=>{this._previousScrollData.visibleEntryTop=g.target.offsetTop,this._process(i(g))},a=(this._rootElement||document.documentElement).scrollTop,d=a>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=a;for(const g of t){if(!g.isIntersecting){this._activeTarget=null,this._clearActiveClass(i(g));continue}const y=g.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(d&&y){if(r(g),!a)return}else d||y||r(g)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=N.find(ao,this._config.target);for(const i of t){if(!i.hash||pe(i))continue;const r=N.findOne(decodeURI(i.hash),this._element);ve(r)&&(this._targetLinks.set(decodeURI(i.hash),i),this._observableSections.set(i.hash,r))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(zt),this._activateParents(t),C.trigger(this._element,Rl,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))N.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(zt);else for(const i of N.parents(t,".nav, .list-group"))for(const r of N.prev(i,Hl))r.classList.add(zt)}_clearActiveClass(t){t.classList.remove(zt);const i=N.find(`${ao}.${zt}`,t);for(const r of i)r.classList.remove(zt)}static jQueryInterface(t){return this.each(function(){const i=Yn.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}C.on(window,ql,()=>{for(const s of N.find('[data-bs-spy="scroll"]'))Yn.getOrCreateInstance(s)}),te(Yn);const ht=".bs.tab",Yl=`hide${ht}`,Kl=`hidden${ht}`,Gl=`show${ht}`,Ql=`shown${ht}`,Jl=`click${ht}`,Zl=`keydown${ht}`,ea=`load${ht}`,ta="ArrowLeft",Ds="ArrowRight",na="ArrowUp",Vs="ArrowDown",co="Home",Ms="End",mt="active",Ls="fade",uo="show",zs=".dropdown-toggle",fo=`:not(${zs})`,Is='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',po=`.nav-link${fo}, .list-group-item${fo}, [role="tab"]${fo}, ${Is}`,ia=`.${mt}[data-bs-toggle="tab"], .${mt}[data-bs-toggle="pill"], .${mt}[data-bs-toggle="list"]`;class gt extends me{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),C.on(this._element,Zl,i=>this._keydown(i)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const i=this._getActiveElem(),r=i?C.trigger(i,Yl,{relatedTarget:t}):null;C.trigger(t,Gl,{relatedTarget:i}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(i,t),this._activate(t,i))}_activate(t,i){t&&(t.classList.add(mt),this._activate(N.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),C.trigger(t,Ql,{relatedTarget:i})):t.classList.add(uo)},t,t.classList.contains(Ls)))}_deactivate(t,i){t&&(t.classList.remove(mt),t.blur(),this._deactivate(N.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),C.trigger(t,Kl,{relatedTarget:i})):t.classList.remove(uo)},t,t.classList.contains(Ls)))}_keydown(t){if(![ta,Ds,na,Vs,co,Ms].includes(t.key))return;t.stopPropagation(),t.preventDefault();const i=this._getChildren().filter(a=>!pe(a));let r;if([co,Ms].includes(t.key))r=i[t.key===co?0:i.length-1];else{const a=[Ds,Vs].includes(t.key);r=In(i,t.target,a,!0)}r&&(r.focus({preventScroll:!0}),gt.getOrCreateInstance(r).show())}_getChildren(){return N.find(po,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,i){this._setAttributeIfNotExists(t,"role","tablist");for(const r of i)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const i=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",i),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),i||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const i=N.getElementFromSelector(t);i&&(this._setAttributeIfNotExists(i,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(i,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,i){const r=this._getOuterElement(t);if(!r.classList.contains("dropdown"))return;const a=(d,g)=>{const y=N.findOne(d,r);y&&y.classList.toggle(g,i)};a(zs,mt),a(".dropdown-menu",uo),r.setAttribute("aria-expanded",i)}_setAttributeIfNotExists(t,i,r){t.hasAttribute(i)||t.setAttribute(i,r)}_elemIsActive(t){return t.classList.contains(mt)}_getInnerElement(t){return t.matches(po)?t:N.findOne(po,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const i=gt.getOrCreateInstance(this);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}C.on(document,Jl,Is,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),pe(this)||gt.getOrCreateInstance(this).show()}),C.on(window,ea,()=>{for(const s of N.find(ia))gt.getOrCreateInstance(s)}),te(gt);const tt=".bs.toast",oa=`mouseover${tt}`,sa=`mouseout${tt}`,ra=`focusin${tt}`,la=`focusout${tt}`,aa=`hide${tt}`,ca=`hidden${tt}`,da=`show${tt}`,ua=`shown${tt}`,Fs="hide",$i="show",Ei="showing",fa={animation:"boolean",autohide:"boolean",delay:"number"},pa={animation:!0,autohide:!0,delay:5e3};class Kn extends me{constructor(t,i){super(t,i),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return pa}static get DefaultType(){return fa}static get NAME(){return"toast"}show(){C.trigger(this._element,da).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Fs),Ye(this._element),this._element.classList.add($i,Ei),this._queueCallback(()=>{this._element.classList.remove(Ei),C.trigger(this._element,ua),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(C.trigger(this._element,aa).defaultPrevented||(this._element.classList.add(Ei),this._queueCallback(()=>{this._element.classList.add(Fs),this._element.classList.remove(Ei,$i),C.trigger(this._element,ca)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove($i),super.dispose()}isShown(){return this._element.classList.contains($i)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,i){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=i;break;case"focusin":case"focusout":this._hasKeyboardInteraction=i}if(i)return void this._clearTimeout();const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){C.on(this._element,oa,t=>this._onInteraction(t,!0)),C.on(this._element,sa,t=>this._onInteraction(t,!1)),C.on(this._element,ra,t=>this._onInteraction(t,!0)),C.on(this._element,la,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const i=Kn.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t](this)}})}}return st(Kn),te(Kn),{Alert:rt,Button:Qe,Carousel:ne,Collapse:Nt,Dropdown:De,Modal:ft,Offcanvas:Ue,Popover:ki,ScrollSpy:Yn,Tab:gt,Toast:Kn,Tooltip:pt}})}(Ai)),Ai.exports}var Oa=Ba();const bo=ka(Oa);function Da(e,o=!0){o?document.getElementById(e)?.scrollIntoView({behavior:"smooth"}):document.getElementById(e)?.scrollIntoView()}let We=null;function Dn(){We?.hide(),We=null}function yo(e,o){Dn();const c=document.getElementById(e);if(c){We=new bo.Modal(c,{backdrop:"static"}),We.value=o,We.id=e,We.show();const p=document.querySelector(`#${e} [autofocus]`);p&&p.focus()}}function Bi(e){return bo.Modal.getInstance(document.getElementById(e))?.value}function Va(e){return We?e?We.id===e&&We._isShown:We._isShown:!1}function or(e,o=0,c=25){return e?.slice(o*c,o*c+c)??[]}function Ma(e="#invalid"){document.querySelector(e)?.focus()}function sr(e,o=[]){for(const p of o)p.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function rr(e,o){e&&(e.modelValue=o,e.valid=!0)}function _o(e){const o=document.querySelector(`#${e}`);return o?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(c=>{c.focus(),c.blur()}),o.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)?(Co(e),!1):!0):(console.error("can't find/validate form",e),!1)}async function lr(e){const o=document.getElementById(e);return o?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(c=>{c.focus(),c.blur()}),document.querySelectorAll(`#${e} .ace_editor`).forEach(c=>{c.click()}),new Promise(c=>setTimeout(()=>{if(o.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)){Co(e),c(!1);return}c(!0)}))):(console.error("can't find/validate form",e),Promise.resolve(!1))}function La(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function Co(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function za(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 ar(e){const o=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),c=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${c} ${o}`}function cr(e,o=!1){const[c,p,b]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];return o?`${c}:${p}:${b}`:`${c}:${p}`}function Ia(e,o=!1){return`${ar(e)} ${cr(e,o)}`}function Fa(e,o,c=!0,p=!1){let b=o.getTime()-e.getTime();p?b+=1:c?b+=1e3:b+=60*1e3;const v=(""+b%1e3).padStart(3,"0");b=Math.floor(b/1e3);const u=(""+b%60).padStart(2,"0");b=Math.floor(b/60);const S=(""+b%60).padStart(2,"0");b=Math.floor(b/60);const Y=(""+b).padStart(2,"0");return p?`${Y}:${S}:${u}.${v}`:c?`${Y}:${S}:${u}`:`${Y}:${S}`}function xa(e){const o=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e);return`${new Intl.DateTimeFormat("en",{month:"short"}).format(e)} ${o}`}function Oi(e,o=0){return e.toLocaleString("en",{minimumFractionDigits:o})}function Pa(e,o,c=2){switch(o){case"EUR":o="€";break;case"USD":o="$";break}return`${o} ${Oi(e/10**c,c)}`}function ja(e,o){return`${Oi(e)} - ${Oi(o)}`}function dr(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function Wa(e,o,c=e.ID_FORM){if(c){if(_o(c)&&!e.submitting)return e.submitting=!0,o().finally(()=>{e.submitting=!1})}else if(!e.submitting)return e.submitting=!0,o().finally(()=>{e.submitting=!1});return Promise.resolve()}function Ra(e,o,c=e.ID_FORM){return e.submitting?Promise.resolve():lr(c).then(p=>{if(p)return e.submitting=!0,o().finally(()=>{e.submitting=!1})})}function Ft(e,o){const c=o.split("."),p=c.shift(),b=e[p];return[void 0,null].includes(b)?b:c.length>0?Ft(b,c.join(".")):b}function ur(e,o,c="ASC",p=!1){if(!e)return[];const b=typeof e=="function"?[...e()]:[...e],v=(u,S)=>u.localeCompare(S,void 0,{ignorePunctuation:!0});return c==="ASC"?b.sort((u,S)=>(u=Ft(u,o)??"",S=Ft(S,o)??"",typeof u=="string"&&typeof S=="string"?p?v(u.toUpperCase(),S.toUpperCase()):v(u,S):u>S?1:u<S?-1:0)):b.sort((u,S)=>(u=Ft(u,o)??"",S=Ft(S,o)??"",typeof u=="string"&&typeof S=="string"?p?v(S.toUpperCase(),u.toUpperCase()):v(S,u):u<S?1:u>S?-1:0))}function fr(e,o=0,c="ASC"){return{col:o,order:c,set:function(p,b){const v=this.sort(p,b);this.col=p,this.order=v},get:function(p){return this.col===p?this.order:"NONE"},sorted:[],sorter:e,sort:function(p=this.col,b=this.order){const{sorted:v,sortedOrder:u}=this.sorter(p,b);return this.sorted=v,u}}}function qa(e,o,c=0,p=()=>0,b=()=>Number.MAX_SAFE_INTEGER){return fr((v,u)=>({sorted:or(ur(e,o[v],u),p(),b()),sortedOrder:u}),c)}function Ha(e,o=500,c="none"){clearTimeout(tr.get(c)),tr.set(c,setTimeout(e,o))}const tr=new Map;function Ua(e=3,o=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","eiusmod","tempor","incididunt","labore","et","dolore","magna","aliqua"]){let c="";for(let p=0;p<e;p++)c+=" "+o[Math.floor(Math.random()*o.length)];return c.substr(1)}function Xa(e=3,o=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","omicorn"]){const c=[];for(let p=0;p<e;p++)c.push(o[Math.floor(Math.random()*o.length)]);return c}function Ya(e){navigator.clipboard.writeText(e)}function Ka(e,o=[],c=[],p=!0){const b=[];for(const v of o)if(typeof v=="function")b.push(v());else if(v){const u=v.shift();b.push(u(...v))}for(const v of c)if(typeof v=="function")b.push(v(!1));else if(v){const u=v.shift();b.push(u(v.shift(),!1))}return p?(e.loading=Promise.all(b).finally(()=>{p&&(e.loading=null)}),e.loading):Promise.all(b)}function Ga(e,o=[],c=[],p=!0){const b=[];for(const v of o)if(typeof v=="function")b.push(v(!0));else if(v){const u=v.shift();b.push(u(!0,...v))}for(const v of c)if(typeof v=="function")b.push(v(!1));else if(v){const u=v.shift();b.push(u(!1,...v))}return p?(e.loading=Promise.all(b).finally(()=>{p&&(e.loading=null)}),e.loading):Promise.all(b)}function Qa(e){return e}function Ja(e){return e}function Za(e){return e}const ec=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:Dn,abort:function(){this.dirty?yo(this.ID_MODAL,{}):this.$emit("cancel")},emit:function(e){Dn(),this.$emit(e)}}}),tc={key:0},nc={key:1},ic=["disabled"];function oc(e,o,c,p,b,v){const u=n.resolveComponent("cl-modal"),S=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(S,{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 btn-sm cl-btn-outline-text it-cancel",onClick:o[0]||(o[0]=Y=>e.abort())},[o[4]||(o[4]=n.createElementVNode("i",{class:"fas fa-angle-left"},null,-1)),e.dirty?(n.openBlock(),n.createElementBlock("span",tc,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",nc,n.toDisplayString(e.back),1))])),e.hidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:n.normalizeClass(["btn btn-sm cl-btn-outline-primary it-ok",{"cl-btn-spinner":e.spinner}]),disabled:e.disabled||!e.dirty,onClick:o[1]||(o[1]=Y=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1),o[5]||(o[5]=n.createElementVNode("i",{class:"fas fa-angle-right"},null,-1))],10,ic))],2),n.createVNode(u,{id:e.ID_MODAL},{title:n.withCtx(()=>o[6]||(o[6]=[n.createTextVNode(" Unsaved changes ",-1)])),body:n.withCtx(()=>[n.renderSlot(e.$slots,"modal",{},()=>[o[7]||(o[7]=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-btn-outline-text it-cancel",onClick:o[2]||(o[2]=Y=>e.emit("cancel",!0))}," Discard changes ")]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-btn-outline-primary it-ok",onClick:o[3]||(o[3]=Y=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const Pt=B(ec,[["render",oc]]);Pt.install=e=>{e.component(Pt.name??"ClNoName",Pt)};const sc=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[o,c]=e.split("=");if(o===this.cookie&&["-mtm","+mtm"].includes(c)){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)}}}),rc=["id"],lc={class:"card-body container"},ac={class:"row"},cc={class:"col-12 col-md-11"},dc={class:"cl-spacing-box text-center"};function uc(e,o,c,p,b,v){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",lc,[n.createElementVNode("div",ac,[o[3]||(o[3]=n.createElementVNode("div",{class:"col-12 col-md-1 d-none d-md-block"},[n.createElementVNode("i",{class:"cl-asset-cookie"})],-1)),n.createElementVNode("div",cc,[n.renderSlot(e.$slots,"default",{},()=>[o[2]||(o[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",dc,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-btn-outline-primary it-ok",onClick:o[0]||(o[0]=u=>e.accept())}," Accept "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-btn-outline-text it-cancel",onClick:o[1]||(o[1]=u=>e.decline())}," Decline ")])])])])],10,rc)):n.createCommentVNode("",!0)}const jt=B(sc,[["render",uc]]);jt.install=e=>{e.component(jt.name??"ClNoName",jt)};const Mn={mounted(e,o){let c="";for(const b of["cl-tooltip-primary","cl-tooltip-secondary","cl-tooltip-light","cl-tooltip-dark"])e.classList.contains(b)&&(c+=` ${b}`);const p=new bo.Tooltip(e,{title:o.value,placement:o.arg,html:!0,trigger:"hover",delay:{show:65,hide:0},template:`<div class="tooltip cl-tooltip${c}" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`});return e.__tooltipInstance=p,e.addEventListener("show.bs.tooltip",function(){document.querySelectorAll(".cl-tooltip").forEach(v=>v.remove())}),p},unmounted(e){const o=e.__tooltipInstance;if(o){typeof o.dispose=="function"&&o.dispose();const c=document.querySelector(".cl-tooltip");c&&c.remove(),delete e.__tooltipInstance}}},ko={mounted(e,o){e.addEventListener("click",function(){const c=typeof o.value=="function"?o.value():o.value;o.value!==""&&navigator.clipboard?.writeText(c),e.classList.add("cl-animation-flash-text"),setTimeout(()=>{e.classList.remove("cl-animation-flash-text")},1500)})}},fc=n.defineComponent({name:"ClCopy",directives:{tooltip:Mn,clipboard:ko},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()}}}),pc={key:0,ref:"content",class:"cl-copy"},hc={ref:"content"};function mc(e,o,c,p,b,v){const u=n.resolveDirective("tooltip"),S=n.resolveDirective("clipboard");return e.unstyled?n.withDirectives((n.openBlock(),n.createElementBlock("span",pc,[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))])),[[u,e.tooltip,"top"],[S,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",hc,[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)),[[u,e.tooltip,"top"],[S,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)),[[u,e.tooltip,"top"],[S,e.contentToCopy]])}const Wt=B(fc,[["render",mc]]);Wt.install=e=>{e.component(Wt.name??"ClNoName",Wt)};const gc=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:dr}}),vc=["id"];function bc(e,o,c,p,b,v){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,vc),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const Rt=B(gc,[["render",bc]]);Rt.install=e=>{e.component(Rt.name??"ClNoName",Rt)};function nr(e){e.preventDefault()}const yc=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,nr)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,nr)})},methods:{browse:function(){const e=document.getElementById(`cl-dropzone-file-${this.$uid}`);if(e&&document.createEvent){const o=document.createEvent("MouseEvents");o.initEvent("click",!0,!1),e.dispatchEvent(o)}},browsed:function(){const o=document.getElementById(`cl-dropzone-file-${this.$uid}`).files??[];o.length>0&&this.loadFile(o[0])},mock:function(e){this.$emit("file",e)},loadFile:function(e){const o=new FileReader,c=this.$emit;c("file",e),o.onload=function(p){c("content",p.target?.result)},o.readAsText(e)},onDrop:function(e){e.dataTransfer&&this.loadFile(e.dataTransfer.files[0]),this.dragging=!1},onDrag:function(e){this.dragging=e}}}),_c=["id"],Cc=["id","accept"];function kc(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["cl-spacing-small",e.dragging?"cl-dragging":""]),onDragover:o[6]||(o[6]=u=>e.onDrag(!0)),onDragleave:o[7]||(o[7]=u=>e.onDrag(!1)),onDrop:o[8]||(o[8]=n.withModifiers((...u)=>e.onDrop&&e.onDrop(...u),["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:o[0]||(o[0]=(...u)=>e.browsed&&e.browsed(...u))},null,40,_c)):n.createCommentVNode("",!0),n.createElementVNode("input",{id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:e.accept,class:"cl-dropzone-file",onChange:o[1]||(o[1]=(...u)=>e.browsed&&e.browsed(...u))},null,40,Cc),e.camera?(n.openBlock(),n.createElementBlock("div",{key:1,class:"cl-dropzone",onClick:o[3]||(o[3]=u=>e.browse())},[o[9]||(o[9]=n.createElementVNode("i",{class:"fas fa-camera"},null,-1)),o[10]||(o[10]=n.createTextVNode("Use your ",-1)),n.createElementVNode("a",{href:"#",onClick:o[2]||(o[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:o[5]||(o[5]=u=>e.browse())},[o[11]||(o[11]=n.createElementVNode("i",{class:"fas fa-file-upload"},null,-1)),o[12]||(o[12]=n.createTextVNode("Drop or ",-1)),n.createElementVNode("a",{href:"#",onClick:o[4]||(o[4]=n.withModifiers(()=>{},["prevent"]))},"browse"),n.createTextVNode(" "+n.toDisplayString(e.what)+" "+n.toDisplayString(e.why)+". ",1)])),n.renderSlot(e.$slots,"default")],34)}const qt=B(yc,[["render",kc]]);qt.install=e=>{e.component(qt.name??"ClNoName",qt)};const $c=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.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),o=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)>o&&this.setInvalid(this.error??`Please enter at most ${o} 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 o=parseInt(e.trim());if(o.toString()!==e){this.setInvalid("Please enter a number.");return}this.min!==void 0&&this.max!==void 0?(o<parseInt(this.min)||o>parseInt(this.max))&&this.setInvalid(`Please enter a number between ${this.min} and ${this.max}.`):this.min!==void 0?o<parseInt(this.min)&&this.setInvalid(`Please enter a number >= ${this.min}.`):this.max!==void 0&&o>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)}}}),Ec=["for"],wc={key:0,class:"required"},Sc=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Nc=["id","autofocus","disabled","required"],Tc=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Ac=["id","for"],Bc={key:1,class:"valid-feedback valid-feedback-none"};function Oc(e,o,c,p,b,v){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",wc,"*")):n.createCommentVNode("",!0)],10,Ec)):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":o[0]||(o[0]=u=>e.modelValue=u),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required,onBlur:o[1]||(o[1]=u=>e.validate(!0)),onChange:o[2]||(o[2]=u=>e.validate()),onInput:o[3]||(o[3]=u=>e.validate())}),null,16,Sc)),[[n.vModelText,e.modelValue]]):e.type==="select"?n.withDirectives((n.openBlock(),n.createElementBlock("select",n.mergeProps({key:2,id:e.$uid,"onUpdate:modelValue":o[4]||(o[4]=u=>e.modelValue=u),class:["form-select",e.clazz],autofocus:e.autofocus,disabled:e.disabled,required:e.required},e.$attrs,{onBlur:o[5]||(o[5]=u=>e.validate(!0)),onChange:o[6]||(o[6]=u=>e.validate())}),[n.renderSlot(e.$slots,"default")],16,Nc)),[[n.vModelSelect,e.modelValue]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",n.mergeProps({key:3,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":o[7]||(o[7]=u=>e.modelValue=u),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:o[8]||(o[8]=u=>e.validate(!0)),onChange:o[9]||(o[9]=u=>e.validate()),onInput:o[10]||(o[10]=u=>e.validate())}),null,16,Tc)),[[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,Ac)):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",Bc))],64))],64)}const Ht=B($c,[["render",Oc]]);Ht.install=e=>{e.component(Ht.name??"ClNoName",Ht)};const Dc=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()})}}}),Vc=["id","disabled","indeterminate","autofocus"],Mc=["for"];function Lc(e,o,c,p,b,v){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":o[0]||(o[0]=u=>e.modelValue=u),class:"form-check-input",type:"checkbox",disabled:e.disabled,indeterminate:e.indeterminate,autofocus:e.autofocus},e.$attrs,{onChange:o[1]||(o[1]=u=>e.$emit("update:modelValue",e.modelValue))}),null,16,Vc),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,Mc)],2)}const Ut=B(Dc,[["render",Lc]]);Ut.install=e=>{e.component(Ut.name??"ClNoName",Ut)};const zc=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."}}}),Ic={key:0,class:"form-label"},Fc={key:0,class:"required"},xc=["id"],Pc={class:"invalid-feedback"},jc={key:1,class:"valid-feedback"};function Wc(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",Ic,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Fc,"*")):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,xc),n.createElementVNode("p",Pc,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",jc,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Xt=B(zc,[["render",Wc]]);Xt.install=e=>{e.component(Xt.name??"ClNoName",Xt)};const Rc=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="";return!this.primary&&!this.secondary?e+="cl-hashtag-dark":this.primary?e+="cl-hashtag-primary":this.secondary&&(e+="cl-hashtag-secondary"),e+(this.class?` ${this.class}`:"")}}}),qc={key:0,class:"cl-hashtag-derived"},Hc=["id"];function Uc(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",qc)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,Hc)],64)}const Yt=B(Rc,[["render",Uc]]);Yt.install=e=>{e.component(Yt.name??"ClNoName",Yt)};const Xc=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),Yc={class:"container cl-container-iconotron"},Kc={class:"row"},Gc={class:"col-12 col-md-3"},Qc=["src"],Jc={class:"col-12 col-md-9"};function Zc(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Yc,[n.createElementVNode("div",Kc,[n.createElementVNode("div",Gc,[n.createElementVNode("img",{src:e.src,alt:""},null,8,Qc)]),n.createElementVNode("div",Jc,[n.renderSlot(e.$slots,"default")])])])}const Kt=B(Xc,[["render",Zc]]);Kt.install=e=>{e.component(Kt.name??"ClNoName",Kt)};const ed=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 td(e,o,c,p,b,v){const u=n.resolveDirective("tooltip");return e.bottom?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"top"]])}const Gt=B(ed,[["render",td]]);Gt.install=e=>{e.component(Gt.name??"ClNoName",Gt)};const nd=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function id(e,o,c,p,b,v){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 Qt=B(nd,[["render",id]]);Qt.install=e=>{e.component(Qt.name??"ClNoName",Qt)};const od=`
5
+ */var Ba=Ti.exports,er;function Oa(){return er||(er=1,function(e,s){(function(c,p){e.exports=p()})(Ba,function(){const c=new Map,p={set(o,t,i){c.has(o)||c.set(o,new Map);const r=c.get(o);r.has(t)||r.size===0?r.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(o,t)=>c.has(o)&&c.get(o).get(t)||null,remove(o,t){if(!c.has(o))return;const i=c.get(o);i.delete(t),i.size===0&&c.delete(o)}},b="transitionend",v=o=>(o&&window.CSS&&window.CSS.escape&&(o=o.replace(/#([^\s"#']+)/g,(t,i)=>`#${CSS.escape(i)}`)),o),u=o=>o==null?`${o}`:Object.prototype.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase(),N=o=>{o.dispatchEvent(new Event(b))},U=o=>!(!o||typeof o!="object")&&(o.jquery!==void 0&&(o=o[0]),o.nodeType!==void 0),ae=o=>U(o)?o.jquery?o[0]:o:typeof o=="string"&&o.length>0?document.querySelector(v(o)):null,we=o=>{if(!U(o)||o.getClientRects().length===0)return!1;const t=getComputedStyle(o).getPropertyValue("visibility")==="visible",i=o.closest("details:not([open])");if(!i)return t;if(i!==o){const r=o.closest("summary");if(r&&r.parentNode!==i||r===null)return!1}return t},Se=o=>!o||o.nodeType!==Node.ELEMENT_NODE||!!o.classList.contains("disabled")||(o.disabled!==void 0?o.disabled:o.hasAttribute("disabled")&&o.getAttribute("disabled")!=="false"),bt=o=>{if(!document.documentElement.attachShadow)return null;if(typeof o.getRootNode=="function"){const t=o.getRootNode();return t instanceof ShadowRoot?t:null}return o instanceof ShadowRoot?o:o.parentNode?bt(o.parentNode):null},nt=()=>{},Xe=o=>{o.offsetHeight},Jn=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Vn=[],ne=()=>document.documentElement.dir==="rtl",me=o=>{var t;t=()=>{const i=Jn();if(i){const r=o.NAME,a=i.fn[r];i.fn[r]=o.jQueryInterface,i.fn[r].Constructor=o,i.fn[r].noConflict=()=>(i.fn[r]=a,o.jQueryInterface)}},document.readyState==="loading"?(Vn.length||document.addEventListener("DOMContentLoaded",()=>{for(const i of Vn)i()}),Vn.push(t)):t()},oe=(o,t=[],i=o)=>typeof o=="function"?o.call(...t):i,Zn=(o,t,i=!0)=>{if(!i)return void oe(o);const r=(m=>{if(!m)return 0;let{transitionDuration:C,transitionDelay:k}=window.getComputedStyle(m);const E=Number.parseFloat(C),w=Number.parseFloat(k);return E||w?(C=C.split(",")[0],k=k.split(",")[0],1e3*(Number.parseFloat(C)+Number.parseFloat(k))):0})(t)+5;let a=!1;const d=({target:m})=>{m===t&&(a=!0,t.removeEventListener(b,d),oe(o))};t.addEventListener(b,d),setTimeout(()=>{a||N(t)},r)},Mn=(o,t,i,r)=>{const a=o.length;let d=o.indexOf(t);return d===-1?!i&&r?o[a-1]:o[0]:(d+=i?1:-1,r&&(d=(d+a)%a),o[Math.max(0,Math.min(d,a-1))])},ei=/[^.]*(?=\..*)\.|.*/,Oi=/\..*/,Di=/::\d+$/,Ln={};let zn=1;const ti={mouseenter:"mouseover",mouseleave:"mouseout"},Vi=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 ni(o,t){return t&&`${t}::${zn++}`||o.uidEvent||zn++}function ii(o){const t=ni(o);return o.uidEvent=t,Ln[t]=Ln[t]||{},Ln[t]}function oi(o,t,i=null){return Object.values(o).find(r=>r.callable===t&&r.delegationSelector===i)}function si(o,t,i){const r=typeof t=="string",a=r?i:t||i;let d=ri(o);return Vi.has(d)||(d=o),[r,a,d]}function yt(o,t,i,r,a){if(typeof t!="string"||!o)return;let[d,m,C]=si(t,i,r);t in ti&&(m=(V=>function(O){if(!O.relatedTarget||O.relatedTarget!==O.delegateTarget&&!O.delegateTarget.contains(O.relatedTarget))return V.call(this,O)})(m));const k=ii(o),E=k[C]||(k[C]={}),w=oi(E,m,d?i:null);if(w)return void(w.oneOff=w.oneOff&&a);const $=ni(m,t.replace(ei,"")),L=d?function(A,V,O){return function M(R){const Y=A.querySelectorAll(V);for(let{target:F}=R;F&&F!==this;F=F.parentNode)for(const x of Y)if(x===F)return In(R,{delegateTarget:F}),M.oneOff&&_.off(A,R.type,V,O),O.apply(F,[R])}}(o,i,m):function(A,V){return function O(M){return In(M,{delegateTarget:A}),O.oneOff&&_.off(A,M.type,V),V.apply(A,[M])}}(o,m);L.delegationSelector=d?i:null,L.callable=m,L.oneOff=a,L.uidEvent=$,E[$]=L,o.addEventListener(C,L,d)}function _t(o,t,i,r,a){const d=oi(t[i],r,a);d&&(o.removeEventListener(i,d,!!a),delete t[i][d.uidEvent])}function Mi(o,t,i,r){const a=t[i]||{};for(const[d,m]of Object.entries(a))d.includes(r)&&_t(o,t,i,m.callable,m.delegationSelector)}function ri(o){return o=o.replace(Oi,""),ti[o]||o}const _={on(o,t,i,r){yt(o,t,i,r,!1)},one(o,t,i,r){yt(o,t,i,r,!0)},off(o,t,i,r){if(typeof t!="string"||!o)return;const[a,d,m]=si(t,i,r),C=m!==t,k=ii(o),E=k[m]||{},w=t.startsWith(".");if(d===void 0){if(w)for(const $ of Object.keys(k))Mi(o,k,$,t.slice(1));for(const[$,L]of Object.entries(E)){const A=$.replace(Di,"");C&&!t.includes(A)||_t(o,k,m,L.callable,L.delegationSelector)}}else{if(!Object.keys(E).length)return;_t(o,k,m,d,a?i:null)}},trigger(o,t,i){if(typeof t!="string"||!o)return null;const r=Jn();let a=null,d=!0,m=!0,C=!1;t!==ri(t)&&r&&(a=r.Event(t,i),r(o).trigger(a),d=!a.isPropagationStopped(),m=!a.isImmediatePropagationStopped(),C=a.isDefaultPrevented());const k=In(new Event(t,{bubbles:d,cancelable:!0}),i);return C&&k.preventDefault(),m&&o.dispatchEvent(k),k.defaultPrevented&&a&&a.preventDefault(),k}};function In(o,t={}){for(const[i,r]of Object.entries(t))try{o[i]=r}catch{Object.defineProperty(o,i,{configurable:!0,get:()=>r})}return o}function li(o){if(o==="true")return!0;if(o==="false")return!1;if(o===Number(o).toString())return Number(o);if(o===""||o==="null")return null;if(typeof o!="string")return o;try{return JSON.parse(decodeURIComponent(o))}catch{return o}}function Fn(o){return o.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const se={setDataAttribute(o,t,i){o.setAttribute(`data-bs-${Fn(t)}`,i)},removeDataAttribute(o,t){o.removeAttribute(`data-bs-${Fn(t)}`)},getDataAttributes(o){if(!o)return{};const t={},i=Object.keys(o.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of i){let a=r.replace(/^bs/,"");a=a.charAt(0).toLowerCase()+a.slice(1),t[a]=li(o.dataset[r])}return t},getDataAttribute:(o,t)=>li(o.getAttribute(`data-bs-${Fn(t)}`))};class Ye{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,i){const r=U(i)?se.getDataAttribute(i,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...U(i)?se.getDataAttributes(i):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,i=this.constructor.DefaultType){for(const[r,a]of Object.entries(i)){const d=t[r],m=U(d)?"element":u(d);if(!new RegExp(a).test(m))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${m}" but expected type "${a}".`)}}}class ge extends Ye{constructor(t,i){super(),(t=ae(t))&&(this._element=t,this._config=this._getConfig(i),p.set(this._element,this.constructor.DATA_KEY,this))}dispose(){p.remove(this._element,this.constructor.DATA_KEY),_.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,i,r=!0){Zn(t,i,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return p.get(ae(t),this.DATA_KEY)}static getOrCreateInstance(t,i={}){return this.getInstance(t)||new this(t,typeof i=="object"?i: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 Ct=o=>{let t=o.getAttribute("data-bs-target");if(!t||t==="#"){let i=o.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&i!=="#"?i.trim():null}return t?t.split(",").map(i=>v(i)).join(","):null},S={find:(o,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,o)),findOne:(o,t=document.documentElement)=>Element.prototype.querySelector.call(t,o),children:(o,t)=>[].concat(...o.children).filter(i=>i.matches(t)),parents(o,t){const i=[];let r=o.parentNode.closest(t);for(;r;)i.push(r),r=r.parentNode.closest(t);return i},prev(o,t){let i=o.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(o,t){let i=o.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(o){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(i=>`${i}:not([tabindex^="-"])`).join(",");return this.find(t,o).filter(i=>!Se(i)&&we(i))},getSelectorFromElement(o){const t=Ct(o);return t&&S.findOne(t)?t:null},getElementFromSelector(o){const t=Ct(o);return t?S.findOne(t):null},getMultipleElementsFromSelector(o){const t=Ct(o);return t?S.find(t):[]}},it=(o,t="hide")=>{const i=`click.dismiss${o.EVENT_KEY}`,r=o.NAME;_.on(document,i,`[data-bs-dismiss="${r}"]`,function(a){if(["A","AREA"].includes(this.tagName)&&a.preventDefault(),Se(this))return;const d=S.getElementFromSelector(this)||this.closest(`.${r}`);o.getOrCreateInstance(d)[t]()})},Pn=".bs.alert",xn=`close${Pn}`,Li=`closed${Pn}`;class De extends ge{static get NAME(){return"alert"}close(){if(_.trigger(this._element,xn).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(),_.trigger(this._element,Li),this.dispose()}static jQueryInterface(t){return this.each(function(){const i=De.getOrCreateInstance(this);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}it(De,"close"),me(De);const jn='[data-bs-toggle="button"]';class Ke extends ge{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const i=Ke.getOrCreateInstance(this);t==="toggle"&&i[t]()})}}_.on(document,"click.bs.button.data-api",jn,o=>{o.preventDefault();const t=o.target.closest(jn);Ke.getOrCreateInstance(t).toggle()}),me(Ke);const ce=".bs.swipe",Wn=`touchstart${ce}`,zi=`touchmove${ce}`,ze=`touchend${ce}`,Ie=`pointerdown${ce}`,re=`pointerup${ce}`,kt={endCallback:null,leftCallback:null,rightCallback:null},Rn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ge extends Ye{constructor(t,i){super(),this._element=t,t&&Ge.isSupported()&&(this._config=this._getConfig(i),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return kt}static get DefaultType(){return Rn}static get NAME(){return"swipe"}dispose(){_.off(this._element,ce)}_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(),oe(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 i=t/this._deltaX;this._deltaX=0,i&&oe(i>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(_.on(this._element,Ie,t=>this._start(t)),_.on(this._element,re,t=>this._end(t)),this._element.classList.add("pointer-event")):(_.on(this._element,Wn,t=>this._start(t)),_.on(this._element,zi,t=>this._move(t)),_.on(this._element,ze,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 Q=".bs.carousel",ai=".data-api",ci="ArrowLeft",g="ArrowRight",f="next",h="prev",l="left",y="right",T=`slide${Q}`,D=`slid${Q}`,z=`keydown${Q}`,K=`mouseenter${Q}`,X=`mouseleave${Q}`,le=`dragstart${Q}`,J=`load${Q}${ai}`,ee=`click${Q}${ai}`,ve="carousel",be="active",ye=".active",Ve=".carousel-item",$t=ye+Ve,Qe={[ci]:y,[g]:l},te={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},_e={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class de extends ge{constructor(t,i){super(t,i),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=S.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ve&&this.cycle()}static get Default(){return te}static get DefaultType(){return _e}static get NAME(){return"carousel"}next(){this._slide(f)}nextWhenVisible(){!document.hidden&&we(this._element)&&this.next()}prev(){this._slide(h)}pause(){this._isSliding&&N(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?_.one(this._element,D,()=>this.cycle()):this.cycle())}to(t){const i=this._getItems();if(t>i.length-1||t<0)return;if(this._isSliding)return void _.one(this._element,D,()=>this.to(t));const r=this._getItemIndex(this._getActive());if(r===t)return;const a=t>r?f:h;this._slide(a,i[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&_.on(this._element,z,t=>this._keydown(t)),this._config.pause==="hover"&&(_.on(this._element,K,()=>this.pause()),_.on(this._element,X,()=>this._maybeEnableCycle())),this._config.touch&&Ge.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of S.find(".carousel-item img",this._element))_.on(i,le,r=>r.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(l)),rightCallback:()=>this._slide(this._directionToOrder(y)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Ge(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const i=Qe[t.key];i&&(t.preventDefault(),this._slide(this._directionToOrder(i)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const i=S.findOne(ye,this._indicatorsElement);i.classList.remove(be),i.removeAttribute("aria-current");const r=S.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(be),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const i=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=i||this._config.defaultInterval}_slide(t,i=null){if(this._isSliding)return;const r=this._getActive(),a=t===f,d=i||Mn(this._getItems(),r,a,this._config.wrap);if(d===r)return;const m=this._getItemIndex(d),C=$=>_.trigger(this._element,$,{relatedTarget:d,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:m});if(C(T).defaultPrevented||!r||!d)return;const k=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(m),this._activeElement=d;const E=a?"carousel-item-start":"carousel-item-end",w=a?"carousel-item-next":"carousel-item-prev";d.classList.add(w),Xe(d),r.classList.add(E),d.classList.add(E),this._queueCallback(()=>{d.classList.remove(E,w),d.classList.add(be),r.classList.remove(be,w,E),this._isSliding=!1,C(D)},r,this._isAnimated()),k&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return S.findOne($t,this._element)}_getItems(){return S.find(Ve,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return ne()?t===l?h:f:t===l?f:h}_orderToDirection(t){return ne()?t===h?l:y:t===h?y:l}static jQueryInterface(t){return this.each(function(){const i=de.getOrCreateInstance(this,t);if(typeof t!="number"){if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}}else i.to(t)})}}_.on(document,ee,"[data-bs-slide], [data-bs-slide-to]",function(o){const t=S.getElementFromSelector(this);if(!t||!t.classList.contains(ve))return;o.preventDefault();const i=de.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");return r?(i.to(r),void i._maybeEnableCycle()):se.getDataAttribute(this,"slide")==="next"?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),_.on(window,J,()=>{const o=S.find('[data-bs-ride="carousel"]');for(const t of o)de.getOrCreateInstance(t)}),me(de);const Fe=".bs.collapse",wr=`show${Fe}`,Sr=`shown${Fe}`,Nr=`hide${Fe}`,Tr=`hidden${Fe}`,Ar=`click${Fe}.data-api`,Ii="show",Et="collapse",di="collapsing",Br=`:scope .${Et} .${Et}`,Fi='[data-bs-toggle="collapse"]',Or={parent:null,toggle:!0},Dr={parent:"(null|element)",toggle:"boolean"};class wt extends ge{constructor(t,i){super(t,i),this._isTransitioning=!1,this._triggerArray=[];const r=S.find(Fi);for(const a of r){const d=S.getSelectorFromElement(a),m=S.find(d).filter(C=>C===this._element);d!==null&&m.length&&this._triggerArray.push(a)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Or}static get DefaultType(){return Dr}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(a=>a!==this._element).map(a=>wt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||_.trigger(this._element,wr).defaultPrevented)return;for(const a of t)a.hide();const i=this._getDimension();this._element.classList.remove(Et),this._element.classList.add(di),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(di),this._element.classList.add(Et,Ii),this._element.style[i]="",_.trigger(this._element,Sr)},this._element,!0),this._element.style[i]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||_.trigger(this._element,Nr).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Xe(this._element),this._element.classList.add(di),this._element.classList.remove(Et,Ii);for(const i of this._triggerArray){const r=S.getElementFromSelector(i);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(di),this._element.classList.add(Et),_.trigger(this._element,Tr)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ii)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=ae(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Fi);for(const i of t){const r=S.getElementFromSelector(i);r&&this._addAriaAndCollapsedClass([i],this._isShown(r))}}_getFirstLevelChildren(t){const i=S.find(Br,this._config.parent);return S.find(t,this._config.parent).filter(r=>!i.includes(r))}_addAriaAndCollapsedClass(t,i){if(t.length)for(const r of t)r.classList.toggle("collapsed",!i),r.setAttribute("aria-expanded",i)}static jQueryInterface(t){const i={};return typeof t=="string"&&/show|hide/.test(t)&&(i.toggle=!1),this.each(function(){const r=wt.getOrCreateInstance(this,i);if(typeof t=="string"){if(r[t]===void 0)throw new TypeError(`No method named "${t}"`);r[t]()}})}}_.on(document,Ar,Fi,function(o){(o.target.tagName==="A"||o.delegateTarget&&o.delegateTarget.tagName==="A")&&o.preventDefault();for(const t of S.getMultipleElementsFromSelector(this))wt.getOrCreateInstance(t,{toggle:!1}).toggle()}),me(wt);var ue="top",Ce="bottom",ke="right",fe="left",ui="auto",St=[ue,Ce,ke,fe],ot="start",Nt="end",wo="clippingParents",Pi="viewport",Tt="popper",So="reference",xi=St.reduce(function(o,t){return o.concat([t+"-"+ot,t+"-"+Nt])},[]),ji=[].concat(St,[ui]).reduce(function(o,t){return o.concat([t,t+"-"+ot,t+"-"+Nt])},[]),No="beforeRead",To="read",Ao="afterRead",Bo="beforeMain",Oo="main",Do="afterMain",Vo="beforeWrite",Mo="write",Lo="afterWrite",zo=[No,To,Ao,Bo,Oo,Do,Vo,Mo,Lo];function Pe(o){return o?(o.nodeName||"").toLowerCase():null}function $e(o){if(o==null)return window;if(o.toString()!=="[object Window]"){var t=o.ownerDocument;return t&&t.defaultView||window}return o}function st(o){return o instanceof $e(o).Element||o instanceof Element}function Ne(o){return o instanceof $e(o).HTMLElement||o instanceof HTMLElement}function Wi(o){return typeof ShadowRoot<"u"&&(o instanceof $e(o).ShadowRoot||o instanceof ShadowRoot)}const Ri={name:"applyStyles",enabled:!0,phase:"write",fn:function(o){var t=o.state;Object.keys(t.elements).forEach(function(i){var r=t.styles[i]||{},a=t.attributes[i]||{},d=t.elements[i];Ne(d)&&Pe(d)&&(Object.assign(d.style,r),Object.keys(a).forEach(function(m){var C=a[m];C===!1?d.removeAttribute(m):d.setAttribute(m,C===!0?"":C)}))})},effect:function(o){var t=o.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],d=t.attributes[r]||{},m=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:i[r]).reduce(function(C,k){return C[k]="",C},{});Ne(a)&&Pe(a)&&(Object.assign(a.style,m),Object.keys(d).forEach(function(C){a.removeAttribute(C)}))})}},requires:["computeStyles"]};function xe(o){return o.split("-")[0]}var rt=Math.max,fi=Math.min,At=Math.round;function qi(){var o=navigator.userAgentData;return o!=null&&o.brands&&Array.isArray(o.brands)?o.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Io(){return!/^((?!chrome|android).)*safari/i.test(qi())}function Bt(o,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var r=o.getBoundingClientRect(),a=1,d=1;t&&Ne(o)&&(a=o.offsetWidth>0&&At(r.width)/o.offsetWidth||1,d=o.offsetHeight>0&&At(r.height)/o.offsetHeight||1);var m=(st(o)?$e(o):window).visualViewport,C=!Io()&&i,k=(r.left+(C&&m?m.offsetLeft:0))/a,E=(r.top+(C&&m?m.offsetTop:0))/d,w=r.width/a,$=r.height/d;return{width:w,height:$,top:E,right:k+w,bottom:E+$,left:k,x:k,y:E}}function Hi(o){var t=Bt(o),i=o.offsetWidth,r=o.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:o.offsetLeft,y:o.offsetTop,width:i,height:r}}function Fo(o,t){var i=t.getRootNode&&t.getRootNode();if(o.contains(t))return!0;if(i&&Wi(i)){var r=t;do{if(r&&o.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qe(o){return $e(o).getComputedStyle(o)}function Vr(o){return["table","td","th"].indexOf(Pe(o))>=0}function Je(o){return((st(o)?o.ownerDocument:o.document)||window.document).documentElement}function pi(o){return Pe(o)==="html"?o:o.assignedSlot||o.parentNode||(Wi(o)?o.host:null)||Je(o)}function Po(o){return Ne(o)&&qe(o).position!=="fixed"?o.offsetParent:null}function qn(o){for(var t=$e(o),i=Po(o);i&&Vr(i)&&qe(i).position==="static";)i=Po(i);return i&&(Pe(i)==="html"||Pe(i)==="body"&&qe(i).position==="static")?t:i||function(r){var a=/firefox/i.test(qi());if(/Trident/i.test(qi())&&Ne(r)&&qe(r).position==="fixed")return null;var d=pi(r);for(Wi(d)&&(d=d.host);Ne(d)&&["html","body"].indexOf(Pe(d))<0;){var m=qe(d);if(m.transform!=="none"||m.perspective!=="none"||m.contain==="paint"||["transform","perspective"].indexOf(m.willChange)!==-1||a&&m.willChange==="filter"||a&&m.filter&&m.filter!=="none")return d;d=d.parentNode}return null}(o)||t}function Ui(o){return["top","bottom"].indexOf(o)>=0?"x":"y"}function Hn(o,t,i){return rt(o,fi(t,i))}function xo(o){return Object.assign({},{top:0,right:0,bottom:0,left:0},o)}function jo(o,t){return t.reduce(function(i,r){return i[r]=o,i},{})}const Wo={name:"arrow",enabled:!0,phase:"main",fn:function(o){var t,i=o.state,r=o.name,a=o.options,d=i.elements.arrow,m=i.modifiersData.popperOffsets,C=xe(i.placement),k=Ui(C),E=[fe,ke].indexOf(C)>=0?"height":"width";if(d&&m){var w=function(q,W){return xo(typeof(q=typeof q=="function"?q(Object.assign({},W.rects,{placement:W.placement})):q)!="number"?q:jo(q,St))}(a.padding,i),$=Hi(d),L=k==="y"?ue:fe,A=k==="y"?Ce:ke,V=i.rects.reference[E]+i.rects.reference[k]-m[k]-i.rects.popper[E],O=m[k]-i.rects.reference[k],M=qn(d),R=M?k==="y"?M.clientHeight||0:M.clientWidth||0:0,Y=V/2-O/2,F=w[L],x=R-$[E]-w[A],I=R/2-$[E]/2+Y,P=Hn(F,I,x),j=k;i.modifiersData[r]=((t={})[j]=P,t.centerOffset=P-I,t)}},effect:function(o){var t=o.state,i=o.options.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r!="string"||(r=t.elements.popper.querySelector(r)))&&Fo(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ot(o){return o.split("-")[1]}var Mr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ro(o){var t,i=o.popper,r=o.popperRect,a=o.placement,d=o.variation,m=o.offsets,C=o.position,k=o.gpuAcceleration,E=o.adaptive,w=o.roundOffsets,$=o.isFixed,L=m.x,A=L===void 0?0:L,V=m.y,O=V===void 0?0:V,M=typeof w=="function"?w({x:A,y:O}):{x:A,y:O};A=M.x,O=M.y;var R=m.hasOwnProperty("x"),Y=m.hasOwnProperty("y"),F=fe,x=ue,I=window;if(E){var P=qn(i),j="clientHeight",q="clientWidth";P===$e(i)&&qe(P=Je(i)).position!=="static"&&C==="absolute"&&(j="scrollHeight",q="scrollWidth"),(a===ue||(a===fe||a===ke)&&d===Nt)&&(x=Ce,O-=($&&P===I&&I.visualViewport?I.visualViewport.height:P[j])-r.height,O*=k?1:-1),a!==fe&&(a!==ue&&a!==Ce||d!==Nt)||(F=ke,A-=($&&P===I&&I.visualViewport?I.visualViewport.width:P[q])-r.width,A*=k?1:-1)}var W,Z=Object.assign({position:C},E&&Mr),Ee=w===!0?function(Le,pe){var Ae=Le.x,Be=Le.y,G=pe.devicePixelRatio||1;return{x:At(Ae*G)/G||0,y:At(Be*G)/G||0}}({x:A,y:O},$e(i)):{x:A,y:O};return A=Ee.x,O=Ee.y,k?Object.assign({},Z,((W={})[x]=Y?"0":"",W[F]=R?"0":"",W.transform=(I.devicePixelRatio||1)<=1?"translate("+A+"px, "+O+"px)":"translate3d("+A+"px, "+O+"px, 0)",W)):Object.assign({},Z,((t={})[x]=Y?O+"px":"",t[F]=R?A+"px":"",t.transform="",t))}const Xi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(o){var t=o.state,i=o.options,r=i.gpuAcceleration,a=r===void 0||r,d=i.adaptive,m=d===void 0||d,C=i.roundOffsets,k=C===void 0||C,E={placement:xe(t.placement),variation:Ot(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ro(Object.assign({},E,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:m,roundOffsets:k})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ro(Object.assign({},E,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:k})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var hi={passive:!0};const Yi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(o){var t=o.state,i=o.instance,r=o.options,a=r.scroll,d=a===void 0||a,m=r.resize,C=m===void 0||m,k=$e(t.elements.popper),E=[].concat(t.scrollParents.reference,t.scrollParents.popper);return d&&E.forEach(function(w){w.addEventListener("scroll",i.update,hi)}),C&&k.addEventListener("resize",i.update,hi),function(){d&&E.forEach(function(w){w.removeEventListener("scroll",i.update,hi)}),C&&k.removeEventListener("resize",i.update,hi)}},data:{}};var Lr={left:"right",right:"left",bottom:"top",top:"bottom"};function mi(o){return o.replace(/left|right|bottom|top/g,function(t){return Lr[t]})}var zr={start:"end",end:"start"};function qo(o){return o.replace(/start|end/g,function(t){return zr[t]})}function Ki(o){var t=$e(o);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gi(o){return Bt(Je(o)).left+Ki(o).scrollLeft}function Qi(o){var t=qe(o),i=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+r)}function Ho(o){return["html","body","#document"].indexOf(Pe(o))>=0?o.ownerDocument.body:Ne(o)&&Qi(o)?o:Ho(pi(o))}function Un(o,t){var i;t===void 0&&(t=[]);var r=Ho(o),a=r===((i=o.ownerDocument)==null?void 0:i.body),d=$e(r),m=a?[d].concat(d.visualViewport||[],Qi(r)?r:[]):r,C=t.concat(m);return a?C:C.concat(Un(pi(m)))}function Ji(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function Uo(o,t,i){return t===Pi?Ji(function(r,a){var d=$e(r),m=Je(r),C=d.visualViewport,k=m.clientWidth,E=m.clientHeight,w=0,$=0;if(C){k=C.width,E=C.height;var L=Io();(L||!L&&a==="fixed")&&(w=C.offsetLeft,$=C.offsetTop)}return{width:k,height:E,x:w+Gi(r),y:$}}(o,i)):st(t)?function(r,a){var d=Bt(r,!1,a==="fixed");return d.top=d.top+r.clientTop,d.left=d.left+r.clientLeft,d.bottom=d.top+r.clientHeight,d.right=d.left+r.clientWidth,d.width=r.clientWidth,d.height=r.clientHeight,d.x=d.left,d.y=d.top,d}(t,i):Ji(function(r){var a,d=Je(r),m=Ki(r),C=(a=r.ownerDocument)==null?void 0:a.body,k=rt(d.scrollWidth,d.clientWidth,C?C.scrollWidth:0,C?C.clientWidth:0),E=rt(d.scrollHeight,d.clientHeight,C?C.scrollHeight:0,C?C.clientHeight:0),w=-m.scrollLeft+Gi(r),$=-m.scrollTop;return qe(C||d).direction==="rtl"&&(w+=rt(d.clientWidth,C?C.clientWidth:0)-k),{width:k,height:E,x:w,y:$}}(Je(o)))}function Xo(o){var t,i=o.reference,r=o.element,a=o.placement,d=a?xe(a):null,m=a?Ot(a):null,C=i.x+i.width/2-r.width/2,k=i.y+i.height/2-r.height/2;switch(d){case ue:t={x:C,y:i.y-r.height};break;case Ce:t={x:C,y:i.y+i.height};break;case ke:t={x:i.x+i.width,y:k};break;case fe:t={x:i.x-r.width,y:k};break;default:t={x:i.x,y:i.y}}var E=d?Ui(d):null;if(E!=null){var w=E==="y"?"height":"width";switch(m){case ot:t[E]=t[E]-(i[w]/2-r[w]/2);break;case Nt:t[E]=t[E]+(i[w]/2-r[w]/2)}}return t}function Dt(o,t){t===void 0&&(t={});var i=t,r=i.placement,a=r===void 0?o.placement:r,d=i.strategy,m=d===void 0?o.strategy:d,C=i.boundary,k=C===void 0?wo:C,E=i.rootBoundary,w=E===void 0?Pi:E,$=i.elementContext,L=$===void 0?Tt:$,A=i.altBoundary,V=A!==void 0&&A,O=i.padding,M=O===void 0?0:O,R=xo(typeof M!="number"?M:jo(M,St)),Y=L===Tt?So:Tt,F=o.rects.popper,x=o.elements[V?Y:L],I=function(pe,Ae,Be,G){var je=Ae==="clippingParents"?function(H){var he=Un(pi(H)),Oe=["absolute","fixed"].indexOf(qe(H).position)>=0&&Ne(H)?qn(H):H;return st(Oe)?he.filter(function(et){return st(et)&&Fo(et,Oe)&&Pe(et)!=="body"}):[]}(pe):[].concat(Ae),We=[].concat(je,[Be]),Lt=We[0],ie=We.reduce(function(H,he){var Oe=Uo(pe,he,G);return H.top=rt(Oe.top,H.top),H.right=fi(Oe.right,H.right),H.bottom=fi(Oe.bottom,H.bottom),H.left=rt(Oe.left,H.left),H},Uo(pe,Lt,G));return ie.width=ie.right-ie.left,ie.height=ie.bottom-ie.top,ie.x=ie.left,ie.y=ie.top,ie}(st(x)?x:x.contextElement||Je(o.elements.popper),k,w,m),P=Bt(o.elements.reference),j=Xo({reference:P,element:F,placement:a}),q=Ji(Object.assign({},F,j)),W=L===Tt?q:P,Z={top:I.top-W.top+R.top,bottom:W.bottom-I.bottom+R.bottom,left:I.left-W.left+R.left,right:W.right-I.right+R.right},Ee=o.modifiersData.offset;if(L===Tt&&Ee){var Le=Ee[a];Object.keys(Z).forEach(function(pe){var Ae=[ke,Ce].indexOf(pe)>=0?1:-1,Be=[ue,Ce].indexOf(pe)>=0?"y":"x";Z[pe]+=Le[Be]*Ae})}return Z}function Ir(o,t){t===void 0&&(t={});var i=t,r=i.placement,a=i.boundary,d=i.rootBoundary,m=i.padding,C=i.flipVariations,k=i.allowedAutoPlacements,E=k===void 0?ji:k,w=Ot(r),$=w?C?xi:xi.filter(function(V){return Ot(V)===w}):St,L=$.filter(function(V){return E.indexOf(V)>=0});L.length===0&&(L=$);var A=L.reduce(function(V,O){return V[O]=Dt(o,{placement:O,boundary:a,rootBoundary:d,padding:m})[xe(O)],V},{});return Object.keys(A).sort(function(V,O){return A[V]-A[O]})}const Yo={name:"flip",enabled:!0,phase:"main",fn:function(o){var t=o.state,i=o.options,r=o.name;if(!t.modifiersData[r]._skip){for(var a=i.mainAxis,d=a===void 0||a,m=i.altAxis,C=m===void 0||m,k=i.fallbackPlacements,E=i.padding,w=i.boundary,$=i.rootBoundary,L=i.altBoundary,A=i.flipVariations,V=A===void 0||A,O=i.allowedAutoPlacements,M=t.options.placement,R=xe(M),Y=k||(R!==M&&V?function(H){if(xe(H)===ui)return[];var he=mi(H);return[qo(H),he,qo(he)]}(M):[mi(M)]),F=[M].concat(Y).reduce(function(H,he){return H.concat(xe(he)===ui?Ir(t,{placement:he,boundary:w,rootBoundary:$,padding:E,flipVariations:V,allowedAutoPlacements:O}):he)},[]),x=t.rects.reference,I=t.rects.popper,P=new Map,j=!0,q=F[0],W=0;W<F.length;W++){var Z=F[W],Ee=xe(Z),Le=Ot(Z)===ot,pe=[ue,Ce].indexOf(Ee)>=0,Ae=pe?"width":"height",Be=Dt(t,{placement:Z,boundary:w,rootBoundary:$,altBoundary:L,padding:E}),G=pe?Le?ke:fe:Le?Ce:ue;x[Ae]>I[Ae]&&(G=mi(G));var je=mi(G),We=[];if(d&&We.push(Be[Ee]<=0),C&&We.push(Be[G]<=0,Be[je]<=0),We.every(function(H){return H})){q=Z,j=!1;break}P.set(Z,We)}if(j)for(var Lt=function(H){var he=F.find(function(Oe){var et=P.get(Oe);if(et)return et.slice(0,H).every(function(Ei){return Ei})});if(he)return q=he,"break"},ie=V?3:1;ie>0&&Lt(ie)!=="break";ie--);t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ko(o,t,i){return i===void 0&&(i={x:0,y:0}),{top:o.top-t.height-i.y,right:o.right-t.width+i.x,bottom:o.bottom-t.height+i.y,left:o.left-t.width-i.x}}function Go(o){return[ue,ke,Ce,fe].some(function(t){return o[t]>=0})}const Qo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(o){var t=o.state,i=o.name,r=t.rects.reference,a=t.rects.popper,d=t.modifiersData.preventOverflow,m=Dt(t,{elementContext:"reference"}),C=Dt(t,{altBoundary:!0}),k=Ko(m,r),E=Ko(C,a,d),w=Go(k),$=Go(E);t.modifiersData[i]={referenceClippingOffsets:k,popperEscapeOffsets:E,isReferenceHidden:w,hasPopperEscaped:$},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":w,"data-popper-escaped":$})}},Jo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(o){var t=o.state,i=o.options,r=o.name,a=i.offset,d=a===void 0?[0,0]:a,m=ji.reduce(function(w,$){return w[$]=function(L,A,V){var O=xe(L),M=[fe,ue].indexOf(O)>=0?-1:1,R=typeof V=="function"?V(Object.assign({},A,{placement:L})):V,Y=R[0],F=R[1];return Y=Y||0,F=(F||0)*M,[fe,ke].indexOf(O)>=0?{x:F,y:Y}:{x:Y,y:F}}($,t.rects,d),w},{}),C=m[t.placement],k=C.x,E=C.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=k,t.modifiersData.popperOffsets.y+=E),t.modifiersData[r]=m}},Zi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(o){var t=o.state,i=o.name;t.modifiersData[i]=Xo({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Zo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var t=o.state,i=o.options,r=o.name,a=i.mainAxis,d=a===void 0||a,m=i.altAxis,C=m!==void 0&&m,k=i.boundary,E=i.rootBoundary,w=i.altBoundary,$=i.padding,L=i.tether,A=L===void 0||L,V=i.tetherOffset,O=V===void 0?0:V,M=Dt(t,{boundary:k,rootBoundary:E,padding:$,altBoundary:w}),R=xe(t.placement),Y=Ot(t.placement),F=!Y,x=Ui(R),I=x==="x"?"y":"x",P=t.modifiersData.popperOffsets,j=t.rects.reference,q=t.rects.popper,W=typeof O=="function"?O(Object.assign({},t.rects,{placement:t.placement})):O,Z=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),Ee=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Le={x:0,y:0};if(P){if(d){var pe,Ae=x==="y"?ue:fe,Be=x==="y"?Ce:ke,G=x==="y"?"height":"width",je=P[x],We=je+M[Ae],Lt=je-M[Be],ie=A?-q[G]/2:0,H=Y===ot?j[G]:q[G],he=Y===ot?-q[G]:-j[G],Oe=t.elements.arrow,et=A&&Oe?Hi(Oe):{width:0,height:0},Ei=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ps=Ei[Ae],xs=Ei[Be],wi=Hn(0,j[G],et[G]),ma=F?j[G]/2-ie-wi-Ps-Z.mainAxis:H-wi-Ps-Z.mainAxis,ga=F?-j[G]/2+ie+wi+xs+Z.mainAxis:he+wi+xs+Z.mainAxis,ho=t.elements.arrow&&qn(t.elements.arrow),va=ho?x==="y"?ho.clientTop||0:ho.clientLeft||0:0,js=(pe=Ee?.[x])!=null?pe:0,ba=je+ga-js,Ws=Hn(A?fi(We,je+ma-js-va):We,je,A?rt(Lt,ba):Lt);P[x]=Ws,Le[x]=Ws-je}if(C){var Rs,ya=x==="x"?ue:fe,_a=x==="x"?Ce:ke,ht=P[I],Si=I==="y"?"height":"width",qs=ht+M[ya],Hs=ht-M[_a],mo=[ue,fe].indexOf(R)!==-1,Us=(Rs=Ee?.[I])!=null?Rs:0,Xs=mo?qs:ht-j[Si]-q[Si]-Us+Z.altAxis,Ys=mo?ht+j[Si]+q[Si]-Us-Z.altAxis:Hs,Ks=A&&mo?function(Ca,ka,go){var Gs=Hn(Ca,ka,go);return Gs>go?go:Gs}(Xs,ht,Ys):Hn(A?Xs:qs,ht,A?Ys:Hs);P[I]=Ks,Le[I]=Ks-ht}t.modifiersData[r]=Le}},requiresIfExists:["offset"]};function Fr(o,t,i){i===void 0&&(i=!1);var r,a,d=Ne(t),m=Ne(t)&&function($){var L=$.getBoundingClientRect(),A=At(L.width)/$.offsetWidth||1,V=At(L.height)/$.offsetHeight||1;return A!==1||V!==1}(t),C=Je(t),k=Bt(o,m,i),E={scrollLeft:0,scrollTop:0},w={x:0,y:0};return(d||!d&&!i)&&((Pe(t)!=="body"||Qi(C))&&(E=(r=t)!==$e(r)&&Ne(r)?{scrollLeft:(a=r).scrollLeft,scrollTop:a.scrollTop}:Ki(r)),Ne(t)?((w=Bt(t,!0)).x+=t.clientLeft,w.y+=t.clientTop):C&&(w.x=Gi(C))),{x:k.left+E.scrollLeft-w.x,y:k.top+E.scrollTop-w.y,width:k.width,height:k.height}}function Pr(o){var t=new Map,i=new Set,r=[];function a(d){i.add(d.name),[].concat(d.requires||[],d.requiresIfExists||[]).forEach(function(m){if(!i.has(m)){var C=t.get(m);C&&a(C)}}),r.push(d)}return o.forEach(function(d){t.set(d.name,d)}),o.forEach(function(d){i.has(d.name)||a(d)}),r}var es={placement:"bottom",modifiers:[],strategy:"absolute"};function ts(){for(var o=arguments.length,t=new Array(o),i=0;i<o;i++)t[i]=arguments[i];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function gi(o){o===void 0&&(o={});var t=o,i=t.defaultModifiers,r=i===void 0?[]:i,a=t.defaultOptions,d=a===void 0?es:a;return function(m,C,k){k===void 0&&(k=d);var E,w,$={placement:"bottom",orderedModifiers:[],options:Object.assign({},es,d),modifiersData:{},elements:{reference:m,popper:C},attributes:{},styles:{}},L=[],A=!1,V={state:$,setOptions:function(M){var R=typeof M=="function"?M($.options):M;O(),$.options=Object.assign({},d,$.options,R),$.scrollParents={reference:st(m)?Un(m):m.contextElement?Un(m.contextElement):[],popper:Un(C)};var Y,F,x=function(I){var P=Pr(I);return zo.reduce(function(j,q){return j.concat(P.filter(function(W){return W.phase===q}))},[])}((Y=[].concat(r,$.options.modifiers),F=Y.reduce(function(I,P){var j=I[P.name];return I[P.name]=j?Object.assign({},j,P,{options:Object.assign({},j.options,P.options),data:Object.assign({},j.data,P.data)}):P,I},{}),Object.keys(F).map(function(I){return F[I]})));return $.orderedModifiers=x.filter(function(I){return I.enabled}),$.orderedModifiers.forEach(function(I){var P=I.name,j=I.options,q=j===void 0?{}:j,W=I.effect;if(typeof W=="function"){var Z=W({state:$,name:P,instance:V,options:q});L.push(Z||function(){})}}),V.update()},forceUpdate:function(){if(!A){var M=$.elements,R=M.reference,Y=M.popper;if(ts(R,Y)){$.rects={reference:Fr(R,qn(Y),$.options.strategy==="fixed"),popper:Hi(Y)},$.reset=!1,$.placement=$.options.placement,$.orderedModifiers.forEach(function(W){return $.modifiersData[W.name]=Object.assign({},W.data)});for(var F=0;F<$.orderedModifiers.length;F++)if($.reset!==!0){var x=$.orderedModifiers[F],I=x.fn,P=x.options,j=P===void 0?{}:P,q=x.name;typeof I=="function"&&($=I({state:$,options:j,name:q,instance:V})||$)}else $.reset=!1,F=-1}}},update:(E=function(){return new Promise(function(M){V.forceUpdate(),M($)})},function(){return w||(w=new Promise(function(M){Promise.resolve().then(function(){w=void 0,M(E())})})),w}),destroy:function(){O(),A=!0}};if(!ts(m,C))return V;function O(){L.forEach(function(M){return M()}),L=[]}return V.setOptions(k).then(function(M){!A&&k.onFirstUpdate&&k.onFirstUpdate(M)}),V}}var xr=gi(),jr=gi({defaultModifiers:[Yi,Zi,Xi,Ri]}),eo=gi({defaultModifiers:[Yi,Zi,Xi,Ri,Jo,Yo,Zo,Wo,Qo]});const ns=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Do,afterRead:Ao,afterWrite:Lo,applyStyles:Ri,arrow:Wo,auto:ui,basePlacements:St,beforeMain:Bo,beforeRead:No,beforeWrite:Vo,bottom:Ce,clippingParents:wo,computeStyles:Xi,createPopper:eo,createPopperBase:xr,createPopperLite:jr,detectOverflow:Dt,end:Nt,eventListeners:Yi,flip:Yo,hide:Qo,left:fe,main:Oo,modifierPhases:zo,offset:Jo,placements:ji,popper:Tt,popperGenerator:gi,popperOffsets:Zi,preventOverflow:Zo,read:To,reference:So,right:ke,start:ot,top:ue,variationPlacements:xi,viewport:Pi,write:Mo},Symbol.toStringTag,{value:"Module"})),is="dropdown",lt=".bs.dropdown",to=".data-api",Wr="ArrowUp",os="ArrowDown",Rr=`hide${lt}`,qr=`hidden${lt}`,Hr=`show${lt}`,Ur=`shown${lt}`,ss=`click${lt}${to}`,rs=`keydown${lt}${to}`,Xr=`keyup${lt}${to}`,Vt="show",at='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Yr=`${at}.${Vt}`,vi=".dropdown-menu",Kr=ne()?"top-end":"top-start",Gr=ne()?"top-start":"top-end",Qr=ne()?"bottom-end":"bottom-start",Jr=ne()?"bottom-start":"bottom-end",Zr=ne()?"left-start":"right-start",el=ne()?"right-start":"left-start",tl={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},nl={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Me extends ge{constructor(t,i){super(t,i),this._popper=null,this._parent=this._element.parentNode,this._menu=S.next(this._element,vi)[0]||S.prev(this._element,vi)[0]||S.findOne(vi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return tl}static get DefaultType(){return nl}static get NAME(){return is}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Se(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!_.trigger(this._element,Hr,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const i of[].concat(...document.body.children))_.on(i,"mouseover",nt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Vt),this._element.classList.add(Vt),_.trigger(this._element,Ur,t)}}hide(){if(Se(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(!_.trigger(this._element,Rr,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))_.off(i,"mouseover",nt);this._popper&&this._popper.destroy(),this._menu.classList.remove(Vt),this._element.classList.remove(Vt),this._element.setAttribute("aria-expanded","false"),se.removeDataAttribute(this._menu,"popper"),_.trigger(this._element,qr,t)}}_getConfig(t){if(typeof(t=super._getConfig(t)).reference=="object"&&!U(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${is.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(ns===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:U(this._config.reference)?t=ae(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const i=this._getPopperConfig();this._popper=eo(t,this._menu,i)}_isShown(){return this._menu.classList.contains(Vt)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Zr;if(t.classList.contains("dropstart"))return el;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const i=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains("dropup")?i?Gr:Kr:i?Jr:Qr}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(i=>Number.parseInt(i,10)):typeof t=="function"?i=>t(i,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")&&(se.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...oe(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:i}){const r=S.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(a=>we(a));r.length&&Mn(r,i,t===os,!r.includes(i)).focus()}static jQueryInterface(t){return this.each(function(){const i=Me.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}static clearMenus(t){if(t.button===2||t.type==="keyup"&&t.key!=="Tab")return;const i=S.find(Yr);for(const r of i){const a=Me.getInstance(r);if(!a||a._config.autoClose===!1)continue;const d=t.composedPath(),m=d.includes(a._menu);if(d.includes(a._element)||a._config.autoClose==="inside"&&!m||a._config.autoClose==="outside"&&m||a._menu.contains(t.target)&&(t.type==="keyup"&&t.key==="Tab"||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const C={relatedTarget:a._element};t.type==="click"&&(C.clickEvent=t),a._completeHide(C)}}static dataApiKeydownHandler(t){const i=/input|textarea/i.test(t.target.tagName),r=t.key==="Escape",a=[Wr,os].includes(t.key);if(!a&&!r||i&&!r)return;t.preventDefault();const d=this.matches(at)?this:S.prev(this,at)[0]||S.next(this,at)[0]||S.findOne(at,t.delegateTarget.parentNode),m=Me.getOrCreateInstance(d);if(a)return t.stopPropagation(),m.show(),void m._selectMenuItem(t);m._isShown()&&(t.stopPropagation(),m.hide(),d.focus())}}_.on(document,rs,at,Me.dataApiKeydownHandler),_.on(document,rs,vi,Me.dataApiKeydownHandler),_.on(document,ss,Me.clearMenus),_.on(document,Xr,Me.clearMenus),_.on(document,ss,at,function(o){o.preventDefault(),Me.getOrCreateInstance(this).toggle()}),me(Me);const ls="backdrop",as="show",cs=`mousedown.bs.${ls}`,il={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ol={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ds extends Ye{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return il}static get DefaultType(){return ol}static get NAME(){return ls}show(t){if(!this._config.isVisible)return void oe(t);this._append();const i=this._getElement();this._config.isAnimated&&Xe(i),i.classList.add(as),this._emulateAnimation(()=>{oe(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(as),this._emulateAnimation(()=>{this.dispose(),oe(t)})):oe(t)}dispose(){this._isAppended&&(_.off(this._element,cs),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=ae(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),_.on(t,cs,()=>{oe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Zn(t,this._getElement(),this._config.isAnimated)}}const bi=".bs.focustrap",sl=`focusin${bi}`,rl=`keydown.tab${bi}`,us="backward",ll={autofocus:!0,trapElement:null},al={autofocus:"boolean",trapElement:"element"};class fs extends Ye{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ll}static get DefaultType(){return al}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),_.off(document,bi),_.on(document,sl,t=>this._handleFocusin(t)),_.on(document,rl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,_.off(document,bi))}_handleFocusin(t){const{trapElement:i}=this._config;if(t.target===document||t.target===i||i.contains(t.target))return;const r=S.focusableChildren(i);r.length===0?i.focus():this._lastTabNavDirection===us?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){t.key==="Tab"&&(this._lastTabNavDirection=t.shiftKey?us:"forward")}}const ps=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hs=".sticky-top",yi="padding-right",ms="margin-right";class no{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,yi,i=>i+t),this._setElementAttributes(ps,yi,i=>i+t),this._setElementAttributes(hs,ms,i=>i-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,yi),this._resetElementAttributes(ps,yi),this._resetElementAttributes(hs,ms)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,i,r){const a=this.getWidth();this._applyManipulationCallback(t,d=>{if(d!==this._element&&window.innerWidth>d.clientWidth+a)return;this._saveInitialAttribute(d,i);const m=window.getComputedStyle(d).getPropertyValue(i);d.style.setProperty(i,`${r(Number.parseFloat(m))}px`)})}_saveInitialAttribute(t,i){const r=t.style.getPropertyValue(i);r&&se.setDataAttribute(t,i,r)}_resetElementAttributes(t,i){this._applyManipulationCallback(t,r=>{const a=se.getDataAttribute(r,i);a!==null?(se.removeDataAttribute(r,i),r.style.setProperty(i,a)):r.style.removeProperty(i)})}_applyManipulationCallback(t,i){if(U(t))i(t);else for(const r of S.find(t,this._element))i(r)}}const Te=".bs.modal",cl=`hide${Te}`,dl=`hidePrevented${Te}`,gs=`hidden${Te}`,vs=`show${Te}`,ul=`shown${Te}`,fl=`resize${Te}`,pl=`click.dismiss${Te}`,hl=`mousedown.dismiss${Te}`,ml=`keydown.dismiss${Te}`,gl=`click${Te}.data-api`,bs="modal-open",ys="show",io="modal-static",vl={backdrop:!0,focus:!0,keyboard:!0},bl={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ct extends ge{constructor(t,i){super(t,i),this._dialog=S.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new no,this._addEventListeners()}static get Default(){return vl}static get DefaultType(){return bl}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||_.trigger(this._element,vs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(bs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(_.trigger(this._element,cl).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ys),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){_.off(window,Te),_.off(this._dialog,Te),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ds({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new fs({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 i=S.findOne(".modal-body",this._dialog);i&&(i.scrollTop=0),Xe(this._element),this._element.classList.add(ys),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,_.trigger(this._element,ul,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){_.on(this._element,ml,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),_.on(window,fl,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),_.on(this._element,hl,t=>{_.one(this._element,pl,i=>{this._element===t.target&&this._element===i.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(bs),this._resetAdjustments(),this._scrollBar.reset(),_.trigger(this._element,gs)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(_.trigger(this._element,dl).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(io)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(io),this._queueCallback(()=>{this._element.classList.remove(io),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),r=i>0;if(r&&!t){const a=ne()?"paddingLeft":"paddingRight";this._element.style[a]=`${i}px`}if(!r&&t){const a=ne()?"paddingRight":"paddingLeft";this._element.style[a]=`${i}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){const r=ct.getOrCreateInstance(this,t);if(typeof t=="string"){if(r[t]===void 0)throw new TypeError(`No method named "${t}"`);r[t](i)}})}}_.on(document,gl,'[data-bs-toggle="modal"]',function(o){const t=S.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&o.preventDefault(),_.one(t,vs,r=>{r.defaultPrevented||_.one(t,gs,()=>{we(this)&&this.focus()})});const i=S.findOne(".modal.show");i&&ct.getInstance(i).hide(),ct.getOrCreateInstance(t).toggle(this)}),it(ct),me(ct);const He=".bs.offcanvas",_s=".data-api",yl=`load${He}${_s}`,Cs="show",ks="showing",$s="hiding",Es=".offcanvas.show",_l=`show${He}`,Cl=`shown${He}`,kl=`hide${He}`,ws=`hidePrevented${He}`,Ss=`hidden${He}`,$l=`resize${He}`,El=`click${He}${_s}`,wl=`keydown.dismiss${He}`,Sl={backdrop:!0,keyboard:!0,scroll:!1},Nl={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ue extends ge{constructor(t,i){super(t,i),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Sl}static get DefaultType(){return Nl}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||_.trigger(this._element,_l,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new no().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ks),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Cs),this._element.classList.remove(ks),_.trigger(this._element,Cl,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(_.trigger(this._element,kl).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($s),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Cs,$s),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new no().reset(),_.trigger(this._element,Ss)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=!!this._config.backdrop;return new ds({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{this._config.backdrop!=="static"?this.hide():_.trigger(this._element,ws)}:null})}_initializeFocusTrap(){return new fs({trapElement:this._element})}_addEventListeners(){_.on(this._element,wl,t=>{t.key==="Escape"&&(this._config.keyboard?this.hide():_.trigger(this._element,ws))})}static jQueryInterface(t){return this.each(function(){const i=Ue.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t](this)}})}}_.on(document,El,'[data-bs-toggle="offcanvas"]',function(o){const t=S.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Se(this))return;_.one(t,Ss,()=>{we(this)&&this.focus()});const i=S.findOne(Es);i&&i!==t&&Ue.getInstance(i).hide(),Ue.getOrCreateInstance(t).toggle(this)}),_.on(window,yl,()=>{for(const o of S.find(Es))Ue.getOrCreateInstance(o).show()}),_.on(window,$l,()=>{for(const o of S.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(o).position!=="fixed"&&Ue.getOrCreateInstance(o).hide()}),it(Ue),me(Ue);const Ns={"*":["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:[]},Tl=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Al=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Bl=(o,t)=>{const i=o.nodeName.toLowerCase();return t.includes(i)?!Tl.has(i)||!!Al.test(o.nodeValue):t.filter(r=>r instanceof RegExp).some(r=>r.test(i))},Ol={allowList:Ns,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Dl={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Vl={entry:"(string|element|function|null)",selector:"(string|element)"};class Ml extends Ye{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Ol}static get DefaultType(){return Dl}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[a,d]of Object.entries(this._config.content))this._setContent(t,d,a);const i=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&i.classList.add(...r.split(" ")),i}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[i,r]of Object.entries(t))super._typeCheckConfig({selector:i,entry:r},Vl)}_setContent(t,i,r){const a=S.findOne(r,t);a&&((i=this._resolvePossibleFunction(i))?U(i)?this._putElementInTemplate(ae(i),a):this._config.html?a.innerHTML=this._maybeSanitize(i):a.textContent=i:a.remove())}_maybeSanitize(t){return this._config.sanitize?function(i,r,a){if(!i.length)return i;if(a&&typeof a=="function")return a(i);const d=new window.DOMParser().parseFromString(i,"text/html"),m=[].concat(...d.body.querySelectorAll("*"));for(const C of m){const k=C.nodeName.toLowerCase();if(!Object.keys(r).includes(k)){C.remove();continue}const E=[].concat(...C.attributes),w=[].concat(r["*"]||[],r[k]||[]);for(const $ of E)Bl($,w)||C.removeAttribute($.nodeName)}return d.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return oe(t,[void 0,this])}_putElementInTemplate(t,i){if(this._config.html)return i.innerHTML="",void i.append(t);i.textContent=t.textContent}}const Ll=new Set(["sanitize","allowList","sanitizeFn"]),oo="fade",_i="show",zl=".tooltip-inner",Ts=".modal",As="hide.bs.modal",Xn="hover",so="focus",ro="click",Il={AUTO:"auto",TOP:"top",RIGHT:ne()?"left":"right",BOTTOM:"bottom",LEFT:ne()?"right":"left"},Fl={allowList:Ns,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"},Pl={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 dt extends ge{constructor(t,i){if(ns===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,i),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 Fl}static get DefaultType(){return Pl}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),_.off(this._element.closest(Ts),As,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=_.trigger(this._element,this.constructor.eventName("show")),i=(bt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:a}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(r),_.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(r),r.classList.add(_i),"ontouchstart"in document.documentElement)for(const d of[].concat(...document.body.children))_.on(d,"mouseover",nt);this._queueCallback(()=>{_.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!_.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(_i),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))_.off(t,"mouseover",nt);this._activeTrigger[ro]=!1,this._activeTrigger[so]=!1,this._activeTrigger[Xn]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),_.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 i=this._getTemplateFactory(t).toHtml();if(!i)return null;i.classList.remove(oo,_i),i.classList.add(`bs-${this.constructor.NAME}-auto`);const r=(a=>{do a+=Math.floor(1e6*Math.random());while(document.getElementById(a));return a})(this.constructor.NAME).toString();return i.setAttribute("id",r),this._isAnimated()&&i.classList.add(oo),i}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Ml({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[zl]: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(oo)}_isShown(){return this.tip&&this.tip.classList.contains(_i)}_createPopper(t){const i=oe(this._config.placement,[this,t,this._element]),r=Il[i.toUpperCase()];return eo(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(i=>Number.parseInt(i,10)):typeof t=="function"?i=>t(i,this._element):t}_resolvePossibleFunction(t){return oe(t,[this._element,this._element])}_getPopperConfig(t){const i={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:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...i,...oe(this._config.popperConfig,[void 0,i])}}_setListeners(){const t=this._config.trigger.split(" ");for(const i of t)if(i==="click")_.on(this._element,this.constructor.eventName("click"),this._config.selector,r=>{const a=this._initializeOnDelegatedTarget(r);a._activeTrigger[ro]=!(a._isShown()&&a._activeTrigger[ro]),a.toggle()});else if(i!=="manual"){const r=i===Xn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),a=i===Xn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");_.on(this._element,r,this._config.selector,d=>{const m=this._initializeOnDelegatedTarget(d);m._activeTrigger[d.type==="focusin"?so:Xn]=!0,m._enter()}),_.on(this._element,a,this._config.selector,d=>{const m=this._initializeOnDelegatedTarget(d);m._activeTrigger[d.type==="focusout"?so:Xn]=m._element.contains(d.relatedTarget),m._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},_.on(this._element.closest(Ts),As,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,i){clearTimeout(this._timeout),this._timeout=setTimeout(t,i)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const i=se.getDataAttributes(this._element);for(const r of Object.keys(i))Ll.has(r)&&delete i[r];return t={...i,...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:ae(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[i,r]of Object.entries(this._config))this.constructor.Default[i]!==r&&(t[i]=r);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 i=dt.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}}me(dt);const xl=".popover-header",jl=".popover-body",Wl={...dt.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"},Rl={...dt.DefaultType,content:"(null|string|element|function)"};class Ci extends dt{static get Default(){return Wl}static get DefaultType(){return Rl}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[xl]:this._getTitle(),[jl]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const i=Ci.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t]()}})}}me(Ci);const lo=".bs.scrollspy",ql=`activate${lo}`,Bs=`click${lo}`,Hl=`load${lo}.data-api`,Mt="active",ao="[href]",Os=".nav-link",Ul=`${Os}, .nav-item > ${Os}, .list-group-item`,Xl={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Yl={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Yn extends ge{constructor(t,i){super(t,i),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 Xl}static get DefaultType(){return Yl}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=ae(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(i=>Number.parseFloat(i))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(_.off(this._config.target,Bs),_.on(this._config.target,Bs,ao,t=>{const i=this._observableSections.get(t.target.hash);if(i){t.preventDefault();const r=this._rootElement||window,a=i.offsetTop-this._element.offsetTop;if(r.scrollTo)return void r.scrollTo({top:a,behavior:"smooth"});r.scrollTop=a}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(i=>this._observerCallback(i),t)}_observerCallback(t){const i=m=>this._targetLinks.get(`#${m.target.id}`),r=m=>{this._previousScrollData.visibleEntryTop=m.target.offsetTop,this._process(i(m))},a=(this._rootElement||document.documentElement).scrollTop,d=a>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=a;for(const m of t){if(!m.isIntersecting){this._activeTarget=null,this._clearActiveClass(i(m));continue}const C=m.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(d&&C){if(r(m),!a)return}else d||C||r(m)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=S.find(ao,this._config.target);for(const i of t){if(!i.hash||Se(i))continue;const r=S.findOne(decodeURI(i.hash),this._element);we(r)&&(this._targetLinks.set(decodeURI(i.hash),i),this._observableSections.set(i.hash,r))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Mt),this._activateParents(t),_.trigger(this._element,ql,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))S.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Mt);else for(const i of S.parents(t,".nav, .list-group"))for(const r of S.prev(i,Ul))r.classList.add(Mt)}_clearActiveClass(t){t.classList.remove(Mt);const i=S.find(`${ao}.${Mt}`,t);for(const r of i)r.classList.remove(Mt)}static jQueryInterface(t){return this.each(function(){const i=Yn.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}_.on(window,Hl,()=>{for(const o of S.find('[data-bs-spy="scroll"]'))Yn.getOrCreateInstance(o)}),me(Yn);const ut=".bs.tab",Kl=`hide${ut}`,Gl=`hidden${ut}`,Ql=`show${ut}`,Jl=`shown${ut}`,Zl=`click${ut}`,ea=`keydown${ut}`,ta=`load${ut}`,na="ArrowLeft",Ds="ArrowRight",ia="ArrowUp",Vs="ArrowDown",co="Home",Ms="End",ft="active",Ls="fade",uo="show",zs=".dropdown-toggle",fo=`:not(${zs})`,Is='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',po=`.nav-link${fo}, .list-group-item${fo}, [role="tab"]${fo}, ${Is}`,oa=`.${ft}[data-bs-toggle="tab"], .${ft}[data-bs-toggle="pill"], .${ft}[data-bs-toggle="list"]`;class pt extends ge{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),_.on(this._element,ea,i=>this._keydown(i)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const i=this._getActiveElem(),r=i?_.trigger(i,Kl,{relatedTarget:t}):null;_.trigger(t,Ql,{relatedTarget:i}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(i,t),this._activate(t,i))}_activate(t,i){t&&(t.classList.add(ft),this._activate(S.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),_.trigger(t,Jl,{relatedTarget:i})):t.classList.add(uo)},t,t.classList.contains(Ls)))}_deactivate(t,i){t&&(t.classList.remove(ft),t.blur(),this._deactivate(S.getElementFromSelector(t)),this._queueCallback(()=>{t.getAttribute("role")==="tab"?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),_.trigger(t,Gl,{relatedTarget:i})):t.classList.remove(uo)},t,t.classList.contains(Ls)))}_keydown(t){if(![na,Ds,ia,Vs,co,Ms].includes(t.key))return;t.stopPropagation(),t.preventDefault();const i=this._getChildren().filter(a=>!Se(a));let r;if([co,Ms].includes(t.key))r=i[t.key===co?0:i.length-1];else{const a=[Ds,Vs].includes(t.key);r=Mn(i,t.target,a,!0)}r&&(r.focus({preventScroll:!0}),pt.getOrCreateInstance(r).show())}_getChildren(){return S.find(po,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,i){this._setAttributeIfNotExists(t,"role","tablist");for(const r of i)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const i=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",i),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),i||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const i=S.getElementFromSelector(t);i&&(this._setAttributeIfNotExists(i,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(i,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,i){const r=this._getOuterElement(t);if(!r.classList.contains("dropdown"))return;const a=(d,m)=>{const C=S.findOne(d,r);C&&C.classList.toggle(m,i)};a(zs,ft),a(".dropdown-menu",uo),r.setAttribute("aria-expanded",i)}_setAttributeIfNotExists(t,i,r){t.hasAttribute(i)||t.setAttribute(i,r)}_elemIsActive(t){return t.classList.contains(ft)}_getInnerElement(t){return t.matches(po)?t:S.findOne(po,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const i=pt.getOrCreateInstance(this);if(typeof t=="string"){if(i[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);i[t]()}})}}_.on(document,Zl,Is,function(o){["A","AREA"].includes(this.tagName)&&o.preventDefault(),Se(this)||pt.getOrCreateInstance(this).show()}),_.on(window,ta,()=>{for(const o of S.find(oa))pt.getOrCreateInstance(o)}),me(pt);const Ze=".bs.toast",sa=`mouseover${Ze}`,ra=`mouseout${Ze}`,la=`focusin${Ze}`,aa=`focusout${Ze}`,ca=`hide${Ze}`,da=`hidden${Ze}`,ua=`show${Ze}`,fa=`shown${Ze}`,Fs="hide",ki="show",$i="showing",pa={animation:"boolean",autohide:"boolean",delay:"number"},ha={animation:!0,autohide:!0,delay:5e3};class Kn extends ge{constructor(t,i){super(t,i),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ha}static get DefaultType(){return pa}static get NAME(){return"toast"}show(){_.trigger(this._element,ua).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Fs),Xe(this._element),this._element.classList.add(ki,$i),this._queueCallback(()=>{this._element.classList.remove($i),_.trigger(this._element,fa),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(_.trigger(this._element,ca).defaultPrevented||(this._element.classList.add($i),this._queueCallback(()=>{this._element.classList.add(Fs),this._element.classList.remove($i,ki),_.trigger(this._element,da)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ki),super.dispose()}isShown(){return this._element.classList.contains(ki)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,i){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=i;break;case"focusin":case"focusout":this._hasKeyboardInteraction=i}if(i)return void this._clearTimeout();const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){_.on(this._element,sa,t=>this._onInteraction(t,!0)),_.on(this._element,ra,t=>this._onInteraction(t,!1)),_.on(this._element,la,t=>this._onInteraction(t,!0)),_.on(this._element,aa,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const i=Kn.getOrCreateInstance(this,t);if(typeof t=="string"){if(i[t]===void 0)throw new TypeError(`No method named "${t}"`);i[t](this)}})}}return it(Kn),me(Kn),{Alert:De,Button:Ke,Carousel:de,Collapse:wt,Dropdown:Me,Modal:ct,Offcanvas:Ue,Popover:Ci,ScrollSpy:Yn,Tab:pt,Toast:Kn,Tooltip:dt}})}(Ti)),Ti.exports}var Da=Oa();const bo=$a(Da);function Va(e,s=!0){s?document.getElementById(e)?.scrollIntoView({behavior:"smooth"}):document.getElementById(e)?.scrollIntoView()}let Re=null;function Bn(){Re?.hide(),Re=null}function yo(e,s){Bn();const c=document.getElementById(e);if(c){Re=new bo.Modal(c,{backdrop:"static"}),Re.value=s,Re.id=e,Re.show();const p=document.querySelector(`#${e} [autofocus]`);p&&p.focus()}}function Ai(e){return bo.Modal.getInstance(document.getElementById(e))?.value}function Ma(e){return Re?e?Re.id===e&&Re._isShown:Re._isShown:!1}function or(e,s=0,c=25){return e?.slice(s*c,s*c+c)??[]}function La(e="#invalid"){document.querySelector(e)?.focus()}function sr(e,s=[]){for(const p of s)p.valid=!0;document.querySelector(`#${e} [autofocus]`)?.focus()}function rr(e,s){e&&(e.modelValue=s,e.valid=!0)}function _o(e){const s=document.querySelector(`#${e}`);return s?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(c=>{c.focus(),c.blur()}),s.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)?(Co(e),!1):!0):(console.error("can't find/validate form",e),!1)}async function lr(e){const s=document.getElementById(e);return s?(document.querySelectorAll(`#${e} input, #${e} .form-control`).forEach(c=>{c.focus(),c.blur()}),document.querySelectorAll(`#${e} .ace_editor`).forEach(c=>{c.click()}),new Promise(c=>setTimeout(()=>{if(s.checkValidity()===!1||document.querySelector(`#${e} :invalid, #${e} .invalid`)){Co(e),c(!1);return}c(!0)}))):(console.error("can't find/validate form",e),Promise.resolve(!1))}function za(e){document.querySelector(`#${e} [autofocus]`)?.focus()}function Co(e){document.querySelector(`#${e} :invalid, #${e} .invalid`)?.focus()}function Ia(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 ar(e){const s=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),c=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${c} ${s}`}function cr(e,s=!1){const[c,p,b]=[(""+e.getUTCHours()).padStart(2,"0"),(""+e.getUTCMinutes()).padStart(2,"0"),(""+e.getUTCSeconds()).padStart(2,"0")];return s?`${c}:${p}:${b}`:`${c}:${p}`}function Fa(e,s=!1){return`${ar(e)} ${cr(e,s)}`}function Pa(e,s,c=!0,p=!1){let b=s.getTime()-e.getTime();p?b+=1:c?b+=1e3:b+=60*1e3;const v=(""+b%1e3).padStart(3,"0");b=Math.floor(b/1e3);const u=(""+b%60).padStart(2,"0");b=Math.floor(b/60);const N=(""+b%60).padStart(2,"0");b=Math.floor(b/60);const U=(""+b).padStart(2,"0");return p?`${U}:${N}:${u}.${v}`:c?`${U}:${N}:${u}`:`${U}:${N}`}function xa(e){const s=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e);return`${new Intl.DateTimeFormat("en",{month:"short"}).format(e)} ${s}`}function Bi(e,s=0){return e.toLocaleString("en",{minimumFractionDigits:s})}function ja(e,s,c=2){switch(s){case"EUR":s="€";break;case"USD":s="$";break}return`${s} ${Bi(e/10**c,c)}`}function Wa(e,s){return`${Bi(e)} - ${Bi(s)}`}function dr(e){return`**** **** **** ${e.replace(/ /g,"").substr(-4)}`}function Ra(e,s,c=e.ID_FORM){if(c){if(_o(c)&&!e.submitting)return e.submitting=!0,s().finally(()=>{e.submitting=!1})}else if(!e.submitting)return e.submitting=!0,s().finally(()=>{e.submitting=!1});return Promise.resolve()}function qa(e,s,c=e.ID_FORM){return e.submitting?Promise.resolve():lr(c).then(p=>{if(p)return e.submitting=!0,s().finally(()=>{e.submitting=!1})})}function zt(e,s){const c=s.split("."),p=c.shift(),b=e[p];return[void 0,null].includes(b)?b:c.length>0?zt(b,c.join(".")):b}function ur(e,s,c="ASC",p=!1){if(!e)return[];const b=typeof e=="function"?[...e()]:[...e],v=(u,N)=>u.localeCompare(N,void 0,{ignorePunctuation:!0});return c==="ASC"?b.sort((u,N)=>(u=zt(u,s)??"",N=zt(N,s)??"",typeof u=="string"&&typeof N=="string"?p?v(u.toUpperCase(),N.toUpperCase()):v(u,N):u>N?1:u<N?-1:0)):b.sort((u,N)=>(u=zt(u,s)??"",N=zt(N,s)??"",typeof u=="string"&&typeof N=="string"?p?v(N.toUpperCase(),u.toUpperCase()):v(N,u):u<N?1:u>N?-1:0))}function fr(e,s=0,c="ASC"){return{col:s,order:c,set:function(p,b){const v=this.sort(p,b);this.col=p,this.order=v},get:function(p){return this.col===p?this.order:"NONE"},sorted:[],sorter:e,sort:function(p=this.col,b=this.order){const{sorted:v,sortedOrder:u}=this.sorter(p,b);return this.sorted=v,u}}}function Ha(e,s,c=0,p=()=>0,b=()=>Number.MAX_SAFE_INTEGER){return fr((v,u)=>({sorted:or(ur(e,s[v],u),p(),b()),sortedOrder:u}),c)}function Ua(e,s=500,c="none"){clearTimeout(tr.get(c)),tr.set(c,setTimeout(e,s))}const tr=new Map;function Xa(e=3,s=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","eiusmod","tempor","incididunt","labore","et","dolore","magna","aliqua"]){let c="";for(let p=0;p<e;p++)c+=" "+s[Math.floor(Math.random()*s.length)];return c.substr(1)}function Ya(e=3,s=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","omicorn"]){const c=[];for(let p=0;p<e;p++)c.push(s[Math.floor(Math.random()*s.length)]);return c}function Ka(e){navigator.clipboard.writeText(e)}function Ga(e,s=[],c=[],p=!0){const b=[];for(const v of s)if(typeof v=="function")b.push(v());else if(v){const u=v.shift();b.push(u(...v))}for(const v of c)if(typeof v=="function")b.push(v(!1));else if(v){const u=v.shift();b.push(u(v.shift(),!1))}return p?(e.loading=Promise.all(b).finally(()=>{p&&(e.loading=null)}),e.loading):Promise.all(b)}function Qa(e,s=[],c=[],p=!0){const b=[];for(const v of s)if(typeof v=="function")b.push(v(!0));else if(v){const u=v.shift();b.push(u(!0,...v))}for(const v of c)if(typeof v=="function")b.push(v(!1));else if(v){const u=v.shift();b.push(u(!1,...v))}return p?(e.loading=Promise.all(b).finally(()=>{p&&(e.loading=null)}),e.loading):Promise.all(b)}function Ja(e){return e}function Za(e){return e}function ec(e){return e}const tc=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:Bn,abort:function(){this.dirty?yo(this.ID_MODAL,{}):this.$emit("cancel")},emit:function(e){Bn(),this.$emit(e)}}}),nc={key:0},ic={key:1},oc=["disabled"];function sc(e,s,c,p,b,v){const u=n.resolveComponent("cl-modal"),N=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(N,{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 btn-sm cl-color-night it-cancel",onClick:s[0]||(s[0]=U=>e.abort())},[e.dirty?(n.openBlock(),n.createElementBlock("span",nc,n.toDisplayString(e.cancel),1)):(n.openBlock(),n.createElementBlock("span",ic,n.toDisplayString(e.back),1))])),e.hidden?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:1,type:"button",class:n.normalizeClass(["btn btn-sm cl-color-red it-ok",{"cl-btn-spinner":e.spinner}]),disabled:e.disabled||!e.dirty,onClick:s[1]||(s[1]=U=>e.$emit("ok"))},[n.createElementVNode("span",null,n.toDisplayString(e.ok),1)],10,oc))],2),n.createVNode(u,{id:e.ID_MODAL},{title:n.withCtx(()=>[...s[4]||(s[4]=[n.createTextVNode(" Unsaved changes ",-1)])]),body:n.withCtx(()=>[n.renderSlot(e.$slots,"modal",{},()=>[s[5]||(s[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-night it-cancel",onClick:s[2]||(s[2]=U=>e.emit("cancel",!0))}," Discard changes ")]),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:"btn cl-color-red it-ok",onClick:s[3]||(s[3]=U=>e.clModalHide())}," Continue editing ")]),_:3},8,["id"])]),_:3})}const Ft=B(tc,[["render",sc]]);Ft.install=e=>{e.component(Ft.name??"ClNoName",Ft)};const rc=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[s,c]=e.split("=");if(s===this.cookie&&["-mtm","+mtm"].includes(c)){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)}}}),lc=["id"],ac={class:"card-body"},cc={class:"cl-spacing-box text-center"};function dc(e,s,c,p,b,v){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",ac,[n.renderSlot(e.$slots,"default",{},()=>[s[2]||(s[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",cc,[n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-red it-ok",onClick:s[0]||(s[0]=u=>e.accept())}," Accept "),n.createElementVNode("button",{type:"button",class:"btn btn-sm cl-color-night it-cancel",onClick:s[1]||(s[1]=u=>e.decline())}," Decline ")])])],10,lc)):n.createCommentVNode("",!0)}const Pt=B(rc,[["render",dc]]);Pt.install=e=>{e.component(Pt.name??"ClNoName",Pt)};const Dn={mounted(e,s){let c="";for(const b of["cl-tooltip-primary","cl-tooltip-secondary","cl-tooltip-light","cl-tooltip-dark"])e.classList.contains(b)&&(c+=` ${b}`);const p=new bo.Tooltip(e,{title:s.value,placement:s.arg,html:!0,trigger:"hover",delay:{show:65,hide:0},template:`<div class="tooltip cl-tooltip${c}" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`});return e.__tooltipInstance=p,e.addEventListener("show.bs.tooltip",function(){document.querySelectorAll(".cl-tooltip").forEach(v=>v.remove())}),p},unmounted(e){const s=e.__tooltipInstance;if(s){typeof s.dispose=="function"&&s.dispose();const c=document.querySelector(".cl-tooltip");c&&c.remove(),delete e.__tooltipInstance}}},ko={mounted(e,s){e.addEventListener("click",function(){const c=typeof s.value=="function"?s.value():s.value;s.value!==""&&navigator.clipboard?.writeText(c),e.classList.add("cl-animation-flash-text"),setTimeout(()=>{e.classList.remove("cl-animation-flash-text")},1500)})}},uc=n.defineComponent({name:"ClCopy",directives:{tooltip:Dn,clipboard:ko},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()}}}),fc={key:0,ref:"content",class:"cl-copy"},pc={ref:"content"};function hc(e,s,c,p,b,v){const u=n.resolveDirective("tooltip"),N=n.resolveDirective("clipboard");return e.unstyled?n.withDirectives((n.openBlock(),n.createElementBlock("span",fc,[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))])),[[u,e.tooltip,"top"],[N,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",pc,[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)),[[u,e.tooltip,"top"],[N,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)),[[u,e.tooltip,"top"],[N,e.contentToCopy]])}const xt=B(uc,[["render",hc]]);xt.install=e=>{e.component(xt.name??"ClNoName",xt)};const mc=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:dr}}),gc=["id"];function vc(e,s,c,p,b,v){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,gc),n.createTextVNode(", "+n.toDisplayString(e.validText)+" ",1),n.createElementVNode("code",null,n.toDisplayString(e.expires),1)],64)}const jt=B(mc,[["render",vc]]);jt.install=e=>{e.component(jt.name??"ClNoName",jt)};function nr(e){e.preventDefault()}const bc=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,nr)})},unmounted(){["dragenter","dragover","dragleave","drop"].forEach(e=>{document.body.removeEventListener(e,nr)})},methods:{browse:function(){const e=document.getElementById(`cl-dropzone-file-${this.$uid}`);if(e&&document.createEvent){const s=document.createEvent("MouseEvents");s.initEvent("click",!0,!1),e.dispatchEvent(s)}},browsed:function(){const s=document.getElementById(`cl-dropzone-file-${this.$uid}`).files??[];s.length>0&&this.loadFile(s[0])},mock:function(e){this.$emit("file",e)},loadFile:function(e){const s=new FileReader,c=this.$emit;c("file",e),s.onload=function(p){c("content",p.target?.result)},s.readAsText(e)},onDrop:function(e){e.dataTransfer&&this.loadFile(e.dataTransfer.files[0]),this.dragging=!1},onDrag:function(e){this.dragging=e}}}),yc=["id"],_c=["id","accept"];function Cc(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["cl-spacing-small",e.dragging?"cl-dragging":""]),onDragover:s[6]||(s[6]=u=>e.onDrag(!0)),onDragleave:s[7]||(s[7]=u=>e.onDrag(!1)),onDrop:s[8]||(s[8]=n.withModifiers((...u)=>e.onDrop&&e.onDrop(...u),["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:s[0]||(s[0]=(...u)=>e.browsed&&e.browsed(...u))},null,40,yc)):n.createCommentVNode("",!0),n.createElementVNode("input",{id:`cl-dropzone-file-${e.$uid}`,type:"file",accept:e.accept,class:"cl-dropzone-file",onChange:s[1]||(s[1]=(...u)=>e.browsed&&e.browsed(...u))},null,40,_c),e.camera?(n.openBlock(),n.createElementBlock("div",{key:1,class:"cl-dropzone",onClick:s[3]||(s[3]=u=>e.browse())},[s[9]||(s[9]=n.createElementVNode("i",{class:"fas fa-camera"},null,-1)),s[10]||(s[10]=n.createTextVNode("Use your ",-1)),n.createElementVNode("a",{href:"#",onClick:s[2]||(s[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:s[5]||(s[5]=u=>e.browse())},[s[11]||(s[11]=n.createElementVNode("i",{class:"fas fa-file-upload"},null,-1)),s[12]||(s[12]=n.createTextVNode("Drop or ",-1)),n.createElementVNode("a",{href:"#",onClick:s[4]||(s[4]=n.withModifiers(()=>{},["prevent"]))},"browse"),n.createTextVNode(" "+n.toDisplayString(e.what)+" "+n.toDisplayString(e.why)+". ",1)])),n.renderSlot(e.$slots,"default")],34)}const Wt=B(bc,[["render",Cc]]);Wt.install=e=>{e.component(Wt.name??"ClNoName",Wt)};const kc=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),s=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)>s&&this.setInvalid(this.error??`Please enter at most ${s} 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 s=parseInt(e.trim());if(s.toString()!==e){this.setInvalid("Please enter a number.");return}this.min!==void 0&&this.max!==void 0?(s<parseInt(this.min)||s>parseInt(this.max))&&this.setInvalid(`Please enter a number between ${this.min} and ${this.max}.`):this.min!==void 0?s<parseInt(this.min)&&this.setInvalid(`Please enter a number >= ${this.min}.`):this.max!==void 0&&s>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)}}}),$c=["for"],Ec={key:0,class:"required"},wc=["id","autofocus","disabled","maxlength","minlength","placeholder","required"],Sc=["id","autofocus","disabled","required"],Nc=["id","autofocus","disabled","min","max","maxlength","minlength","pattern","placeholder","required","type"],Tc=["id","for"],Ac={key:1,class:"valid-feedback valid-feedback-none"};function Bc(e,s,c,p,b,v){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",Ec,"*")):n.createCommentVNode("",!0)],10,$c)):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":s[0]||(s[0]=u=>e.modelValue=u),autofocus:e.autofocus,class:e.clazz,disabled:e.disabled,maxlength:e.maxlength,minlength:e.minlength,placeholder:e.placeholder,required:e.required,onBlur:s[1]||(s[1]=u=>e.validate(!0)),onChange:s[2]||(s[2]=u=>e.validate()),onInput:s[3]||(s[3]=u=>e.validate())}),null,16,wc)),[[n.vModelText,e.modelValue]]):e.type==="select"?n.withDirectives((n.openBlock(),n.createElementBlock("select",n.mergeProps({key:2,id:e.$uid,"onUpdate:modelValue":s[4]||(s[4]=u=>e.modelValue=u),class:["form-select",e.clazz],autofocus:e.autofocus,disabled:e.disabled,required:e.required},e.$attrs,{onBlur:s[5]||(s[5]=u=>e.validate(!0)),onChange:s[6]||(s[6]=u=>e.validate())}),[n.renderSlot(e.$slots,"default")],16,Sc)),[[n.vModelSelect,e.modelValue]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",n.mergeProps({key:3,id:e.$uid},e.$attrs,{ref:"input","onUpdate:modelValue":s[7]||(s[7]=u=>e.modelValue=u),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:s[8]||(s[8]=u=>e.validate(!0)),onChange:s[9]||(s[9]=u=>e.validate()),onInput:s[10]||(s[10]=u=>e.validate())}),null,16,Nc)),[[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,Tc)):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",Ac))],64))],64)}const Rt=B(kc,[["render",Bc]]);Rt.install=e=>{e.component(Rt.name??"ClNoName",Rt)};const Oc=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()})}}}),Dc=["id","disabled","indeterminate","autofocus"],Vc=["for"];function Mc(e,s,c,p,b,v){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":s[0]||(s[0]=u=>e.modelValue=u),class:"form-check-input",type:"checkbox",disabled:e.disabled,indeterminate:e.indeterminate,autofocus:e.autofocus},e.$attrs,{onChange:s[1]||(s[1]=u=>e.$emit("update:modelValue",e.modelValue))}),null,16,Dc),[[n.vModelCheckbox,e.modelValue]]),n.createElementVNode("label",{class:"form-check-label",for:e.id??e.$uid},[n.renderSlot(e.$slots,"default")],8,Vc)],2)}const qt=B(Oc,[["render",Mc]]);qt.install=e=>{e.component(qt.name??"ClNoName",qt)};const Lc=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."}}}),zc={key:0,class:"form-label"},Ic={key:0,class:"required"},Fc=["id"],Pc={class:"invalid-feedback"},xc={key:1,class:"valid-feedback"};function jc(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.label?(n.openBlock(),n.createElementBlock("label",zc,[n.createTextVNode(n.toDisplayString(e.label),1),e.required?(n.openBlock(),n.createElementBlock("span",Ic,"*")):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,Fc),n.createElementVNode("p",Pc,n.toDisplayString(e.invalidMessage),1),e.help?(n.openBlock(),n.createElementBlock("p",xc,n.toDisplayString(e.help),1)):n.createCommentVNode("",!0)],64)}const Ht=B(Lc,[["render",jc]]);Ht.install=e=>{e.component(Ht.name??"ClNoName",Ht)};const Wc=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-night"):this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-night"),e+(this.class?` ${this.class}`:"")}}}),Rc={key:0,class:"cl-badge-derived cl-badge-sm"},qc=["id"];function Hc(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",Rc)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,qc)],64)}const Ut=B(Wc,[["render",Hc]]);Ut.install=e=>{e.component(Ut.name??"ClNoName",Ut)};const Uc=n.defineComponent({name:"ClIconotron",props:{src:{type:String,default:void 0}}}),Xc={class:"container cl-container-iconotron"},Yc={class:"row"},Kc={class:"col-12 col-md-3"},Gc=["src"],Qc={class:"col-12 col-md-9"};function Jc(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Xc,[n.createElementVNode("div",Yc,[n.createElementVNode("div",Kc,[n.createElementVNode("img",{src:e.src,alt:""},null,8,Gc)]),n.createElementVNode("div",Qc,[n.renderSlot(e.$slots,"default")])])])}const Xt=B(Uc,[["render",Jc]]);Xt.install=e=>{e.component(Xt.name??"ClNoName",Xt)};const Zc=n.defineComponent({name:"ClInfo",directives:{tooltip:Dn},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 ed(e,s,c,p,b,v){const u=n.resolveDirective("tooltip");return e.bottom?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"bottom"]]):e.left?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"left"]]):e.right?n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"right"]]):n.withDirectives((n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(e.classes)},null,2)),[[u,e.info,"top"]])}const Yt=B(Zc,[["render",ed]]);Yt.install=e=>{e.component(Yt.name??"ClNoName",Yt)};const td=n.defineComponent({name:"ClLinkExternal",props:{noicon:{type:Boolean,default:!1}}});function nd(e,s,c,p,b,v){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 Kt=B(td,[["render",nd]]);Kt.install=e=>{e.component(Kt.name??"ClNoName",Kt)};const id=`
6
6
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
7
7
  incididunt ut labore et dolore magna aliqua. Sed ullamcorper morbi tincidunt
8
8
  ornare massa eget egestas purus viverra. Faucibus in ornare quam viverra orci
@@ -14,7 +14,7 @@
14
14
  nibh cras pulvinar mattis nunc. Sit amet massa vitae tortor condimentum lacinia
15
15
  quis vel. Sit amet nulla facilisi morbi tempus iaculis urna id volutpat. Dictum
16
16
  fusce ut placerat orci nulla pellentesque dignissim enim. Non odio euismod
17
- lacinia at.`,sd=`
17
+ lacinia at.`,od=`
18
18
  Tellus cras adipiscing enim eu turpis egestas pretium aenean pharetra. Feugiat
19
19
  pretium nibh ipsum consequat. Vulputate mi sit amet mauris commodo quis.
20
20
  Elementum curabitur vitae nunc sed velit dignissim sodales ut eu. Risus
@@ -26,5 +26,5 @@
26
26
  Congue eu consequat ac felis donec. Aliquam etiam erat velit scelerisque in
27
27
  dictum non. Dis parturient montes nascetur ridiculus mus mauris vitae ultricies.
28
28
  Morbi quis commodo odio aenean sed adipiscing diam donec adipiscing. Sit amet
29
- justo donec enim diam.`,rd=n.defineComponent({name:"ClLorem",props:{words:{type:Number,default:10},paragraphs:{type:Number,default:0}},methods:{lorem(e){return((e%2?sd:od).trim().replace(/\s+/g," ").split(" ").splice(0,this.words).join(" ")+".").replace(/\.+/g,".")}}});function ld(e,o,c,p,b,v){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),u=>(n.openBlock(),n.createElementBlock("p",{key:u},n.toDisplayString(e.lorem(u)),1))),128))}const Jt=B(rd,[["render",ld]]);Jt.install=e=>{e.component(Jt.name??"ClNoName",Jt)};const ad=n.defineComponent({name:"ClMailto",props:{to:{type:String,default:"office@castlabs.com"}}}),cd=["href"];function dd(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("a",{class:"cl-a-email",href:`mailto:${e.to}`},n.toDisplayString(e.to),9,cd)}const Zt=B(ad,[["render",dd]]);Zt.install=e=>{e.component(Zt.name??"ClNoName",Zt)};const ud=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)}}}),fd=["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 pd(e,o,c,p,b,v){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:o[0]||(o[0]=u=>e.push())},[n.renderSlot(e.$slots,"default")],10,fd)}const Gn=B(ud,[["render",pd]]);Gn.install=e=>{e.component(Gn.name??"ClNoName",Gn)};const hd=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||""),o=this;e&&(e.addEventListener("hidden.bs.modal",function(){o.onClose&&o.onClose()}),e.addEventListener("show.bs.modal",function(){o.onOpen&&o.onOpen()}))}}),md=["id"],gd={class:"modal-dialog"},vd={class:"modal-content"},bd={class:"modal-header"},yd=["href"],_d=["id"],Cd={key:1,class:"modal-body"},kd={class:"modal-footer"},$d={class:"modal-footer-left cl-spacing-box cl-spacing-none"},Ed={class:"modal-footer-center cl-spacing-box cl-spacing-none"},wd={class:"modal-footer-right cl-spacing-box cl-spacing-none"};function Sd(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("div",{id:e.id,class:n.normalizeClass(`modal ${e.clazz}`),tabindex:"-1","data-bs-backdrop":"static"},[n.createElementVNode("div",gd,[n.createElementVNode("div",vd,[n.createElementVNode("div",bd,[n.renderSlot(e.$slots,"title",{},()=>[o[1]||(o[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."},o[2]||(o[2]=[n.createElementVNode("i",{class:"far fa-question-circle"},null,-1)]),8,yd)):n.createCommentVNode("",!0)]),e.form?(n.openBlock(),n.createElementBlock("form",{key:0,id:`${e.id}-form`,class:"modal-body cl-form container",novalidate:"",onSubmit:o[0]||(o[0]=n.withModifiers(()=>{},["prevent"]))},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")],40,_d)):(n.openBlock(),n.createElementBlock("div",Cd,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])),n.createElementVNode("div",kd,[n.createElementVNode("span",$d,[n.renderSlot(e.$slots,"footer-left")]),n.createElementVNode("span",Ed,[n.renderSlot(e.$slots,"footer")]),n.createElementVNode("span",wd,[n.renderSlot(e.$slots,"footer-right")])])])])],10,md)}const en=B(hd,[["render",Sd]]);en.install=e=>{e.component(en.name??"ClNoName",en)};const Nd=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(){rr(this.$refs.text,""),sr(`${this.id}-form`)},submit:function(){_o(`${this.id}-form`)&&this.$emit("ok")}}});function Td(e,o,c,p,b,v){const u=n.resolveComponent("cl-field"),S=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(S,{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,[o[2]||(o[2]=n.createTextVNode(" To confirm your intention, please type ",-1)),n.createElementVNode("code",null,n.toDisplayString(e.text),1),o[3]||(o[3]=n.createTextVNode(" into this text field: ",-1))]),n.createVNode(u,{ref:"text",type:"text",required:"",pattern:`^${e.text}$`,class:"text-center cl-field-monospace it-confirm",autofocus:"",onKeyup:o[0]||(o[0]=n.withKeys(Y=>e.submit(),["enter"]))},null,8,["pattern"])]),"footer-left":n.withCtx(()=>o[4]||(o[4]=[n.createElementVNode("button",{type:"button",class:"btn cl-btn-outline-text it-cancel","data-bs-dismiss":"modal"},[n.createElementVNode("i",{class:"fas fa-angle-left"}),n.createElementVNode("span",null,"Cancel")],-1)])),"footer-right":n.withCtx(()=>[n.createElementVNode("button",{type:"button",class:n.normalizeClass(["btn cl-btn-primary it-ok",{"cl-btn-spinner":e.spinner}]),onClick:o[1]||(o[1]=Y=>e.submit())},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1),o[5]||(o[5]=n.createElementVNode("i",{class:"fas fa-angle-right"},null,-1))],2)]),_:3},8,["id","class","on-open"])}const tn=B(Nd,[["render",Td]]);tn.install=e=>{e.component(tn.name??"ClNoName",tn)};const Ad=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},angles:{type:Boolean,default:!0},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,Dn(),this.$emit("ok",Bi(this.id))},buttonCancel:function(){this.emitted=!0,Dn(),this.$emit("cancel",Bi(this.id))},opened:function(){this.emitted=!1,this.onOpen&&this.onOpen()},closed:function(){this.emitted||this.$emit("cancel",Bi(this.id)),this.onClose&&this.onClose()}}}),Bd={key:0,class:"fas fa-angle-left"},Od={key:0,class:"fas fa-angle-right"};function Dd(e,o,c,p,b,v){const u=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(u,{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-btn-outline-text it-cancel",onClick:o[0]||(o[0]=(...S)=>e.buttonCancel&&e.buttonCancel(...S))},[e.angles?(n.openBlock(),n.createElementBlock("i",Bd)):n.createCommentVNode("",!0),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 it-ok",{"cl-btn-outline-primary":e.angles,"cl-btn-outline-text":!e.angles,"cl-btn-spinner":e.spinner}]),onClick:o[1]||(o[1]=(...S)=>e.buttonOk&&e.buttonOk(...S))},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1),e.angles?(n.openBlock(),n.createElementBlock("i",Od)):n.createCommentVNode("",!0)],2)]),_:3},8,["id","class","form","on-open","on-close"])}const nn=B(Ad,[["render",Dd]]);nn.install=e=>{e.component(nn.name??"ClNoName",nn)};function pr(){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(o){o.ignore?.()}}else{e.parentNode.classList.remove("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","false")}catch(o){o.ignore?.()}}}function Vd(){ir(Md()),document.querySelectorAll(".cl-nav-drawer a").forEach(e=>{e.addEventListener("click",()=>{if(hr()){ir(!1);try{localStorage.setItem("sidenavOpen","false")}catch(o){o.ignore?.()}}})}),document.getElementById("cl-nav-side")?.addEventListener("change",function(){pr()}),document.querySelectorAll(".cl-nav-drawer details[id]").forEach(e=>{e.addEventListener("toggle",o=>{try{localStorage.setItem(`cl-nav-${e.id}`,o.target.hasAttribute("open"))}catch(c){c.ignore?.()}});try{localStorage.getItem(`cl-nav-${e.id}`)==="true"&&(e.open=!0)}catch(o){o.ignore?.()}}),setTimeout(function(){document.querySelectorAll("body").forEach(e=>{e.classList.add("cl-animate")})},1e3)}function ir(e){const o=document.getElementById("cl-nav-side");o&&(o.checked=e)}function hr(){return Math.max(document?.documentElement?.clientWidth||0,window?.innerWidth||0)<1200}function Md(){const e=localStorage.getItem("sidenavOpen");return e==null?!hr():JSON.parse(e)}const Ld=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(){pr()},setup:function(){this.$nextTick(()=>{Vd()})}}}),zd={class:"cl-nav-side"},Id={class:"cl-nav-drawer"},Fd={"data-simplebar":""};function xd(e,o,c,p,b,v){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:o[0]||(o[0]=(...u)=>e.toggle&&e.toggle(...u))},null,34),n.createElementVNode("nav",zd,[o[1]||(o[1]=n.createElementVNode("label",{class:"cl-nav-backdrop",for:"cl-nav-side"},null,-1)),n.createElementVNode("div",Id,[n.createElementVNode("div",Fd,[n.renderSlot(e.$slots,"default")])])])],64)}const on=B(Ld,[["render",xd]]);on.install=e=>{e.component(on.name??"ClNoName",on)};const Pd=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"}}}),jd={class:"row"},Wd={class:"col-12 cl-grid-flex-centered"};function Rd(e,o,c,p,b,v){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",jd,[n.createElementVNode("div",Wd,[o[0]||(o[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 sn=B(Pd,[["render",Rd]]);sn.install=e=>{e.component(sn.name??"ClNoName",sn)};const qd=n.defineComponent({name:"ClOrg",props:{name:{type:String,default:"No organization"}}}),Hd={class:"cl-org"};function Ud(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("span",Hd,[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")])}const rn=B(qd,[["render",Ud]]);rn.install=e=>{e.component(rn.name??"ClNoName",rn)};const Xd=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}`:""}},methods:{back(){history.go(-1)}}}),Yd={key:0,class:"cl-page-spinner"};function Kd(e,o,c,p,b,v){const u=n.resolveComponent("cl-section-headline"),S=n.resolveComponent("cl-spinner"),Y=n.resolveComponent("cl-section-main");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(u,{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",Yd,[n.createVNode(S)])):e.notFound?n.renderSlot(e.$slots,"notFound",{key:1},()=>[n.createVNode(Y,{fluid:e.$route.meta?.fluid},{default:n.withCtx(()=>[o[2]||(o[2]=n.createElementVNode("p",{class:"cl-p-large"},"Hmm, it seems we can't find what you're looking for.",-1)),o[3]||(o[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 btn-sm cl-btn-outline-text cl-spacing-large",onClick:o[0]||(o[0]=(...ve)=>e.back&&e.back(...ve))},o[1]||(o[1]=[n.createElementVNode("i",{class:"fas fa-angle-left"},null,-1),n.createElementVNode("span",null,"Back",-1)]))]),_:1,__:[2,3]},8,["fluid"])]):n.renderSlot(e.$slots,"default",{key:2})],64)}const ln=B(Xd,[["render",Kd]]);ln.install=e=>{e.component(ln.name??"ClNoName",ln)};function Gd(e,o,c,p){const b=[],v=Math.ceil(e/o);c<1&&(c=1),c>v&&(c=v);for(let u=1;u<=v;u++)(u>=c-p&&u<=c+p||u===1||u===v)&&b.push(u);return{previous:c>1?c-1:null,next:c<v?c+1:null,current:c,pages:b}}const Qd=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}},emits:["page"],computed:{pager:function(){return Gd(this.items,this.pagesize,this.current,this.window)}}}),Jd={key:0,class:"col-12 text-center cl-spacing-medium"},Zd={class:"pagination"},eu={key:0,class:"page-item"},tu={key:1,class:"page-item disabled"},nu={key:0,class:"page-item disabled"},iu=["onClick"],ou={key:2,class:"page-item"},su={key:3,class:"page-item disabled"};function ru(e,o,c,p,b,v){return e.pager?.pages?.length>1?(n.openBlock(),n.createElementBlock("nav",Jd,[n.createElementVNode("ul",Zd,[e.pager.previous?(n.openBlock(),n.createElementBlock("li",eu,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:o[0]||(o[0]=u=>e.$emit("page",e.pager.previous))},"Prev")])):(n.openBlock(),n.createElementBlock("li",tu,"Prev")),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pager.pages,(u,S)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[S>0&&e.pager.pages[S-1]!==u-1?(n.openBlock(),n.createElementBlock("li",nu," ... ")):n.createCommentVNode("",!0),n.createElementVNode("li",{class:n.normalizeClass(["page-item",{active:u===e.pager.current}])},[n.createElementVNode("button",{class:"page-link",onClick:Y=>e.$emit("page",u)},n.toDisplayString(u),9,iu)],2)],64))),128)),e.pager.next?(n.openBlock(),n.createElementBlock("li",ou,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:o[1]||(o[1]=u=>e.$emit("page",e.pager.next))},"Next")])):(n.openBlock(),n.createElementBlock("li",su,"Next"))])])):n.createCommentVNode("",!0)}const an=B(Qd,[["render",ru]]);an.install=e=>{e.component(an.name??"ClNoName",an)};const lu=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="";return!this.primary&&!this.secondary?e+="cl-plan-dark":this.primary?e+="cl-plan-primary":this.secondary&&(e+="cl-plan-secondary"),e+(this.class?` ${this.class}`:"")}}}),au={key:0,class:"cl-plan-derived"},cu=["id"];function du(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",au)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,cu)],64)}const cn=B(lu,[["render",du]]);cn.install=e=>{e.component(cn.name??"ClNoName",cn)};const uu=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="";return!this.primary&&!this.secondary?e+="cl-role-dark":this.primary?e+="cl-role-primary":this.secondary&&(e+="cl-role-secondary"),e+(this.class?` ${this.class}`:"")}}}),fu={key:0,class:"cl-role-derived"},pu=["id"];function hu(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",fu)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,pu)],64)}const dn=B(uu,[["render",hu]]);dn.install=e=>{e.component(dn.name??"ClNoName",dn)};const mu=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"}}}),gu={class:"cl-section-form cl-section-alternate"},vu=["id"],bu=["disabled"],yu={key:1,class:"col-12"};function _u(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("section",gu,[n.createElementVNode("form",{id:e.id,novalidate:"",class:n.normalizeClass(e.containerClass),onSubmit:o[0]||(o[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",yu,[n.renderSlot(e.$slots,"default")]))],8,bu)],42,vu)])}const un=B(mu,[["render",_u]]);un.install=e=>{e.component(un.name??"ClNoName",un)};const Cu=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"}}}),ku={class:"cl-section-primary cl-section-headline"},$u={class:"row"},Eu={class:"col-12"},wu={key:0},Su=["href"];function Nu(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("section",ku,[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",$u,[n.createElementVNode("div",Eu,[e.title?(n.openBlock(),n.createElementBlock("h1",wu,[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"},o[0]||(o[0]=[n.createElementVNode("i",{class:"fas fa-question-circle"},null,-1)]),8,Su)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")])])],2)])}const fn=B(Cu,[["render",Nu]]);fn.install=e=>{e.component(fn.name??"ClNoName",fn)};const Tu=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-regular"},containerClass:function(){return this.isFluid?"container-fluid":"container"}}}),Au={class:"row"},Bu={key:1,class:"col-12"};function Ou(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(e.sectionClass)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Au,[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Bu,[n.renderSlot(e.$slots,"default")]))])],2)],2)}const yt=B(Tu,[["render",Ou]]);yt.install=e=>{e.component(yt.name??"ClNoName",yt)};const Du=n.defineComponent({name:"ClSectionMainSide",components:{ClSectionMain:yt},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":"cl-section-regular")}}});function Vu(e,o,c,p,b,v){const u=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(u,{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 pn=B(Du,[["render",Vu]]);pn.install=e=>{e.component(pn.name??"ClNoName",pn)};const Mu=n.defineComponent({name:"ClSpinner",props:{title:{type:String,default:"Loading ..."}}}),Lu={class:"cl-spinner"};function zu(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Lu,[n.createTextVNode(n.toDisplayString(e.title),1),o[0]||(o[0]=n.createElementVNode("i",{class:"fas fa-spinner fa-spin"},null,-1))])}const hn=B(Mu,[["render",zu]]);hn.install=e=>{e.component(hn.name??"ClNoName",hn)};function Iu(e){document.querySelectorAll(`#${e} .cl-resizer`).forEach(o=>{Fu(o)})}let Qn=0,Vn=null;function Fu(e){Qn=0,Vn=null,e.addEventListener("mousedown",xu),document.addEventListener("mousemove",Pu),document.addEventListener("mouseup",ju)}const xu=e=>{e.preventDefault(),Vn=e.target?e.target.parentElement:null,Qn=e.pageX},Pu=e=>{if(Vn!==null){e.preventDefault();const o=e.pageX-Qn;Qn=e.pageX;const c=Wu(Vn),p=e.target?.closest("table")?.id??"unknown";!!document.querySelector(`#${p}.cl-table-nowrap`)?document.querySelectorAll(`#${p} tr th:nth-child(${c-1})`).forEach(v=>{const u=(v.style.maxWidth===""?v.offsetWidth:parseInt(v.style.maxWidth))+o;v.style.width=(u>32?u:32)+"px",v.style.maxWidth=(u>32?u:32)+"px"}):(document.querySelectorAll(`#${p} tr td:nth-child(${c-1})`).forEach(v=>{const u=v.offsetWidth+o;v.style.width=(u>32?u:32)+"px"}),document.querySelectorAll(`#${p} tr td:nth-child(${c})`).forEach(v=>{const u=v.offsetWidth-o;v.style.width=(u>32?u:32)+"px"}))}},ju=e=>{Vn!==null&&(e.preventDefault(),Qn=0,Vn=null)};function Wu(e){let o=0;for(;e;)o++,e=e.previousElementSibling;return o}const Ru=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 o=1;o<=this.show.length;o++)this.show[o-1]||(e+=` cl-table-col-${o}-hide`);return e}},watch:{rows:function(){this.setupResizer()}},mounted(){this.setupResizer()},methods:{setupResizer:function(){this.$nextTick(()=>{Iu(this.$uid)})}}}),qu=["id"],Hu=["id"],Uu={key:0},Xu={key:1},Yu={class:"cl-tr-no-data"},Ku={colspan:"100"},Gu={key:2},Qu={class:"cl-tr-no-data"},Ju={colspan:"100"},Zu={key:3};function ef(e,o,c,p,b,v){const u=n.resolveComponent("cl-spinner"),S=n.resolveComponent("cl-field-check"),Y=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",Uu,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])):e.rows===0?(n.openBlock(),n.createElementBlock("tbody",Xu,[n.createElementVNode("tr",Yu,[n.createElementVNode("td",Ku,n.toDisplayString(e.noDataText),1)])])):(n.openBlock(),n.createElementBlock("tbody",Gu,[n.createElementVNode("tr",Qu,[n.createElementVNode("td",Ju,[n.createVNode(u)])])])),e.$slots.footer?(n.openBlock(),n.createElementBlock("tfoot",Zu,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"footer")])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"tfoot")],10,Hu)],8,qu),e.hideCols?(n.openBlock(),n.createBlock(Y,{key:0,id:e.$uid+"-settings",title:"Configure table"},{default:n.withCtx(()=>[o[0]||(o[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,(ve,pe)=>(n.openBlock(),n.createBlock(S,{key:ve,value:e.show[pe],modelValue:e.show[pe],"onUpdate:modelValue":Ct=>e.show[pe]=Ct},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(ve),1)]),_:2},1032,["value","modelValue","onUpdate:modelValue"]))),128))]),_:1,__:[0]},8,["id"])):n.createCommentVNode("",!0)],64)}const mn=B(Ru,[["render",ef]]);mn.install=e=>{e.component(mn.name??"ClNoName",mn)};const tf=n.defineComponent({name:"ClTableCel",props:{condensed:{type:Boolean,default:!1}}});function nf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(e.condensed?"cl-font-condensed":"")},[n.renderSlot(e.$slots,"default")],2)}const gn=B(tf,[["render",nf]]);gn.install=e=>{e.component(gn.name??"ClNoName",gn)};const of=n.defineComponent({name:"ClTableCelActions",props:{content:{type:String,default:""}}}),sf={class:"cl-td-actions"};function rf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",sf,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const vn=B(of,[["render",rf]]);vn.install=e=>{e.component(vn.name??"ClNoName",vn)};const lf=n.defineComponent({name:"ClTableCelAudit",directives:{tooltip:Mn},props:{value:{type:String,default:"???"}}}),af={class:"cl-td-audit"},cf={class:"fas fa-info-circle"};function df(e,o,c,p,b,v){const u=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("td",af,[n.withDirectives(n.createElementVNode("i",cf,null,512),[[u,e.value,"left"]])])}const bn=B(lf,[["render",df]]);bn.install=e=>{e.component(bn.name??"ClNoName",bn)};const uf=n.defineComponent({name:"ClTableCelBoolean",props:{value:{type:Boolean,default:!1}}}),ff={class:"cl-td-boolean"};function pf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",ff,[n.createElementVNode("i",{class:n.normalizeClass(`fas ${e.value?"fa-check":"fa-minus"}`)},null,2)])}const yn=B(uf,[["render",pf]]);yn.install=e=>{e.component(yn.name??"ClNoName",yn)};const hf=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)}}}),mf={class:"cl-td-checkbox"},gf={class:"form-check text-center"},vf=["id","disabled"];function bf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",mf,[n.createElementVNode("div",gf,[n.withDirectives(n.createElementVNode("input",{id:e.id??e.$uid,"onUpdate:modelValue":o[0]||(o[0]=u=>e.modelValue=u),class:"form-check-input",type:"checkbox",disabled:e.disabled,onChange:o[1]||(o[1]=u=>e.emitAll())},null,40,vf),[[n.vModelCheckbox,e.modelValue]])])])}const _n=B(hf,[["render",bf]]);_n.install=e=>{e.component(_n.name??"ClNoName",_n)};const yf=n.defineComponent({name:"ClTableCelCode"}),_f={class:"cl-td-code"};function Cf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",_f,[n.renderSlot(e.$slots,"default")])}const Cn=B(yf,[["render",Cf]]);Cn.install=e=>{e.component(Cn.name??"ClNoName",Cn)};const kf=n.defineComponent({name:"ClTableCelCurrency",props:{amount:{type:Number,default:0},currency:{type:String,default:"EUR"}}}),$f={class:"cl-td-currency"};function Ef(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",$f,n.toDisplayString(e.currency)+" "+n.toDisplayString(e.amount),1)}const kn=B(kf,[["render",Ef]]);kn.install=e=>{e.component(kn.name??"ClNoName",kn)};const wf=n.defineComponent({name:"ClTableCelDate",props:{value:{type:String,default:void 0}},computed:{content:function(){if(this.value){const e=new Date(this.value),o=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),c=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),p=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),b=new Intl.DateTimeFormat("en",{hour:"2-digit",hour12:!1}).format(e),v=new Intl.DateTimeFormat("en",{minute:"2-digit"}).format(e);return`${o}-${c}-${p} ${b}:${v}`}return"-"}}}),Sf={class:"cl-td-date"};function Nf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",Sf,n.toDisplayString(e.content),1)}const $n=B(wf,[["render",Nf]]);$n.install=e=>{e.component($n.name??"ClNoName",$n)};const Tf=n.defineComponent({name:"ClTableCelId",directives:{tooltip:Mn,clipboard:ko},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>"}}}),Af={class:"cl-td-id"};function Bf(e,o,c,p,b,v){const u=n.resolveDirective("tooltip"),S=n.resolveDirective("clipboard");return n.withDirectives((n.openBlock(),n.createElementBlock("td",Af,[n.createTextVNode(n.toDisplayString(e.value),1)])),[[u,e.tooltip,"right"],[S,e.full??e.value]])}const En=B(Tf,[["render",Bf]]);En.install=e=>{e.component(En.name??"ClNoName",En)};const Of=n.defineComponent({name:"ClTableCelLinks",props:{content:{type:String,default:""}}}),Df={class:"cl-td-links"};function Vf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("td",Df,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const wn=B(Of,[["render",Vf]]);wn.install=e=>{e.component(wn.name??"ClNoName",wn)};const Mf=n.defineComponent({name:"ClTableCelUuid",props:{value:{type:String,default:"00000000-0000-0000-0000-000000000000"}}});function Lf(e,o,c,p,b,v){const u=n.resolveComponent("cl-table-cel-id");return n.openBlock(),n.createBlock(u,{value:e.value.substring(0,8),full:e.value},null,8,["value","full"])}const Sn=B(Mf,[["render",Lf]]);Sn.install=e=>{e.component(Sn.name??"ClNoName",Sn)};const zf=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}}}),If={key:0,class:"cl-table-foot-checked"},Ff={class:"cl-td-links",colspan:"100"};function xf(e,o,c,p,b,v){return e.any?(n.openBlock(),n.createElementBlock("tfoot",If,[n.createElementVNode("tr",null,[n.createElementVNode("td",Ff,[o[0]||(o[0]=n.createElementVNode("small",null,[n.createElementVNode("i",{class:"fas fa-share fa-rotate-270 cl-faded"})],-1)),o[1]||(o[1]=n.createTextVNode("   ",-1)),n.renderSlot(e.$slots,"default")])])])):n.createCommentVNode("",!0)}const Nn=B(zf,[["render",xf]]);Nn.install=e=>{e.component(Nn.name??"ClNoName",Nn)};const Pf=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,o){e!==o&&(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 o=e?.target;for(;o;){if(o.tagName==="TABLE"){yo(`${o.id}-settings`);return}o=o.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")}}}}),jf=["id","width"],Wf={class:"fas fa-cog cl-faded"},Rf={key:0,class:"cl-resizer"},qf={key:1,class:"form-check text-center"},Hf=["indeterminate"],Uf={key:2,class:"cl-resizer"};function Xf(e,o,c,p,b,v){const u=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("th",{id:e.$uid,class:n.normalizeClass(["cl-table-head cl-p-tiny",{"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:o[0]||(o[0]=(...S)=>e.openSettings&&e.openSettings(...S))},[n.withDirectives(n.createElementVNode("i",Wf,null,512),[[u,"Configure table","left"]])]),e.resize?(n.openBlock(),n.createElementBlock("div",Rf)):n.createCommentVNode("",!0)],64)):e.checkbox?(n.openBlock(),n.createElementBlock("div",qf,[n.withDirectives(n.createElementVNode("input",{ref:"checkbox","onUpdate:modelValue":o[1]||(o[1]=S=>e.modelValue=S),class:"form-check-input",type:"checkbox",indeterminate:e.checkState==="SOME",onChange:o[2]||(o[2]=S=>e.check())},null,40,Hf),[[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:o[3]||(o[3]=(...S)=>e.sortCol&&e.sortCol(...S))},[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",Uf)):n.createCommentVNode("",!0)],64))],10,jf)}const Tn=B(Pf,[["render",Xf]]);Tn.install=e=>{e.component(Tn.name??"ClNoName",Tn)};const Yf=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}}}),Kf=["id"];function Gf(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("tr",{id:e.id,class:n.normalizeClass(e.clazz)},[n.renderSlot(e.$slots,"default")],10,Kf)}const An=B(Yf,[["render",Gf]]);An.install=e=>{e.component(An.name??"ClNoName",An)};const Qf=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)}}}),Jf={class:"cl-tabs"},Zf=["id","name","checked","onChange"],ep=["for"];function tp(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Jf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("input",{key:0,id:`tabs-${e.$uid}-${u}`,class:n.normalizeClass(`cl-tab-${u}`),type:"radio",name:`tabs-${e.$uid}`,checked:e.index===u-1,onChange:S=>e.emit(u)},null,42,Zf)):n.createCommentVNode("",!0)],64))),128)),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("li",{key:0,class:n.normalizeClass(`cl-tab-${u}`)},[n.createElementVNode("label",{for:`tabs-${e.$uid}-${u}`},[n.renderSlot(e.$slots,`tabs-${u}-label`)],8,ep)],2)):n.createCommentVNode("",!0)],64))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(`cl-tab-${u} cl-tab-content`)},[n.renderSlot(e.$slots,`tabs-${u}-content`)],2)):n.createCommentVNode("",!0)],64))),128))])}const Bn=B(Qf,[["render",tp]]);Bn.install=e=>{e.component(Bn.name??"ClNoName",Bn)};const np=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{myclass:"badge cl-badge-text "+this.class}},computed:{clazz:function(){return this.class?` ${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())}}}}),ip=["id","checked","disabled"],op=["id","for","disabled"];function sp(e,o,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:e.$uid,type:"checkbox",class:n.normalizeClass(`cl-toggle-checkbox${e.clazz}`),checked:e.modelValue,disabled:e.enabled?null:!0,onChange:o[0]||(o[0]=u=>e.toggle())},null,42,ip),n.createElementVNode("label",{id:e.id,class:n.normalizeClass(e.myclass),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,op)],64)}const On=B(np,[["render",sp]]);On.install=e=>{e.component(On.name??"ClNoName",On)};const rp={install:e=>{let o=0;e.mixin({beforeCreate:function(){let p;const b="uid-"+o++;Object.defineProperties(this,(p={},p.$uid={get:function(){return b}},p))}})}};function lp(){return{ClAlert:xt,ClBackCancelOk:Pt,ClCookieBanner:jt,ClCopy:Wt,ClCreditcardNumber:Rt,ClDropzone:qt,ClField:Ht,ClFieldCheck:Ut,ClFieldGroup:Xt,ClHashtag:Yt,ClIconotron:Kt,ClInfo:Gt,ClLinkExternal:Qt,ClLorem:Jt,ClMailto:Zt,ClModal:en,ClModalConfirm:tn,ClModalOk:nn,ClNavSide:on,ClNavTop:sn,ClOrg:rn,ClPage:ln,ClPagination:an,ClPlan:cn,ClRole:dn,ClSectionForm:un,ClSectionHeadline:fn,ClSectionMain:yt,ClSectionMainSide:pn,ClSpinner:hn,ClTable:mn,ClTableCel:gn,ClTableCelActions:vn,ClTableCelAudit:bn,ClTableCelBoolean:yn,ClTableCelCheckbox:_n,ClTableCelCode:Cn,ClTableCelCurrency:kn,ClTableCelDate:$n,ClTableCelId:En,ClTableCelLinks:wn,ClTableCelUuid:Sn,ClTableFootChecked:Nn,ClTableHead:Tn,ClTableRow:An,ClTabs:Bn,ClToggle:On}}function ap(){return[rp]}function $o(e,o){const c=JSON.parse(JSON.stringify(e));for(const p in o)typeof o[p]=="object"&&!Array.isArray(o[p])?c[p]=$o(e[p]??{},o[p]):c[p]=o[p];return c}function cp(e,o){return{store:$o(e,o)}}const mr="✺";let Ti={};function dp(e,o="",c=!1){const p=Ti[o]??it(gr(o));return Object.keys(Ti).length>100&&(Ti={}),Ti[o]=p,bt(c?e.toLowerCase():e,p,c)}function bt(e,o,c){if(typeof o=="string"){const p=o.replaceAll(mr," ");return p[0]==="-"?!bt(e,p.substring(1),c):c?e.includes(p):e.toLowerCase().includes(p.toLowerCase())}else switch(o[0]){case"&":return bt(e,o[1])&&bt(e,o[2]);case"|":return bt(e,o[1])||bt(e,o[2]);default:return!1}}function gr(e){const o=[];let c=!1;for(let u=0;u<e.length;u++)c?e[u]===c?c=!1:o.push([" "].includes(e[u])?mr:e[u]):["'",'"'].includes(e[u])?c=e[u]:o.push(e[u]);const p=o.join("").replace(/\s+/g," ").trim();if(p.length<=0)return"";const b=p.split(" ");if(b.length<=0)return"";const v=[];["NOT","-"].includes(b[0])||v.push(b.shift());for(let u=0;u<b.length;u++)switch(b[u]){case"AND":case"&":case"&&":switch(b[++u]){case"NOT":case"-":b[u+1]&&(v.push("&"),v.push("-"),v.push(b[++u]));break;case void 0:break;default:v.push("&"),v.push(b[u])}break;case"OR":case"|":case"||":switch(b[++u]){case"NOT":case"-":b[u+1]&&(v.push("|"),v.push("-"),v.push(b[++u]));break;case void 0:break;default:v.push("|"),v.push(b[u])}break;case"NOT":case"-":v.push("-"),v.push(b[++u]);break;default:v.push("&"),v.push(b[u])}return` ${v.join(" ")} `.replace(/ - /g," -").trim()}function it(e){const o=e.indexOf(" | ");if(o>=0)return["|",it(e.substring(0,o)),it(e.substring(o+3))];const c=e.indexOf(" & ");if(c>=0)return["&",it(e.substring(0,c)),it(e.substring(c+3))];const p=e.indexOf(" ");return p>=0?["&",it(e.substring(0,p)),it(e.substring(p+1))]:e}const _t={DEV:"DEV",TEST:"TEST",PROD:"PROD"},vr={id:"CP",subtitle:"Access the Content Platform, manage, encode and watermark assets",title:"Content Platform",urlManage:function(e,o){return e===_t.PROD?`https://platform.content.castlabs.com/#/o/${o??""}`:`https://platform.content-stag.castlabs.com/#/o/${o??""}`},sidenav:!1},br={id:"CS",subtitle:"Manage organizations, plans, downloads",title:"Castlabs hub",urlManage:function(e,o){return Eo(e,`https://account.test.cs.castlabs.com/o/${o??""}`,`https://account.castlabs.com/o/${o??""}`)},sidenav:!0},yr={id:"DT",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday",urlManage:function(e,o){return Eo(e,`https://fe.test.drmtoday.com/dashboard/${o?`${o}/`:""}index`,`https://fe.drmtoday.com/dashboard/${o?`${o}/`:""}index`)},sidenav:!0},_r={id:"DTO",subtitle:"",title:"DRMtoday Onboard (staging)",urlManage:function(e,o){return`https://onboard.castlabs.com/o/${o??""}/devices`},sidenav:!1},Cr={id:"DTS",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday (staging)",urlManage:function(e,o){return Eo(e,`https://fe.test.drmtoday.com/dashboard/${o?`${o}/`:""}index`,`https://fe.staging.drmtoday.com/dashboard/${o?`${o}/`:""}index`)},sidenav:!1},kr={id:"PP",subtitle:"Cross-platform video players (via Castlabs hub)",title:"PRESTOplay",urlManage:function(e,o){return e===_t.PROD?`https://account.castlabs.com/o/${o}/prestoplay`:`https://account.test.cs.castlabs.com/o/${o}/prestoplay`},sidenav:!0},$r={id:"VTK",subtitle:"Cloud encoding, packaging, watermarking",title:"Video Toolkit",urlManage:function(e){return e===_t.PROD?"https://vtk.castlabs.com/":"https://vtks.castlabs.com/"},sidenav:!0},Er={id:"WM",subtitle:"Video & image forensic watermarking",title:"STARDUSTmark",urlManage:function(e,o){return e===_t.PROD?`https://watermark.castlabs.com/#/o/${o}`:`https://demo-stag.fwm.castlabs.com/#/o/${o}`},sidenav:!0};function Eo(e=_t.PROD,o,c){return[_t.DEV,_t.TEST].includes(e)?o:c}function up(){return[br,vr,yr,Cr,_r,kr,Er,$r]}const fp={CP:vr,CS:br,DT:yr,DTS:Cr,DTO:_r,PP:kr,WM:Er,VTK:$r},vo={ClAlert:xt,ClBackCancelOk:Pt,ClCookieBanner:jt,ClCopy:Wt,ClCreditcardNumber:Rt,ClDropzone:qt,ClField:Ht,ClFieldCheck:Ut,ClFieldGroup:Xt,ClHashtag:Yt,ClIconotron:Kt,ClInfo:Gt,ClLinkExternal:Qt,ClLorem:Jt,ClMailto:Zt,ClModal:en,ClModalConfirm:tn,ClModalOk:nn,ClNavSide:on,ClNavTop:sn,ClOrg:rn,ClPage:ln,ClPagination:an,ClPlan:cn,ClRole:dn,ClSectionForm:un,ClSectionHeadline:fn,ClSectionMain:yt,ClSectionMainSide:pn,ClSpinner:hn,ClTable:mn,ClTableCel:gn,ClTableCelActions:vn,ClTableCelAudit:bn,ClTableCelBoolean:yn,ClTableCelCheckbox:_n,ClTableCelCode:Cn,ClTableCelCurrency:kn,ClTableCelDate:$n,ClTableCelId:En,ClTableCelLinks:wn,ClTableCelUuid:Sn,ClTableFootChecked:Nn,ClTableHead:Tn,ClTableRow:An,ClTabs:Bn,ClToggle:On,ClMockRouterLink:Gn,ClUI:Sa};function pp(e){for(const o in vo)e.component(vo[o].name,vo[o])}exports.ClAlert=xt;exports.ClBackCancelOk=Pt;exports.ClCookieBanner=jt;exports.ClCopy=Wt;exports.ClCreditcardNumber=Rt;exports.ClDropzone=qt;exports.ClField=Ht;exports.ClFieldCheck=Ut;exports.ClFieldGroup=Xt;exports.ClHashtag=Yt;exports.ClIconotron=Kt;exports.ClInfo=Gt;exports.ClLinkExternal=Qt;exports.ClLorem=Jt;exports.ClMailto=Zt;exports.ClMockRouterLink=Gn;exports.ClModal=en;exports.ClModalConfirm=tn;exports.ClModalOk=nn;exports.ClNavSide=on;exports.ClNavTop=sn;exports.ClOrg=rn;exports.ClPage=ln;exports.ClPagination=an;exports.ClPlan=cn;exports.ClRole=dn;exports.ClSectionForm=un;exports.ClSectionHeadline=fn;exports.ClSectionMain=yt;exports.ClSectionMainSide=pn;exports.ClSpinner=hn;exports.ClTable=mn;exports.ClTableCel=gn;exports.ClTableCelActions=vn;exports.ClTableCelAudit=bn;exports.ClTableCelBoolean=yn;exports.ClTableCelCheckbox=_n;exports.ClTableCelCode=Cn;exports.ClTableCelCurrency=kn;exports.ClTableCelDate=$n;exports.ClTableCelId=En;exports.ClTableCelLinks=wn;exports.ClTableCelUuid=Sn;exports.ClTableFootChecked=Nn;exports.ClTableHead=Tn;exports.ClTableRow=An;exports.ClTabs=Bn;exports.ClToggle=On;exports.NAV=fp;exports._getProperty=Ft;exports._sanitize=gr;exports._tokenize=it;exports.castlabsUi=pp;exports.clCopyData=Ya;exports.clDebounce=Ha;exports.clFocus=Ma;exports.clFormAutofocus=La;exports.clFormFieldFocusFirstInvalid=Co;exports.clFormFieldReset=rr;exports.clFormIsValid=_o;exports.clFormIsValidAsync=lr;exports.clFormReset=sr;exports.clFormatAmount=Pa;exports.clFormatCardNumber=dr;exports.clFormatDate=ar;exports.clFormatDateTimeUTC=Ia;exports.clFormatDuration=Fa;exports.clFormatFilesize=za;exports.clFormatNumber=Oi;exports.clFormatPeriod=xa;exports.clFormatRange=ja;exports.clFormatTimeUTC=cr;exports.clGetAllComponents=lp;exports.clGetAllPlugins=ap;exports.clGetServices=up;exports.clMatch=dp;exports.clModalHide=Dn;exports.clModalIsShown=Va;exports.clModalShow=yo;exports.clModalValue=Bi;exports.clPaginate=or;exports.clPatch=$o;exports.clPatchStore=cp;exports.clRandomList=Xa;exports.clRandomString=Ua;exports.clRefClField=Qa;exports.clRefClFieldGroup=Ja;exports.clRefHTMLElement=Za;exports.clReload=Ga;exports.clReloadStore=Ka;exports.clScrollToId=Da;exports.clSort=ur;exports.clSynchronizedSubmit=Wa;exports.clSynchronizedSubmitAsync=Ra;exports.clTableSorter=fr;exports.clTableSorterObjects=qa;exports.clVClipboard=ko;exports.clVTooltip=Mn;
29
+ justo donec enim diam.`,sd=n.defineComponent({name:"ClLorem",props:{words:{type:Number,default:10},paragraphs:{type:Number,default:0}},methods:{lorem(e){return((e%2?od:id).trim().replace(/\s+/g," ").split(" ").splice(0,this.words).join(" ")+".").replace(/\.+/g,".")}}});function rd(e,s,c,p,b,v){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),u=>(n.openBlock(),n.createElementBlock("p",{key:u},n.toDisplayString(e.lorem(u)),1))),128))}const Gt=B(sd,[["render",rd]]);Gt.install=e=>{e.component(Gt.name??"ClNoName",Gt)};const ld=n.defineComponent({name:"ClMailto",props:{to:{type:String,default:"office@castlabs.com"}}}),ad=["href"];function cd(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("a",{class:"cl-a-email",href:`mailto:${e.to}`},n.toDisplayString(e.to),9,ad)}const Qt=B(ld,[["render",cd]]);Qt.install=e=>{e.component(Qt.name??"ClNoName",Qt)};const dd=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)}}}),ud=["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 fd(e,s,c,p,b,v){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:s[0]||(s[0]=u=>e.push())},[n.renderSlot(e.$slots,"default")],10,ud)}const Gn=B(dd,[["render",fd]]);Gn.install=e=>{e.component(Gn.name??"ClNoName",Gn)};const pd=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||""),s=this;e&&(e.addEventListener("hidden.bs.modal",function(){s.onClose&&s.onClose()}),e.addEventListener("show.bs.modal",function(){s.onOpen&&s.onOpen()}))}}),hd=["id"],md={class:"modal-dialog"},gd={class:"modal-content"},vd={class:"modal-header"},bd=["href"],yd=["id"],_d={key:1,class:"modal-body"},Cd={class:"modal-footer"},kd={class:"modal-footer-left cl-spacing-box cl-spacing-none"},$d={class:"modal-footer-center cl-spacing-box cl-spacing-none"},Ed={class:"modal-footer-right cl-spacing-box cl-spacing-none"};function wd(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("div",{id:e.id,class:n.normalizeClass(`modal ${e.clazz}`),tabindex:"-1","data-bs-backdrop":"static"},[n.createElementVNode("div",md,[n.createElementVNode("div",gd,[n.createElementVNode("div",vd,[n.renderSlot(e.$slots,"title",{},()=>[s[1]||(s[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."},[...s[2]||(s[2]=[n.createElementVNode("i",{class:"far fa-question-circle"},null,-1)])],8,bd)):n.createCommentVNode("",!0)]),e.form?(n.openBlock(),n.createElementBlock("form",{key:0,id:`${e.id}-form`,class:"modal-body cl-form container",novalidate:"",onSubmit:s[0]||(s[0]=n.withModifiers(()=>{},["prevent"]))},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")],40,yd)):(n.openBlock(),n.createElementBlock("div",_d,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])),n.createElementVNode("div",Cd,[n.createElementVNode("span",kd,[n.renderSlot(e.$slots,"footer-left")]),n.createElementVNode("span",$d,[n.renderSlot(e.$slots,"footer")]),n.createElementVNode("span",Ed,[n.renderSlot(e.$slots,"footer-right")])])])])],10,hd)}const Jt=B(pd,[["render",wd]]);Jt.install=e=>{e.component(Jt.name??"ClNoName",Jt)};const Sd=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(){rr(this.$refs.text,""),sr(`${this.id}-form`)},submit:function(){_o(`${this.id}-form`)&&this.$emit("ok")}}});function Nd(e,s,c,p,b,v){const u=n.resolveComponent("cl-field"),N=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(N,{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,[s[2]||(s[2]=n.createTextVNode(" To confirm your intention, please type ",-1)),n.createElementVNode("code",null,n.toDisplayString(e.text),1),s[3]||(s[3]=n.createTextVNode(" into this text field: ",-1))]),n.createVNode(u,{ref:"text",type:"text",required:"",pattern:`^${e.text}$`,class:"text-center cl-field-monospace it-confirm",autofocus:"",onKeyup:s[0]||(s[0]=n.withKeys(U=>e.submit(),["enter"]))},null,8,["pattern"])]),"footer-left":n.withCtx(()=>[...s[4]||(s[4]=[n.createElementVNode("button",{type:"button",class:"btn cl-color-night 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-red it-ok",{"cl-btn-spinner":e.spinner}]),onClick:s[1]||(s[1]=U=>e.submit())},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1)],2)]),_:3},8,["id","class","on-open"])}const Zt=B(Sd,[["render",Nd]]);Zt.install=e=>{e.component(Zt.name??"ClNoName",Zt)};const Td=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,Bn(),this.$emit("ok",Ai(this.id))},buttonCancel:function(){this.emitted=!0,Bn(),this.$emit("cancel",Ai(this.id))},opened:function(){this.emitted=!1,this.onOpen&&this.onOpen()},closed:function(){this.emitted||this.$emit("cancel",Ai(this.id)),this.onClose&&this.onClose()}}});function Ad(e,s,c,p,b,v){const u=n.resolveComponent("cl-modal");return n.openBlock(),n.createBlock(u,{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-night it-cancel",onClick:s[0]||(s[0]=(...N)=>e.buttonCancel&&e.buttonCancel(...N))},[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-red it-ok",{"cl-btn-spinner":e.spinner}]),onClick:s[1]||(s[1]=(...N)=>e.buttonOk&&e.buttonOk(...N))},[n.createElementVNode("span",null,n.toDisplayString(e.ok??e.button),1)],2)]),_:3},8,["id","class","form","on-open","on-close"])}const en=B(Td,[["render",Ad]]);en.install=e=>{e.component(en.name??"ClNoName",en)};function pr(){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(s){s.ignore?.()}}else{e.parentNode.classList.remove("cl-nav-side-open");try{localStorage.setItem("sidenavOpen","false")}catch(s){s.ignore?.()}}}function Bd(){ir(Od()),document.querySelectorAll(".cl-nav-drawer a").forEach(e=>{e.addEventListener("click",()=>{if(hr()){ir(!1);try{localStorage.setItem("sidenavOpen","false")}catch(s){s.ignore?.()}}})}),document.getElementById("cl-nav-side")?.addEventListener("change",function(){pr()}),document.querySelectorAll(".cl-nav-drawer details[id]").forEach(e=>{e.addEventListener("toggle",s=>{try{localStorage.setItem(`cl-nav-${e.id}`,s.target.hasAttribute("open"))}catch(c){c.ignore?.()}});try{localStorage.getItem(`cl-nav-${e.id}`)==="true"&&(e.open=!0)}catch(s){s.ignore?.()}}),setTimeout(function(){document.querySelectorAll("body").forEach(e=>{e.classList.add("cl-animate")})},1e3)}function ir(e){const s=document.getElementById("cl-nav-side");s&&(s.checked=e)}function hr(){return Math.max(document?.documentElement?.clientWidth||0,window?.innerWidth||0)<1200}function Od(){const e=localStorage.getItem("sidenavOpen");return e==null?!hr():JSON.parse(e)}const Dd=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(){pr()},setup:function(){this.$nextTick(()=>{Bd()})}}}),Vd={class:"cl-nav-side"},Md={class:"cl-nav-drawer"},Ld={"data-simplebar":""};function zd(e,s,c,p,b,v){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:s[0]||(s[0]=(...u)=>e.toggle&&e.toggle(...u))},null,34),n.createElementVNode("nav",Vd,[s[1]||(s[1]=n.createElementVNode("label",{class:"cl-nav-backdrop",for:"cl-nav-side"},null,-1)),n.createElementVNode("div",Md,[n.createElementVNode("div",Ld,[n.renderSlot(e.$slots,"default")])])])],64)}const tn=B(Dd,[["render",zd]]);tn.install=e=>{e.component(tn.name??"ClNoName",tn)};const Id=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"}}}),Fd={class:"row"},Pd={class:"col-12 cl-grid-flex-centered"};function xd(e,s,c,p,b,v){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",Fd,[n.createElementVNode("div",Pd,[s[0]||(s[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 nn=B(Id,[["render",xd]]);nn.install=e=>{e.component(nn.name??"ClNoName",nn)};const jd=n.defineComponent({name:"ClOrg",props:{name:{type:String,default:"No organization"}}}),Wd={class:"cl-org"};function Rd(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("span",Wd,[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")])}const on=B(jd,[["render",Rd]]);on.install=e=>{e.component(on.name??"ClNoName",on)};const qd=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}`:""}},methods:{back(){history.go(-1)}}}),Hd={key:0,class:"cl-page-spinner"};function Ud(e,s,c,p,b,v){const u=n.resolveComponent("cl-section-headline"),N=n.resolveComponent("cl-spinner"),U=n.resolveComponent("cl-section-main");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(u,{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",Hd,[n.createVNode(N)])):e.notFound?n.renderSlot(e.$slots,"notFound",{key:1},()=>[n.createVNode(U,{fluid:e.$route.meta?.fluid},{default:n.withCtx(()=>[s[2]||(s[2]=n.createElementVNode("p",{class:"cl-p-large"},"Hmm, it seems we can’t find what you’re looking for.",-1)),s[3]||(s[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 btn-sm cl-color-night cl-spacing-large",onClick:s[0]||(s[0]=(...ae)=>e.back&&e.back(...ae))},[...s[1]||(s[1]=[n.createElementVNode("span",null,"Back",-1)])])]),_:1},8,["fluid"])]):n.renderSlot(e.$slots,"default",{key:2})],64)}const sn=B(qd,[["render",Ud]]);sn.install=e=>{e.component(sn.name??"ClNoName",sn)};function Xd(e,s,c,p){const b=[],v=Math.ceil(e/s);c<1&&(c=1),c>v&&(c=v);for(let u=1;u<=v;u++)(u>=c-p&&u<=c+p||u===1||u===v)&&b.push(u);return{previous:c>1?c-1:null,next:c<v?c+1:null,current:c,pages:b}}const Yd=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 Xd(this.items,this.pagesize,this.current,this.window)}}}),Kd={key:0,class:"col-12 cl-spacing-medium"},Gd={class:"pagination"},Qd={key:0,class:"page-item"},Jd={key:1,class:"page-item disabled"},Zd={key:0,class:"page-item disabled"},eu=["onClick"],tu={key:2,class:"page-item"},nu={key:3,class:"page-item disabled"};function iu(e,s,c,p,b,v){return e.pager?.pages?.length>1?(n.openBlock(),n.createElementBlock("nav",Kd,[n.createElementVNode("ul",Gd,[e.pager.previous?(n.openBlock(),n.createElementBlock("li",Qd,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:s[0]||(s[0]=u=>e.$emit("page",e.pager.previous))},[s[2]||(s[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",Jd,[s[3]||(s[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,(u,N)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[N>0&&e.pager.pages[N-1]!==u-1?(n.openBlock(),n.createElementBlock("li",Zd," … ")):n.createCommentVNode("",!0),n.createElementVNode("li",{class:n.normalizeClass(["page-item",{active:u===e.pager.current}])},[n.createElementVNode("button",{class:"page-link",onClick:U=>e.$emit("page",u)},n.toDisplayString(u),9,eu)],2)],64))),128)),e.pager.next?(n.openBlock(),n.createElementBlock("li",tu,[n.createElementVNode("button",{type:"button",class:"page-link",onClick:s[1]||(s[1]=u=>e.$emit("page",e.pager.next))},[s[4]||(s[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",nu,[s[5]||(s[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 rn=B(Yd,[["render",iu]]);rn.install=e=>{e.component(rn.name??"ClNoName",rn)};const ou=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-night":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-color-night"),e+(this.class?` ${this.class}`:"")}}}),su={key:0,class:"cl-badge-derived cl-badge-sm"},ru=["id"];function lu(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",su)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,ru)],64)}const ln=B(ou,[["render",lu]]);ln.install=e=>{e.component(ln.name??"ClNoName",ln)};const au=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-night":this.primary?e+=" cl-color-red":this.secondary&&(e+=" cl-role-night"),e+(this.class?` ${this.class}`:"")}}}),cu={key:0,class:"cl-badge-derived cl-badge-sm"},du=["id"];function uu(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.derived?(n.openBlock(),n.createElementBlock("span",cu)):n.createCommentVNode("",!0),n.createElementVNode("span",{id:e.id,class:n.normalizeClass(e.clazz)},[n.createTextVNode(n.toDisplayString(e.name),1),n.renderSlot(e.$slots,"default")],10,du)],64)}const an=B(au,[["render",uu]]);an.install=e=>{e.component(an.name??"ClNoName",an)};const fu=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"}}}),pu={class:"cl-section cl-section-form"},hu=["id"],mu=["disabled"],gu={key:1,class:"col-12"};function vu(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("section",pu,[n.createElementVNode("form",{id:e.id,novalidate:"",class:n.normalizeClass(e.containerClass),onSubmit:s[0]||(s[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",gu,[n.renderSlot(e.$slots,"default")]))],8,mu)],42,hu)])}const cn=B(fu,[["render",vu]]);cn.install=e=>{e.component(cn.name??"ClNoName",cn)};const bu=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"}}}),yu={class:"cl-section cl-section-headline"},_u={class:"row"},Cu={class:"col-12"},ku={key:0},$u=["href"];function Eu(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("section",yu,[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",_u,[n.createElementVNode("div",Cu,[e.title?(n.openBlock(),n.createElementBlock("h1",ku,[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"},[...s[0]||(s[0]=[n.createElementVNode("i",{class:"fas fa-question-circle"},null,-1)])],8,$u)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")])])],2)])}const dn=B(bu,[["render",Eu]]);dn.install=e=>{e.component(dn.name??"ClNoName",dn)};const wu=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"}}}),Su={class:"row"},Nu={key:1,class:"col-12"};function Tu(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(e.sectionClass)},[n.createElementVNode("div",{class:n.normalizeClass(e.containerClass)},[n.createElementVNode("div",Su,[e.noCol?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("div",Nu,[n.renderSlot(e.$slots,"default")]))])],2)],2)}const gt=B(wu,[["render",Tu]]);gt.install=e=>{e.component(gt.name??"ClNoName",gt)};const Au=n.defineComponent({name:"ClSectionMainSide",components:{ClSectionMain:gt},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 Bu(e,s,c,p,b,v){const u=n.resolveComponent("cl-section-main");return n.openBlock(),n.createBlock(u,{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 un=B(Au,[["render",Bu]]);un.install=e=>{e.component(un.name??"ClNoName",un)};const Ou=n.defineComponent({name:"ClSpinner",props:{title:{type:String,default:"Loading ..."}}}),Du={class:"cl-spinner"};function Vu(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Du,[n.createTextVNode(n.toDisplayString(e.title),1),s[0]||(s[0]=n.createElementVNode("i",{class:"fas fa-spinner fa-spin"},null,-1))])}const fn=B(Ou,[["render",Vu]]);fn.install=e=>{e.component(fn.name??"ClNoName",fn)};function Mu(e){document.querySelectorAll(`#${e} .cl-resizer`).forEach(s=>{Lu(s)})}let Qn=0,On=null;function Lu(e){Qn=0,On=null,e.addEventListener("mousedown",zu),document.addEventListener("mousemove",Iu),document.addEventListener("mouseup",Fu)}const zu=e=>{e.preventDefault(),On=e.target?e.target.parentElement:null,Qn=e.pageX},Iu=e=>{if(On!==null){e.preventDefault();const s=e.pageX-Qn;Qn=e.pageX;const c=Pu(On),p=e.target?.closest("table")?.id??"unknown";!!document.querySelector(`#${p}.cl-table-nowrap`)?document.querySelectorAll(`#${p} tr th:nth-child(${c-1})`).forEach(v=>{const u=(v.style.maxWidth===""?v.offsetWidth:parseInt(v.style.maxWidth))+s;v.style.width=(u>32?u:32)+"px",v.style.maxWidth=(u>32?u:32)+"px"}):(document.querySelectorAll(`#${p} tr td:nth-child(${c-1})`).forEach(v=>{const u=v.offsetWidth+s;v.style.width=(u>32?u:32)+"px"}),document.querySelectorAll(`#${p} tr td:nth-child(${c})`).forEach(v=>{const u=v.offsetWidth-s;v.style.width=(u>32?u:32)+"px"}))}},Fu=e=>{On!==null&&(e.preventDefault(),Qn=0,On=null)};function Pu(e){let s=0;for(;e;)s++,e=e.previousElementSibling;return s}const xu=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 s=1;s<=this.show.length;s++)this.show[s-1]||(e+=` cl-table-col-${s}-hide`);return e}},watch:{rows:function(){this.setupResizer()}},mounted(){this.setupResizer()},methods:{setupResizer:function(){this.$nextTick(()=>{Mu(this.$uid)})}}}),ju=["id"],Wu=["id"],Ru={key:0},qu={key:1},Hu={class:"cl-tr-no-data"},Uu={colspan:"100"},Xu={key:2},Yu={class:"cl-tr-no-data"},Ku={colspan:"100"},Gu={key:3};function Qu(e,s,c,p,b,v){const u=n.resolveComponent("cl-spinner"),N=n.resolveComponent("cl-field-check"),U=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",Ru,[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"body")])):e.rows===0?(n.openBlock(),n.createElementBlock("tbody",qu,[n.createElementVNode("tr",Hu,[n.createElementVNode("td",Uu,n.toDisplayString(e.noDataText),1)])])):(n.openBlock(),n.createElementBlock("tbody",Xu,[n.createElementVNode("tr",Yu,[n.createElementVNode("td",Ku,[n.createVNode(u)])])])),e.$slots.footer?(n.openBlock(),n.createElementBlock("tfoot",Gu,[n.createElementVNode("tr",null,[n.renderSlot(e.$slots,"footer")])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"tfoot")],10,Wu)],8,ju),e.hideCols?(n.openBlock(),n.createBlock(U,{key:0,id:e.$uid+"-settings",title:"Configure table"},{default:n.withCtx(()=>[s[0]||(s[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,(ae,we)=>(n.openBlock(),n.createBlock(N,{key:ae,value:e.show[we],modelValue:e.show[we],"onUpdate:modelValue":Se=>e.show[we]=Se},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(ae),1)]),_:2},1032,["value","modelValue","onUpdate:modelValue"]))),128))]),_:1},8,["id"])):n.createCommentVNode("",!0)],64)}const pn=B(xu,[["render",Qu]]);pn.install=e=>{e.component(pn.name??"ClNoName",pn)};const Ju=n.defineComponent({name:"ClTableCel",props:{condensed:{type:Boolean,default:!1}}});function Zu(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",{class:n.normalizeClass(e.condensed?"cl-font-condensed":"")},[n.renderSlot(e.$slots,"default")],2)}const hn=B(Ju,[["render",Zu]]);hn.install=e=>{e.component(hn.name??"ClNoName",hn)};const ef=n.defineComponent({name:"ClTableCelActions",props:{content:{type:String,default:""}}}),tf={class:"cl-td-actions"};function nf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",tf,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const mn=B(ef,[["render",nf]]);mn.install=e=>{e.component(mn.name??"ClNoName",mn)};const of=n.defineComponent({name:"ClTableCelAudit",directives:{tooltip:Dn},props:{value:{type:String,default:"???"}}}),sf={class:"cl-td-audit"},rf={class:"fas fa-info-circle"};function lf(e,s,c,p,b,v){const u=n.resolveDirective("tooltip");return n.openBlock(),n.createElementBlock("td",sf,[n.withDirectives(n.createElementVNode("i",rf,null,512),[[u,e.value,"left"]])])}const gn=B(of,[["render",lf]]);gn.install=e=>{e.component(gn.name??"ClNoName",gn)};const af=n.defineComponent({name:"ClTableCelBoolean",props:{value:{type:Boolean,default:!1}}}),cf={class:"cl-td-boolean"};function df(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",cf,[n.createElementVNode("i",{class:n.normalizeClass(`fas ${e.value?"fa-check":"fa-minus"}`)},null,2)])}const vn=B(af,[["render",df]]);vn.install=e=>{e.component(vn.name??"ClNoName",vn)};const uf=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)}}}),ff={class:"cl-td-checkbox"},pf={class:"form-check text-center"},hf=["id","disabled"];function mf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",ff,[n.createElementVNode("div",pf,[n.withDirectives(n.createElementVNode("input",{id:e.id??e.$uid,"onUpdate:modelValue":s[0]||(s[0]=u=>e.modelValue=u),class:"form-check-input",type:"checkbox",disabled:e.disabled,onChange:s[1]||(s[1]=u=>e.emitAll())},null,40,hf),[[n.vModelCheckbox,e.modelValue]])])])}const bn=B(uf,[["render",mf]]);bn.install=e=>{e.component(bn.name??"ClNoName",bn)};const gf=n.defineComponent({name:"ClTableCelCode"}),vf={class:"cl-td-code"};function bf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",vf,[n.renderSlot(e.$slots,"default")])}const yn=B(gf,[["render",bf]]);yn.install=e=>{e.component(yn.name??"ClNoName",yn)};const yf=n.defineComponent({name:"ClTableCelCurrency",props:{amount:{type:Number,default:0},currency:{type:String,default:"EUR"}}}),_f={class:"cl-td-currency"};function Cf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",_f,n.toDisplayString(e.currency)+" "+n.toDisplayString(e.amount),1)}const _n=B(yf,[["render",Cf]]);_n.install=e=>{e.component(_n.name??"ClNoName",_n)};const kf=n.defineComponent({name:"ClTableCelDate",props:{value:{type:String,default:void 0}},computed:{content:function(){if(this.value){const e=new Date(this.value),s=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),c=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(e),p=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e),b=new Intl.DateTimeFormat("en",{hour:"2-digit",hour12:!1}).format(e),v=new Intl.DateTimeFormat("en",{minute:"2-digit"}).format(e);return`${s}-${c}-${p} ${b}:${v}`}return"-"}}}),$f={class:"cl-td-date"};function Ef(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",$f,n.toDisplayString(e.content),1)}const Cn=B(kf,[["render",Ef]]);Cn.install=e=>{e.component(Cn.name??"ClNoName",Cn)};const wf=n.defineComponent({name:"ClTableCelId",directives:{tooltip:Dn,clipboard:ko},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>"}}}),Sf={class:"cl-td-id"};function Nf(e,s,c,p,b,v){const u=n.resolveDirective("tooltip"),N=n.resolveDirective("clipboard");return n.withDirectives((n.openBlock(),n.createElementBlock("td",Sf,[n.createTextVNode(n.toDisplayString(e.value),1)])),[[u,e.tooltip,"right"],[N,e.full??e.value]])}const kn=B(wf,[["render",Nf]]);kn.install=e=>{e.component(kn.name??"ClNoName",kn)};const Tf=n.defineComponent({name:"ClTableCelLinks",props:{content:{type:String,default:""}}}),Af={class:"cl-td-links"};function Bf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("td",Af,[n.createTextVNode(n.toDisplayString(e.content),1),n.renderSlot(e.$slots,"default")])}const $n=B(Tf,[["render",Bf]]);$n.install=e=>{e.component($n.name??"ClNoName",$n)};const Of=n.defineComponent({name:"ClTableCelUuid",props:{value:{type:String,default:"00000000-0000-0000-0000-000000000000"}}});function Df(e,s,c,p,b,v){const u=n.resolveComponent("cl-table-cel-id");return n.openBlock(),n.createBlock(u,{value:e.value.substring(0,8),full:e.value},null,8,["value","full"])}const En=B(Of,[["render",Df]]);En.install=e=>{e.component(En.name??"ClNoName",En)};const Vf=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}}}),Mf={key:0,class:"cl-table-foot-checked"},Lf={class:"cl-td-links",colspan:"100"};function zf(e,s,c,p,b,v){return e.any?(n.openBlock(),n.createElementBlock("tfoot",Mf,[n.createElementVNode("tr",null,[n.createElementVNode("td",Lf,[s[0]||(s[0]=n.createElementVNode("small",null,[n.createElementVNode("i",{class:"fas fa-share fa-rotate-270 cl-faded"})],-1)),s[1]||(s[1]=n.createTextVNode("   ",-1)),n.renderSlot(e.$slots,"default")])])])):n.createCommentVNode("",!0)}const wn=B(Vf,[["render",zf]]);wn.install=e=>{e.component(wn.name??"ClNoName",wn)};const If=n.defineComponent({name:"ClTableHead",directives:{tooltip:Dn},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,s){e!==s&&(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 s=e?.target;for(;s;){if(s.tagName==="TABLE"){yo(`${s.id}-settings`);return}s=s.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")}}}}),Ff=["id","width"],Pf={class:"fas fa-cog cl-faded"},xf={key:0,class:"cl-resizer"},jf={key:1,class:"form-check text-center"},Wf=["indeterminate"],Rf={key:2,class:"cl-resizer"};function qf(e,s,c,p,b,v){const u=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:s[0]||(s[0]=(...N)=>e.openSettings&&e.openSettings(...N))},[n.withDirectives(n.createElementVNode("i",Pf,null,512),[[u,"Configure table","left"]])]),e.resize?(n.openBlock(),n.createElementBlock("div",xf)):n.createCommentVNode("",!0)],64)):e.checkbox?(n.openBlock(),n.createElementBlock("div",jf,[n.withDirectives(n.createElementVNode("input",{ref:"checkbox","onUpdate:modelValue":s[1]||(s[1]=N=>e.modelValue=N),class:"form-check-input",type:"checkbox",indeterminate:e.checkState==="SOME",onChange:s[2]||(s[2]=N=>e.check())},null,40,Wf),[[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:s[3]||(s[3]=(...N)=>e.sortCol&&e.sortCol(...N))},[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",Rf)):n.createCommentVNode("",!0)],64))],10,Ff)}const Sn=B(If,[["render",qf]]);Sn.install=e=>{e.component(Sn.name??"ClNoName",Sn)};const Hf=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}}}),Uf=["id"];function Xf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("tr",{id:e.id,class:n.normalizeClass(e.clazz)},[n.renderSlot(e.$slots,"default")],10,Uf)}const Nn=B(Hf,[["render",Xf]]);Nn.install=e=>{e.component(Nn.name??"ClNoName",Nn)};const Yf=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)}}}),Kf={class:"cl-tabs"},Gf=["id","name","checked","onChange"],Qf=["for"];function Jf(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock("div",Kf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("input",{key:0,id:`tabs-${e.$uid}-${u}`,class:n.normalizeClass(`cl-tab-${u}`),type:"radio",name:`tabs-${e.$uid}`,checked:e.index===u-1,onChange:N=>e.emit(u)},null,42,Gf)):n.createCommentVNode("",!0)],64))),128)),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("li",{key:0,class:n.normalizeClass(`cl-tab-${u}`)},[n.createElementVNode("label",{for:`tabs-${e.$uid}-${u}`},[n.renderSlot(e.$slots,`tabs-${u}-label`)],8,Qf)],2)):n.createCommentVNode("",!0)],64))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tabs,u=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:u},[e.slotExists(u)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(`cl-tab-${u} cl-tab-content`)},[n.renderSlot(e.$slots,`tabs-${u}-content`)],2)):n.createCommentVNode("",!0)],64))),128))])}const Tn=B(Yf,[["render",Jf]]);Tn.install=e=>{e.component(Tn.name??"ClNoName",Tn)};const Zf=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{myclass:"cl-badge "+this.class}},computed:{clazz:function(){return this.class?` ${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())}}}}),ep=["id","checked","disabled"],tp=["id","for","disabled"];function np(e,s,c,p,b,v){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:e.$uid,type:"checkbox",class:n.normalizeClass(`cl-toggle-checkbox${e.clazz}`),checked:e.modelValue,disabled:e.enabled?null:!0,onChange:s[0]||(s[0]=u=>e.toggle())},null,42,ep),n.createElementVNode("label",{id:e.id,class:n.normalizeClass(e.myclass),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,tp)],64)}const An=B(Zf,[["render",np]]);An.install=e=>{e.component(An.name??"ClNoName",An)};const ip={install:e=>{let s=0;e.mixin({beforeCreate:function(){let p;const b="uid-"+s++;Object.defineProperties(this,(p={},p.$uid={get:function(){return b}},p))}})}};function op(){return{ClAlert:It,ClBackCancelOk:Ft,ClCookieBanner:Pt,ClCopy:xt,ClCreditcardNumber:jt,ClDropzone:Wt,ClField:Rt,ClFieldCheck:qt,ClFieldGroup:Ht,ClHashtag:Ut,ClIconotron:Xt,ClInfo:Yt,ClLinkExternal:Kt,ClLorem:Gt,ClMailto:Qt,ClModal:Jt,ClModalConfirm:Zt,ClModalOk:en,ClNavSide:tn,ClNavTop:nn,ClOrg:on,ClPage:sn,ClPagination:rn,ClPlan:ln,ClRole:an,ClSectionForm:cn,ClSectionHeadline:dn,ClSectionMain:gt,ClSectionMainSide:un,ClSpinner:fn,ClTable:pn,ClTableCel:hn,ClTableCelActions:mn,ClTableCelAudit:gn,ClTableCelBoolean:vn,ClTableCelCheckbox:bn,ClTableCelCode:yn,ClTableCelCurrency:_n,ClTableCelDate:Cn,ClTableCelId:kn,ClTableCelLinks:$n,ClTableCelUuid:En,ClTableFootChecked:wn,ClTableHead:Sn,ClTableRow:Nn,ClTabs:Tn,ClToggle:An}}function sp(){return[ip]}function $o(e,s){const c=JSON.parse(JSON.stringify(e));for(const p in s)typeof s[p]=="object"&&!Array.isArray(s[p])?c[p]=$o(e[p]??{},s[p]):c[p]=s[p];return c}function rp(e,s){return{store:$o(e,s)}}const mr="✺";let Ni={};function lp(e,s="",c=!1){const p=Ni[s]??tt(gr(s));return Object.keys(Ni).length>100&&(Ni={}),Ni[s]=p,mt(c?e.toLowerCase():e,p,c)}function mt(e,s,c){if(typeof s=="string"){const p=s.replaceAll(mr," ");return p[0]==="-"?!mt(e,p.substring(1),c):c?e.includes(p):e.toLowerCase().includes(p.toLowerCase())}else switch(s[0]){case"&":return mt(e,s[1])&&mt(e,s[2]);case"|":return mt(e,s[1])||mt(e,s[2]);default:return!1}}function gr(e){const s=[];let c=!1;for(let u=0;u<e.length;u++)c?e[u]===c?c=!1:s.push([" "].includes(e[u])?mr:e[u]):["'",'"'].includes(e[u])?c=e[u]:s.push(e[u]);const p=s.join("").replace(/\s+/g," ").trim();if(p.length<=0)return"";const b=p.split(" ");if(b.length<=0)return"";const v=[];["NOT","-"].includes(b[0])||v.push(b.shift());for(let u=0;u<b.length;u++)switch(b[u]){case"AND":case"&":case"&&":switch(b[++u]){case"NOT":case"-":b[u+1]&&(v.push("&"),v.push("-"),v.push(b[++u]));break;case void 0:break;default:v.push("&"),v.push(b[u])}break;case"OR":case"|":case"||":switch(b[++u]){case"NOT":case"-":b[u+1]&&(v.push("|"),v.push("-"),v.push(b[++u]));break;case void 0:break;default:v.push("|"),v.push(b[u])}break;case"NOT":case"-":v.push("-"),v.push(b[++u]);break;default:v.push("&"),v.push(b[u])}return` ${v.join(" ")} `.replace(/ - /g," -").trim()}function tt(e){const s=e.indexOf(" | ");if(s>=0)return["|",tt(e.substring(0,s)),tt(e.substring(s+3))];const c=e.indexOf(" & ");if(c>=0)return["&",tt(e.substring(0,c)),tt(e.substring(c+3))];const p=e.indexOf(" ");return p>=0?["&",tt(e.substring(0,p)),tt(e.substring(p+1))]:e}const vt={DEV:"DEV",TEST:"TEST",PROD:"PROD"},vr={id:"CP",subtitle:"Access the Content Platform, manage, encode and watermark assets",title:"Content Platform",urlManage:function(e,s){return e===vt.PROD?`https://platform.content.castlabs.com/#/o/${s??""}`:`https://platform.content-stag.castlabs.com/#/o/${s??""}`},sidenav:!1},br={id:"CS",subtitle:"Manage organizations, plans, downloads",title:"Castlabs hub",urlManage:function(e,s){return Eo(e,`https://account.test.cs.castlabs.com/o/${s??""}`,`https://account.castlabs.com/o/${s??""}`)},sidenav:!0},yr={id:"DT",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday",urlManage:function(e,s){return Eo(e,`https://fe.test.drmtoday.com/dashboard/${s?`${s}/`:""}index`,`https://fe.drmtoday.com/dashboard/${s?`${s}/`:""}index`)},sidenav:!0},_r={id:"DTO",subtitle:"",title:"DRMtoday Onboard (staging)",urlManage:function(e,s){return`https://onboard.castlabs.com/o/${s??""}/devices`},sidenav:!1},Cr={id:"DTS",subtitle:"Cloud DRM & CAS licensing",title:"DRMtoday (staging)",urlManage:function(e,s){return Eo(e,`https://fe.test.drmtoday.com/dashboard/${s?`${s}/`:""}index`,`https://fe.staging.drmtoday.com/dashboard/${s?`${s}/`:""}index`)},sidenav:!1},kr={id:"PP",subtitle:"Cross-platform video players (via Castlabs hub)",title:"PRESTOplay",urlManage:function(e,s){return e===vt.PROD?`https://account.castlabs.com/o/${s}/prestoplay`:`https://account.test.cs.castlabs.com/o/${s}/prestoplay`},sidenav:!0},$r={id:"VTK",subtitle:"Cloud encoding, packaging, watermarking",title:"Video Toolkit",urlManage:function(e){return e===vt.PROD?"https://vtk.castlabs.com/":"https://vtks.castlabs.com/"},sidenav:!0},Er={id:"WM",subtitle:"Video & image forensic watermarking",title:"STARDUSTmark",urlManage:function(e,s){return e===vt.PROD?`https://watermark.castlabs.com/#/o/${s}`:`https://demo-stag.fwm.castlabs.com/#/o/${s}`},sidenav:!0};function Eo(e=vt.PROD,s,c){return[vt.DEV,vt.TEST].includes(e)?s:c}function ap(){return[br,vr,yr,Cr,_r,kr,Er,$r]}const cp={CP:vr,CS:br,DT:yr,DTS:Cr,DTO:_r,PP:kr,WM:Er,VTK:$r},vo={ClAlert:It,ClBackCancelOk:Ft,ClCookieBanner:Pt,ClCopy:xt,ClCreditcardNumber:jt,ClDropzone:Wt,ClField:Rt,ClFieldCheck:qt,ClFieldGroup:Ht,ClHashtag:Ut,ClIconotron:Xt,ClInfo:Yt,ClLinkExternal:Kt,ClLorem:Gt,ClMailto:Qt,ClModal:Jt,ClModalConfirm:Zt,ClModalOk:en,ClNavSide:tn,ClNavTop:nn,ClOrg:on,ClPage:sn,ClPagination:rn,ClPlan:ln,ClRole:an,ClSectionForm:cn,ClSectionHeadline:dn,ClSectionMain:gt,ClSectionMainSide:un,ClSpinner:fn,ClTable:pn,ClTableCel:hn,ClTableCelActions:mn,ClTableCelAudit:gn,ClTableCelBoolean:vn,ClTableCelCheckbox:bn,ClTableCelCode:yn,ClTableCelCurrency:_n,ClTableCelDate:Cn,ClTableCelId:kn,ClTableCelLinks:$n,ClTableCelUuid:En,ClTableFootChecked:wn,ClTableHead:Sn,ClTableRow:Nn,ClTabs:Tn,ClToggle:An,ClMockRouterLink:Gn,ClUI:Na};function dp(e){for(const s in vo)e.component(vo[s].name,vo[s])}exports.ClAlert=It;exports.ClBackCancelOk=Ft;exports.ClCookieBanner=Pt;exports.ClCopy=xt;exports.ClCreditcardNumber=jt;exports.ClDropzone=Wt;exports.ClField=Rt;exports.ClFieldCheck=qt;exports.ClFieldGroup=Ht;exports.ClHashtag=Ut;exports.ClIconotron=Xt;exports.ClInfo=Yt;exports.ClLinkExternal=Kt;exports.ClLorem=Gt;exports.ClMailto=Qt;exports.ClMockRouterLink=Gn;exports.ClModal=Jt;exports.ClModalConfirm=Zt;exports.ClModalOk=en;exports.ClNavSide=tn;exports.ClNavTop=nn;exports.ClOrg=on;exports.ClPage=sn;exports.ClPagination=rn;exports.ClPlan=ln;exports.ClRole=an;exports.ClSectionForm=cn;exports.ClSectionHeadline=dn;exports.ClSectionMain=gt;exports.ClSectionMainSide=un;exports.ClSpinner=fn;exports.ClTable=pn;exports.ClTableCel=hn;exports.ClTableCelActions=mn;exports.ClTableCelAudit=gn;exports.ClTableCelBoolean=vn;exports.ClTableCelCheckbox=bn;exports.ClTableCelCode=yn;exports.ClTableCelCurrency=_n;exports.ClTableCelDate=Cn;exports.ClTableCelId=kn;exports.ClTableCelLinks=$n;exports.ClTableCelUuid=En;exports.ClTableFootChecked=wn;exports.ClTableHead=Sn;exports.ClTableRow=Nn;exports.ClTabs=Tn;exports.ClToggle=An;exports.NAV=cp;exports._getProperty=zt;exports._sanitize=gr;exports._tokenize=tt;exports.castlabsUi=dp;exports.clCopyData=Ka;exports.clDebounce=Ua;exports.clFocus=La;exports.clFormAutofocus=za;exports.clFormFieldFocusFirstInvalid=Co;exports.clFormFieldReset=rr;exports.clFormIsValid=_o;exports.clFormIsValidAsync=lr;exports.clFormReset=sr;exports.clFormatAmount=ja;exports.clFormatCardNumber=dr;exports.clFormatDate=ar;exports.clFormatDateTimeUTC=Fa;exports.clFormatDuration=Pa;exports.clFormatFilesize=Ia;exports.clFormatNumber=Bi;exports.clFormatPeriod=xa;exports.clFormatRange=Wa;exports.clFormatTimeUTC=cr;exports.clGetAllComponents=op;exports.clGetAllPlugins=sp;exports.clGetServices=ap;exports.clMatch=lp;exports.clModalHide=Bn;exports.clModalIsShown=Ma;exports.clModalShow=yo;exports.clModalValue=Ai;exports.clPaginate=or;exports.clPatch=$o;exports.clPatchStore=rp;exports.clRandomList=Ya;exports.clRandomString=Xa;exports.clRefClField=Ja;exports.clRefClFieldGroup=Za;exports.clRefHTMLElement=ec;exports.clReload=Qa;exports.clReloadStore=Ga;exports.clScrollToId=Va;exports.clSort=ur;exports.clSynchronizedSubmit=Ra;exports.clSynchronizedSubmitAsync=qa;exports.clTableSorter=fr;exports.clTableSorterObjects=Ha;exports.clVClipboard=ko;exports.clVTooltip=Dn;
30
30
  //# sourceMappingURL=castlabs-ui.common.js.map