mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
31 lines
113 KiB
JavaScript
31 lines
113 KiB
JavaScript
(()=>{var Wo=Object.create;var fe=Object.defineProperty,Bo=Object.defineProperties,Vo=Object.getOwnPropertyDescriptor,Fo=Object.getOwnPropertyDescriptors,zo=Object.getOwnPropertyNames,yn=Object.getOwnPropertySymbols,Uo=Object.getPrototypeOf,bn=Object.prototype.hasOwnProperty,Yo=Object.prototype.propertyIsEnumerable;var Tn=(i,t,e)=>t in i?fe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,O=(i,t)=>{for(var e in t||(t={}))bn.call(t,e)&&Tn(i,e,t[e]);if(yn)for(var e of yn(t))Yo.call(t,e)&&Tn(i,e,t[e]);return i},We=(i,t)=>Bo(i,Fo(t)),An=i=>fe(i,"__esModule",{value:!0});var q=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),Ko=(i,t)=>{An(i);for(var e in t)fe(i,e,{get:t[e],enumerable:!0})},qo=(i,t,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of zo(t))!bn.call(i,n)&&n!=="default"&&fe(i,n,{get:()=>t[n],enumerable:!(e=Vo(t,n))||e.enumerable});return i},Oi=i=>qo(An(fe(i!=null?Wo(Uo(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var wi=(i,t,e)=>new Promise((n,r)=>{var s=u=>{try{a(e.next(u))}catch(h){r(h)}},o=u=>{try{a(e.throw(u))}catch(h){r(h)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((e=e.apply(i,t)).next())});var ln=q((ro,fi)=>{(function(i,t){typeof define=="function"&&define.amd?define(t):typeof fi=="object"&&fi.exports?fi.exports=t():i.EvEmitter=t()})(typeof window!="undefined"?window:ro,function(){"use strict";function i(){}var t=i.prototype;return t.on=function(e,n){if(!(!e||!n)){var r=this._events=this._events||{},s=r[e]=r[e]||[];return s.indexOf(n)==-1&&s.push(n),this}},t.once=function(e,n){if(!(!e||!n)){this.on(e,n);var r=this._onceEvents=this._onceEvents||{},s=r[e]=r[e]||{};return s[n]=!0,this}},t.off=function(e,n){var r=this._events&&this._events[e];if(!(!r||!r.length)){var s=r.indexOf(n);return s!=-1&&r.splice(s,1),this}},t.emitEvent=function(e,n){var r=this._events&&this._events[e];if(!(!r||!r.length)){r=r.slice(0),n=n||[];for(var s=this._onceEvents&&this._onceEvents[e],o=0;o<r.length;o++){var a=r[o],u=s&&s[a];u&&(this.off(e,a),delete s[a]),a.apply(this,n)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},i})});var hi=q((vp,di)=>{(function(i,t){typeof define=="function"&&define.amd?define(t):typeof di=="object"&&di.exports?di.exports=t():i.getSize=t()})(window,function(){"use strict";function t(d){var v=parseFloat(d),E=d.indexOf("%")==-1&&!isNaN(v);return E&&v}function e(){}var n=typeof console=="undefined"?e:function(d){console.error(d)},r=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],s=r.length;function o(){for(var d={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},v=0;v<s;v++){var E=r[v];d[E]=0}return d}function a(d){var v=getComputedStyle(d);return v||n("Style returned "+v+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),v}var u=!1,h;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 v=document.body||document.documentElement;v.appendChild(d);var E=a(d);h=Math.round(t(E.width))==200,_.isBoxSizeOuter=h,v.removeChild(d)}}function _(d){if(f(),typeof d=="string"&&(d=document.querySelector(d)),!(!d||typeof d!="object"||!d.nodeType)){var v=a(d);if(v.display=="none")return o();var E={};E.width=d.offsetWidth,E.height=d.offsetHeight;for(var p=E.isBorderBox=v.boxSizing=="border-box",l=0;l<s;l++){var c=r[l],m=v[c],b=parseFloat(m);E[c]=isNaN(b)?0:b}var y=E.paddingLeft+E.paddingRight,S=E.paddingTop+E.paddingBottom,A=E.marginLeft+E.marginRight,C=E.marginTop+E.marginBottom,w=E.borderLeftWidth+E.borderRightWidth,N=E.borderTopWidth+E.borderBottomWidth,L=p&&h,M=t(v.width);M!==!1&&(E.width=M+(L?0:y+w));var Q=t(v.height);return Q!==!1&&(E.height=Q+(L?0:S+N)),E.innerWidth=E.width-(y+w),E.innerHeight=E.height-(S+N),E.outerWidth=E.width+A,E.outerHeight=E.height+C,E}}return _})});var oo=q((yp,pi)=>{(function(i,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof pi=="object"&&pi.exports?pi.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"],r=0;r<n.length;r++){var s=n[r],o=s+"MatchesSelector";if(e[o])return o}}();return function(n,r){return n[t](r)}})});var so=q((bp,mi)=>{(function(i,t){typeof define=="function"&&define.amd?define(["desandro-matches-selector/matches-selector"],function(e){return t(i,e)}):typeof mi=="object"&&mi.exports?mi.exports=t(i,oo()):i.fizzyUIUtils=t(i,i.matchesSelector)})(window,function(t,e){"use strict";var n={};n.extend=function(o,a){for(var u in a)o[u]=a[u];return o},n.modulo=function(o,a){return(o%a+a)%a};var r=Array.prototype.slice;n.makeArray=function(o){if(Array.isArray(o))return o;if(o==null)return[];var a=typeof o=="object"&&typeof o.length=="number";return a?r.call(o):[o]},n.removeFrom=function(o,a){var u=o.indexOf(a);u!=-1&&o.splice(u,1)},n.getParent=function(o,a){for(;o.parentNode&&o!=document.body;)if(o=o.parentNode,e(o,a))return o},n.getQueryElement=function(o){return typeof o=="string"?document.querySelector(o):o},n.handleEvent=function(o){var a="on"+o.type;this[a]&&this[a](o)},n.filterFindElements=function(o,a){o=n.makeArray(o);var u=[];return o.forEach(function(h){if(h instanceof HTMLElement){if(!a){u.push(h);return}e(h,a)&&u.push(h);for(var f=h.querySelectorAll(a),_=0;_<f.length;_++)u.push(f[_])}}),u},n.debounceMethod=function(o,a,u){u=u||100;var h=o.prototype[a],f=a+"Timeout";o.prototype[a]=function(){var _=this[f];clearTimeout(_);var d=arguments,v=this;this[f]=setTimeout(function(){h.apply(v,d),delete v[f]},u)}},n.docReady=function(o){var a=document.readyState;a=="complete"||a=="interactive"?setTimeout(o):document.addEventListener("DOMContentLoaded",o)},n.toDashed=function(o){return o.replace(/(.)([A-Z])/g,function(a,u,h){return u+"-"+h}).toLowerCase()};var s=t.console;return n.htmlInit=function(o,a){n.docReady(function(){var u=n.toDashed(a),h="data-"+u,f=document.querySelectorAll("["+h+"]"),_=document.querySelectorAll(".js-"+u),d=n.makeArray(f).concat(n.makeArray(_)),v=h+"-options",E=t.jQuery;d.forEach(function(p){var l=p.getAttribute(h)||p.getAttribute(v),c;try{c=l&&JSON.parse(l)}catch(b){s&&s.error("Error parsing "+h+" on "+p.className+": "+b);return}var m=new o(p,c);E&&E.data(p,a,m)})})},n})});var ao=q((Tp,gi)=>{(function(i,t){typeof define=="function"&&define.amd?define(["ev-emitter/ev-emitter","get-size/get-size"],t):typeof gi=="object"&&gi.exports?gi.exports=t(ln(),hi()):(i.Outlayer={},i.Outlayer.Item=t(i.EvEmitter,i.getSize))})(window,function(t,e){"use strict";function n(p){for(var l in p)return!1;return l=null,!0}var r=document.documentElement.style,s=typeof r.transition=="string"?"transition":"WebkitTransition",o=typeof r.transform=="string"?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:o,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"};function h(p,l){!p||(this.element=p,this.layout=l,this.position={x:0,y:0},this._create())}var f=h.prototype=Object.create(t.prototype);f.constructor=h,f._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},f.handleEvent=function(p){var l="on"+p.type;this[l]&&this[l](p)},f.getSize=function(){this.size=e(this.element)},f.css=function(p){var l=this.element.style;for(var c in p){var m=u[c]||c;l[m]=p[c]}},f.getPosition=function(){var p=getComputedStyle(this.element),l=this.layout._getOption("originLeft"),c=this.layout._getOption("originTop"),m=p[l?"left":"right"],b=p[c?"top":"bottom"],y=parseFloat(m),S=parseFloat(b),A=this.layout.size;m.indexOf("%")!=-1&&(y=y/100*A.width),b.indexOf("%")!=-1&&(S=S/100*A.height),y=isNaN(y)?0:y,S=isNaN(S)?0:S,y-=l?A.paddingLeft:A.paddingRight,S-=c?A.paddingTop:A.paddingBottom,this.position.x=y,this.position.y=S},f.layoutPosition=function(){var p=this.layout.size,l={},c=this.layout._getOption("originLeft"),m=this.layout._getOption("originTop"),b=c?"paddingLeft":"paddingRight",y=c?"left":"right",S=c?"right":"left",A=this.position.x+p[b];l[y]=this.getXValue(A),l[S]="";var C=m?"paddingTop":"paddingBottom",w=m?"top":"bottom",N=m?"bottom":"top",L=this.position.y+p[C];l[w]=this.getYValue(L),l[N]="",this.css(l),this.emitEvent("layout",[this])},f.getXValue=function(p){var l=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!l?p/this.layout.size.width*100+"%":p+"px"},f.getYValue=function(p){var l=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&l?p/this.layout.size.height*100+"%":p+"px"},f._transitionTo=function(p,l){this.getPosition();var c=this.position.x,m=this.position.y,b=p==this.position.x&&l==this.position.y;if(this.setPosition(p,l),b&&!this.isTransitioning){this.layoutPosition();return}var y=p-c,S=l-m,A={};A.transform=this.getTranslate(y,S),this.transition({to:A,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},f.getTranslate=function(p,l){var c=this.layout._getOption("originLeft"),m=this.layout._getOption("originTop");return p=c?p:-p,l=m?l:-l,"translate3d("+p+"px, "+l+"px, 0)"},f.goTo=function(p,l){this.setPosition(p,l),this.layoutPosition()},f.moveTo=f._transitionTo,f.setPosition=function(p,l){this.position.x=parseFloat(p),this.position.y=parseFloat(l)},f._nonTransition=function(p){this.css(p.to),p.isCleaning&&this._removeStyles(p.to);for(var l in p.onTransitionEnd)p.onTransitionEnd[l].call(this)},f.transition=function(p){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(p);return}var l=this._transn;for(var c in p.onTransitionEnd)l.onEnd[c]=p.onTransitionEnd[c];for(c in p.to)l.ingProperties[c]=!0,p.isCleaning&&(l.clean[c]=!0);if(p.from){this.css(p.from);var m=this.element.offsetHeight;m=null}this.enableTransition(p.to),this.css(p.to),this.isTransitioning=!0};function _(p){return p.replace(/([A-Z])/g,function(l){return"-"+l.toLowerCase()})}var d="opacity,"+_(o);f.enableTransition=function(){if(!this.isTransitioning){var p=this.layout.options.transitionDuration;p=typeof p=="number"?p+"ms":p,this.css({transitionProperty:d,transitionDuration:p,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},f.onwebkitTransitionEnd=function(p){this.ontransitionend(p)},f.onotransitionend=function(p){this.ontransitionend(p)};var v={"-webkit-transform":"transform"};f.ontransitionend=function(p){if(p.target===this.element){var l=this._transn,c=v[p.propertyName]||p.propertyName;if(delete l.ingProperties[c],n(l.ingProperties)&&this.disableTransition(),c in l.clean&&(this.element.style[p.propertyName]="",delete l.clean[c]),c in l.onEnd){var m=l.onEnd[c];m.call(this),delete l.onEnd[c]}this.emitEvent("transitionEnd",[this])}},f.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},f._removeStyles=function(p){var l={};for(var c in p)l[c]="";this.css(l)};var E={transitionProperty:"",transitionDuration:"",transitionDelay:""};return f.removeTransitionStyles=function(){this.css(E)},f.stagger=function(p){p=isNaN(p)?0:p,this.staggerDelay=p+"ms"},f.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},f.remove=function(){if(!s||!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 p=this.layout.options,l={},c=this.getHideRevealTransitionEndProperty("visibleStyle");l[c]=this.onRevealTransitionEnd,this.transition({from:p.hiddenStyle,to:p.visibleStyle,isCleaning:!0,onTransitionEnd:l})},f.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.getHideRevealTransitionEndProperty=function(p){var l=this.layout.options[p];if(l.opacity)return"opacity";for(var c in l)return c},f.hide=function(){this.isHidden=!0,this.css({display:""});var p=this.layout.options,l={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");l[c]=this.onHideTransitionEnd,this.transition({from:p.visibleStyle,to:p.hiddenStyle,isCleaning:!0,onTransitionEnd:l})},f.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h})});var lo=q((Ap,_i)=>{(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,r,s){return t(i,e,n,r,s)}):typeof _i=="object"&&_i.exports?_i.exports=t(i,ln(),hi(),so(),ao()):i.Outlayer=t(i,i.EvEmitter,i.getSize,i.fizzyUIUtils,i.Outlayer.Item)})(window,function(t,e,n,r,s){"use strict";var o=t.console,a=t.jQuery,u=function(){},h=0,f={};function _(l,c){var m=r.getQueryElement(l);if(!m){o&&o.error("Bad element for "+this.constructor.namespace+": "+(m||l));return}this.element=m,a&&(this.$element=a(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(c);var b=++h;this.element.outlayerGUID=b,f[b]=this,this._create();var y=this._getOption("initLayout");y&&this.layout()}_.namespace="outlayer",_.Item=s,_.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=_.prototype;r.extend(d,e.prototype),d.option=function(l){r.extend(this.options,l)},d._getOption=function(l){var c=this.constructor.compatOptions[l];return c&&this.options[c]!==void 0?this.options[c]:this.options[l]},_.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),r.extend(this.element.style,this.options.containerStyle);var l=this._getOption("resize");l&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(l){for(var c=this._filterFindItemElements(l),m=this.constructor.Item,b=[],y=0;y<c.length;y++){var S=c[y],A=new m(S,this);b.push(A)}return b},d._filterFindItemElements=function(l){return r.filterFindElements(l,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(l){return l.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var l=this._getOption("layoutInstant"),c=l!==void 0?l:!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(l,c){var m=this.options[l],b;m?(typeof m=="string"?b=this.element.querySelector(m):m instanceof HTMLElement&&(b=m),this[l]=b?n(b)[c]:m):this[l]=0},d.layoutItems=function(l,c){l=this._getItemsForLayout(l),this._layoutItems(l,c),this._postLayout()},d._getItemsForLayout=function(l){return l.filter(function(c){return!c.isIgnored})},d._layoutItems=function(l,c){if(this._emitCompleteOnItems("layout",l),!(!l||!l.length)){var m=[];l.forEach(function(b){var y=this._getItemLayoutPosition(b);y.item=b,y.isInstant=c||b.isLayoutInstant,m.push(y)},this),this._processLayoutQueue(m)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(l){this.updateStagger(),l.forEach(function(c,m){this._positionItem(c.item,c.x,c.y,c.isInstant,m)},this)},d.updateStagger=function(){var l=this.options.stagger;if(l==null){this.stagger=0;return}return this.stagger=p(l),this.stagger},d._positionItem=function(l,c,m,b,y){b?l.goTo(c,m):(l.stagger(y*this.stagger),l.moveTo(c,m))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var l=this._getOption("resizeContainer");if(!!l){var c=this._getContainerSize();c&&(this._setContainerMeasure(c.width,!0),this._setContainerMeasure(c.height,!1))}},d._getContainerSize=u,d._setContainerMeasure=function(l,c){if(l!==void 0){var m=this.size;m.isBorderBox&&(l+=c?m.paddingLeft+m.paddingRight+m.borderLeftWidth+m.borderRightWidth:m.paddingBottom+m.paddingTop+m.borderTopWidth+m.borderBottomWidth),l=Math.max(l,0),this.element.style[c?"width":"height"]=l+"px"}},d._emitCompleteOnItems=function(l,c){var m=this;function b(){m.dispatchEvent(l+"Complete",null,[c])}var y=c.length;if(!c||!y){b();return}var S=0;function A(){S++,S==y&&b()}c.forEach(function(C){C.once(l,A)})},d.dispatchEvent=function(l,c,m){var b=c?[c].concat(m):m;if(this.emitEvent(l,b),a)if(this.$element=this.$element||a(this.element),c){var y=a.Event(c);y.type=l,this.$element.trigger(y,m)}else this.$element.trigger(l,m)},d.ignore=function(l){var c=this.getItem(l);c&&(c.isIgnored=!0)},d.unignore=function(l){var c=this.getItem(l);c&&delete c.isIgnored},d.stamp=function(l){l=this._find(l),!!l&&(this.stamps=this.stamps.concat(l),l.forEach(this.ignore,this))},d.unstamp=function(l){l=this._find(l),!!l&&l.forEach(function(c){r.removeFrom(this.stamps,c),this.unignore(c)},this)},d._find=function(l){if(!!l)return typeof l=="string"&&(l=this.element.querySelectorAll(l)),l=r.makeArray(l),l},d._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var l=this.element.getBoundingClientRect(),c=this.size;this._boundingRect={left:l.left+c.paddingLeft+c.borderLeftWidth,top:l.top+c.paddingTop+c.borderTopWidth,right:l.right-(c.paddingRight+c.borderRightWidth),bottom:l.bottom-(c.paddingBottom+c.borderBottomWidth)}},d._manageStamp=u,d._getElementOffset=function(l){var c=l.getBoundingClientRect(),m=this._boundingRect,b=n(l),y={left:c.left-m.left-b.marginLeft,top:c.top-m.top-b.marginTop,right:m.right-c.right-b.marginRight,bottom:m.bottom-c.bottom-b.marginBottom};return y},d.handleEvent=r.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()},r.debounceMethod(_,"onresize",100),d.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout()},d.needsResizeLayout=function(){var l=n(this.element),c=this.size&&l;return c&&l.innerWidth!==this.size.innerWidth},d.addItems=function(l){var c=this._itemize(l);return c.length&&(this.items=this.items.concat(c)),c},d.appended=function(l){var c=this.addItems(l);!c.length||(this.layoutItems(c,!0),this.reveal(c))},d.prepended=function(l){var c=this._itemize(l);if(!!c.length){var m=this.items.slice(0);this.items=c.concat(m),this._resetLayout(),this._manageStamps(),this.layoutItems(c,!0),this.reveal(c),this.layoutItems(m)}},d.reveal=function(l){if(this._emitCompleteOnItems("reveal",l),!(!l||!l.length)){var c=this.updateStagger();l.forEach(function(m,b){m.stagger(b*c),m.reveal()})}},d.hide=function(l){if(this._emitCompleteOnItems("hide",l),!(!l||!l.length)){var c=this.updateStagger();l.forEach(function(m,b){m.stagger(b*c),m.hide()})}},d.revealItemElements=function(l){var c=this.getItems(l);this.reveal(c)},d.hideItemElements=function(l){var c=this.getItems(l);this.hide(c)},d.getItem=function(l){for(var c=0;c<this.items.length;c++){var m=this.items[c];if(m.element==l)return m}},d.getItems=function(l){l=r.makeArray(l);var c=[];return l.forEach(function(m){var b=this.getItem(m);b&&c.push(b)},this),c},d.remove=function(l){var c=this.getItems(l);this._emitCompleteOnItems("remove",c),!(!c||!c.length)&&c.forEach(function(m){m.remove(),r.removeFrom(this.items,m)},this)},d.destroy=function(){var l=this.element.style;l.height="",l.position="",l.width="",this.items.forEach(function(m){m.destroy()}),this.unbindResize();var c=this.element.outlayerGUID;delete f[c],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},_.data=function(l){l=r.getQueryElement(l);var c=l&&l.outlayerGUID;return c&&f[c]},_.create=function(l,c){var m=v(_);return m.defaults=r.extend({},_.defaults),r.extend(m.defaults,c),m.compatOptions=r.extend({},_.compatOptions),m.namespace=l,m.data=_.data,m.Item=v(s),r.htmlInit(m,l),a&&a.bridget&&a.bridget(l,m),m};function v(l){function c(){l.apply(this,arguments)}return c.prototype=Object.create(l.prototype),c.prototype.constructor=c,c}var E={ms:1,s:1e3};function p(l){if(typeof l=="number")return l;var c=l.match(/(^\d*\.?\d*)(\w*)/),m=c&&c[1],b=c&&c[2];if(!m.length)return 0;m=parseFloat(m);var y=E[b]||1;return m*y}return _.Item=s,_})});var co=q((Sp,Ei)=>{(function(i,t){typeof define=="function"&&define.amd?define(["outlayer/outlayer","get-size/get-size"],t):typeof Ei=="object"&&Ei.exports?Ei.exports=t(lo(),hi()):i.Masonry=t(i.Outlayer,i.getSize)})(window,function(t,e){"use strict";var n=t.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var s=0;s<this.cols;s++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var s=this.items[0],o=s&&s.element;this.columnWidth=o&&e(o).outerWidth||this.containerWidth}var a=this.columnWidth+=this.gutter,u=this.containerWidth+this.gutter,h=u/a,f=a-u%a,_=f&&f<1?"round":"floor";h=Math[_](h),this.cols=Math.max(h,1)},r.getContainerWidth=function(){var s=this._getOption("fitWidth"),o=s?this.element.parentNode:this.element,a=e(o);this.containerWidth=a&&a.innerWidth},r._getItemLayoutPosition=function(s){s.getSize();var o=s.size.outerWidth%this.columnWidth,a=o&&o<1?"round":"ceil",u=Math[a](s.size.outerWidth/this.columnWidth);u=Math.min(u,this.cols);for(var h=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",f=this[h](u,s),_={x:this.columnWidth*f.col,y:f.y},d=f.y+s.size.outerHeight,v=u+f.col,E=f.col;E<v;E++)this.colYs[E]=d;return _},r._getTopColPosition=function(s){var o=this._getTopColGroup(s),a=Math.min.apply(Math,o);return{col:o.indexOf(a),y:a}},r._getTopColGroup=function(s){if(s<2)return this.colYs;for(var o=[],a=this.cols+1-s,u=0;u<a;u++)o[u]=this._getColGroupY(u,s);return o},r._getColGroupY=function(s,o){if(o<2)return this.colYs[s];var a=this.colYs.slice(s,s+o);return Math.max.apply(Math,a)},r._getHorizontalColPosition=function(s,o){var a=this.horizontalColIndex%this.cols,u=s>1&&a+s>this.cols;a=u?0:a;var h=o.size.outerWidth&&o.size.outerHeight;return this.horizontalColIndex=h?a+s:this.horizontalColIndex,{col:a,y:this._getColGroupY(a,s)}},r._manageStamp=function(s){var o=e(s),a=this._getElementOffset(s),u=this._getOption("originLeft"),h=u?a.left:a.right,f=h+o.outerWidth,_=Math.floor(h/this.columnWidth);_=Math.max(0,_);var d=Math.floor(f/this.columnWidth);d-=f%this.columnWidth?0:1,d=Math.min(this.cols-1,d);for(var v=this._getOption("originTop"),E=(v?a.top:a.bottom)+o.outerHeight,p=_;p<=d;p++)this.colYs[p]=Math.max(E,this.colYs[p])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var s={height:this.maxY};return this._getOption("fitWidth")&&(s.width=this._getContainerFitWidth()),s},r._getContainerFitWidth=function(){for(var s=0,o=this.cols;--o&&this.colYs[o]===0;)s++;return(this.cols-s)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var s=this.containerWidth;return this.getContainerWidth(),s!=this.containerWidth},n})});var uo=q(cn=>{"use strict";cn.parse=Xc;cn.serialize=Qc;var Kc=decodeURIComponent,qc=encodeURIComponent,Gc=/; */,vi=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Xc(i,t){if(typeof i!="string")throw new TypeError("argument str must be a string");for(var e={},n=t||{},r=i.split(Gc),s=n.decode||Kc,o=0;o<r.length;o++){var a=r[o],u=a.indexOf("=");if(!(u<0)){var h=a.substr(0,u).trim(),f=a.substr(++u,a.length).trim();f[0]=='"'&&(f=f.slice(1,-1)),e[h]==null&&(e[h]=Zc(f,s))}}return e}function Qc(i,t,e){var n=e||{},r=n.encode||qc;if(typeof r!="function")throw new TypeError("option encode is invalid");if(!vi.test(i))throw new TypeError("argument name is invalid");var s=r(t);if(s&&!vi.test(s))throw new TypeError("argument val is invalid");var o=i+"="+s;if(n.maxAge!=null){var a=n.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(n.domain){if(!vi.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain="+n.domain}if(n.path){if(!vi.test(n.path))throw new TypeError("option path is invalid");o+="; Path="+n.path}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function Zc(i,t){try{return t(i)}catch(e){return i}}});var ho=q((wp,fo)=>{"use strict";fo.exports=i=>encodeURIComponent(i).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var Eo=q((Cp,_o)=>{"use strict";var po="%[a-f0-9]{2}",mo=new RegExp(po,"gi"),go=new RegExp("("+po+")+","gi");function un(i,t){try{return decodeURIComponent(i.join(""))}catch(r){}if(i.length===1)return i;t=t||1;var e=i.slice(0,t),n=i.slice(t);return Array.prototype.concat.call([],un(e),un(n))}function Jc(i){try{return decodeURIComponent(i)}catch(n){for(var t=i.match(mo),e=1;e<t.length;e++)i=un(t,e).join(""),t=i.match(mo);return i}}function tu(i){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},e=go.exec(i);e;){try{t[e[0]]=decodeURIComponent(e[0])}catch(a){var n=Jc(e[0]);n!==e[0]&&(t[e[0]]=n)}e=go.exec(i)}t["%C2"]="\uFFFD";for(var r=Object.keys(t),s=0;s<r.length;s++){var o=r[s];i=i.replace(new RegExp(o,"g"),t[o])}return i}_o.exports=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch(t){return tu(i)}}});var yo=q((Lp,vo)=>{"use strict";vo.exports=(i,t)=>{if(!(typeof i=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[i];let e=i.indexOf(t);return e===-1?[i]:[i.slice(0,e),i.slice(e+t.length)]}});var To=q((Np,bo)=>{"use strict";bo.exports=function(i,t){for(var e={},n=Object.keys(i),r=Array.isArray(t),s=0;s<n.length;s++){var o=n[s],a=i[o];(r?t.indexOf(o)!==-1:t(o,a,i))&&(e[o]=a)}return e}});var xo=q(K=>{"use strict";var eu=ho(),iu=Eo(),Ao=yo(),nu=To(),ru=i=>i==null;function ou(i){switch(i.arrayFormat){case"index":return t=>(e,n)=>{let r=e.length;return n===void 0||i.skipNull&&n===null||i.skipEmptyString&&n===""?e:n===null?[...e,[B(t,i),"[",r,"]"].join("")]:[...e,[B(t,i),"[",B(r,i),"]=",B(n,i)].join("")]};case"bracket":return t=>(e,n)=>n===void 0||i.skipNull&&n===null||i.skipEmptyString&&n===""?e:n===null?[...e,[B(t,i),"[]"].join("")]:[...e,[B(t,i),"[]=",B(n,i)].join("")];case"comma":case"separator":return t=>(e,n)=>n==null||n.length===0?e:e.length===0?[[B(t,i),"=",B(n,i)].join("")]:[[e,B(n,i)].join(i.arrayFormatSeparator)];default:return t=>(e,n)=>n===void 0||i.skipNull&&n===null||i.skipEmptyString&&n===""?e:n===null?[...e,B(t,i)]:[...e,[B(t,i),"=",B(n,i)].join("")]}}function su(i){let t;switch(i.arrayFormat){case"index":return(e,n,r)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case"bracket":return(e,n,r)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[].concat(r[e],n)};case"comma":case"separator":return(e,n,r)=>{let s=typeof n=="string"&&n.includes(i.arrayFormatSeparator),o=typeof n=="string"&&!s&&Kt(n,i).includes(i.arrayFormatSeparator);n=o?Kt(n,i):n;let a=s||o?n.split(i.arrayFormatSeparator).map(u=>Kt(u,i)):n===null?n:Kt(n,i);r[e]=a};default:return(e,n,r)=>{if(r[e]===void 0){r[e]=n;return}r[e]=[].concat(r[e],n)}}}function So(i){if(typeof i!="string"||i.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function B(i,t){return t.encode?t.strict?eu(i):encodeURIComponent(i):i}function Kt(i,t){return t.decode?iu(i):i}function Oo(i){return Array.isArray(i)?i.sort():typeof i=="object"?Oo(Object.keys(i)).sort((t,e)=>Number(t)-Number(e)).map(t=>i[t]):i}function wo(i){let t=i.indexOf("#");return t!==-1&&(i=i.slice(0,t)),i}function au(i){let t="",e=i.indexOf("#");return e!==-1&&(t=i.slice(e)),t}function Co(i){i=wo(i);let t=i.indexOf("?");return t===-1?"":i.slice(t+1)}function Lo(i,t){return t.parseNumbers&&!Number.isNaN(Number(i))&&typeof i=="string"&&i.trim()!==""?i=Number(i):t.parseBooleans&&i!==null&&(i.toLowerCase()==="true"||i.toLowerCase()==="false")&&(i=i.toLowerCase()==="true"),i}function No(i,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),So(t.arrayFormatSeparator);let e=su(t),n=Object.create(null);if(typeof i!="string"||(i=i.trim().replace(/^[?#&]/,""),!i))return n;for(let r of i.split("&")){if(r==="")continue;let[s,o]=Ao(t.decode?r.replace(/\+/g," "):r,"=");o=o===void 0?null:["comma","separator"].includes(t.arrayFormat)?o:Kt(o,t),e(Kt(s,t),o,n)}for(let r of Object.keys(n)){let s=n[r];if(typeof s=="object"&&s!==null)for(let o of Object.keys(s))s[o]=Lo(s[o],t);else n[r]=Lo(s,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((r,s)=>{let o=n[s];return Boolean(o)&&typeof o=="object"&&!Array.isArray(o)?r[s]=Oo(o):r[s]=o,r},Object.create(null))}K.extract=Co;K.parse=No;K.stringify=(i,t)=>{if(!i)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),So(t.arrayFormatSeparator);let e=o=>t.skipNull&&ru(i[o])||t.skipEmptyString&&i[o]==="",n=ou(t),r={};for(let o of Object.keys(i))e(o)||(r[o]=i[o]);let s=Object.keys(r);return t.sort!==!1&&s.sort(t.sort),s.map(o=>{let a=i[o];return a===void 0?"":a===null?B(o,t):Array.isArray(a)?a.reduce(n(o),[]).join("&"):B(o,t)+"="+B(a,t)}).filter(o=>o.length>0).join("&")};K.parseUrl=(i,t)=>{t=Object.assign({decode:!0},t);let[e,n]=Ao(i,"#");return Object.assign({url:e.split("?")[0]||"",query:No(Co(i),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Kt(n,t)}:{})};K.stringifyUrl=(i,t)=>{t=Object.assign({encode:!0,strict:!0},t);let e=wo(i.url).split("?")[0]||"",n=K.extract(i.url),r=K.parse(n,{sort:!1}),s=Object.assign(r,i.query),o=K.stringify(s,t);o&&(o=`?${o}`);let a=au(i.url);return i.fragmentIdentifier&&(a=`#${B(i.fragmentIdentifier,t)}`),`${e}${o}${a}`};K.pick=(i,t,e)=>{e=Object.assign({parseFragmentIdentifier:!0},e);let{url:n,query:r,fragmentIdentifier:s}=K.parseUrl(i,e);return K.stringifyUrl({url:n,query:nu(r,t),fragmentIdentifier:s},e)};K.exclude=(i,t,e)=>{let n=Array.isArray(t)?r=>!t.includes(r):(r,s)=>!t(r,s);return K.pick(i,n,e)}});var Ze={};Ko(Ze,{afterMain:()=>Nn,afterRead:()=>wn,afterWrite:()=>In,applyStyles:()=>Zt,arrow:()=>Fe,auto:()=>de,basePlacements:()=>ut,beforeMain:()=>Cn,beforeRead:()=>Sn,beforeWrite:()=>xn,bottom:()=>$,clippingParents:()=>Ci,computeStyles:()=>Jt,createPopper:()=>Qe,createPopperBase:()=>Wn,createPopperLite:()=>Bn,detectOverflow:()=>F,end:()=>he,eventListeners:()=>te,flip:()=>Ke,hide:()=>qe,left:()=>P,main:()=>Ln,modifierPhases:()=>Ni,offset:()=>Ge,placements:()=>me,popper:()=>Lt,popperGenerator:()=>$t,popperOffsets:()=>ne,preventOverflow:()=>Xe,read:()=>On,reference:()=>Li,right:()=>I,start:()=>ot,top:()=>x,variationPlacements:()=>Be,viewport:()=>pe,write:()=>Dn});var x="top",$="bottom",I="right",P="left",de="auto",ut=[x,$,I,P],ot="start",he="end",Ci="clippingParents",pe="viewport",Lt="popper",Li="reference",Be=ut.reduce(function(i,t){return i.concat([t+"-"+ot,t+"-"+he])},[]),me=[].concat(ut,[de]).reduce(function(i,t){return i.concat([t,t+"-"+ot,t+"-"+he])},[]),Sn="beforeRead",On="read",wn="afterRead",Cn="beforeMain",Ln="main",Nn="afterMain",xn="beforeWrite",Dn="write",In="afterWrite",Ni=[Sn,On,wn,Cn,Ln,Nn,xn,Dn,In];function j(i){return i?(i.nodeName||"").toLowerCase():null}function D(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var t=i.ownerDocument;return t&&t.defaultView||window}return i}function ft(i){var t=D(i).Element;return i instanceof t||i instanceof Element}function R(i){var t=D(i).HTMLElement;return i instanceof t||i instanceof HTMLElement}function Ve(i){if(typeof ShadowRoot=="undefined")return!1;var t=D(i).ShadowRoot;return i instanceof t||i instanceof ShadowRoot}function Go(i){var t=i.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},s=t.elements[e];!R(s)||!j(s)||(Object.assign(s.style,n),Object.keys(r).forEach(function(o){var a=r[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function Xo(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 r=t.elements[n],s=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:e[n]),a=o.reduce(function(u,h){return u[h]="",u},{});!R(r)||!j(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}var Zt={name:"applyStyles",enabled:!0,phase:"write",fn:Go,effect:Xo,requires:["computeStyles"]};function k(i){return i.split("-")[0]}var Et=Math.round;function Z(i,t){t===void 0&&(t=!1);var e=i.getBoundingClientRect(),n=1,r=1;return R(i)&&t&&(n=e.width/i.offsetWidth||1,r=e.height/i.offsetHeight||1),{width:Et(e.width/n),height:Et(e.height/r),top:Et(e.top/r),right:Et(e.right/n),bottom:Et(e.bottom/r),left:Et(e.left/n),x:Et(e.left/n),y:Et(e.top/r)}}function Nt(i){var t=Z(i),e=i.offsetWidth,n=i.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:i.offsetLeft,y:i.offsetTop,width:e,height:n}}function ge(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t))return!0;if(e&&Ve(e)){var n=t;do{if(n&&i.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function V(i){return D(i).getComputedStyle(i)}function xi(i){return["table","td","th"].indexOf(j(i))>=0}function W(i){return((ft(i)?i.ownerDocument:i.document)||window.document).documentElement}function dt(i){return j(i)==="html"?i:i.assignedSlot||i.parentNode||(Ve(i)?i.host:null)||W(i)}function Pn(i){return!R(i)||V(i).position==="fixed"?null:i.offsetParent}function Qo(i){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,e=navigator.userAgent.indexOf("Trident")!==-1;if(e&&R(i)){var n=V(i);if(n.position==="fixed")return null}for(var r=dt(i);R(r)&&["html","body"].indexOf(j(r))<0;){var s=V(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function nt(i){for(var t=D(i),e=Pn(i);e&&xi(e)&&V(e).position==="static";)e=Pn(e);return e&&(j(e)==="html"||j(e)==="body"&&V(e).position==="static")?t:e||Qo(i)||t}function xt(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}var J=Math.max,vt=Math.min,_e=Math.round;function Dt(i,t,e){return J(i,vt(t,e))}function Ee(){return{top:0,right:0,bottom:0,left:0}}function ve(i){return Object.assign({},Ee(),i)}function ye(i,t){return t.reduce(function(e,n){return e[n]=i,e},{})}var Zo=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,ve(typeof t!="number"?t:ye(t,ut))};function Jo(i){var t,e=i.state,n=i.name,r=i.options,s=e.elements.arrow,o=e.modifiersData.popperOffsets,a=k(e.placement),u=xt(a),h=[P,I].indexOf(a)>=0,f=h?"height":"width";if(!(!s||!o)){var _=Zo(r.padding,e),d=Nt(s),v=u==="y"?x:P,E=u==="y"?$:I,p=e.rects.reference[f]+e.rects.reference[u]-o[u]-e.rects.popper[f],l=o[u]-e.rects.reference[u],c=nt(s),m=c?u==="y"?c.clientHeight||0:c.clientWidth||0:0,b=p/2-l/2,y=_[v],S=m-d[f]-_[E],A=m/2-d[f]/2+b,C=Dt(y,A,S),w=u;e.modifiersData[n]=(t={},t[w]=C,t.centerOffset=C-A,t)}}function ts(i){var t=i.state,e=i.options,n=e.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!ge(t.elements.popper,r)||(t.elements.arrow=r))}var Fe={name:"arrow",enabled:!0,phase:"main",fn:Jo,effect:ts,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var es={top:"auto",right:"auto",bottom:"auto",left:"auto"};function is(i){var t=i.x,e=i.y,n=window,r=n.devicePixelRatio||1;return{x:_e(_e(t*r)/r)||0,y:_e(_e(e*r)/r)||0}}function Rn(i){var t,e=i.popper,n=i.popperRect,r=i.placement,s=i.offsets,o=i.position,a=i.gpuAcceleration,u=i.adaptive,h=i.roundOffsets,f=h===!0?is(s):typeof h=="function"?h(s):s,_=f.x,d=_===void 0?0:_,v=f.y,E=v===void 0?0:v,p=s.hasOwnProperty("x"),l=s.hasOwnProperty("y"),c=P,m=x,b=window;if(u){var y=nt(e),S="clientHeight",A="clientWidth";y===D(e)&&(y=W(e),V(y).position!=="static"&&(S="scrollHeight",A="scrollWidth")),y=y,r===x&&(m=$,E-=y[S]-n.height,E*=a?1:-1),r===P&&(c=I,d-=y[A]-n.width,d*=a?1:-1)}var C=Object.assign({position:o},u&&es);if(a){var w;return Object.assign({},C,(w={},w[m]=l?"0":"",w[c]=p?"0":"",w.transform=(b.devicePixelRatio||1)<2?"translate("+d+"px, "+E+"px)":"translate3d("+d+"px, "+E+"px, 0)",w))}return Object.assign({},C,(t={},t[m]=l?E+"px":"",t[c]=p?d+"px":"",t.transform="",t))}function ns(i){var t=i.state,e=i.options,n=e.gpuAcceleration,r=n===void 0?!0:n,s=e.adaptive,o=s===void 0?!0:s,a=e.roundOffsets,u=a===void 0?!0:a;if(!1)var h;var f={placement:k(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rn(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rn(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 Jt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ns,data:{}};var ze={passive:!0};function rs(i){var t=i.state,e=i.instance,n=i.options,r=n.scroll,s=r===void 0?!0:r,o=n.resize,a=o===void 0?!0:o,u=D(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&h.forEach(function(f){f.addEventListener("scroll",e.update,ze)}),a&&u.addEventListener("resize",e.update,ze),function(){s&&h.forEach(function(f){f.removeEventListener("scroll",e.update,ze)}),a&&u.removeEventListener("resize",e.update,ze)}}var te={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rs,data:{}};var os={left:"right",right:"left",bottom:"top",top:"bottom"};function ee(i){return i.replace(/left|right|bottom|top/g,function(t){return os[t]})}var ss={start:"end",end:"start"};function Ue(i){return i.replace(/start|end/g,function(t){return ss[t]})}function It(i){var t=D(i),e=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:e,scrollTop:n}}function Pt(i){return Z(W(i)).left+It(i).scrollLeft}function Di(i){var t=D(i),e=W(i),n=t.visualViewport,r=e.clientWidth,s=e.clientHeight,o=0,a=0;return n&&(r=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,a=n.offsetTop)),{width:r,height:s,x:o+Pt(i),y:a}}function Ii(i){var t,e=W(i),n=It(i),r=(t=i.ownerDocument)==null?void 0:t.body,s=J(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=J(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+Pt(i),u=-n.scrollTop;return V(r||e).direction==="rtl"&&(a+=J(e.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:u}}function Rt(i){var t=V(i),e=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+r+n)}function Ye(i){return["html","body","#document"].indexOf(j(i))>=0?i.ownerDocument.body:R(i)&&Rt(i)?i:Ye(dt(i))}function yt(i,t){var e;t===void 0&&(t=[]);var n=Ye(i),r=n===((e=i.ownerDocument)==null?void 0:e.body),s=D(n),o=r?[s].concat(s.visualViewport||[],Rt(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(yt(dt(o)))}function ie(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function as(i){var t=Z(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 $n(i,t){return t===pe?ie(Di(i)):R(t)?as(t):ie(Ii(W(i)))}function ls(i){var t=yt(dt(i)),e=["absolute","fixed"].indexOf(V(i).position)>=0,n=e&&R(i)?nt(i):i;return ft(n)?t.filter(function(r){return ft(r)&&ge(r,n)&&j(r)!=="body"}):[]}function Pi(i,t,e){var n=t==="clippingParents"?ls(i):[].concat(t),r=[].concat(n,[e]),s=r[0],o=r.reduce(function(a,u){var h=$n(i,u);return a.top=J(h.top,a.top),a.right=vt(h.right,a.right),a.bottom=vt(h.bottom,a.bottom),a.left=J(h.left,a.left),a},$n(i,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function st(i){return i.split("-")[1]}function be(i){var t=i.reference,e=i.element,n=i.placement,r=n?k(n):null,s=n?st(n):null,o=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,u;switch(r){case x:u={x:o,y:t.y-e.height};break;case $:u={x:o,y:t.y+t.height};break;case I:u={x:t.x+t.width,y:a};break;case P:u={x:t.x-e.width,y:a};break;default:u={x:t.x,y:t.y}}var h=r?xt(r):null;if(h!=null){var f=h==="y"?"height":"width";switch(s){case ot:u[h]=u[h]-(t[f]/2-e[f]/2);break;case he:u[h]=u[h]+(t[f]/2-e[f]/2);break;default:}}return u}function F(i,t){t===void 0&&(t={});var e=t,n=e.placement,r=n===void 0?i.placement:n,s=e.boundary,o=s===void 0?Ci:s,a=e.rootBoundary,u=a===void 0?pe:a,h=e.elementContext,f=h===void 0?Lt:h,_=e.altBoundary,d=_===void 0?!1:_,v=e.padding,E=v===void 0?0:v,p=ve(typeof E!="number"?E:ye(E,ut)),l=f===Lt?Li:Lt,c=i.elements.reference,m=i.rects.popper,b=i.elements[d?l:f],y=Pi(ft(b)?b:b.contextElement||W(i.elements.popper),o,u),S=Z(c),A=be({reference:S,element:m,strategy:"absolute",placement:r}),C=ie(Object.assign({},m,A)),w=f===Lt?C:S,N={top:y.top-w.top+p.top,bottom:w.bottom-y.bottom+p.bottom,left:y.left-w.left+p.left,right:w.right-y.right+p.right},L=i.modifiersData.offset;if(f===Lt&&L){var M=L[r];Object.keys(N).forEach(function(Q){var U=[I,$].indexOf(Q)>=0?1:-1,Ot=[x,$].indexOf(Q)>=0?"y":"x";N[Q]+=M[Ot]*U})}return N}function Ri(i,t){t===void 0&&(t={});var e=t,n=e.placement,r=e.boundary,s=e.rootBoundary,o=e.padding,a=e.flipVariations,u=e.allowedAutoPlacements,h=u===void 0?me:u,f=st(n),_=f?a?Be:Be.filter(function(E){return st(E)===f}):ut,d=_.filter(function(E){return h.indexOf(E)>=0});d.length===0&&(d=_);var v=d.reduce(function(E,p){return E[p]=F(i,{placement:p,boundary:r,rootBoundary:s,padding:o})[k(p)],E},{});return Object.keys(v).sort(function(E,p){return v[E]-v[p]})}function cs(i){if(k(i)===de)return[];var t=ee(i);return[Ue(i),t,Ue(t)]}function us(i){var t=i.state,e=i.options,n=i.name;if(!t.modifiersData[n]._skip){for(var r=e.mainAxis,s=r===void 0?!0:r,o=e.altAxis,a=o===void 0?!0:o,u=e.fallbackPlacements,h=e.padding,f=e.boundary,_=e.rootBoundary,d=e.altBoundary,v=e.flipVariations,E=v===void 0?!0:v,p=e.allowedAutoPlacements,l=t.options.placement,c=k(l),m=c===l,b=u||(m||!E?[ee(l)]:cs(l)),y=[l].concat(b).reduce(function(Ct,rt){return Ct.concat(k(rt)===de?Ri(t,{placement:rt,boundary:f,rootBoundary:_,padding:h,flipVariations:E,allowedAutoPlacements:p}):rt)},[]),S=t.rects.reference,A=t.rects.popper,C=new Map,w=!0,N=y[0],L=0;L<y.length;L++){var M=y[L],Q=k(M),U=st(M)===ot,Ot=[x,$].indexOf(Q)>=0,ue=Ot?"width":"height",qt=F(t,{placement:M,boundary:f,rootBoundary:_,altBoundary:d,padding:h}),wt=Ot?U?I:P:U?$:x;S[ue]>A[ue]&&(wt=ee(wt));var bi=ee(wt),Gt=[];if(s&&Gt.push(qt[Q]<=0),a&&Gt.push(qt[wt]<=0,qt[bi]<=0),Gt.every(function(Ct){return Ct})){N=M,w=!1;break}C.set(M,Gt)}if(w)for(var Me=E?3:1,Ti=function(rt){var ke=y.find(function(Ai){var Qt=C.get(Ai);if(Qt)return Qt.slice(0,rt).every(function(Si){return Si})});if(ke)return N=ke,"break"},Xt=Me;Xt>0;Xt--){var je=Ti(Xt);if(je==="break")break}t.placement!==N&&(t.modifiersData[n]._skip=!0,t.placement=N,t.reset=!0)}}var Ke={name:"flip",enabled:!0,phase:"main",fn:us,requiresIfExists:["offset"],data:{_skip:!1}};function Mn(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 jn(i){return[x,I,$,P].some(function(t){return i[t]>=0})}function fs(i){var t=i.state,e=i.name,n=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=F(t,{elementContext:"reference"}),a=F(t,{altBoundary:!0}),u=Mn(o,n),h=Mn(a,r,s),f=jn(u),_=jn(h);t.modifiersData[e]={referenceClippingOffsets:u,popperEscapeOffsets:h,isReferenceHidden:f,hasPopperEscaped:_},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":_})}var qe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fs};function ds(i,t,e){var n=k(i),r=[P,x].indexOf(n)>=0?-1:1,s=typeof e=="function"?e(Object.assign({},t,{placement:i})):e,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[P,I].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function hs(i){var t=i.state,e=i.options,n=i.name,r=e.offset,s=r===void 0?[0,0]:r,o=me.reduce(function(f,_){return f[_]=ds(_,t.rects,s),f},{}),a=o[t.placement],u=a.x,h=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=o}var Ge={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hs};function ps(i){var t=i.state,e=i.name;t.modifiersData[e]=be({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ne={name:"popperOffsets",enabled:!0,phase:"read",fn:ps,data:{}};function $i(i){return i==="x"?"y":"x"}function ms(i){var t=i.state,e=i.options,n=i.name,r=e.mainAxis,s=r===void 0?!0:r,o=e.altAxis,a=o===void 0?!1:o,u=e.boundary,h=e.rootBoundary,f=e.altBoundary,_=e.padding,d=e.tether,v=d===void 0?!0:d,E=e.tetherOffset,p=E===void 0?0:E,l=F(t,{boundary:u,rootBoundary:h,padding:_,altBoundary:f}),c=k(t.placement),m=st(t.placement),b=!m,y=xt(c),S=$i(y),A=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,N=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,L={x:0,y:0};if(!!A){if(s||a){var M=y==="y"?x:P,Q=y==="y"?$:I,U=y==="y"?"height":"width",Ot=A[y],ue=A[y]+l[M],qt=A[y]-l[Q],wt=v?-w[U]/2:0,bi=m===ot?C[U]:w[U],Gt=m===ot?-w[U]:-C[U],Me=t.elements.arrow,Ti=v&&Me?Nt(Me):{width:0,height:0},Xt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ee(),je=Xt[M],Ct=Xt[Q],rt=Dt(0,C[U],Ti[U]),ke=b?C[U]/2-wt-rt-je-N:bi-rt-je-N,Ai=b?-C[U]/2+wt+rt+Ct+N:Gt+rt+Ct+N,Qt=t.elements.arrow&&nt(t.elements.arrow),Si=Qt?y==="y"?Qt.clientTop||0:Qt.clientLeft||0:0,hn=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0,pn=A[y]+ke-hn-Si,mn=A[y]+Ai-hn;if(s){var gn=Dt(v?vt(ue,pn):ue,Ot,v?J(qt,mn):qt);A[y]=gn,L[y]=gn-Ot}if(a){var ko=y==="x"?x:P,Ho=y==="x"?$:I,He=A[S],_n=He+l[ko],En=He-l[Ho],vn=Dt(v?vt(_n,pn):_n,He,v?J(En,mn):En);A[S]=vn,L[S]=vn-He}}t.modifiersData[n]=L}}var Xe={name:"preventOverflow",enabled:!0,phase:"main",fn:ms,requiresIfExists:["offset"]};function Mi(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function ji(i){return i===D(i)||!R(i)?It(i):Mi(i)}function gs(i){var t=i.getBoundingClientRect(),e=t.width/i.offsetWidth||1,n=t.height/i.offsetHeight||1;return e!==1||n!==1}function ki(i,t,e){e===void 0&&(e=!1);var n=R(t),r=R(t)&&gs(t),s=W(t),o=Z(i,r),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!e)&&((j(t)!=="body"||Rt(s))&&(a=ji(t)),R(t)?(u=Z(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Pt(s))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function _s(i){var t=new Map,e=new Set,n=[];i.forEach(function(s){t.set(s.name,s)});function r(s){e.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!e.has(a)){var u=t.get(a);u&&r(u)}}),n.push(s)}return i.forEach(function(s){e.has(s.name)||r(s)}),n}function Hi(i){var t=_s(i);return Ni.reduce(function(e,n){return e.concat(t.filter(function(r){return r.phase===n}))},[])}function Wi(i){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(i())})})),t}}function Bi(i){var t=i.reduce(function(e,n){var r=e[n.name];return e[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,e},{});return Object.keys(t).map(function(e){return t[e]})}var kn={placement:"bottom",modifiers:[],strategy:"absolute"};function Hn(){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 $t(i){i===void 0&&(i={});var t=i,e=t.defaultModifiers,n=e===void 0?[]:e,r=t.defaultOptions,s=r===void 0?kn:r;return function(a,u,h){h===void 0&&(h=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},kn,s),modifiersData:{},elements:{reference:a,popper:u},attributes:{},styles:{}},_=[],d=!1,v={state:f,setOptions:function(c){p(),f.options=Object.assign({},s,f.options,c),f.scrollParents={reference:ft(a)?yt(a):a.contextElement?yt(a.contextElement):[],popper:yt(u)};var m=Hi(Bi([].concat(n,f.options.modifiers)));if(f.orderedModifiers=m.filter(function(L){return L.enabled}),!1){var b;if(getBasePlacement(f.options.placement)===auto)var y;var S,A,C,w,N}return E(),v.update()},forceUpdate:function(){if(!d){var c=f.elements,m=c.reference,b=c.popper;if(!!Hn(m,b)){f.rects={reference:ki(m,nt(b),f.options.strategy==="fixed"),popper:Nt(b)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(M){return f.modifiersData[M.name]=Object.assign({},M.data)});for(var y=0,S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var A=f.orderedModifiers[S],C=A.fn,w=A.options,N=w===void 0?{}:w,L=A.name;typeof C=="function"&&(f=C({state:f,options:N,name:L,instance:v})||f)}}}},update:Wi(function(){return new Promise(function(l){v.forceUpdate(),l(f)})}),destroy:function(){p(),d=!0}};if(!Hn(a,u))return v;v.setOptions(h).then(function(l){!d&&h.onFirstUpdate&&h.onFirstUpdate(l)});function E(){f.orderedModifiers.forEach(function(l){var c=l.name,m=l.options,b=m===void 0?{}:m,y=l.effect;if(typeof y=="function"){var S=y({state:f,name:c,instance:v,options:b}),A=function(){};_.push(S||A)}})}function p(){_.forEach(function(l){return l()}),_=[]}return v}}var Wn=$t();var Es=[te,ne,Jt,Zt],Bn=$t({defaultModifiers:Es});var vs=[te,ne,Jt,Zt,Ge,Ke,Xe,Fe,qe],Qe=$t({defaultModifiers:vs});var ys=3,T={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!==ys;)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[]}},bs=1e6,Ts=1e3,Vi="transitionend",As=i=>i==null?`${i}`:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),Vn=i=>{do i+=Math.floor(Math.random()*bs);while(document.getElementById(i));return i},Fn=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},Fi=i=>{let t=Fn(i);return t&&document.querySelector(t)?t:null},bt=i=>{let t=Fn(i);return t?document.querySelector(t):null},Ss=i=>{if(!i)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(i),n=Number.parseFloat(t),r=Number.parseFloat(e);return!n&&!r?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Ts)},zn=i=>{i.dispatchEvent(new Event(Vi))},Tt=i=>!i||typeof i!="object"?!1:(typeof i.jquery!="undefined"&&(i=i[0]),typeof i.nodeType!="undefined"),re=i=>Tt(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?T.findOne(i):null,ht=(i,t,e)=>{Object.keys(e).forEach(n=>{let r=e[n],s=t[n],o=s&&Tt(s)?"element":As(s);if(!new RegExp(r).test(o))throw new TypeError(`${i.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${r}".`)})},Je=i=>!Tt(i)||i.getClientRects().length===0?!1:getComputedStyle(i).getPropertyValue("visibility")==="visible",oe=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",Un=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?Un(i.parentNode):null},ti=()=>{},se=i=>i.offsetHeight,Yn=()=>{let{jQuery:i}=window;return i&&!document.body.hasAttribute("data-bs-no-jquery")?i:null},zi=[],Os=i=>{document.readyState==="loading"?(zi.length||document.addEventListener("DOMContentLoaded",()=>{zi.forEach(t=>t())}),zi.push(i)):i()},Y=()=>document.documentElement.dir==="rtl",tt=i=>{Os(()=>{let t=Yn();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)}})},Mt=i=>{typeof i=="function"&&i()},Kn=(i,t,e=!0)=>{if(!e){Mt(i);return}let n=5,r=Ss(t)+n,s=!1,o=({target:a})=>{a===t&&(s=!0,t.removeEventListener(Vi,o),Mt(i))};t.addEventListener(Vi,o),setTimeout(()=>{s||zn(t)},r)},qn=(i,t,e,n)=>{let r=i.indexOf(t);if(r===-1)return i[!e&&n?i.length-1:0];let s=i.length;return r+=e?1:-1,n&&(r=(r+s)%s),i[Math.max(0,Math.min(r,s-1))]},ws=/[^.]*(?=\..*)\.|.*/,Cs=/\..*/,Ls=/::\d+$/,Ui={},Gn=1,Ns={mouseenter:"mouseover",mouseleave:"mouseout"},xs=/^(mouseenter|mouseleave)/i,Xn=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 Qn(i,t){return t&&`${t}::${Gn++}`||i.uidEvent||Gn++}function Zn(i){let t=Qn(i);return i.uidEvent=t,Ui[t]=Ui[t]||{},Ui[t]}function Ds(i,t){return function e(n){return n.delegateTarget=i,e.oneOff&&g.off(i,n.type,t),t.apply(i,[n])}}function Is(i,t,e){return function n(r){let s=i.querySelectorAll(t);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(let a=s.length;a--;)if(s[a]===o)return r.delegateTarget=o,n.oneOff&&g.off(i,r.type,t,e),e.apply(o,[r]);return null}}function Jn(i,t,e=null){let n=Object.keys(i);for(let r=0,s=n.length;r<s;r++){let o=i[n[r]];if(o.originalHandler===t&&o.delegationSelector===e)return o}return null}function tr(i,t,e){let n=typeof t=="string",r=n?e:t,s=ir(i);return Xn.has(s)||(s=i),[n,r,s]}function er(i,t,e,n,r){if(typeof t!="string"||!i)return;if(e||(e=n,n=null),xs.test(t)){let v=E=>function(p){if(!p.relatedTarget||p.relatedTarget!==p.delegateTarget&&!p.delegateTarget.contains(p.relatedTarget))return E.call(this,p)};n?n=v(n):e=v(e)}let[s,o,a]=tr(t,e,n),u=Zn(i),h=u[a]||(u[a]={}),f=Jn(h,o,s?e:null);if(f){f.oneOff=f.oneOff&&r;return}let _=Qn(o,t.replace(ws,"")),d=s?Is(i,e,n):Ds(i,e);d.delegationSelector=s?e:null,d.originalHandler=o,d.oneOff=r,d.uidEvent=_,h[_]=d,i.addEventListener(a,d,s)}function Yi(i,t,e,n,r){let s=Jn(t[e],n,r);!s||(i.removeEventListener(e,s,Boolean(r)),delete t[e][s.uidEvent])}function Ps(i,t,e,n){let r=t[e]||{};Object.keys(r).forEach(s=>{if(s.includes(n)){let o=r[s];Yi(i,t,e,o.originalHandler,o.delegationSelector)}})}function ir(i){return i=i.replace(Cs,""),Ns[i]||i}var g={on(i,t,e,n){er(i,t,e,n,!1)},one(i,t,e,n){er(i,t,e,n,!0)},off(i,t,e,n){if(typeof t!="string"||!i)return;let[r,s,o]=tr(t,e,n),a=o!==t,u=Zn(i),h=t.startsWith(".");if(typeof s!="undefined"){if(!u||!u[o])return;Yi(i,u,o,s,r?e:null);return}h&&Object.keys(u).forEach(_=>{Ps(i,u,_,t.slice(1))});let f=u[o]||{};Object.keys(f).forEach(_=>{let d=_.replace(Ls,"");if(!a||t.includes(d)){let v=f[_];Yi(i,u,o,v.originalHandler,v.delegationSelector)}})},trigger(i,t,e){if(typeof t!="string"||!i)return null;let n=Yn(),r=ir(t),s=t!==r,o=Xn.has(r),a,u=!0,h=!0,f=!1,_=null;return s&&n&&(a=n.Event(t,e),n(i).trigger(a),u=!a.isPropagationStopped(),h=!a.isImmediatePropagationStopped(),f=a.isDefaultPrevented()),o?(_=document.createEvent("HTMLEvents"),_.initEvent(r,u,!0)):_=new CustomEvent(t,{bubbles:u,cancelable:!0}),typeof e!="undefined"&&Object.keys(e).forEach(d=>{Object.defineProperty(_,d,{get(){return e[d]}})}),f&&_.preventDefault(),h&&i.dispatchEvent(_),_.defaultPrevented&&typeof a!="undefined"&&a.preventDefault(),_}},At=new Map,jt={set(i,t,e){At.has(i)||At.set(i,new Map);let n=At.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 At.has(i)&&At.get(i).get(t)||null},remove(i,t){if(!At.has(i))return;let e=At.get(i);e.delete(t),e.size===0&&At.delete(i)}},Rs="5.0.2",et=class{constructor(t){t=re(t),!!t&&(this._element=t,jt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){jt.remove(this._element,this.constructor.DATA_KEY),g.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,n=!0){Kn(t,e,n)}static getInstance(t){return jt.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 Rs}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}`}},$s="alert",Ms="bs.alert",Ki=`.${Ms}`,js=".data-api",ks='[data-bs-dismiss="alert"]',Hs=`close${Ki}`,Ws=`closed${Ki}`,Bs=`click${Ki}${js}`,Vs="alert",Fs="fade",zs="show",ae=class extends et{static get NAME(){return $s}close(t){let e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);n===null||n.defaultPrevented||this._removeElement(e)}_getRootElement(t){return bt(t)||t.closest(`.${Vs}`)}_triggerCloseEvent(t){return g.trigger(t,Hs)}_removeElement(t){t.classList.remove(zs);let e=t.classList.contains(Fs);this._queueCallback(()=>this._destroyElement(t),t,e)}_destroyElement(t){t.remove(),g.trigger(t,Ws)}static jQueryInterface(t){return this.each(function(){let e=ae.getOrCreateInstance(this);t==="close"&&e[t](this)})}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}};g.on(document,Bs,ks,ae.handleDismiss(new ae));tt(ae);var Us="button",Ys="bs.button",Ks=`.${Ys}`,qs=".data-api",Gs="active",nr='[data-bs-toggle="button"]',Xs=`click${Ks}${qs}`,Te=class extends et{static get NAME(){return Us}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Gs))}static jQueryInterface(t){return this.each(function(){let e=Te.getOrCreateInstance(this);t==="toggle"&&e[t]()})}};g.on(document,Xs,nr,i=>{i.preventDefault();let t=i.target.closest(nr);Te.getOrCreateInstance(t).toggle()});tt(Te);function rr(i){return i==="true"?!0:i==="false"?!1:i===Number(i).toString()?Number(i):i===""||i==="null"?null:i}function qi(i){return i.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var H={setDataAttribute(i,t,e){i.setAttribute(`data-bs-${qi(t)}`,e)},removeDataAttribute(i,t){i.removeAttribute(`data-bs-${qi(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]=rr(i.dataset[e])}),t},getDataAttribute(i,t){return rr(i.getAttribute(`data-bs-${qi(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}}},or="carousel",Qs="bs.carousel",G=`.${Qs}`,sr=".data-api",Zs="ArrowLeft",Js="ArrowRight",ta=500,ea=40,ar={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ia={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},kt="next",Ht="prev",Wt="left",Ae="right",na={[Zs]:Ae,[Js]:Wt},ra=`slide${G}`,lr=`slid${G}`,oa=`keydown${G}`,sa=`mouseenter${G}`,aa=`mouseleave${G}`,la=`touchstart${G}`,ca=`touchmove${G}`,ua=`touchend${G}`,fa=`pointerdown${G}`,da=`pointerup${G}`,ha=`dragstart${G}`,pa=`load${G}${sr}`,ma=`click${G}${sr}`,ga="carousel",Bt="active",_a="slide",Ea="carousel-item-end",va="carousel-item-start",ya="carousel-item-next",ba="carousel-item-prev",Ta="pointer-event",Aa=".active",ei=".active.carousel-item",Sa=".carousel-item",Oa=".carousel-item img",wa=".carousel-item-next, .carousel-item-prev",Ca=".carousel-indicators",La="[data-bs-target]",Na="[data-bs-slide], [data-bs-slide-to]",xa='[data-bs-ride="carousel"]',cr="touch",ur="pen",at=class extends et{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=T.findOne(Ca,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return ar}static get NAME(){return or}next(){this._slide(kt)}nextWhenVisible(){!document.hidden&&Je(this._element)&&this.next()}prev(){this._slide(Ht)}pause(t){t||(this._isPaused=!0),T.findOne(wa,this._element)&&(zn(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=T.findOne(ei,this._element);let e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding){g.one(this._element,lr,()=>this.to(t));return}if(e===t){this.pause(),this.cycle();return}let n=t>e?kt:Ht;this._slide(n,this._items[t])}_getConfig(t){return t=O(O(O({},ar),H.getDataAttributes(this._element)),typeof t=="object"?t:{}),ht(or,t,ia),t}_handleSwipe(){let t=Math.abs(this.touchDeltaX);if(t<=ea)return;let e=t/this.touchDeltaX;this.touchDeltaX=0,!!e&&this._slide(e>0?Ae:Wt)}_addEventListeners(){this._config.keyboard&&g.on(this._element,oa,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,sa,t=>this.pause(t)),g.on(this._element,aa,t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){let t=r=>{this._pointerEvent&&(r.pointerType===ur||r.pointerType===cr)?this.touchStartX=r.clientX:this._pointerEvent||(this.touchStartX=r.touches[0].clientX)},e=r=>{this.touchDeltaX=r.touches&&r.touches.length>1?0:r.touches[0].clientX-this.touchStartX},n=r=>{this._pointerEvent&&(r.pointerType===ur||r.pointerType===cr)&&(this.touchDeltaX=r.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(s=>this.cycle(s),ta+this._config.interval))};T.find(Oa,this._element).forEach(r=>{g.on(r,ha,s=>s.preventDefault())}),this._pointerEvent?(g.on(this._element,fa,r=>t(r)),g.on(this._element,da,r=>n(r)),this._element.classList.add(Ta)):(g.on(this._element,la,r=>t(r)),g.on(this._element,ca,r=>e(r)),g.on(this._element,ua,r=>n(r)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=na[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?T.find(Sa,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){let n=t===kt;return qn(this._items,e,n,this._config.wrap)}_triggerSlideEvent(t,e){let n=this._getItemIndex(t),r=this._getItemIndex(T.findOne(ei,this._element));return g.trigger(this._element,ra,{relatedTarget:t,direction:e,from:r,to:n})}_setActiveIndicatorElement(t){if(this._indicatorsElement){let e=T.findOne(Aa,this._indicatorsElement);e.classList.remove(Bt),e.removeAttribute("aria-current");let n=T.find(La,this._indicatorsElement);for(let r=0;r<n.length;r++)if(Number.parseInt(n[r].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){n[r].classList.add(Bt),n[r].setAttribute("aria-current","true");break}}}_updateInterval(){let t=this._activeElement||T.findOne(ei,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),r=T.findOne(ei,this._element),s=this._getItemIndex(r),o=e||this._getItemByOrder(n,r),a=this._getItemIndex(o),u=Boolean(this._interval),h=n===kt,f=h?va:Ea,_=h?ya:ba,d=this._orderToDirection(n);if(o&&o.classList.contains(Bt)){this._isSliding=!1;return}if(this._isSliding||this._triggerSlideEvent(o,d).defaultPrevented||!r||!o)return;this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;let E=()=>{g.trigger(this._element,lr,{relatedTarget:o,direction:d,from:s,to:a})};if(this._element.classList.contains(_a)){o.classList.add(_),se(o),r.classList.add(f),o.classList.add(f);let p=()=>{o.classList.remove(f,_),o.classList.add(Bt),r.classList.remove(Bt,_,f),this._isSliding=!1,setTimeout(E,0)};this._queueCallback(p,r,!0)}else r.classList.remove(Bt),o.classList.add(Bt),this._isSliding=!1,E();u&&this.cycle()}_directionToOrder(t){return[Ae,Wt].includes(t)?Y()?t===Wt?Ht:kt:t===Wt?kt:Ht:t}_orderToDirection(t){return[kt,Ht].includes(t)?Y()?t===Ht?Wt:Ae:t===Ht?Ae:Wt:t}static carouselInterface(t,e){let n=at.getOrCreateInstance(t,e),{_config:r}=n;typeof e=="object"&&(r=O(O({},r),e));let s=typeof e=="string"?e:r.slide;if(typeof e=="number")n.to(e);else if(typeof s=="string"){if(typeof n[s]=="undefined")throw new TypeError(`No method named "${s}"`);n[s]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}static jQueryInterface(t){return this.each(function(){at.carouselInterface(this,t)})}static dataApiClickHandler(t){let e=bt(this);if(!e||!e.classList.contains(ga))return;let n=O(O({},H.getDataAttributes(e)),H.getDataAttributes(this)),r=this.getAttribute("data-bs-slide-to");r&&(n.interval=!1),at.carouselInterface(e,n),r&&at.getInstance(e).to(r),t.preventDefault()}};g.on(document,ma,Na,at.dataApiClickHandler);g.on(window,pa,()=>{let i=T.find(xa);for(let t=0,e=i.length;t<e;t++)at.carouselInterface(i[t],at.getInstance(i[t]))});tt(at);var fr="collapse",dr="bs.collapse",Se=`.${dr}`,Da=".data-api",Gi={toggle:!0,parent:""},Ia={toggle:"boolean",parent:"(string|element)"},Pa=`show${Se}`,Ra=`shown${Se}`,$a=`hide${Se}`,Ma=`hidden${Se}`,ja=`click${Se}${Da}`,Vt="show",Oe="collapse",ii="collapsing",ni="collapsed",hr="width",ka="height",Ha=".show, .collapsing",we='[data-bs-toggle="collapse"]',it=class extends et{constructor(t,e){super(t);this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=T.find(`${we}[href="#${this._element.id}"],${we}[data-bs-target="#${this._element.id}"]`);let n=T.find(we);for(let r=0,s=n.length;r<s;r++){let o=n[r],a=Fi(o),u=T.find(a).filter(h=>h===this._element);a!==null&&u.length&&(this._selector=a,this._triggerArray.push(o))}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 Gi}static get NAME(){return fr}toggle(){this._element.classList.contains(Vt)?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains(Vt))return;let t,e;this._parent&&(t=T.find(Ha,this._parent).filter(h=>typeof this._config.parent=="string"?h.getAttribute("data-bs-parent")===this._config.parent:h.classList.contains(Oe)),t.length===0&&(t=null));let n=T.findOne(this._selector);if(t){let h=t.find(f=>n!==f);if(e=h?it.getInstance(h):null,e&&e._isTransitioning)return}if(g.trigger(this._element,Pa).defaultPrevented)return;t&&t.forEach(h=>{n!==h&&it.collapseInterface(h,"hide"),e||jt.set(h,dr,null)});let s=this._getDimension();this._element.classList.remove(Oe),this._element.classList.add(ii),this._element.style[s]=0,this._triggerArray.length&&this._triggerArray.forEach(h=>{h.classList.remove(ni),h.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0);let o=()=>{this._element.classList.remove(ii),this._element.classList.add(Oe,Vt),this._element.style[s]="",this.setTransitioning(!1),g.trigger(this._element,Ra)},u=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[s]=`${this._element[u]}px`}hide(){if(this._isTransitioning||!this._element.classList.contains(Vt)||g.trigger(this._element,$a).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,se(this._element),this._element.classList.add(ii),this._element.classList.remove(Oe,Vt);let n=this._triggerArray.length;if(n>0)for(let s=0;s<n;s++){let o=this._triggerArray[s],a=bt(o);a&&!a.classList.contains(Vt)&&(o.classList.add(ni),o.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);let r=()=>{this.setTransitioning(!1),this._element.classList.remove(ii),this._element.classList.add(Oe),g.trigger(this._element,Ma)};this._element.style[e]="",this._queueCallback(r,this._element,!0)}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return t=O(O({},Gi),t),t.toggle=Boolean(t.toggle),ht(fr,t,Ia),t}_getDimension(){return this._element.classList.contains(hr)?hr:ka}_getParent(){let{parent:t}=this._config;t=re(t);let e=`${we}[data-bs-parent="${t}"]`;return T.find(e,t).forEach(n=>{let r=bt(n);this._addAriaAndCollapsedClass(r,[n])}),t}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;let n=t.classList.contains(Vt);e.forEach(r=>{n?r.classList.remove(ni):r.classList.add(ni),r.setAttribute("aria-expanded",n)})}static collapseInterface(t,e){let n=it.getInstance(t),r=O(O(O({},Gi),H.getDataAttributes(t)),typeof e=="object"&&e?e:{});if(!n&&r.toggle&&typeof e=="string"&&/show|hide/.test(e)&&(r.toggle=!1),n||(n=new it(t,r)),typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each(function(){it.collapseInterface(this,t)})}};g.on(document,ja,we,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();let t=H.getDataAttributes(this),e=Fi(this);T.find(e).forEach(r=>{let s=it.getInstance(r),o;s?(s._parent===null&&typeof t.parent=="string"&&(s._config.parent=t.parent,s._parent=s._getParent()),o="toggle"):o=t,it.collapseInterface(r,o)})});tt(it);var Xi="dropdown",Wa="bs.dropdown",St=`.${Wa}`,Qi=".data-api",ri="Escape",pr="Space",mr="Tab",Zi="ArrowUp",oi="ArrowDown",Ba=2,Va=new RegExp(`${Zi}|${oi}|${ri}`),Fa=`hide${St}`,za=`hidden${St}`,Ua=`show${St}`,Ya=`shown${St}`,Ka=`click${St}`,gr=`click${St}${Qi}`,_r=`keydown${St}${Qi}`,qa=`keyup${St}${Qi}`,pt="show",Ga="dropup",Xa="dropend",Qa="dropstart",Za="navbar",Ce='[data-bs-toggle="dropdown"]',Ji=".dropdown-menu",Ja=".navbar-nav",tl=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",el=Y()?"top-end":"top-start",il=Y()?"top-start":"top-end",nl=Y()?"bottom-end":"bottom-start",rl=Y()?"bottom-start":"bottom-end",ol=Y()?"left-start":"right-start",sl=Y()?"right-start":"left-start",al={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},ll={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},z=class extends et{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 al}static get DefaultType(){return ll}static get NAME(){return Xi}toggle(){if(oe(this._element))return;if(this._element.classList.contains(pt)){this.hide();return}this.show()}show(){if(oe(this._element)||this._menu.classList.contains(pt))return;let t=z.getParentFromElement(this._element),e={relatedTarget:this._element};if(!g.trigger(this._element,Ua,e).defaultPrevented){if(this._inNavbar)H.setDataAttribute(this._menu,"popper","none");else{if(typeof Ze=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let r=this._element;this._config.reference==="parent"?r=t:Tt(this._config.reference)?r=re(this._config.reference):typeof this._config.reference=="object"&&(r=this._config.reference);let s=this._getPopperConfig(),o=s.modifiers.find(a=>a.name==="applyStyles"&&a.enabled===!1);this._popper=Qe(r,this._menu,s),o&&H.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(Ja)&&[].concat(...document.body.children).forEach(r=>g.on(r,"mouseover",ti)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(pt),this._element.classList.toggle(pt),g.trigger(this._element,Ya,e)}}hide(){if(oe(this._element)||!this._menu.classList.contains(pt))return;let t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){g.on(this._element,Ka,t=>{t.preventDefault(),this.toggle()})}_completeHide(t){g.trigger(this._element,Fa,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(n=>g.off(n,"mouseover",ti)),this._popper&&this._popper.destroy(),this._menu.classList.remove(pt),this._element.classList.remove(pt),this._element.setAttribute("aria-expanded","false"),H.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,za,t))}_getConfig(t){if(t=O(O(O({},this.constructor.Default),H.getDataAttributes(this._element)),t),ht(Xi,t,this.constructor.DefaultType),typeof t.reference=="object"&&!Tt(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Xi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_getMenuElement(){return T.next(this._element,Ji)[0]}_getPlacement(){let t=this._element.parentNode;if(t.classList.contains(Xa))return ol;if(t.classList.contains(Qa))return sl;let e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Ga)?e?il:el:e?rl:nl}_detectNavbar(){return this._element.closest(`.${Za}`)!==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}]),O(O({},t),typeof this._config.popperConfig=="function"?this._config.popperConfig(t):this._config.popperConfig)}_selectMenuItem({key:t,target:e}){let n=T.find(tl,this._menu).filter(Je);!n.length||qn(n,e,t===oi,!n.includes(e)).focus()}static dropdownInterface(t,e){let n=z.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(){z.dropdownInterface(this,t)})}static clearMenus(t){if(t&&(t.button===Ba||t.type==="keyup"&&t.key!==mr))return;let e=T.find(Ce);for(let n=0,r=e.length;n<r;n++){let s=z.getInstance(e[n]);if(!s||s._config.autoClose===!1||!s._element.classList.contains(pt))continue;let o={relatedTarget:s._element};if(t){let a=t.composedPath(),u=a.includes(s._menu);if(a.includes(s._element)||s._config.autoClose==="inside"&&!u||s._config.autoClose==="outside"&&u||s._menu.contains(t.target)&&(t.type==="keyup"&&t.key===mr||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;t.type==="click"&&(o.clickEvent=t)}s._completeHide(o)}}static getParentFromElement(t){return bt(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===pr||t.key!==ri&&(t.key!==oi&&t.key!==Zi||t.target.closest(Ji)):!Va.test(t.key))return;let e=this.classList.contains(pt);if(!e&&t.key===ri||(t.preventDefault(),t.stopPropagation(),oe(this)))return;let n=()=>this.matches(Ce)?this:T.prev(this,Ce)[0];if(t.key===ri){n().focus(),z.clearMenus();return}if(t.key===Zi||t.key===oi){e||n().click(),z.getInstance(n())._selectMenuItem(t);return}(!e||t.key===pr)&&z.clearMenus()}};g.on(document,_r,Ce,z.dataApiKeydownHandler);g.on(document,_r,Ji,z.dataApiKeydownHandler);g.on(document,gr,z.clearMenus);g.on(document,qa,z.clearMenus);g.on(document,gr,Ce,function(i){i.preventDefault(),z.dropdownInterface(this)});tt(z);var Er=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",vr=".sticky-top",si=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(Er,"paddingRight",e=>e+t),this._setElementAttributes(vr,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){let r=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+r)return;this._saveInitialAttribute(o,e);let a=window.getComputedStyle(o)[e];o.style[e]=`${n(Number.parseFloat(a))}px`};this._applyManipulationCallback(t,s)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Er,"paddingRight"),this._resetElementAttributes(vr,"marginRight")}_saveInitialAttribute(t,e){let n=t.style[e];n&&H.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){let n=r=>{let s=H.getDataAttribute(r,e);typeof s=="undefined"?r.style.removeProperty(e):(H.removeDataAttribute(r,e),r.style[e]=s)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){Tt(t)?e(t):T.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}},cl={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},ul={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},yr="backdrop",fl="modal-backdrop",dl="fade",br="show",Tr=`mousedown.bs.${yr}`,tn=class{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){if(!this._config.isVisible){Mt(t);return}this._append(),this._config.isAnimated&&se(this._getElement()),this._getElement().classList.add(br),this._emulateAnimation(()=>{Mt(t)})}hide(t){if(!this._config.isVisible){Mt(t);return}this._getElement().classList.remove(br),this._emulateAnimation(()=>{this.dispose(),Mt(t)})}_getElement(){if(!this._element){let t=document.createElement("div");t.className=fl,this._config.isAnimated&&t.classList.add(dl),this._element=t}return this._element}_getConfig(t){return t=O(O({},cl),typeof t=="object"?t:{}),t.rootElement=re(t.rootElement),ht(yr,t,ul),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),g.on(this._getElement(),Tr,()=>{Mt(this._config.clickCallback)}),this._isAppended=!0)}dispose(){!this._isAppended||(g.off(this._element,Tr),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){Kn(t,this._getElement(),this._config.isAnimated)}},Ar="modal",hl="bs.modal",X=`.${hl}`,pl=".data-api",Sr="Escape",Or={backdrop:!0,keyboard:!0,focus:!0},ml={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},gl=`hide${X}`,_l=`hidePrevented${X}`,wr=`hidden${X}`,Cr=`show${X}`,El=`shown${X}`,ai=`focusin${X}`,Lr=`resize${X}`,en=`click.dismiss${X}`,Nr=`keydown.dismiss${X}`,vl=`mouseup.dismiss${X}`,xr=`mousedown.dismiss${X}`,yl=`click${X}${pl}`,Dr="modal-open",bl="fade",Ir="show",nn="modal-static",Tl=".modal-dialog",Al=".modal-body",Sl='[data-bs-toggle="modal"]',Ol='[data-bs-dismiss="modal"]',Ft=class extends et{constructor(t,e){super(t);this._config=this._getConfig(e),this._dialog=T.findOne(Tl,this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new si}static get Default(){return Or}static get NAME(){return Ar}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||g.trigger(this._element,Cr,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Dr),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),g.on(this._element,en,Ol,n=>this.hide(n)),g.on(this._dialog,xr,()=>{g.one(this._element,vl,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||g.trigger(this._element,gl).defaultPrevented)return;this._isShown=!1;let n=this._isAnimated();n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),g.off(document,ai),this._element.classList.remove(Ir),g.off(this._element,en),g.off(this._dialog,xr),this._queueCallback(()=>this._hideModal(),this._element,n)}dispose(){[window,this._dialog].forEach(t=>g.off(t,X)),this._backdrop.dispose(),super.dispose(),g.off(document,ai)}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new tn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t=O(O(O({},Or),H.getDataAttributes(this._element)),typeof t=="object"?t:{}),ht(Ar,t,ml),t}_showElement(t){let e=this._isAnimated(),n=T.findOne(Al,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&&se(this._element),this._element.classList.add(Ir),this._config.focus&&this._enforceFocus();let r=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,g.trigger(this._element,El,{relatedTarget:t})};this._queueCallback(r,this._dialog,e)}_enforceFocus(){g.off(document,ai),g.on(document,ai,t=>{document!==t.target&&this._element!==t.target&&!this._element.contains(t.target)&&this._element.focus()})}_setEscapeEvent(){this._isShown?g.on(this._element,Nr,t=>{this._config.keyboard&&t.key===Sr?(t.preventDefault(),this.hide()):!this._config.keyboard&&t.key===Sr&&this._triggerBackdropTransition()}):g.off(this._element,Nr)}_setResizeEvent(){this._isShown?g.on(window,Lr,()=>this._adjustDialog()):g.off(window,Lr)}_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(Dr),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,wr)})}_showBackdrop(t){g.on(this._element,en,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(bl)}_triggerBackdropTransition(){if(g.trigger(this._element,_l).defaultPrevented)return;let{classList:e,scrollHeight:n,style:r}=this._element,s=n>document.documentElement.clientHeight;!s&&r.overflowY==="hidden"||e.contains(nn)||(s||(r.overflowY="hidden"),e.add(nn),this._queueCallback(()=>{e.remove(nn),s||this._queueCallback(()=>{r.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&&!Y()||n&&!t&&Y())&&(this._element.style.paddingLeft=`${e}px`),(n&&!t&&!Y()||!n&&t&&Y())&&(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=Ft.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t](e)}})}};g.on(document,yl,Sl,function(i){let t=bt(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),g.one(t,Cr,n=>{n.defaultPrevented||g.one(t,wr,()=>{Je(this)&&this.focus()})}),Ft.getOrCreateInstance(t).toggle(this)});tt(Ft);var Pr="offcanvas",wl="bs.offcanvas",mt=`.${wl}`,Rr=".data-api",Cl=`load${mt}${Rr}`,Ll="Escape",$r={backdrop:!0,keyboard:!0,scroll:!1},Nl={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Mr="show",jr=".offcanvas.show",xl=`show${mt}`,Dl=`shown${mt}`,Il=`hide${mt}`,kr=`hidden${mt}`,li=`focusin${mt}`,Pl=`click${mt}${Rr}`,Rl=`click.dismiss${mt}`,$l=`keydown.dismiss${mt}`,Ml='[data-bs-dismiss="offcanvas"]',jl='[data-bs-toggle="offcanvas"]',zt=class extends et{constructor(t,e){super(t);this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return Pr}static get Default(){return $r}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||g.trigger(this._element,xl,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new si().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(Mr);let n=()=>{g.trigger(this._element,Dl,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||g.trigger(this._element,Il).defaultPrevented)return;g.off(document,li),this._element.blur(),this._isShown=!1,this._element.classList.remove(Mr),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 si().reset(),g.trigger(this._element,kr)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),super.dispose(),g.off(document,li)}_getConfig(t){return t=O(O(O({},$r),H.getDataAttributes(this._element)),typeof t=="object"?t:{}),ht(Pr,t,Nl),t}_initializeBackDrop(){return new tn({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){g.off(document,li),g.on(document,li,e=>{document!==e.target&&t!==e.target&&!t.contains(e.target)&&t.focus()}),t.focus()}_addEventListeners(){g.on(this._element,Rl,Ml,()=>this.hide()),g.on(this._element,$l,t=>{this._config.keyboard&&t.key===Ll&&this.hide()})}static jQueryInterface(t){return this.each(function(){let e=zt.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)}})}};g.on(document,Pl,jl,function(i){let t=bt(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),oe(this))return;g.one(t,kr,()=>{Je(this)&&this.focus()});let e=T.findOne(jr);e&&e!==t&&zt.getInstance(e).hide(),zt.getOrCreateInstance(t).toggle(this)});g.on(window,Cl,()=>T.find(jr).forEach(i=>zt.getOrCreateInstance(i).show()));tt(zt);var kl=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Hl=/^aria-[\w-]*$/i,Wl=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Bl=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Vl=(i,t)=>{let e=i.nodeName.toLowerCase();if(t.includes(e))return kl.has(e)?Boolean(Wl.test(i.nodeValue)||Bl.test(i.nodeValue)):!0;let n=t.filter(r=>r instanceof RegExp);for(let r=0,s=n.length;r<s;r++)if(n[r].test(e))return!0;return!1},Fl={"*":["class","dir","id","lang","role",Hl],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 Hr(i,t,e){if(!i.length)return i;if(e&&typeof e=="function")return e(i);let r=new window.DOMParser().parseFromString(i,"text/html"),s=Object.keys(t),o=[].concat(...r.body.querySelectorAll("*"));for(let a=0,u=o.length;a<u;a++){let h=o[a],f=h.nodeName.toLowerCase();if(!s.includes(f)){h.remove();continue}let _=[].concat(...h.attributes),d=[].concat(t["*"]||[],t[f]||[]);_.forEach(v=>{Vl(v,d)||h.removeAttribute(v.nodeName)})}return r.body.innerHTML}var Wr="tooltip",zl="bs.tooltip",lt=`.${zl}`,Br="bs-tooltip",Ul=new RegExp(`(^|\\s)${Br}\\S+`,"g"),Yl=new Set(["sanitize","allowList","sanitizeFn"]),Kl={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},ql={AUTO:"auto",TOP:"top",RIGHT:Y()?"left":"right",BOTTOM:"bottom",LEFT:Y()?"right":"left"},Gl={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:Fl,popperConfig:null},Xl={HIDE:`hide${lt}`,HIDDEN:`hidden${lt}`,SHOW:`show${lt}`,SHOWN:`shown${lt}`,INSERTED:`inserted${lt}`,CLICK:`click${lt}`,FOCUSIN:`focusin${lt}`,FOCUSOUT:`focusout${lt}`,MOUSEENTER:`mouseenter${lt}`,MOUSELEAVE:`mouseleave${lt}`},ci="fade",Vr="modal",Le="show",Ne="show",rn="out",Ql=".tooltip-inner",xe="hover",on="focus",Zl="click",Jl="manual",gt=class extends et{constructor(t,e){if(typeof Ze=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t);this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Gl}static get NAME(){return Wr}static get Event(){return Xl}static get DefaultType(){return Kl}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(!!this._isEnabled)if(t){let e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(Le)){this._leave(null,this);return}this._enter(null,this)}}dispose(){clearTimeout(this._timeout),g.off(this._element.closest(`.${Vr}`),"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=g.trigger(this._element,this.constructor.Event.SHOW),e=Un(this._element),n=e===null?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!n)return;let r=this.getTipElement(),s=Vn(this.constructor.NAME);r.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this.setContent(),this._config.animation&&r.classList.add(ci);let o=typeof this._config.placement=="function"?this._config.placement.call(this,r,this._element):this._config.placement,a=this._getAttachment(o);this._addAttachmentClass(a);let{container:u}=this._config;jt.set(r,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(u.appendChild(r),g.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Qe(this._element,r,this._getPopperConfig(a)),r.classList.add(Le);let h=typeof this._config.customClass=="function"?this._config.customClass():this._config.customClass;h&&r.classList.add(...h.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(d=>{g.on(d,"mouseover",ti)});let f=()=>{let d=this._hoverState;this._hoverState=null,g.trigger(this._element,this.constructor.Event.SHOWN),d===rn&&this._leave(null,this)},_=this.tip.classList.contains(ci);this._queueCallback(f,this.tip,_)}hide(){if(!this._popper)return;let t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||(this._hoverState!==Ne&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),g.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))};if(g.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(Le),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(s=>g.off(s,"mouseover",ti)),this._activeTrigger[Zl]=!1,this._activeTrigger[on]=!1,this._activeTrigger[xe]=!1;let r=this.tip.classList.contains(ci);this._queueCallback(e,this.tip,r),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(T.findOne(Ql,t),this.getTitle()),t.classList.remove(ci,Le)}setElementContent(t,e){if(t!==null){if(Tt(e)){e=re(e),this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent;return}this._config.html?(this._config.sanitize&&(e=Hr(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||jt.get(t.delegateTarget,n),e||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),jt.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 O(O({},e),typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig)}_addAttachmentClass(t){this.getTipElement().classList.add(`${Br}-${this.updateAttachment(t)}`)}_getAttachment(t){return ql[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(e=>{if(e==="click")g.on(this._element,this.constructor.Event.CLICK,this._config.selector,n=>this.toggle(n));else if(e!==Jl){let n=e===xe?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,r=e===xe?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;g.on(this._element,n,this._config.selector,s=>this._enter(s)),g.on(this._element,r,this._config.selector,s=>this._leave(s))}}),this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest(`.${Vr}`),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config=We(O({},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"?on:xe]=!0),e.getTipElement().classList.contains(Le)||e._hoverState===Ne){e._hoverState=Ne;return}if(clearTimeout(e._timeout),e._hoverState=Ne,!e._config.delay||!e._config.delay.show){e.show();return}e._timeout=setTimeout(()=>{e._hoverState===Ne&&e.show()},e._config.delay.show)}_leave(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusout"?on:xe]=e._element.contains(t.relatedTarget)),!e._isWithActiveTrigger()){if(clearTimeout(e._timeout),e._hoverState=rn,!e._config.delay||!e._config.delay.hide){e.hide();return}e._timeout=setTimeout(()=>{e._hoverState===rn&&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=H.getDataAttributes(this._element);return Object.keys(e).forEach(n=>{Yl.has(n)&&delete e[n]}),t=O(O(O({},this.constructor.Default),e),typeof t=="object"&&t?t:{}),t.container=t.container===!1?document.body:re(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()),ht(Wr,t,this.constructor.DefaultType),t.sanitize&&(t.template=Hr(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(Ul);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=gt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};tt(gt);var tc="popover",ec="bs.popover",ct=`.${ec}`,Fr="bs-popover",ic=new RegExp(`(^|\\s)${Fr}\\S+`,"g"),nc=We(O({},gt.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>'}),rc=We(O({},gt.DefaultType),{content:"(string|element|function)"}),oc={HIDE:`hide${ct}`,HIDDEN:`hidden${ct}`,SHOW:`show${ct}`,SHOWN:`shown${ct}`,INSERTED:`inserted${ct}`,CLICK:`click${ct}`,FOCUSIN:`focusin${ct}`,FOCUSOUT:`focusout${ct}`,MOUSEENTER:`mouseenter${ct}`,MOUSELEAVE:`mouseleave${ct}`},sc="fade",ac="show",zr=".popover-header",Ur=".popover-body",le=class extends gt{static get Default(){return nc}static get NAME(){return tc}static get Event(){return oc}static get DefaultType(){return rc}isWithContent(){return this.getTitle()||this._getContent()}getTipElement(){return this.tip?this.tip:(this.tip=super.getTipElement(),this.getTitle()||T.findOne(zr,this.tip).remove(),this._getContent()||T.findOne(Ur,this.tip).remove(),this.tip)}setContent(){let t=this.getTipElement();this.setElementContent(T.findOne(zr,t),this.getTitle());let e=this._getContent();typeof e=="function"&&(e=e.call(this._element)),this.setElementContent(T.findOne(Ur,t),e),t.classList.remove(sc,ac)}_addAttachmentClass(t){this.getTipElement().classList.add(`${Fr}-${this.updateAttachment(t)}`)}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_cleanTipClass(){let t=this.getTipElement(),e=t.getAttribute("class").match(ic);e!==null&&e.length>0&&e.map(n=>n.trim()).forEach(n=>t.classList.remove(n))}static jQueryInterface(t){return this.each(function(){let e=le.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};tt(le);var sn="scrollspy",lc="bs.scrollspy",ui=`.${lc}`,cc=".data-api",Yr={offset:10,method:"auto",target:""},uc={offset:"number",method:"string",target:"(string|element)"},fc=`activate${ui}`,dc=`scroll${ui}`,hc=`load${ui}${cc}`,Kr="dropdown-item",Ut="active",pc='[data-bs-spy="scroll"]',mc=".nav, .list-group",an=".nav-link",gc=".nav-item",qr=".list-group-item",_c=".dropdown",Ec=".dropdown-toggle",vc="offset",Gr="position",De=class extends et{constructor(t,e){super(t);this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} ${an}, ${this._config.target} ${qr}, ${this._config.target} .${Kr}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,g.on(this._scrollElement,dc,()=>this._process()),this.refresh(),this._process()}static get Default(){return Yr}static get NAME(){return sn}refresh(){let t=this._scrollElement===this._scrollElement.window?vc:Gr,e=this._config.method==="auto"?t:this._config.method,n=e===Gr?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),T.find(this._selector).map(s=>{let o=Fi(s),a=o?T.findOne(o):null;if(a){let u=a.getBoundingClientRect();if(u.width||u.height)return[H[e](a).top+n,o]}return null}).filter(s=>s).sort((s,o)=>s[0]-o[0]).forEach(s=>{this._offsets.push(s[0]),this._targets.push(s[1])})}dispose(){g.off(this._scrollElement,ui),super.dispose()}_getConfig(t){if(t=O(O(O({},Yr),H.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),typeof t.target!="string"&&Tt(t.target)){let{id:e}=t.target;e||(e=Vn(sn),t.target.id=e),t.target=`#${e}`}return ht(sn,t,uc),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 r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null,this._clear();return}for(let r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&(typeof this._offsets[r+1]=="undefined"||t<this._offsets[r+1])&&this._activate(this._targets[r])}_activate(t){this._activeTarget=t,this._clear();let e=this._selector.split(",").map(r=>`${r}[data-bs-target="${t}"],${r}[href="${t}"]`),n=T.findOne(e.join(","));n.classList.contains(Kr)?(T.findOne(Ec,n.closest(_c)).classList.add(Ut),n.classList.add(Ut)):(n.classList.add(Ut),T.parents(n,mc).forEach(r=>{T.prev(r,`${an}, ${qr}`).forEach(s=>s.classList.add(Ut)),T.prev(r,gc).forEach(s=>{T.children(s,an).forEach(o=>o.classList.add(Ut))})})),g.trigger(this._scrollElement,fc,{relatedTarget:t})}_clear(){T.find(this._selector).filter(t=>t.classList.contains(Ut)).forEach(t=>t.classList.remove(Ut))}static jQueryInterface(t){return this.each(function(){let e=De.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};g.on(window,hc,()=>{T.find(pc).forEach(i=>new De(i))});tt(De);var yc="tab",bc="bs.tab",Ie=`.${bc}`,Tc=".data-api",Ac=`hide${Ie}`,Sc=`hidden${Ie}`,Oc=`show${Ie}`,wc=`shown${Ie}`,Cc=`click${Ie}${Tc}`,Lc="dropdown-menu",Pe="active",Xr="fade",Qr="show",Nc=".dropdown",xc=".nav, .list-group",Zr=".active",Jr=":scope > li > .active",Dc='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ic=".dropdown-toggle",Pc=":scope > .dropdown-menu .active",ce=class extends et{static get NAME(){return yc}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Pe))return;let t,e=bt(this._element),n=this._element.closest(xc);if(n){let a=n.nodeName==="UL"||n.nodeName==="OL"?Jr:Zr;t=T.find(a,n),t=t[t.length-1]}let r=t?g.trigger(t,Ac,{relatedTarget:this._element}):null;if(g.trigger(this._element,Oc,{relatedTarget:t}).defaultPrevented||r!==null&&r.defaultPrevented)return;this._activate(this._element,n);let o=()=>{g.trigger(t,Sc,{relatedTarget:this._element}),g.trigger(this._element,wc,{relatedTarget:t})};e?this._activate(e,e.parentNode,o):o()}_activate(t,e,n){let s=(e&&(e.nodeName==="UL"||e.nodeName==="OL")?T.find(Jr,e):T.children(e,Zr))[0],o=n&&s&&s.classList.contains(Xr),a=()=>this._transitionComplete(t,s,n);s&&o?(s.classList.remove(Qr),this._queueCallback(a,t,!0)):a()}_transitionComplete(t,e,n){if(e){e.classList.remove(Pe);let s=T.findOne(Pc,e.parentNode);s&&s.classList.remove(Pe),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!1)}t.classList.add(Pe),t.getAttribute("role")==="tab"&&t.setAttribute("aria-selected",!0),se(t),t.classList.contains(Xr)&&t.classList.add(Qr);let r=t.parentNode;if(r&&r.nodeName==="LI"&&(r=r.parentNode),r&&r.classList.contains(Lc)){let s=t.closest(Nc);s&&T.find(Ic,s).forEach(o=>o.classList.add(Pe)),t.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(t){return this.each(function(){let e=ce.getOrCreateInstance(this);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};g.on(document,Cc,Dc,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),oe(this))return;ce.getOrCreateInstance(this).show()});tt(ce);var to="toast",Rc="bs.toast",_t=`.${Rc}`,$c=`click.dismiss${_t}`,Mc=`mouseover${_t}`,jc=`mouseout${_t}`,kc=`focusin${_t}`,Hc=`focusout${_t}`,Wc=`hide${_t}`,Bc=`hidden${_t}`,Vc=`show${_t}`,Fc=`shown${_t}`,zc="fade",eo="hide",Re="show",io="showing",Uc={animation:"boolean",autohide:"boolean",delay:"number"},no={animation:!0,autohide:!0,delay:5e3},Yc='[data-bs-dismiss="toast"]',Yt=class extends et{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 Uc}static get Default(){return no}static get NAME(){return to}show(){if(g.trigger(this._element,Vc).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(zc);let e=()=>{this._element.classList.remove(io),this._element.classList.add(Re),g.trigger(this._element,Fc),this._maybeScheduleHide()};this._element.classList.remove(eo),se(this._element),this._element.classList.add(io),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this._element.classList.contains(Re)||g.trigger(this._element,Wc).defaultPrevented)return;let e=()=>{this._element.classList.add(eo),g.trigger(this._element,Bc)};this._element.classList.remove(Re),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(Re)&&this._element.classList.remove(Re),super.dispose()}_getConfig(t){return t=O(O(O({},no),H.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),ht(to,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(){g.on(this._element,$c,Yc,()=>this.hide()),g.on(this._element,Mc,t=>this._onInteraction(t,!0)),g.on(this._element,jc,t=>this._onInteraction(t,!1)),g.on(this._element,kc,t=>this._onInteraction(t,!0)),g.on(this._element,Hc,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=Yt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};tt(Yt);var hu=Oi(co());var Do=Oi(uo()),Io=Oi(xo());function Po(i){return"error"in i}function $e(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 lu(){let{csrftoken:i}=Do.default.parse(document.cookie);if(typeof i=="undefined")throw new Error("Invalid or missing CSRF token");return i}function cu(){let i=document.documentElement.getAttribute("data-netbox-base-path");return i===null?"":i}function uu(i){let[t,e]=i.split(/(?=\?)/g),n=new RegExp(window.location.origin,"g"),r=t.replaceAll(n,""),o=[...cu().split("/"),...r.split("/")].filter(h=>h);o[0]!=="/"&&(o=["",...o]),o[o.length-1]!=="/"&&(o=[...o,""]);let a=o.join("/"),u=Object.fromEntries(new URLSearchParams(e).entries());return Io.default.stringifyUrl({url:a,query:u})}function fu(i,t,e){return wi(this,null,function*(){let n=lu(),r=new Headers({"X-CSRFToken":n}),s;typeof e!="undefined"&&(s=JSON.stringify(e),r.set("content-type","application/json"));let o=uu(i),a=yield fetch(o,{method:t,body:s,headers:r,credentials:"same-origin"}),u=a.headers.get("Content-Type");if(typeof u=="string"&&u.includes("text"))return{error:yield a.text()};let h=yield a.json();return!a.ok&&Array.isArray(h)?{error:h.join(`
|
|
`)}:!a.ok&&"detail"in h?{error:h.detail}:h})}function Ro(i){return wi(this,null,function*(){return yield fu(i,"GET")})}function*fn(...i){for(let t of i)for(let e of document.querySelectorAll(t))e!==null&&(yield e)}function $o(i){i.startsWith("data-")||(i=`data-${i}`);for(let t of fn("body > div#netbox-data > *")){let e=t.getAttribute(i);if($e(e))return e}return null}function du(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 yi(i){for(let t of fn("div.card-overlay"))du(t,i)}window.Collapse=it;window.Modal=Ft;window.Popover=le;window.Toast=Yt;window.Tooltip=gt;function Mo(i,t,e,n){let r="mdi-alert";switch(i){case"warning":r="mdi-alert";break;case"success":r="mdi-check-circle";break;case"info":r="mdi-information";break;case"danger":r="mdi-alert";break}let s=document.createElement("div");s.setAttribute("class","toast-container position-fixed bottom-0 end-0 m-3");let o=document.createElement("div");o.setAttribute("class",`toast bg-${i}`),o.setAttribute("role","alert"),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true");let a=document.createElement("div");a.setAttribute("class",`toast-header bg-${i} text-body`);let u=document.createElement("i");u.setAttribute("class",`mdi ${r}`);let h=document.createElement("strong");h.setAttribute("class","me-auto ms-1"),h.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 _=document.createElement("div");if(_.setAttribute("class","toast-body"),a.appendChild(u),a.appendChild(h),typeof n!="undefined"){let v=document.createElement("small");v.setAttribute("class","text-muted"),a.appendChild(v)}return a.appendChild(f),_.innerText=e.trim(),o.appendChild(a),o.appendChild(_),s.appendChild(o),document.body.appendChild(s),new Yt(o)}function dn(i,t,e){var n,r;return(r=(n=i.querySelector(t))==null?void 0:n.getAttribute(e))!=null?r:null}function pu(i){var t,e;for(let[n,r]of Object.entries(i.get_lldp_neighbors_detail)){let[s]=n.split("."),o=document.getElementById(s);if(o!==null)for(let a of r){let u=o.querySelector("td.device"),h=o.querySelector("td.interface"),f=dn(o,"td.configured_device","data"),_=dn(o,"td.configured_chassis","data-chassis"),d=dn(o,"td.configured_interface","data"),v=null;$e(d)&&(v=d.replace(/^([A-Z][a-z])[^0-9]*([0-9/]+)$/,"$1$2"));let E=(t=a.remote_system_name)!=null?t:"",p=(e=a.remote_port)!=null?e:"",[l]=E.split("."),[c]=p.split(".");u!==null&&(u.innerText=l),h!==null&&(h.innerText=c),!$e(f)&&$e(l)?o.classList.add("info"):(f===l||_===l)&&v===c||f===l||_===l?o.classList.add("success"):o.classList.add("danger")}}}function jo(){yi("show");let i=$o("object-url");i!==null&&Ro(i).then(t=>{if(Po(t)){Mo("danger","Error Retrieving LLDP Neighbor Information",t.error).show(),yi("hide");return}else pu(t)}).finally(()=>{yi("hide")})}document.readyState!=="loading"?jo():document.addEventListener("DOMContentLoaded",jo);})();
|
|
/*!
|
|
* 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
|
|
*/
|
|
/*!
|
|
* cookie
|
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
* MIT Licensed
|
|
*/
|
|
/*!
|
|
* getSize v2.0.3
|
|
* measure size of elements
|
|
* MIT license
|
|
*/
|