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