bootstrap.native
Advanced tools
Comparing version 5.0.0-alpha1 to 5.0.0-alpha2
@@ -1,2 +0,2 @@ | ||
var BSN=function(B){"use strict";function Uo(t,e){for(var n=0;n<e.length;n++){const s=e[n];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(s,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var b={};(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e={},n=r=>{const{type:c,currentTarget:l}=r;[...e[c]].forEach(([d,h])=>{l===d&&[...h].forEach(([m,S])=>{m.apply(d,[r]),typeof S=="object"&&S.once&&o(d,c,m,S)})})},s=(r,c,l,d)=>{e[c]||(e[c]=new Map);const h=e[c];h.has(r)||h.set(r,new Map);const m=h.get(r),{size:S}=m;m.set(l,d),S||r.addEventListener(c,n,d)},o=(r,c,l,d)=>{const h=e[c],m=h&&h.get(r),S=m&&m.get(l),V=S!==void 0?S:d;m&&m.has(l)&&m.delete(l),h&&(!m||!m.size)&&h.delete(r),(!h||!h.size)&&delete e[c],(!m||!m.size)&&r.removeEventListener(c,n,V)},i=s,a=o;t.addListener=s,t.globalListener=n,t.off=a,t.on=i,t.registry=e,t.removeListener=o})(b);const _o=Uo({__proto__:null,default:b},[b]),Bn="aria-describedby",fe="aria-expanded",ue="aria-hidden",pe="aria-modal",Rn="aria-pressed",We="aria-selected",qo="DOMContentLoaded",je="focus",Fe="focusin",Wn="focusout",ge="keydown",Go="keyup",k="click",Qo="mousedown",Zo="hover",me="mouseenter",ze="mouseleave",Jo="pointerdown",ti="pointermove",ei="pointerup",ve="resize",be="scroll",Ke="touchstart",ni="dragstart",Ve="ArrowDown",Xe="ArrowUp",jn="ArrowLeft",Fn="ArrowRight",Ye="Escape",si="transitionDuration",oi="transitionDelay",Ue="transitionend",zn="transitionProperty",ii=navigator.userAgentData,we=ii,{userAgent:ri}=navigator,$e=ri,Kn=/iPhone|iPad|iPod|Android/i;we?we.brands.some(t=>Kn.test(t.brand)):Kn.test($e);const Vn=/(iPhone|iPod|iPad)/,ai=we?we.brands.some(t=>Vn.test(t.brand)):Vn.test($e);$e&&$e.includes("Firefox");const{head:Te}=document;["webkitPerspective","perspective"].some(t=>t in Te.style);const ci=(t,e,n,s)=>{const o=s||!1;t.addEventListener(e,n,o)},li=(t,e,n,s)=>{const o=s||!1;t.removeEventListener(e,n,o)},di=(t,e,n,s)=>{const o=i=>{(i.target===t||i.currentTarget===t)&&(n.apply(t,[i]),li(t,e,o,s))};ci(t,e,o,s)},_t=()=>{};(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});di(document,qo,_t,e)}catch{}return t})(),["webkitTransform","transform"].some(t=>t in Te.style),["webkitAnimation","animation"].some(t=>t in Te.style),["webkitTransition","transition"].some(t=>t in Te.style);const Ct=(t,e)=>t.getAttribute(e),ye=(t,e)=>t.hasAttribute(e),O=(t,e,n)=>t.setAttribute(e,n),St=(t,e)=>t.removeAttribute(e),f=(t,...e)=>{t.classList.add(...e)},v=(t,...e)=>{t.classList.remove(...e)},u=(t,e)=>t.classList.contains(e),qt=t=>t!=null&&typeof t=="object"||!1,A=t=>qt(t)&&typeof t.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(e=>t.nodeType===e)||!1,E=t=>A(t)&&t.nodeType===1||!1,Gt=new Map,Ht={set:(t,e,n)=>{E(t)&&(Gt.has(e)||Gt.set(e,new Map),Gt.get(e).set(t,n))},getAllFor:t=>Gt.get(t)||null,get:(t,e)=>{if(!E(t)||!e)return null;const n=Ht.getAllFor(e);return t&&n&&n.get(t)||null},remove:(t,e)=>{const n=Ht.getAllFor(e);!n||!E(t)||(n.delete(t),n.size===0&&Gt.delete(e))}},W=(t,e)=>Ht.get(t,e),Pt=t=>typeof t=="string"||!1,_e=t=>qt(t)&&t.constructor.name==="Window"||!1,Xn=t=>A(t)&&t.nodeType===9||!1,$=t=>_e(t)?t.document:Xn(t)?t:A(t)?t.ownerDocument:window.document,Qt=t=>Object.entries(t),lt=t=>{if(!t)return;if(Pt(t))return $().createElement(t);const{tagName:e}=t,n=lt(e);if(!n)return;const s={...t};return delete s.tagName,Qt(s).forEach(([o,i])=>{Pt(o)&&Pt(i)&&O(n,o,i)}),n},w=(t,e)=>t.dispatchEvent(e),z=(t,e)=>{const n=getComputedStyle(t),s=e.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(s)},hi=t=>{const e=z(t,zn),n=z(t,oi),s=n.includes("ms")?1:1e3,o=e&&e!=="none"?parseFloat(n)*s:0;return Number.isNaN(o)?0:o},Zt=t=>{const e=z(t,zn),n=z(t,si),s=n.includes("ms")?1:1e3,o=e&&e!=="none"?parseFloat(n)*s:0;return Number.isNaN(o)?0:o},N=(t,e)=>{let n=0;const s=new Event(Ue),o=Zt(t),i=hi(t);if(o){const a=r=>{r.target===t&&(e.apply(t,[r]),t.removeEventListener(Ue,a),n=1)};t.addEventListener(Ue,a),setTimeout(()=>{n||w(t,s)},o+i+17)}else e.apply(t,[s])},it=(t,e)=>t.focus(e),Yn=t=>["true",!0].includes(t)?!0:["false",!1].includes(t)?!1:["null","",null,void 0].includes(t)?null:t!==""&&!Number.isNaN(+t)?+t:t,Wt=t=>t.toLowerCase(),fi=(t,e,n,s)=>{const o={...n},i={...t.dataset},a={...e},r={},c="title";return Qt(i).forEach(([l,d])=>{const h=s&&typeof l=="string"&&l.includes(s)?l.replace(s,"").replace(/[A-Z]/g,m=>Wt(m)):l;r[h]=Yn(d)}),Qt(o).forEach(([l,d])=>{o[l]=Yn(d)}),Qt(e).forEach(([l,d])=>{l in o?a[l]=o[l]:l in r?a[l]=r[l]:a[l]=l===c?Ct(t,c):d}),a},dt=(t,...e)=>Object.assign(t,...e),qe=t=>Object.keys(t),ui=t=>Object.values(t),T=(t,e)=>{const n=new CustomEvent(t,{cancelable:!0,bubbles:!0});return qt(e)&&dt(n,e),n},Z={passive:!0},Dt=t=>t.offsetHeight,L=(t,e)=>{Qt(e).forEach(([n,s])=>{if(s&&Pt(n)&&n.includes("--"))t.style.setProperty(n,s);else{const o={};o[n]=s,dt(t.style,o)}})},Ge=t=>qt(t)&&t.constructor.name==="Map"||!1,pi=t=>typeof t=="number"||!1,ht=new Map,p={set:(t,e,n,s)=>{!E(t)||(s&&s.length?(ht.has(t)||ht.set(t,new Map),ht.get(t).set(s,setTimeout(e,n))):ht.set(t,setTimeout(e,n)))},get:(t,e)=>{if(!E(t))return null;const n=ht.get(t);return e&&n&&Ge(n)?n.get(e)||null:pi(n)?n:null},clear:(t,e)=>{if(!E(t))return;const n=ht.get(t);e&&e.length&&Ge(n)?(clearTimeout(n.get(e)),n.delete(e),n.size===0&&ht.delete(t)):(clearTimeout(n),ht.delete(t))}},Jt=(t,e)=>{const{width:n,height:s,top:o,right:i,bottom:a,left:r}=t.getBoundingClientRect();let c=1,l=1;if(e&&E(t)){const{offsetWidth:d,offsetHeight:h}=t;c=d>0?Math.round(n)/d:1,l=h>0?Math.round(s)/h:1}return{width:n/c,height:s/l,top:o/l,right:i/c,bottom:a/l,left:r/c,x:r/c,y:o/l}},ft=t=>$(t).body,rt=t=>$(t).documentElement,Un=t=>A(t)&&t.constructor.name==="ShadowRoot"||!1,gi=t=>t.nodeName==="HTML"?t:E(t)&&t.assignedSlot||A(t)&&t.parentNode||Un(t)&&t.host||rt(t);let _n=0,qn=0;const jt=new Map,Gn=(t,e)=>{let n=e?_n:qn;if(e){const s=Gn(t),o=jt.get(s)||new Map;jt.has(s)||jt.set(s,o),Ge(o)&&!o.has(e)?(o.set(e,n),_n+=1):n=o.get(e)}else{const s=t.id||t;jt.has(s)?n=jt.get(s):(jt.set(s,n),qn+=1)}return n},Ft=t=>{var e;return t?Xn(t)?t.defaultView:A(t)?(e=t?.ownerDocument)==null?void 0:e.defaultView:t:window},mi=t=>Array.isArray(t)||!1,Qn=t=>{if(!A(t))return!1;const{top:e,bottom:n}=Jt(t),{clientHeight:s}=rt(t);return e<=s&&n>=0},Ee=t=>typeof t=="function"||!1,vi=t=>qt(t)&&t.constructor.name==="NodeList"||!1,ut=t=>rt(t).dir==="rtl",bi=t=>A(t)&&["TABLE","TD","TH"].includes(t.nodeName)||!1,x=(t,e)=>t?t.closest(e)||x(t.getRootNode().host,e):null,P=(t,e)=>E(t)?t:(A(e)?e:$()).querySelector(t),Qe=(t,e)=>(A(e)?e:$()).getElementsByTagName(t),J=(t,e)=>(A(e)?e:$()).querySelectorAll(t),pt=(t,e)=>(e&&A(e)?e:$()).getElementsByClassName(t),wi=(t,e)=>t.matches(e),R="fade",g="show",Ce="data-bs-dismiss",Se="alert",Zn="Alert",$i="5.0.0-alpha1";class tt{element;options;constructor(e,n){const s=P(e);if(!s)throw Pt(e)?Error(`${this.name} Error: "${e}" is not a valid selector.`):Error(`${this.name} Error: your target is not an instance of HTMLElement.`);const o=Ht.get(s,this.name);o&&o.dispose(),this.element=s,this.defaults&&qe(this.defaults).length&&(this.options=fi(s,this.defaults,n||{},"bs")),Ht.set(s,this.name,this)}get version(){return $i}get name(){return"BaseComponent"}get defaults(){return{}}dispose(){Ht.remove(this.element,this.name),qe(this).forEach(e=>{delete this[e]})}}const Jn=`.${Se}`,Ti=`[${Ce}="${Se}"]`,ts=t=>W(t,Zn),yi=t=>new Je(t),es=T(`close.bs.${Se}`),Ei=T(`closed.bs.${Se}`),ns=t=>{const{element:e}=t;Ze(t),w(e,Ei),t.dispose(),e.remove()},Ze=(t,e)=>{const n=e?b.addListener:b.removeListener,{dismiss:s}=t;s&&n(s,k,t.close)};class Je extends tt{static selector=Jn;static init=yi;static getInstance=ts;dismiss;constructor(e){super(e),this.dismiss=P(Ti,this.element),Ze(this,!0)}get name(){return Zn}close(e){const n=e?ts(x(e.target,Jn)):this,{element:s}=n;if(s&&u(s,g)){if(w(s,es),es.defaultPrevented)return;v(s,g),u(s,R)?N(s,()=>ns(n)):ns(n)}}dispose(){Ze(this),super.dispose()}}const C="active",U="data-bs-toggle",Ci="button",ss="Button",Si=`[${U}="${Ci}"]`,os=t=>W(t,ss),Hi=t=>new tn(t),is=(t,e)=>{(e?b.addListener:b.removeListener)(t.element,k,t.toggle)};class tn extends tt{static selector=Si;static init=Hi;static getInstance=os;isActive=!1;constructor(e){super(e);const{element:n}=this;this.isActive=u(n,C),O(n,Rn,String(!!this.isActive)),is(this,!0)}get name(){return ss}toggle(e){e&&e.preventDefault();const n=e?os(e.target):this;if(!n.element)return;const{element:s,isActive:o}=n;if(u(s,"disabled"))return;(o?v:f)(s,C),O(s,Rn,o?"false":"true"),n.isActive=u(s,C)}dispose(){is(this),super.dispose()}}const en="data-bs-target",At="carousel",rs="Carousel",as="data-bs-parent",Pi="data-bs-container",j=t=>{const e=[en,as,Pi,"href"],n=$(t);return e.map(s=>{const o=Ct(t,s);return o?s===as?x(t,o):P(o,n):null}).filter(s=>s)[0]},te=`[data-bs-ride="${At}"]`,et=`${At}-item`,nn="data-bs-slide-to",gt="data-bs-slide",mt="paused",cs={pause:"hover",keyboard:!1,touch:!0,interval:5e3},st=t=>W(t,rs),Di=t=>new cn(t);let Lt=0,zt=0,ee=0;const sn=T(`slide.bs.${At}`),on=T(`slid.bs.${At}`),Ai=t=>{const{index:e,direction:n,element:s,slides:o,options:i}=t;if(t.isAnimating&&st(s)){const a=an(t),r=n==="left"?"next":"prev",c=n==="left"?"start":"end";f(o[e],C),v(o[e],`${et}-${r}`),v(o[e],`${et}-${c}`),v(o[a],C),v(o[a],`${et}-${c}`),w(s,on),p.clear(s,gt),!$(s).hidden&&i.interval&&!t.isPaused&&t.cycle()}};function Li(){const t=st(this);t&&!t.isPaused&&!p.get(this,mt)&&f(this,mt)}function Ii(){const t=st(this);t&&t.isPaused&&!p.get(this,mt)&&t.cycle()}function xi(t){t.preventDefault();const e=x(this,te)||j(this),n=st(e);if(!n||n.isAnimating)return;const s=+(Ct(this,nn)||0);this&&!u(this,C)&&!Number.isNaN(s)&&n.to(s)}function Oi(t){t.preventDefault();const e=x(this,te)||j(this),n=st(e);if(!n||n.isAnimating)return;const s=Ct(this,gt);s==="next"?n.next():s==="prev"&&n.prev()}const ki=({code:t,target:e})=>{const n=$(e),[s]=[...J(te,n)].filter(c=>Qn(c)),o=st(s);if(!o||o.isAnimating||/textarea|input/i.test(e.nodeName))return;const i=ut(s);t===(i?Fn:jn)?o.prev():t===(i?jn:Fn)&&o.next()};function ls(t){const{target:e}=t,n=st(this);n&&n.isTouch&&(n.indicator&&!n.indicator.contains(e)||!n.controls.includes(e))&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())}function Ni(t){const{target:e}=t,n=st(this);if(!n||n.isAnimating||n.isTouch)return;const{controls:s,indicators:o}=n;[...s,...o].some(i=>i===e||i.contains(e))||(Lt=t.pageX,this.contains(e)&&(n.isTouch=!0,ds(n,!0)))}const Mi=t=>{zt=t.pageX},Bi=t=>{const{target:e}=t,n=$(e),s=[...J(te,n)].map(r=>st(r)).find(r=>r.isTouch);if(!s)return;const{element:o,index:i}=s,a=ut(o);if(s.isTouch=!1,ds(s),n.getSelection()?.toString().length){Lt=0,zt=0,ee=0;return}if(ee=t.pageX,!o.contains(e)||Math.abs(Lt-ee)<120){Lt=0,zt=0,ee=0;return}zt<Lt?s.to(i+(a?-1:1)):zt>Lt&&s.to(i+(a?1:-1)),Lt=0,zt=0,ee=0},rn=(t,e)=>{const{indicators:n}=t;[...n].forEach(s=>v(s,C)),t.indicators[e]&&f(n[e],C)},ds=(t,e)=>{const{element:n}=t,s=e?b.addListener:b.removeListener;s($(n),ti,Mi,Z),s($(n),ei,Bi,Z)},hs=(t,e)=>{const{element:n,options:s,slides:o,controls:i,indicators:a}=t,{touch:r,pause:c,interval:l,keyboard:d}=s,h=e?b.addListener:b.removeListener;c&&l&&(h(n,me,Li),h(n,ze,Ii)),r&&o.length>2&&(h(n,Jo,Ni,Z),h(n,Ke,ls,{passive:!1}),h(n,ni,ls,{passive:!1})),i.length&&i.forEach(m=>{m&&h(m,k,Oi)}),a.length&&a.forEach(m=>{h(m,k,xi)}),d&&h($(n),ge,ki)},an=t=>{const{slides:e,element:n}=t,s=P(`.${et}.${C}`,n);return E(s)?[...e].indexOf(s):-1};class cn extends tt{static selector=te;static init=Di;static getInstance=st;constructor(e,n){super(e,n);const{element:s}=this;this.direction=ut(s)?"right":"left",this.index=0,this.isTouch=!1,this.slides=pt(et,s);const{slides:o}=this;if(o.length<2)return;const i=$(s);this.controls=[...J(`[${gt}]`,s),...J(`[${gt}][${en}="#${s.id}"]`,i)],this.indicator=P(`.${At}-indicators`,s),this.indicators=[...this.indicator?J(`[${nn}]`,this.indicator):[],...J(`[${nn}][${en}="#${s.id}"]`,i)];const{options:a}=this;this.options.interval=a.interval===!0?cs.interval:a.interval,an(this)<0&&(f(o[0],C),this.indicators.length&&rn(this,0)),hs(this,!0),a.interval&&this.cycle()}get name(){return rs}get defaults(){return cs}get isPaused(){return u(this.element,mt)}get isAnimating(){return P(`.${et}-next,.${et}-prev`,this.element)!==null}cycle(){const{element:e,options:n,isPaused:s,index:o}=this;p.clear(e,At),s&&(p.clear(e,mt),v(e,mt)),p.set(e,()=>{this.element&&!this.isPaused&&!this.isTouch&&Qn(e)&&this.to(o+1)},n.interval,At)}pause(){const{element:e,options:n}=this;!this.isPaused&&n.interval&&(f(e,mt),p.set(e,()=>{},1,mt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(e){const{element:n,slides:s,options:o}=this,i=an(this),a=ut(n);let r=e;if(this.isAnimating||i===r||p.get(n,gt))return;i<r||i===0&&r===s.length-1?this.direction=a?"right":"left":(i>r||i===s.length-1&&r===0)&&(this.direction=a?"left":"right");const{direction:c}=this;r<0?r=s.length-1:r>=s.length&&(r=0);const l=c==="left"?"next":"prev",d=c==="left"?"start":"end",h={relatedTarget:s[r],from:i,to:r,direction:c};dt(sn,h),dt(on,h),w(n,sn),!sn.defaultPrevented&&(this.index=r,rn(this,r),Zt(s[r])&&u(n,"slide")?p.set(n,()=>{f(s[r],`${et}-${l}`),Dt(s[r]),f(s[r],`${et}-${d}`),f(s[i],`${et}-${d}`),N(s[r],()=>Ai(this))},0,gt):(f(s[r],C),v(s[i],C),p.set(n,()=>{p.clear(n,gt),n&&o.interval&&!this.isPaused&&this.cycle(),w(n,on)},0,gt)))}dispose(){const{slides:e}=this,n=["start","end","prev","next"];[...e].forEach((s,o)=>{u(s,C)&&rn(this,o),n.forEach(i=>v(s,`${et}-${i}`))}),hs(this),super.dispose()}}const It="collapsing",K="collapse",fs="Collapse",Ri=`.${K}`,us=`[${U}="${K}"]`,Wi={parent:null},He=t=>W(t,fs),ji=t=>new ln(t),ps=T(`show.bs.${K}`),Fi=T(`shown.bs.${K}`),gs=T(`hide.bs.${K}`),zi=T(`hidden.bs.${K}`),Ki=t=>{const{element:e,parent:n,triggers:s}=t;w(e,ps),!ps.defaultPrevented&&(p.set(e,_t,17),n&&p.set(n,_t,17),f(e,It),v(e,K),L(e,{height:`${e.scrollHeight}px`}),N(e,()=>{p.clear(e),n&&p.clear(n),s.forEach(o=>O(o,fe,"true")),v(e,It),f(e,K),f(e,g),L(e,{height:""}),w(e,Fi)}))},ms=t=>{const{element:e,parent:n,triggers:s}=t;w(e,gs),!gs.defaultPrevented&&(p.set(e,_t,17),n&&p.set(n,_t,17),L(e,{height:`${e.scrollHeight}px`}),v(e,K),v(e,g),f(e,It),Dt(e),L(e,{height:"0px"}),N(e,()=>{p.clear(e),n&&p.clear(n),s.forEach(o=>O(o,fe,"false")),v(e,It),f(e,K),L(e,{height:""}),w(e,zi)}))},vs=(t,e)=>{const n=e?b.addListener:b.removeListener,{triggers:s}=t;s.length&&s.forEach(o=>n(o,k,Vi))},Vi=t=>{const{target:e}=t,n=e&&x(e,us),s=n&&j(n),o=s&&He(s);o&&o.toggle(),n&&n.tagName==="A"&&t.preventDefault()};class ln extends tt{static selector=Ri;static init=ji;static getInstance=He;constructor(e,n){super(e,n);const{element:s,options:o}=this,i=$(s);this.triggers=[...J(us,i)].filter(a=>j(a)===s),this.parent=P(o.parent,i)||j(s)||null,this.parent=j(s)||null,vs(this,!0)}get name(){return fs}get defaults(){return Wi}toggle(){u(this.element,g)?this.hide():this.show()}hide(){const{triggers:e,element:n}=this;p.get(n)||(ms(this),e.length&&e.forEach(s=>f(s,`${K}d`)))}show(){const{element:e,parent:n,triggers:s}=this;let o,i;n&&(o=[...J(`.${K}.${g}`,n)].find(a=>He(a)),i=o&&He(o)),(!n||!p.get(n))&&!p.get(e)&&(i&&o!==e&&(ms(i),i.triggers.forEach(a=>{f(a,`${K}d`)})),Ki(this),s.length&&s.forEach(a=>v(a,`${K}d`)))}dispose(){vs(this),super.dispose()}}const xt=["dropdown","dropup","dropstart","dropend"],bs="Dropdown",ws="dropdown-menu",$s=t=>{const e=x(t,"A");return t.tagName==="A"&&ye(t,"href")&&t.href.slice(-1)==="#"||e&&ye(e,"href")&&e.href.slice(-1)==="#"},[nt,Pe,De,Ae]=xt,dn=`[${U}="${nt}"],[${U}="${Pe}"],[${U}="${Ae}"],[${U}="${De}"]`,Kt=t=>W(t,bs),Xi=t=>new un(t),Yi=`${ws}-end`,Ts=[nt,Pe],ys=[De,Ae],Es=["A","BUTTON"],Ui={offset:5,display:"dynamic"},hn=T(`show.bs.${nt}`),Cs=T(`shown.bs.${nt}`),fn=T(`hide.bs.${nt}`),Ss=T(`hidden.bs.${nt}`),Hs=T(`updated.bs.${nt}`),Ps=t=>{const{element:e,menu:n,parentElement:s,options:o}=t,{offset:i}=o;if(z(n,"position")==="static")return;const a=ut(e),r=u(n,Yi);["margin","top","bottom","left","right"].forEach(M=>{const Tt={};Tt[M]="",L(n,Tt)});let l=xt.find(M=>u(s,M))||nt;const d={dropdown:[i,0,0],dropup:[0,0,i],dropstart:a?[-1,0,0,i]:[-1,i,0],dropend:a?[-1,i,0]:[-1,0,0,i]},h={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:a?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:a?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:a?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:a?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:m,offsetHeight:S}=n,{clientWidth:V,clientHeight:y}=rt(e),{left:X,top:q,width:Xt,height:ct}=Jt(e),D=X-m-i<0,wt=X+m+Xt+i>=V,ot=q+S+i>=y,F=q+S+ct+i>=y,Y=q-S-i<0,H=(!a&&r||a&&!r)&&X+Xt-m<0,Yt=(a&&r||!a&&!r)&&X+m>=V;if(ys.includes(l)&&D&&wt&&(l=nt),l===De&&(a?wt:D)&&(l=Ae),l===Ae&&(a?D:wt)&&(l=De),l===Pe&&Y&&!F&&(l=nt),l===nt&&F&&!Y&&(l=Pe),ys.includes(l)&&ot&&dt(h[l],{top:"auto",bottom:0}),Ts.includes(l)&&(H||Yt)){let M={left:"auto",right:"auto"};!H&&Yt&&!a&&(M={left:"auto",right:0}),H&&!Yt&&a&&(M={left:0,right:"auto"}),M&&dt(h[l],M)}const $t=d[l];L(n,{...h[l],margin:`${$t.map(M=>M&&`${M}px`).join(" ")}`}),Ts.includes(l)&&r&&r&&L(n,h[!a&&H||a&&Yt?"menuStart":"menuEnd"]),w(s,Hs)},_i=t=>[...t.children].map(e=>{if(e&&Es.includes(e.tagName))return e;const{firstElementChild:n}=e;return n&&Es.includes(n.tagName)?n:null}).filter(e=>e),Ds=t=>{const{element:e,options:n}=t,s=t.open?b.addListener:b.removeListener,o=$(e);s(o,k,Ls),s(o,je,Ls),s(o,ge,Gi),s(o,Go,Qi),n.display==="dynamic"&&[be,ve].forEach(i=>{s(Ft(e),i,Zi,Z)})},As=(t,e)=>{(e?b.addListener:b.removeListener)(t.element,k,qi)},Le=t=>{const e=[...xt,"btn-group","input-group"].map(n=>pt(`${n} ${g}`,$(t))).find(n=>n.length);if(e&&e.length)return[...e[0].children].find(n=>xt.some(s=>s===Ct(n,U)))},Ls=t=>{const{target:e,type:n}=t;if(!e||!e.closest)return;const s=Le(e),o=s&&Kt(s);if(!o)return;const{parentElement:i,menu:a}=o,r=x(e,dn)!==null,c=i&&i.contains(e)&&(e.tagName==="form"||x(e,"form")!==null);n===k&&$s(e)&&t.preventDefault(),!(n===je&&(e===s||e===a||a.contains(e)))&&(c||r||o&&o.hide())},qi=t=>{const{target:e}=t,n=e&&x(e,dn),s=n&&Kt(n);s&&(t.stopImmediatePropagation(),s.toggle(),n&&$s(n)&&t.preventDefault())},Gi=t=>{[Ve,Xe].includes(t.code)&&t.preventDefault()};function Qi(t){const{code:e}=t,n=Le(this),s=n&&Kt(n),{activeElement:o}=n&&$(n);if(!s||!o)return;const{menu:i,open:a}=s,r=_i(i);if(r&&r.length&&[Ve,Xe].includes(e)){let c=r.indexOf(o);o===n?c=0:e===Xe?c=c>1?c-1:0:e===Ve&&(c=c<r.length-1?c+1:c),r[c]&&it(r[c])}Ye===e&&a&&(s.toggle(),it(n))}function Zi(){const t=Le(this),e=t&&Kt(t);e&&e.open&&Ps(e)}class un extends tt{static selector=dn;static init=Xi;static getInstance=Kt;constructor(e,n){super(e,n);const{parentElement:s}=this.element;this.parentElement=s,this.menu=P(`.${ws}`,s),As(this,!0)}get name(){return bs}get defaults(){return Ui}toggle(){this.open?this.hide():this.show()}show(){const{element:e,open:n,menu:s,parentElement:o}=this;if(n)return;const i=Le(e),a=i&&Kt(i);a&&a.hide(),[hn,Cs,Hs].forEach(r=>{r.relatedTarget=e}),w(o,hn),!hn.defaultPrevented&&(f(s,g),f(o,g),O(e,fe,"true"),Ps(this),this.open=!n,it(e),Ds(this),w(o,Cs))}hide(){const{element:e,open:n,menu:s,parentElement:o}=this;n&&([fn,Ss].forEach(i=>{i.relatedTarget=e}),w(o,fn),!fn.defaultPrevented&&(v(s,g),v(o,g),O(e,fe,"false"),this.open=!n,Ds(this),w(o,Ss)))}dispose(){this.open&&this.hide(),As(this),super.dispose()}}const _="modal",pn="Modal",gn="Offcanvas",Ji="fixed-top",tr="fixed-bottom",Is="sticky-top",xs="position-sticky",Os=t=>[...pt(Ji,t),...pt(tr,t),...pt(Is,t),...pt(xs,t),...pt("is-fixed",t)],er=t=>{const e=ft(t);L(e,{paddingRight:"",overflow:""});const n=Os(e);n.length&&n.forEach(s=>{L(s,{paddingRight:"",marginRight:""})})},ks=t=>{const{clientWidth:e}=rt(t),{innerWidth:n}=Ft(t);return Math.abs(n-e)},Ns=(t,e)=>{const n=ft(t),s=parseInt(z(n,"paddingRight"),10),i=z(n,"overflow")==="hidden"&&s?0:ks(t),a=Os(n);e&&(L(n,{overflow:"hidden",paddingRight:`${s+i}px`}),a.length&&a.forEach(r=>{const c=z(r,"paddingRight");if(r.style.paddingRight=`${parseInt(c,10)+i}px`,[Is,xs].some(l=>u(r,l))){const l=z(r,"marginRight");r.style.marginRight=`${parseInt(l,10)-i}px`}}))},G="offcanvas",vt=lt({tagName:"div"}),Ms=(t,e)=>{const n=A(e)&&e.nodeName==="BODY",s=A(e)&&!n?e:vt,o=n?e:ft(t);A(t)&&(s===vt&&o.append(vt),s.append(t))},Bs=(t,e)=>{const n=A(e)&&e.nodeName==="BODY",s=A(e)&&!n?e:vt;A(t)&&(t.remove(),s===vt&&!vt.children.length&&vt.remove())},Ot=(t,e)=>{const n=A(e)&&e.nodeName!=="BODY"?e:vt;return A(t)&&n.contains(t)},Rs="backdrop",Ws=`${_}-${Rs}`,js=`${G}-${Rs}`,Fs=`.${_}.${g}`,mn=`.${G}.${g}`,I=lt("div"),kt=t=>P(`${Fs},${mn}`,$(t)),vn=t=>{const e=t?Ws:js;[Ws,js].forEach(n=>{v(I,n)}),f(I,e)},zs=(t,e,n)=>{vn(n),Ms(I,ft(t)),e&&f(I,R)},Ks=()=>{u(I,g)||(f(I,g),Dt(I))},Ie=()=>{v(I,g)},Vs=t=>{kt(t)||(v(I,R),Bs(I,ft(t)),er(t))},Xs=t=>E(t)&&z(t,"visibility")!=="hidden"&&t.offsetParent!==null,nr=`.${_}`,Ys=`[${U}="${_}"]`,sr=`[${Ce}="${_}"]`,Us=`${_}-static`,or={backdrop:!0,keyboard:!0},ne=t=>W(t,pn),ir=t=>new wn(t),xe=T(`show.bs.${_}`),_s=T(`shown.bs.${_}`),bn=T(`hide.bs.${_}`),qs=T(`hidden.bs.${_}`),Gs=t=>{const{element:e}=t,n=ks(e),{clientHeight:s,scrollHeight:o}=rt(e),{clientHeight:i,scrollHeight:a}=e,r=i!==a;if(!r&&n){const c=ut(e)?"paddingLeft":"paddingRight",l={};l[c]=`${n}px`,L(e,l)}Ns(e,r||s!==o)},Qs=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s}=t;n(s,k,cr),n(Ft(s),ve,t.update,Z),n($(s),ge,ar)},Zs=(t,e)=>{const n=e?b.addListener:b.removeListener,{triggers:s}=t;s.length&&s.forEach(o=>n(o,k,rr))},Js=(t,e)=>{const{triggers:n,element:s,relatedTarget:o}=t;Vs(s),L(s,{paddingRight:"",display:""}),Qs(t);const i=xe.relatedTarget||n.find(Xs);i&&it(i),Ee(e)&&e(),qs.relatedTarget=o,w(s,qs)},to=t=>{const{element:e,relatedTarget:n}=t;it(e),Qs(t,!0),_s.relatedTarget=n,w(e,_s)},eo=t=>{const{element:e,hasFade:n}=t;L(e,{display:"block"}),Gs(t),kt(e)||L(ft(e),{overflow:"hidden"}),f(e,g),St(e,ue),O(e,pe,"true"),n?N(e,()=>to(t)):to(t)},no=(t,e)=>{const{element:n,options:s,hasFade:o}=t;s.backdrop&&!e&&o&&u(I,g)&&!kt(n)?(Ie(),N(I,()=>Js(t))):Js(t,e)},rr=t=>{const{target:e}=t,n=e&&x(e,Ys),s=n&&j(n),o=s&&ne(s);o&&(n&&n.tagName==="A"&&t.preventDefault(),o.relatedTarget=n,o.toggle())},ar=({code:t,target:e})=>{const n=P(Fs,$(e)),s=n&&ne(n);if(!s)return;const{options:o}=s;o.keyboard&&t===Ye&&u(n,g)&&(s.relatedTarget=null,s.hide())};function cr(t){const e=ne(this);if(!e||p.get(this))return;const{options:n,isStatic:s,modalDialog:o}=e,{backdrop:i}=n,{target:a}=t,r=$(this)?.getSelection()?.toString().length,c=o?.contains(a),l=a&&x(a,sr);s&&!c?p.set(this,()=>{f(this,Us),N(o,()=>lr(e))},17):(l||!r&&!s&&!c&&i)&&(e.relatedTarget=l||null,e.hide(),t.preventDefault())}const lr=t=>{const{element:e,modalDialog:n}=t,s=(E(n)?Zt(n):0)+17;v(e,Us),p.set(e,()=>p.clear(e),s)};class wn extends tt{static selector=nr;static init=ir;static getInstance=ne;constructor(e,n){super(e,n);const{element:s}=this;this.modalDialog=P(`.${_}-dialog`,s),this.triggers=[...J(Ys,$(s))].filter(o=>j(o)===s),this.isStatic=this.options.backdrop==="static",this.hasFade=u(s,R),this.relatedTarget=null,Zs(this,!0),this.update=this.update.bind(this)}get name(){return pn}get defaults(){return or}toggle(){u(this.element,g)?this.hide():this.show()}show(){const{element:e,options:n,hasFade:s,relatedTarget:o}=this,{backdrop:i}=n;let a=0;if(u(e,g)||(xe.relatedTarget=o||void 0,w(e,xe),xe.defaultPrevented))return;const r=kt(e);if(r&&r!==e){const c=ne(r)||W(r,gn);c&&c.hide()}i?(Ot(I)?vn(!0):zs(e,s,!0),a=Zt(I),Ks(),setTimeout(()=>eo(this),a)):(eo(this),r&&u(I,g)&&Ie())}hide(e){const{element:n,hasFade:s,relatedTarget:o}=this;u(n,g)&&(bn.relatedTarget=o||void 0,w(n,bn),!bn.defaultPrevented&&(v(n,g),O(n,ue,"true"),St(n,pe),s?N(n,()=>no(this,e)):no(this,e)))}update(){u(this.element,g)&&Gs(this)}dispose(){Zs(this),this.hide(()=>super.dispose())}}const dr=`.${G}`,$n=`[${U}="${G}"]`,hr=`[${Ce}="${G}"]`,Oe=`${G}-toggling`,fr={backdrop:!0,keyboard:!0,scroll:!1},se=t=>W(t,gn),ur=t=>new yn(t),ke=T(`show.bs.${G}`),so=T(`shown.bs.${G}`),Tn=T(`hide.bs.${G}`),oo=T(`hidden.bs.${G}`),pr=t=>{const{element:e}=t,{clientHeight:n,scrollHeight:s}=rt(e);Ns(e,n!==s)},io=(t,e)=>{const n=e?b.addListener:b.removeListener;t.triggers.forEach(s=>n(s,k,gr))},ro=(t,e)=>{const n=e?b.addListener:b.removeListener,s=$(t.element);n(s,ge,vr),n(s,k,mr)},ao=t=>{const{element:e,options:n}=t;n.scroll||(pr(t),L(ft(e),{overflow:"hidden"})),f(e,Oe),f(e,g),L(e,{visibility:"visible"}),N(e,()=>br(t))},co=(t,e)=>{const{element:n,options:s}=t,o=kt(n);n.blur(),!o&&s.backdrop&&u(I,g)?(Ie(),N(I,()=>lo(t,e))):lo(t,e)},gr=t=>{const e=x(t.target,$n),n=e&&j(e),s=n&&se(n);s&&(s.relatedTarget=e,s.toggle(),e&&e.tagName==="A"&&t.preventDefault())},mr=t=>{const{target:e}=t,n=P(mn,$(e)),s=P(hr,n),o=n&&se(n);if(!o)return;const{options:i,triggers:a}=o,{backdrop:r}=i,c=x(e,$n),l=$(n).getSelection();I.contains(e)&&r==="static"||(!(l&&l.toString().length)&&(!n.contains(e)&&r&&(!c||a.includes(e))||s&&s.contains(e))&&(o.relatedTarget=s&&s.contains(e)?s:null,o.hide()),c&&c.tagName==="A"&&t.preventDefault())},vr=({code:t,target:e})=>{const n=P(mn,$(e)),s=n&&se(n);s&&s.options.keyboard&&t===Ye&&(s.relatedTarget=null,s.hide())},br=t=>{const{element:e}=t;v(e,Oe),St(e,ue),O(e,pe,"true"),O(e,"role","dialog"),w(e,so),ro(t,!0),it(e)},lo=(t,e)=>{const{element:n,triggers:s}=t;O(n,ue,"true"),St(n,pe),St(n,"role"),L(n,{visibility:""});const o=ke.relatedTarget||s.find(Xs);o&&it(o),Vs(n),w(n,oo),v(n,Oe),kt(n)||ro(t),Ee(e)&&e()};class yn extends tt{static selector=dr;static init=ur;static getInstance=se;constructor(e,n){super(e,n);const{element:s}=this;this.triggers=[...J($n,$(s))].filter(o=>j(o)===s),this.relatedTarget=null,io(this,!0)}get name(){return gn}get defaults(){return fr}toggle(){u(this.element,g)?this.hide():this.show()}show(){const{element:e,options:n,relatedTarget:s}=this;let o=0;if(u(e,g)||(ke.relatedTarget=s||void 0,so.relatedTarget=s||void 0,w(e,ke),ke.defaultPrevented))return;const i=kt(e);if(i&&i!==e){const a=se(i)||W(i,pn);a&&a.hide()}n.backdrop?(Ot(I)?vn():zs(e,!0),o=Zt(I),Ks(),setTimeout(()=>ao(this),o)):(ao(this),i&&u(I,g)&&Ie())}hide(e){const{element:n,relatedTarget:s}=this;u(n,g)&&(Tn.relatedTarget=s||void 0,oo.relatedTarget=s||void 0,w(n,Tn),!Tn.defaultPrevented&&(f(n,Oe),v(n,g),e?co(this,e):N(n,()=>co(this,e))))}dispose(){io(this),this.hide(()=>super.dispose())}}const Nt="popover",Ne="Popover",at="tooltip",ho=t=>{const e=t===at,n=e?`${t}-inner`:`${t}-body`,s=e?"":`<h3 class="${t}-header"></h3>`,o=`<div class="${t}-arrow"></div>`,i=`<div class="${n}"></div>`;return`<div class="${t}" role="${at}">${s+o+i}</div>`},fo={top:"top",bottom:"bottom",left:"start",right:"end"},En=t=>{const e=/\b(top|bottom|start|end)+/,{element:n,tooltip:s,container:o,options:i,arrow:a}=t;if(!s)return;const r={...fo},c=ut(n);L(s,{top:"",left:"",right:"",bottom:""});const l=t.name===Ne,{offsetWidth:d,offsetHeight:h}=s,{clientWidth:m,clientHeight:S,offsetWidth:V}=rt(n);let{placement:y}=i;const{clientWidth:X,offsetWidth:q}=o,ct=z(o,"position")==="fixed",D=Math.abs(ct?X-q:m-V),wt=c&&ct?D:0,ot=m-(c?0:D)-1,{width:F,height:Y,left:H,right:Yt,top:$t}=Jt(n,!0),{x:M,y:Tt}={x:H,y:$t};L(a,{top:"",left:"",right:"",bottom:""});let Bt=0,ae="",yt=0,On="",Ut="",Be="",kn="";const Rt=a.offsetWidth||0,Et=a.offsetHeight||0,Nn=Rt/2;let ce=$t-h-Et<0,le=$t+h+Y+Et>=S,de=H-d-Rt<wt,he=H+d+F+Rt>=ot;const Re=["left","right"],Mn=["top","bottom"];ce=Re.includes(y)?$t+Y/2-h/2-Et<0:ce,le=Re.includes(y)?$t+h/2+Y/2+Et>=S:le,de=Mn.includes(y)?H+F/2-d/2<wt:de,he=Mn.includes(y)?H+d/2+F/2>=ot:he,y=Re.includes(y)&&de&&he?"top":y,y=y==="top"&&ce?"bottom":y,y=y==="bottom"&&le?"top":y,y=y==="left"&&de?"right":y,y=y==="right"&&he?"left":y,s.className.includes(y)||(s.className=s.className.replace(e,r[y])),Re.includes(y)?(y==="left"?yt=M-d-(l?Rt:0):yt=M+F+(l?Rt:0),ce&&le?(Bt=0,ae=0,Ut=$t+Y/2-Et/2):ce?(Bt=Tt,ae="",Ut=Y/2-Rt):le?(Bt=Tt-h+Y,ae="",Ut=h-Y/2-Rt):(Bt=Tt-h/2+Y/2,Ut=h/2-Et/2)):Mn.includes(y)&&(y==="top"?Bt=Tt-h-(l?Et:0):Bt=Tt+Y+(l?Et:0),de?(yt=0,Be=M+F/2-Nn):he?(yt="auto",On=0,kn=F/2+ot-Yt-Nn):(yt=M-d/2+F/2,Be=d/2-Nn)),L(s,{top:`${Bt}px`,bottom:ae===""?"":`${ae}px`,left:yt==="auto"?yt:`${yt}px`,right:On!==""?`${On}px`:""}),E(a)&&(Ut!==""&&(a.style.top=`${Ut}px`),Be!==""?a.style.left=`${Be}px`:kn!==""&&(a.style.right=`${kn}px`));const Zr=T(`updated.bs.${Wt(t.name)}`);w(n,Zr)},Cn={template:ho(at),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},uo="data-original-title",Mt="Tooltip",bt=(t,e,n)=>{if(!(!E(t)||Pt(e)&&!e.length))if(Pt(e)){let s=e.trim();Ee(n)&&(s=n(s));const i=new DOMParser().parseFromString(s,"text/html");t.append(...i.body.childNodes)}else E(e)?t.append(e):(vi(e)||mi(e)&&e.every(A))&&t.append(...e)},wr=t=>{const e=t.name===Mt,{id:n,element:s,options:o}=t,{title:i,placement:a,template:r,animation:c,customClass:l,sanitizeFn:d,dismissible:h,content:m,btnClose:S}=o,V=e?at:Nt,y={...fo};let X=[],q=[];ut(s)&&(y.left="end",y.right="start");const Xt=`bs-${V}-${y[a]}`;let ct;if(E(r))ct=r;else{const H=lt("div");bt(H,r,d),ct=H.firstChild}t.tooltip=E(ct)?ct.cloneNode(!0):void 0;const{tooltip:D}=t;if(!D)return;O(D,"id",n),O(D,"role",at);const wt=e?`${at}-inner`:`${Nt}-body`,ot=e?null:P(`.${Nt}-header`,D),F=P(`.${wt}`,D);t.arrow=P(`.${V}-arrow`,D);const{arrow:Y}=t;if(E(i))X=[i.cloneNode(!0)];else{const H=lt("div");bt(H,i,d),X=[...H.childNodes]}if(E(m))q=[m.cloneNode(!0)];else{const H=lt("div");bt(H,m,d),q=[...H.childNodes]}if(h)if(i)if(E(S))X=[...X,S.cloneNode(!0)];else{const H=lt("div");bt(H,S,d),X=[...X,H.firstChild]}else if(ot&&ot.remove(),E(S))q=[...q,S.cloneNode(!0)];else{const H=lt("div");bt(H,S,d),q=[...q,H.firstChild]}e?i&&F&&bt(F,i,d):(i&&ot&&bt(ot,X,d),m&&F&&bt(F,q,d),t.btn=P(".btn-close",D)||void 0),f(D,"position-fixed"),f(Y,"position-absolute"),u(D,V)||f(D,V),c&&!u(D,R)&&f(D,R),l&&!u(D,l)&&f(D,l),u(D,Xt)||f(D,Xt)},$r=t=>{const e=["HTML","BODY"],n=[];let{parentNode:s}=t;for(;s&&!e.includes(s.nodeName);)s=gi(s),Un(s)||bi(s)||n.push(s);return n.find((o,i)=>z(o,"position")!=="relative"&&n.slice(i+1).every(a=>z(a,"position")==="static")?o:null)||$(t).body},Tr=`[${U}="${at}"],[data-tip="${at}"]`,po="title";let go=t=>W(t,Mt);const yr=t=>new Me(t),Er=t=>{const{element:e,tooltip:n,container:s,offsetParent:o}=t;St(e,Bn),Bs(n,s===o?s:o)},Cr=(t,e)=>{const{element:n}=t;oe(t),ye(n,uo)&&t.name===Mt&&$o(t),e&&e()},mo=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s}=t;n($(s),Ke,t.handleTouch,Z),[be,ve].forEach(o=>{n(Ft(s),o,t.update,Z)})},vo=t=>{const{element:e}=t,n=T(`shown.bs.${Wt(t.name)}`);mo(t,!0),w(e,n),p.clear(e,"in")},bo=t=>{const{element:e,onHideComplete:n}=t,s=T(`hidden.bs.${Wt(t.name)}`);mo(t),Er(t),w(e,s),Ee(n)&&(n(),t.onHideComplete=void 0),p.clear(e,"out")},oe=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s,options:o,btn:i}=t,{trigger:a}=o,c=!!(t.name!==Mt&&o.dismissible);if(a.includes("manual"))return;t.enabled=!!e,a.split(" ").forEach(d=>{d===Zo?(n(s,Qo,t.show),n(s,me,t.show),c&&i?n(i,k,t.hide):(n(s,ze,t.hide),n($(s),Ke,t.handleTouch,Z))):d===k?n(s,d,c?t.show:t.toggle):d===je&&(n(s,Fe,t.show),c||n(s,Wn,t.hide),ai&&n(s,k,()=>it(s)))})},wo=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s,container:o,offsetParent:i}=t,{offsetHeight:a,scrollHeight:r}=o,c=x(s,`.${_}`),l=x(s,`.${G}`),d=Ft(s),m=o===i&&a!==r?o:d;n(m,ve,t.update,Z),n(m,be,t.update,Z),c&&n(c,`hide.bs.${_}`,t.hide),l&&n(l,`hide.bs.${G}`,t.hide)},$o=(t,e)=>{const n=[uo,po],{element:s}=t;O(s,n[e?0:1],e||Ct(s,n[0])||""),St(s,n[e?1:0])};class Me extends tt{static selector=Tr;static init=yr;static getInstance=go;static styleTip=En;constructor(e,n){super(e,n);const{element:s}=this,o=this.name===Mt,i=o?at:Nt,a=o?Mt:Ne;go=c=>W(c,a),this.enabled=!0,this.id=`${i}-${Gn(s,i)}`;const{options:r}=this;!r.title&&o||!o&&!r.content||(dt(Cn,{titleAttr:""}),this.handleTouch=this.handleTouch.bind(this),this.update=this.update.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.toggle=this.toggle.bind(this),ye(s,po)&&o&&typeof r.title=="string"&&$o(this,r.title),this.container=$r(s),this.offsetParent=["sticky","fixed"].some(c=>z(this.container,"position")===c)?this.container:$(this.element).body,wr(this),oe(this,!0))}get name(){return Mt}get defaults(){return Cn}show(){const{options:e,tooltip:n,element:s,container:o,offsetParent:i,id:a}=this,{animation:r}=e,c=p.get(s,"out"),l=o===i?o:i;p.clear(s,"out"),n&&!c&&!Ot(n,l)&&p.set(s,()=>{const d=T(`show.bs.${Wt(this.name)}`);w(s,d),!d.defaultPrevented&&(Ms(n,l),O(s,Bn,`#${a}`),this.update(),wo(this,!0),u(n,g)||f(n,g),r?N(n,()=>vo(this)):vo(this))},17,"in")}hide(){const{options:e,tooltip:n,element:s,container:o,offsetParent:i}=this,{animation:a,delay:r}=e;p.clear(s,"in"),n&&Ot(n,o===i?o:i)&&p.set(s,()=>{const c=T(`hide.bs.${Wt(this.name)}`);w(s,c),!c.defaultPrevented&&(this.update(),v(n,g),wo(this),a?N(n,()=>bo(this)):bo(this))},r+17,"out")}update(){En(this)}toggle(){const{tooltip:e,container:n,offsetParent:s}=this;e&&!Ot(e,n===s?n:s)?this.show():this.hide()}enable(){const{enabled:e}=this;e||(oe(this,!0),this.enabled=!e)}disable(){const{tooltip:e,container:n,offsetParent:s,options:o,enabled:i}=this,{animation:a}=o;i&&(e&&Ot(e,n===s?n:s)&&a?(this.onHideComplete=()=>oe(this),this.hide()):oe(this),this.enabled=!i)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch({target:e}){const{tooltip:n,element:s}=this;n&&n.contains(e)||e===s||e&&s.contains(e)||this.hide()}dispose(){const{tooltip:e,container:n,offsetParent:s,options:o}=this,i=()=>Cr(this,()=>super.dispose());o.animation&&e&&Ot(e,n===s?n:s)?(this.options.delay=0,this.onHideComplete=i,this.hide()):i()}}const Sr=`[${U}="${Nt}"],[data-tip="${Nt}"]`,Hr=dt({},Cn,{template:ho(Nt),content:"",dismissible:!1,btnClose:'<button class="btn-close" aria-label="Close"></button>'}),Pr=t=>W(t,Ne),Dr=t=>new Sn(t);class Sn extends Me{static selector=Sr;static init=Dr;static getInstance=Pr;static styleTip=En;constructor(e,n){super(e,n)}get name(){return Ne}get defaults(){return Hr}show(){super.show();const{options:e,btn:n}=this;e.dismissible&&n&&setTimeout(()=>it(n),17)}}const Ar="scrollspy",To="ScrollSpy",Lr='[data-bs-spy="scroll"]',Ir={offset:10,target:null},xr=t=>W(t,To),Or=t=>new Hn(t),yo=T(`activate.bs.${Ar}`),kr=t=>{const{target:e,scrollTarget:n,options:s,itemsLength:o,scrollHeight:i,element:a}=t,{offset:r}=s,c=_e(n),l=e&&Qe("A",e),d=n?Eo(n):i;if(t.scrollTop=c?n.scrollY:n.scrollTop,l&&(d!==i||o!==l.length)){let h,m,S;t.items=[],t.offsets=[],t.scrollHeight=d,t.maxScroll=t.scrollHeight-Nr(t),[...l].forEach(V=>{h=Ct(V,"href"),m=h&&h.charAt(0)==="#"&&h.slice(-1)!=="#"&&P(h,$(a)),m&&(t.items.push(V),S=Jt(m),t.offsets.push((c?S.top+t.scrollTop:m.offsetTop)-r))}),t.itemsLength=t.items.length}},Eo=t=>E(t)?t.scrollHeight:rt(t).scrollHeight,Nr=({element:t,scrollTarget:e})=>_e(e)?e.innerHeight:Jt(t).height,Co=t=>{[...Qe("A",t)].forEach(e=>{u(e,C)&&v(e,C)})},So=(t,e)=>{const{target:n,element:s}=t;E(n)&&Co(n),t.activeItem=e,f(e,C);const o=[];let i=e;for(;i!==ft(s);)i=i.parentElement,(u(i,"nav")||u(i,"dropdown-menu"))&&o.push(i);o.forEach(a=>{const r=a.previousElementSibling;r&&!u(r,C)&&f(r,C)}),yo.relatedTarget=e,w(s,yo)},Ho=(t,e)=>{(e?b.addListener:b.removeListener)(t.scrollTarget,be,t.refresh,Z)};class Hn extends tt{static selector=Lr;static init=Or;static getInstance=xr;constructor(e,n){super(e,n);const{element:s,options:o}=this;this.target=P(o.target,$(s)),this.target&&(this.scrollTarget=s.clientHeight<s.scrollHeight?s:Ft(s),this.scrollHeight=Eo(this.scrollTarget),this.refresh=this.refresh.bind(this),Ho(this,!0),this.refresh())}get name(){return To}get defaults(){return Ir}refresh(){const{target:e}=this;if(e?.offsetHeight===0)return;kr(this);const{scrollTop:n,maxScroll:s,itemsLength:o,items:i,activeItem:a}=this;if(n>=s){const c=i[o-1];a!==c&&So(this,c);return}const{offsets:r}=this;if(a&&n<r[0]&&r[0]>0){this.activeItem=null,e&&Co(e);return}i.forEach((c,l)=>{a!==c&&n>=r[l]&&(typeof r[l+1]>"u"||n<r[l+1])&&So(this,c)})}dispose(){Ho(this),super.dispose()}}const ie="tab",Po="Tab",Do=`[${U}="${ie}"]`,Ao=t=>W(t,Po),Mr=t=>new An(t),Pn=T(`show.bs.${ie}`),Lo=T(`shown.bs.${ie}`),Dn=T(`hide.bs.${ie}`),Io=T(`hidden.bs.${ie}`),re=new Map,xo=t=>{const{tabContent:e,nav:n}=t;e&&u(e,It)&&(e.style.height="",v(e,It)),n&&p.clear(n)},Oo=t=>{const{element:e,tabContent:n,content:s,nav:o}=t,{tab:i}=E(o)&&re.get(o)||{tab:null};if(n&&s&&u(s,R)){const{currentHeight:a,nextHeight:r}=re.get(e)||{currentHeight:0,nextHeight:0};a===r?xo(t):setTimeout(()=>{n.style.height=`${r}px`,Dt(n),N(n,()=>xo(t))},50)}else o&&p.clear(o);Lo.relatedTarget=i,w(e,Lo)},ko=t=>{const{element:e,content:n,tabContent:s,nav:o}=t,{tab:i,content:a}=o&&re.get(o)||{tab:null,content:null};let r=0;if(s&&n&&u(n,R)&&([a,n].forEach(c=>{E(c)&&f(c,"overflow-hidden")}),r=E(a)?a.scrollHeight:0),Pn.relatedTarget=i,Io.relatedTarget=e,w(e,Pn),!Pn.defaultPrevented){if(n&&f(n,C),a&&v(a,C),s&&n&&u(n,R)){const c=n.scrollHeight;re.set(e,{currentHeight:r,nextHeight:c,tab:null,content:null}),f(s,It),s.style.height=`${r}px`,Dt(s),[a,n].forEach(l=>{l&&v(l,"overflow-hidden")})}n&&n&&u(n,R)?setTimeout(()=>{f(n,g),N(n,()=>{Oo(t)})},1):(n&&f(n,g),Oo(t)),i&&w(i,Io)}},No=t=>{const{nav:e}=t;if(!E(e))return{tab:null,content:null};const n=pt(C,e);let s=null;n.length===1&&!xt.some(i=>u(n[0].parentElement,i))?[s]=n:n.length>1&&(s=n[n.length-1]);const o=E(s)?j(s):null;return{tab:s,content:o}},Mo=t=>{if(!E(t))return null;const e=x(t,`.${xt.join(",.")}`);return e?P(`.${xt[0]}-toggle`,e):null},Bo=(t,e)=>{(e?b.addListener:b.removeListener)(t.element,k,Br)},Br=t=>{const e=Ao(t.target);e&&(t.preventDefault(),e.show())};class An extends tt{static selector=Do;static init=Mr;static getInstance=Ao;constructor(e){super(e);const{element:n}=this,s=j(n);if(!s)return;const o=x(n,".nav"),i=x(s,".tab-content");this.nav=o,this.content=s,this.tabContent=i,this.dropdown=Mo(n);const{tab:a}=No(this);if(o&&!a){const r=P(Do,o),c=r&&j(r);c&&(f(r,C),f(c,g),f(c,C),O(n,We,"true"))}Bo(this,!0)}get name(){return Po}show(){const{element:e,content:n,nav:s,dropdown:o}=this;if(!(s&&p.get(s))&&!u(e,C)){const{tab:i,content:a}=No(this);if(s&&re.set(s,{tab:i,content:a,currentHeight:0,nextHeight:0}),Dn.relatedTarget=e,E(i)&&w(i,Dn),Dn.defaultPrevented)return;f(e,C),O(e,We,"true");const r=E(i)&&Mo(i);if(r&&u(r,C)&&v(r,C),s){const c=()=>{i&&(v(i,C),O(i,We,"false")),o&&!u(o,C)&&f(o,C)};a&&(u(a,R)||n&&u(n,R))?p.set(s,c,1):c()}a&&(v(a,g),u(a,R)?N(a,()=>ko(this)):ko(this))}}dispose(){Bo(this),super.dispose()}}const Q="toast",Ro="Toast",Rr=`.${Q}`,Wr=`[${Ce}="${Q}"]`,Wo=`[${U}="${Q}"]`,Vt="showing",jo="hide",jr={animation:!0,autohide:!0,delay:5e3},Ln=t=>W(t,Ro),Fr=t=>new In(t),Fo=T(`show.bs.${Q}`),zr=T(`shown.bs.${Q}`),zo=T(`hide.bs.${Q}`),Kr=T(`hidden.bs.${Q}`),Ko=t=>{const{element:e,options:n}=t;v(e,Vt),p.clear(e,Vt),w(e,zr),n.autohide&&p.set(e,()=>t.hide(),n.delay,Q)},Vo=t=>{const{element:e}=t;v(e,Vt),v(e,g),f(e,jo),p.clear(e,Q),w(e,Kr)},Vr=t=>{const{element:e,options:n}=t;f(e,Vt),n.animation?(Dt(e),N(e,()=>Vo(t))):Vo(t)},Xr=t=>{const{element:e,options:n}=t;p.set(e,()=>{v(e,jo),Dt(e),f(e,g),f(e,Vt),n.animation?N(e,()=>Ko(t)):Ko(t)},17,Vt)},Xo=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s,triggers:o,dismiss:i,options:a}=t;i&&n(i,k,t.hide),a.autohide&&[Fe,Wn,me,ze].forEach(r=>n(s,r,_r)),o.length&&o.forEach(r=>n(r,k,Ur))},Yr=t=>{p.clear(t.element,Q),Xo(t)},Ur=t=>{const{target:e}=t,n=e&&x(e,Wo),s=n&&j(n),o=s&&Ln(s);o&&(n&&n.tagName==="A"&&t.preventDefault(),o.relatedTarget=n,o.show())},_r=t=>{const e=t.target,n=Ln(e),{type:s,relatedTarget:o}=t;!n||e===o||e.contains(o)||([me,Fe].includes(s)?p.clear(e,Q):p.set(e,()=>n.hide(),n.options.delay,Q))};class In extends tt{static selector=Rr;static init=Fr;static getInstance=Ln;constructor(e,n){super(e,n);const{element:s,options:o}=this;o.animation&&!u(s,R)?f(s,R):!o.animation&&u(s,R)&&v(s,R),this.dismiss=P(Wr,s),this.triggers=[...J(Wo,$(s))].filter(i=>j(i)===s),this.show=this.show.bind(this),this.hide=this.hide.bind(this),Xo(this,!0)}get name(){return Ro}get defaults(){return jr}get isShown(){return u(this.element,g)}show(){const{element:e,isShown:n}=this;if(e&&!n){if(w(e,Fo),Fo.defaultPrevented)return;Xr(this)}}hide(){const{element:e,isShown:n}=this;if(e&&n){if(w(e,zo),zo.defaultPrevented)return;Vr(this)}}dispose(){const{element:e,isShown:n}=this;n&&v(e,g),Yr(this),super.dispose()}}const Yo={Alert:Je,Button:tn,Carousel:cn,Collapse:ln,Dropdown:un,Modal:wn,Offcanvas:yn,Popover:Sn,ScrollSpy:Hn,Tab:An,Toast:In,Tooltip:Me},qr=(t,e)=>{[...e].forEach(n=>t(n))},Gr=(t,e)=>{const n=Ht.getAllFor(t);n&&[...n].forEach(([s,o])=>{e.contains(s)&&o.dispose()})},xn=t=>{const e=t&&t.nodeName?t:document,n=[...Qe("*",e)];ui(Yo).forEach(s=>{const{init:o,selector:i}=s;qr(o,n.filter(a=>wi(a,i)))})},Qr=t=>{const e=t&&t.nodeName?t:document;qe(Yo).forEach(n=>{Gr(n,e)})};return document.body?xn():b.addListener(document,"DOMContentLoaded",()=>xn(),{once:!0}),B.Alert=Je,B.Button=tn,B.Carousel=cn,B.Collapse=ln,B.Dropdown=un,B.Listener=_o,B.Modal=wn,B.Offcanvas=yn,B.Popover=Sn,B.ScrollSpy=Hn,B.Tab=An,B.Toast=In,B.Tooltip=Me,B.initCallback=xn,B.removeDataAPI=Qr,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),B}({}); | ||
var BSN=function(B){"use strict";function Uo(t,e){for(var n=0;n<e.length;n++){const s=e[n];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(s,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var b={};(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e={},n=r=>{const{type:c,currentTarget:l}=r;[...e[c]].forEach(([d,h])=>{l===d&&[...h].forEach(([m,S])=>{m.apply(d,[r]),typeof S=="object"&&S.once&&o(d,c,m,S)})})},s=(r,c,l,d)=>{e[c]||(e[c]=new Map);const h=e[c];h.has(r)||h.set(r,new Map);const m=h.get(r),{size:S}=m;m.set(l,d),S||r.addEventListener(c,n,d)},o=(r,c,l,d)=>{const h=e[c],m=h&&h.get(r),S=m&&m.get(l),V=S!==void 0?S:d;m&&m.has(l)&&m.delete(l),h&&(!m||!m.size)&&h.delete(r),(!h||!h.size)&&delete e[c],(!m||!m.size)&&r.removeEventListener(c,n,V)},i=s,a=o;t.addListener=s,t.globalListener=n,t.off=a,t.on=i,t.registry=e,t.removeListener=o})(b);const _o=Uo({__proto__:null,default:b},[b]),Bn="aria-describedby",fe="aria-expanded",ue="aria-hidden",pe="aria-modal",Rn="aria-pressed",We="aria-selected",qo="DOMContentLoaded",je="focus",Fe="focusin",Wn="focusout",ge="keydown",Go="keyup",k="click",Qo="mousedown",Zo="hover",me="mouseenter",ze="mouseleave",Jo="pointerdown",ti="pointermove",ei="pointerup",ve="resize",be="scroll",Ke="touchstart",ni="dragstart",Ve="ArrowDown",Xe="ArrowUp",jn="ArrowLeft",Fn="ArrowRight",Ye="Escape",si="transitionDuration",oi="transitionDelay",Ue="transitionend",zn="transitionProperty",ii=navigator.userAgentData,we=ii,{userAgent:ri}=navigator,$e=ri,Kn=/iPhone|iPad|iPod|Android/i;we?we.brands.some(t=>Kn.test(t.brand)):Kn.test($e);const Vn=/(iPhone|iPod|iPad)/,ai=we?we.brands.some(t=>Vn.test(t.brand)):Vn.test($e);$e&&$e.includes("Firefox");const{head:Te}=document;["webkitPerspective","perspective"].some(t=>t in Te.style);const ci=(t,e,n,s)=>{const o=s||!1;t.addEventListener(e,n,o)},li=(t,e,n,s)=>{const o=s||!1;t.removeEventListener(e,n,o)},di=(t,e,n,s)=>{const o=i=>{(i.target===t||i.currentTarget===t)&&(n.apply(t,[i]),li(t,e,o,s))};ci(t,e,o,s)},_t=()=>{};(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});di(document,qo,_t,e)}catch{}return t})(),["webkitTransform","transform"].some(t=>t in Te.style),["webkitAnimation","animation"].some(t=>t in Te.style),["webkitTransition","transition"].some(t=>t in Te.style);const Ct=(t,e)=>t.getAttribute(e),ye=(t,e)=>t.hasAttribute(e),O=(t,e,n)=>t.setAttribute(e,n),St=(t,e)=>t.removeAttribute(e),f=(t,...e)=>{t.classList.add(...e)},v=(t,...e)=>{t.classList.remove(...e)},u=(t,e)=>t.classList.contains(e),qt=t=>t!=null&&typeof t=="object"||!1,A=t=>qt(t)&&typeof t.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(e=>t.nodeType===e)||!1,E=t=>A(t)&&t.nodeType===1||!1,Gt=new Map,Ht={set:(t,e,n)=>{E(t)&&(Gt.has(e)||Gt.set(e,new Map),Gt.get(e).set(t,n))},getAllFor:t=>Gt.get(t)||null,get:(t,e)=>{if(!E(t)||!e)return null;const n=Ht.getAllFor(e);return t&&n&&n.get(t)||null},remove:(t,e)=>{const n=Ht.getAllFor(e);!n||!E(t)||(n.delete(t),n.size===0&&Gt.delete(e))}},W=(t,e)=>Ht.get(t,e),Pt=t=>typeof t=="string"||!1,_e=t=>qt(t)&&t.constructor.name==="Window"||!1,Xn=t=>A(t)&&t.nodeType===9||!1,$=t=>_e(t)?t.document:Xn(t)?t:A(t)?t.ownerDocument:window.document,Qt=t=>Object.entries(t),lt=t=>{if(!t)return;if(Pt(t))return $().createElement(t);const{tagName:e}=t,n=lt(e);if(!n)return;const s={...t};return delete s.tagName,Qt(s).forEach(([o,i])=>{Pt(o)&&Pt(i)&&O(n,o,i)}),n},w=(t,e)=>t.dispatchEvent(e),z=(t,e)=>{const n=getComputedStyle(t),s=e.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(s)},hi=t=>{const e=z(t,zn),n=z(t,oi),s=n.includes("ms")?1:1e3,o=e&&e!=="none"?parseFloat(n)*s:0;return Number.isNaN(o)?0:o},Zt=t=>{const e=z(t,zn),n=z(t,si),s=n.includes("ms")?1:1e3,o=e&&e!=="none"?parseFloat(n)*s:0;return Number.isNaN(o)?0:o},N=(t,e)=>{let n=0;const s=new Event(Ue),o=Zt(t),i=hi(t);if(o){const a=r=>{r.target===t&&(e.apply(t,[r]),t.removeEventListener(Ue,a),n=1)};t.addEventListener(Ue,a),setTimeout(()=>{n||w(t,s)},o+i+17)}else e.apply(t,[s])},it=(t,e)=>t.focus(e),Yn=t=>["true",!0].includes(t)?!0:["false",!1].includes(t)?!1:["null","",null,void 0].includes(t)?null:t!==""&&!Number.isNaN(+t)?+t:t,Wt=t=>t.toLowerCase(),fi=(t,e,n,s)=>{const o={...n},i={...t.dataset},a={...e},r={},c="title";return Qt(i).forEach(([l,d])=>{const h=s&&typeof l=="string"&&l.includes(s)?l.replace(s,"").replace(/[A-Z]/g,m=>Wt(m)):l;r[h]=Yn(d)}),Qt(o).forEach(([l,d])=>{o[l]=Yn(d)}),Qt(e).forEach(([l,d])=>{l in o?a[l]=o[l]:l in r?a[l]=r[l]:a[l]=l===c?Ct(t,c):d}),a},dt=(t,...e)=>Object.assign(t,...e),qe=t=>Object.keys(t),ui=t=>Object.values(t),T=(t,e)=>{const n=new CustomEvent(t,{cancelable:!0,bubbles:!0});return qt(e)&&dt(n,e),n},Z={passive:!0},Dt=t=>t.offsetHeight,L=(t,e)=>{Qt(e).forEach(([n,s])=>{if(s&&Pt(n)&&n.includes("--"))t.style.setProperty(n,s);else{const o={};o[n]=s,dt(t.style,o)}})},Ge=t=>qt(t)&&t.constructor.name==="Map"||!1,pi=t=>typeof t=="number"||!1,ht=new Map,p={set:(t,e,n,s)=>{!E(t)||(s&&s.length?(ht.has(t)||ht.set(t,new Map),ht.get(t).set(s,setTimeout(e,n))):ht.set(t,setTimeout(e,n)))},get:(t,e)=>{if(!E(t))return null;const n=ht.get(t);return e&&n&&Ge(n)?n.get(e)||null:pi(n)?n:null},clear:(t,e)=>{if(!E(t))return;const n=ht.get(t);e&&e.length&&Ge(n)?(clearTimeout(n.get(e)),n.delete(e),n.size===0&&ht.delete(t)):(clearTimeout(n),ht.delete(t))}},Jt=(t,e)=>{const{width:n,height:s,top:o,right:i,bottom:a,left:r}=t.getBoundingClientRect();let c=1,l=1;if(e&&E(t)){const{offsetWidth:d,offsetHeight:h}=t;c=d>0?Math.round(n)/d:1,l=h>0?Math.round(s)/h:1}return{width:n/c,height:s/l,top:o/l,right:i/c,bottom:a/l,left:r/c,x:r/c,y:o/l}},ft=t=>$(t).body,rt=t=>$(t).documentElement,Un=t=>A(t)&&t.constructor.name==="ShadowRoot"||!1,gi=t=>t.nodeName==="HTML"?t:E(t)&&t.assignedSlot||A(t)&&t.parentNode||Un(t)&&t.host||rt(t);let _n=0,qn=0;const jt=new Map,Gn=(t,e)=>{let n=e?_n:qn;if(e){const s=Gn(t),o=jt.get(s)||new Map;jt.has(s)||jt.set(s,o),Ge(o)&&!o.has(e)?(o.set(e,n),_n+=1):n=o.get(e)}else{const s=t.id||t;jt.has(s)?n=jt.get(s):(jt.set(s,n),qn+=1)}return n},Ft=t=>{var e;return t?Xn(t)?t.defaultView:A(t)?(e=t?.ownerDocument)==null?void 0:e.defaultView:t:window},mi=t=>Array.isArray(t)||!1,Qn=t=>{if(!A(t))return!1;const{top:e,bottom:n}=Jt(t),{clientHeight:s}=rt(t);return e<=s&&n>=0},Ee=t=>typeof t=="function"||!1,vi=t=>qt(t)&&t.constructor.name==="NodeList"||!1,ut=t=>rt(t).dir==="rtl",bi=t=>A(t)&&["TABLE","TD","TH"].includes(t.nodeName)||!1,x=(t,e)=>t?t.closest(e)||x(t.getRootNode().host,e):null,P=(t,e)=>E(t)?t:(A(e)?e:$()).querySelector(t),Qe=(t,e)=>(A(e)?e:$()).getElementsByTagName(t),J=(t,e)=>(A(e)?e:$()).querySelectorAll(t),pt=(t,e)=>(e&&A(e)?e:$()).getElementsByClassName(t),wi=(t,e)=>t.matches(e),R="fade",g="show",Ce="data-bs-dismiss",Se="alert",Zn="Alert",$i="5.0.0-alpha2";class tt{element;options;constructor(e,n){const s=P(e);if(!s)throw Pt(e)?Error(`${this.name} Error: "${e}" is not a valid selector.`):Error(`${this.name} Error: your target is not an instance of HTMLElement.`);const o=Ht.get(s,this.name);o&&o.dispose(),this.element=s,this.defaults&&qe(this.defaults).length&&(this.options=fi(s,this.defaults,n||{},"bs")),Ht.set(s,this.name,this)}get version(){return $i}get name(){return"BaseComponent"}get defaults(){return{}}dispose(){Ht.remove(this.element,this.name),qe(this).forEach(e=>{delete this[e]})}}const Jn=`.${Se}`,Ti=`[${Ce}="${Se}"]`,ts=t=>W(t,Zn),yi=t=>new Je(t),es=T(`close.bs.${Se}`),Ei=T(`closed.bs.${Se}`),ns=t=>{const{element:e}=t;Ze(t),w(e,Ei),t.dispose(),e.remove()},Ze=(t,e)=>{const n=e?b.addListener:b.removeListener,{dismiss:s}=t;s&&n(s,k,t.close)};class Je extends tt{static selector=Jn;static init=yi;static getInstance=ts;dismiss;constructor(e){super(e),this.dismiss=P(Ti,this.element),Ze(this,!0)}get name(){return Zn}close(e){const n=e?ts(x(e.target,Jn)):this,{element:s}=n;if(s&&u(s,g)){if(w(s,es),es.defaultPrevented)return;v(s,g),u(s,R)?N(s,()=>ns(n)):ns(n)}}dispose(){Ze(this),super.dispose()}}const C="active",U="data-bs-toggle",Ci="button",ss="Button",Si=`[${U}="${Ci}"]`,os=t=>W(t,ss),Hi=t=>new tn(t),is=(t,e)=>{(e?b.addListener:b.removeListener)(t.element,k,t.toggle)};class tn extends tt{static selector=Si;static init=Hi;static getInstance=os;isActive=!1;constructor(e){super(e);const{element:n}=this;this.isActive=u(n,C),O(n,Rn,String(!!this.isActive)),is(this,!0)}get name(){return ss}toggle(e){e&&e.preventDefault();const n=e?os(e.target):this;if(!n.element)return;const{element:s,isActive:o}=n;if(u(s,"disabled"))return;(o?v:f)(s,C),O(s,Rn,o?"false":"true"),n.isActive=u(s,C)}dispose(){is(this),super.dispose()}}const en="data-bs-target",At="carousel",rs="Carousel",as="data-bs-parent",Pi="data-bs-container",j=t=>{const e=[en,as,Pi,"href"],n=$(t);return e.map(s=>{const o=Ct(t,s);return o?s===as?x(t,o):P(o,n):null}).filter(s=>s)[0]},te=`[data-bs-ride="${At}"]`,et=`${At}-item`,nn="data-bs-slide-to",gt="data-bs-slide",mt="paused",cs={pause:"hover",keyboard:!1,touch:!0,interval:5e3},st=t=>W(t,rs),Di=t=>new cn(t);let Lt=0,zt=0,ee=0;const sn=T(`slide.bs.${At}`),on=T(`slid.bs.${At}`),Ai=t=>{const{index:e,direction:n,element:s,slides:o,options:i}=t;if(t.isAnimating&&st(s)){const a=an(t),r=n==="left"?"next":"prev",c=n==="left"?"start":"end";f(o[e],C),v(o[e],`${et}-${r}`),v(o[e],`${et}-${c}`),v(o[a],C),v(o[a],`${et}-${c}`),w(s,on),p.clear(s,gt),!$(s).hidden&&i.interval&&!t.isPaused&&t.cycle()}};function Li(){const t=st(this);t&&!t.isPaused&&!p.get(this,mt)&&f(this,mt)}function Ii(){const t=st(this);t&&t.isPaused&&!p.get(this,mt)&&t.cycle()}function xi(t){t.preventDefault();const e=x(this,te)||j(this),n=st(e);if(!n||n.isAnimating)return;const s=+(Ct(this,nn)||0);this&&!u(this,C)&&!Number.isNaN(s)&&n.to(s)}function Oi(t){t.preventDefault();const e=x(this,te)||j(this),n=st(e);if(!n||n.isAnimating)return;const s=Ct(this,gt);s==="next"?n.next():s==="prev"&&n.prev()}const ki=({code:t,target:e})=>{const n=$(e),[s]=[...J(te,n)].filter(c=>Qn(c)),o=st(s);if(!o||o.isAnimating||/textarea|input/i.test(e.nodeName))return;const i=ut(s);t===(i?Fn:jn)?o.prev():t===(i?jn:Fn)&&o.next()};function ls(t){const{target:e}=t,n=st(this);n&&n.isTouch&&(n.indicator&&!n.indicator.contains(e)||!n.controls.includes(e))&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())}function Ni(t){const{target:e}=t,n=st(this);if(!n||n.isAnimating||n.isTouch)return;const{controls:s,indicators:o}=n;[...s,...o].some(i=>i===e||i.contains(e))||(Lt=t.pageX,this.contains(e)&&(n.isTouch=!0,ds(n,!0)))}const Mi=t=>{zt=t.pageX},Bi=t=>{const{target:e}=t,n=$(e),s=[...J(te,n)].map(r=>st(r)).find(r=>r.isTouch);if(!s)return;const{element:o,index:i}=s,a=ut(o);if(s.isTouch=!1,ds(s),n.getSelection()?.toString().length){Lt=0,zt=0,ee=0;return}if(ee=t.pageX,!o.contains(e)||Math.abs(Lt-ee)<120){Lt=0,zt=0,ee=0;return}zt<Lt?s.to(i+(a?-1:1)):zt>Lt&&s.to(i+(a?1:-1)),Lt=0,zt=0,ee=0},rn=(t,e)=>{const{indicators:n}=t;[...n].forEach(s=>v(s,C)),t.indicators[e]&&f(n[e],C)},ds=(t,e)=>{const{element:n}=t,s=e?b.addListener:b.removeListener;s($(n),ti,Mi,Z),s($(n),ei,Bi,Z)},hs=(t,e)=>{const{element:n,options:s,slides:o,controls:i,indicators:a}=t,{touch:r,pause:c,interval:l,keyboard:d}=s,h=e?b.addListener:b.removeListener;c&&l&&(h(n,me,Li),h(n,ze,Ii)),r&&o.length>2&&(h(n,Jo,Ni,Z),h(n,Ke,ls,{passive:!1}),h(n,ni,ls,{passive:!1})),i.length&&i.forEach(m=>{m&&h(m,k,Oi)}),a.length&&a.forEach(m=>{h(m,k,xi)}),d&&h($(n),ge,ki)},an=t=>{const{slides:e,element:n}=t,s=P(`.${et}.${C}`,n);return E(s)?[...e].indexOf(s):-1};class cn extends tt{static selector=te;static init=Di;static getInstance=st;constructor(e,n){super(e,n);const{element:s}=this;this.direction=ut(s)?"right":"left",this.index=0,this.isTouch=!1,this.slides=pt(et,s);const{slides:o}=this;if(o.length<2)return;const i=$(s);this.controls=[...J(`[${gt}]`,s),...J(`[${gt}][${en}="#${s.id}"]`,i)],this.indicator=P(`.${At}-indicators`,s),this.indicators=[...this.indicator?J(`[${nn}]`,this.indicator):[],...J(`[${nn}][${en}="#${s.id}"]`,i)];const{options:a}=this;this.options.interval=a.interval===!0?cs.interval:a.interval,an(this)<0&&(f(o[0],C),this.indicators.length&&rn(this,0)),hs(this,!0),a.interval&&this.cycle()}get name(){return rs}get defaults(){return cs}get isPaused(){return u(this.element,mt)}get isAnimating(){return P(`.${et}-next,.${et}-prev`,this.element)!==null}cycle(){const{element:e,options:n,isPaused:s,index:o}=this;p.clear(e,At),s&&(p.clear(e,mt),v(e,mt)),p.set(e,()=>{this.element&&!this.isPaused&&!this.isTouch&&Qn(e)&&this.to(o+1)},n.interval,At)}pause(){const{element:e,options:n}=this;!this.isPaused&&n.interval&&(f(e,mt),p.set(e,()=>{},1,mt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(e){const{element:n,slides:s,options:o}=this,i=an(this),a=ut(n);let r=e;if(this.isAnimating||i===r||p.get(n,gt))return;i<r||i===0&&r===s.length-1?this.direction=a?"right":"left":(i>r||i===s.length-1&&r===0)&&(this.direction=a?"left":"right");const{direction:c}=this;r<0?r=s.length-1:r>=s.length&&(r=0);const l=c==="left"?"next":"prev",d=c==="left"?"start":"end",h={relatedTarget:s[r],from:i,to:r,direction:c};dt(sn,h),dt(on,h),w(n,sn),!sn.defaultPrevented&&(this.index=r,rn(this,r),Zt(s[r])&&u(n,"slide")?p.set(n,()=>{f(s[r],`${et}-${l}`),Dt(s[r]),f(s[r],`${et}-${d}`),f(s[i],`${et}-${d}`),N(s[r],()=>Ai(this))},0,gt):(f(s[r],C),v(s[i],C),p.set(n,()=>{p.clear(n,gt),n&&o.interval&&!this.isPaused&&this.cycle(),w(n,on)},0,gt)))}dispose(){const{slides:e}=this,n=["start","end","prev","next"];[...e].forEach((s,o)=>{u(s,C)&&rn(this,o),n.forEach(i=>v(s,`${et}-${i}`))}),hs(this),super.dispose()}}const It="collapsing",K="collapse",fs="Collapse",Ri=`.${K}`,us=`[${U}="${K}"]`,Wi={parent:null},He=t=>W(t,fs),ji=t=>new ln(t),ps=T(`show.bs.${K}`),Fi=T(`shown.bs.${K}`),gs=T(`hide.bs.${K}`),zi=T(`hidden.bs.${K}`),Ki=t=>{const{element:e,parent:n,triggers:s}=t;w(e,ps),!ps.defaultPrevented&&(p.set(e,_t,17),n&&p.set(n,_t,17),f(e,It),v(e,K),L(e,{height:`${e.scrollHeight}px`}),N(e,()=>{p.clear(e),n&&p.clear(n),s.forEach(o=>O(o,fe,"true")),v(e,It),f(e,K),f(e,g),L(e,{height:""}),w(e,Fi)}))},ms=t=>{const{element:e,parent:n,triggers:s}=t;w(e,gs),!gs.defaultPrevented&&(p.set(e,_t,17),n&&p.set(n,_t,17),L(e,{height:`${e.scrollHeight}px`}),v(e,K),v(e,g),f(e,It),Dt(e),L(e,{height:"0px"}),N(e,()=>{p.clear(e),n&&p.clear(n),s.forEach(o=>O(o,fe,"false")),v(e,It),f(e,K),L(e,{height:""}),w(e,zi)}))},vs=(t,e)=>{const n=e?b.addListener:b.removeListener,{triggers:s}=t;s.length&&s.forEach(o=>n(o,k,Vi))},Vi=t=>{const{target:e}=t,n=e&&x(e,us),s=n&&j(n),o=s&&He(s);o&&o.toggle(),n&&n.tagName==="A"&&t.preventDefault()};class ln extends tt{static selector=Ri;static init=ji;static getInstance=He;constructor(e,n){super(e,n);const{element:s,options:o}=this,i=$(s);this.triggers=[...J(us,i)].filter(a=>j(a)===s),this.parent=P(o.parent,i)||j(s)||null,this.parent=j(s)||null,vs(this,!0)}get name(){return fs}get defaults(){return Wi}toggle(){u(this.element,g)?this.hide():this.show()}hide(){const{triggers:e,element:n}=this;p.get(n)||(ms(this),e.length&&e.forEach(s=>f(s,`${K}d`)))}show(){const{element:e,parent:n,triggers:s}=this;let o,i;n&&(o=[...J(`.${K}.${g}`,n)].find(a=>He(a)),i=o&&He(o)),(!n||!p.get(n))&&!p.get(e)&&(i&&o!==e&&(ms(i),i.triggers.forEach(a=>{f(a,`${K}d`)})),Ki(this),s.length&&s.forEach(a=>v(a,`${K}d`)))}dispose(){vs(this),super.dispose()}}const xt=["dropdown","dropup","dropstart","dropend"],bs="Dropdown",ws="dropdown-menu",$s=t=>{const e=x(t,"A");return t.tagName==="A"&&ye(t,"href")&&t.href.slice(-1)==="#"||e&&ye(e,"href")&&e.href.slice(-1)==="#"},[nt,Pe,De,Ae]=xt,dn=`[${U}="${nt}"],[${U}="${Pe}"],[${U}="${Ae}"],[${U}="${De}"]`,Kt=t=>W(t,bs),Xi=t=>new un(t),Yi=`${ws}-end`,Ts=[nt,Pe],ys=[De,Ae],Es=["A","BUTTON"],Ui={offset:5,display:"dynamic"},hn=T(`show.bs.${nt}`),Cs=T(`shown.bs.${nt}`),fn=T(`hide.bs.${nt}`),Ss=T(`hidden.bs.${nt}`),Hs=T(`updated.bs.${nt}`),Ps=t=>{const{element:e,menu:n,parentElement:s,options:o}=t,{offset:i}=o;if(z(n,"position")==="static")return;const a=ut(e),r=u(n,Yi);["margin","top","bottom","left","right"].forEach(M=>{const Tt={};Tt[M]="",L(n,Tt)});let l=xt.find(M=>u(s,M))||nt;const d={dropdown:[i,0,0],dropup:[0,0,i],dropstart:a?[-1,0,0,i]:[-1,i,0],dropend:a?[-1,i,0]:[-1,0,0,i]},h={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:a?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:a?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:a?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:a?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:m,offsetHeight:S}=n,{clientWidth:V,clientHeight:y}=rt(e),{left:X,top:q,width:Xt,height:ct}=Jt(e),D=X-m-i<0,wt=X+m+Xt+i>=V,ot=q+S+i>=y,F=q+S+ct+i>=y,Y=q-S-i<0,H=(!a&&r||a&&!r)&&X+Xt-m<0,Yt=(a&&r||!a&&!r)&&X+m>=V;if(ys.includes(l)&&D&&wt&&(l=nt),l===De&&(a?wt:D)&&(l=Ae),l===Ae&&(a?D:wt)&&(l=De),l===Pe&&Y&&!F&&(l=nt),l===nt&&F&&!Y&&(l=Pe),ys.includes(l)&&ot&&dt(h[l],{top:"auto",bottom:0}),Ts.includes(l)&&(H||Yt)){let M={left:"auto",right:"auto"};!H&&Yt&&!a&&(M={left:"auto",right:0}),H&&!Yt&&a&&(M={left:0,right:"auto"}),M&&dt(h[l],M)}const $t=d[l];L(n,{...h[l],margin:`${$t.map(M=>M&&`${M}px`).join(" ")}`}),Ts.includes(l)&&r&&r&&L(n,h[!a&&H||a&&Yt?"menuStart":"menuEnd"]),w(s,Hs)},_i=t=>[...t.children].map(e=>{if(e&&Es.includes(e.tagName))return e;const{firstElementChild:n}=e;return n&&Es.includes(n.tagName)?n:null}).filter(e=>e),Ds=t=>{const{element:e,options:n}=t,s=t.open?b.addListener:b.removeListener,o=$(e);s(o,k,Ls),s(o,je,Ls),s(o,ge,Gi),s(o,Go,Qi),n.display==="dynamic"&&[be,ve].forEach(i=>{s(Ft(e),i,Zi,Z)})},As=(t,e)=>{(e?b.addListener:b.removeListener)(t.element,k,qi)},Le=t=>{const e=[...xt,"btn-group","input-group"].map(n=>pt(`${n} ${g}`,$(t))).find(n=>n.length);if(e&&e.length)return[...e[0].children].find(n=>xt.some(s=>s===Ct(n,U)))},Ls=t=>{const{target:e,type:n}=t;if(!e||!e.closest)return;const s=Le(e),o=s&&Kt(s);if(!o)return;const{parentElement:i,menu:a}=o,r=x(e,dn)!==null,c=i&&i.contains(e)&&(e.tagName==="form"||x(e,"form")!==null);n===k&&$s(e)&&t.preventDefault(),!(n===je&&(e===s||e===a||a.contains(e)))&&(c||r||o&&o.hide())},qi=t=>{const{target:e}=t,n=e&&x(e,dn),s=n&&Kt(n);s&&(t.stopImmediatePropagation(),s.toggle(),n&&$s(n)&&t.preventDefault())},Gi=t=>{[Ve,Xe].includes(t.code)&&t.preventDefault()};function Qi(t){const{code:e}=t,n=Le(this),s=n&&Kt(n),{activeElement:o}=n&&$(n);if(!s||!o)return;const{menu:i,open:a}=s,r=_i(i);if(r&&r.length&&[Ve,Xe].includes(e)){let c=r.indexOf(o);o===n?c=0:e===Xe?c=c>1?c-1:0:e===Ve&&(c=c<r.length-1?c+1:c),r[c]&&it(r[c])}Ye===e&&a&&(s.toggle(),it(n))}function Zi(){const t=Le(this),e=t&&Kt(t);e&&e.open&&Ps(e)}class un extends tt{static selector=dn;static init=Xi;static getInstance=Kt;constructor(e,n){super(e,n);const{parentElement:s}=this.element;this.parentElement=s,this.menu=P(`.${ws}`,s),As(this,!0)}get name(){return bs}get defaults(){return Ui}toggle(){this.open?this.hide():this.show()}show(){const{element:e,open:n,menu:s,parentElement:o}=this;if(n)return;const i=Le(e),a=i&&Kt(i);a&&a.hide(),[hn,Cs,Hs].forEach(r=>{r.relatedTarget=e}),w(o,hn),!hn.defaultPrevented&&(f(s,g),f(o,g),O(e,fe,"true"),Ps(this),this.open=!n,it(e),Ds(this),w(o,Cs))}hide(){const{element:e,open:n,menu:s,parentElement:o}=this;n&&([fn,Ss].forEach(i=>{i.relatedTarget=e}),w(o,fn),!fn.defaultPrevented&&(v(s,g),v(o,g),O(e,fe,"false"),this.open=!n,Ds(this),w(o,Ss)))}dispose(){this.open&&this.hide(),As(this),super.dispose()}}const _="modal",pn="Modal",gn="Offcanvas",Ji="fixed-top",tr="fixed-bottom",Is="sticky-top",xs="position-sticky",Os=t=>[...pt(Ji,t),...pt(tr,t),...pt(Is,t),...pt(xs,t),...pt("is-fixed",t)],er=t=>{const e=ft(t);L(e,{paddingRight:"",overflow:""});const n=Os(e);n.length&&n.forEach(s=>{L(s,{paddingRight:"",marginRight:""})})},ks=t=>{const{clientWidth:e}=rt(t),{innerWidth:n}=Ft(t);return Math.abs(n-e)},Ns=(t,e)=>{const n=ft(t),s=parseInt(z(n,"paddingRight"),10),i=z(n,"overflow")==="hidden"&&s?0:ks(t),a=Os(n);e&&(L(n,{overflow:"hidden",paddingRight:`${s+i}px`}),a.length&&a.forEach(r=>{const c=z(r,"paddingRight");if(r.style.paddingRight=`${parseInt(c,10)+i}px`,[Is,xs].some(l=>u(r,l))){const l=z(r,"marginRight");r.style.marginRight=`${parseInt(l,10)-i}px`}}))},G="offcanvas",vt=lt({tagName:"div"}),Ms=(t,e)=>{const n=A(e)&&e.nodeName==="BODY",s=A(e)&&!n?e:vt,o=n?e:ft(t);A(t)&&(s===vt&&o.append(vt),s.append(t))},Bs=(t,e)=>{const n=A(e)&&e.nodeName==="BODY",s=A(e)&&!n?e:vt;A(t)&&(t.remove(),s===vt&&!vt.children.length&&vt.remove())},Ot=(t,e)=>{const n=A(e)&&e.nodeName!=="BODY"?e:vt;return A(t)&&n.contains(t)},Rs="backdrop",Ws=`${_}-${Rs}`,js=`${G}-${Rs}`,Fs=`.${_}.${g}`,mn=`.${G}.${g}`,I=lt("div"),kt=t=>P(`${Fs},${mn}`,$(t)),vn=t=>{const e=t?Ws:js;[Ws,js].forEach(n=>{v(I,n)}),f(I,e)},zs=(t,e,n)=>{vn(n),Ms(I,ft(t)),e&&f(I,R)},Ks=()=>{u(I,g)||(f(I,g),Dt(I))},Ie=()=>{v(I,g)},Vs=t=>{kt(t)||(v(I,R),Bs(I,ft(t)),er(t))},Xs=t=>E(t)&&z(t,"visibility")!=="hidden"&&t.offsetParent!==null,nr=`.${_}`,Ys=`[${U}="${_}"]`,sr=`[${Ce}="${_}"]`,Us=`${_}-static`,or={backdrop:!0,keyboard:!0},ne=t=>W(t,pn),ir=t=>new wn(t),xe=T(`show.bs.${_}`),_s=T(`shown.bs.${_}`),bn=T(`hide.bs.${_}`),qs=T(`hidden.bs.${_}`),Gs=t=>{const{element:e}=t,n=ks(e),{clientHeight:s,scrollHeight:o}=rt(e),{clientHeight:i,scrollHeight:a}=e,r=i!==a;if(!r&&n){const c=ut(e)?"paddingLeft":"paddingRight",l={};l[c]=`${n}px`,L(e,l)}Ns(e,r||s!==o)},Qs=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s}=t;n(s,k,cr),n(Ft(s),ve,t.update,Z),n($(s),ge,ar)},Zs=(t,e)=>{const n=e?b.addListener:b.removeListener,{triggers:s}=t;s.length&&s.forEach(o=>n(o,k,rr))},Js=(t,e)=>{const{triggers:n,element:s,relatedTarget:o}=t;Vs(s),L(s,{paddingRight:"",display:""}),Qs(t);const i=xe.relatedTarget||n.find(Xs);i&&it(i),Ee(e)&&e(),qs.relatedTarget=o,w(s,qs)},to=t=>{const{element:e,relatedTarget:n}=t;it(e),Qs(t,!0),_s.relatedTarget=n,w(e,_s)},eo=t=>{const{element:e,hasFade:n}=t;L(e,{display:"block"}),Gs(t),kt(e)||L(ft(e),{overflow:"hidden"}),f(e,g),St(e,ue),O(e,pe,"true"),n?N(e,()=>to(t)):to(t)},no=(t,e)=>{const{element:n,options:s,hasFade:o}=t;s.backdrop&&!e&&o&&u(I,g)&&!kt(n)?(Ie(),N(I,()=>Js(t))):Js(t,e)},rr=t=>{const{target:e}=t,n=e&&x(e,Ys),s=n&&j(n),o=s&&ne(s);o&&(n&&n.tagName==="A"&&t.preventDefault(),o.relatedTarget=n,o.toggle())},ar=({code:t,target:e})=>{const n=P(Fs,$(e)),s=n&&ne(n);if(!s)return;const{options:o}=s;o.keyboard&&t===Ye&&u(n,g)&&(s.relatedTarget=null,s.hide())};function cr(t){const e=ne(this);if(!e||p.get(this))return;const{options:n,isStatic:s,modalDialog:o}=e,{backdrop:i}=n,{target:a}=t,r=$(this)?.getSelection()?.toString().length,c=o?.contains(a),l=a&&x(a,sr);s&&!c?p.set(this,()=>{f(this,Us),N(o,()=>lr(e))},17):(l||!r&&!s&&!c&&i)&&(e.relatedTarget=l||null,e.hide(),t.preventDefault())}const lr=t=>{const{element:e,modalDialog:n}=t,s=(E(n)?Zt(n):0)+17;v(e,Us),p.set(e,()=>p.clear(e),s)};class wn extends tt{static selector=nr;static init=ir;static getInstance=ne;constructor(e,n){super(e,n);const{element:s}=this;this.modalDialog=P(`.${_}-dialog`,s),this.triggers=[...J(Ys,$(s))].filter(o=>j(o)===s),this.isStatic=this.options.backdrop==="static",this.hasFade=u(s,R),this.relatedTarget=null,Zs(this,!0),this.update=this.update.bind(this)}get name(){return pn}get defaults(){return or}toggle(){u(this.element,g)?this.hide():this.show()}show(){const{element:e,options:n,hasFade:s,relatedTarget:o}=this,{backdrop:i}=n;let a=0;if(u(e,g)||(xe.relatedTarget=o||void 0,w(e,xe),xe.defaultPrevented))return;const r=kt(e);if(r&&r!==e){const c=ne(r)||W(r,gn);c&&c.hide()}i?(Ot(I)?vn(!0):zs(e,s,!0),a=Zt(I),Ks(),setTimeout(()=>eo(this),a)):(eo(this),r&&u(I,g)&&Ie())}hide(e){const{element:n,hasFade:s,relatedTarget:o}=this;u(n,g)&&(bn.relatedTarget=o||void 0,w(n,bn),!bn.defaultPrevented&&(v(n,g),O(n,ue,"true"),St(n,pe),s?N(n,()=>no(this,e)):no(this,e)))}update(){u(this.element,g)&&Gs(this)}dispose(){Zs(this),this.hide(()=>super.dispose())}}const dr=`.${G}`,$n=`[${U}="${G}"]`,hr=`[${Ce}="${G}"]`,Oe=`${G}-toggling`,fr={backdrop:!0,keyboard:!0,scroll:!1},se=t=>W(t,gn),ur=t=>new yn(t),ke=T(`show.bs.${G}`),so=T(`shown.bs.${G}`),Tn=T(`hide.bs.${G}`),oo=T(`hidden.bs.${G}`),pr=t=>{const{element:e}=t,{clientHeight:n,scrollHeight:s}=rt(e);Ns(e,n!==s)},io=(t,e)=>{const n=e?b.addListener:b.removeListener;t.triggers.forEach(s=>n(s,k,gr))},ro=(t,e)=>{const n=e?b.addListener:b.removeListener,s=$(t.element);n(s,ge,vr),n(s,k,mr)},ao=t=>{const{element:e,options:n}=t;n.scroll||(pr(t),L(ft(e),{overflow:"hidden"})),f(e,Oe),f(e,g),L(e,{visibility:"visible"}),N(e,()=>br(t))},co=(t,e)=>{const{element:n,options:s}=t,o=kt(n);n.blur(),!o&&s.backdrop&&u(I,g)?(Ie(),N(I,()=>lo(t,e))):lo(t,e)},gr=t=>{const e=x(t.target,$n),n=e&&j(e),s=n&&se(n);s&&(s.relatedTarget=e,s.toggle(),e&&e.tagName==="A"&&t.preventDefault())},mr=t=>{const{target:e}=t,n=P(mn,$(e)),s=P(hr,n),o=n&&se(n);if(!o)return;const{options:i,triggers:a}=o,{backdrop:r}=i,c=x(e,$n),l=$(n).getSelection();I.contains(e)&&r==="static"||(!(l&&l.toString().length)&&(!n.contains(e)&&r&&(!c||a.includes(e))||s&&s.contains(e))&&(o.relatedTarget=s&&s.contains(e)?s:null,o.hide()),c&&c.tagName==="A"&&t.preventDefault())},vr=({code:t,target:e})=>{const n=P(mn,$(e)),s=n&&se(n);s&&s.options.keyboard&&t===Ye&&(s.relatedTarget=null,s.hide())},br=t=>{const{element:e}=t;v(e,Oe),St(e,ue),O(e,pe,"true"),O(e,"role","dialog"),w(e,so),ro(t,!0),it(e)},lo=(t,e)=>{const{element:n,triggers:s}=t;O(n,ue,"true"),St(n,pe),St(n,"role"),L(n,{visibility:""});const o=ke.relatedTarget||s.find(Xs);o&&it(o),Vs(n),w(n,oo),v(n,Oe),kt(n)||ro(t),Ee(e)&&e()};class yn extends tt{static selector=dr;static init=ur;static getInstance=se;constructor(e,n){super(e,n);const{element:s}=this;this.triggers=[...J($n,$(s))].filter(o=>j(o)===s),this.relatedTarget=null,io(this,!0)}get name(){return gn}get defaults(){return fr}toggle(){u(this.element,g)?this.hide():this.show()}show(){const{element:e,options:n,relatedTarget:s}=this;let o=0;if(u(e,g)||(ke.relatedTarget=s||void 0,so.relatedTarget=s||void 0,w(e,ke),ke.defaultPrevented))return;const i=kt(e);if(i&&i!==e){const a=se(i)||W(i,pn);a&&a.hide()}n.backdrop?(Ot(I)?vn():zs(e,!0),o=Zt(I),Ks(),setTimeout(()=>ao(this),o)):(ao(this),i&&u(I,g)&&Ie())}hide(e){const{element:n,relatedTarget:s}=this;u(n,g)&&(Tn.relatedTarget=s||void 0,oo.relatedTarget=s||void 0,w(n,Tn),!Tn.defaultPrevented&&(f(n,Oe),v(n,g),e?co(this,e):N(n,()=>co(this,e))))}dispose(){io(this),this.hide(()=>super.dispose())}}const Nt="popover",Ne="Popover",at="tooltip",ho=t=>{const e=t===at,n=e?`${t}-inner`:`${t}-body`,s=e?"":`<h3 class="${t}-header"></h3>`,o=`<div class="${t}-arrow"></div>`,i=`<div class="${n}"></div>`;return`<div class="${t}" role="${at}">${s+o+i}</div>`},fo={top:"top",bottom:"bottom",left:"start",right:"end"},En=t=>{const e=/\b(top|bottom|start|end)+/,{element:n,tooltip:s,container:o,options:i,arrow:a}=t;if(!s)return;const r={...fo},c=ut(n);L(s,{top:"",left:"",right:"",bottom:""});const l=t.name===Ne,{offsetWidth:d,offsetHeight:h}=s,{clientWidth:m,clientHeight:S,offsetWidth:V}=rt(n);let{placement:y}=i;const{clientWidth:X,offsetWidth:q}=o,ct=z(o,"position")==="fixed",D=Math.abs(ct?X-q:m-V),wt=c&&ct?D:0,ot=m-(c?0:D)-1,{width:F,height:Y,left:H,right:Yt,top:$t}=Jt(n,!0),{x:M,y:Tt}={x:H,y:$t};L(a,{top:"",left:"",right:"",bottom:""});let Bt=0,ae="",yt=0,On="",Ut="",Be="",kn="";const Rt=a.offsetWidth||0,Et=a.offsetHeight||0,Nn=Rt/2;let ce=$t-h-Et<0,le=$t+h+Y+Et>=S,de=H-d-Rt<wt,he=H+d+F+Rt>=ot;const Re=["left","right"],Mn=["top","bottom"];ce=Re.includes(y)?$t+Y/2-h/2-Et<0:ce,le=Re.includes(y)?$t+h/2+Y/2+Et>=S:le,de=Mn.includes(y)?H+F/2-d/2<wt:de,he=Mn.includes(y)?H+d/2+F/2>=ot:he,y=Re.includes(y)&&de&&he?"top":y,y=y==="top"&&ce?"bottom":y,y=y==="bottom"&&le?"top":y,y=y==="left"&&de?"right":y,y=y==="right"&&he?"left":y,s.className.includes(y)||(s.className=s.className.replace(e,r[y])),Re.includes(y)?(y==="left"?yt=M-d-(l?Rt:0):yt=M+F+(l?Rt:0),ce&&le?(Bt=0,ae=0,Ut=$t+Y/2-Et/2):ce?(Bt=Tt,ae="",Ut=Y/2-Rt):le?(Bt=Tt-h+Y,ae="",Ut=h-Y/2-Rt):(Bt=Tt-h/2+Y/2,Ut=h/2-Et/2)):Mn.includes(y)&&(y==="top"?Bt=Tt-h-(l?Et:0):Bt=Tt+Y+(l?Et:0),de?(yt=0,Be=M+F/2-Nn):he?(yt="auto",On=0,kn=F/2+ot-Yt-Nn):(yt=M-d/2+F/2,Be=d/2-Nn)),L(s,{top:`${Bt}px`,bottom:ae===""?"":`${ae}px`,left:yt==="auto"?yt:`${yt}px`,right:On!==""?`${On}px`:""}),E(a)&&(Ut!==""&&(a.style.top=`${Ut}px`),Be!==""?a.style.left=`${Be}px`:kn!==""&&(a.style.right=`${kn}px`));const Zr=T(`updated.bs.${Wt(t.name)}`);w(n,Zr)},Cn={template:ho(at),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},uo="data-original-title",Mt="Tooltip",bt=(t,e,n)=>{if(!(!E(t)||Pt(e)&&!e.length))if(Pt(e)){let s=e.trim();Ee(n)&&(s=n(s));const i=new DOMParser().parseFromString(s,"text/html");t.append(...i.body.childNodes)}else E(e)?t.append(e):(vi(e)||mi(e)&&e.every(A))&&t.append(...e)},wr=t=>{const e=t.name===Mt,{id:n,element:s,options:o}=t,{title:i,placement:a,template:r,animation:c,customClass:l,sanitizeFn:d,dismissible:h,content:m,btnClose:S}=o,V=e?at:Nt,y={...fo};let X=[],q=[];ut(s)&&(y.left="end",y.right="start");const Xt=`bs-${V}-${y[a]}`;let ct;if(E(r))ct=r;else{const H=lt("div");bt(H,r,d),ct=H.firstChild}t.tooltip=E(ct)?ct.cloneNode(!0):void 0;const{tooltip:D}=t;if(!D)return;O(D,"id",n),O(D,"role",at);const wt=e?`${at}-inner`:`${Nt}-body`,ot=e?null:P(`.${Nt}-header`,D),F=P(`.${wt}`,D);t.arrow=P(`.${V}-arrow`,D);const{arrow:Y}=t;if(E(i))X=[i.cloneNode(!0)];else{const H=lt("div");bt(H,i,d),X=[...H.childNodes]}if(E(m))q=[m.cloneNode(!0)];else{const H=lt("div");bt(H,m,d),q=[...H.childNodes]}if(h)if(i)if(E(S))X=[...X,S.cloneNode(!0)];else{const H=lt("div");bt(H,S,d),X=[...X,H.firstChild]}else if(ot&&ot.remove(),E(S))q=[...q,S.cloneNode(!0)];else{const H=lt("div");bt(H,S,d),q=[...q,H.firstChild]}e?i&&F&&bt(F,i,d):(i&&ot&&bt(ot,X,d),m&&F&&bt(F,q,d),t.btn=P(".btn-close",D)||void 0),f(D,"position-fixed"),f(Y,"position-absolute"),u(D,V)||f(D,V),c&&!u(D,R)&&f(D,R),l&&!u(D,l)&&f(D,l),u(D,Xt)||f(D,Xt)},$r=t=>{const e=["HTML","BODY"],n=[];let{parentNode:s}=t;for(;s&&!e.includes(s.nodeName);)s=gi(s),Un(s)||bi(s)||n.push(s);return n.find((o,i)=>z(o,"position")!=="relative"&&n.slice(i+1).every(a=>z(a,"position")==="static")?o:null)||$(t).body},Tr=`[${U}="${at}"],[data-tip="${at}"]`,po="title";let go=t=>W(t,Mt);const yr=t=>new Me(t),Er=t=>{const{element:e,tooltip:n,container:s,offsetParent:o}=t;St(e,Bn),Bs(n,s===o?s:o)},Cr=(t,e)=>{const{element:n}=t;oe(t),ye(n,uo)&&t.name===Mt&&$o(t),e&&e()},mo=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s}=t;n($(s),Ke,t.handleTouch,Z),[be,ve].forEach(o=>{n(Ft(s),o,t.update,Z)})},vo=t=>{const{element:e}=t,n=T(`shown.bs.${Wt(t.name)}`);mo(t,!0),w(e,n),p.clear(e,"in")},bo=t=>{const{element:e,onHideComplete:n}=t,s=T(`hidden.bs.${Wt(t.name)}`);mo(t),Er(t),w(e,s),Ee(n)&&(n(),t.onHideComplete=void 0),p.clear(e,"out")},oe=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s,options:o,btn:i}=t,{trigger:a}=o,c=!!(t.name!==Mt&&o.dismissible);if(a.includes("manual"))return;t.enabled=!!e,a.split(" ").forEach(d=>{d===Zo?(n(s,Qo,t.show),n(s,me,t.show),c&&i?n(i,k,t.hide):(n(s,ze,t.hide),n($(s),Ke,t.handleTouch,Z))):d===k?n(s,d,c?t.show:t.toggle):d===je&&(n(s,Fe,t.show),c||n(s,Wn,t.hide),ai&&n(s,k,()=>it(s)))})},wo=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s,container:o,offsetParent:i}=t,{offsetHeight:a,scrollHeight:r}=o,c=x(s,`.${_}`),l=x(s,`.${G}`),d=Ft(s),m=o===i&&a!==r?o:d;n(m,ve,t.update,Z),n(m,be,t.update,Z),c&&n(c,`hide.bs.${_}`,t.hide),l&&n(l,`hide.bs.${G}`,t.hide)},$o=(t,e)=>{const n=[uo,po],{element:s}=t;O(s,n[e?0:1],e||Ct(s,n[0])||""),St(s,n[e?1:0])};class Me extends tt{static selector=Tr;static init=yr;static getInstance=go;static styleTip=En;constructor(e,n){super(e,n);const{element:s}=this,o=this.name===Mt,i=o?at:Nt,a=o?Mt:Ne;go=c=>W(c,a),this.enabled=!0,this.id=`${i}-${Gn(s,i)}`;const{options:r}=this;!r.title&&o||!o&&!r.content||(dt(Cn,{titleAttr:""}),this.handleTouch=this.handleTouch.bind(this),this.update=this.update.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.toggle=this.toggle.bind(this),ye(s,po)&&o&&typeof r.title=="string"&&$o(this,r.title),this.container=$r(s),this.offsetParent=["sticky","fixed"].some(c=>z(this.container,"position")===c)?this.container:$(this.element).body,wr(this),oe(this,!0))}get name(){return Mt}get defaults(){return Cn}show(){const{options:e,tooltip:n,element:s,container:o,offsetParent:i,id:a}=this,{animation:r}=e,c=p.get(s,"out"),l=o===i?o:i;p.clear(s,"out"),n&&!c&&!Ot(n,l)&&p.set(s,()=>{const d=T(`show.bs.${Wt(this.name)}`);w(s,d),!d.defaultPrevented&&(Ms(n,l),O(s,Bn,`#${a}`),this.update(),wo(this,!0),u(n,g)||f(n,g),r?N(n,()=>vo(this)):vo(this))},17,"in")}hide(){const{options:e,tooltip:n,element:s,container:o,offsetParent:i}=this,{animation:a,delay:r}=e;p.clear(s,"in"),n&&Ot(n,o===i?o:i)&&p.set(s,()=>{const c=T(`hide.bs.${Wt(this.name)}`);w(s,c),!c.defaultPrevented&&(this.update(),v(n,g),wo(this),a?N(n,()=>bo(this)):bo(this))},r+17,"out")}update(){En(this)}toggle(){const{tooltip:e,container:n,offsetParent:s}=this;e&&!Ot(e,n===s?n:s)?this.show():this.hide()}enable(){const{enabled:e}=this;e||(oe(this,!0),this.enabled=!e)}disable(){const{tooltip:e,container:n,offsetParent:s,options:o,enabled:i}=this,{animation:a}=o;i&&(e&&Ot(e,n===s?n:s)&&a?(this.onHideComplete=()=>oe(this),this.hide()):oe(this),this.enabled=!i)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch({target:e}){const{tooltip:n,element:s}=this;n&&n.contains(e)||e===s||e&&s.contains(e)||this.hide()}dispose(){const{tooltip:e,container:n,offsetParent:s,options:o}=this,i=()=>Cr(this,()=>super.dispose());o.animation&&e&&Ot(e,n===s?n:s)?(this.options.delay=0,this.onHideComplete=i,this.hide()):i()}}const Sr=`[${U}="${Nt}"],[data-tip="${Nt}"]`,Hr=dt({},Cn,{template:ho(Nt),content:"",dismissible:!1,btnClose:'<button class="btn-close" aria-label="Close"></button>'}),Pr=t=>W(t,Ne),Dr=t=>new Sn(t);class Sn extends Me{static selector=Sr;static init=Dr;static getInstance=Pr;static styleTip=En;constructor(e,n){super(e,n)}get name(){return Ne}get defaults(){return Hr}show(){super.show();const{options:e,btn:n}=this;e.dismissible&&n&&setTimeout(()=>it(n),17)}}const Ar="scrollspy",To="ScrollSpy",Lr='[data-bs-spy="scroll"]',Ir={offset:10,target:null},xr=t=>W(t,To),Or=t=>new Hn(t),yo=T(`activate.bs.${Ar}`),kr=t=>{const{target:e,scrollTarget:n,options:s,itemsLength:o,scrollHeight:i,element:a}=t,{offset:r}=s,c=_e(n),l=e&&Qe("A",e),d=n?Eo(n):i;if(t.scrollTop=c?n.scrollY:n.scrollTop,l&&(d!==i||o!==l.length)){let h,m,S;t.items=[],t.offsets=[],t.scrollHeight=d,t.maxScroll=t.scrollHeight-Nr(t),[...l].forEach(V=>{h=Ct(V,"href"),m=h&&h.charAt(0)==="#"&&h.slice(-1)!=="#"&&P(h,$(a)),m&&(t.items.push(V),S=Jt(m),t.offsets.push((c?S.top+t.scrollTop:m.offsetTop)-r))}),t.itemsLength=t.items.length}},Eo=t=>E(t)?t.scrollHeight:rt(t).scrollHeight,Nr=({element:t,scrollTarget:e})=>_e(e)?e.innerHeight:Jt(t).height,Co=t=>{[...Qe("A",t)].forEach(e=>{u(e,C)&&v(e,C)})},So=(t,e)=>{const{target:n,element:s}=t;E(n)&&Co(n),t.activeItem=e,f(e,C);const o=[];let i=e;for(;i!==ft(s);)i=i.parentElement,(u(i,"nav")||u(i,"dropdown-menu"))&&o.push(i);o.forEach(a=>{const r=a.previousElementSibling;r&&!u(r,C)&&f(r,C)}),yo.relatedTarget=e,w(s,yo)},Ho=(t,e)=>{(e?b.addListener:b.removeListener)(t.scrollTarget,be,t.refresh,Z)};class Hn extends tt{static selector=Lr;static init=Or;static getInstance=xr;constructor(e,n){super(e,n);const{element:s,options:o}=this;this.target=P(o.target,$(s)),this.target&&(this.scrollTarget=s.clientHeight<s.scrollHeight?s:Ft(s),this.scrollHeight=Eo(this.scrollTarget),this.refresh=this.refresh.bind(this),Ho(this,!0),this.refresh())}get name(){return To}get defaults(){return Ir}refresh(){const{target:e}=this;if(e?.offsetHeight===0)return;kr(this);const{scrollTop:n,maxScroll:s,itemsLength:o,items:i,activeItem:a}=this;if(n>=s){const c=i[o-1];a!==c&&So(this,c);return}const{offsets:r}=this;if(a&&n<r[0]&&r[0]>0){this.activeItem=null,e&&Co(e);return}i.forEach((c,l)=>{a!==c&&n>=r[l]&&(typeof r[l+1]>"u"||n<r[l+1])&&So(this,c)})}dispose(){Ho(this),super.dispose()}}const ie="tab",Po="Tab",Do=`[${U}="${ie}"]`,Ao=t=>W(t,Po),Mr=t=>new An(t),Pn=T(`show.bs.${ie}`),Lo=T(`shown.bs.${ie}`),Dn=T(`hide.bs.${ie}`),Io=T(`hidden.bs.${ie}`),re=new Map,xo=t=>{const{tabContent:e,nav:n}=t;e&&u(e,It)&&(e.style.height="",v(e,It)),n&&p.clear(n)},Oo=t=>{const{element:e,tabContent:n,content:s,nav:o}=t,{tab:i}=E(o)&&re.get(o)||{tab:null};if(n&&s&&u(s,R)){const{currentHeight:a,nextHeight:r}=re.get(e)||{currentHeight:0,nextHeight:0};a===r?xo(t):setTimeout(()=>{n.style.height=`${r}px`,Dt(n),N(n,()=>xo(t))},50)}else o&&p.clear(o);Lo.relatedTarget=i,w(e,Lo)},ko=t=>{const{element:e,content:n,tabContent:s,nav:o}=t,{tab:i,content:a}=o&&re.get(o)||{tab:null,content:null};let r=0;if(s&&n&&u(n,R)&&([a,n].forEach(c=>{E(c)&&f(c,"overflow-hidden")}),r=E(a)?a.scrollHeight:0),Pn.relatedTarget=i,Io.relatedTarget=e,w(e,Pn),!Pn.defaultPrevented){if(n&&f(n,C),a&&v(a,C),s&&n&&u(n,R)){const c=n.scrollHeight;re.set(e,{currentHeight:r,nextHeight:c,tab:null,content:null}),f(s,It),s.style.height=`${r}px`,Dt(s),[a,n].forEach(l=>{l&&v(l,"overflow-hidden")})}n&&n&&u(n,R)?setTimeout(()=>{f(n,g),N(n,()=>{Oo(t)})},1):(n&&f(n,g),Oo(t)),i&&w(i,Io)}},No=t=>{const{nav:e}=t;if(!E(e))return{tab:null,content:null};const n=pt(C,e);let s=null;n.length===1&&!xt.some(i=>u(n[0].parentElement,i))?[s]=n:n.length>1&&(s=n[n.length-1]);const o=E(s)?j(s):null;return{tab:s,content:o}},Mo=t=>{if(!E(t))return null;const e=x(t,`.${xt.join(",.")}`);return e?P(`.${xt[0]}-toggle`,e):null},Bo=(t,e)=>{(e?b.addListener:b.removeListener)(t.element,k,Br)},Br=t=>{const e=Ao(t.target);e&&(t.preventDefault(),e.show())};class An extends tt{static selector=Do;static init=Mr;static getInstance=Ao;constructor(e){super(e);const{element:n}=this,s=j(n);if(!s)return;const o=x(n,".nav"),i=x(s,".tab-content");this.nav=o,this.content=s,this.tabContent=i,this.dropdown=Mo(n);const{tab:a}=No(this);if(o&&!a){const r=P(Do,o),c=r&&j(r);c&&(f(r,C),f(c,g),f(c,C),O(n,We,"true"))}Bo(this,!0)}get name(){return Po}show(){const{element:e,content:n,nav:s,dropdown:o}=this;if(!(s&&p.get(s))&&!u(e,C)){const{tab:i,content:a}=No(this);if(s&&re.set(s,{tab:i,content:a,currentHeight:0,nextHeight:0}),Dn.relatedTarget=e,E(i)&&w(i,Dn),Dn.defaultPrevented)return;f(e,C),O(e,We,"true");const r=E(i)&&Mo(i);if(r&&u(r,C)&&v(r,C),s){const c=()=>{i&&(v(i,C),O(i,We,"false")),o&&!u(o,C)&&f(o,C)};a&&(u(a,R)||n&&u(n,R))?p.set(s,c,1):c()}a&&(v(a,g),u(a,R)?N(a,()=>ko(this)):ko(this))}}dispose(){Bo(this),super.dispose()}}const Q="toast",Ro="Toast",Rr=`.${Q}`,Wr=`[${Ce}="${Q}"]`,Wo=`[${U}="${Q}"]`,Vt="showing",jo="hide",jr={animation:!0,autohide:!0,delay:5e3},Ln=t=>W(t,Ro),Fr=t=>new In(t),Fo=T(`show.bs.${Q}`),zr=T(`shown.bs.${Q}`),zo=T(`hide.bs.${Q}`),Kr=T(`hidden.bs.${Q}`),Ko=t=>{const{element:e,options:n}=t;v(e,Vt),p.clear(e,Vt),w(e,zr),n.autohide&&p.set(e,()=>t.hide(),n.delay,Q)},Vo=t=>{const{element:e}=t;v(e,Vt),v(e,g),f(e,jo),p.clear(e,Q),w(e,Kr)},Vr=t=>{const{element:e,options:n}=t;f(e,Vt),n.animation?(Dt(e),N(e,()=>Vo(t))):Vo(t)},Xr=t=>{const{element:e,options:n}=t;p.set(e,()=>{v(e,jo),Dt(e),f(e,g),f(e,Vt),n.animation?N(e,()=>Ko(t)):Ko(t)},17,Vt)},Xo=(t,e)=>{const n=e?b.addListener:b.removeListener,{element:s,triggers:o,dismiss:i,options:a}=t;i&&n(i,k,t.hide),a.autohide&&[Fe,Wn,me,ze].forEach(r=>n(s,r,_r)),o.length&&o.forEach(r=>n(r,k,Ur))},Yr=t=>{p.clear(t.element,Q),Xo(t)},Ur=t=>{const{target:e}=t,n=e&&x(e,Wo),s=n&&j(n),o=s&&Ln(s);o&&(n&&n.tagName==="A"&&t.preventDefault(),o.relatedTarget=n,o.show())},_r=t=>{const e=t.target,n=Ln(e),{type:s,relatedTarget:o}=t;!n||e===o||e.contains(o)||([me,Fe].includes(s)?p.clear(e,Q):p.set(e,()=>n.hide(),n.options.delay,Q))};class In extends tt{static selector=Rr;static init=Fr;static getInstance=Ln;constructor(e,n){super(e,n);const{element:s,options:o}=this;o.animation&&!u(s,R)?f(s,R):!o.animation&&u(s,R)&&v(s,R),this.dismiss=P(Wr,s),this.triggers=[...J(Wo,$(s))].filter(i=>j(i)===s),this.show=this.show.bind(this),this.hide=this.hide.bind(this),Xo(this,!0)}get name(){return Ro}get defaults(){return jr}get isShown(){return u(this.element,g)}show(){const{element:e,isShown:n}=this;if(e&&!n){if(w(e,Fo),Fo.defaultPrevented)return;Xr(this)}}hide(){const{element:e,isShown:n}=this;if(e&&n){if(w(e,zo),zo.defaultPrevented)return;Vr(this)}}dispose(){const{element:e,isShown:n}=this;n&&v(e,g),Yr(this),super.dispose()}}const Yo={Alert:Je,Button:tn,Carousel:cn,Collapse:ln,Dropdown:un,Modal:wn,Offcanvas:yn,Popover:Sn,ScrollSpy:Hn,Tab:An,Toast:In,Tooltip:Me},qr=(t,e)=>{[...e].forEach(n=>t(n))},Gr=(t,e)=>{const n=Ht.getAllFor(t);n&&[...n].forEach(([s,o])=>{e.contains(s)&&o.dispose()})},xn=t=>{const e=t&&t.nodeName?t:document,n=[...Qe("*",e)];ui(Yo).forEach(s=>{const{init:o,selector:i}=s;qr(o,n.filter(a=>wi(a,i)))})},Qr=t=>{const e=t&&t.nodeName?t:document;qe(Yo).forEach(n=>{Gr(n,e)})};return document.body?xn():b.addListener(document,"DOMContentLoaded",()=>xn(),{once:!0}),B.Alert=Je,B.Button=tn,B.Carousel=cn,B.Collapse=ln,B.Dropdown=un,B.Listener=_o,B.Modal=wn,B.Offcanvas=yn,B.Popover=Sn,B.ScrollSpy=Hn,B.Tab=An,B.Toast=In,B.Tooltip=Me,B.initCallback=xn,B.removeDataAPI=Qr,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),B}({}); | ||
//# sourceMappingURL=bootstrap-native.js.map |
{ | ||
"name": "bootstrap.native", | ||
"version": "5.0.0-alpha1", | ||
"author": "thednp", | ||
"license": "MIT", | ||
"version": "5.0.0-alpha2", | ||
"description": "Bootstrap components build with Typescript", | ||
"homepage": "https://thednp.github.io/bootstrap.native/", | ||
"source": "src/index.ts", | ||
@@ -10,2 +13,5 @@ "main": "dist/bootstrap-native.js", | ||
"types": "dist/bootstrap-native.d.ts", | ||
"bugs": { | ||
"url": "https://github.com/thednp/bootstrap.native/issues" | ||
}, | ||
"scripts": { | ||
@@ -26,7 +32,2 @@ "format": "prettier --write \"src/**/*.ts\"", | ||
}, | ||
"browserslist": [ | ||
"last 2 versions", | ||
"not <= 1%", | ||
"not IE 10" | ||
], | ||
"publishConfig": { | ||
@@ -48,8 +49,2 @@ "access": "public", | ||
], | ||
"author": "dnp_theme", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/thednp/bootstrap.native/issues" | ||
}, | ||
"homepage": "https://thednp.github.io/bootstrap.native/", | ||
"dependencies": { | ||
@@ -56,0 +51,0 @@ "@thednp/event-listener": "^2.0.0-alpha8", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
1
1299398
267033