// bootstrap.bundle.js /*! * Bootstrap v5.1.3 (https://getbootstrap.com/) * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,function(){"use strict";function t(t,e){return e&&`${e}::${ie++}`||t.uidEvent||ie++}function e(e){const i=t(e);return e.uidEvent=i,ee[i]=ee[i]||{},ee[i]}function i(t,e){return function i(n){return n.delegateTarget=t,i.oneOff&&re.off(t,n.type,e),e.apply(t,[n])}}function n(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&re.off(t,s.type,e,i),i.apply(r,[s]);return null}}function s(t,e,i=null){const n=Object.keys(t);for(let s=0,o=n.length;s(function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)});c?c=t(c):l=t(l)}const[d,u,f]=o(a,l,c),p=e(r),g=p[f]||(p[f]={}),m=s(g,u,d?l:null);if(m)return void(m.oneOff=m.oneOff&&h);const _=t(u,a.replace(Zt,"")),v=d?n(r,l,c):i(r,l);v.delegationSelector=d?l:null,v.originalHandler=u,v.oneOff=h,v.uidEvent=_,g[_]=v,r.addEventListener(f,v,d)}function a(t,e,i,n,o){const r=s(e[i],n,o);r&&(t.removeEventListener(i,r,Boolean(o)),delete e[i][r.uidEvent])}function l(t,e,i,n){const s=e[i]||{};Object.keys(s).forEach(o=>{if(o.includes(n)){const n=s[o];a(t,e,i,n.originalHandler,n.delegationSelector)}})}function c(t){return t=t.replace(Jt,""),ne[t]||t}function h(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function d(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function u(t){return t?(t.nodeName||"").toLowerCase():null}function f(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function p(t){return t instanceof f(t).Element||t instanceof Element}function g(t){return t instanceof f(t).HTMLElement||t instanceof HTMLElement}function m(t){return"undefined"!=typeof ShadowRoot&&(t instanceof f(t).ShadowRoot||t instanceof ShadowRoot)}function _(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];g(s)&&u(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)}))})}function v(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});g(n)&&u(n)&&(Object.assign(n.style,o),Object.keys(s).forEach(function(t){n.removeAttribute(t)}))})}}function b(t){return t.split("-")[0]}function y(t){var e=t.getBoundingClientRect(),i=1,n=1;return{width:e.width/i,height:e.height/n,top:e.top/n,right:e.right/i,bottom:e.bottom/n,left:e.left/i,x:e.left/i,y:e.top/n}}function w(t){var e=y(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function E(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&m(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function A(t){return f(t).getComputedStyle(t)}function T(t){return["table","td","th"].indexOf(u(t))>=0}function O(t){return((p(t)?t.ownerDocument:t.document)||window.document).documentElement}function C(t){return"html"===u(t)?t:t.assignedSlot||t.parentNode||(m(t)?t.host:null)||O(t)}function $(t){return g(t)&&"fixed"!==A(t).position?t.offsetParent:null}function k(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&g(t)&&"fixed"===A(t).position)return null;for(var i=C(t);g(i)&&["html","body"].indexOf(u(i))<0;){var n=A(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}function L(t){for(var e=f(t),i=$(t);i&&T(i)&&"static"===A(i).position;)i=$(i);return i&&("html"===u(i)||"body"===u(i)&&"static"===A(i).position)?e:i||k(t)||e}function x(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function D(t,e,i){return dn(t,un(e,i))}function S(){return{top:0,right:0,bottom:0,left:0}}function N(t){return Object.assign({},S(),t)}function I(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}function P(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=b(i.placement),l=x(a),c=[zi,Wi].indexOf(a)>=0?"height":"width";if(o&&r){var h=pn(s.padding,i),d=w(o),u="y"===l?Bi:zi,f="y"===l?Ri:Wi,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],m=L(o),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=p/2-g/2,y=h[u],E=_-d[c]-h[f],A=_/2-d[c]/2+v,T=D(y,A,E),O=l;i.modifiersData[n]=((e={})[O]=T,e.centerOffset=T-A,e)}}function j(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&E(e.elements.popper,n)&&(e.elements.arrow=n)}function M(t){return t.split("-")[1]}function H(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:fn(fn(e*n)/n)||0,y:fn(fn(i*n)/n)||0}}function B(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,d=!0===h?H(r):"function"==typeof h?h(r):r,u=d.x,p=void 0===u?0:u,g=d.y,m=void 0===g?0:g,_=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),b=zi,y=Bi,w=window;if(c){var E=L(i),T="clientHeight",C="clientWidth";E===f(i)&&"static"!==A(E=O(i)).position&&"absolute"===a&&(T="scrollHeight",C="scrollWidth"),E=E,s!==Bi&&(s!==zi&&s!==Wi||o!==Vi)||(y=Ri,m-=E[T]-n.height,m*=l?1:-1),s!==zi&&(s!==Bi&&s!==Ri||o!==Vi)||(b=Wi,p-=E[C]-n.width,p*=l?1:-1)}var $,k=Object.assign({position:a},c&&mn);return l?Object.assign({},k,(($={})[y]=v?"0":"",$[b]=_?"0":"",$.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",$)):Object.assign({},k,((e={})[y]=v?m+"px":"",e[b]=_?p+"px":"",e.transform="",e))}function R(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:b(e.placement),variation:M(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,B(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,B(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}function W(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=f(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(t){t.addEventListener("scroll",i.update,vn)}),a&&l.addEventListener("resize",i.update,vn),function(){o&&c.forEach(function(t){t.removeEventListener("scroll",i.update,vn)}),a&&l.removeEventListener("resize",i.update,vn)}}function z(t){return t.replace(/left|right|bottom|top/g,function(t){return yn[t]})}function q(t){return t.replace(/start|end/g,function(t){return wn[t]})}function F(t){var e=f(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function U(t){return y(O(t)).left+F(t).scrollLeft}function V(t){var e=f(t),i=O(t),n=e.visualViewport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+U(t),y:a}}function K(t){var e,i=O(t),n=F(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=dn(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=dn(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+U(t),l=-n.scrollTop;return"rtl"===A(s||i).direction&&(a+=dn(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function X(t){var e=A(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Y(t){return["html","body","#document"].indexOf(u(t))>=0?t.ownerDocument.body:g(t)&&X(t)?t:Y(C(t))}function Q(t,e){var i;void 0===e&&(e=[]);var n=Y(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=f(n),r=s?[o].concat(o.visualViewport||[],X(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Q(C(r)))}function G(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Z(t){var e=y(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function J(t,e){return e===Xi?G(V(t)):g(e)?Z(e):G(K(O(t)))}function tt(t){var e=Q(C(t)),i=["absolute","fixed"].indexOf(A(t).position)>=0&&g(t)?L(t):t;return p(i)?e.filter(function(t){return p(t)&&E(t,i)&&"body"!==u(t)}):[]}function et(t,e,i){var n="clippingParents"===e?tt(t):[].concat(e),s=[].concat(n,[i]),o=s[0],r=s.reduce(function(e,i){var n=J(t,i);return e.top=dn(n.top,e.top),e.right=un(n.right,e.right),e.bottom=un(n.bottom,e.bottom),e.left=dn(n.left,e.left),e},J(t,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function it(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?b(s):null,r=s?M(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case Bi:e={x:a,y:i.y-n.height};break;case Ri:e={x:a,y:i.y+i.height};break;case Wi:e={x:i.x+i.width,y:l};break;case zi:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?x(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case Ui:e[c]=e[c]-(i[h]/2-n[h]/2);break;case Vi:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function nt(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.boundary,r=void 0===o?Ki:o,a=i.rootBoundary,l=void 0===a?Xi:a,c=i.elementContext,h=void 0===c?Yi:c,d=i.altBoundary,u=void 0!==d&&d,f=i.padding,g=void 0===f?0:f,m=N("number"!=typeof g?g:I(g,Fi)),_=h===Yi?Qi:Yi,v=t.rects.popper,b=t.elements[u?_:h],w=et(p(b)?b:b.contextElement||O(t.elements.popper),r,l),E=y(t.elements.reference),A=it({reference:E,element:v,strategy:"absolute",placement:s}),T=G(Object.assign({},v,A)),C=h===Yi?T:E,$={top:w.top-C.top+m.top,bottom:C.bottom-w.bottom+m.bottom,left:w.left-C.left+m.left,right:C.right-w.right+m.right},k=t.modifiersData.offset;if(h===Yi&&k){var L=k[s];Object.keys($).forEach(function(t){var e=[Wi,Ri].indexOf(t)>=0?1:-1,i=[Bi,Ri].indexOf(t)>=0?"y":"x";$[t]+=L[i]*e})}return $}function st(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Zi:l,h=M(n),d=h?a?Gi:Gi.filter(function(t){return M(t)===h}):Fi,u=d.filter(function(t){return c.indexOf(t)>=0});0===u.length&&(u=d);var f=u.reduce(function(e,i){return e[i]=nt(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[b(i)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}function ot(t){if(b(t)===qi)return[];var e=z(t);return[q(t),e,q(e)]}function rt(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,g=i.allowedAutoPlacements,m=e.options.placement,_=b(m),v=l||(_===m||!p?[z(m)]:ot(m)),y=[m].concat(v).reduce(function(t,i){return t.concat(b(i)===qi?st(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):i)},[]),w=e.rects.reference,E=e.rects.popper,A=new Map,T=!0,O=y[0],C=0;C=0,D=x?"width":"height",S=nt(e,{placement:$,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),N=x?L?Wi:zi:L?Ri:Bi;w[D]>E[D]&&(N=z(N));var I=z(N),P=[];if(o&&P.push(S[k]<=0),a&&P.push(S[N]<=0,S[I]<=0),P.every(function(t){return t})){O=$,T=!1;break}A.set($,P)}if(T)for(var j=function(t){var e=y.find(function(e){var i=A.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return O=e,"break"},H=p?3:1;H>0;H--){if("break"===j(H))break}e.placement!==O&&(e.modifiersData[n]._skip=!0,e.placement=O,e.reset=!0)}}function at(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function lt(t){return[Bi,Wi,Ri,zi].some(function(e){return t[e]>=0})}function ct(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=nt(e,{elementContext:"reference"}),a=nt(e,{altBoundary:!0}),l=at(r,n),c=at(a,s,o),h=lt(l),d=lt(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}function ht(t,e,i){var n=b(t),s=[zi,Bi].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[zi,Wi].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}function dt(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=Zi.reduce(function(t,i){return t[i]=ht(i,e.rects,o),t},{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}function ut(t){var e=t.state,i=t.name;e.modifiersData[i]=it({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}function ft(t){return"x"===t?"y":"x"}function pt(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,g=void 0===p?0:p,m=nt(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),_=b(e.placement),v=M(e.placement),y=!v,E=x(_),A=ft(E),T=e.modifiersData.popperOffsets,O=e.rects.reference,C=e.rects.popper,$="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,k={x:0,y:0};if(T){if(o||a){var N="y"===E?Bi:zi,I="y"===E?Ri:Wi,P="y"===E?"height":"width",j=T[E],H=T[E]+m[N],B=T[E]-m[I],R=f?-C[P]/2:0,W=v===Ui?O[P]:C[P],z=v===Ui?-C[P]:-O[P],q=e.elements.arrow,F=f&&q?w(q):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:S(),V=U[N],K=U[I],X=D(0,O[P],F[P]),Y=y?O[P]/2-R-X-V-$:W-X-V-$,Q=y?-O[P]/2+R+X+K+$:z+X+K+$,G=e.elements.arrow&&L(e.elements.arrow),Z=G?"y"===E?G.clientTop||0:G.clientLeft||0:0,J=e.modifiersData.offset?e.modifiersData.offset[e.placement][E]:0,tt=T[E]+Y-J-Z,et=T[E]+Q-J;if(o){var it=D(f?un(H,tt):H,j,f?dn(B,et):B);T[E]=it,k[E]=it-j}if(a){var st="x"===E?Bi:zi,ot="x"===E?Ri:Wi,rt=T[A],at=rt+m[st],lt=rt-m[ot],ct=D(f?un(at,tt):at,rt,f?dn(lt,et):lt);T[A]=ct,k[A]=ct-rt}}e.modifiersData[n]=k}}function gt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function mt(t){return t!==f(t)&&g(t)?gt(t):F(t)}function _t(t){var e=t.getBoundingClientRect(),i=e.width/t.offsetWidth||1,n=e.height/t.offsetHeight||1;return 1!==i||1!==n}function vt(t,e,i){void 0===i&&(i=!1);var n=g(e);g(e)&&_t(e);var s=O(e),o=y(t),r={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(n||!n&&!i)&&(("body"!==u(e)||X(s))&&(r=mt(e)),g(e)?((a=y(e)).x+=e.clientLeft,a.y+=e.clientTop):s&&(a.x=U(s))),{x:o.left+r.scrollLeft-a.x,y:o.top+r.scrollTop-a.y,width:o.width,height:o.height}}function bt(t){function e(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var s=i.get(t);s&&e(s)}}),s.push(t)}var i=new Map,n=new Set,s=[];return t.forEach(function(t){i.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||e(t)}),s}function yt(t){var e=bt(t);return cn.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}function wt(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=undefined,i(t())})})),e}}function Et(t){var e=t.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{});return Object.keys(e).map(function(t){return e[t]})}function At(){for(var t=arguments.length,e=new Array(t),i=0;i{Co(t,r)||i.removeAttribute(t.nodeName)})}return n.body.innerHTML}const Ct=1e6,$t=1e3,kt="transitionend",Lt=t=>null===t||t===undefined?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),xt=t=>{do{t+=Math.floor(Math.random()*Ct)}while(document.getElementById(t));return t},Dt=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},St=t=>{const e=Dt(t);return e&&document.querySelector(e)?e:null},Nt=t=>{const e=Dt(t);return e?document.querySelector(e):null},It=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(i))*$t):0},Pt=t=>{t.dispatchEvent(new Event(kt))},jt=t=>!(!t||"object"!=typeof t)&&("undefined"!=typeof t.jquery&&(t=t[0]),"undefined"!=typeof t.nodeType),Mt=t=>jt(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,Ht=(t,e,i)=>{Object.keys(i).forEach(n=>{const s=i[n],o=e[n],r=o&&jt(o)?"element":Lt(o);if(!new RegExp(s).test(r))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`)})},Bt=t=>!(!jt(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),Rt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||("undefined"!=typeof t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),Wt=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Wt(t.parentNode):null},zt=()=>{},qt=t=>{t.offsetHeight},Ft=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},Ut=[],Vt=t=>{"loading"===document.readyState?(Ut.length||document.addEventListener("DOMContentLoaded",()=>{Ut.forEach(t=>t())}),Ut.push(t)):t()},Kt=()=>"rtl"===document.documentElement.dir,Xt=t=>{Vt(()=>{const e=Ft();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=(()=>(e.fn[i]=n,t.jQueryInterface))}})},Yt=t=>{"function"==typeof t&&t()},Qt=(t,e,i=!0)=>{if(!i)return void Yt(t);const n=5,s=It(e)+n;let o=!1;const r=({target:i})=>{i===e&&(o=!0,e.removeEventListener(kt,r),Yt(t))};e.addEventListener(kt,r),setTimeout(()=>{o||Pt(e)},s)},Gt=(t,e,i,n)=>{let s=t.indexOf(e);if(-1===s)return t[!i&&n?t.length-1:0];const o=t.length;return s+=i?1:-1,n&&(s=(s+o)%o),t[Math.max(0,Math.min(s,o-1))]},Zt=/[^.]*(?=\..*)\.|.*/,Jt=/\..*/,te=/::\d+$/,ee={};let ie=1;const ne={mouseenter:"mouseover",mouseleave:"mouseout"},se=/^(mouseenter|mouseleave)/i,oe=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"]),re={on(t,e,i,n){r(t,e,i,n,!1)},one(t,e,i,n){r(t,e,i,n,!0)},off(t,i,n,s){if("string"!=typeof i||!t)return;const[r,c,h]=o(i,n,s),d=h!==i,u=e(t),f=i.startsWith(".");if(void 0!==c){if(!u||!u[h])return;return void a(t,u,h,c,r?n:null)}f&&Object.keys(u).forEach(e=>{l(t,u,e,i.slice(1))});const p=u[h]||{};Object.keys(p).forEach(e=>{const n=e.replace(te,"");if(!d||i.includes(n)){const i=p[e];a(t,u,h,i.originalHandler,i.delegationSelector)}})},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=Ft(),s=c(e),o=e!==s,r=oe.has(s);let a,l=!0,h=!0,d=!1,u=null;return o&&n&&(a=n.Event(e,i),n(t).trigger(a),l=!a.isPropagationStopped(),h=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented()),r?(u=document.createEvent("HTMLEvents")).initEvent(s,l,!0):u=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach(t=>{Object.defineProperty(u,t,{get:()=>i[t]})}),d&&u.preventDefault(),h&&t.dispatchEvent(u),u.defaultPrevented&&void 0!==a&&a.preventDefault(),u}},ae=new Map,le={set(t,e,i){ae.has(t)||ae.set(t,new Map);const n=ae.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>ae.has(t)&&ae.get(t).get(e)||null,remove(t,e){if(!ae.has(t))return;const i=ae.get(t);i["delete"](e),0===i.size&&ae["delete"](t)}},ce="5.1.3";class he{constructor(t){(t=Mt(t))&&(this._element=t,le.set(this._element,this.constructor.DATA_KEY,this))}dispose(){le.remove(this._element,this.constructor.DATA_KEY),re.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,i=!0){Qt(t,e,i)}static getInstance(t){return le.get(Mt(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return ce}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const de=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;re.on(document,i,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Rt(this))return;const s=Nt(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()})},ue="alert",fe=`.${"bs.alert"}`,pe=`close${fe}`,ge=`closed${fe}`,me="fade",_e="show";class ve extends he{static get NAME(){return ue}close(){if(re.trigger(this._element,pe).defaultPrevented)return;this._element.classList.remove(_e);const t=this._element.classList.contains(me);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),re.trigger(this._element,ge),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=ve.getOrCreateInstance(this);if("string"==typeof t){if(e[t]===undefined||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}de(ve,"close"),Xt(ve);const be="button",ye="active",we='[data-bs-toggle="button"]',Ee=`click${`.${"bs.button"}`}${".data-api"}`;class Ae extends he{static get NAME(){return be}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(ye))}static jQueryInterface(t){return this.each(function(){const e=Ae.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}re.on(document,Ee,we,t=>{t.preventDefault();const e=t.target.closest(we);Ae.getOrCreateInstance(e).toggle()}),Xt(Ae);const Te={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${d(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${d(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter(t=>t.startsWith("bs")).forEach(i=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=h(t.dataset[i])}),e},getDataAttribute:(t,e)=>h(t.getAttribute(`data-bs-${d(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},Oe=3,Ce={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&n.nodeType!==Oe;)n.matches(e)&&i.push(n),n=n.parentNode;return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(", ");return this.find(e,t).filter(t=>!Rt(t)&&Bt(t))}},$e="carousel",ke=`.${"bs.carousel"}`,Le=".data-api",xe=500,De=40,Se={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Ne={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Ie="next",Pe="prev",je="left",Me="right",He={["ArrowLeft"]:Me,["ArrowRight"]:je},Be=`slide${ke}`,Re=`slid${ke}`,We=`keydown${ke}`,ze=`mouseenter${ke}`,qe=`mouseleave${ke}`,Fe=`touchstart${ke}`,Ue=`touchmove${ke}`,Ve=`touchend${ke}`,Ke=`pointerdown${ke}`,Xe=`pointerup${ke}`,Ye=`dragstart${ke}`,Qe=`load${ke}${Le}`,Ge=`click${ke}${Le}`,Ze="carousel",Je="active",ti="slide",ei="carousel-item-end",ii="carousel-item-start",ni="carousel-item-next",si="carousel-item-prev",oi="pointer-event",ri=".active",ai=".active.carousel-item",li=".carousel-item",ci=".carousel-item img",hi=".carousel-item-next, .carousel-item-prev",di=".carousel-indicators",ui="[data-bs-target]",fi="[data-bs-slide], [data-bs-slide-to]",pi='[data-bs-ride="carousel"]',gi="touch",mi="pen";class _i extends he{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=Ce.findOne(di,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Se}static get NAME(){return $e}next(){this._slide(Ie)}nextWhenVisible(){!document.hidden&&Bt(this._element)&&this.next()}prev(){this._slide(Pe)}pause(t){t||(this._isPaused=!0),Ce.findOne(hi,this._element)&&(Pt(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=Ce.findOne(ai,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void re.one(this._element,Re,()=>this.to(t));if(e===t)return this.pause(),void this.cycle();const i=t>e?Ie:Pe;this._slide(i,this._items[t])}_getConfig(t){return t={...Se,...Te.getDataAttributes(this._element),..."object"==typeof t?t:{}},Ht($e,t,Ne),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=De)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?Me:je)}_addEventListeners(){this._config.keyboard&&re.on(this._element,We,t=>this._keydown(t)),"hover"===this._config.pause&&(re.on(this._element,ze,t=>this.pause(t)),re.on(this._element,qe,t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>this._pointerEvent&&(t.pointerType===mi||t.pointerType===gi),e=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},i=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},n=e=>{t(e)&&(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(t=>this.cycle(t),xe+this._config.interval))};Ce.find(ci,this._element).forEach(t=>{re.on(t,Ye,t=>t.preventDefault())}),this._pointerEvent?(re.on(this._element,Ke,t=>e(t)),re.on(this._element,Xe,t=>n(t)),this._element.classList.add(oi)):(re.on(this._element,Fe,t=>e(t)),re.on(this._element,Ue,t=>i(t)),re.on(this._element,Ve,t=>n(t)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=He[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?Ce.find(li,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const i=t===Ie;return Gt(this._items,e,i,this._config.wrap)}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),n=this._getItemIndex(Ce.findOne(ai,this._element));return re.trigger(this._element,Be,{relatedTarget:t,direction:e,from:n,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=Ce.findOne(ri,this._indicatorsElement);e.classList.remove(Je),e.removeAttribute("aria-current");const i=Ce.find(ui,this._indicatorsElement);for(let e=0;e{re.trigger(this._element,Re,{relatedTarget:o,direction:d,from:s,to:r})};if(this._element.classList.contains(ti)){o.classList.add(h),qt(o),n.classList.add(c),o.classList.add(c);const t=()=>{o.classList.remove(c,h),o.classList.add(Je),n.classList.remove(Je,h,c),this._isSliding=!1,setTimeout(u,0)};this._queueCallback(t,n,!0)}else n.classList.remove(Je),o.classList.add(Je),this._isSliding=!1,u();a&&this.cycle()}_directionToOrder(t){return[Me,je].includes(t)?Kt()?t===je?Pe:Ie:t===je?Ie:Pe:t}_orderToDirection(t){return[Ie,Pe].includes(t)?Kt()?t===Pe?je:Me:t===Pe?Me:je:t}static carouselInterface(t,e){const i=_i.getOrCreateInstance(t,e);let{_config:n}=i;"object"==typeof e&&(n={...n,...e});const s="string"==typeof e?e:n.slide;if("number"==typeof e)i.to(e);else if("string"==typeof s){if("undefined"==typeof i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(t){return this.each(function(){_i.carouselInterface(this,t)})}static dataApiClickHandler(t){const e=Nt(this);if(!e||!e.classList.contains(Ze))return;const i={...Te.getDataAttributes(e),...Te.getDataAttributes(this)},n=this.getAttribute("data-bs-slide-to");n&&(i.interval=!1),_i.carouselInterface(e,i),n&&_i.getInstance(e).to(n),t.preventDefault()}}re.on(document,Ge,fi,_i.dataApiClickHandler),re.on(window,Qe,()=>{const t=Ce.find(pi);for(let e=0,i=t.length;et===this._element);null!==n&&s.length&&(this._selector=n,this._triggerArray.push(e))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return wi}static get NAME(){return vi}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t,e=[];if(this._config.parent){const t=Ce.find(Si,this._config.parent);e=Ce.find(ji,this._config.parent).filter(e=>!t.includes(e))}const i=Ce.findOne(this._selector);if(e.length){const n=e.find(t=>i!==t);if((t=n?Hi.getInstance(n):null)&&t._isTransitioning)return}if(re.trigger(this._element,Ai).defaultPrevented)return;e.forEach(e=>{i!==e&&Hi.getOrCreateInstance(e,{toggle:!1}).hide(),t||le.set(e,bi,null)});const n=this._getDimension();this._element.classList.remove(Li),this._element.classList.add(xi),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(xi),this._element.classList.add(Li,ki),this._element.style[n]="",re.trigger(this._element,Ti)},o=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(s,this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(re.trigger(this._element,Oi).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,qt(this._element),this._element.classList.add(xi),this._element.classList.remove(Li,ki);const e=this._triggerArray.length;for(let t=0;t{this._isTransitioning=!1,this._element.classList.remove(xi),this._element.classList.add(Li),re.trigger(this._element,Ci)};this._element.style[t]="",this._queueCallback(i,this._element,!0)}_isShown(t=this._element){return t.classList.contains(ki)}_getConfig(t){return(t={...wi,...Te.getDataAttributes(this._element),...t}).toggle=Boolean(t.toggle),t.parent=Mt(t.parent),Ht(vi,t,Ei),t}_getDimension(){return this._element.classList.contains(Ni)?Ii:Pi}_initializeChildren(){if(!this._config.parent)return;const t=Ce.find(Si,this._config.parent);Ce.find(Mi,this._config.parent).filter(e=>!t.includes(e)).forEach(t=>{const e=Nt(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))})}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach(t=>{e?t.classList.remove(Di):t.classList.add(Di),t.setAttribute("aria-expanded",e)})}static jQueryInterface(t){return this.each(function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const i=Hi.getOrCreateInstance(this,e);if("string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}re.on(document,$i,Mi,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=St(this);Ce.find(e).forEach(t=>{Hi.getOrCreateInstance(t,{toggle:!1}).toggle()})}),Xt(Hi);var Bi="top",Ri="bottom",Wi="right",zi="left",qi="auto",Fi=[Bi,Ri,Wi,zi],Ui="start",Vi="end",Ki="clippingParents",Xi="viewport",Yi="popper",Qi="reference",Gi=Fi.reduce(function(t,e){return t.concat([e+"-"+Ui,e+"-"+Vi])},[]),Zi=[].concat(Fi,[qi]).reduce(function(t,e){return t.concat([e,e+"-"+Ui,e+"-"+Vi])},[]),Ji="beforeRead",tn="read",en="afterRead",nn="beforeMain",sn="main",on="afterMain",rn="beforeWrite",an="write",ln="afterWrite",cn=[Ji,tn,en,nn,sn,on,rn,an,ln];const hn={name:"applyStyles",enabled:!0,phase:"write",fn:_,effect:v,requires:["computeStyles"]};var dn=Math.max,un=Math.min,fn=Math.round,pn=function(t,e){return N("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:I(t,Fi))};const gn={name:"arrow",enabled:!0,phase:"main",fn:P,effect:j,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var mn={top:"auto",right:"auto",bottom:"auto",left:"auto"};const _n={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:R,data:{}};var vn={passive:!0};const bn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:W,data:{}};var yn={left:"right",right:"left",bottom:"top",top:"bottom"},wn={start:"end",end:"start"};const En={name:"flip",enabled:!0,phase:"main",fn:rt,requiresIfExists:["offset"],data:{_skip:!1}},An={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ct},Tn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dt},On={name:"popperOffsets",enabled:!0,phase:"read",fn:ut,data:{}},Cn={name:"preventOverflow",enabled:!0,phase:"main",fn:pt,requiresIfExists:["offset"]};var $n={placement:"bottom",modifiers:[],strategy:"absolute"},kn=Tt(),Ln=Tt({defaultModifiers:[bn,On,_n,hn]}),xn=Tt({defaultModifiers:[bn,On,_n,hn,Tn,En,Cn,gn,An]});const Dn=Object.freeze({__proto__:null,popperGenerator:Tt,detectOverflow:nt,createPopperBase:kn,createPopper:xn,createPopperLite:Ln,top:Bi,bottom:Ri,right:Wi,left:zi,auto:qi,basePlacements:Fi,start:Ui,end:Vi,clippingParents:Ki,viewport:Xi,popper:Yi,reference:Qi,variationPlacements:Gi,placements:Zi,beforeRead:Ji,read:tn,afterRead:en,beforeMain:nn,main:sn,afterMain:on,beforeWrite:rn,write:an,afterWrite:ln,modifierPhases:cn,applyStyles:hn,arrow:gn,computeStyles:_n,eventListeners:bn,flip:En,hide:An,offset:Tn,popperOffsets:On,preventOverflow:Cn}),Sn="dropdown",Nn=`.${"bs.dropdown"}`,In=".data-api",Pn="Escape",jn="Space",Mn="Tab",Hn="ArrowUp",Bn="ArrowDown",Rn=2,Wn=new RegExp(`${Hn}|${Bn}|${Pn}`),zn=`hide${Nn}`,qn=`hidden${Nn}`,Fn=`show${Nn}`,Un=`shown${Nn}`,Vn=`click${Nn}${In}`,Kn=`keydown${Nn}${In}`,Xn=`keyup${Nn}${In}`,Yn="show",Qn="dropup",Gn="dropend",Zn="dropstart",Jn="navbar",ts='[data-bs-toggle="dropdown"]',es=".dropdown-menu",is=".navbar-nav",ns=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ss=Kt()?"top-end":"top-start",os=Kt()?"top-start":"top-end",rs=Kt()?"bottom-end":"bottom-start",as=Kt()?"bottom-start":"bottom-end",ls=Kt()?"left-start":"right-start",cs=Kt()?"right-start":"left-start",hs={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},ds={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class us extends he{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return hs}static get DefaultType(){return ds}static get NAME(){return Sn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Rt(this._element)||this._isShown(this._menu))return;const t={relatedTarget:this._element};if(re.trigger(this._element,Fn,t).defaultPrevented)return;const e=us.getParentFromElement(this._element);this._inNavbar?Te.setDataAttribute(this._menu,"popper","none"):this._createPopper(e),"ontouchstart"in document.documentElement&&!e.closest(is)&&[].concat(...document.body.children).forEach(t=>re.on(t,"mouseover",zt)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Yn),this._element.classList.add(Yn),re.trigger(this._element,Un,t)}hide(){if(Rt(this._element)||!this._isShown(this._menu))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){re.trigger(this._element,zn,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>re.off(t,"mouseover",zt)),this._popper&&this._popper.destroy(),this._menu.classList.remove(Yn),this._element.classList.remove(Yn),this._element.setAttribute("aria-expanded","false"),Te.removeDataAttribute(this._menu,"popper"),re.trigger(this._element,qn,t))}_getConfig(t){if(t={...this.constructor.Default,...Te.getDataAttributes(this._element),...t},Ht(Sn,t,this.constructor.DefaultType),"object"==typeof t.reference&&!jt(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Sn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(void 0===Dn)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:jt(this._config.reference)?e=Mt(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find(t=>"applyStyles"===t.name&&!1===t.enabled);this._popper=xn(e,this._menu,i),n&&Te.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(Yn)}_getMenuElement(){return Ce.next(this._element,es)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains(Gn))return ls;if(t.classList.contains(Zn))return cs;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains(Qn)?e?os:ss:e?as:rs}_detectNavbar(){return null!==this._element.closest(`.${Jn}`)}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=Ce.find(ns,this._menu).filter(Bt);i.length&&Gt(i,e,t===Bn,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=us.getOrCreateInstance(this,t);if("string"==typeof t){if("undefined"==typeof e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t&&(t.button===Rn||"keyup"===t.type&&t.key!==Mn))return;const e=Ce.find(ts);for(let i=0,n=e.length;ie+t),this._setElementAttributes(fs,"paddingRight",e=>e+t),this._setElementAttributes(ps,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth(),s=t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t)[e];t.style[e]=`${i(Number.parseFloat(s))}px`};this._applyManipulationCallback(t,s)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(fs,"paddingRight"),this._resetElementAttributes(ps,"marginRight")}_saveInitialAttribute(t,e){const i=t.style[e];i&&Te.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){const i=t=>{const i=Te.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(Te.removeDataAttribute(t,e),t.style[e]=i)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){jt(t)?e(t):Ce.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const ms={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},_s={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},vs="backdrop",bs="fade",ys="show",ws=`mousedown.bs.${vs}`;class Es{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&qt(this._getElement()),this._getElement().classList.add(ys),this._emulateAnimation(()=>{Yt(t)})):Yt(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(ys),this._emulateAnimation(()=>{this.dispose(),Yt(t)})):Yt(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(bs),this._element=t}return this._element}_getConfig(t){return(t={...ms,..."object"==typeof t?t:{}}).rootElement=Mt(t.rootElement),Ht(vs,t,_s),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),re.on(this._getElement(),ws,()=>{Yt(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(re.off(this._element,ws),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){Qt(t,this._getElement(),this._config.isAnimated)}}const As={trapElement:null,autofocus:!0},Ts={trapElement:"element",autofocus:"boolean"},Os="focustrap",Cs=`.${"bs.focustrap"}`,$s=`focusin${Cs}`,ks=`keydown.tab${Cs}`,Ls="Tab",xs="forward",Ds="backward";class Ss{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),re.off(document,Cs),re.on(document,$s,t=>this._handleFocusin(t)),re.on(document,ks,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,re.off(document,Cs))}_handleFocusin(t){const{target:e}=t,{trapElement:i}=this._config;if(e===document||e===i||i.contains(e))return;const n=Ce.focusableChildren(i);0===n.length?i.focus():this._lastTabNavDirection===Ds?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===Ls&&(this._lastTabNavDirection=t.shiftKey?Ds:xs)}_getConfig(t){return t={...As,..."object"==typeof t?t:{}},Ht(Os,t,Ts),t}}const Ns="modal",Is=`.${"bs.modal"}`,Ps="Escape",js={backdrop:!0,keyboard:!0,focus:!0},Ms={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Hs=`hide${Is}`,Bs=`hidePrevented${Is}`,Rs=`hidden${Is}`,Ws=`show${Is}`,zs=`shown${Is}`,qs=`resize${Is}`,Fs=`click.dismiss${Is}`,Us=`keydown.dismiss${Is}`,Vs=`mouseup.dismiss${Is}`,Ks=`mousedown.dismiss${Is}`,Xs=`click${Is}${".data-api"}`,Ys="modal-open",Qs="fade",Gs="show",Zs="modal-static",Js=".modal.show",to=".modal-dialog",eo=".modal-body",io='[data-bs-toggle="modal"]';class no extends he{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=Ce.findOne(to,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new gs}static get Default(){return js}static get NAME(){return Ns}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;re.trigger(this._element,Ws,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Ys),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),re.on(this._dialog,Ks,()=>{re.one(this._element,Vs,t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;if(re.trigger(this._element,Hs).defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(Gs),re.off(this._element,Fs),re.off(this._dialog,Ks),this._queueCallback(()=>this._hideModal(),this._element,t)}dispose(){[window,this._dialog].forEach(t=>re.off(t,Is)),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Es({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ss({trapElement:this._element})}_getConfig(t){return t={...js,...Te.getDataAttributes(this._element),..."object"==typeof t?t:{}},Ht(Ns,t,Ms),t}_showElement(t){const e=this._isAnimated(),i=Ce.findOne(eo,this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||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,i&&(i.scrollTop=0),e&&qt(this._element),this._element.classList.add(Gs);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,re.trigger(this._element,zs,{relatedTarget:t})};this._queueCallback(n,this._dialog,e)}_setEscapeEvent(){this._isShown?re.on(this._element,Us,t=>{this._config.keyboard&&t.key===Ps?(t.preventDefault(),this.hide()):this._config.keyboard||t.key!==Ps||this._triggerBackdropTransition()}):re.off(this._element,Us)}_setResizeEvent(){this._isShown?re.on(window,qs,()=>this._adjustDialog()):re.off(window,qs)}_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(Ys),this._resetAdjustments(),this._scrollBar.reset(),re.trigger(this._element,Rs)})}_showBackdrop(t){re.on(this._element,Fs,t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains(Qs)}_triggerBackdropTransition(){if(re.trigger(this._element,Bs).defaultPrevented)return;const{classList:t,scrollHeight:e,style:i}=this._element,n=e>document.documentElement.clientHeight;!n&&"hidden"===i.overflowY||t.contains(Zs)||(n||(i.overflowY="hidden"),t.add(Zs),this._queueCallback(()=>{t.remove(Zs),n||this._queueCallback(()=>{i.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;(!i&&t&&!Kt()||i&&!t&&Kt())&&(this._element.style.paddingLeft=`${e}px`),(i&&!t&&!Kt()||!i&&t&&Kt())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=no.getOrCreateInstance(this,t);if("string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}})}}re.on(document,Xs,io,function(t){const e=Nt(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),re.one(e,Ws,t=>{t.defaultPrevented||re.one(e,Rs,()=>{Bt(this)&&this.focus()})});const i=Ce.findOne(Js);i&&no.getInstance(i).hide(),no.getOrCreateInstance(e).toggle(this)}),de(no),Xt(no);const so="offcanvas",oo=`.${"bs.offcanvas"}`,ro=".data-api",ao=`load${oo}${ro}`,lo="Escape",co={backdrop:!0,keyboard:!0,scroll:!1},ho={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},uo="show",fo="offcanvas-backdrop",po=".offcanvas.show",go=`show${oo}`,mo=`shown${oo}`,_o=`hide${oo}`,vo=`hidden${oo}`,bo=`click${oo}${ro}`,yo=`keydown.dismiss${oo}`,wo='[data-bs-toggle="offcanvas"]';class Eo extends he{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return so}static get Default(){return co}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(re.trigger(this._element,go,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new gs).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(uo);const e=()=>{this._config.scroll||this._focustrap.activate(),re.trigger(this._element,mo,{relatedTarget:t})};this._queueCallback(e,this._element,!0)}hide(){if(!this._isShown)return;if(re.trigger(this._element,_o).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(uo),this._backdrop.hide();const t=()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new gs).reset(),re.trigger(this._element,vo)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t={...co,...Te.getDataAttributes(this._element),..."object"==typeof t?t:{}},Ht(so,t,ho),t}_initializeBackDrop(){return new Es({className:fo,isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Ss({trapElement:this._element})}_addEventListeners(){re.on(this._element,yo,t=>{this._config.keyboard&&t.key===lo&&this.hide()})}static jQueryInterface(t){return this.each(function(){const e=Eo.getOrCreateInstance(this,t);if("string"==typeof t){if(e[t]===undefined||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}re.on(document,bo,wo,function(t){const e=Nt(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Rt(this))return;re.one(e,vo,()=>{Bt(this)&&this.focus()});const i=Ce.findOne(po);i&&i!==e&&Eo.getInstance(i).hide(),Eo.getOrCreateInstance(e).toggle(this)}),re.on(window,ao,()=>Ce.find(po).forEach(t=>Eo.getOrCreateInstance(t).show())),de(Eo),Xt(Eo);const Ao=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),To=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Oo=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Co=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i))return!Ao.has(i)||Boolean(To.test(t.nodeValue)||Oo.test(t.nodeValue));const n=e.filter(t=>t instanceof RegExp);for(let t=0,e=n.length;t
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:$o,popperConfig:null},Po={HIDE:`hide${Lo}`,HIDDEN:`hidden${Lo}`,SHOW:`show${Lo}`,SHOWN:`shown${Lo}`,INSERTED:`inserted${Lo}`,CLICK:`click${Lo}`,FOCUSIN:`focusin${Lo}`,FOCUSOUT:`focusout${Lo}`,MOUSEENTER:`mouseenter${Lo}`,MOUSELEAVE:`mouseleave${Lo}`},jo="fade",Mo="show",Ho="show",Bo="out",Ro=".tooltip-inner",Wo=`.${"modal"}`,zo="hide.bs.modal",qo="hover",Fo="focus",Uo="click",Vo="manual";class Ko extends he{constructor(t,e){if(void 0===Dn)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Io}static get NAME(){return ko}static get Event(){return Po}static get DefaultType(){return So}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(Mo))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),re.off(this._element.closest(Wo),zo,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=re.trigger(this._element,this.constructor.Event.SHOW),e=Wt(this._element),i=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(Ro).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const n=this.getTipElement(),s=xt(this.constructor.NAME);n.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this._config.animation&&n.classList.add(jo);const o="function"==typeof this._config.placement?this._config.placement.call(this,n,this._element):this._config.placement,r=this._getAttachment(o);this._addAttachmentClass(r);const{container:a}=this._config;le.set(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(n),re.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=xn(this._element,n,this._getPopperConfig(r)),n.classList.add(Mo);const l=this._resolvePossibleFunction(this._config.customClass);l&&n.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>{re.on(t,"mouseover",zt)});const c=()=>{const t=this._hoverState;this._hoverState=null,re.trigger(this._element,this.constructor.Event.SHOWN),t===Bo&&this._leave(null,this)},h=this.tip.classList.contains(jo);this._queueCallback(c,this.tip,h)}hide(){if(!this._popper)return;const t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||(this._hoverState!==Ho&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),re.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())};if(re.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(Mo),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>re.off(t,"mouseover",zt)),this._activeTrigger[Uo]=!1,this._activeTrigger[Fo]=!1,this._activeTrigger[qo]=!1;const i=this.tip.classList.contains(jo);this._queueCallback(e,this.tip,i),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(jo,Mo),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),Ro)}_sanitizeAndSetContent(t,e,i){const n=Ce.findOne(i,t);e||!n?this.setElementContent(n,e):n.remove()}setElementContent(t,e){if(null!==t)return jt(e)?(e=Mt(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Ot(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t }_getPopperConfig(t){const e={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:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return No[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(t=>{if("click"===t)re.on(this._element,this.constructor.Event.CLICK,this._config.selector,t=>this.toggle(t));else if(t!==Vo){const e=t===qo?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=t===qo?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;re.on(this._element,e,this._config.selector,t=>this._enter(t)),re.on(this._element,i,this._config.selector,t=>this._leave(t))}}),this._hideModalHandler=(()=>{this._element&&this.hide()}),re.on(this._element.closest(Wo),zo,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?Fo:qo]=!0),e.getTipElement().classList.contains(Mo)||e._hoverState===Ho?e._hoverState=Ho:(clearTimeout(e._timeout),e._hoverState=Ho,e._config.delay&&e._config.delay.show?e._timeout=setTimeout(()=>{e._hoverState===Ho&&e.show()},e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?Fo:qo]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Bo,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout(()=>{e._hoverState===Bo&&e.hide()},e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=Te.getDataAttributes(this._element);return Object.keys(e).forEach(t=>{Do.has(t)&&delete e[t]}),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:Mt(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),Ht(ko,t,this.constructor.DefaultType),t.sanitize&&(t.template=Ot(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=t.getAttribute("class").match(e);null!==i&&i.length>0&&i.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}_getBasicClassPrefix(){return xo}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){const e=Ko.getOrCreateInstance(this,t);if("string"==typeof t){if("undefined"==typeof e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}Xt(Ko);const Xo="popover",Yo=`.${"bs.popover"}`,Qo="bs-popover",Go={...Ko.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},Zo={...Ko.DefaultType,content:"(string|element|function)"},Jo={HIDE:`hide${Yo}`,HIDDEN:`hidden${Yo}`,SHOW:`show${Yo}`,SHOWN:`shown${Yo}`,INSERTED:`inserted${Yo}`,CLICK:`click${Yo}`,FOCUSIN:`focusin${Yo}`,FOCUSOUT:`focusout${Yo}`,MOUSEENTER:`mouseenter${Yo}`,MOUSELEAVE:`mouseleave${Yo}`},tr=".popover-header",er=".popover-body";class ir extends Ko{static get Default(){return Go}static get NAME(){return Xo}static get Event(){return Jo}static get DefaultType(){return Zo}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),tr),this._sanitizeAndSetContent(t,this._getContent(),er)}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return Qo}static jQueryInterface(t){return this.each(function(){const e=ir.getOrCreateInstance(this,t);if("string"==typeof t){if("undefined"==typeof e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}Xt(ir);const nr="scrollspy",sr=`.${"bs.scrollspy"}`,or={offset:10,method:"auto",target:""},rr={offset:"number",method:"string",target:"(string|element)"},ar=`activate${sr}`,lr=`scroll${sr}`,cr=`load${sr}${".data-api"}`,hr="dropdown-item",dr="active",ur='[data-bs-spy="scroll"]',fr=".nav, .list-group",pr=".nav-link",gr=".nav-item",mr=".list-group-item",_r=`${pr}, ${mr}, .${hr}`,vr=".dropdown",br=".dropdown-toggle",yr="offset",wr="position";class Er extends he{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,re.on(this._scrollElement,lr,()=>this._process()),this.refresh(),this._process()}static get Default(){return or}static get NAME(){return nr}refresh(){const t=this._scrollElement===this._scrollElement.window?yr:wr,e="auto"===this._config.method?t:this._config.method,i=e===wr?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Ce.find(_r,this._config.target).map(t=>{const n=St(t),s=n?Ce.findOne(n):null;if(s){const t=s.getBoundingClientRect();if(t.width||t.height)return[Te[e](s).top+i,n]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){re.off(this._scrollElement,sr),super.dispose()}_getConfig(t){return(t={...or,...Te.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target=Mt(t.target)||document.documentElement,Ht(nr,t,rr),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&("undefined"==typeof this._offsets[e+1]||t`${e}[data-bs-target="${t}"],${e}[href="${t}"]`),i=Ce.findOne(e.join(","),this._config.target);i.classList.add(dr),i.classList.contains(hr)?Ce.findOne(br,i.closest(vr)).classList.add(dr):Ce.parents(i,fr).forEach(t=>{Ce.prev(t,`${pr}, ${mr}`).forEach(t=>t.classList.add(dr)),Ce.prev(t,gr).forEach(t=>{Ce.children(t,pr).forEach(t=>t.classList.add(dr))})}),re.trigger(this._scrollElement,ar,{relatedTarget:t})}_clear(){Ce.find(_r,this._config.target).filter(t=>t.classList.contains(dr)).forEach(t=>t.classList.remove(dr))}static jQueryInterface(t){return this.each(function(){const e=Er.getOrCreateInstance(this,t);if("string"==typeof t){if("undefined"==typeof e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}re.on(window,cr,()=>{Ce.find(ur).forEach(t=>new Er(t))}),Xt(Er);const Ar="tab",Tr=`.${"bs.tab"}`,Or=`hide${Tr}`,Cr=`hidden${Tr}`,$r=`show${Tr}`,kr=`shown${Tr}`,Lr=`click${Tr}${".data-api"}`,xr="dropdown-menu",Dr="active",Sr="fade",Nr="show",Ir=".dropdown",Pr=".nav, .list-group",jr=".active",Mr=":scope > li > .active",Hr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Br=".dropdown-toggle",Rr=":scope > .dropdown-menu .active";class Wr extends he{static get NAME(){return Ar}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Dr))return;let t;const e=Nt(this._element),i=this._element.closest(Pr);if(i){const e="UL"===i.nodeName||"OL"===i.nodeName?Mr:jr;t=(t=Ce.find(e,i))[t.length-1]}const n=t?re.trigger(t,Or,{relatedTarget:this._element}):null;if(re.trigger(this._element,$r,{relatedTarget:t}).defaultPrevented||null!==n&&n.defaultPrevented)return;this._activate(this._element,i);const s=()=>{re.trigger(t,Cr,{relatedTarget:this._element}),re.trigger(this._element,kr,{relatedTarget:t})};e?this._activate(e,e.parentNode,s):s()}_activate(t,e,i){const n=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?Ce.children(e,jr):Ce.find(Mr,e))[0],s=i&&n&&n.classList.contains(Sr),o=()=>this._transitionComplete(t,n,i);n&&s?(n.classList.remove(Nr),this._queueCallback(o,t,!0)):o()}_transitionComplete(t,e,i){if(e){e.classList.remove(Dr);const t=Ce.findOne(Rr,e.parentNode);t&&t.classList.remove(Dr),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(Dr),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),qt(t),t.classList.contains(Sr)&&t.classList.add(Nr);let n=t.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains(xr)){const e=t.closest(Ir);e&&Ce.find(Br,e).forEach(t=>t.classList.add(Dr)),t.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each(function(){const e=Wr.getOrCreateInstance(this);if("string"==typeof t){if("undefined"==typeof e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}re.on(document,Lr,Hr,function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Rt(this))return;Wr.getOrCreateInstance(this).show()}),Xt(Wr);const zr="toast",qr=`.${"bs.toast"}`,Fr=`mouseover${qr}`,Ur=`mouseout${qr}`,Vr=`focusin${qr}`,Kr=`focusout${qr}`,Xr=`hide${qr}`,Yr=`hidden${qr}`,Qr=`show${qr}`,Gr=`shown${qr}`,Zr="fade",Jr="hide",ta="show",ea="showing",ia={animation:"boolean",autohide:"boolean",delay:"number"},na={animation:!0,autohide:!0,delay:5e3};class sa extends he{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return ia}static get Default(){return na}static get NAME(){return zr}show(){if(re.trigger(this._element,Qr).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Zr);const t=()=>{this._element.classList.remove(ea),re.trigger(this._element,Gr),this._maybeScheduleHide()};this._element.classList.remove(Jr),qt(this._element),this._element.classList.add(ta),this._element.classList.add(ea),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this._element.classList.contains(ta))return;if(re.trigger(this._element,Xr).defaultPrevented)return;const t=()=>{this._element.classList.add(Jr),this._element.classList.remove(ea),this._element.classList.remove(ta),re.trigger(this._element,Yr)};this._element.classList.add(ea),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(ta)&&this._element.classList.remove(ta),super.dispose()}_getConfig(t){return t={...na,...Te.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},Ht(zr,t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){re.on(this._element,Fr,t=>this._onInteraction(t,!0)),re.on(this._element,Ur,t=>this._onInteraction(t,!1)),re.on(this._element,Vr,t=>this._onInteraction(t,!0)),re.on(this._element,Kr,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=sa.getOrCreateInstance(this,t);if("string"==typeof t){if("undefined"==typeof e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return de(sa),Xt(sa),{Alert:ve,Button:Ae,Carousel:_i,Collapse:Hi,Dropdown:us,Modal:no,Offcanvas:Eo,Popover:ir,ScrollSpy:Er,Tab:Wr,Toast:sa,Tooltip:Ko}}); // decko_modal.js.coffee (function(){decko.slot.ready(function(t){return t.find(".modal.fade").on("loaded.bs.modal",function(){return $(this).trigger("decko.slot.ready")}),t.find("[data-toggle='modal']").off("click").on("click",function(t){var o,e,r;return t.preventDefault(),t.stopPropagation(),e=(o=$(this)).attr("href"),r=o.data("target"),$(r).modal("show"),$.ajax({url:e,type:"GET",success:function(t){return $(r+" .modal-content").html(t),$(r).trigger("loaded.bs.modal")},error:function(t){return $(r+" .modal-content").html(t.responseText),$(r).trigger("loaded.bs.modal")}}),!1})})}).call(this); // decko_popover.js.coffee (function(){$(window).ready(function(){return $("body").on("show.bs.popover","._card-menu-popover",function(){return $(this).closest(".card-menu._show-on-hover").removeClass("_show-on-hover").addClass("_show-on-hover-disabled")}),$("body").on("hide.bs.popover","._card-menu-popover",function(){return $(this).closest(".card-menu._show-on-hover-disabled").removeClass("_show-on-hover-disabled").addClass("_show-on-hover")})}),decko.slot.ready(function(o){return o.find('[data-tooltip="true"]').tooltip(),o.find('[data-bs-toggle="popover"]').popover({html:!0})})}).call(this); // script_load_select2.js.coffee (function(){$.fn.select2.defaults.set("theme","bootstrap-5"),decko.slot.ready(function(e){return e.find("select:not(._no-select2):not(._no-select2-init)").each(function(){return decko.initSelect2($(this))})}),decko.slot.destroy(function(e){return e.find("select:not(._no-select2)").each(function(){return $(this).deInitSelect2()})}),$.extend(decko,{initSelect2:function(e){var t,n,i,c,o;if(0!==e.length){if(e.length>1){for(c=[],t=0,n=e.length;t0?decko.uniqSelect2Id(e+"1"):e}}),$(window).ready(function(){return $("body").on("select2:select","._go-to-selected",function(){var e;if(""!==(e=$(this).val()))return window.location=decko.path(escape(e))}),$("body").on("select2:select","._submit-on-select",function(e){return $(e.target).closest("form").submit()})}),$.fn.extend({cloneSelect2:function(e,t){var n,i;return(i=this.is("select")?this:this.find("select")).deInitSelect2(),n=this.clone(e,t),decko.initSelect2(i),n.is("select")?decko.initSelect2(n):decko.initSelect2(n.find("select")),n},deInitSelect2:function(){if(this.attr("data-select2-id"))return this.select2("destroy"),this.removeAttr("data-select2-id"),this.find("option").removeAttr("data-select2-id")}})}).call(this); // bootstrap-colorpicker.min.js /*! * Bootstrap Colorpicker v2.5.2 * https://itsjavi.com/bootstrap-colorpicker/ */ !function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.colorpicker&&e(jQuery)}(0,function(t){"use strict";var e=function(o,i,r,s,a){this.fallbackValue=r?"string"==typeof r?this.parse(r):r:null,this.fallbackFormat=s||"rgba",this.hexNumberSignPrefix=!0===a,this.value=this.fallbackValue,this.origFormat=null,this.predefinedColors=i||{},this.colors=t.extend({},e.webColors,this.predefinedColors),o&&("undefined"!=typeof o.h?this.value=o:this.setColor(String(o))),this.value||(this.value={h:0,s:0,b:0,a:1})};e.webColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32",transparent:"transparent"},e.prototype={constructor:e,colors:{},predefinedColors:{},getValue:function(){return this.value},setValue:function(t){this.value=t},_sanitizeNumber:function(t){return"number"==typeof t?t:isNaN(t)||null===t||""===t||void 0===t?1:""===t?0:"undefined"!=typeof t.toLowerCase?(t.match(/^\./)&&(t="0"+t),Math.ceil(100*parseFloat(t))/100):1},isTransparent:function(t){return!(!t||!("string"==typeof t||t instanceof String))&&("transparent"===(t=t.toLowerCase().trim())||t.match(/#?00000000/)||t.match(/(rgba|hsla)\(0,0,0,0?\.?0\)/))},rgbaIsTransparent:function(t){return 0===t.r&&0===t.g&&0===t.b&&0===t.a},setColor:function(t){if(t=t.toLowerCase().trim()){if(this.isTransparent(t))return this.value={h:0,s:0,b:0,a:0},!0;var e=this.parse(t);e?(this.value=this.value={h:e.h,s:e.s,b:e.b,a:e.a},this.origFormat||(this.origFormat=e.format)):this.fallbackValue&&(this.value=this.fallbackValue)}return!1},setHue:function(t){this.value.h=1-t},setSaturation:function(t){this.value.s=t},setBrightness:function(t){this.value.b=1-t},setAlpha:function(t){this.value.a=Math.round(parseInt(100*(1-t),10)/100*100)/100},toRGB:function(t,e,o,i){var r,s,a,n,l;return 0===arguments.length&&(t=this.value.h,e=this.value.s,o=this.value.b,i=this.value.a),t=(t*=360)%360/60,r=s=a=o-(l=o*e),r+=[l,n=l*(1-Math.abs(t%2-1)),0,0,n,l][t=~~t],s+=[n,l,l,n,0,0][t],a+=[0,0,n,l,l,n][t],{r:Math.round(255*r),g:Math.round(255*s),b:Math.round(255*a),a:i}},toHex:function(t,e,o,i,r){arguments.length<=1&&(e=this.value.h,o=this.value.s,i=this.value.b,r=this.value.a);var s="#",a=this.toRGB(e,o,i,r);return this.rgbaIsTransparent(a)?"transparent":(t||(s=this.hexNumberSignPrefix?"#":""),s+((1<<24)+(parseInt(a.r)<<16)+(parseInt(a.g)<<8)+parseInt(a.b)).toString(16).slice(1))},toHSL:function(t,e,o,i){0===arguments.length&&(t=this.value.h,e=this.value.s,o=this.value.b,i=this.value.a);var r=t,s=(2-e)*o,a=e*o;return a/=s>0&&s<=1?s:2-s,s/=2,a>1&&(a=1),{h:isNaN(r)?0:r,s:isNaN(a)?0:a,l:isNaN(s)?0:s,a:isNaN(i)?0:i}},toAlias:function(t,e,o,i){var r,s=0===arguments.length?this.toHex(!0):this.toHex(!0,t,e,o,i),a="alias"===this.origFormat?s:this.toString(!1,this.origFormat);for(var n in this.colors)if((r=this.colors[n].toLowerCase().trim())===s||r===a)return n;return!1},RGBtoHSB:function(t,e,o,i){var r,s,a,n;return t/=255,e/=255,o/=255,r=((r=0===(n=(a=Math.max(t,e,o))-Math.min(t,e,o))?null:a===t?(e-o)/n:a===e?(o-t)/n+2:(t-e)/n+4)+360)%6*60/360,s=0===n?0:n/a,{h:this._sanitizeNumber(r),s:s,b:a,a:this._sanitizeNumber(i)}},HueToRGB:function(t,e,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?t+(e-t)*o*6:2*o<1?e:3*o<2?t+(e-t)*(2/3-o)*6:t},HSLtoRGB:function(t,e,o,i){var r;e<0&&(e=0);var s=2*o-(r=o<=.5?o*(1+e):o+e-o*e),a=t+1/3,n=t,l=t-1/3;return[Math.round(255*this.HueToRGB(s,r,a)),Math.round(255*this.HueToRGB(s,r,n)),Math.round(255*this.HueToRGB(s,r,l)),this._sanitizeNumber(i)]},parse:function(e){if("string"!=typeof e)return this.fallbackValue;if(0===arguments.length)return!1;var o,i,r=this,s=!1,a="undefined"!=typeof this.colors[e];return a&&(e=this.colors[e].toLowerCase().trim()),t.each(this.stringParsers,function(t,n){var l=n.re.exec(e);return!(o=l&&n.parse.apply(r,[l]))||(s={},i=a?"alias":n.format?n.format:r.getValidFallbackFormat(),(s=i.match(/hsla?/)?r.RGBtoHSB.apply(r,r.HSLtoRGB.apply(r,o)):r.RGBtoHSB.apply(r,o))instanceof Object&&(s.format=i),!1)}),s},getValidFallbackFormat:function(){var t=["rgba","rgb","hex","hsla","hsl"];return this.origFormat&&-1!==t.indexOf(this.origFormat)?this.origFormat:this.fallbackFormat&&-1!==t.indexOf(this.fallbackFormat)?this.fallbackFormat:"rgba"},toString:function(t,o,i){i=i||!1;var r=!1;switch(o=o||this.origFormat||this.fallbackFormat){case"rgb":return r=this.toRGB(),this.rgbaIsTransparent(r)?"transparent":"rgb("+r.r+","+r.g+","+r.b+")";case"rgba":return"rgba("+(r=this.toRGB()).r+","+r.g+","+r.b+","+r.a+")";case"hsl":return r=this.toHSL(),"hsl("+Math.round(360*r.h)+","+Math.round(100*r.s)+"%,"+Math.round(100*r.l)+"%)";case"hsla":return r=this.toHSL(),"hsla("+Math.round(360*r.h)+","+Math.round(100*r.s)+"%,"+Math.round(100*r.l)+"%,"+r.a+")";case"hex":return this.toHex(t);case"alias":return!1===(r=this.toAlias())?this.toString(t,this.getValidFallbackFormat()):i&&!(r in e.webColors)&&r in this.predefinedColors?this.predefinedColors[r]:r;default:return r}},stringParsers:[{re:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*?\)/,format:"rgb",parse:function(t){return[t[1],t[2],t[3],1]}},{re:/rgb\(\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*?\)/,format:"rgb",parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],1]}},{re:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba\(\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/hsl\(\s*(\d*(?:\.\d+)?)\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*?\)/,format:"hsl",parse:function(t){return[t[1]/360,t[2]/100,t[3]/100,t[4]]}},{re:/hsla\(\s*(\d*(?:\.\d+)?)\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"hsla",parse:function(t){return[t[1]/360,t[2]/100,t[3]/100,t[4]]}},{re:/#?([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,format:"hex",parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1]}},{re:/#?([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,format:"hex",parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),1]}}],colorNameToHex:function(t){return"undefined"!=typeof this.colors[t.toLowerCase()]&&this.colors[t.toLowerCase()]}};var o={horizontal:!1,inline:!1,color:!1,format:!1,input:"input",container:!1,component:".add-on, .input-group-addon",fallbackColor:!1,fallbackFormat:"hex",hexNumberSignPrefix:!0,sliders:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setHue"},alpha:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setAlpha"}},slidersHorz:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:100,maxTop:0,callLeft:"setHue",callTop:!1},alpha:{maxLeft:100,maxTop:0,callLeft:"setAlpha",callTop:!1}},template:'