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/status.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
103 KiB
JavaScript

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