1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
Files
netbox-community-netbox/netbox/project-static/dist/config.js
Jeremy Stretch 084a2cc52c Closes #9416: Dashboard widgets (#11823)
* Replace masonry with gridstack

* Initial work on dashboard widgets

* Implement function to save dashboard layout

* Define a default dashboard

* Clean up widgets

* Implement widget configuration views & forms

* Permit merging dict value with existing dict in user config

* Add widget deletion view

* Enable HTMX for widget configuration

* Implement view to add dashboard widgets

* ObjectCountsWidget: Identify models by app_label & name

* Add color customization to dashboard widgets

* Introduce Dashboard model to store user dashboard layout & config

* Clean up utility functions

* Remove hard-coded API URL

* Use fixed grid cell height

* Add modal close button

* Clean up dashboard views

* Rebuild JS
2023-02-24 16:04:00 -05:00

8 lines
82 KiB
JavaScript

(()=>{var pi=Object.defineProperty,is=Object.defineProperties;var ns=Object.getOwnPropertyDescriptors;var cn=Object.getOwnPropertySymbols;var os=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable;var fn=(i,t,e)=>t in i?pi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,_=(i,t)=>{for(var e in t||(t={}))os.call(t,e)&&fn(i,e,t[e]);if(cn)for(var e of cn(t))ss.call(t,e)&&fn(i,e,t[e]);return i},Ve=(i,t)=>is(i,ns(t)),rs=i=>pi(i,"__esModule",{value:!0});var as=(i,t)=>{rs(i);for(var e in t)pi(i,e,{get:t[e],enumerable:!0})};var mi=(i,t,e)=>new Promise((n,o)=>{var s=l=>{try{a(e.next(l))}catch(u){o(u)}},r=l=>{try{a(e.throw(l))}catch(u){o(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,r);a((e=e.apply(i,t)).next())});var ze={};as(ze,{afterMain:()=>gn,afterRead:()=>pn,afterWrite:()=>vn,applyStyles:()=>Qt,arrow:()=>Be,auto:()=>de,basePlacements:()=>ct,beforeMain:()=>mn,beforeRead:()=>un,beforeWrite:()=>_n,bottom:()=>$,clippingParents:()=>hi,computeStyles:()=>Zt,createPopper:()=>Xe,createPopperBase:()=>Cn,createPopperLite:()=>Ln,detectOverflow:()=>K,end:()=>Et,eventListeners:()=>te,flip:()=>Ue,hide:()=>Ye,left:()=>C,main:()=>hn,modifierPhases:()=>_i,offset:()=>qe,placements:()=>me,popper:()=>Lt,popperGenerator:()=>jt,popperOffsets:()=>ne,preventOverflow:()=>Ge,read:()=>dn,reference:()=>gi,right:()=>x,start:()=>st,top:()=>O,variationPlacements:()=>He,viewport:()=>pe,write:()=>En});var O="top",$="bottom",x="right",C="left",de="auto",ct=[O,$,x,C],st="start",Et="end",hi="clippingParents",pe="viewport",Lt="popper",gi="reference",He=ct.reduce(function(i,t){return i.concat([t+"-"+st,t+"-"+Et])},[]),me=[].concat(ct,[de]).reduce(function(i,t){return i.concat([t,t+"-"+st,t+"-"+Et])},[]),un="beforeRead",dn="read",pn="afterRead",mn="beforeMain",hn="main",gn="afterMain",_n="beforeWrite",En="write",vn="afterWrite",_i=[un,dn,pn,mn,hn,gn,_n,En,vn];function j(i){return i?(i.nodeName||"").toLowerCase():null}function N(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var t=i.ownerDocument;return t&&t.defaultView||window}return i}function z(i){var t=N(i).Element;return i instanceof t||i instanceof Element}function M(i){var t=N(i).HTMLElement;return i instanceof t||i instanceof HTMLElement}function zt(i){if(typeof ShadowRoot=="undefined")return!1;var t=N(i).ShadowRoot;return i instanceof t||i instanceof ShadowRoot}function ls(i){var t=i.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},s=t.elements[e];!M(s)||!j(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(r){var a=o[r];a===!1?s.removeAttribute(r):s.setAttribute(r,a===!0?"":a)}))})}function cs(i){var t=i.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],s=t.attributes[n]||{},r=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:e[n]),a=r.reduce(function(l,u){return l[u]="",l},{});!M(o)||!j(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}var Qt={name:"applyStyles",enabled:!0,phase:"write",fn:ls,effect:cs,requires:["computeStyles"]};function k(i){return i.split("-")[0]}var nt=Math.max,Dt=Math.min,ft=Math.round;function Jt(){var i=navigator.userAgentData;return i!=null&&i.brands?i.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function he(){return!/^((?!chrome|android).)*safari/i.test(Jt())}function Q(i,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var n=i.getBoundingClientRect(),o=1,s=1;t&&M(i)&&(o=i.offsetWidth>0&&ft(n.width)/i.offsetWidth||1,s=i.offsetHeight>0&&ft(n.height)/i.offsetHeight||1);var r=z(i)?N(i):window,a=r.visualViewport,l=!he()&&e,u=(n.left+(l&&a?a.offsetLeft:0))/o,f=(n.top+(l&&a?a.offsetTop:0))/s,d=n.width/o,m=n.height/s;return{width:d,height:m,top:f,right:u+d,bottom:f+m,left:u,x:u,y:f}}function xt(i){var t=Q(i),e=i.offsetWidth,n=i.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:i.offsetLeft,y:i.offsetTop,width:e,height:n}}function ge(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t))return!0;if(e&&zt(e)){var n=t;do{if(n&&i.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function W(i){return N(i).getComputedStyle(i)}function Ei(i){return["table","td","th"].indexOf(j(i))>=0}function H(i){return((z(i)?i.ownerDocument:i.document)||window.document).documentElement}function ut(i){return j(i)==="html"?i:i.assignedSlot||i.parentNode||(zt(i)?i.host:null)||H(i)}function Tn(i){return!M(i)||W(i).position==="fixed"?null:i.offsetParent}function fs(i){var t=/firefox/i.test(Jt()),e=/Trident/i.test(Jt());if(e&&M(i)){var n=W(i);if(n.position==="fixed")return null}var o=ut(i);for(zt(o)&&(o=o.host);M(o)&&["html","body"].indexOf(j(o))<0;){var s=W(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ot(i){for(var t=N(i),e=Tn(i);e&&Ei(e)&&W(e).position==="static";)e=Tn(e);return e&&(j(e)==="html"||j(e)==="body"&&W(e).position==="static")?t:e||fs(i)||t}function $t(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function Pt(i,t,e){return nt(i,Dt(t,e))}function bn(i,t,e){var n=Pt(i,t,e);return n>e?e:n}function _e(){return{top:0,right:0,bottom:0,left:0}}function Ee(i){return Object.assign({},_e(),i)}function ve(i,t){return t.reduce(function(e,n){return e[n]=i,e},{})}var us=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Ee(typeof t!="number"?t:ve(t,ct))};function ds(i){var t,e=i.state,n=i.name,o=i.options,s=e.elements.arrow,r=e.modifiersData.popperOffsets,a=k(e.placement),l=$t(a),u=[C,x].indexOf(a)>=0,f=u?"height":"width";if(!(!s||!r)){var d=us(o.padding,e),m=xt(s),p=l==="y"?O:C,y=l==="y"?$:x,g=e.rects.reference[f]+e.rects.reference[l]-r[l]-e.rects.popper[f],E=r[l]-e.rects.reference[l],A=ot(s),L=A?l==="y"?A.clientHeight||0:A.clientWidth||0:0,D=g/2-E/2,v=d[p],T=L-m[f]-d[y],b=L/2-m[f]/2+D,S=Pt(v,b,T),P=l;e.modifiersData[n]=(t={},t[P]=S,t.centerOffset=S-b,t)}}function ps(i){var t=i.state,e=i.options,n=e.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!ge(t.elements.popper,o)||(t.elements.arrow=o))}var Be={name:"arrow",enabled:!0,phase:"main",fn:ds,effect:ps,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function J(i){return i.split("-")[1]}var ms={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hs(i){var t=i.x,e=i.y,n=window,o=n.devicePixelRatio||1;return{x:ft(t*o)/o||0,y:ft(e*o)/o||0}}function yn(i){var t,e=i.popper,n=i.popperRect,o=i.placement,s=i.variation,r=i.offsets,a=i.position,l=i.gpuAcceleration,u=i.adaptive,f=i.roundOffsets,d=i.isFixed,m=r.x,p=m===void 0?0:m,y=r.y,g=y===void 0?0:y,E=typeof f=="function"?f({x:p,y:g}):{x:p,y:g};p=E.x,g=E.y;var A=r.hasOwnProperty("x"),L=r.hasOwnProperty("y"),D=C,v=O,T=window;if(u){var b=ot(e),S="clientHeight",P="clientWidth";if(b===N(e)&&(b=H(e),W(b).position!=="static"&&a==="absolute"&&(S="scrollHeight",P="scrollWidth")),b=b,o===O||(o===C||o===x)&&s===Et){v=$;var I=d&&b===T&&T.visualViewport?T.visualViewport.height:b[S];g-=I-n.height,g*=l?1:-1}if(o===C||(o===O||o===$)&&s===Et){D=x;var R=d&&b===T&&T.visualViewport?T.visualViewport.width:b[P];p-=R-n.width,p*=l?1:-1}}var w=Object.assign({position:a},u&&ms),Y=f===!0?hs({x:p,y:g}):{x:p,y:g};if(p=Y.x,g=Y.y,l){var B;return Object.assign({},w,(B={},B[v]=L?"0":"",B[D]=A?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",B))}return Object.assign({},w,(t={},t[v]=L?g+"px":"",t[D]=A?p+"px":"",t.transform="",t))}function gs(i){var t=i.state,e=i.options,n=e.gpuAcceleration,o=n===void 0?!0:n,s=e.adaptive,r=s===void 0?!0:s,a=e.roundOffsets,l=a===void 0?!0:a;if(!1)var u;var f={placement:k(t.placement),variation:J(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yn(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yn(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Zt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gs,data:{}};var We={passive:!0};function _s(i){var t=i.state,e=i.instance,n=i.options,o=n.scroll,s=o===void 0?!0:o,r=n.resize,a=r===void 0?!0:r,l=N(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(f){f.addEventListener("scroll",e.update,We)}),a&&l.addEventListener("resize",e.update,We),function(){s&&u.forEach(function(f){f.removeEventListener("scroll",e.update,We)}),a&&l.removeEventListener("resize",e.update,We)}}var te={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_s,data:{}};var Es={left:"right",right:"left",bottom:"top",top:"bottom"};function ee(i){return i.replace(/left|right|bottom|top/g,function(t){return Es[t]})}var vs={start:"end",end:"start"};function Ke(i){return i.replace(/start|end/g,function(t){return vs[t]})}function It(i){var t=N(i),e=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:e,scrollTop:n}}function Rt(i){return Q(H(i)).left+It(i).scrollLeft}function vi(i,t){var e=N(i),n=H(i),o=e.visualViewport,s=n.clientWidth,r=n.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;var u=he();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a+Rt(i),y:l}}function Ti(i){var t,e=H(i),n=It(i),o=(t=i.ownerDocument)==null?void 0:t.body,s=nt(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=nt(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Rt(i),l=-n.scrollTop;return W(o||e).direction==="rtl"&&(a+=nt(e.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}function Mt(i){var t=W(i),e=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+o+n)}function Fe(i){return["html","body","#document"].indexOf(j(i))>=0?i.ownerDocument.body:M(i)&&Mt(i)?i:Fe(ut(i))}function vt(i,t){var e;t===void 0&&(t=[]);var n=Fe(i),o=n===((e=i.ownerDocument)==null?void 0:e.body),s=N(n),r=o?[s].concat(s.visualViewport||[],Mt(n)?n:[]):n,a=t.concat(r);return o?a:a.concat(vt(ut(r)))}function ie(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Ts(i,t){var e=Q(i,!1,t==="fixed");return e.top=e.top+i.clientTop,e.left=e.left+i.clientLeft,e.bottom=e.top+i.clientHeight,e.right=e.left+i.clientWidth,e.width=i.clientWidth,e.height=i.clientHeight,e.x=e.left,e.y=e.top,e}function An(i,t,e){return t===pe?ie(vi(i,e)):z(t)?Ts(t,e):ie(Ti(H(i)))}function bs(i){var t=vt(ut(i)),e=["absolute","fixed"].indexOf(W(i).position)>=0,n=e&&M(i)?ot(i):i;return z(n)?t.filter(function(o){return z(o)&&ge(o,n)&&j(o)!=="body"}):[]}function bi(i,t,e,n){var o=t==="clippingParents"?bs(i):[].concat(t),s=[].concat(o,[e]),r=s[0],a=s.reduce(function(l,u){var f=An(i,u,n);return l.top=nt(f.top,l.top),l.right=Dt(f.right,l.right),l.bottom=Dt(f.bottom,l.bottom),l.left=nt(f.left,l.left),l},An(i,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Te(i){var t=i.reference,e=i.element,n=i.placement,o=n?k(n):null,s=n?J(n):null,r=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(o){case O:l={x:r,y:t.y-e.height};break;case $:l={x:r,y:t.y+t.height};break;case x:l={x:t.x+t.width,y:a};break;case C:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?$t(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(s){case st:l[u]=l[u]-(t[f]/2-e[f]/2);break;case Et:l[u]=l[u]+(t[f]/2-e[f]/2);break;default:}}return l}function K(i,t){t===void 0&&(t={});var e=t,n=e.placement,o=n===void 0?i.placement:n,s=e.strategy,r=s===void 0?i.strategy:s,a=e.boundary,l=a===void 0?hi:a,u=e.rootBoundary,f=u===void 0?pe:u,d=e.elementContext,m=d===void 0?Lt:d,p=e.altBoundary,y=p===void 0?!1:p,g=e.padding,E=g===void 0?0:g,A=Ee(typeof E!="number"?E:ve(E,ct)),L=m===Lt?gi:Lt,D=i.rects.popper,v=i.elements[y?L:m],T=bi(z(v)?v:v.contextElement||H(i.elements.popper),l,f,r),b=Q(i.elements.reference),S=Te({reference:b,element:D,strategy:"absolute",placement:o}),P=ie(Object.assign({},D,S)),I=m===Lt?P:b,R={top:T.top-I.top+A.top,bottom:I.bottom-T.bottom+A.bottom,left:T.left-I.left+A.left,right:I.right-T.right+A.right},w=i.modifiersData.offset;if(m===Lt&&w){var Y=w[o];Object.keys(R).forEach(function(B){var wt=[x,$].indexOf(B)>=0?1:-1,St=[O,$].indexOf(B)>=0?"y":"x";R[B]+=Y[St]*wt})}return R}function yi(i,t){t===void 0&&(t={});var e=t,n=e.placement,o=e.boundary,s=e.rootBoundary,r=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,u=l===void 0?me:l,f=J(n),d=f?a?He:He.filter(function(y){return J(y)===f}):ct,m=d.filter(function(y){return u.indexOf(y)>=0});m.length===0&&(m=d);var p=m.reduce(function(y,g){return y[g]=K(i,{placement:g,boundary:o,rootBoundary:s,padding:r})[k(g)],y},{});return Object.keys(p).sort(function(y,g){return p[y]-p[g]})}function ys(i){if(k(i)===de)return[];var t=ee(i);return[Ke(i),t,Ke(t)]}function As(i){var t=i.state,e=i.options,n=i.name;if(!t.modifiersData[n]._skip){for(var o=e.mainAxis,s=o===void 0?!0:o,r=e.altAxis,a=r===void 0?!0:r,l=e.fallbackPlacements,u=e.padding,f=e.boundary,d=e.rootBoundary,m=e.altBoundary,p=e.flipVariations,y=p===void 0?!0:p,g=e.allowedAutoPlacements,E=t.options.placement,A=k(E),L=A===E,D=l||(L||!y?[ee(E)]:ys(E)),v=[E].concat(D).reduce(function(Xt,_t){return Xt.concat(k(_t)===de?yi(t,{placement:_t,boundary:f,rootBoundary:d,padding:u,flipVariations:y,allowedAutoPlacements:g}):_t)},[]),T=t.rects.reference,b=t.rects.popper,S=new Map,P=!0,I=v[0],R=0;R<v.length;R++){var w=v[R],Y=k(w),B=J(w)===st,wt=[O,$].indexOf(Y)>=0,St=wt?"width":"height",q=K(t,{placement:w,boundary:f,rootBoundary:d,altBoundary:m,padding:u}),it=wt?B?x:C:B?$:O;T[St]>b[St]&&(it=ee(it));var Ie=ee(it),Ot=[];if(s&&Ot.push(q[Y]<=0),a&&Ot.push(q[it]<=0,q[Ie]<=0),Ot.every(function(Xt){return Xt})){I=w,P=!1;break}S.set(w,Ot)}if(P)for(var Re=y?3:1,ci=function(_t){var ue=v.find(function(je){var Nt=S.get(je);if(Nt)return Nt.slice(0,_t).every(function(fi){return fi})});if(ue)return I=ue,"break"},fe=Re;fe>0;fe--){var Me=ci(fe);if(Me==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}var Ue={name:"flip",enabled:!0,phase:"main",fn:As,requiresIfExists:["offset"],data:{_skip:!1}};function wn(i,t,e){return e===void 0&&(e={x:0,y:0}),{top:i.top-t.height-e.y,right:i.right-t.width+e.x,bottom:i.bottom-t.height+e.y,left:i.left-t.width-e.x}}function Sn(i){return[O,x,$,C].some(function(t){return i[t]>=0})}function ws(i){var t=i.state,e=i.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,r=K(t,{elementContext:"reference"}),a=K(t,{altBoundary:!0}),l=wn(r,n),u=wn(a,o,s),f=Sn(l),d=Sn(u);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var Ye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ws};function Ss(i,t,e){var n=k(i),o=[C,O].indexOf(n)>=0?-1:1,s=typeof e=="function"?e(Object.assign({},t,{placement:i})):e,r=s[0],a=s[1];return r=r||0,a=(a||0)*o,[C,x].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}function Os(i){var t=i.state,e=i.options,n=i.name,o=e.offset,s=o===void 0?[0,0]:o,r=me.reduce(function(f,d){return f[d]=Ss(d,t.rects,s),f},{}),a=r[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=r}var qe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Os};function Ns(i){var t=i.state,e=i.name;t.modifiersData[e]=Te({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ne={name:"popperOffsets",enabled:!0,phase:"read",fn:Ns,data:{}};function Ai(i){return i==="x"?"y":"x"}function Cs(i){var t=i.state,e=i.options,n=i.name,o=e.mainAxis,s=o===void 0?!0:o,r=e.altAxis,a=r===void 0?!1:r,l=e.boundary,u=e.rootBoundary,f=e.altBoundary,d=e.padding,m=e.tether,p=m===void 0?!0:m,y=e.tetherOffset,g=y===void 0?0:y,E=K(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),A=k(t.placement),L=J(t.placement),D=!L,v=$t(A),T=Ai(v),b=t.modifiersData.popperOffsets,S=t.rects.reference,P=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(!!b){if(s){var B,wt=v==="y"?O:C,St=v==="y"?$:x,q=v==="y"?"height":"width",it=b[v],Ie=it+E[wt],Ot=it-E[St],Re=p?-P[q]/2:0,ci=L===st?S[q]:P[q],fe=L===st?-P[q]:-S[q],Me=t.elements.arrow,Xt=p&&Me?xt(Me):{width:0,height:0},_t=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:_e(),ue=_t[wt],je=_t[St],Nt=Pt(0,S[q],Xt[q]),fi=D?S[q]/2-Re-Nt-ue-R.mainAxis:ci-Nt-ue-R.mainAxis,zo=D?-S[q]/2+Re+Nt+je+R.mainAxis:fe+Nt+je+R.mainAxis,ui=t.elements.arrow&&ot(t.elements.arrow),Qo=ui?v==="y"?ui.clientTop||0:ui.clientLeft||0:0,Zi=(B=w==null?void 0:w[v])!=null?B:0,Jo=it+fi-Zi-Qo,Zo=it+zo-Zi,tn=Pt(p?Dt(Ie,Jo):Ie,it,p?nt(Ot,Zo):Ot);b[v]=tn,Y[v]=tn-it}if(a){var en,ts=v==="x"?O:C,es=v==="x"?$:x,Ct=b[T],ke=T==="y"?"height":"width",nn=Ct+E[ts],on=Ct-E[es],di=[O,C].indexOf(A)!==-1,sn=(en=w==null?void 0:w[T])!=null?en:0,rn=di?nn:Ct-S[ke]-P[ke]-sn+R.altAxis,an=di?Ct+S[ke]+P[ke]-sn-R.altAxis:on,ln=p&&di?bn(rn,Ct,an):Pt(p?rn:nn,Ct,p?an:on);b[T]=ln,Y[T]=ln-Ct}t.modifiersData[n]=Y}}var Ge={name:"preventOverflow",enabled:!0,phase:"main",fn:Cs,requiresIfExists:["offset"]};function wi(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Si(i){return i===N(i)||!M(i)?It(i):wi(i)}function Ls(i){var t=i.getBoundingClientRect(),e=ft(t.width)/i.offsetWidth||1,n=ft(t.height)/i.offsetHeight||1;return e!==1||n!==1}function Oi(i,t,e){e===void 0&&(e=!1);var n=M(t),o=M(t)&&Ls(t),s=H(t),r=Q(i,o,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!e)&&((j(t)!=="body"||Mt(s))&&(a=Si(t)),M(t)?(l=Q(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Rt(s))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Ds(i){var t=new Map,e=new Set,n=[];i.forEach(function(s){t.set(s.name,s)});function o(s){e.add(s.name);var r=[].concat(s.requires||[],s.requiresIfExists||[]);r.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&o(l)}}),n.push(s)}return i.forEach(function(s){e.has(s.name)||o(s)}),n}function Ni(i){var t=Ds(i);return _i.reduce(function(e,n){return e.concat(t.filter(function(o){return o.phase===n}))},[])}function Ci(i){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(i())})})),t}}function Li(i){var t=i.reduce(function(e,n){var o=e[n.name];return e[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,e},{});return Object.keys(t).map(function(e){return t[e]})}var On={placement:"bottom",modifiers:[],strategy:"absolute"};function Nn(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function jt(i){i===void 0&&(i={});var t=i,e=t.defaultModifiers,n=e===void 0?[]:e,o=t.defaultOptions,s=o===void 0?On:o;return function(a,l,u){u===void 0&&(u=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},On,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],m=!1,p={state:f,setOptions:function(A){var L=typeof A=="function"?A(f.options):A;g(),f.options=Object.assign({},s,f.options,L),f.scrollParents={reference:z(a)?vt(a):a.contextElement?vt(a.contextElement):[],popper:vt(l)};var D=Ni(Li([].concat(n,f.options.modifiers)));if(f.orderedModifiers=D.filter(function(w){return w.enabled}),!1){var v;if(getBasePlacement(f.options.placement)===auto)var T;var b,S,P,I,R}return y(),p.update()},forceUpdate:function(){if(!m){var A=f.elements,L=A.reference,D=A.popper;if(!!Nn(L,D)){f.rects={reference:Oi(L,ot(D),f.options.strategy==="fixed"),popper:xt(D)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(w){return f.modifiersData[w.name]=Object.assign({},w.data)});for(var v=0,T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var b=f.orderedModifiers[T],S=b.fn,P=b.options,I=P===void 0?{}:P,R=b.name;typeof S=="function"&&(f=S({state:f,options:I,name:R,instance:p})||f)}}}},update:Ci(function(){return new Promise(function(E){p.forceUpdate(),E(f)})}),destroy:function(){g(),m=!0}};if(!Nn(a,l))return p;p.setOptions(u).then(function(E){!m&&u.onFirstUpdate&&u.onFirstUpdate(E)});function y(){f.orderedModifiers.forEach(function(E){var A=E.name,L=E.options,D=L===void 0?{}:L,v=E.effect;if(typeof v=="function"){var T=v({state:f,name:A,instance:p,options:D}),b=function(){};d.push(T||b)}})}function g(){d.forEach(function(E){return E()}),d=[]}return p}}var Cn=jt();var xs=[te,ne,Zt,Qt],Ln=jt({defaultModifiers:xs});var $s=[te,ne,Zt,Qt,qe,Ue,Ge,Be,Ye],Xe=jt({defaultModifiers:$s});var Ps=3,h={find(i,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,i))},findOne(i,t=document.documentElement){return Element.prototype.querySelector.call(t,i)},children(i,t){return[].concat(...i.children).filter(e=>e.matches(t))},parents(i,t){let e=[],n=i.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&n.nodeType!==Ps;)n.matches(t)&&e.push(n),n=n.parentNode;return e},prev(i,t){let e=i.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(i,t){let e=i.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]}},Is=1e6,Rs=1e3,Di="transitionend",Ms=i=>i==null?`${i}`:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),Dn=i=>{do i+=Math.floor(Math.random()*Is);while(document.getElementById(i));return i},xn=i=>{let t=i.getAttribute("data-bs-target");if(!t||t==="#"){let e=i.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t},xi=i=>{let t=xn(i);return t&&document.querySelector(t)?t:null},Tt=i=>{let t=xn(i);return t?document.querySelector(t):null},js=i=>{if(!i)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(i),n=Number.parseFloat(t),o=Number.parseFloat(e);return!n&&!o?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Rs)},$n=i=>{i.dispatchEvent(new Event(Di))},bt=i=>!i||typeof i!="object"?!1:(typeof i.jquery!="undefined"&&(i=i[0]),typeof i.nodeType!="undefined"),oe=i=>bt(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?h.findOne(i):null,dt=(i,t,e)=>{Object.keys(e).forEach(n=>{let o=e[n],s=t[n],r=s&&bt(s)?"element":Ms(s);if(!new RegExp(o).test(r))throw new TypeError(`${i.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${o}".`)})},Qe=i=>!bt(i)||i.getClientRects().length===0?!1:getComputedStyle(i).getPropertyValue("visibility")==="visible",se=i=>!i||i.nodeType!==Node.ELEMENT_NODE||i.classList.contains("disabled")?!0:typeof i.disabled!="undefined"?i.disabled:i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false",Pn=i=>{if(!document.documentElement.attachShadow)return null;if(typeof i.getRootNode=="function"){let t=i.getRootNode();return t instanceof ShadowRoot?t:null}return i instanceof ShadowRoot?i:i.parentNode?Pn(i.parentNode):null},Je=()=>{},re=i=>i.offsetHeight,In=()=>{let{jQuery:i}=window;return i&&!document.body.hasAttribute("data-bs-no-jquery")?i:null},$i=[],ks=i=>{document.readyState==="loading"?($i.length||document.addEventListener("DOMContentLoaded",()=>{$i.forEach(t=>t())}),$i.push(i)):i()},U=()=>document.documentElement.dir==="rtl",Z=i=>{ks(()=>{let t=In();if(t){let e=i.NAME,n=t.fn[e];t.fn[e]=i.jQueryInterface,t.fn[e].Constructor=i,t.fn[e].noConflict=()=>(t.fn[e]=n,i.jQueryInterface)}})},kt=i=>{typeof i=="function"&&i()},Rn=(i,t,e=!0)=>{if(!e){kt(i);return}let n=5,o=js(t)+n,s=!1,r=({target:a})=>{a===t&&(s=!0,t.removeEventListener(Di,r),kt(i))};t.addEventListener(Di,r),setTimeout(()=>{s||$n(t)},o)},Mn=(i,t,e,n)=>{let o=i.indexOf(t);if(o===-1)return i[!e&&n?i.length-1:0];let s=i.length;return o+=e?1:-1,n&&(o=(o+s)%s),i[Math.max(0,Math.min(o,s-1))]},Vs=/[^.]*(?=\..*)\.|.*/,Hs=/\..*/,Bs=/::\d+$/,Pi={},jn=1,Ws={mouseenter:"mouseover",mouseleave:"mouseout"},Ks=/^(mouseenter|mouseleave)/i,kn=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 Vn(i,t){return t&&`${t}::${jn++}`||i.uidEvent||jn++}function Hn(i){let t=Vn(i);return i.uidEvent=t,Pi[t]=Pi[t]||{},Pi[t]}function Fs(i,t){return function e(n){return n.delegateTarget=i,e.oneOff&&c.off(i,n.type,t),t.apply(i,[n])}}function Us(i,t,e){return function n(o){let s=i.querySelectorAll(t);for(let{target:r}=o;r&&r!==this;r=r.parentNode)for(let a=s.length;a--;)if(s[a]===r)return o.delegateTarget=r,n.oneOff&&c.off(i,o.type,t,e),e.apply(r,[o]);return null}}function Bn(i,t,e=null){let n=Object.keys(i);for(let o=0,s=n.length;o<s;o++){let r=i[n[o]];if(r.originalHandler===t&&r.delegationSelector===e)return r}return null}function Wn(i,t,e){let n=typeof t=="string",o=n?e:t,s=Fn(i);return kn.has(s)||(s=i),[n,o,s]}function Kn(i,t,e,n,o){if(typeof t!="string"||!i)return;if(e||(e=n,n=null),Ks.test(t)){let p=y=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return y.call(this,g)};n?n=p(n):e=p(e)}let[s,r,a]=Wn(t,e,n),l=Hn(i),u=l[a]||(l[a]={}),f=Bn(u,r,s?e:null);if(f){f.oneOff=f.oneOff&&o;return}let d=Vn(r,t.replace(Vs,"")),m=s?Us(i,e,n):Fs(i,e);m.delegationSelector=s?e:null,m.originalHandler=r,m.oneOff=o,m.uidEvent=d,u[d]=m,i.addEventListener(a,m,s)}function Ii(i,t,e,n,o){let s=Bn(t[e],n,o);!s||(i.removeEventListener(e,s,Boolean(o)),delete t[e][s.uidEvent])}function Ys(i,t,e,n){let o=t[e]||{};Object.keys(o).forEach(s=>{if(s.includes(n)){let r=o[s];Ii(i,t,e,r.originalHandler,r.delegationSelector)}})}function Fn(i){return i=i.replace(Hs,""),Ws[i]||i}var c={on(i,t,e,n){Kn(i,t,e,n,!1)},one(i,t,e,n){Kn(i,t,e,n,!0)},off(i,t,e,n){if(typeof t!="string"||!i)return;let[o,s,r]=Wn(t,e,n),a=r!==t,l=Hn(i),u=t.startsWith(".");if(typeof s!="undefined"){if(!l||!l[r])return;Ii(i,l,r,s,o?e:null);return}u&&Object.keys(l).forEach(d=>{Ys(i,l,d,t.slice(1))});let f=l[r]||{};Object.keys(f).forEach(d=>{let m=d.replace(Bs,"");if(!a||t.includes(m)){let p=f[d];Ii(i,l,r,p.originalHandler,p.delegationSelector)}})},trigger(i,t,e){if(typeof t!="string"||!i)return null;let n=In(),o=Fn(t),s=t!==o,r=kn.has(o),a,l=!0,u=!0,f=!1,d=null;return s&&n&&(a=n.Event(t,e),n(i).trigger(a),l=!a.isPropagationStopped(),u=!a.isImmediatePropagationStopped(),f=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(o,l,!0)):d=new CustomEvent(t,{bubbles:l,cancelable:!0}),typeof e!="undefined"&&Object.keys(e).forEach(m=>{Object.defineProperty(d,m,{get(){return e[m]}})}),f&&d.preventDefault(),u&&i.dispatchEvent(d),d.defaultPrevented&&typeof a!="undefined"&&a.preventDefault(),d}},yt=new Map,Vt={set(i,t,e){yt.has(i)||yt.set(i,new Map);let n=yt.get(i);if(!n.has(t)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(t,e)},get(i,t){return yt.has(i)&&yt.get(i).get(t)||null},remove(i,t){if(!yt.has(i))return;let e=yt.get(i);e.delete(t),e.size===0&&yt.delete(i)}},qs="5.0.2",tt=class{constructor(t){t=oe(t),!!t&&(this._element=t,Vt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Vt.remove(this._element,this.constructor.DATA_KEY),c.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,n=!0){Rn(t,e,n)}static getInstance(t){return Vt.get(t,this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return qs}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}`}},Gs="alert",Xs="bs.alert",Ri=`.${Xs}`,zs=".data-api",Qs='[data-bs-dismiss="alert"]',Js=`close${Ri}`,Zs=`closed${Ri}`,tr=`click${Ri}${zs}`,er="alert",ir="fade",nr="show",ae=class extends tt{static get NAME(){return Gs}close(t){let e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);n===null||n.defaultPrevented||this._removeElement(e)}_getRootElement(t){return Tt(t)||t.closest(`.${er}`)}_triggerCloseEvent(t){return c.trigger(t,Js)}_removeElement(t){t.classList.remove(nr);let e=t.classList.contains(ir);this._queueCallback(()=>this._destroyElement(t),t,e)}_destroyElement(t){t.remove(),c.trigger(t,Zs)}static jQueryInterface(t){return this.each(function(){let e=ae.getOrCreateInstance(this);t==="close"&&e[t](this)})}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}};c.on(document,tr,Qs,ae.handleDismiss(new ae));Z(ae);var or="button",sr="bs.button",rr=`.${sr}`,ar=".data-api",lr="active",Un='[data-bs-toggle="button"]',cr=`click${rr}${ar}`,be=class extends tt{static get NAME(){return or}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(lr))}static jQueryInterface(t){return this.each(function(){let e=be.getOrCreateInstance(this);t==="toggle"&&e[t]()})}};c.on(document,cr,Un,i=>{i.preventDefault();let t=i.target.closest(Un);be.getOrCreateInstance(t).toggle()});Z(be);function Yn(i){return i==="true"?!0:i==="false"?!1:i===Number(i).toString()?Number(i):i===""||i==="null"?null:i}function Mi(i){return i.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var V={setDataAttribute(i,t,e){i.setAttribute(`data-bs-${Mi(t)}`,e)},removeDataAttribute(i,t){i.removeAttribute(`data-bs-${Mi(t)}`)},getDataAttributes(i){if(!i)return{};let t={};return Object.keys(i.dataset).filter(e=>e.startsWith("bs")).forEach(e=>{let n=e.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=Yn(i.dataset[e])}),t},getDataAttribute(i,t){return Yn(i.getAttribute(`data-bs-${Mi(t)}`))},offset(i){let t=i.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position(i){return{top:i.offsetTop,left:i.offsetLeft}}},qn="carousel",fr="bs.carousel",G=`.${fr}`,Gn=".data-api",ur="ArrowLeft",dr="ArrowRight",pr=500,mr=40,Xn={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},hr={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Ht="next",Bt="prev",Wt="left",ye="right",gr={[ur]:ye,[dr]:Wt},_r=`slide${G}`,zn=`slid${G}`,Er=`keydown${G}`,vr=`mouseenter${G}`,Tr=`mouseleave${G}`,br=`touchstart${G}`,yr=`touchmove${G}`,Ar=`touchend${G}`,wr=`pointerdown${G}`,Sr=`pointerup${G}`,Or=`dragstart${G}`,Nr=`load${G}${Gn}`,Cr=`click${G}${Gn}`,Lr="carousel",Kt="active",Dr="slide",xr="carousel-item-end",$r="carousel-item-start",Pr="carousel-item-next",Ir="carousel-item-prev",Rr="pointer-event",Mr=".active",Ze=".active.carousel-item",jr=".carousel-item",kr=".carousel-item img",Vr=".carousel-item-next, .carousel-item-prev",Hr=".carousel-indicators",Br="[data-bs-target]",Wr="[data-bs-slide], [data-bs-slide-to]",Kr='[data-bs-ride="carousel"]',Qn="touch",Jn="pen",rt=class extends tt{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=h.findOne(Hr,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Xn}static get NAME(){return qn}next(){this._slide(Ht)}nextWhenVisible(){!document.hidden&&Qe(this._element)&&this.next()}prev(){this._slide(Bt)}pause(t){t||(this._isPaused=!0),h.findOne(Vr,this._element)&&($n(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=h.findOne(Ze,this._element);let e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding){c.one(this._element,zn,()=>this.to(t));return}if(e===t){this.pause(),this.cycle();return}let n=t>e?Ht:Bt;this._slide(n,this._items[t])}_getConfig(t){return t=_(_(_({},Xn),V.getDataAttributes(this._element)),typeof t=="object"?t:{}),dt(qn,t,hr),t}_handleSwipe(){let t=Math.abs(this.touchDeltaX);if(t<=mr)return;let e=t/this.touchDeltaX;this.touchDeltaX=0,!!e&&this._slide(e>0?ye:Wt)}_addEventListeners(){this._config.keyboard&&c.on(this._element,Er,t=>this._keydown(t)),this._config.pause==="hover"&&(c.on(this._element,vr,t=>this.pause(t)),c.on(this._element,Tr,t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){let t=o=>{this._pointerEvent&&(o.pointerType===Jn||o.pointerType===Qn)?this.touchStartX=o.clientX:this._pointerEvent||(this.touchStartX=o.touches[0].clientX)},e=o=>{this.touchDeltaX=o.touches&&o.touches.length>1?0:o.touches[0].clientX-this.touchStartX},n=o=>{this._pointerEvent&&(o.pointerType===Jn||o.pointerType===Qn)&&(this.touchDeltaX=o.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(s=>this.cycle(s),pr+this._config.interval))};h.find(kr,this._element).forEach(o=>{c.on(o,Or,s=>s.preventDefault())}),this._pointerEvent?(c.on(this._element,wr,o=>t(o)),c.on(this._element,Sr,o=>n(o)),this._element.classList.add(Rr)):(c.on(this._element,br,o=>t(o)),c.on(this._element,yr,o=>e(o)),c.on(this._element,Ar,o=>n(o)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=gr[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?h.find(jr,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){let n=t===Ht;return Mn(this._items,e,n,this._config.wrap)}_triggerSlideEvent(t,e){let n=this._getItemIndex(t),o=this._getItemIndex(h.findOne(Ze,this._element));return c.trigger(this._element,_r,{relatedTarget:t,direction:e,from:o,to:n})}_setActiveIndicatorElement(t){if(this._indicatorsElement){let e=h.findOne(Mr,this._indicatorsElement);e.classList.remove(Kt),e.removeAttribute("aria-current");let n=h.find(Br,this._indicatorsElement);for(let o=0;o<n.length;o++)if(Number.parseInt(n[o].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){n[o].classList.add(Kt),n[o].setAttribute("aria-current","true");break}}}_updateInterval(){let t=this._activeElement||h.findOne(Ze,this._element);if(!t)return;let e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){let n=this._directionToOrder(t),o=h.findOne(Ze,this._element),s=this._getItemIndex(o),r=e||this._getItemByOrder(n,o),a=this._getItemIndex(r),l=Boolean(this._interval),u=n===Ht,f=u?$r:xr,d=u?Pr:Ir,m=this._orderToDirection(n);if(r&&r.classList.contains(Kt)){this._isSliding=!1;return}if(this._isSliding||this._triggerSlideEvent(r,m).defaultPrevented||!o||!r)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(r),this._activeElement=r;let y=()=>{c.trigger(this._element,zn,{relatedTarget:r,direction:m,from:s,to:a})};if(this._element.classList.contains(Dr)){r.classList.add(d),re(r),o.classList.add(f),r.classList.add(f);let g=()=>{r.classList.remove(f,d),r.classList.add(Kt),o.classList.remove(Kt,d,f),this._isSliding=!1,setTimeout(y,0)};this._queueCallback(g,o,!0)}else o.classList.remove(Kt),r.classList.add(Kt),this._isSliding=!1,y();l&&this.cycle()}_directionToOrder(t){return[ye,Wt].includes(t)?U()?t===Wt?Bt:Ht:t===Wt?Ht:Bt:t}_orderToDirection(t){return[Ht,Bt].includes(t)?U()?t===Bt?Wt:ye:t===Bt?ye:Wt:t}static carouselInterface(t,e){let n=rt.getOrCreateInstance(t,e),{_config:o}=n;typeof e=="object"&&(o=_(_({},o),e));let s=typeof e=="string"?e:o.slide;if(typeof e=="number")n.to(e);else if(typeof s=="string"){if(typeof n[s]=="undefined")throw new TypeError(`No method named "${s}"`);n[s]()}else o.interval&&o.ride&&(n.pause(),n.cycle())}static jQueryInterface(t){return this.each(function(){rt.carouselInterface(this,t)})}static dataApiClickHandler(t){let e=Tt(this);if(!e||!e.classList.contains(Lr))return;let n=_(_({},V.getDataAttributes(e)),V.getDataAttributes(this)),o=this.getAttribute("data-bs-slide-to");o&&(n.interval=!1),rt.carouselInterface(e,n),o&&rt.getInstance(e).to(o),t.preventDefault()}};c.on(document,Cr,Wr,rt.dataApiClickHandler);c.on(window,Nr,()=>{let i=h.find(Kr);for(let t=0,e=i.length;t<e;t++)rt.carouselInterface(i[t],rt.getInstance(i[t]))});Z(rt);var Zn="collapse",to="bs.collapse",Ae=`.${to}`,Fr=".data-api",ji={toggle:!0,parent:""},Ur={toggle:"boolean",parent:"(string|element)"},Yr=`show${Ae}`,qr=`shown${Ae}`,Gr=`hide${Ae}`,Xr=`hidden${Ae}`,zr=`click${Ae}${Fr}`,Ft="show",we="collapse",ti="collapsing",ei="collapsed",eo="width",Qr="height",Jr=".show, .collapsing",Se='[data-bs-toggle="collapse"]',et=class extends tt{constructor(t,e){super(t);this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=h.find(`${Se}[href="#${this._element.id}"],${Se}[data-bs-target="#${this._element.id}"]`);let n=h.find(Se);for(let o=0,s=n.length;o<s;o++){let r=n[o],a=xi(r),l=h.find(a).filter(u=>u===this._element);a!==null&&l.length&&(this._selector=a,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return ji}static get NAME(){return Zn}toggle(){this._element.classList.contains(Ft)?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains(Ft))return;let t,e;this._parent&&(t=h.find(Jr,this._parent).filter(u=>typeof this._config.parent=="string"?u.getAttribute("data-bs-parent")===this._config.parent:u.classList.contains(we)),t.length===0&&(t=null));let n=h.findOne(this._selector);if(t){let u=t.find(f=>n!==f);if(e=u?et.getInstance(u):null,e&&e._isTransitioning)return}if(c.trigger(this._element,Yr).defaultPrevented)return;t&&t.forEach(u=>{n!==u&&et.collapseInterface(u,"hide"),e||Vt.set(u,to,null)});let s=this._getDimension();this._element.classList.remove(we),this._element.classList.add(ti),this._element.style[s]=0,this._triggerArray.length&&this._triggerArray.forEach(u=>{u.classList.remove(ei),u.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0);let r=()=>{this._element.classList.remove(ti),this._element.classList.add(we,Ft),this._element.style[s]="",this.setTransitioning(!1),c.trigger(this._element,qr)},l=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[s]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._element.classList.contains(Ft)||c.trigger(this._element,Gr).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,re(this._element),this._element.classList.add(ti),this._element.classList.remove(we,Ft);let n=this._triggerArray.length;if(n>0)for(let s=0;s<n;s++){let r=this._triggerArray[s],a=Tt(r);a&&!a.classList.contains(Ft)&&(r.classList.add(ei),r.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);let o=()=>{this.setTransitioning(!1),this._element.classList.remove(ti),this._element.classList.add(we),c.trigger(this._element,Xr)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return t=_(_({},ji),t),t.toggle=Boolean(t.toggle),dt(Zn,t,Ur),t}_getDimension(){return this._element.classList.contains(eo)?eo:Qr}_getParent(){let{parent:t}=this._config;t=oe(t);let e=`${Se}[data-bs-parent="${t}"]`;return h.find(e,t).forEach(n=>{let o=Tt(n);this._addAriaAndCollapsedClass(o,[n])}),t}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;let n=t.classList.contains(Ft);e.forEach(o=>{n?o.classList.remove(ei):o.classList.add(ei),o.setAttribute("aria-expanded",n)})}static collapseInterface(t,e){let n=et.getInstance(t),o=_(_(_({},ji),V.getDataAttributes(t)),typeof e=="object"&&e?e:{});if(!n&&o.toggle&&typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),n||(n=new et(t,o)),typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each(function(){et.collapseInterface(this,t)})}};c.on(document,zr,Se,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();let t=V.getDataAttributes(this),e=xi(this);h.find(e).forEach(o=>{let s=et.getInstance(o),r;s?(s._parent===null&&typeof t.parent=="string"&&(s._config.parent=t.parent,s._parent=s._getParent()),r="toggle"):r=t,et.collapseInterface(o,r)})});Z(et);var ki="dropdown",Zr="bs.dropdown",At=`.${Zr}`,Vi=".data-api",ii="Escape",io="Space",no="Tab",Hi="ArrowUp",ni="ArrowDown",ta=2,ea=new RegExp(`${Hi}|${ni}|${ii}`),ia=`hide${At}`,na=`hidden${At}`,oa=`show${At}`,sa=`shown${At}`,ra=`click${At}`,oo=`click${At}${Vi}`,so=`keydown${At}${Vi}`,aa=`keyup${At}${Vi}`,pt="show",la="dropup",ca="dropend",fa="dropstart",ua="navbar",Oe='[data-bs-toggle="dropdown"]',Bi=".dropdown-menu",da=".navbar-nav",pa=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ma=U()?"top-end":"top-start",ha=U()?"top-start":"top-end",ga=U()?"bottom-end":"bottom-start",_a=U()?"bottom-start":"bottom-end",Ea=U()?"left-start":"right-start",va=U()?"right-start":"left-start",Ta={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},ba={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},F=class extends tt{constructor(t,e){super(t);this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return Ta}static get DefaultType(){return ba}static get NAME(){return ki}toggle(){if(se(this._element))return;if(this._element.classList.contains(pt)){this.hide();return}this.show()}show(){if(se(this._element)||this._menu.classList.contains(pt))return;let t=F.getParentFromElement(this._element),e={relatedTarget:this._element};if(!c.trigger(this._element,oa,e).defaultPrevented){if(this._inNavbar)V.setDataAttribute(this._menu,"popper","none");else{if(typeof ze=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let o=this._element;this._config.reference==="parent"?o=t:bt(this._config.reference)?o=oe(this._config.reference):typeof this._config.reference=="object"&&(o=this._config.reference);let s=this._getPopperConfig(),r=s.modifiers.find(a=>a.name==="applyStyles"&&a.enabled===!1);this._popper=Xe(o,this._menu,s),r&&V.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(da)&&[].concat(...document.body.children).forEach(o=>c.on(o,"mouseover",Je)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(pt),this._element.classList.toggle(pt),c.trigger(this._element,sa,e)}}hide(){if(se(this._element)||!this._menu.classList.contains(pt))return;let 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()}_addEventListeners(){c.on(this._element,ra,t=>{t.preventDefault(),this.toggle()})}_completeHide(t){c.trigger(this._element,ia,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(n=>c.off(n,"mouseover",Je)),this._popper&&this._popper.destroy(),this._menu.classList.remove(pt),this._element.classList.remove(pt),this._element.setAttribute("aria-expanded","false"),V.removeDataAttribute(this._menu,"popper"),c.trigger(this._element,na,t))}_getConfig(t){if(t=_(_(_({},this.constructor.Default),V.getDataAttributes(this._element)),t),dt(ki,t,this.constructor.DefaultType),typeof t.reference=="object"&&!bt(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${ki.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_getMenuElement(){return h.next(this._element,Bi)[0]}_getPlacement(){let t=this._element.parentNode;if(t.classList.contains(ca))return Ea;if(t.classList.contains(fa))return va;let e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(la)?e?ha:ma:e?_a:ga}_detectNavbar(){return this._element.closest(`.${ua}`)!==null}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){let t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return this._config.display==="static"&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),_(_({},t),typeof this._config.popperConfig=="function"?this._config.popperConfig(t):this._config.popperConfig)}_selectMenuItem({key:t,target:e}){let n=h.find(pa,this._menu).filter(Qe);!n.length||Mn(n,e,t===ni,!n.includes(e)).focus()}static dropdownInterface(t,e){let n=F.getOrCreateInstance(t,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each(function(){F.dropdownInterface(this,t)})}static clearMenus(t){if(t&&(t.button===ta||t.type==="keyup"&&t.key!==no))return;let e=h.find(Oe);for(let n=0,o=e.length;n<o;n++){let s=F.getInstance(e[n]);if(!s||s._config.autoClose===!1||!s._element.classList.contains(pt))continue;let r={relatedTarget:s._element};if(t){let a=t.composedPath(),l=a.includes(s._menu);if(a.includes(s._element)||s._config.autoClose==="inside"&&!l||s._config.autoClose==="outside"&&l||s._menu.contains(t.target)&&(t.type==="keyup"&&t.key===no||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;t.type==="click"&&(r.clickEvent=t)}s._completeHide(r)}}static getParentFromElement(t){return Tt(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===io||t.key!==ii&&(t.key!==ni&&t.key!==Hi||t.target.closest(Bi)):!ea.test(t.key))return;let e=this.classList.contains(pt);if(!e&&t.key===ii||(t.preventDefault(),t.stopPropagation(),se(this)))return;let n=()=>this.matches(Oe)?this:h.prev(this,Oe)[0];if(t.key===ii){n().focus(),F.clearMenus();return}if(t.key===Hi||t.key===ni){e||n().click(),F.getInstance(n())._selectMenuItem(t);return}(!e||t.key===io)&&F.clearMenus()}};c.on(document,so,Oe,F.dataApiKeydownHandler);c.on(document,so,Bi,F.dataApiKeydownHandler);c.on(document,oo,F.clearMenus);c.on(document,aa,F.clearMenus);c.on(document,oo,Oe,function(i){i.preventDefault(),F.dropdownInterface(this)});Z(F);var ro=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ao=".sticky-top",oi=class{constructor(){this._element=document.body}getWidth(){let t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){let t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",e=>e+t),this._setElementAttributes(ro,"paddingRight",e=>e+t),this._setElementAttributes(ao,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){let o=this.getWidth(),s=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+o)return;this._saveInitialAttribute(r,e);let a=window.getComputedStyle(r)[e];r.style[e]=`${n(Number.parseFloat(a))}px`};this._applyManipulationCallback(t,s)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(ro,"paddingRight"),this._resetElementAttributes(ao,"marginRight")}_saveInitialAttribute(t,e){let n=t.style[e];n&&V.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){let n=o=>{let s=V.getDataAttribute(o,e);typeof s=="undefined"?o.style.removeProperty(e):(V.removeDataAttribute(o,e),o.style[e]=s)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){bt(t)?e(t):h.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}},ya={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},Aa={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},lo="backdrop",wa="modal-backdrop",Sa="fade",co="show",fo=`mousedown.bs.${lo}`,Wi=class{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){if(!this._config.isVisible){kt(t);return}this._append(),this._config.isAnimated&&re(this._getElement()),this._getElement().classList.add(co),this._emulateAnimation(()=>{kt(t)})}hide(t){if(!this._config.isVisible){kt(t);return}this._getElement().classList.remove(co),this._emulateAnimation(()=>{this.dispose(),kt(t)})}_getElement(){if(!this._element){let t=document.createElement("div");t.className=wa,this._config.isAnimated&&t.classList.add(Sa),this._element=t}return this._element}_getConfig(t){return t=_(_({},ya),typeof t=="object"?t:{}),t.rootElement=oe(t.rootElement),dt(lo,t,Aa),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),c.on(this._getElement(),fo,()=>{kt(this._config.clickCallback)}),this._isAppended=!0)}dispose(){!this._isAppended||(c.off(this._element,fo),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){Rn(t,this._getElement(),this._config.isAnimated)}},uo="modal",Oa="bs.modal",X=`.${Oa}`,Na=".data-api",po="Escape",mo={backdrop:!0,keyboard:!0,focus:!0},Ca={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},La=`hide${X}`,Da=`hidePrevented${X}`,ho=`hidden${X}`,go=`show${X}`,xa=`shown${X}`,si=`focusin${X}`,_o=`resize${X}`,Ki=`click.dismiss${X}`,Eo=`keydown.dismiss${X}`,$a=`mouseup.dismiss${X}`,vo=`mousedown.dismiss${X}`,Pa=`click${X}${Na}`,To="modal-open",Ia="fade",bo="show",Fi="modal-static",Ra=".modal-dialog",Ma=".modal-body",ja='[data-bs-toggle="modal"]',ka='[data-bs-dismiss="modal"]',Ut=class extends tt{constructor(t,e){super(t);this._config=this._getConfig(e),this._dialog=h.findOne(Ra,this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new oi}static get Default(){return mo}static get NAME(){return uo}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||c.trigger(this._element,go,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(To),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),c.on(this._element,Ki,ka,n=>this.hide(n)),c.on(this._dialog,vo,()=>{c.one(this._element,$a,n=>{n.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(t){if(t&&["A","AREA"].includes(t.target.tagName)&&t.preventDefault(),!this._isShown||this._isTransitioning||c.trigger(this._element,La).defaultPrevented)return;this._isShown=!1;let n=this._isAnimated();n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),c.off(document,si),this._element.classList.remove(bo),c.off(this._element,Ki),c.off(this._dialog,vo),this._queueCallback(()=>this._hideModal(),this._element,n)}dispose(){[window,this._dialog].forEach(t=>c.off(t,X)),this._backdrop.dispose(),super.dispose(),c.off(document,si)}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Wi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t=_(_(_({},mo),V.getDataAttributes(this._element)),typeof t=="object"?t:{}),dt(uo,t,Ca),t}_showElement(t){let e=this._isAnimated(),n=h.findOne(Ma,this._dialog);(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&document.body.appendChild(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,n&&(n.scrollTop=0),e&&re(this._element),this._element.classList.add(bo),this._config.focus&&this._enforceFocus();let o=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,c.trigger(this._element,xa,{relatedTarget:t})};this._queueCallback(o,this._dialog,e)}_enforceFocus(){c.off(document,si),c.on(document,si,t=>{document!==t.target&&this._element!==t.target&&!this._element.contains(t.target)&&this._element.focus()})}_setEscapeEvent(){this._isShown?c.on(this._element,Eo,t=>{this._config.keyboard&&t.key===po?(t.preventDefault(),this.hide()):!this._config.keyboard&&t.key===po&&this._triggerBackdropTransition()}):c.off(this._element,Eo)}_setResizeEvent(){this._isShown?c.on(window,_o,()=>this._adjustDialog()):c.off(window,_o)}_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(To),this._resetAdjustments(),this._scrollBar.reset(),c.trigger(this._element,ho)})}_showBackdrop(t){c.on(this._element,Ki,e=>{if(this._ignoreBackdropClick){this._ignoreBackdropClick=!1;return}e.target===e.currentTarget&&(this._config.backdrop===!0?this.hide():this._config.backdrop==="static"&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains(Ia)}_triggerBackdropTransition(){if(c.trigger(this._element,Da).defaultPrevented)return;let{classList:e,scrollHeight:n,style:o}=this._element,s=n>document.documentElement.clientHeight;!s&&o.overflowY==="hidden"||e.contains(Fi)||(s||(o.overflowY="hidden"),e.add(Fi),this._queueCallback(()=>{e.remove(Fi),s||this._queueCallback(()=>{o.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;(!n&&t&&!U()||n&&!t&&U())&&(this._element.style.paddingLeft=`${e}px`),(n&&!t&&!U()||!n&&t&&U())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){let n=Ut.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t](e)}})}};c.on(document,Pa,ja,function(i){let t=Tt(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),c.one(t,go,n=>{n.defaultPrevented||c.one(t,ho,()=>{Qe(this)&&this.focus()})}),Ut.getOrCreateInstance(t).toggle(this)});Z(Ut);var yo="offcanvas",Va="bs.offcanvas",mt=`.${Va}`,Ao=".data-api",Ha=`load${mt}${Ao}`,Ba="Escape",wo={backdrop:!0,keyboard:!0,scroll:!1},Wa={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},So="show",Oo=".offcanvas.show",Ka=`show${mt}`,Fa=`shown${mt}`,Ua=`hide${mt}`,No=`hidden${mt}`,ri=`focusin${mt}`,Ya=`click${mt}${Ao}`,qa=`click.dismiss${mt}`,Ga=`keydown.dismiss${mt}`,Xa='[data-bs-dismiss="offcanvas"]',za='[data-bs-toggle="offcanvas"]',Yt=class extends tt{constructor(t,e){super(t);this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return yo}static get Default(){return wo}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||c.trigger(this._element,Ka,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new oi().hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(So);let n=()=>{c.trigger(this._element,Fa,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||c.trigger(this._element,Ua).defaultPrevented)return;c.off(document,ri),this._element.blur(),this._isShown=!1,this._element.classList.remove(So),this._backdrop.hide();let e=()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||new oi().reset(),c.trigger(this._element,No)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),super.dispose(),c.off(document,ri)}_getConfig(t){return t=_(_(_({},wo),V.getDataAttributes(this._element)),typeof t=="object"?t:{}),dt(yo,t,Wa),t}_initializeBackDrop(){return new Wi({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){c.off(document,ri),c.on(document,ri,e=>{document!==e.target&&t!==e.target&&!t.contains(e.target)&&t.focus()}),t.focus()}_addEventListeners(){c.on(this._element,qa,Xa,()=>this.hide()),c.on(this._element,Ga,t=>{this._config.keyboard&&t.key===Ba&&this.hide()})}static jQueryInterface(t){return this.each(function(){let e=Yt.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};c.on(document,Ya,za,function(i){let t=Tt(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),se(this))return;c.one(t,No,()=>{Qe(this)&&this.focus()});let e=h.findOne(Oo);e&&e!==t&&Yt.getInstance(e).hide(),Yt.getOrCreateInstance(t).toggle(this)});c.on(window,Ha,()=>h.find(Oo).forEach(i=>Yt.getOrCreateInstance(i).show()));Z(Yt);var Qa=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ja=/^aria-[\w-]*$/i,Za=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,tl=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,el=(i,t)=>{let e=i.nodeName.toLowerCase();if(t.includes(e))return Qa.has(e)?Boolean(Za.test(i.nodeValue)||tl.test(i.nodeValue)):!0;let n=t.filter(o=>o instanceof RegExp);for(let o=0,s=n.length;o<s;o++)if(n[o].test(e))return!0;return!1},il={"*":["class","dir","id","lang","role",Ja],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]};function Co(i,t,e){if(!i.length)return i;if(e&&typeof e=="function")return e(i);let o=new window.DOMParser().parseFromString(i,"text/html"),s=Object.keys(t),r=[].concat(...o.body.querySelectorAll("*"));for(let a=0,l=r.length;a<l;a++){let u=r[a],f=u.nodeName.toLowerCase();if(!s.includes(f)){u.remove();continue}let d=[].concat(...u.attributes),m=[].concat(t["*"]||[],t[f]||[]);d.forEach(p=>{el(p,m)||u.removeAttribute(p.nodeName)})}return o.body.innerHTML}var Lo="tooltip",nl="bs.tooltip",at=`.${nl}`,Do="bs-tooltip",ol=new RegExp(`(^|\\s)${Do}\\S+`,"g"),sl=new Set(["sanitize","allowList","sanitizeFn"]),rl={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},al={AUTO:"auto",TOP:"top",RIGHT:U()?"left":"right",BOTTOM:"bottom",LEFT:U()?"right":"left"},ll={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',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:il,popperConfig:null},cl={HIDE:`hide${at}`,HIDDEN:`hidden${at}`,SHOW:`show${at}`,SHOWN:`shown${at}`,INSERTED:`inserted${at}`,CLICK:`click${at}`,FOCUSIN:`focusin${at}`,FOCUSOUT:`focusout${at}`,MOUSEENTER:`mouseenter${at}`,MOUSELEAVE:`mouseleave${at}`},ai="fade",xo="modal",Ne="show",Ce="show",Ui="out",fl=".tooltip-inner",Le="hover",Yi="focus",ul="click",dl="manual",ht=class extends tt{constructor(t,e){if(typeof ze=="undefined")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 ll}static get NAME(){return Lo}static get Event(){return cl}static get DefaultType(){return rl}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(!!this._isEnabled)if(t){let 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(Ne)){this._leave(null,this);return}this._enter(null,this)}}dispose(){clearTimeout(this._timeout),c.off(this._element.closest(`.${xo}`),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this.isWithContent()&&this._isEnabled))return;let t=c.trigger(this._element,this.constructor.Event.SHOW),e=Pn(this._element),n=e===null?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!n)return;let o=this.getTipElement(),s=Dn(this.constructor.NAME);o.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this.setContent(),this._config.animation&&o.classList.add(ai);let r=typeof this._config.placement=="function"?this._config.placement.call(this,o,this._element):this._config.placement,a=this._getAttachment(r);this._addAttachmentClass(a);let{container:l}=this._config;Vt.set(o,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(l.appendChild(o),c.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Xe(this._element,o,this._getPopperConfig(a)),o.classList.add(Ne);let u=typeof this._config.customClass=="function"?this._config.customClass():this._config.customClass;u&&o.classList.add(...u.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(m=>{c.on(m,"mouseover",Je)});let f=()=>{let m=this._hoverState;this._hoverState=null,c.trigger(this._element,this.constructor.Event.SHOWN),m===Ui&&this._leave(null,this)},d=this.tip.classList.contains(ai);this._queueCallback(f,this.tip,d)}hide(){if(!this._popper)return;let t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||(this._hoverState!==Ce&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),c.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))};if(c.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(Ne),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(s=>c.off(s,"mouseover",Je)),this._activeTrigger[ul]=!1,this._activeTrigger[Yi]=!1,this._activeTrigger[Le]=!1;let o=this.tip.classList.contains(ai);this._queueCallback(e,this.tip,o),this._hoverState=""}update(){this._popper!==null&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;let t=document.createElement("div");return t.innerHTML=this._config.template,this.tip=t.children[0],this.tip}setContent(){let t=this.getTipElement();this.setElementContent(h.findOne(fl,t),this.getTitle()),t.classList.remove(ai,Ne)}setElementContent(t,e){if(t!==null){if(bt(e)){e=oe(e),this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent;return}this._config.html?(this._config.sanitize&&(e=Co(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e}}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t=typeof this._config.title=="function"?this._config.title.call(this._element):this._config.title),t}updateAttachment(t){return t==="right"?"end":t==="left"?"start":t}_initializeOnDelegatedTarget(t,e){let n=this.constructor.DATA_KEY;return e=e||Vt.get(t.delegateTarget,n),e||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),Vt.set(t.delegateTarget,n,e)),e}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(t){let 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:n=>this._handlePopperPlacementChange(n)}],onFirstUpdate:n=>{n.options.placement!==n.placement&&this._handlePopperPlacementChange(n)}};return _(_({},e),typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig)}_addAttachmentClass(t){this.getTipElement().classList.add(`${Do}-${this.updateAttachment(t)}`)}_getAttachment(t){return al[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(e=>{if(e==="click")c.on(this._element,this.constructor.Event.CLICK,this._config.selector,n=>this.toggle(n));else if(e!==dl){let n=e===Le?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,o=e===Le?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;c.on(this._element,n,this._config.selector,s=>this._enter(s)),c.on(this._element,o,this._config.selector,s=>this._leave(s))}}),this._hideModalHandler=()=>{this._element&&this.hide()},c.on(this._element.closest(`.${xo}`),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config=Ve(_({},this._config),{trigger:"manual",selector:""}):this._fixTitle()}_fixTitle(){let t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||e!=="string")&&(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){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusin"?Yi:Le]=!0),e.getTipElement().classList.contains(Ne)||e._hoverState===Ce){e._hoverState=Ce;return}if(clearTimeout(e._timeout),e._hoverState=Ce,!e._config.delay||!e._config.delay.show){e.show();return}e._timeout=setTimeout(()=>{e._hoverState===Ce&&e.show()},e._config.delay.show)}_leave(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusout"?Yi:Le]=e._element.contains(t.relatedTarget)),!e._isWithActiveTrigger()){if(clearTimeout(e._timeout),e._hoverState=Ui,!e._config.delay||!e._config.delay.hide){e.hide();return}e._timeout=setTimeout(()=>{e._hoverState===Ui&&e.hide()},e._config.delay.hide)}}_isWithActiveTrigger(){for(let t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){let e=V.getDataAttributes(this._element);return Object.keys(e).forEach(n=>{sl.has(n)&&delete e[n]}),t=_(_(_({},this.constructor.Default),e),typeof t=="object"&&t?t:{}),t.container=t.container===!1?document.body:oe(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()),dt(Lo,t,this.constructor.DefaultType),t.sanitize&&(t.template=Co(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){let t={};if(this._config)for(let e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){let t=this.getTipElement(),e=t.getAttribute("class").match(ol);e!==null&&e.length>0&&e.map(n=>n.trim()).forEach(n=>t.classList.remove(n))}_handlePopperPlacementChange(t){let{state:e}=t;!e||(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each(function(){let e=ht.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};Z(ht);var pl="popover",ml="bs.popover",lt=`.${ml}`,$o="bs-popover",hl=new RegExp(`(^|\\s)${$o}\\S+`,"g"),gl=Ve(_({},ht.Default),{placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),_l=Ve(_({},ht.DefaultType),{content:"(string|element|function)"}),El={HIDE:`hide${lt}`,HIDDEN:`hidden${lt}`,SHOW:`show${lt}`,SHOWN:`shown${lt}`,INSERTED:`inserted${lt}`,CLICK:`click${lt}`,FOCUSIN:`focusin${lt}`,FOCUSOUT:`focusout${lt}`,MOUSEENTER:`mouseenter${lt}`,MOUSELEAVE:`mouseleave${lt}`},vl="fade",Tl="show",Po=".popover-header",Io=".popover-body",le=class extends ht{static get Default(){return gl}static get NAME(){return pl}static get Event(){return El}static get DefaultType(){return _l}isWithContent(){return this.getTitle()||this._getContent()}getTipElement(){return this.tip?this.tip:(this.tip=super.getTipElement(),this.getTitle()||h.findOne(Po,this.tip).remove(),this._getContent()||h.findOne(Io,this.tip).remove(),this.tip)}setContent(){let t=this.getTipElement();this.setElementContent(h.findOne(Po,t),this.getTitle());let e=this._getContent();typeof e=="function"&&(e=e.call(this._element)),this.setElementContent(h.findOne(Io,t),e),t.classList.remove(vl,Tl)}_addAttachmentClass(t){this.getTipElement().classList.add(`${$o}-${this.updateAttachment(t)}`)}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_cleanTipClass(){let t=this.getTipElement(),e=t.getAttribute("class").match(hl);e!==null&&e.length>0&&e.map(n=>n.trim()).forEach(n=>t.classList.remove(n))}static jQueryInterface(t){return this.each(function(){let e=le.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};Z(le);var qi="scrollspy",bl="bs.scrollspy",li=`.${bl}`,yl=".data-api",Ro={offset:10,method:"auto",target:""},Al={offset:"number",method:"string",target:"(string|element)"},wl=`activate${li}`,Sl=`scroll${li}`,Ol=`load${li}${yl}`,Mo="dropdown-item",qt="active",Nl='[data-bs-spy="scroll"]',Cl=".nav, .list-group",Gi=".nav-link",Ll=".nav-item",jo=".list-group-item",Dl=".dropdown",xl=".dropdown-toggle",$l="offset",ko="position",De=class extends tt{constructor(t,e){super(t);this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} ${Gi}, ${this._config.target} ${jo}, ${this._config.target} .${Mo}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,c.on(this._scrollElement,Sl,()=>this._process()),this.refresh(),this._process()}static get Default(){return Ro}static get NAME(){return qi}refresh(){let t=this._scrollElement===this._scrollElement.window?$l:ko,e=this._config.method==="auto"?t:this._config.method,n=e===ko?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),h.find(this._selector).map(s=>{let r=xi(s),a=r?h.findOne(r):null;if(a){let l=a.getBoundingClientRect();if(l.width||l.height)return[V[e](a).top+n,r]}return null}).filter(s=>s).sort((s,r)=>s[0]-r[0]).forEach(s=>{this._offsets.push(s[0]),this._targets.push(s[1])})}dispose(){c.off(this._scrollElement,li),super.dispose()}_getConfig(t){if(t=_(_(_({},Ro),V.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),typeof t.target!="string"&&bt(t.target)){let{id:e}=t.target;e||(e=Dn(qi),t.target.id=e),t.target=`#${e}`}return dt(qi,t,Al),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(){let t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){let o=this._targets[this._targets.length-1];this._activeTarget!==o&&this._activate(o);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null,this._clear();return}for(let o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(typeof this._offsets[o+1]=="undefined"||t<this._offsets[o+1])&&this._activate(this._targets[o])}_activate(t){this._activeTarget=t,this._clear();let e=this._selector.split(",").map(o=>`${o}[data-bs-target="${t}"],${o}[href="${t}"]`),n=h.findOne(e.join(","));n.classList.contains(Mo)?(h.findOne(xl,n.closest(Dl)).classList.add(qt),n.classList.add(qt)):(n.classList.add(qt),h.parents(n,Cl).forEach(o=>{h.prev(o,`${Gi}, ${jo}`).forEach(s=>s.classList.add(qt)),h.prev(o,Ll).forEach(s=>{h.children(s,Gi).forEach(r=>r.classList.add(qt))})})),c.trigger(this._scrollElement,wl,{relatedTarget:t})}_clear(){h.find(this._selector).filter(t=>t.classList.contains(qt)).forEach(t=>t.classList.remove(qt))}static jQueryInterface(t){return this.each(function(){let e=De.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};c.on(window,Ol,()=>{h.find(Nl).forEach(i=>new De(i))});Z(De);var Pl="tab",Il="bs.tab",xe=`.${Il}`,Rl=".data-api",Ml=`hide${xe}`,jl=`hidden${xe}`,kl=`show${xe}`,Vl=`shown${xe}`,Hl=`click${xe}${Rl}`,Bl="dropdown-menu",$e="active",Vo="fade",Ho="show",Wl=".dropdown",Kl=".nav, .list-group",Bo=".active",Wo=":scope > li > .active",Fl='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ul=".dropdown-toggle",Yl=":scope > .dropdown-menu .active",ce=class extends tt{static get NAME(){return Pl}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains($e))return;let t,e=Tt(this._element),n=this._element.closest(Kl);if(n){let a=n.nodeName==="UL"||n.nodeName==="OL"?Wo:Bo;t=h.find(a,n),t=t[t.length-1]}let o=t?c.trigger(t,Ml,{relatedTarget:this._element}):null;if(c.trigger(this._element,kl,{relatedTarget:t}).defaultPrevented||o!==null&&o.defaultPrevented)return;this._activate(this._element,n);let r=()=>{c.trigger(t,jl,{relatedTarget:this._element}),c.trigger(this._element,Vl,{relatedTarget:t})};e?this._activate(e,e.parentNode,r):r()}_activate(t,e,n){let s=(e&&(e.nodeName==="UL"||e.nodeName==="OL")?h.find(Wo,e):h.children(e,Bo))[0],r=n&&s&&s.classList.contains(Vo),a=()=>this._transitionComplete(t,s,n);s&&r?(s.classList.remove(Ho),this._queueCallback(a,t,!0)):a()}_transitionComplete(t,e,n){if(e){e.classList.remove($e);let s=h.findOne(Yl,e.parentNode);s&&s.classList.remove($e),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!1)}t.classList.add($e),t.getAttribute("role")==="tab"&&t.setAttribute("aria-selected",!0),re(t),t.classList.contains(Vo)&&t.classList.add(Ho);let o=t.parentNode;if(o&&o.nodeName==="LI"&&(o=o.parentNode),o&&o.classList.contains(Bl)){let s=t.closest(Wl);s&&h.find(Ul,s).forEach(r=>r.classList.add($e)),t.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(t){return this.each(function(){let e=ce.getOrCreateInstance(this);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};c.on(document,Hl,Fl,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),se(this))return;ce.getOrCreateInstance(this).show()});Z(ce);var Ko="toast",ql="bs.toast",gt=`.${ql}`,Gl=`click.dismiss${gt}`,Xl=`mouseover${gt}`,zl=`mouseout${gt}`,Ql=`focusin${gt}`,Jl=`focusout${gt}`,Zl=`hide${gt}`,tc=`hidden${gt}`,ec=`show${gt}`,ic=`shown${gt}`,nc="fade",Fo="hide",Pe="show",Uo="showing",oc={animation:"boolean",autohide:"boolean",delay:"number"},Yo={animation:!0,autohide:!0,delay:5e3},sc='[data-bs-dismiss="toast"]',Gt=class extends tt{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 oc}static get Default(){return Yo}static get NAME(){return Ko}show(){if(c.trigger(this._element,ec).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(nc);let e=()=>{this._element.classList.remove(Uo),this._element.classList.add(Pe),c.trigger(this._element,ic),this._maybeScheduleHide()};this._element.classList.remove(Fo),re(this._element),this._element.classList.add(Uo),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this._element.classList.contains(Pe)||c.trigger(this._element,Zl).defaultPrevented)return;let e=()=>{this._element.classList.add(Fo),c.trigger(this._element,tc)};this._element.classList.remove(Pe),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(Pe)&&this._element.classList.remove(Pe),super.dispose()}_getConfig(t){return t=_(_(_({},Yo),V.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),dt(Ko,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;break}if(e){this._clearTimeout();return}let n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){c.on(this._element,Gl,sc,()=>this.hide()),c.on(this._element,Xl,t=>this._onInteraction(t,!0)),c.on(this._element,zl,t=>this._onInteraction(t,!1)),c.on(this._element,Ql,t=>this._onInteraction(t,!0)),c.on(this._element,Jl,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=Gt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};Z(Gt);function Xi(i){return"error"in i}function rc(i){let t=["","null","undefined"];return Array.isArray(i)?i.length>0:typeof i=="string"&&!t.includes(i)||typeof i=="number"||typeof i=="boolean"?!0:typeof i=="object"&&i!==null}function ac(i,t,e){return mi(this,null,function*(){let n=window.CSRF_TOKEN,o=new Headers({"X-CSRFToken":n}),s;typeof e!="undefined"&&(s=JSON.stringify(e),o.set("content-type","application/json"));let r=yield fetch(i,{method:t,body:s,headers:o,credentials:"same-origin"}),a=r.headers.get("Content-Type");if(typeof a=="string"&&a.includes("text"))return{error:yield r.text()};let l=yield r.json();return!r.ok&&Array.isArray(l)?{error:l.join(`
`)}:!r.ok&&"detail"in l?{error:l.detail}:l})}function qo(i){return mi(this,null,function*(){return yield ac(i,"GET")})}function*zi(...i){for(let t of i)for(let e of document.querySelectorAll(t))e!==null&&(yield e)}function Go(i){i.startsWith("data-")||(i=`data-${i}`);for(let t of zi("body > div#netbox-data > *")){let e=t.getAttribute(i);if(rc(e))return e}return null}function lc(i,t){i!==null&&(typeof t=="undefined"?window.getComputedStyle(i).display==="none"?i.style.display="":i.style.display="none":t==="show"?i.style.display="":i.style.display="none")}function Qi(i){for(let t of zi("div.card-overlay"))lc(t,i)}window.Collapse=et;window.Modal=Ut;window.Popover=le;window.Toast=Gt;window.Tooltip=ht;function Ji(i,t,e,n){let o="mdi-alert";switch(i){case"warning":o="mdi-alert";break;case"success":o="mdi-check-circle";break;case"info":o="mdi-information";break;case"danger":o="mdi-alert";break}let s=document.createElement("div");s.setAttribute("class","toast-container position-fixed bottom-0 end-0 m-3");let r=document.createElement("div");r.setAttribute("class",`toast bg-${i}`),r.setAttribute("role","alert"),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true");let a=document.createElement("div");a.setAttribute("class",`toast-header bg-${i} text-body`);let l=document.createElement("i");l.setAttribute("class",`mdi ${o}`);let u=document.createElement("strong");u.setAttribute("class","me-auto ms-1"),u.innerText=t;let f=document.createElement("button");f.setAttribute("type","button"),f.setAttribute("class","btn-close"),f.setAttribute("data-bs-dismiss","toast"),f.setAttribute("aria-label","Close");let d=document.createElement("div");if(d.setAttribute("class","toast-body"),a.appendChild(l),a.appendChild(u),typeof n!="undefined"){let p=document.createElement("small");p.setAttribute("class","text-muted"),a.appendChild(p)}return a.appendChild(f),d.innerText=e.trim(),r.appendChild(a),r.appendChild(d),s.appendChild(r),document.body.appendChild(s),new Gt(r)}function Xo(){Qi("show");let i=Go("data-object-url");i!==null&&qo(i).then(t=>{if(Xi(t)){Ji("danger","Error Fetching Device Config",t.error).show(),console.error(t.error);return}else if(Xi(t.get_config)){Ji("danger","Error Fetching Device Config",t.get_config.error).show(),console.error(t.get_config.error);return}else{let e=["running","startup","candidate"];for(let n of e){let o=document.getElementById(`${n}_config`);if(o!==null){let s=t.get_config[n];typeof s=="string"?o.innerHTML=s:o.innerHTML=JSON.stringify(t.get_config[n],null,2)}}}}).finally(()=>{Qi("hide")})}document.readyState!=="loading"?Xo():document.addEventListener("DOMContentLoaded",Xo);})();
/*!
* Bootstrap v5.0.2 (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)
*/