bootstrap-italia 2.13.0 → 2.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/bootstrap-italia.min.css +1 -1
- package/dist/css/bootstrap-italia.min.css.map +1 -1
- package/dist/js/bootstrap-italia.bundle.min.js +1 -1
- package/dist/js/bootstrap-italia.min.js +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/src/js/version.js +1 -1
- package/src/scss/base/_version.scss +1 -1
- package/src/scss/components/_accept-overlay.scss +2 -1
- package/src/scss/components/_navbar.scss +1 -0
- package/src/scss/forms/_form-check.scss +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,(function(){"use strict";!function(){const e={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const e="data-focus-mouse",t="focus--mouse";class i{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((e=>{document.addEventListener(e,(e=>{this._usingMouse="mousedown"===e.type}))})),document.addEventListener("focusin",(i=>{this._usingMouse&&i.target&&(i.target.classList.add(t),i.target.setAttribute(e,!0))})),document.addEventListener("focusout",(i=>{i.target&&(i.target.classList.remove(t),i.target.setAttribute(e,!1))}))}}new i;const n=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new i,window.BOOTSTRAP_ITALIA_VERSION="2.13.0")};n();const s={ck3:{}},r={rememberChoice:(e,t)=>{s.ck3[e]=t,localStorage.setItem("bs-ck3",JSON.stringify(s.ck3))},isChoiceRemembered:e=>(s.ck3=JSON.parse(localStorage.getItem("bs-ck3")||"{}"),s.ck3[e]||!1),clearAllRememberedChoices:()=>{localStorage.removeItem("bs-ck3")}},o="splide",a=`data-${o}`,l={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};function c(e){e.length=0}function u(e){return!f(e)&&"object"==typeof e}function d(e){return Array.isArray(e)}function h(e){return"string"==typeof e}function p(e){return void 0===e}function f(e){return null===e}function m(e){return e instanceof HTMLElement}function g(e){return d(e)?e:[e]}function y(e,t){g(e).forEach(t)}function _(e,t){return e.indexOf(t)>-1}function v(e,t){return e.push(...g(t)),e}const b=Array.prototype;function T(e,t,i){return b.slice.call(e,t,i)}function w(e,t,i){e&&y(t,(t=>{t&&e.classList[i?"add":"remove"](t)}))}function S(e,t){w(e,h(t)?t.split(" "):t,!0)}function E(e,t){y(t,e.appendChild.bind(e))}function C(e,t){y(e,(e=>{const i=t.parentNode;i&&i.insertBefore(e,t)}))}function k(e,t){return m(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function x(e,t){return e?T(e.children).filter((e=>k(e,t))):[]}function I(e,t){return t?x(e,t)[0]:e.firstElementChild}function A(e,t,i){if(e){let n=Object.keys(e);n=i?n.reverse():n;for(let i=0;i<n.length;i++){const s=n[i];if("__proto__"!==s&&!1===t(e[s],s))break}}return e}function O(e){return T(arguments,1).forEach((t=>{A(t,((i,n)=>{e[n]=t[n]}))})),e}function P(e,t){return A(t,((t,i)=>{d(t)?e[i]=t.slice():u(t)?e[i]=P(u(e[i])?e[i]:{},t):e[i]=t})),e}function L(e,t){e&&y(t,(t=>{e.removeAttribute(t)}))}function D(e,t,i){u(t)?A(t,((t,i)=>{D(e,i,t)})):f(i)?L(e,t):e.setAttribute(t,String(i))}function M(e,t,i){const n=document.createElement(e);return t&&(h(t)?S(n,t):D(n,t)),i&&E(i,n),n}function N(e,t,i){if(p(i))return getComputedStyle(e)[t];if(!f(i)){const{style:n}=e;i=`${i}`,n[t]!==i&&(n[t]=i)}}function R(e,t){N(e,"display",t)}function F(e,t){return e.getAttribute(t)}function B(e,t){return e&&e.classList.contains(t)}function U(e){return e.getBoundingClientRect()}function j(e){y(e,(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}))}function $(e){return I((new DOMParser).parseFromString(e,"text/html").body)}function q(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function V(e,t){return e&&e.querySelector(t)}function H(e,t){return T(e.querySelectorAll(t))}function z(e,t){w(e,t,!1)}function W(e){return h(e)?e:e?`${e}px`:""}function G(e,t=""){if(!e)throw new Error(`[${o}] ${t}`)}function X(e){setTimeout(e)}const K=()=>{};function Y(e){return requestAnimationFrame(e)}const{min:Q,max:J,floor:Z,ceil:ee,abs:te}=Math;function ie(e,t,i,n){const s=Q(t,i),r=J(t,i);return n?s<e&&e<r:s<=e&&e<=r}function ne(e,t,i){const n=Q(t,i),s=J(t,i);return Q(J(n,e),s)}function se(e){return+(e>0)-+(e<0)}function re(e,t){return y(t,(t=>{e=e.replace("%s",`${t}`)})),e}function oe(e){return e<10?`0${e}`:`${e}`}const ae={};const le="mounted",ce="ready",ue="move",de="moved",he="shifted",pe="click",fe="visible",me="hidden",ge="slide:keydown",ye="refresh",_e="updated",ve="resize",be="resized",Te="repositioned",we="scroll",Se="scrolled",Ee="destroy",Ce="navigation:mounted",ke="lazyload:loaded";function xe(e){const{event:t}=e,i={};let n=[];function s(e,t,i){r(e,t,((e,t)=>{n=n.filter((n=>!!(n[0]!==e||n[1]!==t||i&&n[2]!==i)||(e.removeEventListener(t,n[2],n[3]),!1)))}))}function r(e,t,i){y(e,(e=>{e&&t.split(" ").forEach(i.bind(null,e))}))}function o(){n=n.filter((e=>s(e[0],e[1]))),t.offBy(i)}return t.on(Ee,o,i),{on:function(e,n,s){t.on(e,n,i,s)},off:function(e){t.off(e,i)},emit:t.emit,bind:function(e,t,i,s){r(e,t,((e,t)=>{n.push([e,t,i,s]),e.addEventListener(t,i,s)}))},unbind:s,destroy:o}}function Ie(e,t,i,n){const{now:s}=Date;let r,o,a=0,l=!0,c=0;function u(){if(!l){const o=s()-r;if(o>=e?(a=1,r=s()):a=o/e,i&&i(a),1===a&&(t(),n&&++c>=n))return d();Y(u)}}function d(){l=!0}function h(){cancelAnimationFrame(o),a=0,o=0,l=!0}return{start:function(t){!t&&h(),r=s()-(t?a*e:0),l=!1,Y(u)},rewind:function(){r=s(),a=0,i&&i(a)},pause:d,cancel:h,set:function(t){e=t},isPaused:function(){return l}}}function Ae(e,t){let i;return function(){i||(i=Ie(0,(()=>{e.apply(this,arguments),i=null}),null,1),i.start())}}const Oe="ttb",Pe={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};const Le=o,De=`${o}__slider`,Me=`${o}__track`,Ne=`${o}__list`,Re=`${o}__slide`,Fe=`${Re}--clone`,Be=`${Re}__container`,Ue=`${o}__arrows`,je=`${o}__arrow`,$e=`${je}--prev`,qe=`${je}--next`,Ve=`${o}__pagination`,He=`${o}__progress`,ze=`${He}__bar`,We=`${o}__autoplay`,Ge=`${o}__play`,Xe=`${o}__pause`,Ke="is-active",Ye="is-prev",Qe="is-next",Je="is-visible",Ze="is-loading",et=[Ke,Je,Ye,Qe,Ze],tt={slide:Re,clone:Fe,arrows:Ue,arrow:je,prev:$e,next:qe,pagination:Ve,page:`${Ve}__page`,spinner:`${o}__spinner`};const it="role",nt="aria-controls",st="aria-current",rt="aria-label",ot="aria-hidden",at="tabindex",lt="aria-orientation",ct=[it,nt,st,rt,ot,lt,at,"disabled"],ut="slide",dt="loop",ht="fade";function pt(e,t,i,n){const{on:s,emit:r,bind:o,destroy:a}=xe(e),{Components:l,root:c,options:u}=e,{isNavigation:d,updateOnMove:h}=u,{resolve:p}=l.Direction,f=F(n,"style"),m=i>-1,g=I(n,`.${Be}`),y=u.focusableNodes&&H(n,u.focusableNodes);let _;function v(){const s=m?i:t,r=re(u.i18n.slideX,s+1),o=e.splides.map((e=>e.splide.root.id)).join(" ");D(n,rt,r),D(n,nt,o),D(n,it,"menuitem"),S(E())}function b(){_||T()}function T(){if(!_){const{index:i}=e;S(E()),function(e){const t=!e&&(!E()||m);D(n,ot,t||null),D(n,at,!t&&u.slideFocus?0:null),y&&y.forEach((e=>{D(e,at,t?-1:null)}));e!==B(n,Je)&&(w(n,Je,e),r(e?fe:me,C))}(function(){if(e.is(ht))return E();const t=U(l.Elements.track),i=U(n),s=p("left"),r=p("right");return Z(t[s])<=ee(i[s])&&Z(i[r])<=ee(t[r])}()),w(n,Ye,t===i-1),w(n,Qe,t===i+1)}}function S(e){e!==B(n,Ke)&&(w(n,Ke,e),d&&D(n,st,e||null),r(e?"active":"inactive",C))}function E(){const{index:n}=e;return n===t||u.cloneStatus&&n===i}const C={index:t,slideIndex:i,slide:n,container:g,isClone:m,mount:function(){m||(n.id=`${c.id}-slide${oe(t+1)}`),o(n,"click keydown",(e=>{r("click"===e.type?pe:ge,C,e)})),s([ye,Te,he,de,Se],T),s(Ce,v),h&&s(ue,b)},destroy:function(){_=!0,a(),z(n,et),L(n,ct),D(n,"style",f)},update:T,style:function(e,t,i){N(i&&g||n,e,t)},isWithin:function(i,n){let s=te(i-t);return m||!u.rewind&&!e.is(dt)||(s=Q(s,e.length-s)),s<=n}};return C}const ft=`${a}-interval`;const mt={passive:!1,capture:!0},gt="touchmove mousemove",yt="touchend touchcancel mouseup";const _t=["Left","Right","Up","Down"],vt="keydown";const bt=`${a}-lazy`,Tt=`${bt}-srcset`,wt=`[${bt}], [${Tt}]`;const St=[" ","Enter","Spacebar"];var Et=Object.freeze({__proto__:null,Options:function(e,t,i){const n=Ae(c);let s,r,o;function l(e){e&&removeEventListener("resize",n)}function c(){const t=(n=e=>e[1].matches,T(r).filter(n)[0]||[]);var n;t[0]!==o&&function(t){const n=i.breakpoints[t]||s;n.destroy?(e.options=s,e.destroy("completely"===n.destroy)):(e.state.is(5)&&(l(!0),e.mount()),e.options=n)}(o=t[0])}return{setup:function(){try{P(i,JSON.parse(F(e.root,a)))}catch(e){G(!1,e.message)}s=P({},i);const{breakpoints:t}=i;if(t){const e="min"===i.mediaQuery;r=Object.keys(t).sort(((t,i)=>e?+i-+t:+t-+i)).map((t=>[t,matchMedia(`(${e?"min":"max"}-width:${t}px)`)])),c()}},mount:function(){r&&addEventListener("resize",n)},destroy:l}},Direction:function(e,t,i){return{resolve:function(e,t){const{direction:n}=i;return Pe[e]["rtl"!==n||t?n===Oe?0:-1:1]||e},orient:function(e){return e*("rtl"===i.direction?1:-1)}}},Elements:function(e,t,i){const{on:n}=xe(e),{root:s}=e,r={},a=[];let l,u,d,h;function p(){!function(){u=I(s,`.${De}`),d=V(s,`.${Me}`),h=I(d,`.${Ne}`),G(d&&h,"A track/list element is missing."),v(a,x(h,`.${Re}:not(.${Fe})`));const e=y(`.${We}`),t=y(`.${Ue}`);O(r,{root:s,slider:u,track:d,list:h,slides:a,arrows:t,autoplay:e,prev:V(t,`.${$e}`),next:V(t,`.${qe}`),bar:V(y(`.${He}`),`.${ze}`),play:V(e,`.${Ge}`),pause:V(e,`.${Xe}`)})}(),function(){const e=s.id||(t=o,`${t}${oe(ae[t]=(ae[t]||0)+1)}`);var t;s.id=e,d.id=d.id||`${e}-track`,h.id=h.id||`${e}-list`}(),S(s,l=_())}function f(){[s,d,h].forEach((e=>{L(e,"style")})),c(a),z(s,l)}function m(){f(),p()}function g(){z(s,l),S(s,l=_())}function y(e){return I(s,e)||I(u,e)}function _(){return[`${Le}--${i.type}`,`${Le}--${i.direction}`,i.drag&&`${Le}--draggable`,i.isNavigation&&`${Le}--nav`,Ke]}return O(r,{setup:p,mount:function(){n(ye,m,8),n(_e,g)},destroy:f})},Slides:function(e,t,i){const{on:n,emit:s,bind:r}=xe(e),{slides:o,list:a}=t.Elements,l=[];function u(){o.forEach(((e,t)=>{f(e,t,-1)}))}function d(){b((e=>{e.destroy()})),c(l)}function p(){d(),u()}function f(t,i,n){const s=pt(e,i,n,t);s.mount(),l.push(s)}function v(e){return e?T((e=>!e.isClone)):l}function b(e,t){v(t).forEach(e)}function T(e){return l.filter("function"==typeof e?e:t=>h(e)?k(t.slide,e):_(g(e),t.index))}return{mount:function(){u(),n(ye,p),n([le,ye],(()=>{l.sort(((e,t)=>e.index-t.index))}))},destroy:d,update:function(){b((e=>{e.update()}))},register:f,get:v,getIn:function(e){const{Controller:n}=t,s=n.toIndex(e),r=n.hasFocus()?1:i.perPage;return T((e=>ie(e.index,s,s+r-1)))},getAt:function(e){return T(e)[0]},add:function(e,t){y(e,(e=>{if(h(e)&&(e=$(e)),m(e)){const n=o[t];n?C(e,n):E(a,e),S(e,i.classes.slide),function(e,t){const i=H(e,"img");let{length:n}=i;n?i.forEach((e=>{r(e,"load error",(()=>{--n||t()}))})):t()}(e,s.bind(null,ve))}})),s(ye)},remove:function(e){j(T(e).map((e=>e.slide))),s(ye)},forEach:b,filter:T,style:function(e,t,i){b((n=>{n.style(e,t,i)}))},getLength:function(e){return e?o.length:l.length},isEnough:function(){return l.length>i.perPage}}},Layout:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{Slides:o}=t,{resolve:a}=t.Direction,{root:l,track:c,list:d}=t.Elements,{getAt:h}=o;let p,f;function m(){f=null,p=i.direction===Oe,N(l,"maxWidth",W(i.width)),N(c,a("paddingLeft"),y(!1)),N(c,a("paddingRight"),y(!0)),g()}function g(){const e=U(l);f&&f.width===e.width&&f.height===e.height||(N(c,"height",function(){let e="";p&&(e=_(),G(e,"height or heightRatio is missing."),e=`calc(${e} - ${y(!1)} - ${y(!0)})`);return e}()),o.style(a("marginRight"),W(i.gap)),o.style("width",(i.autoWidth?"":W(i.fixedWidth)||(p?"":v()))||null),o.style("height",W(i.fixedHeight)||(p?i.autoHeight?"":v():_())||null,!0),f=e,r(be))}function y(e){const{padding:t}=i,n=a(e?"right":"left");return t&&W(t[n]||(u(t)?0:t))||"0px"}function _(){return W(i.height||U(d).width*i.heightRatio)}function v(){const e=W(i.gap);return`calc((100%${e&&` + ${e}`})/${i.perPage||1}${e&&` - ${e}`})`}function b(e,t){const i=h(e);if(i){const e=U(i.slide)[a("right")],n=U(d)[a("left")];return te(e-n)+(t?0:T())}return 0}function T(){const e=h(0);return e&&parseFloat(N(e.slide,a("marginRight")))||0}return{mount:function(){m(),s(window,"resize load",Ae(r.bind(this,ve))),n([_e,ye],m),n(ve,g)},listSize:function(){return U(d)[a("width")]},slideSize:function(e,t){const i=h(e||0);return i?U(i.slide)[a("width")]+(t?0:T()):0},sliderSize:function(){return b(e.length-1,!0)-b(-1,!0)},totalSize:b,getPadding:function(e){return parseFloat(N(c,a("padding"+(e?"Right":"Left"))))||0}}},Clones:function(e,t,i){const{on:n,emit:s}=xe(e),{Elements:r,Slides:o}=t,{resolve:a}=t.Direction,l=[];let u;function d(){(u=g())&&(!function(t){const n=o.get().slice(),{length:s}=n;if(s){for(;n.length<t;)v(n,n);v(n.slice(-t),n.slice(0,t)).forEach(((a,c)=>{const u=c<t,d=function(t,n){const s=t.cloneNode(!0);return S(s,i.classes.clone),s.id=`${e.root.id}-clone${oe(n+1)}`,s}(a.slide,c);u?C(d,n[0].slide):E(r.list,d),v(l,d),o.register(d,c-t+(u?0:s),a.index)}))}}(u),s(ve))}function p(){j(l),c(l)}function f(){p(),d()}function m(){u<g()&&s(ye)}function g(){let{clones:t}=i;if(e.is(dt)){if(!t){const n=function(e,t){if(h(t)){const i=M("div",{style:`width: ${t}; position: absolute;`},e);t=U(i).width,j(i)}return t}(r.list,i[a("fixedWidth")]);t=(n&&ee(U(r.track)[a("width")]/n)||i[a("autoWidth")]&&e.length||i.perPage)*(i.drag?(i.flickMaxPages||1)+1:2)}}else t=0;return t}return{mount:function(){d(),n(ye,f),n([_e,ve],m)},destroy:p}},Move:function(e,t,i){const{on:n,emit:s}=xe(e),{slideSize:r,getPadding:o,totalSize:a,listSize:l,sliderSize:c}=t.Layout,{resolve:u,orient:d}=t.Direction,{list:h,track:f}=t.Elements;let m;function g(){S()||(t.Scroll.cancel(),y(e.index),s(Te))}function y(e){_(b(e,!0))}function _(t,i){if(!e.is(ht)){const n=i?t:function(t){if(e.is(dt)){const e=d(t-T()),i=E(!1,t)&&e<0,n=E(!0,t)&&e>0;(i||n)&&(t=v(t,n))}return t}(t);h.style.transform=`translate${u("X")}(${n}px)`,t!==n&&s(he)}}function v(e,t){const i=e-w(t),n=c();return e-=d(n*(ee(te(i)/n)||1))*(t?1:-1)}function b(t,n){const s=d(a(t-1)-function(e){const{focus:t}=i;return"center"===t?(l()-r(e,!0))/2:+t*r(e)||0}(t));return n?function(t){i.trimSpace&&e.is(ut)&&(t=ne(t,0,d(c()-l())));return t}(s):s}function T(){const e=u("left");return U(h)[e]-U(f)[e]+d(o(!1))}function w(e){return b(e?t.Controller.getEnd():0,!!i.trimSpace)}function S(){return e.state.is(4)&&i.waitForTransition}function E(e,t){t=p(t)?T():t;const i=!0!==e&&d(t)<d(w(!1)),n=!1!==e&&d(t)>d(w(!0));return i||n}return{mount:function(){m=t.Transition,n([le,be,_e,ye],g)},destroy:function(){L(h,"style")},move:function(n,r,o,a){if(!S()){const{set:l}=e.state,c=T();n!==r&&(m.cancel(),_(v(c,n>r),!0)),l(4),s(ue,r,o,n),m.start(r,(()=>{l(3),s(de,r,o,n),"move"===i.trimSpace&&n!==o&&c===T()?t.Controller.go(n>o?">":"<",!1,a):a&&a()}))}},jump:y,translate:_,shift:v,cancel:function(){_(T()),m.cancel()},toIndex:function(e){const i=t.Slides.get();let n=0,s=1/0;for(let t=0;t<i.length;t++){const r=i[t].index,o=te(b(r,!0)-e);if(!(o<=s))break;s=o,n=r}return n},toPosition:b,getPosition:T,getLimit:w,isBusy:S,exceededLimit:E}},Controller:function(e,t,i){const{on:n}=xe(e),{Move:s}=t,{getPosition:r,getLimit:o}=s,{isEnough:a,getLength:l}=t.Slides,c=e.is(dt),u=e.is(ut);let d,f,m,g=i.start||0,y=g;function _(){d=l(!0),f=i.perMove,m=i.perPage,g=ne(g,0,d-1)}function v(e,i,n,r,o){const a=i?e:I(e);t.Scroll.scroll(i||n?s.toPosition(a,!0):e,r,(()=>{A(s.toIndex(s.getPosition())),o&&o()}))}function b(e){return w(!1,e)}function T(e){return w(!0,e)}function w(e,t){const i=f||(O()?1:m),n=S(g+i*(e?-1:1),g);return-1!==n||!u||(s=r(),a=o(!e),l=1,te(s-a)<l)?t?n:C(n):e?0:E();var s,a,l}function S(e,t,n){if(a()){const s=E();e<0||e>s?e=ie(0,e,t,!0)||ie(s,t,e,!0)?k(x(e)):c?f||O()?e:e<0?-(d%m||m):d:i.rewind?e<0?s:0:-1:n||e===t||(e=f?e:k(x(t)+(e<t?-1:1)))}else e=-1;return e}function E(){let e=d-m;return(O()||c&&f)&&(e=d-1),J(e,0)}function C(e){return c?a()?e%d+(e<0?d:0):-1:e}function k(e){return ne(O()?e:m*e,0,E())}function x(e){return O()||(e=ie(e,d-m,d-1)?d-1:e,e=Z(e/m)),e}function I(e){const t=s.toIndex(e);return u?ne(t,0,E()):t}function A(e){e!==g&&(y=g,g=e)}function O(){return!p(i.focus)||i.isNavigation}return{mount:function(){_(),n([_e,ye],_,9)},go:function(e,t,n){const r=function(e){let t=g;if(h(e)){const[,i,n]=e.match(/([+\-<>])(\d+)?/)||[];"+"===i||"-"===i?t=S(g+ +`${i}${+n||1}`,g,!0):">"===i?t=n?k(+n):b(!0):"<"===i&&(t=T(!0))}else t=c?e:ne(e,0,E());return t}(e);if(i.useScroll)v(r,!0,!0,i.speed,n);else{const e=C(r);e>-1&&!s.isBusy()&&(t||e!==g)&&(A(e),s.move(r,e,y,n))}},scroll:v,getNext:b,getPrev:T,getAdjacent:w,getEnd:E,setIndex:A,getIndex:function(e){return e?y:g},toIndex:k,toPage:x,toDest:I,hasFocus:O}},Arrows:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{classes:o,i18n:a}=i,{Elements:l,Controller:c}=t;let u,d=l.arrows,h=l.prev,p=l.next;const f={};function m(){if(i.arrows&&(h&&p||(d=M("div",o.arrows),h=g(!0),p=g(!1),u=!0,E(d,[h,p]),C(d,I("slider"===i.arrows&&l.slider||e.root)))),h&&p)if(f.prev)R(d,!1===i.arrows?"none":"");else{const{id:e}=l.track;D(h,nt,e),D(p,nt,e),f.prev=h,f.next=p,function(){const{go:e}=c;n([le,de,_e,ye,Se],y),s(p,"click",(()=>{e(">",!0)})),s(h,"click",(()=>{e("<",!0)}))}(),r("arrows:mounted",h,p)}}function g(e){return $(`<button class="${o.arrow} ${e?o.prev:o.next}" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="${i.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"}" />`)}function y(){const t=e.index,i=c.getPrev(),n=c.getNext(),s=i>-1&&t<i?a.last:a.prev,o=n>-1&&t>n?a.first:a.next;h.disabled=i<0,p.disabled=n<0,D(h,rt,s),D(p,rt,o),r("arrows:updated",h,p,i,n)}return{arrows:f,mount:function(){m(),n(_e,m)},destroy:function(){u?j(d):(L(h,ct),L(p,ct))}}},Autoplay:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),o=Ie(i.interval,e.go.bind(e,">"),(function(e){const{bar:t}=l;t&&N(t,"width",100*e+"%"),r("autoplay:playing",e)})),{isPaused:a}=o,{Elements:l}=t;let c,u,d;function h(e){const t=e?"pause":"play",n=l[t];n&&(D(n,nt,l.track.id),D(n,rt,i.i18n[t]),s(n,"click",e?f:p))}function p(){a()&&t.Slides.isEnough()&&(o.start(!i.resetProgress),u=c=d=!1,r("autoplay:play"))}function f(e=!0){a()||(o.pause(),r("autoplay:pause")),d=e}function m(){d||(c||u?f(!1):p())}function g(){const n=t.Slides.getAt(e.index);o.set(n&&+F(n.slide,ft)||i.interval)}return{mount:function(){const{autoplay:e}=i;e&&(h(!0),h(!1),function(){const{root:e}=l;i.pauseOnHover&&s(e,"mouseenter mouseleave",(e=>{c="mouseenter"===e.type,m()}));i.pauseOnFocus&&s(e,"focusin focusout",(e=>{u="focusin"===e.type,m()}));n([ue,we,ye],o.rewind),n(ue,g)}(),"pause"!==e&&p())},destroy:o.cancel,play:p,pause:f,isPaused:a}},Cover:function(e,t,i){const{on:n}=xe(e);function s(e){t.Slides.forEach((t=>{const i=I(t.container||t.slide,"img");i&&i.src&&r(e,i,t)}))}function r(e,t,i){i.style("background",e?`center/cover no-repeat url("${t.src}")`:"",!0),R(t,e?"none":"")}return{mount:function(){i.cover&&(n(ke,((e,t)=>{r(!0,e,t)})),n([le,_e,ye],s.bind(null,!0)))},destroy:function(){s(!1)}}},Scroll:function(e,t,i){const{on:n,emit:s}=xe(e),{Move:r}=t,{getPosition:o,getLimit:a,exceededLimit:l}=r;let c,u;function d(t,n,f,m){const g=o();let y=1;var _;n=n||(_=te(t-g),J(_/1.5,800)),u=f,p(),c=Ie(n,h,(n=>{const s=o(),c=(g+(t-g)*function(e){const{easingFunc:t}=i;return t?t(e):1-Math.pow(1-e,4)}(n)-o())*y;var u;r.translate(s+c),e.is(ut)&&!m&&l()&&(y*=.6,te(c)<10&&(u=l(!1),d(a(!u),600,null,!0)))}),1),s(we),c.start()}function h(){const t=o(),i=r.toIndex(t);ie(i,0,e.length-1)||r.translate(r.shift(t,i>0),!0),u&&u(),s(Se)}function p(){c&&c.cancel()}function f(){c&&!c.isPaused()&&(p(),h())}return{mount:function(){n(ue,p),n([_e,ye],f)},destroy:p,scroll:d,cancel:f}},Drag:function(e,t,i){const{on:n,emit:s,bind:r,unbind:o}=xe(e),{Move:a,Scroll:l,Controller:c}=t,{track:d}=t.Elements,{resolve:h,orient:p}=t.Direction,{getPosition:f,exceededLimit:m}=a;let g,y,_,v,b,T,w,S,E,C=!1;function x(){const{drag:e}=i;F(!e),b="free"===e}function I(e){if(!S){const{noDrag:t}=i,n=R(e),s=!t||!k(e.target,t);w=!1,!s||!n&&e.button||(a.isBusy()?q(e,!0):(E=n?d:window,_=null,v=null,r(E,gt,A,mt),r(E,yt,O,mt),a.cancel(),l.cancel(),P(e)))}}function A(t){if(v||s("drag"),v=t,t.cancelable){const n=M(t)-M(y);if(T){a.translate(g+function(t){return t/(C&&e.is(ut)?5:1)}(n));const i=N(t)-N(y)>200,r=C!==(C=m());(i||r)&&P(t),s("dragging"),w=!0,q(t)}else{let{dragMinThreshold:e}=i;e=u(e)?e:{mouse:0,touch:+e||10},T=te(n)>(R(t)?e.touch:e.mouse),D()&&q(t)}}}function O(n){o(E,gt,A),o(E,yt,O);const{index:r}=e;if(v){if(T||n.cancelable&&D()){const s=function(t){if(e.is(dt)||!C){const e=y===v&&_||y,i=M(v)-M(e),n=N(t)-N(e),s=N(t)-N(v)<200;if(n&&s)return i/n}return 0}(n),o=function(e){return f()+se(e)*Q(te(e)*(i.flickPower||600),b?1/0:t.Layout.listSize()*(i.flickMaxPages||1))}(s);b?c.scroll(o):e.is(ht)?c.go(r+p(se(s))):c.go(c.toDest(o),!0),q(n)}s("dragged")}else b||f()===a.toPosition(r)||c.go(r,!0);T=!1}function P(e){_=y,y=e,g=f()}function L(e){!S&&w&&q(e,!0)}function D(){return te(M(v)-M(y))>te(M(v,!0)-M(y,!0))}function M(e,t){return(R(e)?e.touches[0]:e)[`page${h(t?"Y":"X")}`]}function N(e){return e.timeStamp}function R(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function F(e){S=e}return{mount:function(){r(d,gt,K,mt),r(d,yt,K,mt),r(d,"touchstart mousedown",I,mt),r(d,"click",L,{capture:!0}),r(d,"dragstart",q),n([le,_e],x)},disable:F,isDragging:function(){return T}}},Keyboard:function(e,t,i){const{on:n,bind:s,unbind:r}=xe(e),{root:o}=e,{resolve:a}=t.Direction;let l,c;function u(){const{keyboard:e}=i;e&&("focused"===e?(l=o,D(o,at,0)):l=window,s(l,vt,f))}function d(){r(l,vt),m(l)&&L(l,at)}function h(){const e=c;c=!0,X((()=>{c=e}))}function p(){d(),u()}function f(t){if(!c){const{key:i}=t,n=_(_t,i)?`Arrow${i}`:i;n===a("ArrowLeft")?e.go("<"):n===a("ArrowRight")&&e.go(">")}}return{mount:function(){u(),n(_e,p),n(ue,h)},destroy:d,disable:function(e){c=e}}},LazyLoad:function(e,t,i){const{on:n,off:s,bind:r,emit:o}=xe(e),a="sequential"===i.lazyLoad;let l=[],c=0;function u(){h(),d()}function d(){t.Slides.forEach((e=>{H(e.slide,wt).forEach((t=>{const n=F(t,bt),s=F(t,Tt);if(n!==t.src||s!==t.srcset){const r=i.classes.spinner,o=t.parentElement,a=I(o,`.${r}`)||M("span",r,o);D(a,it,"presentation"),l.push({_img:t,_Slide:e,src:n,srcset:s,_spinner:a}),!t.src&&R(t,"none")}}))})),a&&m()}function h(){c=0,l=[]}function p(){l=l.filter((t=>{const n=i.perPage*((i.preloadPages||1)+1)-1;return!t._Slide.isWithin(e.index,n)||f(t)})),l.length||s(de)}function f(e){const{_img:t}=e;S(e._Slide.slide,Ze),r(t,"load error",(t=>{!function(e,t){const{_Slide:i}=e;z(i.slide,Ze),t||(j(e._spinner),R(e._img,""),o(ke,e._img,i),o(ve));a&&m()}(e,"error"===t.type)})),["srcset","src"].forEach((i=>{e[i]&&(D(t,i,e[i]),L(t,"src"===i?bt:Tt))}))}function m(){c<l.length&&f(l[c++])}return{mount:function(){i.lazyLoad&&(d(),n(ye,u),a||n([le,ye,de,Se],p))},destroy:h}},Pagination:function(e,t,i){const{on:n,emit:s,bind:r,unbind:o}=xe(e),{Slides:a,Elements:l,Controller:u}=t,{hasFocus:d,getIndex:h}=u,p=[];let f;function m(){g(),i.pagination&&a.isEnough()&&(!function(){const{length:t}=e,{classes:n,i18n:s,perPage:o}=i,c="slider"===i.pagination&&l.slider||l.root,u=d()?t:ee(t/o);f=M("ul",n.pagination,c);for(let e=0;e<u;e++){const t=M("li",null,f),i=M("button",{class:n.page,type:"button"},t),l=a.getIn(e).map((e=>e.slide.id)),c=!d()&&o>1?s.pageX:s.slideX;r(i,"click",y.bind(null,e)),D(i,nt,l.join(" ")),D(i,rt,re(c,e+1)),p.push({li:t,button:i,page:e})}}(),s("pagination:mounted",{list:f,items:p},_(e.index)),v())}function g(){f&&(j(f),p.forEach((e=>{o(e.button,"click")})),c(p),f=null)}function y(e){u.go(`>${e}`,!0,(()=>{const t=a.getAt(u.toIndex(e));var i;t&&((i=t.slide).setActive&&i.setActive()||i.focus({preventScroll:!0}))}))}function _(e){return p[u.toPage(e)]}function v(){const e=_(h(!0)),t=_(h());e&&(z(e.button,Ke),L(e.button,st)),t&&(S(t.button,Ke),D(t.button,st,!0)),s("pagination:updated",{list:f,items:p},e,t)}return{items:p,mount:function(){m(),n([_e,ye],m),n([ue,Se],v)},destroy:g,getAt:_,update:v}},Sync:function(e,t,i){const{list:n}=t.Elements,s=[];function r(){e.splides.forEach((t=>{var i;!t.isParent&&(i=t.splide,[e,i].forEach((t=>{const n=xe(t),r=t===e?i:e;n.on(ue,((e,t,i)=>{r.go(r.is(dt)?i:e)})),s.push(n)})))})),i.isNavigation&&function(){const t=xe(e),{on:i}=t;i(pe,l),i(ge,u),i([le,_e],a),D(n,it,"menu"),s.push(t),t.emit(Ce,e.splides)}()}function o(){L(n,ct),s.forEach((e=>{e.destroy()})),c(s)}function a(){D(n,lt,i.direction!==Oe?"horizontal":null)}function l(t){e.go(t.index)}function u(e,t){_(St,t.key)&&(l(e),q(t))}return{mount:r,destroy:o,remount:function(){o(),r()}}},Wheel:function(e,t,i){const{bind:n}=xe(e);function s(n){if(n.cancelable){const{deltaY:s}=n;if(s){const r=s<0;e.go(r?"<":">"),function(n){return!i.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(n)}(r)&&q(n)}}}return{mount:function(){i.wheel&&n(t.Elements.track,"wheel",s,mt)}}}});const Ct={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:tt,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function kt(e,t,i){const{on:n}=xe(e);return{mount:function(){n([le,ye],(()=>{X((()=>{t.Slides.style("transition",`opacity ${i.speed}ms ${i.easing}`)}))}))},start:function(e,i){const{track:n}=t.Elements;N(n,"height",W(U(n).height)),X((()=>{i(),N(n,"height","")}))},cancel:K}}function xt(e,t,i){const{bind:n}=xe(e),{Move:s,Controller:r}=t,{list:o}=t.Elements;let a;function l(){c("")}function c(e){N(o,"transition",e)}return{mount:function(){n(o,"transitionend",(e=>{e.target===o&&a&&(l(),a())}))},start:function(t,n){const o=s.toPosition(t,!0),l=s.getPosition(),u=function(t){const{rewindSpeed:n}=i;if(e.is(ut)&&n){const e=r.getIndex(!0),i=r.getEnd();if(0===e&&t>=i||e>=i&&0===t)return n}return i.speed}(t);te(o-l)>=1&&u>=1?(c(`transform ${u}ms ${i.easing}`),s.translate(o,!0),a=n):(s.jump(t),n())},cancel:l}}const It=class{constructor(e,t){this.event=function(){let e={};function t(t,n){i(t,((t,i)=>{const s=e[t];e[t]=s&&s.filter((e=>e._key?e._key!==n:n||e._namespace!==i))}))}function i(e,t){g(e).join(" ").split(" ").forEach((e=>{const i=e.split(".");t(i[0],i[1])}))}return{on:function(t,n,s,r=10){i(t,((t,i)=>{e[t]=e[t]||[],v(e[t],{_event:t,_callback:n,_namespace:i,_priority:r,_key:s}).sort(((e,t)=>e._priority-t._priority))}))},off:t,offBy:function(i){A(e,((e,n)=>{t(n,i)}))},emit:function(t){(e[t]||[]).forEach((e=>{e._callback.apply(e,T(arguments,1))}))},destroy:function(){e={}}}}(),this.Components={},this.state=function(e){let t=e;return{set:function(e){t=e},is:function(e){return _(g(e),t)}}}(1),this.splides=[],this._options={},this._Extensions={};const i=h(e)?V(document,e):e;G(i,`${i} is invalid.`),this.root=i,P(Ct,It.defaults),P(P(this._options,Ct),t||{})}mount(e,t){const{state:i,Components:n}=this;G(i.is([1,5]),"Already mounted!"),i.set(1),this._Components=n,this._Transition=t||this._Transition||(this.is(ht)?kt:xt),this._Extensions=e||this._Extensions;return A(O({},Et,this._Extensions,{Transition:this._Transition}),((e,t)=>{const i=e(this,n,this._options);n[t]=i,i.setup&&i.setup()})),A(n,(e=>{e.mount&&e.mount()})),this.emit(le),S(this.root,"is-initialized"),i.set(3),this.emit(ce),this}sync(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._Components.Sync.remount(),e.Components.Sync.remount()),this}go(e){return this._Components.Controller.go(e),this}on(e,t){return this.event.on(e,t,null,20),this}off(e){return this.event.off(e),this}emit(e){return this.event.emit(e,...T(arguments,1)),this}add(e,t){return this._Components.Slides.add(e,t),this}remove(e){return this._Components.Slides.remove(e),this}is(e){return this._options.type===e}refresh(){return this.emit(ye),this}destroy(e=!0){const{event:t,state:i}=this;return i.is(1)?t.on(ce,this.destroy.bind(this,e),this):(A(this._Components,(t=>{t.destroy&&t.destroy(e)}),!0),t.emit(Ee),t.destroy(),e&&c(this.splides),i.set(5)),this}get options(){return this._options}set options(e){const{_options:t}=this;P(t,e),this.state.is(1)||this.emit(_e,t)}get length(){return this._Components.Slides.getLength(!0)}get index(){return this._Components.Controller.getIndex()}};let At=It;At.defaults={},At.STATES=l;const Ot=new Map,Pt={set(e,t,i){Ot.has(e)||Ot.set(e,new Map);const n=Ot.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>Ot.has(e)&&Ot.get(e).get(t)||null,remove(e,t){if(!Ot.has(e))return;const i=Ot.get(e);i.delete(t),0===i.size&&Ot.delete(e)}},Lt="transitionend",Dt=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t},Mt=e=>{const t=Dt(e);return t&&document.querySelector(t)?t:null},Nt=e=>{const t=Dt(e);return t?document.querySelector(t):null},Rt=e=>{e.dispatchEvent(new Event(Lt))},Ft=e=>!(!e||"object"!=typeof e)&&void 0!==e.nodeType,Bt=e=>Ft(e)?e:"string"==typeof e&&e.length>0?document.querySelector(e):null,Ut=e=>{if(!Ft(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},jt=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),$t=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?$t(e.parentNode):null},qt=()=>{},Vt=e=>{e.offsetHeight},Ht=()=>"undefined"!=typeof window&&"undefined"!=typeof document&&"rtl"===document.documentElement.dir,zt=e=>{"function"==typeof e&&e()},Wt=(e,t,i=!0)=>{if(!i)return void zt(e);const n=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let s=!1;const r=({target:i})=>{i===t&&(s=!0,t.removeEventListener(Lt,r),zt(e))};t.addEventListener(Lt,r),setTimeout((()=>{s||Rt(t)}),n)},Gt=(e,t,i,n)=>{const s=e.length;let r=e.indexOf(t);return-1===r?!i&&n?e[s-1]:e[0]:(r+=i?1:-1,n&&(r=(r+s)%s),e[Math.max(0,Math.min(r,s-1))])},Xt=/[^.]*(?=\..*)\.|.*/,Kt=/\..*/,Yt=/::\d+$/,Qt={};let Jt=1;const Zt={mouseenter:"mouseover",mouseleave:"mouseout"},ei=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 ti(e,t){return t&&`${t}::${Jt++}`||e.uidEvent||Jt++}function ii(e){const t=ti(e);return e.uidEvent=t,Qt[t]=Qt[t]||{},Qt[t]}function ni(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function si(e,t,i){const n="string"==typeof t,s=n?i:t||i;let r=function(e){return e=e.replace(Kt,""),Zt[e]||e}(e);return ei.has(r)||(r=e),[n,s,r]}function ri(e,t,i,n,s){if("string"!=typeof t||!e)return;let[r,o,a]=si(t,i,n);if(t in Zt){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};o=e(o)}const l=ii(e),c=l[a]||(l[a]={}),u=ni(c,o,r?i:null);if(u)return void(u.oneOff=u.oneOff&&s);const d=ti(o,t.replace(Xt,"")),h=r?function(e,t,i){return function n(s){const r=e.querySelectorAll(t);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return ci(s,{delegateTarget:o}),n.oneOff&&li.off(e,s.type,t,i),i.apply(o,[s])}}(e,i,o):function(e,t){return function i(n){return ci(n,{delegateTarget:e}),i.oneOff&&li.off(e,n.type,t),t.apply(e,[n])}}(e,o);h.delegationSelector=r?i:null,h.callable=o,h.oneOff=s,h.uidEvent=d,c[d]=h,e.addEventListener(a,h,r)}function oi(e,t,i,n,s){const r=ni(t[i],n,s);r&&(e.removeEventListener(i,r,Boolean(s)),delete t[i][r.uidEvent])}function ai(e,t,i,n){const s=t[i]||{};for(const r of Object.keys(s))if(r.includes(n)){const n=s[r];oi(e,t,i,n.callable,n.delegationSelector)}}const li={on(e,t,i,n){ri(e,t,i,n,!1)},one(e,t,i,n){ri(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,r,o]=si(t,i,n),a=o!==t,l=ii(e),c=l[o]||{},u=t.startsWith(".");if(void 0===r){if(u)for(const i of Object.keys(l))ai(e,l,i,t.slice(1));for(const i of Object.keys(c)){const n=i.replace(Yt,"");if(!a||t.includes(n)){const t=c[i];oi(e,l,o,t.callable,t.delegationSelector)}}}else{if(!Object.keys(c).length)return;oi(e,l,o,r,s?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;let n=new Event(t,{bubbles:!0,cancelable:!0});return n=ci(n,i),e.dispatchEvent(n),n}};function ci(e,t){for(const[i,n]of Object.entries(t||{}))try{e[i]=n}catch{Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function ui(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function di(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const hi={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${di(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${di(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=ui(e.dataset[n])}return t},getDataAttribute:(e,t)=>ui(e.getAttribute(`data-bs-${di(t)}`))};let pi=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=Ft(t)?hi.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Ft(t)?hi.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const n of Object.keys(t)){const s=t[n],r=e[n],o=Ft(r)?"element":null==(i=r)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}};class fi extends pi{constructor(e,t){super(),(e=Bt(e))&&(this._element=e,this._config=this._getConfig(t),Pt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Pt.remove(this._element,this.constructor.DATA_KEY),li.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){Wt(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Pt.get(Bt(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.2.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const mi={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!jt(e)&&Ut(e)))}},gi={slideFocus:!0,i18n:{prev:"Slide precedente",next:"Slide successiva",first:"Vai alla prima slide",last:"Vai all’ultima slide",slideX:"Vai alla slide %s",pageX:"Vai a pagina %s",play:"Attiva autoplay",pause:"Pausa autoplay"}},yi={"it-carousel-landscape-abstract-three-cols":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!1}}},"it-carousel-landscape-abstract-three-cols-arrow-visible":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!0,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!0},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!0}}},"it-big-img":{type:"loop",perPage:1,gap:48,padding:{left:320,right:320},arrows:!1,breakpoints:{768:{perPage:1,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:160,right:160},arrows:!1}}},"it-standard-image":{type:"loop",perPage:3,gap:24,padding:{left:48,right:48},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!1},992:{perPage:2,gap:24,padding:{left:48,right:48},arrows:!1}}},"it-carousel-landscape-abstract":{type:"slide",perPage:1,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:24,right:24},arrows:!1}}},"it-calendar-wrapper":{type:"slide",perPage:4,gap:0,padding:{left:0,right:0},arrows:!1,breakpoints:{560:{perPage:1,gap:0,padding:{left:24,right:24},arrows:!1},768:{perPage:2,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:3,gap:0,padding:{left:0,right:0},arrows:!1}}}};class _i extends fi{constructor(e){super(e),this._config=this._getConfig(),this._splide=new At(this._element,this._config),this._init()}dispose(){this._splide.destroy(),super.dispose()}static get NAME(){return"carousel"}_init(){this._splide.mount()}_getConfig(){let e=Object.assign({},gi);return Object.keys(yi).forEach((t=>{this._element.classList.contains(t)&&(e=Object.assign({},e,yi[t]))})),e}}"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(window,"load.bs.carousel.data-api",(()=>{mi.find("[data-bs-carousel-splide]").forEach((e=>{_i.getOrCreateInstance(e)}))}));const vi=".bs.inputlabel",bi=`focus${vi}`,Ti=`blur${vi}`,wi=`change${vi}`,Si="active";class Ei{constructor(e){this._element=e,this._init()}static get NAME(){return"inputlabel"}static getInputFromLabel=e=>{if("undefined"!=typeof window&&"undefined"!=typeof document)return document.querySelector("#"+CSS.escape(e.getAttribute("for")))};_init(){const e=this._getLabel();e&&!e.classList.contains(Si)&&(this._labelOut(),this._labelOver()),e&&null===e.getAttribute("it-bs-static")&&this._bindEvents()}_bindEvents(){["date","time"].includes(this._element.getAttribute("type"))||("file"===this._element.getAttribute("type")?li.on(this._element,Ti,(()=>{this._labelOut()})):(li.on(this._element,bi,(()=>{this._labelOut()})),li.on(this._element,Ti,(()=>{this._labelOver()})),li.on(this._element,wi,(()=>{this._labelToggle()}))))}_getLabel(){return mi.findOne('label[for="'+this._element.getAttribute("id")+'"]')}_isEmpty(){return!this._element.value&&!this._element.getAttribute("placeholder")}_labelOut(){const e=this._getLabel();e&&e.classList.add(Si)}_labelOver(){if(this._isEmpty()){const e=this._getLabel();e&&e.classList.remove(Si)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}const Ci=".bs.inputnumber",ki=`click${Ci}`,xi=`change${Ci}`,Ii=`click${Ci}.data-api`,Ai=".input-number",Oi='input[data-bs-input][type="number"]',Pi='button[class^="input-number-"]';class Li extends fi{constructor(e){super(e),this._wrapperElement=this._element.closest(Ai),this._label=new Ei(e),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(mi.find(Pi,this._wrapperElement).forEach((e=>{li.on(e,ki,(t=>{t.preventDefault(),this._incrDecr(e.classList.contains("input-number-sub")),this._label._labelOut()}))})),li.on(this._element,xi,(()=>this._checkLimit())))}_inputResize(){if(this._wrapperElement.classList.contains("input-number-adaptive")){let e=null;e="calc(70px + "+this._element.value.length+"ch)",e&&(this._element.style.width=e)}}_incrDecr(e){var t=0;if(""!==this._element.value&&(t=parseFloat(this._element.value)),!isNaN(t)){let i=parseFloat(this._element.getAttribute("step"));i||(i=1),this._element.value=t+i*(e?-1:1),li.trigger(this._element,xi),li.trigger(this._element,"input")}}_checkLimit(){const e=parseFloat(this._element.value);if(!isNaN(e)){let t=e;const i=parseFloat(this._element.getAttribute("max")),n=parseFloat(this._element.getAttribute("min"));n&&e<n&&(t=n),i&&e>i&&(t=i),this._element.value=t}this._inputResize()}}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(Oi+", label").forEach((function(e){const t=Ei.getInputFromLabel(e)||e;var i;(i=t)&&i.matches(Oi)&&i.parentNode.querySelector(Pi)&&Li.getOrCreateInstance(i)}))})),li.on(document,Ii,Pi,(function(){const e=this.closest(Ai);if(e){const t=mi.findOne(Oi,e);t&&Li.getOrCreateInstance(t)}})));const Di="show";class Mi extends fi{constructor(e){super(e),this._isShown=!e.matches("[aria-hidden=true]"),this._isTransitioning=!1}static get NAME(){return"dimmer"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(Di),this._queueCallback((()=>this._hideElement()),this._element,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),e&&Vt(this._element),this._element.classList.add(Di);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',(function(){const e=Nt(this),t=Mi.getOrCreateInstance(e);this.checked?t.show():t.hide()}));const Ni=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;li.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),jt(this))return;const s=Nt(this)||this.closest(`.${n}`);e.getOrCreateInstance(s)[t]()}))},Ri=".bs.notification",Fi=`click${Ri}.data-api`,Bi=`hidden${Ri}`,Ui=`show${Ri}`,ji={timeout:0},$i="show";class qi extends fi{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=this._element.classList.contains($i),this._isTransitioning=!1,this._toId=null}static get NAME(){return"notification"}show(e,t){if(this._isShown||this._isTransitioning)return;const i=e||this._getElementTimeout(t);this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement(i)}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove($i),this._queueCallback((()=>this._hideElement()),this._element,e)}toggle(e){this._isShown?this.hide():this.show(null,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(e){const t=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),t&&Vt(this._element),this._element.classList.add($i);this._queueCallback((()=>{this._isTransitioning=!1,e&&this._setTimeout(e,(()=>this.hide()))}),this._element,t)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}_getConfig(e){return e={...ji,...hi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_getElementTimeout(e){const t=e?parseInt(e.getAttribute("data-bs-timeout")):null;return t>0?t:this._config.timeout}_setTimeout(e,t){this._clearTimeout(),setTimeout(t,e)}_clearTimeout(){this._toId&&(clearTimeout(this._toId),this._toId=null)}}"undefined"!=typeof window&&"undefined"!=typeof document&&(li.on(document,Fi,'[data-bs-toggle="notification"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),li.one(t,Ui,(e=>{e.defaultPrevented||li.one(t,Bi,(()=>{Ut(this)&&this.focus()}))}));qi.getOrCreateInstance(t).toggle(this)})),Ni(qi));const Vi="cookiebar",Hi=".bs.cookiebar",zi=".data-api",Wi="cookies_consent",Gi=`close${Hi}`,Xi=`closed${Hi}`,Ki=`load${Hi}${zi}`,Yi=`click${Hi}${zi}`,Qi="show";class Ji extends fi{constructor(e){super(e),this._isShown=this._element.classList.contains(Qi),this._isTransitioning=!1}static get NAME(){return Vi}static get VERSION(){return"5.0.0"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(Qi),this._queueCallback((()=>this._hideElement()),this._element,e)}accept(e){e=e||this._element;const t=this._getRootElement(e);this._triggerCloseEvent(t).defaultPrevented||(this._setCookieEU(),this.hide())}static clearCookie(){"undefined"!=typeof document&&(document.cookie=Wi+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-live","polite"),e&&Vt(this._element),this._element.classList.add(Qi);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-live"),this._isTransitioning=!1}_setCookieEU(){var e=new Date;e.setDate(e.getDate()+30);var t=escape("true")+"; expires="+e.toUTCString();"undefined"!=typeof document&&(document.cookie=Wi+"="+t+"; path=/; SameSite=Strict")}_getRootElement(e){const t=Nt(e);let i=null;return t&&(i=t),i||(i=e.closest(".cookiebar")),i}_triggerCloseEvent(e){return li.trigger(e,Gi)}_removeElement(e){e.classList.remove(Qi),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-live","off"),li.trigger(e,Xi),this.dispose()}static _handleAccept(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _handleConsent(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _getCookieEU(){if("undefined"!=typeof document){var e,t,i,n=document.cookie.split(";");for(e=0;e<n.length;e++)if(t=n[e].substring(0,n[e].indexOf("=")),i=n[e].substring(n[e].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==Wi)return unescape(i)}}}"undefined"!=typeof window&&"undefined"!=typeof document&&(li.on(document,Yi,'[data-bs-accept="cookiebar"]',(function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),jt(this))return;const t=Nt(this)||this.closest(`.${Vi}`);Ji.getOrCreateInstance(t).accept()})),li.on(window,Ki,(function(){if(!Ji._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach((e=>{Ji.getOrCreateInstance(e).show()}))}})));const Zi=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches},en=(e,t)=>{let i=null;return t.forEach(((t,n)=>{t===e&&(i=n)})),i},tn=(e,t,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const n=en(e,t);let s=null;if(i.isLimit&&i.isDirectionTop&&n>0)s=t[0];else if(i.isLimit&&n<t.length-1)s=t[t.length-1];else if(i.isDirectionTop){if(!i.loop&&0===n)return;s=t[0===n?t.length-1:n-1]}else{if(!i.loop&&n===t.length-1)return;s=t[n===t.length-1?0:n+1]}s&&s.focus()},nn="pagescroll-scroll-disabled";let sn=!1,rn="undefined"==typeof document?0:document.scrollingElement.scrollTop;const on="undefined"==typeof document?null:document.querySelector("html");"undefined"!=typeof document&&document.addEventListener("scroll",(()=>{sn&&(document.scrollingElement.scrollTop=rn)}));const an=".bs.navbarcollapsible",ln=`click${an}.data-api`,cn=`click${an}`,un=`keyup${an}`,dn=`keydown${an}`,hn=`hide${an}`,pn=`hidden${an}`,fn=`show${an}`,mn=`shown${an}`,gn=`resize${an}`,yn="show",_n="expanded",vn=".close-menu",bn=".nav-link",Tn=".nav-item .list-item",wn=".it-heading-link",Sn=".it-footer-link";class En extends fi{constructor(e){super(e),this._isShown=this._element.classList.contains(_n),this._isTransitioning=!1,this._isMobile=Zi(),this._isKeyShift=!1,this._currItemIdx=0,this._btnClose=mi.findOne(".close-div button",this._element),this._btnBack=mi.findOne(".it-back-button",this._element),this._menuWrapper=mi.findOne(".menu-wrapper",this._element),this._overlay=null,this._setOverlay(),this._menuItems=mi.find([bn,Tn,wn,Sn,vn].join(","),this._element),this._bindEvents()}static get NAME(){return"navbarcollapsible"}show(e){if(this._isShown||this._isTransitioning)return;li.trigger(this._element,fn,{relatedTarget:e}).defaultPrevented||(this._btnBack&&this._btnBack.classList.add(yn),this._isShown=!0,"undefined"!=typeof document&&(sn=!0,rn=document.scrollingElement.scrollTop,on.classList.add(nn)),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;if(li.trigger(this._element,hn).defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._btnBack&&this._btnBack.classList.remove(yn),this._overlay&&this._overlay.classList.remove(yn),this._element.classList.remove(_n),"undefined"!=typeof document&&(sn=!1,on.classList.remove(nn)),this._queueCallback((()=>this._hideElement()),this._menuWrapper,e)}toggle(e){this._isShown?this.hide():this.show(e)}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(li.off(window,gn),super.dispose())}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(li.on(window,gn,(()=>this._onResize())),this._overlay&&li.on(this._overlay,cn,(()=>this.hide())),li.on(this._btnClose,cn,(e=>{e.preventDefault(),this.hide()})),li.on(this._btnBack,cn,(e=>{e.preventDefault(),this.hide()})),this._menuItems.forEach((e=>{li.on(e,dn,(e=>this._isMobile&&this._onMenuItemKeyDown(e))),li.on(e,un,(e=>this._isMobile&&this._onMenuItemKeyUp(e))),li.on(e,cn,(e=>this._isMobile&&this._onMenuItemClick(e)))})))}_onResize(){this._isMobile=Zi()}_onMenuItemKeyUp(e){"Shift"===e.key&&(this._isKeyShift=!1)}_onMenuItemKeyDown(e){"Shift"===e.key&&(this._isKeyShift=!0),"Tab"===e.key&&(e.preventDefault(),this._focusNext())}_onMenuItemClick(e){this.currItemIdx=en(e.currentTarget,this._menuItems)}_isAnimated(){return!0}_isElementHidden(e){return null===e.offsetParent}_showElement(){const e=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-expanded",!0),this._overlay&&(this._overlay.style.display="block"),e&&Vt(this._element),this._element.classList.add(_n),this._overlay&&this._overlay.classList.add(yn);this._queueCallback((()=>{this._isTransitioning=!1;const e=this._getNextVisibleItem(0);e.item&&(e.item.focus(),this._currItemIdx=e.index),li.trigger(this._element,mn)}),this._menuWrapper,e)}_hideElement(){this._overlay&&(this._overlay.style.display="none"),this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-expanded"),this._isTransitioning=!1,li.trigger(this._element,pn)}_setOverlay(){this._overlay=mi.findOne(".overlay",this._element),this._isAnimated&&this._overlay.classList.add("fade")}_focusNext(){let e=this._currItemIdx+(this._isKeyShift?-1:1);e<0?e=this._menuItems.length-1:e>=this._menuItems.length&&(e=0);const t=this._getNextVisibleItem(e,this._isKeyShift);t.item&&(t.item.focus(),this._currItemIdx=t.index)}_getNextVisibleItem(e,t){let i=null,n=null,s=e,r=t?-1:1,o=!1;for(;!(i||s==e&&o);)s==e&&(o=!0),this._isElementHidden(this._menuItems[s])||(i=this._menuItems[s],n=s),s+=r,s<0?s=this._menuItems.length-1:s>=this._menuItems.length&&(s=0);return{item:i,index:n}}}"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(document,ln,'[data-bs-toggle="navbarcollapsible"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),li.one(t,fn,(e=>{e.defaultPrevented||li.one(t,pn,(()=>{Ut(this)&&this.focus()}))}));En.getOrCreateInstance(t).toggle(this)}));const Cn=".bs.accordion",kn=`keydown${Cn}`,xn=`keydown${Cn}.data-api`,In='.accordion-item > .accordion-header [data-bs-toggle="collapse"]';class An extends fi{constructor(e){super(e),this._bindEvents()}static get NAME(){return"accordion"}handleKeyDown(e,t,i){const n={ArrowDown:e=>this._focusNext(e),ArrowUp:e=>this._focusPrev(e),Home:e=>this._focusFirst(e),End:e=>this._focusLast(e)};"function"==typeof n[e]&&(i&&i.preventDefault(),n[e](t))}_bindEvents(){mi.find(In,this._element).forEach((e=>{li.on(e,kn,(e=>{this.handleKeyDown(e.key,e.currentTarget,e)}))}))}_getHeadButtons(){return mi.find(":scope > "+In,this._element)}_focusNext(e){tn(e,this._getHeadButtons(),{loop:!0})}_focusPrev(e){tn(e,this._getHeadButtons(),{isDirectionTop:!0,loop:!0})}_focusFirst(e){tn(e,this._getHeadButtons(),{isDirectionTop:!0,isLimit:!0})}_focusLast(e){tn(e,this._getHeadButtons(),{isLimit:!0})}}var On;"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(document,xn,In,(function(e){const t=this.closest(".accordion");if(t){An.getOrCreateInstance(t).handleKeyDown(e.key,this,e)}}));var Pn=new Uint8Array(16);function Ln(){if(!On&&!(On="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return On(Pn)}const Dn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Mn=[],Nn=0;Nn<256;++Nn)Mn.push((Nn+256).toString(16).substr(1));function Rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Mn[e[t+0]]+Mn[e[t+1]]+Mn[e[t+2]]+Mn[e[t+3]]+"-"+Mn[e[t+4]]+Mn[e[t+5]]+"-"+Mn[e[t+6]]+Mn[e[t+7]]+"-"+Mn[e[t+8]]+Mn[e[t+9]]+"-"+Mn[e[t+10]]+Mn[e[t+11]]+Mn[e[t+12]]+Mn[e[t+13]]+Mn[e[t+14]]+Mn[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Dn.test(e)}(i))throw TypeError("Stringified UUID is invalid");return i}function Fn(e,t,i){var n=(e=e||{}).random||(e.rng||Ln)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,Rn(n)}let Bn=!1,Un=[];class jn{constructor(e,t){this.id=e,this._callback=t}dispose(){$n(this.id)}_execute(e){this._callback(e)}}const $n=e=>{Un=Un.filter((t=>t.id!==e))},qn=e=>{if("undefined"!=typeof document){if(Un.length||"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("scroll",(e=>{Bn||(window.requestAnimationFrame((()=>{Un.forEach((t=>t.cb._execute(e))),Bn=!1})),Bn=!0)})),"function"==typeof e){const t=new jn(Fn(),e);return Un.push({id:t.id,cb:t}),t}return console.error("[onDocumentScroll] the provided data has to be of type function"),null}};var Vn={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Hn={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},zn=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Wn={CSS:{},springs:{}};function Gn(e,t,i){return Math.min(Math.max(e,t),i)}function Xn(e,t){return e.indexOf(t)>-1}function Kn(e,t){return e.apply(null,t)}var Yn={arr:function(e){return Array.isArray(e)},obj:function(e){return Xn(Object.prototype.toString.call(e),"Object")},pth:function(e){return Yn.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||Yn.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return Yn.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return Yn.hex(e)||Yn.rgb(e)||Yn.hsl(e)},key:function(e){return!Vn.hasOwnProperty(e)&&!Hn.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function Qn(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function Jn(e,t){var i=Qn(e),n=Gn(Yn.und(i[0])?1:i[0],.1,100),s=Gn(Yn.und(i[1])?100:i[1],.1,100),r=Gn(Yn.und(i[2])?10:i[2],.1,100),o=Gn(Yn.und(i[3])?0:i[3],.1,100),a=Math.sqrt(s/n),l=r/(2*Math.sqrt(s*n)),c=l<1?a*Math.sqrt(1-l*l):0,u=l<1?(l*a-o)/c:-o+a;function d(e){var i=t?t*e/1e3:e;return i=l<1?Math.exp(-i*l*a)*(1*Math.cos(c*i)+u*Math.sin(c*i)):(1+u*i)*Math.exp(-i*a),0===e||1===e?e:1-i}return t?d:function(){var t=Wn.springs[e];if(t)return t;for(var i=1/6,n=0,s=0;;)if(1===d(n+=i)){if(++s>=16)break}else s=0;var r=n*i*1e3;return Wn.springs[e]=r,r}}function Zn(e){return void 0===e&&(e=10),function(t){return Math.ceil(Gn(t,1e-6,1)*e)*(1/e)}}var es,ts,is=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function n(e){return 3*e}function s(e,s,r){return((t(s,r)*e+i(s,r))*e+n(s))*e}function r(e,s,r){return 3*t(s,r)*e*e+2*i(s,r)*e+n(s)}return function(t,i,n,o){if(0<=t&&t<=1&&0<=n&&n<=1){var a=new Float32Array(11);if(t!==i||n!==o)for(var l=0;l<11;++l)a[l]=s(l*e,t,n);return function(e){return t===i&&n===o||0===e||1===e?e:s(c(e),i,o)}}function c(i){for(var o=0,l=1;10!==l&&a[l]<=i;++l)o+=e;--l;var c=o+(i-a[l])/(a[l+1]-a[l])*e,u=r(c,t,n);return u>=.001?function(e,t,i,n){for(var o=0;o<4;++o){var a=r(t,i,n);if(0===a)return t;t-=(s(t,i,n)-e)/a}return t}(i,c,t,n):0===u?c:function(e,t,i,n,r){var o,a,l=0;do{(o=s(a=t+(i-t)/2,n,r)-e)>0?i=a:t=a}while(Math.abs(o)>1e-7&&++l<10);return a}(i,o,o+e,t,n)}}}(),ns=(es={linear:function(){return function(e){return e}}},ts={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Expo:function(){return function(e){return e?Math.pow(2,10*e-10):0}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var i=Gn(e,1,10),n=Gn(t,.1,2);return function(e){return 0===e||1===e?e:-i*Math.pow(2,10*(e-1))*Math.sin((e-1-n/(2*Math.PI)*Math.asin(1/i))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint"].forEach((function(e,t){ts[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(ts).forEach((function(e){var t=ts[e];es["easeIn"+e]=t,es["easeOut"+e]=function(e,i){return function(n){return 1-t(e,i)(1-n)}},es["easeInOut"+e]=function(e,i){return function(n){return n<.5?t(e,i)(2*n)/2:1-t(e,i)(-2*n+2)/2}},es["easeOutIn"+e]=function(e,i){return function(n){return n<.5?(1-t(e,i)(1-2*n))/2:(t(e,i)(2*n-1)+1)/2}}})),es);function ss(e,t){if(Yn.fnc(e))return e;var i=e.split("(")[0],n=ns[i],s=Qn(e);switch(i){case"spring":return Jn(e,t);case"cubicBezier":return Kn(is,s);case"steps":return Kn(Zn,s);default:return Kn(n,s)}}function rs(e){try{return document.querySelectorAll(e)}catch(e){return}}function os(e,t){for(var i=e.length,n=arguments.length>=2?arguments[1]:void 0,s=[],r=0;r<i;r++)if(r in e){var o=e[r];t.call(n,o,r,e)&&s.push(o)}return s}function as(e){return e.reduce((function(e,t){return e.concat(Yn.arr(t)?as(t):t)}),[])}function ls(e){return Yn.arr(e)?e:(Yn.str(e)&&(e=rs(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function cs(e,t){return e.some((function(e){return e===t}))}function us(e){var t={};for(var i in e)t[i]=e[i];return t}function ds(e,t){var i=us(e);for(var n in e)i[n]=t.hasOwnProperty(n)?t[n]:e[n];return i}function hs(e,t){var i=us(e);for(var n in t)i[n]=Yn.und(e[n])?t[n]:e[n];return i}function ps(e){return Yn.rgb(e)?(i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+i[1]+",1)":t:Yn.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,i,n){return t+t+i+i+n+n})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(i[1],16)+","+parseInt(i[2],16)+","+parseInt(i[3],16)+",1)"}(e):Yn.hsl(e)?function(e){var t,i,n,s=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(s[1],10)/360,o=parseInt(s[2],10)/100,a=parseInt(s[3],10)/100,l=s[4]||1;function c(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}if(0==o)t=i=n=a;else{var u=a<.5?a*(1+o):a+o-a*o,d=2*a-u;t=c(d,u,r+1/3),i=c(d,u,r),n=c(d,u,r-1/3)}return"rgba("+255*t+","+255*i+","+255*n+","+l+")"}(e):void 0;var t,i}function fs(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function ms(e,t){return Yn.fnc(e)?e(t.target,t.id,t.total):e}function gs(e,t){return e.getAttribute(t)}function ys(e,t,i){if(cs([i,"deg","rad","turn"],fs(t)))return t;var n=Wn.CSS[t+i];if(!Yn.und(n))return n;var s=document.createElement(e.tagName),r=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;r.appendChild(s),s.style.position="absolute",s.style.width=100+i;var o=100/s.offsetWidth;r.removeChild(s);var a=o*parseFloat(t);return Wn.CSS[t+i]=a,a}function _s(e,t,i){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return i?ys(e,s,i):s}}function vs(e,t){return Yn.dom(e)&&!Yn.inp(e)&&(!Yn.nil(gs(e,t))||Yn.svg(e)&&e[t])?"attribute":Yn.dom(e)&&cs(zn,t)?"transform":Yn.dom(e)&&"transform"!==t&&_s(e,t)?"css":null!=e[t]?"object":void 0}function bs(e){if(Yn.dom(e)){for(var t,i=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,s=new Map;t=n.exec(i);)s.set(t[1],t[2]);return s}}function Ts(e,t,i,n){var s=Xn(t,"scale")?1:0+function(e){return Xn(e,"translate")||"perspective"===e?"px":Xn(e,"rotate")||Xn(e,"skew")?"deg":void 0}(t),r=bs(e).get(t)||s;return i&&(i.transforms.list.set(t,r),i.transforms.last=t),n?ys(e,r,n):r}function ws(e,t,i,n){switch(vs(e,t)){case"transform":return Ts(e,t,n,i);case"css":return _s(e,t,i);case"attribute":return gs(e,t);default:return e[t]||0}}function Ss(e,t){var i=/^(\*=|\+=|-=)/.exec(e);if(!i)return e;var n=fs(e)||0,s=parseFloat(t),r=parseFloat(e.replace(i[0],""));switch(i[0][0]){case"+":return s+r+n;case"-":return s-r+n;case"*":return s*r+n}}function Es(e,t){if(Yn.col(e))return ps(e);if(/\s/g.test(e))return e;var i=fs(e),n=i?e.substr(0,e.length-i.length):e;return t?n+t:n}function Cs(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function ks(e){for(var t,i=e.points,n=0,s=0;s<i.numberOfItems;s++){var r=i.getItem(s);s>0&&(n+=Cs(t,r)),t=r}return n}function xs(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*gs(e,"r")}(e);case"rect":return function(e){return 2*gs(e,"width")+2*gs(e,"height")}(e);case"line":return function(e){return Cs({x:gs(e,"x1"),y:gs(e,"y1")},{x:gs(e,"x2"),y:gs(e,"y2")})}(e);case"polyline":return ks(e);case"polygon":return function(e){var t=e.points;return ks(e)+Cs(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Is(e,t){var i=t||{},n=i.el||function(e){for(var t=e.parentNode;Yn.svg(t)&&Yn.svg(t.parentNode);)t=t.parentNode;return t}(e),s=n.getBoundingClientRect(),r=gs(n,"viewBox"),o=s.width,a=s.height,l=i.viewBox||(r?r.split(" "):[0,0,o,a]);return{el:n,viewBox:l,x:l[0]/1,y:l[1]/1,w:o,h:a,vW:l[2],vH:l[3]}}function As(e,t,i){function n(i){void 0===i&&(i=0);var n=t+i>=1?t+i:0;return e.el.getPointAtLength(n)}var s=Is(e.el,e.svg),r=n(),o=n(-1),a=n(1),l=i?1:s.w/s.vW,c=i?1:s.h/s.vH;switch(e.property){case"x":return(r.x-s.x)*l;case"y":return(r.y-s.y)*c;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function Os(e,t){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=Es(Yn.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:Yn.str(e)||t?n.split(i):[]}}function Ps(e){return os(e?as(Yn.arr(e)?e.map(ls):ls(e)):[],(function(e,t,i){return i.indexOf(e)===t}))}function Ls(e){var t=Ps(e);return t.map((function(e,i){return{target:e,id:i,total:t.length,transforms:{list:bs(e)}}}))}function Ds(e,t){var i=us(t);if(/^spring/.test(i.easing)&&(i.duration=Jn(i.easing)),Yn.arr(e)){var n=e.length;2===n&&!Yn.obj(e[0])?e={value:e}:Yn.fnc(t.duration)||(i.duration=t.duration/n)}var s=Yn.arr(e)?e:[e];return s.map((function(e,i){var n=Yn.obj(e)&&!Yn.pth(e)?e:{value:e};return Yn.und(n.delay)&&(n.delay=i?0:t.delay),Yn.und(n.endDelay)&&(n.endDelay=i===s.length-1?t.endDelay:0),n})).map((function(e){return hs(e,i)}))}function Ms(e,t){var i=[],n=t.keyframes;for(var s in n&&(t=hs(function(e){for(var t=os(as(e.map((function(e){return Object.keys(e)}))),(function(e){return Yn.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),i={},n=function(n){var s=t[n];i[s]=e.map((function(e){var t={};for(var i in e)Yn.key(i)?i==s&&(t.value=e[i]):t[i]=e[i];return t}))},s=0;s<t.length;s++)n(s);return i}(n),t)),t)Yn.key(s)&&i.push({name:s,tweens:Ds(t[s],e)});return i}function Ns(e,t){var i;return e.tweens.map((function(n){var s=function(e,t){var i={};for(var n in e){var s=ms(e[n],t);Yn.arr(s)&&1===(s=s.map((function(e){return ms(e,t)}))).length&&(s=s[0]),i[n]=s}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(n,t),r=s.value,o=Yn.arr(r)?r[1]:r,a=fs(o),l=ws(t.target,e.name,a,t),c=i?i.to.original:l,u=Yn.arr(r)?r[0]:c,d=fs(u)||fs(l),h=a||d;return Yn.und(o)&&(o=c),s.from=Os(u,h),s.to=Os(Ss(o,u),h),s.start=i?i.end:0,s.end=s.start+s.delay+s.duration+s.endDelay,s.easing=ss(s.easing,s.duration),s.isPath=Yn.pth(r),s.isPathTargetInsideSVG=s.isPath&&Yn.svg(t.target),s.isColor=Yn.col(s.from.original),s.isColor&&(s.round=1),i=s,s}))}var Rs={css:function(e,t,i){return e.style[t]=i},attribute:function(e,t,i){return e.setAttribute(t,i)},object:function(e,t,i){return e[t]=i},transform:function(e,t,i,n,s){if(n.list.set(t,i),t===n.last||s){var r="";n.list.forEach((function(e,t){r+=t+"("+e+") "})),e.style.transform=r}}};function Fs(e,t){Ls(e).forEach((function(e){for(var i in t){var n=ms(t[i],e),s=e.target,r=fs(n),o=ws(s,i,r,e),a=Ss(Es(n,r||fs(o)),o),l=vs(s,i);Rs[l](s,i,a,e.transforms,!0)}}))}function Bs(e,t){return os(as(e.map((function(e){return t.map((function(t){return function(e,t){var i=vs(e.target,t.name);if(i){var n=Ns(t,e),s=n[n.length-1];return{type:i,property:t.name,animatable:e,tweens:n,duration:s.end,delay:n[0].delay,endDelay:s.endDelay}}}(e,t)}))}))),(function(e){return!Yn.und(e)}))}function Us(e,t){var i=e.length,n=function(e){return e.timelineOffset?e.timelineOffset:0},s={};return s.duration=i?Math.max.apply(Math,e.map((function(e){return n(e)+e.duration}))):t.duration,s.delay=i?Math.min.apply(Math,e.map((function(e){return n(e)+e.delay}))):t.delay,s.endDelay=i?s.duration-Math.max.apply(Math,e.map((function(e){return n(e)+e.duration-e.endDelay}))):t.endDelay,s}var js=0;var $s=[],qs=function(){var e;function t(i){for(var n=$s.length,s=0;s<n;){var r=$s[s];r.paused?($s.splice(s,1),n--):(r.tick(i),s++)}e=s>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){Hs.suspendWhenDocumentHidden&&(Vs()?e=cancelAnimationFrame(e):($s.forEach((function(e){return e._onDocumentVisibility()})),qs()))})),function(){e||Vs()&&Hs.suspendWhenDocumentHidden||!($s.length>0)||(e=requestAnimationFrame(t))}}();function Vs(){return!!document&&document.hidden}function Hs(e){void 0===e&&(e={});var t,i=0,n=0,s=0,r=0,o=null;function a(e){var t=window.Promise&&new Promise((function(e){return o=e}));return e.finished=t,t}var l=function(e){var t=ds(Vn,e),i=ds(Hn,e),n=Ms(i,e),s=Ls(e.targets),r=Bs(s,n),o=Us(r,i),a=js;return js++,hs(t,{id:a,children:[],animatables:s,animations:r,duration:o.duration,delay:o.delay,endDelay:o.endDelay})}(e);function c(){var e=l.direction;"alternate"!==e&&(l.direction="normal"!==e?"normal":"reverse"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function u(e){return l.reversed?l.duration-e:e}function d(){i=0,n=u(l.currentTime)*(1/Hs.speed)}function h(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,i=l.animations,n=i.length;t<n;){var s=i[t],r=s.animatable,o=s.tweens,a=o.length-1,c=o[a];a&&(c=os(o,(function(t){return e<t.end}))[0]||c);for(var u=Gn(e-c.start-c.delay,0,c.duration)/c.duration,d=isNaN(u)?1:c.easing(u),h=c.to.strings,p=c.round,f=[],m=c.to.numbers.length,g=void 0,y=0;y<m;y++){var _=void 0,v=c.to.numbers[y],b=c.from.numbers[y]||0;_=c.isPath?As(c.value,d*v,c.isPathTargetInsideSVG):b+d*(v-b),p&&(c.isColor&&y>2||(_=Math.round(_*p)/p)),f.push(_)}var T=h.length;if(T){g=h[0];for(var w=0;w<T;w++){h[w];var S=h[w+1],E=f[w];isNaN(E)||(g+=S?E+S:E+" ")}}else g=f[0];Rs[s.type](r.target,s.property,g,r.transforms),s.currentValue=g,t++}}function f(e){l[e]&&!l.passThrough&&l[e](l)}function m(e){var d=l.duration,m=l.delay,g=d-l.endDelay,y=u(e);l.progress=Gn(y/d*100,0,100),l.reversePlayback=y<l.currentTime,t&&function(e){if(l.reversePlayback)for(var i=r;i--;)h(e,t[i]);else for(var n=0;n<r;n++)h(e,t[n])}(y),!l.began&&l.currentTime>0&&(l.began=!0,f("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,f("loopBegin")),y<=m&&0!==l.currentTime&&p(0),(y>=g&&l.currentTime!==d||!d)&&p(d),y>m&&y<g?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,f("changeBegin")),f("change"),p(y)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,f("changeComplete")),l.currentTime=Gn(y,0,d),l.began&&f("update"),e>=d&&(n=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(i=s,f("loopComplete"),l.loopBegan=!1,"alternate"===l.direction&&c()):(l.paused=!0,l.completed||(l.completed=!0,f("loopComplete"),f("complete"),!l.passThrough&&"Promise"in window&&(o(),a(l)))))}return a(l),l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed="reverse"===e,l.remaining=l.loop,t=l.children;for(var i=r=t.length;i--;)l.children[i].reset();(l.reversed&&!0!==l.loop||"alternate"===e&&1===l.loop)&&l.remaining++,p(l.reversed?l.duration:0)},l._onDocumentVisibility=d,l.set=function(e,t){return Fs(e,t),l},l.tick=function(e){s=e,i||(i=s),m((s+(n-i))*Hs.speed)},l.seek=function(e){m(u(e))},l.pause=function(){l.paused=!0,d()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,$s.push(l),d(),qs())},l.reverse=function(){c(),l.completed=!l.reversed,d()},l.restart=function(){l.reset(),l.play()},l.remove=function(e){Ws(Ps(e),l)},l.reset(),l.autoplay&&l.play(),l}function zs(e,t){for(var i=t.length;i--;)cs(e,t[i].animatable.target)&&t.splice(i,1)}function Ws(e,t){var i=t.animations,n=t.children;zs(e,i);for(var s=n.length;s--;){var r=n[s],o=r.animations;zs(e,o),o.length||r.children.length||n.splice(s,1)}i.length||n.length||t.pause()}Hs.version="3.2.1",Hs.speed=1,Hs.suspendWhenDocumentHidden=!0,Hs.running=$s,Hs.remove=function(e){for(var t=Ps(e),i=$s.length;i--;){Ws(t,$s[i])}},Hs.get=ws,Hs.set=Fs,Hs.convertPx=ys,Hs.path=function(e,t){var i=Yn.str(e)?rs(e)[0]:e,n=t||100;return function(e){return{property:e,el:i,svg:Is(i),totalLength:xs(i)*(n/100)}}},Hs.setDashoffset=function(e){var t=xs(e);return e.setAttribute("stroke-dasharray",t),t},Hs.stagger=function(e,t){void 0===t&&(t={});var i=t.direction||"normal",n=t.easing?ss(t.easing):null,s=t.grid,r=t.axis,o=t.from||0,a="first"===o,l="center"===o,c="last"===o,u=Yn.arr(e),d=u?parseFloat(e[0]):parseFloat(e),h=u?parseFloat(e[1]):0,p=fs(u?e[1]:e)||0,f=t.start||0+(u?d:0),m=[],g=0;return function(e,t,y){if(a&&(o=0),l&&(o=(y-1)/2),c&&(o=y-1),!m.length){for(var _=0;_<y;_++){if(s){var v=l?(s[0]-1)/2:o%s[0],b=l?(s[1]-1)/2:Math.floor(o/s[0]),T=v-_%s[0],w=b-Math.floor(_/s[0]),S=Math.sqrt(T*T+w*w);"x"===r&&(S=-T),"y"===r&&(S=-w),m.push(S)}else m.push(Math.abs(o-_));g=Math.max.apply(Math,m)}n&&(m=m.map((function(e){return n(e/g)*g}))),"reverse"===i&&(m=m.map((function(e){return r?e<0?-1*e:-e:Math.abs(g-e)})))}return f+(u?(h-d)/g:d)*(Math.round(100*m[t])/100)+p}},Hs.timeline=function(e){void 0===e&&(e={});var t=Hs(e);return t.duration=0,t.add=function(i,n){var s=$s.indexOf(t),r=t.children;function o(e){e.passThrough=!0}s>-1&&$s.splice(s,1);for(var a=0;a<r.length;a++)o(r[a]);var l=hs(i,ds(Hn,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=Yn.und(n)?c:Ss(n,c),o(t),t.seek(l.timelineOffset);var u=Hs(l);o(u),r.push(u);var d=Us(r,e);return t.delay=d.delay,t.endDelay=d.endDelay,t.duration=d.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},Hs.easing=ss,Hs.penner=ns,Hs.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const Gs={duration:800,easing:"easeInOutSine"},Xs=(e,t)=>{if("undefined"==typeof window||"undefined"==typeof document)return;const i=("object"==typeof t?t:{}).complete,n=window.document.scrollingElement||window.document.body||window.document.documentElement,s=n.style.scrollBehavior;t={scrollTop:e||0,...Gs,..."object"==typeof t?t:{}},n.style.scrollBehavior="auto",t.complete=e=>{n.style.scrollBehavior=s,"function"==typeof i&&i(e)},Hs({targets:n,...t})},Ks="active",Ys="ul.link-list",Qs="a.nav-link",Js=`${Qs}.${Ks}`,Zs=`${Qs}[href^="#"]`,er={scrollPadding:10,duration:800,easing:"easeInOutSine"};class tr extends fi{constructor(e,t){super(e),this._config=this._getConfig(t),this._togglerElement=mi.findOne(".custom-navbar-toggler",this._element),this._sectionContainer=mi.findOne(".it-page-sections-container"),this._collapsible=this._getCollapsible(),this._isCollapseOpened=!1,this._callbackQueue=[],this._scrollCb=null,this._bindEvents()}static get NAME(){return"navscroll"}setScrollPadding(e){this._config.scrollPadding=e}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(e){return e={...er,...hi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){this._scrollCb=qn((()=>this._onScroll())),this._collapsible&&(li.on(this._collapsible._element,"shown.bs.navbarcollapsible",(()=>this._onCollapseOpened())),li.on(this._collapsible._element,"hidden.bs.navbarcollapsible",(()=>this._onCollapseClosed()))),mi.find(Zs,this._element).forEach((e=>{e.addEventListener("click",(()=>{const t=()=>this._scrollToHash(e.hash);this._isCollapseOpened?(this._callbackQueue.push(t),this._collapsible.hide()):t()}))})),"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(window,"load",(()=>{setTimeout((()=>this._onScroll()),150)}))}_onCollapseOpened(){this._isCollapseOpened=!0}_onCollapseClosed(){for(;this._callbackQueue.length>0;){const e=this._callbackQueue.shift();"function"==typeof e&&e()}this._isCollapseOpened=!1}_getParentLinks(e){const t=[];let i=e.closest(Ys),n=null,s=!1;for(;i&&!s;){const e=i.closest("li.nav-link, li.nav-item");if(e){const i=e.querySelector(Qs);i&&t.push(i)}n=i,i=(i.parentElement||i).closest(Ys),i===n&&(s=!0)}return t}_decorateToggler(e){if(this._togglerElement){const t=mi.findOne(".it-list",this._togglerElement);this._togglerElement.innerText="",this._togglerElement.textContent="",this._togglerElement.append(t),this._togglerElement.append(e)}}_scrollToHash(e){const t=mi.findOne(e,this._sectionContainer);t&&(Xs(t.offsetTop-this._getScrollPadding(),{duration:this._config.duration,easing:this._config.easing}),history.pushState?history.pushState(null,null,e):location.hash=e)}_updateProgress(e){if(!e)return;const t=mi.find(".it-navscroll-progressbar");if(t){const i=Math.abs(e.getBoundingClientRect().top)/e.getBoundingClientRect().height*100,n=Math.min(100,Math.max(0,i));t.forEach((t=>{e.getBoundingClientRect().top<=0?(t.style.width=n+"%",t.setAttribute("aria-valuenow",n)):(t.style.width="0%",t.setAttribute("aria-valuenow",0))}))}}_onScroll(){const e=this._sectionContainer?this._sectionContainer.offsetTop:0;if("undefined"==typeof document)return;const t=document.scrollingElement.scrollTop-e,i=mi.find(Qs,this._element),n=this._getScrollPadding();mi.find(".it-page-section").forEach(((s,r)=>{if(s.offsetTop-e<=t+n&&(mi.find(Js,this._element).forEach((e=>{e.classList.remove(Ks)})),r<i.length)){const e=i[r];this._getParentLinks(e).forEach((e=>{e.classList.add(Ks)})),e.classList.add(Ks),this._decorateToggler(e.innerText)}})),this._updateProgress(this._sectionContainer)}_getCollapsible(){const e=mi.findOne(".navbar-collapsable",this._element);return e?En.getOrCreateInstance(e):null}_getScrollPadding(){return"function"==typeof this._config.scrollPadding?this._config.scrollPadding():this._config.scrollPadding}}if("undefined"!=typeof window&&"undefined"!=typeof document){mi.find("[data-bs-navscroll]").map((e=>{tr.getOrCreateInstance(e)}))}const ir=".bs.sticky",nr=`resize${ir}`,sr=`on${ir}`,rr=`off${ir}`,or="bs-is-sticky",ar="bs-is-fixed",lr='[data-bs-toggle="sticky"]',cr={positionType:"sticky",stickyClassName:"",stackable:!1,paddingTop:0};class ur extends fi{constructor(e,t){super(e),this._config=this._getConfig(t),this._isSticky=!1,this._wrapper=null,this._stickyTarget=mi.findOne(Mt(this._element),this._element)||this._element,this._stickyTargetMobile=mi.findOne(this._element.getAttribute("data-bs-target-mobile"),this._element)||this._stickyTarget,this._stickyLimit=0,this._stickyLimitMobile=0,this._setLimit(),this._scrollCb=null,this._isMobile=Zi(),this._prevTop=0,this._onScroll(),this._bindEvents()}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(li.off(window,nr),this._scrollCb.dispose(),super.dispose())}static get NAME(){return"sticky"}_getConfig(e){return e={...cr,...hi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(li.on(window,nr,(()=>this._onResize())),this._scrollCb=qn((()=>this._onScroll())))}_onResize(){this._isMobile=Zi(),this._setLimit()}_onScroll(){this._checkSticky()}_setLimit(){this._stickyLimit=this._cumulativeOffset(this._stickyTarget).top,this._stickyLimitMobile=this._cumulativeOffset(this._stickyTargetMobile).top}_getLimit(){let e=this._isMobile?this._stickyLimitMobile:this._stickyLimit;return this._config.stackable&&this._getStickySimblings().forEach(((t,i)=>{const n=t.getBoundingClientRect();e-=n.height+(0===i?parseFloat(t.style.top):0)})),e>0?e:0}_cumulativeOffset(e){let t=0,i=0;do{t+=e.offsetTop||0,i+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:i}}_isTypeSticky(){return"sticky"===this._config.positionType}_checkSticky(){this._isSticky||this._setLimit();const e=this._getLimit();"undefined"!=typeof window&&window.pageYOffset>e?this._setSticky():this._unsetSticky()}_setSticky(){if(!this._isSticky){this._isSticky=!0;let e=or;this._isTypeSticky()||(e=ar,this._wrapper=this._createWrapper()),this._element.classList.add(e),this._config.stickyClassName&&this._element.classList.add(this._config.stickyClassName),this._prevTop=this._element.style.top,this._element.style.top=this._getPositionTop()+"px",li.trigger(this._element,sr)}}_unsetSticky(){if(this._isSticky){let e=or;this._isTypeSticky()||(e=ar,this._destroyWrapper()),this._element.classList.remove(e),this._config.stickyClassName&&this._element.classList.remove(this._config.stickyClassName),this._element.style.top=this._prevTop,this._isSticky=!1,li.trigger(this._element,rr)}}_createWrapper(){if("undefined"==typeof document)return;const e=document.createElement("div");return e.classList.add("bs-it-sticky-wrapper"),e.style.width="100%",e.style.height=this._element.getBoundingClientRect().height+"px",e.style.overflow="hidden",this._element.parentNode.insertBefore(e,this._element),e.appendChild(this._element),e}_destroyWrapper(){this._wrapper&&(this._wrapper.parentNode.insertBefore(this._element,this._wrapper),this._wrapper.remove())}_getStickySimblings(){return mi.find(lr).filter((e=>{const t=ur.getInstance(e);return!(!t||!t._isSticky||e===this._element)}))}_getPositionTop(){let e=0;return this._config.stackable?(this._getStickySimblings().forEach(((t,i)=>{const n=t.getBoundingClientRect();e+=n.height+(0===i?parseFloat(t.style.top):0)})),e):e+this._config.paddingTop}}"undefined"!=typeof window&&"undefined"!=typeof document&&qn((()=>{mi.find(lr).map((e=>{ur.getOrCreateInstance(e)}))}));const dr="cloned-element",hr=`.${dr}`,pr=new Map;class fr{constructor(e){if(pr.get(e))return null;this._element=e,this._elementObj=ur.getOrCreateInstance(e),pr.set(e,this._elementObj),this._bindEvents(),this._toggleClonedElement(this._element.classList.contains("is-sticky"))}static getOrCreateInstance(e){return pr.get(e)||new this(e)}_bindEvents(){this._element.addEventListener("on.bs.sticky",(()=>this._toggleClonedElement(!0))),this._element.addEventListener("off.bs.sticky",(()=>this._toggleClonedElement(!1)))}_toggleClonedElement(e=!0){if(!Ut(mi.findOne(".custom-navbar-toggler",this._element))){const t=mi.findOne(".menu-wrapper",this._element);if(e){const e=mi.findOne(".it-brand-wrapper",this._element),i=mi.findOne(".it-search-wrapper",this._element),n=mi.findOne(".it-user-wrapper",this._element),s=e?e.cloneNode(!0):null,r=i?i.cloneNode(!0):null,o=n?n.cloneNode(!0):null;s&&t.insertBefore(s,t.childNodes[0]).classList.add(dr),r&&t.appendChild(r).classList.add(dr),o&&(t.appendChild(o).classList.add(dr),t.appendChild(o).classList.remove("show"))}else mi.find(hr,this._element).forEach((e=>{e.parentElement.removeChild(e)}))}}}qn((()=>{mi.find(".it-header-sticky").map((e=>{fr.getOrCreateInstance(e)}))}));var mr=Object.defineProperty,gr=(e,t,i)=>(((e,t,i)=>{t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!=typeof t?t+"":t,i),i);const yr=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,_r=/^-?[0-9]\d*$/,vr=/^(?=.*[A-Za-z])(?=.*\d).{8,}$/,br=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,Tr=e=>"string"!=typeof e||""===e;var wr=(e=>(e.Required="required",e.Email="email",e.MinLength="minLength",e.MaxLength="maxLength",e.Password="password",e.Number="number",e.Integer="integer",e.MaxNumber="maxNumber",e.MinNumber="minNumber",e.StrongPassword="strongPassword",e.CustomRegexp="customRegexp",e.MinFilesCount="minFilesCount",e.MaxFilesCount="maxFilesCount",e.Files="files",e))(wr||{}),Sr=(e=>(e.Required="required",e))(Sr||{}),Er=(e=>(e.Label="label",e.LabelArrow="labelArrow",e))(Er||{});const Cr=[{key:wr.Required,dict:{en:"The field is required"}},{key:wr.Email,dict:{en:"Email has invalid format"}},{key:wr.MaxLength,dict:{en:"The field must contain a maximum of :value characters"}},{key:wr.MinLength,dict:{en:"The field must contain a minimum of :value characters"}},{key:wr.Password,dict:{en:"Password must contain minimum eight characters, at least one letter and one number"}},{key:wr.StrongPassword,dict:{en:"Password should contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"}},{key:wr.Number,dict:{en:"Value should be a number"}},{key:wr.MaxNumber,dict:{en:"Number should be less or equal than :value"}},{key:wr.MinNumber,dict:{en:"Number should be more or equal than :value"}},{key:wr.MinFilesCount,dict:{en:"Files count should be more or equal than :value"}},{key:wr.MaxFilesCount,dict:{en:"Files count should be less or equal than :value"}},{key:wr.Files,dict:{en:"Uploaded files have one or several invalid properties (extension/size/type etc)."}}],kr=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then,xr=e=>Array.isArray(e)?e.filter((e=>e.length>0)):"string"==typeof e&&e.trim()?[...e.split(" ").filter((e=>e.length>0))]:[],Ir=e=>e instanceof Element||e instanceof HTMLDocument,Ar={errorFieldStyle:{color:"#b81111",border:"1px solid #B81111"},errorFieldCssClass:"just-validate-error-field",successFieldCssClass:"just-validate-success-field",errorLabelStyle:{color:"#b81111"},errorLabelCssClass:"just-validate-error-label",successLabelCssClass:"just-validate-success-label",focusInvalidField:!0,lockForm:!0,testingMode:!1,validateBeforeSubmitting:!1,submitFormAutomatically:!1};class Or{constructor(e,t,i){gr(this,"form",null),gr(this,"fields",{}),gr(this,"groupFields",{}),gr(this,"errors",{}),gr(this,"isValid",!1),gr(this,"isSubmitted",!1),gr(this,"globalConfig",Ar),gr(this,"errorLabels",{}),gr(this,"successLabels",{}),gr(this,"eventListeners",[]),gr(this,"dictLocale",Cr),gr(this,"currentLocale","en"),gr(this,"customStyleTags",{}),gr(this,"onSuccessCallback"),gr(this,"onFailCallback"),gr(this,"onValidateCallback"),gr(this,"tooltips",[]),gr(this,"lastScrollPosition"),gr(this,"isScrollTick"),gr(this,"fieldIds",new Map),gr(this,"getKeyByFieldSelector",(e=>this.fieldIds.get(e))),gr(this,"getFieldSelectorByKey",(e=>{for(const[t,i]of this.fieldIds)if(e===i)return t})),gr(this,"getCompatibleFields",(()=>{const e={};return Object.keys(this.fields).forEach((t=>{let i=t;const n=this.getFieldSelectorByKey(t);"string"==typeof n&&(i=n),e[i]={...this.fields[t]}})),e})),gr(this,"setKeyByFieldSelector",(e=>{if(this.fieldIds.has(e))return this.fieldIds.get(e);const t=String(this.fieldIds.size+1);return this.fieldIds.set(e,t),t})),gr(this,"refreshAllTooltips",(()=>{this.tooltips.forEach((e=>{e.refresh()}))})),gr(this,"handleDocumentScroll",(()=>{this.lastScrollPosition=window.scrollY,this.isScrollTick||(window.requestAnimationFrame((()=>{this.refreshAllTooltips(),this.isScrollTick=!1})),this.isScrollTick=!0)})),gr(this,"formSubmitHandler",(e=>{e.preventDefault(),this.isSubmitted=!0,this.validateHandler(e)})),gr(this,"handleFieldChange",(e=>{let t;for(const i in this.fields){if(this.fields[i].elem===e){t=i;break}}t&&(this.fields[t].touched=!0,this.validateField(t,!0))})),gr(this,"handleGroupChange",(e=>{let t;for(const i in this.groupFields){if(this.groupFields[i].elems.find((t=>t===e))){t=i;break}}t&&(this.groupFields[t].touched=!0,this.validateGroup(t,!0))})),gr(this,"handlerChange",(e=>{e.target&&(this.handleFieldChange(e.target),this.handleGroupChange(e.target),this.renderErrors())})),this.initialize(e,t,i)}initialize(e,t,i){if(this.form=null,this.errors={},this.isValid=!1,this.isSubmitted=!1,this.globalConfig=Ar,this.errorLabels={},this.successLabels={},this.eventListeners=[],this.customStyleTags={},this.tooltips=[],this.currentLocale="en","string"==typeof e){const t=document.querySelector(e);if(!t)throw Error(`Form with ${e} selector not found! Please check the form selector`);this.setForm(t)}else{if(!(e instanceof HTMLFormElement))throw Error("Form selector is not valid. Please specify a string selector or a DOM element.");this.setForm(e)}if(this.globalConfig={...Ar,...t},i&&(this.dictLocale=[...i,...Cr]),this.isTooltip()){const e=document.createElement("style");e.textContent=".just-validate-error-label[data-tooltip=true]{position:fixed;padding:4px 8px;background:#423f3f;color:#fff;white-space:nowrap;z-index:10;border-radius:4px;transform:translateY(-5px)}.just-validate-error-label[data-tooltip=true]:before{content:'';width:0;height:0;border-left:solid 5px transparent;border-right:solid 5px transparent;border-bottom:solid 5px #423f3f;position:absolute;z-index:3;display:block;bottom:-5px;transform:rotate(180deg);left:calc(50% - 5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]{transform:translateX(-5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]:before{right:-7px;bottom:auto;left:auto;top:calc(50% - 2px);transform:rotate(90deg)}.just-validate-error-label[data-tooltip=true][data-direction=right]{transform:translateX(5px)}.just-validate-error-label[data-tooltip=true][data-direction=right]:before{right:auto;bottom:auto;left:-7px;top:calc(50% - 2px);transform:rotate(-90deg)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]{transform:translateY(5px)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]:before{right:auto;bottom:auto;left:calc(50% - 5px);top:-5px;transform:rotate(0)}",this.customStyleTags[Er.Label]=document.head.appendChild(e),this.addListener("scroll",document,this.handleDocumentScroll)}}getLocalisedString(e,t,i){var n;const s=null!=i?i:e;let r=null==(n=this.dictLocale.find((e=>e.key===s)))?void 0:n.dict[this.currentLocale];if(r||i&&(r=i),r&&void 0!==t)switch(e){case wr.MaxLength:case wr.MinLength:case wr.MaxNumber:case wr.MinNumber:case wr.MinFilesCount:case wr.MaxFilesCount:r=r.replace(":value",String(t))}return r||i||"Value is incorrect"}getFieldErrorMessage(e,t){const i="function"==typeof e.errorMessage?e.errorMessage(this.getElemValue(t),this.fields):e.errorMessage;return this.getLocalisedString(e.rule,e.value,i)}getFieldSuccessMessage(e,t){const i="function"==typeof e?e(this.getElemValue(t),this.fields):e;return this.getLocalisedString(void 0,void 0,i)}getGroupErrorMessage(e){return this.getLocalisedString(e.rule,void 0,e.errorMessage)}getGroupSuccessMessage(e){if(e.successMessage)return this.getLocalisedString(void 0,void 0,e.successMessage)}setFieldInvalid(e,t){this.fields[e].isValid=!1,this.fields[e].errorMessage=this.getFieldErrorMessage(t,this.fields[e].elem)}setFieldValid(e,t){this.fields[e].isValid=!0,void 0!==t&&(this.fields[e].successMessage=this.getFieldSuccessMessage(t,this.fields[e].elem))}setGroupInvalid(e,t){this.groupFields[e].isValid=!1,this.groupFields[e].errorMessage=this.getGroupErrorMessage(t)}setGroupValid(e,t){this.groupFields[e].isValid=!0,this.groupFields[e].successMessage=this.getGroupSuccessMessage(t)}getElemValue(e){switch(e.type){case"checkbox":return e.checked;case"file":return e.files;default:return e.value}}validateGroupRule(e,t,i){if(i.rule===Sr.Required)t.every((e=>!e.checked))?this.setGroupInvalid(e,i):this.setGroupValid(e,i)}validateFieldRule(e,t,i,n=!1){const s=i.value,r=this.getElemValue(t);if(i.plugin){i.plugin(r,this.getCompatibleFields())||this.setFieldInvalid(e,i)}else{switch(i.rule){case wr.Required:(e=>{let t=e;return"string"==typeof e&&(t=e.trim()),!t})(r)&&this.setFieldInvalid(e,i);break;case wr.Email:if(Tr(r))break;o=r,yr.test(o)||this.setFieldInvalid(e,i);break;case wr.MaxLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Tr(r))break;((e,t)=>e.length>t)(r,s)&&this.setFieldInvalid(e,i);break;case wr.MinLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Tr(r))break;((e,t)=>e.length<t)(r,s)&&this.setFieldInvalid(e,i);break;case wr.Password:if(Tr(r))break;(e=>vr.test(e))(r)||this.setFieldInvalid(e,i);break;case wr.StrongPassword:if(Tr(r))break;(e=>br.test(e))(r)||this.setFieldInvalid(e,i);break;case wr.Number:if(Tr(r))break;(e=>"string"==typeof e&&!isNaN(+e)&&!isNaN(parseFloat(e)))(r)||this.setFieldInvalid(e,i);break;case wr.Integer:if(Tr(r))break;(e=>_r.test(e))(r)||this.setFieldInvalid(e,i);break;case wr.MaxNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Tr(r))break;const t=+r;(Number.isNaN(t)||((e,t)=>e>t)(t,s))&&this.setFieldInvalid(e,i);break}case wr.MinNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Tr(r))break;const t=+r;(Number.isNaN(t)||((e,t)=>e<t)(t,s))&&this.setFieldInvalid(e,i);break}case wr.CustomRegexp:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(e,i);let t;try{t=new RegExp(s)}catch(t){console.error(`Value for ${i.rule} rule for [${e}] should be a valid regexp. This field will be always invalid.`),this.setFieldInvalid(e,i);break}const n=String(r);""===n||t.test(n)||this.setFieldInvalid(e,i);break}case wr.MinFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Number.isFinite(null==r?void 0:r.length)&&r.length<s){this.setFieldInvalid(e,i);break}break;case wr.MaxFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Number.isFinite(null==r?void 0:r.length)&&r.length>s){this.setFieldInvalid(e,i);break}break;case wr.Files:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(e,i);if("object"!=typeof s)return console.error(`Value for ${i.rule} rule for [${e}] field should be an object. This field will be always invalid.`),void this.setFieldInvalid(e,i);const t=s.files;if("object"!=typeof t)return console.error(`Value for ${i.rule} rule for [${e}] field should be an object with files array. This field will be always invalid.`),void this.setFieldInvalid(e,i);const n=(e,t)=>{const i=Number.isFinite(t.minSize)&&e.size<t.minSize,n=Number.isFinite(t.maxSize)&&e.size>t.maxSize,s=Array.isArray(t.names)&&!t.names.includes(e.name),r=Array.isArray(t.extensions)&&!t.extensions.includes(e.name.split(".")[e.name.split(".").length-1]),o=Array.isArray(t.types)&&!t.types.includes(e.type);return i||n||s||r||o};if("object"==typeof r&&null!==r)for(let s=0,o=r.length;s<o;++s){const o=r.item(s);if(!o){this.setFieldInvalid(e,i);break}if(n(o,t)){this.setFieldInvalid(e,i);break}}break}default:{if("function"!=typeof i.validator)return console.error(`Validator for custom rule for [${e}] field should be a function. This field will be always invalid.`),void this.setFieldInvalid(e,i);const t=i.validator(r,this.getCompatibleFields());if("boolean"!=typeof t&&"function"!=typeof t&&console.error(`Validator return value for [${e}] field should be boolean or function. It will be cast to boolean.`),"function"==typeof t){if(!n){this.fields[e].asyncCheckPending=!1;const n=t();return kr(n)?n.then((t=>{t||this.setFieldInvalid(e,i)})).catch((()=>{this.setFieldInvalid(e,i)})):(console.error(`Validator function for custom rule for [${e}] field should return a Promise. This field will be always invalid.`),void this.setFieldInvalid(e,i))}this.fields[e].asyncCheckPending=!0}t||this.setFieldInvalid(e,i)}}var o}}isFormValid(){let e=!0;for(let t=0,i=Object.values(this.fields).length;t<i;++t){const i=Object.values(this.fields)[t];if(void 0===i.isValid){e=void 0;break}if(!1===i.isValid){e=!1;break}}for(let t=0,i=Object.values(this.groupFields).length;t<i;++t){const i=Object.values(this.groupFields)[t];if(void 0===i.isValid){e=void 0;break}if(!1===i.isValid){e=!1;break}}return e}validateField(e,t=!1){var i;const n=this.fields[e];n.isValid=!0;const s=[];return[...n.rules].reverse().forEach((i=>{const r=this.validateFieldRule(e,n.elem,i,t);kr(r)&&s.push(r)})),n.isValid&&this.setFieldValid(e,null==(i=n.config)?void 0:i.successMessage),Promise.allSettled(s).finally((()=>{var e;t&&(null==(e=this.onValidateCallback)||e.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}))}))}revalidateField(e){if("string"!=typeof e&&!Ir(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);return t&&this.fields[t]?new Promise((e=>{this.validateField(t,!0).finally((()=>{this.clearFieldStyle(t),this.clearFieldLabel(t),this.renderFieldError(t,!0),e(!!this.fields[t].isValid)}))})):(console.error("Field not found. Check the field selector."),Promise.reject())}revalidateGroup(e){if("string"!=typeof e&&!Ir(e))throw Error("Group selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);return t&&this.groupFields[t]?new Promise((e=>{this.validateGroup(t).finally((()=>{this.clearFieldLabel(t),this.renderGroupError(t,!0),e(!!this.groupFields[t].isValid)}))})):(console.error("Group not found. Check the group selector."),Promise.reject())}validateGroup(e,t=!1){const i=this.groupFields[e],n=[];return[...i.rules].reverse().forEach((t=>{const s=this.validateGroupRule(e,i.elems,t);kr(s)&&n.push(s)})),Promise.allSettled(n).finally((()=>{var e;t&&(null==(e=this.onValidateCallback)||e.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}))}))}focusInvalidField(){for(const e in this.fields){const t=this.fields[e];if(!t.isValid){setTimeout((()=>t.elem.focus()),0);break}}}afterSubmitValidation(e=!1){this.renderErrors(e),this.globalConfig.focusInvalidField&&this.focusInvalidField()}validate(e=!1){return new Promise((t=>{const i=[];Object.keys(this.fields).forEach((e=>{const t=this.validateField(e);kr(t)&&i.push(t)})),Object.keys(this.groupFields).forEach((e=>{const t=this.validateGroup(e);kr(t)&&i.push(t)})),Promise.allSettled(i).then((()=>{var n;this.afterSubmitValidation(e),null==(n=this.onValidateCallback)||n.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}),t(!!i.length)}))}))}revalidate(){return new Promise((e=>{this.validateHandler(void 0,!0).finally((()=>{this.globalConfig.focusInvalidField&&this.focusInvalidField(),e(this.isValid)}))}))}validateHandler(e,t=!1){return this.globalConfig.lockForm&&this.lockForm(),this.validate(t).finally((()=>{var t,i,n;this.globalConfig.lockForm&&this.unlockForm(),this.isValid?(null==(t=this.onSuccessCallback)||t.call(this,e),this.globalConfig.submitFormAutomatically&&(null==(i=null==e?void 0:e.currentTarget)||i.submit())):null==(n=this.onFailCallback)||n.call(this,this.getCompatibleFields(),this.groupFields)}))}setForm(e){this.form=e,this.form.setAttribute("novalidate","novalidate"),this.removeListener("submit",this.form,this.formSubmitHandler),this.addListener("submit",this.form,this.formSubmitHandler)}addListener(e,t,i){t.addEventListener(e,i),this.eventListeners.push({type:e,elem:t,func:i})}removeListener(e,t,i){t.removeEventListener(e,i),this.eventListeners=this.eventListeners.filter((i=>i.type!==e||i.elem!==t))}addField(e,t,i){if("string"!=typeof e&&!Ir(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");let n;if(n="string"==typeof e?this.form.querySelector(e):e,!n)throw Error("Field doesn't exist in the DOM! Please check the field selector.");if(!Array.isArray(t)||!t.length)throw Error("Rules argument should be an array and should contain at least 1 element.");t.forEach((e=>{if(!("rule"in e||"validator"in e||"plugin"in e))throw Error("Rules argument must contain at least one rule or validator property.");if(!(e.validator||e.plugin||e.rule&&Object.values(wr).includes(e.rule)))throw Error(`Rule should be one of these types: ${Object.values(wr).join(", ")}. Provided value: ${e.rule}`)}));const s=this.setKeyByFieldSelector(e);return this.fields[s]={elem:n,rules:t,isValid:void 0,touched:!1,config:i},this.setListeners(n),(this.isSubmitted||this.globalConfig.validateBeforeSubmitting)&&this.validateField(s),this}removeField(e){if("string"!=typeof e&&!Ir(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);if(!t||!this.fields[t])return console.error("Field not found. Check the field selector."),this;const i=this.getListenerType(this.fields[t].elem.type);return this.removeListener(i,this.fields[t].elem,this.handlerChange),this.clearErrors(),delete this.fields[t],this}removeGroup(e){if("string"!=typeof e)throw Error("Group selector is not valid. Please specify a string selector.");const t=this.getKeyByFieldSelector(e);return t&&this.groupFields[t]?(this.groupFields[t].elems.forEach((e=>{const t=this.getListenerType(e.type);this.removeListener(t,e,this.handlerChange)})),this.clearErrors(),delete this.groupFields[t],this):(console.error("Group not found. Check the group selector."),this)}addRequiredGroup(e,t,i,n){if("string"!=typeof e&&!Ir(e))throw Error("Group selector is not valid. Please specify a string selector or a valid DOM element.");let s;if(s="string"==typeof e?this.form.querySelector(e):e,!s)throw Error("Group selector not found! Please check the group selector.");const r=s.querySelectorAll("input"),o=Array.from(r).filter((e=>{const t=((e,t)=>{const i=[...t].reverse();for(let t=0,n=i.length;t<n;++t){const n=i[t];for(const t in e){const i=e[t];if(i.groupElem===n)return[t,i]}}return null})(this.groupFields,(e=>{let t=e;const i=[];for(;t;)i.unshift(t),t=t.parentNode;return i})(e));return!t||t[1].elems.find((t=>t!==e))})),a=this.setKeyByFieldSelector(e);return this.groupFields[a]={rules:[{rule:Sr.Required,errorMessage:t,successMessage:n}],groupElem:s,elems:o,touched:!1,isValid:void 0,config:i},r.forEach((e=>{this.setListeners(e)})),this}getListenerType(e){switch(e){case"checkbox":case"select-one":case"file":case"radio":return"change";default:return"input"}}setListeners(e){const t=this.getListenerType(e.type);this.removeListener(t,e,this.handlerChange),this.addListener(t,e,this.handlerChange)}clearFieldLabel(e){var t,i;null==(t=this.errorLabels[e])||t.remove(),null==(i=this.successLabels[e])||i.remove()}clearFieldStyle(e){var t,i,n,s;const r=this.fields[e],o=(null==(t=r.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(o).forEach((e=>{r.elem.style[e]=""}));const a=(null==(i=r.config)?void 0:i.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(a).forEach((e=>{r.elem.style[e]=""})),r.elem.classList.remove(...xr((null==(n=r.config)?void 0:n.errorFieldCssClass)||this.globalConfig.errorFieldCssClass),...xr((null==(s=r.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}clearErrors(){var e,t;Object.keys(this.errorLabels).forEach((e=>this.errorLabels[e].remove())),Object.keys(this.successLabels).forEach((e=>this.successLabels[e].remove()));for(const e in this.fields)this.clearFieldStyle(e);for(const i in this.groupFields){const n=this.groupFields[i],s=(null==(e=n.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(s).forEach((e=>{n.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...xr((null==(i=n.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}))}));const r=(null==(t=n.config)?void 0:t.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(r).forEach((e=>{n.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...xr((null==(i=n.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}))}))}this.tooltips=[]}isTooltip(){return!!this.globalConfig.tooltip}lockForm(){const e=this.form.querySelectorAll("input, textarea, button, select");for(let t=0,i=e.length;t<i;++t)e[t].setAttribute("data-just-validate-fallback-disabled",e[t].disabled?"true":"false"),e[t].setAttribute("disabled","disabled"),e[t].style.pointerEvents="none",e[t].style.webkitFilter="grayscale(100%)",e[t].style.filter="grayscale(100%)"}unlockForm(){const e=this.form.querySelectorAll("input, textarea, button, select");for(let t=0,i=e.length;t<i;++t)"true"!==e[t].getAttribute("data-just-validate-fallback-disabled")&&e[t].removeAttribute("disabled"),e[t].style.pointerEvents="",e[t].style.webkitFilter="",e[t].style.filter=""}renderTooltip(e,t,i){var n;const{top:s,left:r,width:o,height:a}=e.getBoundingClientRect(),l=t.getBoundingClientRect(),c=i||(null==(n=this.globalConfig.tooltip)?void 0:n.position);switch(c){case"left":t.style.top=s+a/2-l.height/2+"px",t.style.left=r-l.width-5+"px";break;case"top":t.style.top=s-l.height-5+"px",t.style.left=r+o/2-l.width/2+"px";break;case"right":t.style.top=s+a/2-l.height/2+"px",t.style.left=`${r+o+5}px`;break;case"bottom":t.style.top=`${s+a+5}px`,t.style.left=r+o/2-l.width/2+"px"}t.dataset.direction=c;return{refresh:()=>{this.renderTooltip(e,t,i)}}}createErrorLabelElem(e,t,i){const n=document.createElement("div");n.innerHTML=t;const s=this.isTooltip()?null==i?void 0:i.errorLabelStyle:(null==i?void 0:i.errorLabelStyle)||this.globalConfig.errorLabelStyle;return Object.assign(n.style,s),n.classList.add(...xr((null==i?void 0:i.errorLabelCssClass)||this.globalConfig.errorLabelCssClass),"just-validate-error-label"),this.isTooltip()&&(n.dataset.tooltip="true"),this.globalConfig.testingMode&&(n.dataset.testId=`error-label-${e}`),this.errorLabels[e]=n,n}createSuccessLabelElem(e,t,i){if(void 0===t)return null;const n=document.createElement("div");n.innerHTML=t;const s=(null==i?void 0:i.successLabelStyle)||this.globalConfig.successLabelStyle;return Object.assign(n.style,s),n.classList.add(...xr((null==i?void 0:i.successLabelCssClass)||this.globalConfig.successLabelCssClass),"just-validate-success-label"),this.globalConfig.testingMode&&(n.dataset.testId=`success-label-${e}`),this.successLabels[e]=n,n}renderErrorsContainer(e,t){const i=t||this.globalConfig.errorsContainer;if("string"==typeof i){const t=this.form.querySelector(i);if(t)return t.appendChild(e),!0;console.error(`Error container with ${i} selector not found. Errors will be rendered as usual`)}return i instanceof Element?(i.appendChild(e),!0):(void 0!==i&&console.error("Error container not found. It should be a string or existing Element. Errors will be rendered as usual"),!1)}renderGroupLabel(e,t,i,n){if(!n){if(this.renderErrorsContainer(t,i))return}e.appendChild(t)}renderFieldLabel(e,t,i,n){var s,r,o,a,l,c,u;if(!n){if(this.renderErrorsContainer(t,i))return}if("checkbox"===e.type||"radio"===e.type){const i=document.querySelector(`label[for="${e.getAttribute("id")}"]`);"label"===(null==(r=null==(s=e.parentElement)?void 0:s.tagName)?void 0:r.toLowerCase())?null==(a=null==(o=e.parentElement)?void 0:o.parentElement)||a.appendChild(t):i?null==(l=i.parentElement)||l.appendChild(t):null==(c=e.parentElement)||c.appendChild(t)}else null==(u=e.parentElement)||u.appendChild(t)}showLabels(e,t){Object.keys(e).forEach(((i,n)=>{const s=e[i],r=this.getKeyByFieldSelector(i);if(!r||!this.fields[r])return void console.error("Field not found. Check the field selector.");const o=this.fields[r];o.isValid=!t,this.clearFieldStyle(r),this.clearFieldLabel(r),this.renderFieldError(r,!1,s),0===n&&this.globalConfig.focusInvalidField&&setTimeout((()=>o.elem.focus()),0)}))}showErrors(e){if("object"!=typeof e)throw Error("[showErrors]: Errors should be an object with key: value format");this.showLabels(e,!0)}showSuccessLabels(e){if("object"!=typeof e)throw Error("[showSuccessLabels]: Labels should be an object with key: value format");this.showLabels(e,!1)}renderFieldError(e,t=!1,i){var n,s,r,o,a,l;const c=this.fields[e];if(!1===c.isValid&&(this.isValid=!1),void 0===c.isValid||!t&&!this.isSubmitted&&!c.touched&&void 0===i)return;if(c.isValid){if(!c.asyncCheckPending){const t=this.createSuccessLabelElem(e,void 0!==i?i:c.successMessage,c.config);t&&this.renderFieldLabel(c.elem,t,null==(n=c.config)?void 0:n.errorsContainer,!0),c.elem.classList.add(...xr((null==(s=c.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}return}c.elem.classList.add(...xr((null==(r=c.config)?void 0:r.errorFieldCssClass)||this.globalConfig.errorFieldCssClass));const u=this.createErrorLabelElem(e,void 0!==i?i:c.errorMessage,c.config);this.renderFieldLabel(c.elem,u,null==(o=c.config)?void 0:o.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(c.elem,u,null==(l=null==(a=c.config)?void 0:a.tooltip)?void 0:l.position))}renderGroupError(e,t=!0){var i,n,s,r;const o=this.groupFields[e];if(!1===o.isValid&&(this.isValid=!1),void 0===o.isValid||!t&&!this.isSubmitted&&!o.touched)return;if(o.isValid){o.elems.forEach((e=>{var t,i;Object.assign(e.style,(null==(t=o.config)?void 0:t.successFieldStyle)||this.globalConfig.successFieldStyle),e.classList.add(...xr((null==(i=o.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}));const t=this.createSuccessLabelElem(e,o.successMessage,o.config);return void(t&&this.renderGroupLabel(o.groupElem,t,null==(i=o.config)?void 0:i.errorsContainer,!0))}this.isValid=!1,o.elems.forEach((e=>{var t,i;Object.assign(e.style,(null==(t=o.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle),e.classList.add(...xr((null==(i=o.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}));const a=this.createErrorLabelElem(e,o.errorMessage,o.config);this.renderGroupLabel(o.groupElem,a,null==(n=o.config)?void 0:n.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(o.groupElem,a,null==(r=null==(s=o.config)?void 0:s.tooltip)?void 0:r.position))}renderErrors(e=!1){if(this.isSubmitted||e||this.globalConfig.validateBeforeSubmitting){this.clearErrors(),this.isValid=!0;for(const e in this.groupFields)this.renderGroupError(e);for(const e in this.fields)this.renderFieldError(e)}}destroy(){this.eventListeners.forEach((e=>{this.removeListener(e.type,e.elem,e.func)})),Object.keys(this.customStyleTags).forEach((e=>{this.customStyleTags[e].remove()})),this.clearErrors(),this.globalConfig.lockForm&&this.unlockForm()}refresh(){this.destroy(),this.form?(this.initialize(this.form,this.globalConfig),Object.keys(this.fields).forEach((e=>{const t=this.getFieldSelectorByKey(e);t&&this.addField(t,[...this.fields[e].rules],this.fields[e].config)}))):console.error("Cannot initialize the library! Form is not defined")}setCurrentLocale(e){"string"==typeof e||void 0===e?(this.currentLocale=e,this.isSubmitted&&this.validate()):console.error("Current locale should be a string")}onSuccess(e){return this.onSuccessCallback=e,this}onFail(e){return this.onFailCallback=e,this}onValidate(e){return this.onValidateCallback=e,this}}class Pr{constructor(e,t,i,n,s){this.targetNode=e,this.classToWatch=t,this.classAddedCallback=i,this.classRemovedCallback=n,this.observer=null,this.lastClassState=e.classList.contains(this.classToWatch),this.ignoreToggle=!!s,this.init()}init(){this.observer=new MutationObserver((e=>this.mutationCallback(e))),this.observe()}observe(){this.observer.observe(this.targetNode,{attributes:!0})}disconnect(){this.observer.disconnect()}mutationCallback(e){for(let t of e)if("attributes"===t.type&&"class"===t.attributeName){let e=t.target.classList.contains(this.classToWatch);(this.ignoreToggle||this.lastClassState!==e)&&(this.lastClassState=e,e?"function"==typeof this.classAddedCallback&&this.classAddedCallback():"function"==typeof this.classRemovedCallback&&this.classRemovedCallback())}}}class Lr{constructor(e,t,i,n){this.targetNode=e,this.contentSelector=t,this.contentAddedCallback=i,this.contentRemovedCallback=n,this.observer=null,this.init()}init(){this.observer=new MutationObserver((e=>this.mutationCallback(e))),this.observe()}observe(){this.observer.observe(this.targetNode,{childList:!0,subtree:!0})}disconnect(){this.observer.disconnect()}mutationCallback(e){for(let t of e)"childList"===t.type&&(t.addedNodes.forEach((e=>{this._callbackExec(e)})),t.removedNodes.forEach((e=>{this._callbackExec(e,!0)})))}_callbackExec(e,t){const i=e.matches&&e.matches(this.contentSelector)?[e]:e.querySelectorAll?e.querySelectorAll(this.contentSelector):null,n=t&&"function"==typeof this.contentRemovedCallback?this.contentRemovedCallback:"function"==typeof this.contentAddedCallback?this.contentAddedCallback:null;i&&n&&i.forEach((e=>n(e)))}}const Dr={errorFieldCssClass:"is-invalid",errorLabelCssClass:"just-validate-error-label"},Mr="justvalidatebi";class Nr extends fi{constructor(e){super(e),this._label=new Ei(e),this._bindEvents()}static get NAME(){return"input"}_bindEvents(){"file"===this._element.getAttribute("type")&&li.on(this._element,"change.bs.input",(()=>{this._handleFileDescription()}))}_handleFileDescription(){const e=[];let t="";Array.from(this._element.files).forEach((t=>{const i=Math.round(parseInt(t.size,10)/1024);e.push(t.name+" ("+i+"kb)")})),this._element.files.length>1&&(t=this._element.files.length+" file da caricare: ");const i=mi.findOne('label[for="'+this._element.getAttribute("id")+'"] label.form-file-name',this._element);i&&(i.innerText=t+e.join("; "))}}const Rr=["select",'input[data-bs-input][type="password"]',"input.input-password[data-bs-input]",'input[data-bs-autocomplete][type="search"]','input[type="time"]','input[type="radio"]','input[type="checkbox"]'];"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("input, textarea, label").forEach((function(e){(e=>{const t=!!Rr.find((t=>e.matches(t))),i=!("number"!==e.getAttribute("type")||!e.parentNode.querySelector('button[class^="input-number-"]'));t||i||Nr.getOrCreateInstance(e)})(Ei.getInputFromLabel(e)||e)}))}));var Fr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Br(e,t){return e(t={exports:{}},t.exports),t.exports}var Ur=Br((function(e,t){self,e.exports=function(){var e={8952:function(e,t,i){var n=i(4328),s=i(36),r=TypeError;e.exports=function(e){if(n(e))return e;throw new r(s(e)+" is not a function")}},2096:function(e,t,i){var n=i(2424),s=String,r=TypeError;e.exports=function(e){if(n(e))return e;throw new r("Can't set "+s(e)+" as a prototype")}},4764:function(e,t,i){var n=i(9764).charAt;e.exports=function(e,t,i){return t+(i?n(e,t).length:1)}},6100:function(e,t,i){var n=i(7e3),s=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new s("Incorrect invocation")}},3951:function(e,t,i){var n=i(1632),s=String,r=TypeError;e.exports=function(e){if(n(e))return e;throw new r(s(e)+" is not an object")}},2504:function(e,t,i){var n=i(4096),s=i(2495),r=i(3556),o=function(e){return function(t,i,o){var a=n(t),l=r(a);if(0===l)return!e&&-1;var c,u=s(o,l);if(e&&i!=i){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},3364:function(e,t,i){var n=i(8992),s=i(1664),r=i(5712),o=i(4356),a=i(3556),l=i(2568),c=s([].push),u=function(e){var t=1===e,i=2===e,s=3===e,u=4===e,d=6===e,h=7===e,p=5===e||d;return function(f,m,g,y){for(var _,v,b=o(f),T=r(b),w=a(T),S=n(m,g),E=0,C=y||l,k=t?C(f,w):i||h?C(f,0):void 0;w>E;E++)if((p||E in T)&&(v=S(_=T[E],E,b),e))if(t)k[E]=v;else if(v)switch(e){case 3:return!0;case 5:return _;case 6:return E;case 2:c(k,_)}else switch(e){case 4:return!1;case 7:c(k,_)}return d?-1:s||u?u:k}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},953:function(e,t,i){var n=i(9957),s=i(9972),r=i(8504),o=s("species");e.exports=function(e){return r>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},1496:function(e,t,i){var n=i(9957);e.exports=function(e,t){var i=[][e];return!!i&&n((function(){i.call(null,t||function(){return 1},1)}))}},6728:function(e,t,i){var n=i(3476),s=i(1432),r=TypeError,o=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!o(e,"length").writable)throw new r("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},6736:function(e,t,i){var n=i(1432),s=i(6072),r=i(1632),o=i(9972)("species"),a=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(s(t)&&(t===a||n(t.prototype))||r(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?a:t}},2568:function(e,t,i){var n=i(6736);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},8696:function(e,t,i){var n=i(3951),s=i(3112);e.exports=function(e,t,i,r){try{return r?t(n(i)[0],i[1]):t(i)}catch(t){s(e,"throw",t)}}},1888:function(e,t,i){var n=i(1664),s=n({}.toString),r=n("".slice);e.exports=function(e){return r(s(e),8,-1)}},4427:function(e,t,i){var n=i(16),s=i(4328),r=i(1888),o=i(9972)("toStringTag"),a=Object,l="Arguments"===r(function(){return arguments}());e.exports=n?r:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?i:l?r(t):"Object"===(n=r(t))&&s(t.callee)?"Arguments":n}},9968:function(e,t,i){var n=i(5152),s=i(9252),r=i(9444),o=i(8352);e.exports=function(e,t,i){for(var a=s(t),l=o.f,c=r.f,u=0;u<a.length;u++){var d=a[u];n(e,d)||i&&n(i,d)||l(e,d,c(t,d))}}},2272:function(e,t,i){var n=i(9957);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},3336:function(e){e.exports=function(e,t){return{value:e,done:t}}},3440:function(e,t,i){var n=i(3476),s=i(8352),r=i(9728);e.exports=n?function(e,t,i){return s.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},9728:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},92:function(e,t,i){var n=i(3476),s=i(8352),r=i(9728);e.exports=function(e,t,i){n?s.f(e,t,r(0,i)):e[t]=i}},2544:function(e,t,i){var n=i(5312),s=i(8352);e.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),s.f(e,t,i)}},6076:function(e,t,i){var n=i(4328),s=i(8352),r=i(5312),o=i(4636);e.exports=function(e,t,i,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(n(i)&&r(i,c,a),a.global)l?e[t]=i:o(t,i);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=i:s.f(e,t,{value:i,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},4036:function(e,t,i){var n=i(6076);e.exports=function(e,t,i){for(var s in t)n(e,s,t[s],i);return e}},4636:function(e,t,i){var n=i(6420),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(i){n[e]=t}return t}},3476:function(e,t,i){var n=i(9957);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8168:function(e,t,i){var n=i(6420),s=i(1632),r=n.document,o=s(r)&&s(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},4316:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},6064:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},8504:function(e,t,i){var n,s,r=i(6420),o=i(6064),a=r.process,l=r.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},8256:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6520:function(e,t,i){var n=i(1664),s=Error,r=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=r(e,a,"");return e}},3696:function(e,t,i){var n=i(3440),s=i(6520),r=i(9184),o=Error.captureStackTrace;e.exports=function(e,t,i,a){r&&(o?o(e,t):n(e,"stack",s(i,a)))}},9184:function(e,t,i){var n=i(9957),s=i(9728);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9160:function(e,t,i){var n=i(6420),s=i(9444).f,r=i(3440),o=i(6076),a=i(4636),l=i(9968),c=i(6704);e.exports=function(e,t){var i,u,d,h,p,f=e.target,m=e.global,g=e.stat;if(i=m?n:g?n[f]||a(f,{}):n[f]&&n[f].prototype)for(u in t){if(h=t[u],d=e.dontCallGetSet?(p=s(i,u))&&p.value:i[u],!c(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&r(h,"sham",!0),o(i,u,h,e)}}},9957:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7176:function(e,t,i){i(880);var n=i(8448),s=i(6076),r=i(7680),o=i(9957),a=i(9972),l=i(3440),c=a("species"),u=RegExp.prototype;e.exports=function(e,t,i,d){var h=a(e),p=!o((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),f=p&&!o((function(){var t=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[c]=function(){return i},i.flags="",i[h]=/./[h]),i.exec=function(){return t=!0,null},i[h](""),!t}));if(!p||!f||i){var m=/./[h],g=t(h,""[e],(function(e,t,i,s,o){var a=t.exec;return a===r||a===u.exec?p&&!o?{done:!0,value:n(m,t,i,s)}:{done:!0,value:n(e,i,t,s)}:{done:!1}}));s(String.prototype,e,g[0]),s(u,h,g[1])}d&&l(u[h],"sham",!0)}},908:function(e,t,i){var n=i(7332),s=Function.prototype,r=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(r):function(){return o.apply(r,arguments)})},8992:function(e,t,i){var n=i(3180),s=i(8952),r=i(7332),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:r?o(e,t):function(){return e.apply(t,arguments)}}},7332:function(e,t,i){var n=i(9957);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8448:function(e,t,i){var n=i(7332),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},6208:function(e,t,i){var n=i(3476),s=i(5152),r=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(r,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&o(r,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},5288:function(e,t,i){var n=i(1664),s=i(8952);e.exports=function(e,t,i){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[i]))}catch(e){}}},3180:function(e,t,i){var n=i(1888),s=i(1664);e.exports=function(e){if("Function"===n(e))return s(e)}},1664:function(e,t,i){var n=i(7332),s=Function.prototype,r=s.call,o=n&&s.bind.bind(r,r);e.exports=n?o:function(e){return function(){return r.apply(e,arguments)}}},5232:function(e,t,i){var n=i(6420),s=i(4328);e.exports=function(e,t){return arguments.length<2?(i=n[e],s(i)?i:void 0):n[e]&&n[e][t];var i}},6752:function(e){e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},4504:function(e,t,i){var n=i(8952),s=i(9760);e.exports=function(e,t){var i=e[t];return s(i)?void 0:n(i)}},6420:function(e,t,i){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},5152:function(e,t,i){var n=i(1664),s=i(4356),r=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(s(e),t)}},2560:function(e){e.exports={}},4168:function(e,t,i){var n=i(5232);e.exports=n("document","documentElement")},9888:function(e,t,i){var n=i(3476),s=i(9957),r=i(8168);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},5712:function(e,t,i){var n=i(1664),s=i(9957),r=i(1888),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===r(e)?a(e,""):o(e)}:o},7512:function(e,t,i){var n=i(4328),s=i(1632),r=i(4024);e.exports=function(e,t,i){var o,a;return r&&n(o=t.constructor)&&o!==i&&s(a=o.prototype)&&a!==i.prototype&&r(e,a),e}},9112:function(e,t,i){var n=i(1664),s=i(4328),r=i(3976),o=n(Function.toString);s(r.inspectSource)||(r.inspectSource=function(e){return o(e)}),e.exports=r.inspectSource},3480:function(e,t,i){var n=i(1632),s=i(3440);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},9104:function(e,t,i){var n,s,r,o=i(4288),a=i(6420),l=i(1632),c=i(3440),u=i(5152),d=i(3976),h=i(6504),p=i(2560),f="Object already initialized",m=a.TypeError,g=a.WeakMap;if(o||d.state){var y=d.state||(d.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new m(f);return t.facade=e,y.set(e,t),t},s=function(e){return y.get(e)||{}},r=function(e){return y.has(e)}}else{var _=h("state");p[_]=!0,n=function(e,t){if(u(e,_))throw new m(f);return t.facade=e,c(e,_,t),t},s=function(e){return u(e,_)?e[_]:{}},r=function(e){return u(e,_)}}e.exports={set:n,get:s,has:r,enforce:function(e){return r(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=s(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return i}}}},1432:function(e,t,i){var n=i(1888);e.exports=Array.isArray||function(e){return"Array"===n(e)}},4328:function(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},6072:function(e,t,i){var n=i(1664),s=i(9957),r=i(4328),o=i(4427),a=i(5232),l=i(9112),c=function(){},u=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=n(d.exec),p=!d.test(c),f=function(e){if(!r(e))return!1;try{return u(c,[],e),!0}catch(e){return!1}},m=function(e){if(!r(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!u||s((function(){var e;return f(f.call)||!f(Object)||!f((function(){e=!0}))||e}))?m:f},6704:function(e,t,i){var n=i(9957),s=i(4328),r=/#|\.prototype\./,o=function(e,t){var i=l[a(e)];return i===u||i!==c&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},9760:function(e){e.exports=function(e){return null==e}},1632:function(e,t,i){var n=i(4328);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},2424:function(e,t,i){var n=i(1632);e.exports=function(e){return n(e)||null===e}},7048:function(e){e.exports=!1},7728:function(e,t,i){var n=i(5232),s=i(4328),r=i(7e3),o=i(6536),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&r(t.prototype,a(e))}},3112:function(e,t,i){var n=i(8448),s=i(3951),r=i(4504);e.exports=function(e,t,i){var o,a;s(e);try{if(!(o=r(e,"return"))){if("throw"===t)throw i;return i}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw i;if(a)throw o;return s(o),i}},9724:function(e,t,i){var n=i(8448),s=i(9368),r=i(3440),o=i(4036),a=i(9972),l=i(9104),c=i(4504),u=i(336).IteratorPrototype,d=i(3336),h=i(3112),p=a("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",g=l.set,y=function(e){var t=l.getterFor(e?m:f);return o(s(u),{next:function(){var i=t(this);if(e)return i.nextHandler();try{var n=i.done?void 0:i.nextHandler();return d(n,i.done)}catch(e){throw i.done=!0,e}},return:function(){var i=t(this),s=i.iterator;if(i.done=!0,e){var r=c(s,"return");return r?n(r,s):d(void 0,!0)}if(i.inner)try{h(i.inner.iterator,"normal")}catch(e){return h(s,"throw",e)}return h(s,"normal"),d(void 0,!0)}})},_=y(!0),v=y(!1);r(v,p,"Iterator Helper"),e.exports=function(e,t){var i=function(i,n){n?(n.iterator=i.iterator,n.next=i.next):n=i,n.type=t?m:f,n.nextHandler=e,n.counter=0,n.done=!1,g(this,n)};return i.prototype=t?_:v,i}},5792:function(e,t,i){var n=i(8448),s=i(8952),r=i(3951),o=i(6752),a=i(9724),l=i(8696),c=a((function(){var e=this.iterator,t=r(n(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return r(this),s(e),new c(o(this),{mapper:e})}},336:function(e,t,i){var n,s,r,o=i(9957),a=i(4328),l=i(1632),c=i(9368),u=i(7796),d=i(6076),h=i(9972),p=i(7048),f=h("iterator"),m=!1;[].keys&&("next"in(r=[].keys())?(s=u(u(r)))!==Object.prototype&&(n=s):m=!0),!l(n)||o((function(){var e={};return n[f].call(e)!==e}))?n={}:p&&(n=c(n)),a(n[f])||d(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},3556:function(e,t,i){var n=i(7584);e.exports=function(e){return n(e.length)}},5312:function(e,t,i){var n=i(1664),s=i(9957),r=i(4328),o=i(5152),a=i(3476),l=i(6208).CONFIGURABLE,c=i(9112),u=i(9104),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),_=a&&!s((function(){return 8!==f((function(){}),"length",{value:8}).length})),v=String(String).split("String"),b=e.exports=function(e,t,i){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(t="get "+t),i&&i.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),_&&i&&o(i,"arity")&&e.length!==i.arity&&f(e,"length",{value:i.arity});try{i&&o(i,"constructor")&&i.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return o(n,"source")||(n.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return r(this)&&h(this).source||c(this)}),"toString")},1748:function(e){var t=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:t)(n)}},8948:function(e,t,i){var n=i(5016);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},9292:function(e,t,i){var n=i(3476),s=i(1664),r=i(8448),o=i(9957),a=i(1531),l=i(9392),c=i(8912),u=i(4356),d=i(5712),h=Object.assign,p=Object.defineProperty,f=s([].concat);e.exports=!h||o((function(){if(n&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol("assign detection"),s="abcdefghijklmnopqrst";return e[i]=7,s.split("").forEach((function(e){t[e]=e})),7!==h({},e)[i]||a(h({},t)).join("")!==s}))?function(e,t){for(var i=u(e),s=arguments.length,o=1,h=l.f,p=c.f;s>o;)for(var m,g=d(arguments[o++]),y=h?f(a(g),h(g)):a(g),_=y.length,v=0;_>v;)m=y[v++],n&&!r(p,g,m)||(i[m]=g[m]);return i}:h},9368:function(e,t,i){var n,s=i(3951),r=i(2056),o=i(8256),a=i(2560),l=i(4168),c=i(8168),u=i(6504),d="prototype",h="script",p=u("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,i;y="undefined"!=typeof document?document.domain&&n?g(n):(t=c("iframe"),i="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(i),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var s=o.length;s--;)delete y[d][o[s]];return y()};a[p]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(f[d]=s(e),i=new f,f[d]=null,i[p]=e):i=y(),void 0===t?i:r.f(i,t)}},2056:function(e,t,i){var n=i(3476),s=i(1576),r=i(8352),o=i(3951),a=i(4096),l=i(1531);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var i,n=a(t),s=l(t),c=s.length,u=0;c>u;)r.f(e,i=s[u++],n[i]);return e}},8352:function(e,t,i){var n=i(3476),s=i(9888),r=i(1576),o=i(3951),a=i(88),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=n?r?function(e,t,i){if(o(e),t=a(t),o(i),"function"==typeof e&&"prototype"===t&&"value"in i&&p in i&&!i[p]){var n=u(e,t);n&&n[p]&&(e[t]=i.value,i={configurable:h in i?i[h]:n[h],enumerable:d in i?i[d]:n[d],writable:!1})}return c(e,t,i)}:c:function(e,t,i){if(o(e),t=a(t),o(i),s)try{return c(e,t,i)}catch(e){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},9444:function(e,t,i){var n=i(3476),s=i(8448),r=i(8912),o=i(9728),a=i(4096),l=i(88),c=i(5152),u=i(9888),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return o(!s(r.f,e,t),e[t])}},5048:function(e,t,i){var n=i(9008),s=i(8256).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},9392:function(e,t){t.f=Object.getOwnPropertySymbols},7796:function(e,t,i){var n=i(5152),s=i(4328),r=i(4356),o=i(6504),a=i(2272),l=o("IE_PROTO"),c=Object,u=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=r(e);if(n(t,l))return t[l];var i=t.constructor;return s(i)&&t instanceof i?i.prototype:t instanceof c?u:null}},7e3:function(e,t,i){var n=i(1664);e.exports=n({}.isPrototypeOf)},9008:function(e,t,i){var n=i(1664),s=i(5152),r=i(4096),o=i(2504).indexOf,a=i(2560),l=n([].push);e.exports=function(e,t){var i,n=r(e),c=0,u=[];for(i in n)!s(a,i)&&s(n,i)&&l(u,i);for(;t.length>c;)s(n,i=t[c++])&&(~o(u,i)||l(u,i));return u}},1531:function(e,t,i){var n=i(9008),s=i(8256);e.exports=Object.keys||function(e){return n(e,s)}},8912:function(e,t){var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!i.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:i},4024:function(e,t,i){var n=i(5288),s=i(3951),r=i(2096);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=n(Object.prototype,"__proto__","set"))(i,[]),t=i instanceof Array}catch(e){}return function(i,n){return s(i),r(n),t?e(i,n):i.__proto__=n,i}}():void 0)},7032:function(e,t,i){var n=i(16),s=i(4427);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},2104:function(e,t,i){var n=i(8448),s=i(4328),r=i(1632),o=TypeError;e.exports=function(e,t){var i,a;if("string"===t&&s(i=e.toString)&&!r(a=n(i,e)))return a;if(s(i=e.valueOf)&&!r(a=n(i,e)))return a;if("string"!==t&&s(i=e.toString)&&!r(a=n(i,e)))return a;throw new o("Can't convert object to primitive value")}},9252:function(e,t,i){var n=i(5232),s=i(1664),r=i(5048),o=i(9392),a=i(3951),l=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=r.f(a(e)),i=o.f;return i?l(t,i(e)):t}},584:function(e,t,i){var n=i(8352).f;e.exports=function(e,t,i){i in e||n(e,i,{configurable:!0,get:function(){return t[i]},set:function(e){t[i]=e}})}},9092:function(e,t,i){var n=i(8448),s=i(3951),r=i(4328),o=i(1888),a=i(7680),l=TypeError;e.exports=function(e,t){var i=e.exec;if(r(i)){var c=n(i,e,t);return null!==c&&s(c),c}if("RegExp"===o(e))return n(a,e,t);throw new l("RegExp#exec called on incompatible receiver")}},7680:function(e,t,i){var n,s,r=i(8448),o=i(1664),a=i(5016),l=i(8872),c=i(3548),u=i(4696),d=i(9368),h=i(9104).get,p=i(8e3),f=i(9124),m=u("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,_=o("".charAt),v=o("".indexOf),b=o("".replace),T=o("".slice),w=(s=/b*/g,r(g,n=/a/,"a"),r(g,s,"a"),0!==n.lastIndex||0!==s.lastIndex),S=c.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(w||E||S||p||f)&&(y=function(e){var t,i,n,s,o,c,u,p=this,f=h(p),C=a(e),k=f.raw;if(k)return k.lastIndex=p.lastIndex,t=r(y,k,C),p.lastIndex=k.lastIndex,t;var x=f.groups,I=S&&p.sticky,A=r(l,p),O=p.source,P=0,L=C;if(I&&(A=b(A,"y",""),-1===v(A,"g")&&(A+="g"),L=T(C,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==_(C,p.lastIndex-1))&&(O="(?: "+O+")",L=" "+L,P++),i=new RegExp("^(?:"+O+")",A)),E&&(i=new RegExp("^"+O+"$(?!\\s)",A)),w&&(n=p.lastIndex),s=r(g,I?i:p,L),I?s?(s.input=T(s.input,P),s[0]=T(s[0],P),s.index=p.lastIndex,p.lastIndex+=s[0].length):p.lastIndex=0:w&&s&&(p.lastIndex=p.global?s.index+s[0].length:n),E&&s&&s.length>1&&r(m,s[0],i,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(s[o]=void 0)})),s&&x)for(s.groups=c=d(null),o=0;o<x.length;o++)c[(u=x[o])[0]]=s[u[1]];return s}),e.exports=y},8872:function(e,t,i){var n=i(3951);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},3548:function(e,t,i){var n=i(9957),s=i(6420).RegExp,r=n((function(){var e=s("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),o=r||n((function(){return!s("a","y").sticky})),a=r||n((function(){var e=s("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:a,MISSED_STICKY:o,UNSUPPORTED_Y:r}},8e3:function(e,t,i){var n=i(9957),s=i(6420).RegExp;e.exports=n((function(){var e=s(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},9124:function(e,t,i){var n=i(9957),s=i(6420).RegExp;e.exports=n((function(){var e=s("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},5436:function(e,t,i){var n=i(9760),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},6504:function(e,t,i){var n=i(4696),s=i(7776),r=n("keys");e.exports=function(e){return r[e]||(r[e]=s(e))}},3976:function(e,t,i){var n=i(7048),s=i(6420),r=i(4636),o="__core-js_shared__",a=e.exports=s[o]||r(o,{});(a.versions||(a.versions=[])).push({version:"3.36.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},4696:function(e,t,i){var n=i(3976);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},9764:function(e,t,i){var n=i(1664),s=i(6180),r=i(5016),o=i(5436),a=n("".charAt),l=n("".charCodeAt),c=n("".slice),u=function(e){return function(t,i){var n,u,d=r(o(t)),h=s(i),p=d.length;return h<0||h>=p?e?"":void 0:(n=l(d,h))<55296||n>56319||h+1===p||(u=l(d,h+1))<56320||u>57343?e?a(d,h):n:e?c(d,h,h+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},772:function(e,t,i){var n=i(8504),s=i(9957),r=i(6420).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2495:function(e,t,i){var n=i(6180),s=Math.max,r=Math.min;e.exports=function(e,t){var i=n(e);return i<0?s(i+t,0):r(i,t)}},4096:function(e,t,i){var n=i(5712),s=i(5436);e.exports=function(e){return n(s(e))}},6180:function(e,t,i){var n=i(1748);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},7584:function(e,t,i){var n=i(6180),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},4356:function(e,t,i){var n=i(5436),s=Object;e.exports=function(e){return s(n(e))}},7024:function(e,t,i){var n=i(8448),s=i(1632),r=i(7728),o=i(4504),a=i(2104),l=i(9972),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!s(e)||r(e))return e;var i,l=o(e,u);if(l){if(void 0===t&&(t="default"),i=n(l,e,t),!s(i)||r(i))return i;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},88:function(e,t,i){var n=i(7024),s=i(7728);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},16:function(e,t,i){var n={};n[i(9972)("toStringTag")]="z",e.exports="[object z]"===String(n)},5016:function(e,t,i){var n=i(4427),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},36:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},7776:function(e,t,i){var n=i(1664),s=0,r=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+r,36)}},6536:function(e,t,i){var n=i(772);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1576:function(e,t,i){var n=i(3476),s=i(9957);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4288:function(e,t,i){var n=i(6420),s=i(4328),r=n.WeakMap;e.exports=s(r)&&/native code/.test(String(r))},9972:function(e,t,i){var n=i(6420),s=i(4696),r=i(5152),o=i(7776),a=i(772),l=i(6536),c=n.Symbol,u=s("wks"),d=l?c.for||c:c&&c.withoutSetter||o;e.exports=function(e){return r(u,e)||(u[e]=a&&r(c,e)?c[e]:d("Symbol."+e)),u[e]}},6488:function(e,t,i){var n=i(5232),s=i(5152),r=i(3440),o=i(7e3),a=i(4024),l=i(9968),c=i(584),u=i(7512),d=i(8948),h=i(3480),p=i(3696),f=i(3476),m=i(7048);e.exports=function(e,t,i,g){var y="stackTraceLimit",_=g?2:1,v=e.split("."),b=v[v.length-1],T=n.apply(null,v);if(T){var w=T.prototype;if(!m&&s(w,"cause")&&delete w.cause,!i)return T;var S=n("Error"),E=t((function(e,t){var i=d(g?t:e,void 0),n=g?new T(e):new T;return void 0!==i&&r(n,"message",i),p(n,E,n.stack,2),this&&o(w,this)&&u(n,this,E),arguments.length>_&&h(n,arguments[_]),n}));if(E.prototype=w,"Error"!==b?a?a(E,S):l(E,S,{name:!0}):f&&y in T&&(c(E,T,y),c(E,T,"prepareStackTrace")),l(E,T),!m)try{w.name!==b&&r(w,"name",b),w.constructor=E}catch(e){}return E}}},7476:function(e,t,i){var n=i(9160),s=i(9957),r=i(1432),o=i(1632),a=i(4356),l=i(3556),c=i(4316),u=i(92),d=i(2568),h=i(953),p=i(9972),f=i(8504),m=p("isConcatSpreadable"),g=f>=51||!s((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:r(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!h("concat")},{concat:function(e){var t,i,n,s,r,o=a(this),h=d(o,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(y(r=-1===t?o:arguments[t]))for(s=l(r),c(p+s),i=0;i<s;i++,p++)i in r&&u(h,p,r[i]);else c(p+1),u(h,p++,r);return h.length=p,h}})},6932:function(e,t,i){var n=i(9160),s=i(3364).filter;n({target:"Array",proto:!0,forced:!i(953)("filter")},{filter:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},700:function(e,t,i){var n=i(9160),s=i(1664),r=i(5712),o=i(4096),a=i(1496),l=s([].join);n({target:"Array",proto:!0,forced:r!==Object||!a("join",",")},{join:function(e){return l(o(this),void 0===e?",":e)}})},4456:function(e,t,i){var n=i(9160),s=i(3364).map;n({target:"Array",proto:!0,forced:!i(953)("map")},{map:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},4728:function(e,t,i){var n=i(9160),s=i(4356),r=i(3556),o=i(6728),a=i(4316);n({target:"Array",proto:!0,arity:1,forced:i(9957)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=s(this),i=r(t),n=arguments.length;a(i+n);for(var l=0;l<n;l++)t[i]=arguments[l],i++;return o(t,i),i}})},8752:function(e,t,i){var n=i(9160),s=i(6420),r=i(908),o=i(6488),a="WebAssembly",l=s[a],c=7!==new Error("e",{cause:7}).cause,u=function(e,t){var i={};i[e]=o(e,t,c),n({global:!0,constructor:!0,arity:1,forced:c},i)},d=function(e,t){if(l&&l[e]){var i={};i[e]=o(a+"."+e,t,c),n({target:a,stat:!0,constructor:!0,arity:1,forced:c},i)}};u("Error",(function(e){return function(t){return r(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),u("URIError",(function(e){return function(t){return r(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}}))},508:function(e,t,i){var n=i(3476),s=i(6208).EXISTS,r=i(1664),o=i(2544),a=Function.prototype,l=r(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=r(c.exec);n&&!s&&o(a,"name",{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(e){return""}}})},232:function(e,t,i){var n=i(9160),s=i(9292);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==s},{assign:s})},5443:function(e,t,i){var n=i(16),s=i(6076),r=i(7032);n||s(Object.prototype,"toString",r,{unsafe:!0})},880:function(e,t,i){var n=i(9160),s=i(7680);n({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},9836:function(e,t,i){var n=i(8448),s=i(7176),r=i(3951),o=i(9760),a=i(7584),l=i(5016),c=i(5436),u=i(4504),d=i(4764),h=i(9092);s("match",(function(e,t,i){return[function(t){var i=c(this),s=o(t)?void 0:u(t,e);return s?n(s,t,i):new RegExp(t)[e](l(i))},function(e){var n=r(this),s=l(e),o=i(t,n,s);if(o.done)return o.value;if(!n.global)return h(n,s);var c=n.unicode;n.lastIndex=0;for(var u,p=[],f=0;null!==(u=h(n,s));){var m=l(u[0]);p[f]=m,""===m&&(n.lastIndex=d(s,a(n.lastIndex),c)),f++}return 0===f?null:p}]}))},3536:function(e,t,i){var n=i(9160),s=i(6420),r=i(6100),o=i(3951),a=i(4328),l=i(7796),c=i(2544),u=i(92),d=i(9957),h=i(5152),p=i(9972),f=i(336).IteratorPrototype,m=i(3476),g=i(7048),y="constructor",_="Iterator",v=p("toStringTag"),b=TypeError,T=s[_],w=g||!a(T)||T.prototype!==f||!d((function(){T({})})),S=function(){if(r(this,f),l(this)===f)throw new b("Abstract class Iterator not directly constructable")},E=function(e,t){m?c(f,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===f)throw new b("You can't redefine this property");h(this,e)?this[e]=t:u(this,e,t)}}):f[e]=t};h(f,v)||E(v,_),!w&&h(f,y)&&f[y]!==Object||E(y,S),S.prototype=f,n({global:!0,constructor:!0,forced:w},{Iterator:S})},2144:function(e,t,i){var n=i(9160),s=i(8448),r=i(8952),o=i(3951),a=i(6752),l=i(9724),c=i(8696),u=i(7048),d=l((function(){for(var e,t,i=this.iterator,n=this.predicate,r=this.next;;){if(e=o(s(r,i)),this.done=!!e.done)return;if(t=e.value,c(i,n,[t,this.counter++],!0))return t}}));n({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(e){return o(this),r(e),new d(a(this),{predicate:e})}})},9080:function(e,t,i){var n=i(9160),s=i(5792);n({target:"Iterator",proto:!0,real:!0,forced:i(7048)},{map:s})}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,i),r.exports}i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var n={};return function(){i.d(n,{default:function(){return X}}),i(8752),i(6932),i(4456),i(508),i(232),i(5443),i(3536),i(2144),i(9080);var e=function(){},t={},s=[],r=[];function o(i,n){var o,a,l,c,u=r;for(c=arguments.length;c-- >2;)s.push(arguments[c]);for(n&&null!=n.children&&(s.length||s.push(n.children),delete n.children);s.length;)if((a=s.pop())&&void 0!==a.pop)for(c=a.length;c--;)s.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof i)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&o?u[u.length-1]+=a:u===r?u=[a]:u.push(a),o=l;var d=new e;return d.nodeName=i,d.children=u,d.attributes=null==n?void 0:n,d.key=null==n?void 0:n.key,void 0!==t.vnode&&t.vnode(d),d}function a(e,t){for(var i in t)e[i]=t[i];return e}function l(e,t){e&&("function"==typeof e?e(t):e.current=t)}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,d=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==d.push(e)&&(t.debounceRendering||c)(p)}function p(){for(var e;e=d.pop();)e._dirty&&D(e)}function f(e,t,i){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&m(e,t.nodeName):i||e._componentConstructor===t.nodeName}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(e){var t=a({},e.attributes);t.children=e.children;var i=e.nodeName.defaultProps;if(void 0!==i)for(var n in i)void 0===t[n]&&(t[n]=i[n]);return t}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,i,n,s){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)l(i,null),l(n,e);else if("class"!==t||s)if("style"===t){if(n&&"string"!=typeof n&&"string"!=typeof i||(e.style.cssText=n||""),n&&"object"==typeof n){if("string"!=typeof i)for(var r in i)r in n||(e.style[r]="");for(var r in n)e.style[r]="number"==typeof n[r]&&!1===u.test(r)?n[r]+"px":n[r]}}else if("dangerouslySetInnerHTML"===t)n&&(e.innerHTML=n.__html||"");else if("o"==t[0]&&"n"==t[1]){var o=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),n?i||e.addEventListener(t,v,o):e.removeEventListener(t,v,o),(e._listeners||(e._listeners={}))[t]=n}else if("list"!==t&&"type"!==t&&!s&&t in e){try{e[t]=null==n?"":n}catch(e){}null!=n&&!1!==n||"spellcheck"==t||e.removeAttribute(t)}else{var a=s&&t!==(t=t.replace(/^xlink:?/,""));null==n||!1===n?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof n&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):e.setAttribute(t,n))}else e.className=n||""}function v(e){return this._listeners[e.type](t.event&&t.event(e)||e)}var b=[],T=0,w=!1,S=!1;function E(){for(var e;e=b.shift();)t.afterMount&&t.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,i,n,s,r){T++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var o=k(e,t,i,n,r);return s&&o.parentNode!==s&&s.appendChild(o),--T||(S=!1,r||E()),o}function k(e,t,i,n,s){var r=e,o=w;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||s)?e.nodeValue!=t&&(e.nodeValue=t):(r=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(r,e),x(e,!0))),r.__preactattr_=!0,r;var a,l,c=t.nodeName;if("function"==typeof c)return function(e,t,i,n){for(var s=e&&e._component,r=s,o=e,a=s&&e._componentConstructor===t.nodeName,l=a,c=g(t);s&&!l&&(s=s._parentComponent);)l=s.constructor===t.nodeName;return s&&l&&(!n||s._component)?(L(s,c,3,i,n),e=s.base):(r&&!a&&(M(r),e=o=null),s=O(t.nodeName,c,i),e&&!s.nextBase&&(s.nextBase=e,o=null),L(s,c,1,i,n),e=s.base,o&&e!==o&&(o._component=null,x(o,!1))),e}(e,t,i,n);if(w="svg"===c||"foreignObject"!==c&&w,c=String(c),(!e||!m(e,c))&&(a=c,(l=w?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,r=l,e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),x(e,!0)}var u=r.firstChild,d=r.__preactattr_,h=t.children;if(null==d){d=r.__preactattr_={};for(var p=r.attributes,v=p.length;v--;)d[p[v].name]=p[v].value}return!S&&h&&1===h.length&&"string"==typeof h[0]&&null!=u&&void 0!==u.splitText&&null==u.nextSibling?u.nodeValue!=h[0]&&(u.nodeValue=h[0]):(h&&h.length||null!=u)&&function(e,t,i,n,s){var r,o,a,l,c,u=e.childNodes,d=[],h={},p=0,m=0,g=u.length,_=0,v=t?t.length:0;if(0!==g)for(var b=0;b<g;b++){var T=u[b],w=T.__preactattr_;null!=(S=v&&w?T._component?T._component.__key:w.key:null)?(p++,h[S]=T):(w||(void 0!==T.splitText?!s||T.nodeValue.trim():s))&&(d[_++]=T)}if(0!==v)for(b=0;b<v;b++){var S;if(c=null,null!=(S=(l=t[b]).key))p&&void 0!==h[S]&&(c=h[S],h[S]=void 0,p--);else if(m<_)for(r=m;r<_;r++)if(void 0!==d[r]&&f(o=d[r],l,s)){c=o,d[r]=void 0,r===_-1&&_--,r===m&&m++;break}c=k(c,l,i,n),a=u[b],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?y(a):e.insertBefore(c,a))}if(p)for(var b in h)void 0!==h[b]&&x(h[b],!1);for(;m<=_;)void 0!==(c=d[_--])&&x(c,!1)}(r,h,i,n,S||null!=d.dangerouslySetInnerHTML),function(e,t,i){var n;for(n in i)t&&null!=t[n]||null==i[n]||_(e,n,i[n],i[n]=void 0,w);for(n in t)"children"===n||"innerHTML"===n||n in i&&t[n]===("value"===n||"checked"===n?e[n]:i[n])||_(e,n,i[n],i[n]=t[n],w)}(r,t.attributes,d),w=o,r}function x(e,t){var i=e._component;i?M(i):(null!=e.__preactattr_&&l(e.__preactattr_.ref,null),!1!==t&&null!=e.__preactattr_||y(e),I(e))}function I(e){for(e=e.lastChild;e;){var t=e.previousSibling;x(e,!0),e=t}}var A=[];function O(e,t,i){var n,s=A.length;for(e.prototype&&e.prototype.render?(n=new e(t,i),N.call(n,t,i)):((n=new N(t,i)).constructor=e,n.render=P);s--;)if(A[s].constructor===e)return n.nextBase=A[s].nextBase,A.splice(s,1),n;return n}function P(e,t,i){return this.constructor(e,i)}function L(e,i,n,s,r){e._disable||(e._disable=!0,e.__ref=i.ref,e.__key=i.key,delete i.ref,delete i.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(i,s)),s&&s!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=s),e.prevProps||(e.prevProps=e.props),e.props=i,e._disable=!1,0!==n&&(1!==n&&!1===t.syncComponentUpdates&&e.base?h(e):D(e,1,r)),l(e.__ref,e))}function D(e,i,n,s){if(!e._disable){var r,o,l,c=e.props,u=e.state,d=e.context,h=e.prevProps||c,p=e.prevState||u,f=e.prevContext||d,m=e.base,y=e.nextBase,_=m||y,v=e._component,w=!1,S=f;if(e.constructor.getDerivedStateFromProps&&(u=a(a({},u),e.constructor.getDerivedStateFromProps(c,u)),e.state=u),m&&(e.props=h,e.state=p,e.context=f,2!==i&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,u,d)?w=!0:e.componentWillUpdate&&e.componentWillUpdate(c,u,d),e.props=c,e.state=u,e.context=d),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!w){r=e.render(c,u,d),e.getChildContext&&(d=a(a({},d),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(S=e.getSnapshotBeforeUpdate(h,p));var k,I,A=r&&r.nodeName;if("function"==typeof A){var P=g(r);(o=v)&&o.constructor===A&&P.key==o.__key?L(o,P,1,d,!1):(k=o,e._component=o=O(A,P,d),o.nextBase=o.nextBase||y,o._parentComponent=e,L(o,P,0,d,!1),D(o,1,n,!0)),I=o.base}else l=_,(k=v)&&(l=e._component=null),(_||1===i)&&(l&&(l._component=null),I=C(l,r,d,n||!m,_&&_.parentNode,!0));if(_&&I!==_&&o!==v){var N=_.parentNode;N&&I!==N&&(N.replaceChild(I,_),k||(_._component=null,x(_,!1)))}if(k&&M(k),e.base=I,I&&!s){for(var R=e,F=e;F=F._parentComponent;)(R=F).base=I;I._component=R,I._componentConstructor=R.constructor}}for(!m||n?b.push(e):w||(e.componentDidUpdate&&e.componentDidUpdate(h,p,S),t.afterUpdate&&t.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);T||s||E()}}function M(e){t.beforeUnmount&&t.beforeUnmount(e);var i=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?M(n):i&&(null!=i.__preactattr_&&l(i.__preactattr_.ref,null),e.nextBase=i,y(i),A.push(e),I(i)),l(e.__ref,null)}function N(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function R(e,t,i){return C(i,e,{},!1,t,!1)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}a(N.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=a(a({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),h(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),D(this,2)},render:function(){}}),i(700),i(4728),i(880),i(9836),i(7476);var B=function(e){var t,i;function n(){for(var t,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return(t=e.call.apply(e,[this].concat(n))||this).state={bump:!1,debounced:!1},t}i=e,(t=n).prototype=Object.create(i.prototype),t.prototype.constructor=t,F(t,i);var s=n.prototype;return s.componentWillMount=function(){var e,t,i,n=this;this.debounceStatusUpdate=(e=function(){if(!n.state.debounced){var e=!n.props.isInFocus||n.props.validChoiceMade;n.setState((function(t){return{bump:!t.bump,debounced:!0,silenced:e}}))}},t=1400,function(){var n=this,s=arguments;clearTimeout(i),i=setTimeout((function(){i=null,e.apply(n,s)}),t)})},s.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},s.render=function(){var e=this.props,t=e.id,i=e.length,n=e.queryLength,s=e.minQueryLength,r=e.selectedOption,a=e.selectedOptionIndex,l=e.tQueryTooShort,c=e.tNoResults,u=e.tSelectedOption,d=e.tResults,h=e.className,p=this.state,f=p.bump,m=p.debounced,g=p.silenced,y=n<s,_=0===i,v=r?u(r,i,a):"",b=null;return b=y?l(s):_?c():d(i,v),this.debounceStatusUpdate(),o("div",{className:h,style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},o("div",{id:t+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!g&&m&&f?b:""),o("div",{id:t+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!m||f?"":b))},n}(N);B.defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,i){return e+" "+(i+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}};var U=function(e){return o("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:e.className,focusable:"false"},o("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},o("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},j.apply(this,arguments)}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}var V={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function H(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var z=function(e){var t,i;function n(t){var i;return(i=e.call(this,t)||this).elementReferences={},i.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0},i.handleComponentBlur=i.handleComponentBlur.bind($(i)),i.handleKeyDown=i.handleKeyDown.bind($(i)),i.handleUpArrow=i.handleUpArrow.bind($(i)),i.handleDownArrow=i.handleDownArrow.bind($(i)),i.handleEnter=i.handleEnter.bind($(i)),i.handlePrintableKey=i.handlePrintableKey.bind($(i)),i.handleListMouseLeave=i.handleListMouseLeave.bind($(i)),i.handleOptionBlur=i.handleOptionBlur.bind($(i)),i.handleOptionClick=i.handleOptionClick.bind($(i)),i.handleOptionFocus=i.handleOptionFocus.bind($(i)),i.handleOptionMouseDown=i.handleOptionMouseDown.bind($(i)),i.handleOptionMouseEnter=i.handleOptionMouseEnter.bind($(i)),i.handleInputBlur=i.handleInputBlur.bind($(i)),i.handleInputChange=i.handleInputChange.bind($(i)),i.handleInputClick=i.handleInputClick.bind($(i)),i.handleInputFocus=i.handleInputFocus.bind($(i)),i.pollInputElement=i.pollInputElement.bind($(i)),i.getDirectInputChanges=i.getDirectInputChanges.bind($(i)),i}i=e,(t=n).prototype=Object.create(i.prototype),t.prototype.constructor=t,q(t,i);var s=n.prototype;return s.isQueryAnOption=function(e,t){var i=this;return-1!==t.map((function(e){return i.templateInputValue(e).toLowerCase()})).indexOf(e.toLowerCase())},s.componentDidMount=function(){this.pollInputElement()},s.componentWillUnmount=function(){clearTimeout(this.$pollInput)},s.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout((function(){e.pollInputElement()}),100)},s.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},s.componentDidUpdate=function(e,t){var i=this.state.focused,n=null===i,s=t.focused!==i;s&&!n&&this.elementReferences[i].focus();var r=-1===i,o=s&&null===t.focused;if(r&&o){var a=this.elementReferences[i];a.setSelectionRange(0,a.value.length)}},s.hasAutoselect=function(){return!H()&&this.props.autoselect},s.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},s.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},s.handleComponentBlur=function(e){var t,i=this.state,n=i.options,s=i.query,r=i.selected;this.props.confirmOnBlur?(t=e.query||s,this.props.onConfirm(n[r])):t=s,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,n)})},s.handleListMouseLeave=function(e){this.setState({hovered:null})},s.handleOptionBlur=function(e,t){var i=this.state,n=i.focused,s=i.menuOpen,r=i.options,o=i.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=n!==t&&-1!==n;if(!c&&a||!c&&!l){var u=s&&H();this.handleComponentBlur({menuOpen:u,query:this.templateInputValue(r[o])})}},s.handleInputBlur=function(e){var t=this.state,i=t.focused,n=t.menuOpen,s=t.options,r=t.query,o=t.selected;if(-1===i){var a=n&&H(),l=H()?r:this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:a,query:l})}},s.handleInputChange=function(e){var t=this,i=this.props,n=i.minLength,s=i.source,r=i.showAllValues,o=this.hasAutoselect(),a=e.target.value,l=0===a.length,c=this.state.query!==a,u=a.length>=n;this.setState({query:a,ariaHint:l}),r||!l&&c&&u?s(a,(function(e){var i=e.length>0;t.setState({menuOpen:i,options:e,selected:o&&i?0:-1,validChoiceMade:!1})})):!l&&u||this.setState({menuOpen:!1,options:[]})},s.handleInputClick=function(e){this.handleInputChange(e)},s.handleInputFocus=function(e){var t=this.state,i=t.query,n=t.validChoiceMade,s=t.options,r=this.props.minLength,o=!n&&i.length>=r&&s.length>0;o?this.setState((function(e){var t=e.menuOpen;return{focused:-1,menuOpen:o||t,selected:-1}})):this.setState({focused:-1})},s.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},s.handleOptionMouseEnter=function(e,t){H()||this.setState({hovered:t})},s.handleOptionClick=function(e,t){var i=this.state.options[t],n=this.templateInputValue(i);this.props.onConfirm(i),this.setState({focused:-1,hovered:null,menuOpen:!1,query:n,selected:-1,validChoiceMade:!0}),this.forceUpdate()},s.handleOptionMouseDown=function(e){e.preventDefault()},s.handleUpArrow=function(e){e.preventDefault();var t=this.state,i=t.menuOpen,n=t.selected;-1!==n&&i&&this.handleOptionFocus(n-1)},s.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})}));else if(!0===this.state.menuOpen){var i=this.state,n=i.menuOpen,s=i.options,r=i.selected;r!==s.length-1&&n&&this.handleOptionFocus(r+1)}},s.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e})}))),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},s.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),this.state.selected>=0&&this.handleOptionClick(e,this.state.selected))},s.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},s.handleKeyDown=function(e){switch(V[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:((t=e.keyCode)>47&&t<58||32===t||8===t||t>64&&t<91||t>95&&t<112||t>185&&t<193||t>218&&t<223)&&this.handlePrintableKey(e)}var t},s.render=function(){var e,t=this,i=this.props,n=i.cssNamespace,s=i.displayMenu,r=i.id,a=i.minLength,l=i.name,c=i.placeholder,u=i.required,d=i.showAllValues,h=i.tNoResults,p=i.tStatusQueryTooShort,f=i.tStatusNoResults,m=i.tStatusSelectedOption,g=i.tStatusResults,y=i.tAssistiveHint,_=i.dropdownArrow,v=i.menuAttributes,b=i.inputClasses,T=i.hintClasses,w=i.menuClasses,S=this.state,E=S.focused,C=S.hovered,k=S.menuOpen,x=S.options,I=S.query,A=S.selected,O=S.ariaHint,P=S.validChoiceMade,L=this.hasAutoselect(),D=-1===E,M=0===x.length,N=0!==I.length,R=I.length>=a,F=this.props.showNoOptionsFound&&D&&M&&N&&R,U=n+"__wrapper",$=n+"__status",q=n+"__dropdown-arrow-down",V=-1!==E&&null!==E,z=n+"__option",W=n+"__hint",G=this.templateInputValue(x[A]),X=G&&0===G.toLowerCase().indexOf(I.toLowerCase())&&L?I+G.substr(I.length):"",K=r+"__assistiveHint",Y={"aria-describedby":O?K:null,"aria-expanded":k?"true":"false","aria-activedescendant":V?r+"__option--"+E:null,"aria-controls":r+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"};d&&"string"==typeof(e=_({className:q}))&&(e=o("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}}));var Q=n+"__input",J=[Q,this.props.showAllValues?Q+"--show-all-values":Q+"--default"];null!==E&&J.push(Q+"--focused"),b&&J.push(b);var Z=n+"__menu",ee=[Z,Z+"--"+s,Z+"--"+(k||F?"visible":"hidden")];w&&ee.push(w),(null!=v&&v.class||null!=v&&v.className)&&ee.push((null==v?void 0:v.class)||(null==v?void 0:v.className));var te=Object.assign({"aria-labelledby":r},v,{id:r+"__listbox",role:"listbox",className:ee.join(" "),onMouseLeave:this.handleListMouseLeave});return delete te.class,o("div",{className:U,onKeyDown:this.handleKeyDown},o(B,{id:r,length:x.length,queryLength:I.length,minQueryLength:a,selectedOption:this.templateInputValue(x[A]),selectedOptionIndex:A,validChoiceMade:P,isInFocus:null!==this.state.focused,tQueryTooShort:p,tNoResults:f,tSelectedOption:m,tResults:g,className:$}),X&&o("span",null,o("input",{className:[W,null===T?b:T].filter(Boolean).join(" "),readonly:!0,tabIndex:"-1",value:X})),o("input",j({},Y,{autoComplete:"off",className:J.join(" "),id:r,onClick:this.handleInputClick,onBlur:this.handleInputBlur},{onInput:this.handleInputChange},{onFocus:this.handleInputFocus,name:l,placeholder:c,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:u,value:I})),e,o("ul",te,x.map((function(e,i){var n=(-1===E?A===i:E===i)&&null===C?" "+z+"--focused":"",s=i%2?" "+z+"--odd":"",a=H()?"<span id="+r+"__option-suffix--"+i+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(i+1)+" of "+x.length+"</span>":"";return o("li",{"aria-selected":E===i?"true":"false",className:""+z+n+s,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+a},id:r+"__option--"+i,key:i,onBlur:function(e){return t.handleOptionBlur(e,i)},onClick:function(e){return t.handleOptionClick(e,i)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,i)},ref:function(e){t.elementReferences[i]=e},role:"option",tabIndex:"-1","aria-posinset":i+1,"aria-setsize":x.length})})),F&&o("li",{className:z+" "+z+"--no-results",role:"option","aria-disabled":"true"},h())),o("span",{id:K,style:{display:"none"}},y()))},n}(N);function W(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=G(e.source)),R(o(z,e),e.element)}z.defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:U,menuAttributes:{},inputClasses:null,hintClasses:null,menuClasses:null};var G=function(e){return function(t,i){i(e.filter((function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())})))}};W.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,(function(t){return t.value||e.preserveNullOptions}));e.source=t.map((function(e){return e.textContent||e.innerText}))}if(e.onConfirm=e.onConfirm||function(t){var i=[].filter.call(e.selectElement.options,(function(e){return(e.textContent||e.innerText)===t}))[0];i&&(i.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var i=e.selectElement.options[e.selectElement.options.selectedIndex];e.defaultValue=i.textContent||i.innerText}void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0);var n=document.createElement("div");e.selectElement.parentNode.insertBefore(n,e.selectElement),W(Object.assign({},e,{element:n})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var X=W}(),n.default}()}));Ur.accessibleAutocomplete;const jr={autocomplete:[]},$r="autocomplete-list-show",qr="data-bs-autocomplete",Vr="input["+qr+'][type="search"]';class Hr extends fi{constructor(e,t){super(e),this._config=this._getConfig(t),this._items=[],this._autocompleteElement=null,this._label=new Ei(e),this._init(),this._bindEvents()}static get NAME(){return"inputsearchautocomplete"}search(){const e=this._element.value;
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,(function(){"use strict";!function(){const e={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const e="data-focus-mouse",t="focus--mouse";class i{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((e=>{document.addEventListener(e,(e=>{this._usingMouse="mousedown"===e.type}))})),document.addEventListener("focusin",(i=>{this._usingMouse&&i.target&&(i.target.classList.add(t),i.target.setAttribute(e,!0))})),document.addEventListener("focusout",(i=>{i.target&&(i.target.classList.remove(t),i.target.setAttribute(e,!1))}))}}new i;const n=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new i,window.BOOTSTRAP_ITALIA_VERSION="2.13.1")};n();const s={ck3:{}},r={rememberChoice:(e,t)=>{s.ck3[e]=t,localStorage.setItem("bs-ck3",JSON.stringify(s.ck3))},isChoiceRemembered:e=>(s.ck3=JSON.parse(localStorage.getItem("bs-ck3")||"{}"),s.ck3[e]||!1),clearAllRememberedChoices:()=>{localStorage.removeItem("bs-ck3")}},o="splide",a=`data-${o}`,l={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};function c(e){e.length=0}function u(e){return!f(e)&&"object"==typeof e}function d(e){return Array.isArray(e)}function h(e){return"string"==typeof e}function p(e){return void 0===e}function f(e){return null===e}function m(e){return e instanceof HTMLElement}function g(e){return d(e)?e:[e]}function y(e,t){g(e).forEach(t)}function _(e,t){return e.indexOf(t)>-1}function v(e,t){return e.push(...g(t)),e}const b=Array.prototype;function T(e,t,i){return b.slice.call(e,t,i)}function w(e,t,i){e&&y(t,(t=>{t&&e.classList[i?"add":"remove"](t)}))}function S(e,t){w(e,h(t)?t.split(" "):t,!0)}function E(e,t){y(t,e.appendChild.bind(e))}function C(e,t){y(e,(e=>{const i=t.parentNode;i&&i.insertBefore(e,t)}))}function k(e,t){return m(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function x(e,t){return e?T(e.children).filter((e=>k(e,t))):[]}function I(e,t){return t?x(e,t)[0]:e.firstElementChild}function A(e,t,i){if(e){let n=Object.keys(e);n=i?n.reverse():n;for(let i=0;i<n.length;i++){const s=n[i];if("__proto__"!==s&&!1===t(e[s],s))break}}return e}function O(e){return T(arguments,1).forEach((t=>{A(t,((i,n)=>{e[n]=t[n]}))})),e}function P(e,t){return A(t,((t,i)=>{d(t)?e[i]=t.slice():u(t)?e[i]=P(u(e[i])?e[i]:{},t):e[i]=t})),e}function L(e,t){e&&y(t,(t=>{e.removeAttribute(t)}))}function D(e,t,i){u(t)?A(t,((t,i)=>{D(e,i,t)})):f(i)?L(e,t):e.setAttribute(t,String(i))}function M(e,t,i){const n=document.createElement(e);return t&&(h(t)?S(n,t):D(n,t)),i&&E(i,n),n}function N(e,t,i){if(p(i))return getComputedStyle(e)[t];if(!f(i)){const{style:n}=e;i=`${i}`,n[t]!==i&&(n[t]=i)}}function R(e,t){N(e,"display",t)}function F(e,t){return e.getAttribute(t)}function B(e,t){return e&&e.classList.contains(t)}function U(e){return e.getBoundingClientRect()}function j(e){y(e,(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}))}function $(e){return I((new DOMParser).parseFromString(e,"text/html").body)}function q(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function V(e,t){return e&&e.querySelector(t)}function H(e,t){return T(e.querySelectorAll(t))}function z(e,t){w(e,t,!1)}function W(e){return h(e)?e:e?`${e}px`:""}function G(e,t=""){if(!e)throw new Error(`[${o}] ${t}`)}function X(e){setTimeout(e)}const K=()=>{};function Y(e){return requestAnimationFrame(e)}const{min:Q,max:J,floor:Z,ceil:ee,abs:te}=Math;function ie(e,t,i,n){const s=Q(t,i),r=J(t,i);return n?s<e&&e<r:s<=e&&e<=r}function ne(e,t,i){const n=Q(t,i),s=J(t,i);return Q(J(n,e),s)}function se(e){return+(e>0)-+(e<0)}function re(e,t){return y(t,(t=>{e=e.replace("%s",`${t}`)})),e}function oe(e){return e<10?`0${e}`:`${e}`}const ae={};const le="mounted",ce="ready",ue="move",de="moved",he="shifted",pe="click",fe="visible",me="hidden",ge="slide:keydown",ye="refresh",_e="updated",ve="resize",be="resized",Te="repositioned",we="scroll",Se="scrolled",Ee="destroy",Ce="navigation:mounted",ke="lazyload:loaded";function xe(e){const{event:t}=e,i={};let n=[];function s(e,t,i){r(e,t,((e,t)=>{n=n.filter((n=>!!(n[0]!==e||n[1]!==t||i&&n[2]!==i)||(e.removeEventListener(t,n[2],n[3]),!1)))}))}function r(e,t,i){y(e,(e=>{e&&t.split(" ").forEach(i.bind(null,e))}))}function o(){n=n.filter((e=>s(e[0],e[1]))),t.offBy(i)}return t.on(Ee,o,i),{on:function(e,n,s){t.on(e,n,i,s)},off:function(e){t.off(e,i)},emit:t.emit,bind:function(e,t,i,s){r(e,t,((e,t)=>{n.push([e,t,i,s]),e.addEventListener(t,i,s)}))},unbind:s,destroy:o}}function Ie(e,t,i,n){const{now:s}=Date;let r,o,a=0,l=!0,c=0;function u(){if(!l){const o=s()-r;if(o>=e?(a=1,r=s()):a=o/e,i&&i(a),1===a&&(t(),n&&++c>=n))return d();Y(u)}}function d(){l=!0}function h(){cancelAnimationFrame(o),a=0,o=0,l=!0}return{start:function(t){!t&&h(),r=s()-(t?a*e:0),l=!1,Y(u)},rewind:function(){r=s(),a=0,i&&i(a)},pause:d,cancel:h,set:function(t){e=t},isPaused:function(){return l}}}function Ae(e,t){let i;return function(){i||(i=Ie(0,(()=>{e.apply(this,arguments),i=null}),null,1),i.start())}}const Oe="ttb",Pe={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};const Le=o,De=`${o}__slider`,Me=`${o}__track`,Ne=`${o}__list`,Re=`${o}__slide`,Fe=`${Re}--clone`,Be=`${Re}__container`,Ue=`${o}__arrows`,je=`${o}__arrow`,$e=`${je}--prev`,qe=`${je}--next`,Ve=`${o}__pagination`,He=`${o}__progress`,ze=`${He}__bar`,We=`${o}__autoplay`,Ge=`${o}__play`,Xe=`${o}__pause`,Ke="is-active",Ye="is-prev",Qe="is-next",Je="is-visible",Ze="is-loading",et=[Ke,Je,Ye,Qe,Ze],tt={slide:Re,clone:Fe,arrows:Ue,arrow:je,prev:$e,next:qe,pagination:Ve,page:`${Ve}__page`,spinner:`${o}__spinner`};const it="role",nt="aria-controls",st="aria-current",rt="aria-label",ot="aria-hidden",at="tabindex",lt="aria-orientation",ct=[it,nt,st,rt,ot,lt,at,"disabled"],ut="slide",dt="loop",ht="fade";function pt(e,t,i,n){const{on:s,emit:r,bind:o,destroy:a}=xe(e),{Components:l,root:c,options:u}=e,{isNavigation:d,updateOnMove:h}=u,{resolve:p}=l.Direction,f=F(n,"style"),m=i>-1,g=I(n,`.${Be}`),y=u.focusableNodes&&H(n,u.focusableNodes);let _;function v(){const s=m?i:t,r=re(u.i18n.slideX,s+1),o=e.splides.map((e=>e.splide.root.id)).join(" ");D(n,rt,r),D(n,nt,o),D(n,it,"menuitem"),S(E())}function b(){_||T()}function T(){if(!_){const{index:i}=e;S(E()),function(e){const t=!e&&(!E()||m);D(n,ot,t||null),D(n,at,!t&&u.slideFocus?0:null),y&&y.forEach((e=>{D(e,at,t?-1:null)}));e!==B(n,Je)&&(w(n,Je,e),r(e?fe:me,C))}(function(){if(e.is(ht))return E();const t=U(l.Elements.track),i=U(n),s=p("left"),r=p("right");return Z(t[s])<=ee(i[s])&&Z(i[r])<=ee(t[r])}()),w(n,Ye,t===i-1),w(n,Qe,t===i+1)}}function S(e){e!==B(n,Ke)&&(w(n,Ke,e),d&&D(n,st,e||null),r(e?"active":"inactive",C))}function E(){const{index:n}=e;return n===t||u.cloneStatus&&n===i}const C={index:t,slideIndex:i,slide:n,container:g,isClone:m,mount:function(){m||(n.id=`${c.id}-slide${oe(t+1)}`),o(n,"click keydown",(e=>{r("click"===e.type?pe:ge,C,e)})),s([ye,Te,he,de,Se],T),s(Ce,v),h&&s(ue,b)},destroy:function(){_=!0,a(),z(n,et),L(n,ct),D(n,"style",f)},update:T,style:function(e,t,i){N(i&&g||n,e,t)},isWithin:function(i,n){let s=te(i-t);return m||!u.rewind&&!e.is(dt)||(s=Q(s,e.length-s)),s<=n}};return C}const ft=`${a}-interval`;const mt={passive:!1,capture:!0},gt="touchmove mousemove",yt="touchend touchcancel mouseup";const _t=["Left","Right","Up","Down"],vt="keydown";const bt=`${a}-lazy`,Tt=`${bt}-srcset`,wt=`[${bt}], [${Tt}]`;const St=[" ","Enter","Spacebar"];var Et=Object.freeze({__proto__:null,Options:function(e,t,i){const n=Ae(c);let s,r,o;function l(e){e&&removeEventListener("resize",n)}function c(){const t=(n=e=>e[1].matches,T(r).filter(n)[0]||[]);var n;t[0]!==o&&function(t){const n=i.breakpoints[t]||s;n.destroy?(e.options=s,e.destroy("completely"===n.destroy)):(e.state.is(5)&&(l(!0),e.mount()),e.options=n)}(o=t[0])}return{setup:function(){try{P(i,JSON.parse(F(e.root,a)))}catch(e){G(!1,e.message)}s=P({},i);const{breakpoints:t}=i;if(t){const e="min"===i.mediaQuery;r=Object.keys(t).sort(((t,i)=>e?+i-+t:+t-+i)).map((t=>[t,matchMedia(`(${e?"min":"max"}-width:${t}px)`)])),c()}},mount:function(){r&&addEventListener("resize",n)},destroy:l}},Direction:function(e,t,i){return{resolve:function(e,t){const{direction:n}=i;return Pe[e]["rtl"!==n||t?n===Oe?0:-1:1]||e},orient:function(e){return e*("rtl"===i.direction?1:-1)}}},Elements:function(e,t,i){const{on:n}=xe(e),{root:s}=e,r={},a=[];let l,u,d,h;function p(){!function(){u=I(s,`.${De}`),d=V(s,`.${Me}`),h=I(d,`.${Ne}`),G(d&&h,"A track/list element is missing."),v(a,x(h,`.${Re}:not(.${Fe})`));const e=y(`.${We}`),t=y(`.${Ue}`);O(r,{root:s,slider:u,track:d,list:h,slides:a,arrows:t,autoplay:e,prev:V(t,`.${$e}`),next:V(t,`.${qe}`),bar:V(y(`.${He}`),`.${ze}`),play:V(e,`.${Ge}`),pause:V(e,`.${Xe}`)})}(),function(){const e=s.id||(t=o,`${t}${oe(ae[t]=(ae[t]||0)+1)}`);var t;s.id=e,d.id=d.id||`${e}-track`,h.id=h.id||`${e}-list`}(),S(s,l=_())}function f(){[s,d,h].forEach((e=>{L(e,"style")})),c(a),z(s,l)}function m(){f(),p()}function g(){z(s,l),S(s,l=_())}function y(e){return I(s,e)||I(u,e)}function _(){return[`${Le}--${i.type}`,`${Le}--${i.direction}`,i.drag&&`${Le}--draggable`,i.isNavigation&&`${Le}--nav`,Ke]}return O(r,{setup:p,mount:function(){n(ye,m,8),n(_e,g)},destroy:f})},Slides:function(e,t,i){const{on:n,emit:s,bind:r}=xe(e),{slides:o,list:a}=t.Elements,l=[];function u(){o.forEach(((e,t)=>{f(e,t,-1)}))}function d(){b((e=>{e.destroy()})),c(l)}function p(){d(),u()}function f(t,i,n){const s=pt(e,i,n,t);s.mount(),l.push(s)}function v(e){return e?T((e=>!e.isClone)):l}function b(e,t){v(t).forEach(e)}function T(e){return l.filter("function"==typeof e?e:t=>h(e)?k(t.slide,e):_(g(e),t.index))}return{mount:function(){u(),n(ye,p),n([le,ye],(()=>{l.sort(((e,t)=>e.index-t.index))}))},destroy:d,update:function(){b((e=>{e.update()}))},register:f,get:v,getIn:function(e){const{Controller:n}=t,s=n.toIndex(e),r=n.hasFocus()?1:i.perPage;return T((e=>ie(e.index,s,s+r-1)))},getAt:function(e){return T(e)[0]},add:function(e,t){y(e,(e=>{if(h(e)&&(e=$(e)),m(e)){const n=o[t];n?C(e,n):E(a,e),S(e,i.classes.slide),function(e,t){const i=H(e,"img");let{length:n}=i;n?i.forEach((e=>{r(e,"load error",(()=>{--n||t()}))})):t()}(e,s.bind(null,ve))}})),s(ye)},remove:function(e){j(T(e).map((e=>e.slide))),s(ye)},forEach:b,filter:T,style:function(e,t,i){b((n=>{n.style(e,t,i)}))},getLength:function(e){return e?o.length:l.length},isEnough:function(){return l.length>i.perPage}}},Layout:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{Slides:o}=t,{resolve:a}=t.Direction,{root:l,track:c,list:d}=t.Elements,{getAt:h}=o;let p,f;function m(){f=null,p=i.direction===Oe,N(l,"maxWidth",W(i.width)),N(c,a("paddingLeft"),y(!1)),N(c,a("paddingRight"),y(!0)),g()}function g(){const e=U(l);f&&f.width===e.width&&f.height===e.height||(N(c,"height",function(){let e="";p&&(e=_(),G(e,"height or heightRatio is missing."),e=`calc(${e} - ${y(!1)} - ${y(!0)})`);return e}()),o.style(a("marginRight"),W(i.gap)),o.style("width",(i.autoWidth?"":W(i.fixedWidth)||(p?"":v()))||null),o.style("height",W(i.fixedHeight)||(p?i.autoHeight?"":v():_())||null,!0),f=e,r(be))}function y(e){const{padding:t}=i,n=a(e?"right":"left");return t&&W(t[n]||(u(t)?0:t))||"0px"}function _(){return W(i.height||U(d).width*i.heightRatio)}function v(){const e=W(i.gap);return`calc((100%${e&&` + ${e}`})/${i.perPage||1}${e&&` - ${e}`})`}function b(e,t){const i=h(e);if(i){const e=U(i.slide)[a("right")],n=U(d)[a("left")];return te(e-n)+(t?0:T())}return 0}function T(){const e=h(0);return e&&parseFloat(N(e.slide,a("marginRight")))||0}return{mount:function(){m(),s(window,"resize load",Ae(r.bind(this,ve))),n([_e,ye],m),n(ve,g)},listSize:function(){return U(d)[a("width")]},slideSize:function(e,t){const i=h(e||0);return i?U(i.slide)[a("width")]+(t?0:T()):0},sliderSize:function(){return b(e.length-1,!0)-b(-1,!0)},totalSize:b,getPadding:function(e){return parseFloat(N(c,a("padding"+(e?"Right":"Left"))))||0}}},Clones:function(e,t,i){const{on:n,emit:s}=xe(e),{Elements:r,Slides:o}=t,{resolve:a}=t.Direction,l=[];let u;function d(){(u=g())&&(!function(t){const n=o.get().slice(),{length:s}=n;if(s){for(;n.length<t;)v(n,n);v(n.slice(-t),n.slice(0,t)).forEach(((a,c)=>{const u=c<t,d=function(t,n){const s=t.cloneNode(!0);return S(s,i.classes.clone),s.id=`${e.root.id}-clone${oe(n+1)}`,s}(a.slide,c);u?C(d,n[0].slide):E(r.list,d),v(l,d),o.register(d,c-t+(u?0:s),a.index)}))}}(u),s(ve))}function p(){j(l),c(l)}function f(){p(),d()}function m(){u<g()&&s(ye)}function g(){let{clones:t}=i;if(e.is(dt)){if(!t){const n=function(e,t){if(h(t)){const i=M("div",{style:`width: ${t}; position: absolute;`},e);t=U(i).width,j(i)}return t}(r.list,i[a("fixedWidth")]);t=(n&&ee(U(r.track)[a("width")]/n)||i[a("autoWidth")]&&e.length||i.perPage)*(i.drag?(i.flickMaxPages||1)+1:2)}}else t=0;return t}return{mount:function(){d(),n(ye,f),n([_e,ve],m)},destroy:p}},Move:function(e,t,i){const{on:n,emit:s}=xe(e),{slideSize:r,getPadding:o,totalSize:a,listSize:l,sliderSize:c}=t.Layout,{resolve:u,orient:d}=t.Direction,{list:h,track:f}=t.Elements;let m;function g(){S()||(t.Scroll.cancel(),y(e.index),s(Te))}function y(e){_(b(e,!0))}function _(t,i){if(!e.is(ht)){const n=i?t:function(t){if(e.is(dt)){const e=d(t-T()),i=E(!1,t)&&e<0,n=E(!0,t)&&e>0;(i||n)&&(t=v(t,n))}return t}(t);h.style.transform=`translate${u("X")}(${n}px)`,t!==n&&s(he)}}function v(e,t){const i=e-w(t),n=c();return e-=d(n*(ee(te(i)/n)||1))*(t?1:-1)}function b(t,n){const s=d(a(t-1)-function(e){const{focus:t}=i;return"center"===t?(l()-r(e,!0))/2:+t*r(e)||0}(t));return n?function(t){i.trimSpace&&e.is(ut)&&(t=ne(t,0,d(c()-l())));return t}(s):s}function T(){const e=u("left");return U(h)[e]-U(f)[e]+d(o(!1))}function w(e){return b(e?t.Controller.getEnd():0,!!i.trimSpace)}function S(){return e.state.is(4)&&i.waitForTransition}function E(e,t){t=p(t)?T():t;const i=!0!==e&&d(t)<d(w(!1)),n=!1!==e&&d(t)>d(w(!0));return i||n}return{mount:function(){m=t.Transition,n([le,be,_e,ye],g)},destroy:function(){L(h,"style")},move:function(n,r,o,a){if(!S()){const{set:l}=e.state,c=T();n!==r&&(m.cancel(),_(v(c,n>r),!0)),l(4),s(ue,r,o,n),m.start(r,(()=>{l(3),s(de,r,o,n),"move"===i.trimSpace&&n!==o&&c===T()?t.Controller.go(n>o?">":"<",!1,a):a&&a()}))}},jump:y,translate:_,shift:v,cancel:function(){_(T()),m.cancel()},toIndex:function(e){const i=t.Slides.get();let n=0,s=1/0;for(let t=0;t<i.length;t++){const r=i[t].index,o=te(b(r,!0)-e);if(!(o<=s))break;s=o,n=r}return n},toPosition:b,getPosition:T,getLimit:w,isBusy:S,exceededLimit:E}},Controller:function(e,t,i){const{on:n}=xe(e),{Move:s}=t,{getPosition:r,getLimit:o}=s,{isEnough:a,getLength:l}=t.Slides,c=e.is(dt),u=e.is(ut);let d,f,m,g=i.start||0,y=g;function _(){d=l(!0),f=i.perMove,m=i.perPage,g=ne(g,0,d-1)}function v(e,i,n,r,o){const a=i?e:I(e);t.Scroll.scroll(i||n?s.toPosition(a,!0):e,r,(()=>{A(s.toIndex(s.getPosition())),o&&o()}))}function b(e){return w(!1,e)}function T(e){return w(!0,e)}function w(e,t){const i=f||(O()?1:m),n=S(g+i*(e?-1:1),g);return-1!==n||!u||(s=r(),a=o(!e),l=1,te(s-a)<l)?t?n:C(n):e?0:E();var s,a,l}function S(e,t,n){if(a()){const s=E();e<0||e>s?e=ie(0,e,t,!0)||ie(s,t,e,!0)?k(x(e)):c?f||O()?e:e<0?-(d%m||m):d:i.rewind?e<0?s:0:-1:n||e===t||(e=f?e:k(x(t)+(e<t?-1:1)))}else e=-1;return e}function E(){let e=d-m;return(O()||c&&f)&&(e=d-1),J(e,0)}function C(e){return c?a()?e%d+(e<0?d:0):-1:e}function k(e){return ne(O()?e:m*e,0,E())}function x(e){return O()||(e=ie(e,d-m,d-1)?d-1:e,e=Z(e/m)),e}function I(e){const t=s.toIndex(e);return u?ne(t,0,E()):t}function A(e){e!==g&&(y=g,g=e)}function O(){return!p(i.focus)||i.isNavigation}return{mount:function(){_(),n([_e,ye],_,9)},go:function(e,t,n){const r=function(e){let t=g;if(h(e)){const[,i,n]=e.match(/([+\-<>])(\d+)?/)||[];"+"===i||"-"===i?t=S(g+ +`${i}${+n||1}`,g,!0):">"===i?t=n?k(+n):b(!0):"<"===i&&(t=T(!0))}else t=c?e:ne(e,0,E());return t}(e);if(i.useScroll)v(r,!0,!0,i.speed,n);else{const e=C(r);e>-1&&!s.isBusy()&&(t||e!==g)&&(A(e),s.move(r,e,y,n))}},scroll:v,getNext:b,getPrev:T,getAdjacent:w,getEnd:E,setIndex:A,getIndex:function(e){return e?y:g},toIndex:k,toPage:x,toDest:I,hasFocus:O}},Arrows:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{classes:o,i18n:a}=i,{Elements:l,Controller:c}=t;let u,d=l.arrows,h=l.prev,p=l.next;const f={};function m(){if(i.arrows&&(h&&p||(d=M("div",o.arrows),h=g(!0),p=g(!1),u=!0,E(d,[h,p]),C(d,I("slider"===i.arrows&&l.slider||e.root)))),h&&p)if(f.prev)R(d,!1===i.arrows?"none":"");else{const{id:e}=l.track;D(h,nt,e),D(p,nt,e),f.prev=h,f.next=p,function(){const{go:e}=c;n([le,de,_e,ye,Se],y),s(p,"click",(()=>{e(">",!0)})),s(h,"click",(()=>{e("<",!0)}))}(),r("arrows:mounted",h,p)}}function g(e){return $(`<button class="${o.arrow} ${e?o.prev:o.next}" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="${i.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"}" />`)}function y(){const t=e.index,i=c.getPrev(),n=c.getNext(),s=i>-1&&t<i?a.last:a.prev,o=n>-1&&t>n?a.first:a.next;h.disabled=i<0,p.disabled=n<0,D(h,rt,s),D(p,rt,o),r("arrows:updated",h,p,i,n)}return{arrows:f,mount:function(){m(),n(_e,m)},destroy:function(){u?j(d):(L(h,ct),L(p,ct))}}},Autoplay:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),o=Ie(i.interval,e.go.bind(e,">"),(function(e){const{bar:t}=l;t&&N(t,"width",100*e+"%"),r("autoplay:playing",e)})),{isPaused:a}=o,{Elements:l}=t;let c,u,d;function h(e){const t=e?"pause":"play",n=l[t];n&&(D(n,nt,l.track.id),D(n,rt,i.i18n[t]),s(n,"click",e?f:p))}function p(){a()&&t.Slides.isEnough()&&(o.start(!i.resetProgress),u=c=d=!1,r("autoplay:play"))}function f(e=!0){a()||(o.pause(),r("autoplay:pause")),d=e}function m(){d||(c||u?f(!1):p())}function g(){const n=t.Slides.getAt(e.index);o.set(n&&+F(n.slide,ft)||i.interval)}return{mount:function(){const{autoplay:e}=i;e&&(h(!0),h(!1),function(){const{root:e}=l;i.pauseOnHover&&s(e,"mouseenter mouseleave",(e=>{c="mouseenter"===e.type,m()}));i.pauseOnFocus&&s(e,"focusin focusout",(e=>{u="focusin"===e.type,m()}));n([ue,we,ye],o.rewind),n(ue,g)}(),"pause"!==e&&p())},destroy:o.cancel,play:p,pause:f,isPaused:a}},Cover:function(e,t,i){const{on:n}=xe(e);function s(e){t.Slides.forEach((t=>{const i=I(t.container||t.slide,"img");i&&i.src&&r(e,i,t)}))}function r(e,t,i){i.style("background",e?`center/cover no-repeat url("${t.src}")`:"",!0),R(t,e?"none":"")}return{mount:function(){i.cover&&(n(ke,((e,t)=>{r(!0,e,t)})),n([le,_e,ye],s.bind(null,!0)))},destroy:function(){s(!1)}}},Scroll:function(e,t,i){const{on:n,emit:s}=xe(e),{Move:r}=t,{getPosition:o,getLimit:a,exceededLimit:l}=r;let c,u;function d(t,n,f,m){const g=o();let y=1;var _;n=n||(_=te(t-g),J(_/1.5,800)),u=f,p(),c=Ie(n,h,(n=>{const s=o(),c=(g+(t-g)*function(e){const{easingFunc:t}=i;return t?t(e):1-Math.pow(1-e,4)}(n)-o())*y;var u;r.translate(s+c),e.is(ut)&&!m&&l()&&(y*=.6,te(c)<10&&(u=l(!1),d(a(!u),600,null,!0)))}),1),s(we),c.start()}function h(){const t=o(),i=r.toIndex(t);ie(i,0,e.length-1)||r.translate(r.shift(t,i>0),!0),u&&u(),s(Se)}function p(){c&&c.cancel()}function f(){c&&!c.isPaused()&&(p(),h())}return{mount:function(){n(ue,p),n([_e,ye],f)},destroy:p,scroll:d,cancel:f}},Drag:function(e,t,i){const{on:n,emit:s,bind:r,unbind:o}=xe(e),{Move:a,Scroll:l,Controller:c}=t,{track:d}=t.Elements,{resolve:h,orient:p}=t.Direction,{getPosition:f,exceededLimit:m}=a;let g,y,_,v,b,T,w,S,E,C=!1;function x(){const{drag:e}=i;F(!e),b="free"===e}function I(e){if(!S){const{noDrag:t}=i,n=R(e),s=!t||!k(e.target,t);w=!1,!s||!n&&e.button||(a.isBusy()?q(e,!0):(E=n?d:window,_=null,v=null,r(E,gt,A,mt),r(E,yt,O,mt),a.cancel(),l.cancel(),P(e)))}}function A(t){if(v||s("drag"),v=t,t.cancelable){const n=M(t)-M(y);if(T){a.translate(g+function(t){return t/(C&&e.is(ut)?5:1)}(n));const i=N(t)-N(y)>200,r=C!==(C=m());(i||r)&&P(t),s("dragging"),w=!0,q(t)}else{let{dragMinThreshold:e}=i;e=u(e)?e:{mouse:0,touch:+e||10},T=te(n)>(R(t)?e.touch:e.mouse),D()&&q(t)}}}function O(n){o(E,gt,A),o(E,yt,O);const{index:r}=e;if(v){if(T||n.cancelable&&D()){const s=function(t){if(e.is(dt)||!C){const e=y===v&&_||y,i=M(v)-M(e),n=N(t)-N(e),s=N(t)-N(v)<200;if(n&&s)return i/n}return 0}(n),o=function(e){return f()+se(e)*Q(te(e)*(i.flickPower||600),b?1/0:t.Layout.listSize()*(i.flickMaxPages||1))}(s);b?c.scroll(o):e.is(ht)?c.go(r+p(se(s))):c.go(c.toDest(o),!0),q(n)}s("dragged")}else b||f()===a.toPosition(r)||c.go(r,!0);T=!1}function P(e){_=y,y=e,g=f()}function L(e){!S&&w&&q(e,!0)}function D(){return te(M(v)-M(y))>te(M(v,!0)-M(y,!0))}function M(e,t){return(R(e)?e.touches[0]:e)[`page${h(t?"Y":"X")}`]}function N(e){return e.timeStamp}function R(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function F(e){S=e}return{mount:function(){r(d,gt,K,mt),r(d,yt,K,mt),r(d,"touchstart mousedown",I,mt),r(d,"click",L,{capture:!0}),r(d,"dragstart",q),n([le,_e],x)},disable:F,isDragging:function(){return T}}},Keyboard:function(e,t,i){const{on:n,bind:s,unbind:r}=xe(e),{root:o}=e,{resolve:a}=t.Direction;let l,c;function u(){const{keyboard:e}=i;e&&("focused"===e?(l=o,D(o,at,0)):l=window,s(l,vt,f))}function d(){r(l,vt),m(l)&&L(l,at)}function h(){const e=c;c=!0,X((()=>{c=e}))}function p(){d(),u()}function f(t){if(!c){const{key:i}=t,n=_(_t,i)?`Arrow${i}`:i;n===a("ArrowLeft")?e.go("<"):n===a("ArrowRight")&&e.go(">")}}return{mount:function(){u(),n(_e,p),n(ue,h)},destroy:d,disable:function(e){c=e}}},LazyLoad:function(e,t,i){const{on:n,off:s,bind:r,emit:o}=xe(e),a="sequential"===i.lazyLoad;let l=[],c=0;function u(){h(),d()}function d(){t.Slides.forEach((e=>{H(e.slide,wt).forEach((t=>{const n=F(t,bt),s=F(t,Tt);if(n!==t.src||s!==t.srcset){const r=i.classes.spinner,o=t.parentElement,a=I(o,`.${r}`)||M("span",r,o);D(a,it,"presentation"),l.push({_img:t,_Slide:e,src:n,srcset:s,_spinner:a}),!t.src&&R(t,"none")}}))})),a&&m()}function h(){c=0,l=[]}function p(){l=l.filter((t=>{const n=i.perPage*((i.preloadPages||1)+1)-1;return!t._Slide.isWithin(e.index,n)||f(t)})),l.length||s(de)}function f(e){const{_img:t}=e;S(e._Slide.slide,Ze),r(t,"load error",(t=>{!function(e,t){const{_Slide:i}=e;z(i.slide,Ze),t||(j(e._spinner),R(e._img,""),o(ke,e._img,i),o(ve));a&&m()}(e,"error"===t.type)})),["srcset","src"].forEach((i=>{e[i]&&(D(t,i,e[i]),L(t,"src"===i?bt:Tt))}))}function m(){c<l.length&&f(l[c++])}return{mount:function(){i.lazyLoad&&(d(),n(ye,u),a||n([le,ye,de,Se],p))},destroy:h}},Pagination:function(e,t,i){const{on:n,emit:s,bind:r,unbind:o}=xe(e),{Slides:a,Elements:l,Controller:u}=t,{hasFocus:d,getIndex:h}=u,p=[];let f;function m(){g(),i.pagination&&a.isEnough()&&(!function(){const{length:t}=e,{classes:n,i18n:s,perPage:o}=i,c="slider"===i.pagination&&l.slider||l.root,u=d()?t:ee(t/o);f=M("ul",n.pagination,c);for(let e=0;e<u;e++){const t=M("li",null,f),i=M("button",{class:n.page,type:"button"},t),l=a.getIn(e).map((e=>e.slide.id)),c=!d()&&o>1?s.pageX:s.slideX;r(i,"click",y.bind(null,e)),D(i,nt,l.join(" ")),D(i,rt,re(c,e+1)),p.push({li:t,button:i,page:e})}}(),s("pagination:mounted",{list:f,items:p},_(e.index)),v())}function g(){f&&(j(f),p.forEach((e=>{o(e.button,"click")})),c(p),f=null)}function y(e){u.go(`>${e}`,!0,(()=>{const t=a.getAt(u.toIndex(e));var i;t&&((i=t.slide).setActive&&i.setActive()||i.focus({preventScroll:!0}))}))}function _(e){return p[u.toPage(e)]}function v(){const e=_(h(!0)),t=_(h());e&&(z(e.button,Ke),L(e.button,st)),t&&(S(t.button,Ke),D(t.button,st,!0)),s("pagination:updated",{list:f,items:p},e,t)}return{items:p,mount:function(){m(),n([_e,ye],m),n([ue,Se],v)},destroy:g,getAt:_,update:v}},Sync:function(e,t,i){const{list:n}=t.Elements,s=[];function r(){e.splides.forEach((t=>{var i;!t.isParent&&(i=t.splide,[e,i].forEach((t=>{const n=xe(t),r=t===e?i:e;n.on(ue,((e,t,i)=>{r.go(r.is(dt)?i:e)})),s.push(n)})))})),i.isNavigation&&function(){const t=xe(e),{on:i}=t;i(pe,l),i(ge,u),i([le,_e],a),D(n,it,"menu"),s.push(t),t.emit(Ce,e.splides)}()}function o(){L(n,ct),s.forEach((e=>{e.destroy()})),c(s)}function a(){D(n,lt,i.direction!==Oe?"horizontal":null)}function l(t){e.go(t.index)}function u(e,t){_(St,t.key)&&(l(e),q(t))}return{mount:r,destroy:o,remount:function(){o(),r()}}},Wheel:function(e,t,i){const{bind:n}=xe(e);function s(n){if(n.cancelable){const{deltaY:s}=n;if(s){const r=s<0;e.go(r?"<":">"),function(n){return!i.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(n)}(r)&&q(n)}}}return{mount:function(){i.wheel&&n(t.Elements.track,"wheel",s,mt)}}}});const Ct={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:tt,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function kt(e,t,i){const{on:n}=xe(e);return{mount:function(){n([le,ye],(()=>{X((()=>{t.Slides.style("transition",`opacity ${i.speed}ms ${i.easing}`)}))}))},start:function(e,i){const{track:n}=t.Elements;N(n,"height",W(U(n).height)),X((()=>{i(),N(n,"height","")}))},cancel:K}}function xt(e,t,i){const{bind:n}=xe(e),{Move:s,Controller:r}=t,{list:o}=t.Elements;let a;function l(){c("")}function c(e){N(o,"transition",e)}return{mount:function(){n(o,"transitionend",(e=>{e.target===o&&a&&(l(),a())}))},start:function(t,n){const o=s.toPosition(t,!0),l=s.getPosition(),u=function(t){const{rewindSpeed:n}=i;if(e.is(ut)&&n){const e=r.getIndex(!0),i=r.getEnd();if(0===e&&t>=i||e>=i&&0===t)return n}return i.speed}(t);te(o-l)>=1&&u>=1?(c(`transform ${u}ms ${i.easing}`),s.translate(o,!0),a=n):(s.jump(t),n())},cancel:l}}const It=class{constructor(e,t){this.event=function(){let e={};function t(t,n){i(t,((t,i)=>{const s=e[t];e[t]=s&&s.filter((e=>e._key?e._key!==n:n||e._namespace!==i))}))}function i(e,t){g(e).join(" ").split(" ").forEach((e=>{const i=e.split(".");t(i[0],i[1])}))}return{on:function(t,n,s,r=10){i(t,((t,i)=>{e[t]=e[t]||[],v(e[t],{_event:t,_callback:n,_namespace:i,_priority:r,_key:s}).sort(((e,t)=>e._priority-t._priority))}))},off:t,offBy:function(i){A(e,((e,n)=>{t(n,i)}))},emit:function(t){(e[t]||[]).forEach((e=>{e._callback.apply(e,T(arguments,1))}))},destroy:function(){e={}}}}(),this.Components={},this.state=function(e){let t=e;return{set:function(e){t=e},is:function(e){return _(g(e),t)}}}(1),this.splides=[],this._options={},this._Extensions={};const i=h(e)?V(document,e):e;G(i,`${i} is invalid.`),this.root=i,P(Ct,It.defaults),P(P(this._options,Ct),t||{})}mount(e,t){const{state:i,Components:n}=this;G(i.is([1,5]),"Already mounted!"),i.set(1),this._Components=n,this._Transition=t||this._Transition||(this.is(ht)?kt:xt),this._Extensions=e||this._Extensions;return A(O({},Et,this._Extensions,{Transition:this._Transition}),((e,t)=>{const i=e(this,n,this._options);n[t]=i,i.setup&&i.setup()})),A(n,(e=>{e.mount&&e.mount()})),this.emit(le),S(this.root,"is-initialized"),i.set(3),this.emit(ce),this}sync(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._Components.Sync.remount(),e.Components.Sync.remount()),this}go(e){return this._Components.Controller.go(e),this}on(e,t){return this.event.on(e,t,null,20),this}off(e){return this.event.off(e),this}emit(e){return this.event.emit(e,...T(arguments,1)),this}add(e,t){return this._Components.Slides.add(e,t),this}remove(e){return this._Components.Slides.remove(e),this}is(e){return this._options.type===e}refresh(){return this.emit(ye),this}destroy(e=!0){const{event:t,state:i}=this;return i.is(1)?t.on(ce,this.destroy.bind(this,e),this):(A(this._Components,(t=>{t.destroy&&t.destroy(e)}),!0),t.emit(Ee),t.destroy(),e&&c(this.splides),i.set(5)),this}get options(){return this._options}set options(e){const{_options:t}=this;P(t,e),this.state.is(1)||this.emit(_e,t)}get length(){return this._Components.Slides.getLength(!0)}get index(){return this._Components.Controller.getIndex()}};let At=It;At.defaults={},At.STATES=l;const Ot=new Map,Pt={set(e,t,i){Ot.has(e)||Ot.set(e,new Map);const n=Ot.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>Ot.has(e)&&Ot.get(e).get(t)||null,remove(e,t){if(!Ot.has(e))return;const i=Ot.get(e);i.delete(t),0===i.size&&Ot.delete(e)}},Lt="transitionend",Dt=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t},Mt=e=>{const t=Dt(e);return t&&document.querySelector(t)?t:null},Nt=e=>{const t=Dt(e);return t?document.querySelector(t):null},Rt=e=>{e.dispatchEvent(new Event(Lt))},Ft=e=>!(!e||"object"!=typeof e)&&void 0!==e.nodeType,Bt=e=>Ft(e)?e:"string"==typeof e&&e.length>0?document.querySelector(e):null,Ut=e=>{if(!Ft(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},jt=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),$t=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?$t(e.parentNode):null},qt=()=>{},Vt=e=>{e.offsetHeight},Ht=()=>"undefined"!=typeof window&&"undefined"!=typeof document&&"rtl"===document.documentElement.dir,zt=e=>{"function"==typeof e&&e()},Wt=(e,t,i=!0)=>{if(!i)return void zt(e);const n=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let s=!1;const r=({target:i})=>{i===t&&(s=!0,t.removeEventListener(Lt,r),zt(e))};t.addEventListener(Lt,r),setTimeout((()=>{s||Rt(t)}),n)},Gt=(e,t,i,n)=>{const s=e.length;let r=e.indexOf(t);return-1===r?!i&&n?e[s-1]:e[0]:(r+=i?1:-1,n&&(r=(r+s)%s),e[Math.max(0,Math.min(r,s-1))])},Xt=/[^.]*(?=\..*)\.|.*/,Kt=/\..*/,Yt=/::\d+$/,Qt={};let Jt=1;const Zt={mouseenter:"mouseover",mouseleave:"mouseout"},ei=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 ti(e,t){return t&&`${t}::${Jt++}`||e.uidEvent||Jt++}function ii(e){const t=ti(e);return e.uidEvent=t,Qt[t]=Qt[t]||{},Qt[t]}function ni(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function si(e,t,i){const n="string"==typeof t,s=n?i:t||i;let r=function(e){return e=e.replace(Kt,""),Zt[e]||e}(e);return ei.has(r)||(r=e),[n,s,r]}function ri(e,t,i,n,s){if("string"!=typeof t||!e)return;let[r,o,a]=si(t,i,n);if(t in Zt){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};o=e(o)}const l=ii(e),c=l[a]||(l[a]={}),u=ni(c,o,r?i:null);if(u)return void(u.oneOff=u.oneOff&&s);const d=ti(o,t.replace(Xt,"")),h=r?function(e,t,i){return function n(s){const r=e.querySelectorAll(t);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return ci(s,{delegateTarget:o}),n.oneOff&&li.off(e,s.type,t,i),i.apply(o,[s])}}(e,i,o):function(e,t){return function i(n){return ci(n,{delegateTarget:e}),i.oneOff&&li.off(e,n.type,t),t.apply(e,[n])}}(e,o);h.delegationSelector=r?i:null,h.callable=o,h.oneOff=s,h.uidEvent=d,c[d]=h,e.addEventListener(a,h,r)}function oi(e,t,i,n,s){const r=ni(t[i],n,s);r&&(e.removeEventListener(i,r,Boolean(s)),delete t[i][r.uidEvent])}function ai(e,t,i,n){const s=t[i]||{};for(const r of Object.keys(s))if(r.includes(n)){const n=s[r];oi(e,t,i,n.callable,n.delegationSelector)}}const li={on(e,t,i,n){ri(e,t,i,n,!1)},one(e,t,i,n){ri(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,r,o]=si(t,i,n),a=o!==t,l=ii(e),c=l[o]||{},u=t.startsWith(".");if(void 0===r){if(u)for(const i of Object.keys(l))ai(e,l,i,t.slice(1));for(const i of Object.keys(c)){const n=i.replace(Yt,"");if(!a||t.includes(n)){const t=c[i];oi(e,l,o,t.callable,t.delegationSelector)}}}else{if(!Object.keys(c).length)return;oi(e,l,o,r,s?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;let n=new Event(t,{bubbles:!0,cancelable:!0});return n=ci(n,i),e.dispatchEvent(n),n}};function ci(e,t){for(const[i,n]of Object.entries(t||{}))try{e[i]=n}catch{Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function ui(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function di(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const hi={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${di(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${di(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=ui(e.dataset[n])}return t},getDataAttribute:(e,t)=>ui(e.getAttribute(`data-bs-${di(t)}`))};let pi=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=Ft(t)?hi.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Ft(t)?hi.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const n of Object.keys(t)){const s=t[n],r=e[n],o=Ft(r)?"element":null==(i=r)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}};class fi extends pi{constructor(e,t){super(),(e=Bt(e))&&(this._element=e,this._config=this._getConfig(t),Pt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Pt.remove(this._element,this.constructor.DATA_KEY),li.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){Wt(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Pt.get(Bt(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.2.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const mi={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!jt(e)&&Ut(e)))}},gi={slideFocus:!0,i18n:{prev:"Slide precedente",next:"Slide successiva",first:"Vai alla prima slide",last:"Vai all’ultima slide",slideX:"Vai alla slide %s",pageX:"Vai a pagina %s",play:"Attiva autoplay",pause:"Pausa autoplay"}},yi={"it-carousel-landscape-abstract-three-cols":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!1}}},"it-carousel-landscape-abstract-three-cols-arrow-visible":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!0,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!0},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!0}}},"it-big-img":{type:"loop",perPage:1,gap:48,padding:{left:320,right:320},arrows:!1,breakpoints:{768:{perPage:1,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:160,right:160},arrows:!1}}},"it-standard-image":{type:"loop",perPage:3,gap:24,padding:{left:48,right:48},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!1},992:{perPage:2,gap:24,padding:{left:48,right:48},arrows:!1}}},"it-carousel-landscape-abstract":{type:"slide",perPage:1,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:24,right:24},arrows:!1}}},"it-calendar-wrapper":{type:"slide",perPage:4,gap:0,padding:{left:0,right:0},arrows:!1,breakpoints:{560:{perPage:1,gap:0,padding:{left:24,right:24},arrows:!1},768:{perPage:2,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:3,gap:0,padding:{left:0,right:0},arrows:!1}}}};class _i extends fi{constructor(e){super(e),this._config=this._getConfig(),this._splide=new At(this._element,this._config),this._init()}dispose(){this._splide.destroy(),super.dispose()}static get NAME(){return"carousel"}_init(){this._splide.mount()}_getConfig(){let e=Object.assign({},gi);return Object.keys(yi).forEach((t=>{this._element.classList.contains(t)&&(e=Object.assign({},e,yi[t]))})),e}}"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(window,"load.bs.carousel.data-api",(()=>{mi.find("[data-bs-carousel-splide]").forEach((e=>{_i.getOrCreateInstance(e)}))}));const vi=".bs.inputlabel",bi=`focus${vi}`,Ti=`blur${vi}`,wi=`change${vi}`,Si="active";class Ei{constructor(e){this._element=e,this._init()}static get NAME(){return"inputlabel"}static getInputFromLabel=e=>{if("undefined"!=typeof window&&"undefined"!=typeof document)return document.querySelector("#"+CSS.escape(e.getAttribute("for")))};_init(){const e=this._getLabel();e&&!e.classList.contains(Si)&&(this._labelOut(),this._labelOver()),e&&null===e.getAttribute("it-bs-static")&&this._bindEvents()}_bindEvents(){["date","time"].includes(this._element.getAttribute("type"))||("file"===this._element.getAttribute("type")?li.on(this._element,Ti,(()=>{this._labelOut()})):(li.on(this._element,bi,(()=>{this._labelOut()})),li.on(this._element,Ti,(()=>{this._labelOver()})),li.on(this._element,wi,(()=>{this._labelToggle()}))))}_getLabel(){return mi.findOne('label[for="'+this._element.getAttribute("id")+'"]')}_isEmpty(){return!this._element.value&&!this._element.getAttribute("placeholder")}_labelOut(){const e=this._getLabel();e&&e.classList.add(Si)}_labelOver(){if(this._isEmpty()){const e=this._getLabel();e&&e.classList.remove(Si)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}const Ci=".bs.inputnumber",ki=`click${Ci}`,xi=`change${Ci}`,Ii=`click${Ci}.data-api`,Ai=".input-number",Oi='input[data-bs-input][type="number"]',Pi='button[class^="input-number-"]';class Li extends fi{constructor(e){super(e),this._wrapperElement=this._element.closest(Ai),this._label=new Ei(e),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(mi.find(Pi,this._wrapperElement).forEach((e=>{li.on(e,ki,(t=>{t.preventDefault(),this._incrDecr(e.classList.contains("input-number-sub")),this._label._labelOut()}))})),li.on(this._element,xi,(()=>this._checkLimit())))}_inputResize(){if(this._wrapperElement.classList.contains("input-number-adaptive")){let e=null;e="calc(70px + "+this._element.value.length+"ch)",e&&(this._element.style.width=e)}}_incrDecr(e){var t=0;if(""!==this._element.value&&(t=parseFloat(this._element.value)),!isNaN(t)){let i=parseFloat(this._element.getAttribute("step"));i||(i=1),this._element.value=t+i*(e?-1:1),li.trigger(this._element,xi),li.trigger(this._element,"input")}}_checkLimit(){const e=parseFloat(this._element.value);if(!isNaN(e)){let t=e;const i=parseFloat(this._element.getAttribute("max")),n=parseFloat(this._element.getAttribute("min"));n&&e<n&&(t=n),i&&e>i&&(t=i),this._element.value=t}this._inputResize()}}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(Oi+", label").forEach((function(e){const t=Ei.getInputFromLabel(e)||e;var i;(i=t)&&i.matches(Oi)&&i.parentNode.querySelector(Pi)&&Li.getOrCreateInstance(i)}))})),li.on(document,Ii,Pi,(function(){const e=this.closest(Ai);if(e){const t=mi.findOne(Oi,e);t&&Li.getOrCreateInstance(t)}})));const Di="show";class Mi extends fi{constructor(e){super(e),this._isShown=!e.matches("[aria-hidden=true]"),this._isTransitioning=!1}static get NAME(){return"dimmer"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(Di),this._queueCallback((()=>this._hideElement()),this._element,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),e&&Vt(this._element),this._element.classList.add(Di);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',(function(){const e=Nt(this),t=Mi.getOrCreateInstance(e);this.checked?t.show():t.hide()}));const Ni=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;li.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),jt(this))return;const s=Nt(this)||this.closest(`.${n}`);e.getOrCreateInstance(s)[t]()}))},Ri=".bs.notification",Fi=`click${Ri}.data-api`,Bi=`hidden${Ri}`,Ui=`show${Ri}`,ji={timeout:0},$i="show";class qi extends fi{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=this._element.classList.contains($i),this._isTransitioning=!1,this._toId=null}static get NAME(){return"notification"}show(e,t){if(this._isShown||this._isTransitioning)return;const i=e||this._getElementTimeout(t);this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement(i)}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove($i),this._queueCallback((()=>this._hideElement()),this._element,e)}toggle(e){this._isShown?this.hide():this.show(null,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(e){const t=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),t&&Vt(this._element),this._element.classList.add($i);this._queueCallback((()=>{this._isTransitioning=!1,e&&this._setTimeout(e,(()=>this.hide()))}),this._element,t)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}_getConfig(e){return e={...ji,...hi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_getElementTimeout(e){const t=e?parseInt(e.getAttribute("data-bs-timeout")):null;return t>0?t:this._config.timeout}_setTimeout(e,t){this._clearTimeout(),setTimeout(t,e)}_clearTimeout(){this._toId&&(clearTimeout(this._toId),this._toId=null)}}"undefined"!=typeof window&&"undefined"!=typeof document&&(li.on(document,Fi,'[data-bs-toggle="notification"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),li.one(t,Ui,(e=>{e.defaultPrevented||li.one(t,Bi,(()=>{Ut(this)&&this.focus()}))}));qi.getOrCreateInstance(t).toggle(this)})),Ni(qi));const Vi="cookiebar",Hi=".bs.cookiebar",zi=".data-api",Wi="cookies_consent",Gi=`close${Hi}`,Xi=`closed${Hi}`,Ki=`load${Hi}${zi}`,Yi=`click${Hi}${zi}`,Qi="show";class Ji extends fi{constructor(e){super(e),this._isShown=this._element.classList.contains(Qi),this._isTransitioning=!1}static get NAME(){return Vi}static get VERSION(){return"5.0.0"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(Qi),this._queueCallback((()=>this._hideElement()),this._element,e)}accept(e){e=e||this._element;const t=this._getRootElement(e);this._triggerCloseEvent(t).defaultPrevented||(this._setCookieEU(),this.hide())}static clearCookie(){"undefined"!=typeof document&&(document.cookie=Wi+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-live","polite"),e&&Vt(this._element),this._element.classList.add(Qi);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-live"),this._isTransitioning=!1}_setCookieEU(){var e=new Date;e.setDate(e.getDate()+30);var t=escape("true")+"; expires="+e.toUTCString();"undefined"!=typeof document&&(document.cookie=Wi+"="+t+"; path=/; SameSite=Strict")}_getRootElement(e){const t=Nt(e);let i=null;return t&&(i=t),i||(i=e.closest(".cookiebar")),i}_triggerCloseEvent(e){return li.trigger(e,Gi)}_removeElement(e){e.classList.remove(Qi),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-live","off"),li.trigger(e,Xi),this.dispose()}static _handleAccept(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _handleConsent(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _getCookieEU(){if("undefined"!=typeof document){var e,t,i,n=document.cookie.split(";");for(e=0;e<n.length;e++)if(t=n[e].substring(0,n[e].indexOf("=")),i=n[e].substring(n[e].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==Wi)return unescape(i)}}}"undefined"!=typeof window&&"undefined"!=typeof document&&(li.on(document,Yi,'[data-bs-accept="cookiebar"]',(function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),jt(this))return;const t=Nt(this)||this.closest(`.${Vi}`);Ji.getOrCreateInstance(t).accept()})),li.on(window,Ki,(function(){if(!Ji._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach((e=>{Ji.getOrCreateInstance(e).show()}))}})));const Zi=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches},en=(e,t)=>{let i=null;return t.forEach(((t,n)=>{t===e&&(i=n)})),i},tn=(e,t,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const n=en(e,t);let s=null;if(i.isLimit&&i.isDirectionTop&&n>0)s=t[0];else if(i.isLimit&&n<t.length-1)s=t[t.length-1];else if(i.isDirectionTop){if(!i.loop&&0===n)return;s=t[0===n?t.length-1:n-1]}else{if(!i.loop&&n===t.length-1)return;s=t[n===t.length-1?0:n+1]}s&&s.focus()},nn="pagescroll-scroll-disabled";let sn=!1,rn="undefined"==typeof document?0:document.scrollingElement.scrollTop;const on="undefined"==typeof document?null:document.querySelector("html");"undefined"!=typeof document&&document.addEventListener("scroll",(()=>{sn&&(document.scrollingElement.scrollTop=rn)}));const an=".bs.navbarcollapsible",ln=`click${an}.data-api`,cn=`click${an}`,un=`keyup${an}`,dn=`keydown${an}`,hn=`hide${an}`,pn=`hidden${an}`,fn=`show${an}`,mn=`shown${an}`,gn=`resize${an}`,yn="show",_n="expanded",vn=".close-menu",bn=".nav-link",Tn=".nav-item .list-item",wn=".it-heading-link",Sn=".it-footer-link";class En extends fi{constructor(e){super(e),this._isShown=this._element.classList.contains(_n),this._isTransitioning=!1,this._isMobile=Zi(),this._isKeyShift=!1,this._currItemIdx=0,this._btnClose=mi.findOne(".close-div button",this._element),this._btnBack=mi.findOne(".it-back-button",this._element),this._menuWrapper=mi.findOne(".menu-wrapper",this._element),this._overlay=null,this._setOverlay(),this._menuItems=mi.find([bn,Tn,wn,Sn,vn].join(","),this._element),this._bindEvents()}static get NAME(){return"navbarcollapsible"}show(e){if(this._isShown||this._isTransitioning)return;li.trigger(this._element,fn,{relatedTarget:e}).defaultPrevented||(this._btnBack&&this._btnBack.classList.add(yn),this._isShown=!0,"undefined"!=typeof document&&(sn=!0,rn=document.scrollingElement.scrollTop,on.classList.add(nn)),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;if(li.trigger(this._element,hn).defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._btnBack&&this._btnBack.classList.remove(yn),this._overlay&&this._overlay.classList.remove(yn),this._element.classList.remove(_n),"undefined"!=typeof document&&(sn=!1,on.classList.remove(nn)),this._queueCallback((()=>this._hideElement()),this._menuWrapper,e)}toggle(e){this._isShown?this.hide():this.show(e)}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(li.off(window,gn),super.dispose())}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(li.on(window,gn,(()=>this._onResize())),this._overlay&&li.on(this._overlay,cn,(()=>this.hide())),li.on(this._btnClose,cn,(e=>{e.preventDefault(),this.hide()})),li.on(this._btnBack,cn,(e=>{e.preventDefault(),this.hide()})),this._menuItems.forEach((e=>{li.on(e,dn,(e=>this._isMobile&&this._onMenuItemKeyDown(e))),li.on(e,un,(e=>this._isMobile&&this._onMenuItemKeyUp(e))),li.on(e,cn,(e=>this._isMobile&&this._onMenuItemClick(e)))})))}_onResize(){this._isMobile=Zi()}_onMenuItemKeyUp(e){"Shift"===e.key&&(this._isKeyShift=!1)}_onMenuItemKeyDown(e){"Shift"===e.key&&(this._isKeyShift=!0),"Tab"===e.key&&(e.preventDefault(),this._focusNext())}_onMenuItemClick(e){this.currItemIdx=en(e.currentTarget,this._menuItems)}_isAnimated(){return!0}_isElementHidden(e){return null===e.offsetParent}_showElement(){const e=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-expanded",!0),this._overlay&&(this._overlay.style.display="block"),e&&Vt(this._element),this._element.classList.add(_n),this._overlay&&this._overlay.classList.add(yn);this._queueCallback((()=>{this._isTransitioning=!1;const e=this._getNextVisibleItem(0);e.item&&(e.item.focus(),this._currItemIdx=e.index),li.trigger(this._element,mn)}),this._menuWrapper,e)}_hideElement(){this._overlay&&(this._overlay.style.display="none"),this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-expanded"),this._isTransitioning=!1,li.trigger(this._element,pn)}_setOverlay(){this._overlay=mi.findOne(".overlay",this._element),this._isAnimated&&this._overlay.classList.add("fade")}_focusNext(){let e=this._currItemIdx+(this._isKeyShift?-1:1);e<0?e=this._menuItems.length-1:e>=this._menuItems.length&&(e=0);const t=this._getNextVisibleItem(e,this._isKeyShift);t.item&&(t.item.focus(),this._currItemIdx=t.index)}_getNextVisibleItem(e,t){let i=null,n=null,s=e,r=t?-1:1,o=!1;for(;!(i||s==e&&o);)s==e&&(o=!0),this._isElementHidden(this._menuItems[s])||(i=this._menuItems[s],n=s),s+=r,s<0?s=this._menuItems.length-1:s>=this._menuItems.length&&(s=0);return{item:i,index:n}}}"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(document,ln,'[data-bs-toggle="navbarcollapsible"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),li.one(t,fn,(e=>{e.defaultPrevented||li.one(t,pn,(()=>{Ut(this)&&this.focus()}))}));En.getOrCreateInstance(t).toggle(this)}));const Cn=".bs.accordion",kn=`keydown${Cn}`,xn=`keydown${Cn}.data-api`,In='.accordion-item > .accordion-header [data-bs-toggle="collapse"]';class An extends fi{constructor(e){super(e),this._bindEvents()}static get NAME(){return"accordion"}handleKeyDown(e,t,i){const n={ArrowDown:e=>this._focusNext(e),ArrowUp:e=>this._focusPrev(e),Home:e=>this._focusFirst(e),End:e=>this._focusLast(e)};"function"==typeof n[e]&&(i&&i.preventDefault(),n[e](t))}_bindEvents(){mi.find(In,this._element).forEach((e=>{li.on(e,kn,(e=>{this.handleKeyDown(e.key,e.currentTarget,e)}))}))}_getHeadButtons(){return mi.find(":scope > "+In,this._element)}_focusNext(e){tn(e,this._getHeadButtons(),{loop:!0})}_focusPrev(e){tn(e,this._getHeadButtons(),{isDirectionTop:!0,loop:!0})}_focusFirst(e){tn(e,this._getHeadButtons(),{isDirectionTop:!0,isLimit:!0})}_focusLast(e){tn(e,this._getHeadButtons(),{isLimit:!0})}}var On;"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(document,xn,In,(function(e){const t=this.closest(".accordion");if(t){An.getOrCreateInstance(t).handleKeyDown(e.key,this,e)}}));var Pn=new Uint8Array(16);function Ln(){if(!On&&!(On="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return On(Pn)}const Dn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Mn=[],Nn=0;Nn<256;++Nn)Mn.push((Nn+256).toString(16).substr(1));function Rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Mn[e[t+0]]+Mn[e[t+1]]+Mn[e[t+2]]+Mn[e[t+3]]+"-"+Mn[e[t+4]]+Mn[e[t+5]]+"-"+Mn[e[t+6]]+Mn[e[t+7]]+"-"+Mn[e[t+8]]+Mn[e[t+9]]+"-"+Mn[e[t+10]]+Mn[e[t+11]]+Mn[e[t+12]]+Mn[e[t+13]]+Mn[e[t+14]]+Mn[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Dn.test(e)}(i))throw TypeError("Stringified UUID is invalid");return i}function Fn(e,t,i){var n=(e=e||{}).random||(e.rng||Ln)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,Rn(n)}let Bn=!1,Un=[];class jn{constructor(e,t){this.id=e,this._callback=t}dispose(){$n(this.id)}_execute(e){this._callback(e)}}const $n=e=>{Un=Un.filter((t=>t.id!==e))},qn=e=>{if("undefined"!=typeof document){if(Un.length||"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("scroll",(e=>{Bn||(window.requestAnimationFrame((()=>{Un.forEach((t=>t.cb._execute(e))),Bn=!1})),Bn=!0)})),"function"==typeof e){const t=new jn(Fn(),e);return Un.push({id:t.id,cb:t}),t}return console.error("[onDocumentScroll] the provided data has to be of type function"),null}};var Vn={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Hn={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},zn=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Wn={CSS:{},springs:{}};function Gn(e,t,i){return Math.min(Math.max(e,t),i)}function Xn(e,t){return e.indexOf(t)>-1}function Kn(e,t){return e.apply(null,t)}var Yn={arr:function(e){return Array.isArray(e)},obj:function(e){return Xn(Object.prototype.toString.call(e),"Object")},pth:function(e){return Yn.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||Yn.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return Yn.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return Yn.hex(e)||Yn.rgb(e)||Yn.hsl(e)},key:function(e){return!Vn.hasOwnProperty(e)&&!Hn.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function Qn(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function Jn(e,t){var i=Qn(e),n=Gn(Yn.und(i[0])?1:i[0],.1,100),s=Gn(Yn.und(i[1])?100:i[1],.1,100),r=Gn(Yn.und(i[2])?10:i[2],.1,100),o=Gn(Yn.und(i[3])?0:i[3],.1,100),a=Math.sqrt(s/n),l=r/(2*Math.sqrt(s*n)),c=l<1?a*Math.sqrt(1-l*l):0,u=l<1?(l*a-o)/c:-o+a;function d(e){var i=t?t*e/1e3:e;return i=l<1?Math.exp(-i*l*a)*(1*Math.cos(c*i)+u*Math.sin(c*i)):(1+u*i)*Math.exp(-i*a),0===e||1===e?e:1-i}return t?d:function(){var t=Wn.springs[e];if(t)return t;for(var i=1/6,n=0,s=0;;)if(1===d(n+=i)){if(++s>=16)break}else s=0;var r=n*i*1e3;return Wn.springs[e]=r,r}}function Zn(e){return void 0===e&&(e=10),function(t){return Math.ceil(Gn(t,1e-6,1)*e)*(1/e)}}var es,ts,is=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function n(e){return 3*e}function s(e,s,r){return((t(s,r)*e+i(s,r))*e+n(s))*e}function r(e,s,r){return 3*t(s,r)*e*e+2*i(s,r)*e+n(s)}return function(t,i,n,o){if(0<=t&&t<=1&&0<=n&&n<=1){var a=new Float32Array(11);if(t!==i||n!==o)for(var l=0;l<11;++l)a[l]=s(l*e,t,n);return function(e){return t===i&&n===o||0===e||1===e?e:s(c(e),i,o)}}function c(i){for(var o=0,l=1;10!==l&&a[l]<=i;++l)o+=e;--l;var c=o+(i-a[l])/(a[l+1]-a[l])*e,u=r(c,t,n);return u>=.001?function(e,t,i,n){for(var o=0;o<4;++o){var a=r(t,i,n);if(0===a)return t;t-=(s(t,i,n)-e)/a}return t}(i,c,t,n):0===u?c:function(e,t,i,n,r){var o,a,l=0;do{(o=s(a=t+(i-t)/2,n,r)-e)>0?i=a:t=a}while(Math.abs(o)>1e-7&&++l<10);return a}(i,o,o+e,t,n)}}}(),ns=(es={linear:function(){return function(e){return e}}},ts={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Expo:function(){return function(e){return e?Math.pow(2,10*e-10):0}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var i=Gn(e,1,10),n=Gn(t,.1,2);return function(e){return 0===e||1===e?e:-i*Math.pow(2,10*(e-1))*Math.sin((e-1-n/(2*Math.PI)*Math.asin(1/i))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint"].forEach((function(e,t){ts[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(ts).forEach((function(e){var t=ts[e];es["easeIn"+e]=t,es["easeOut"+e]=function(e,i){return function(n){return 1-t(e,i)(1-n)}},es["easeInOut"+e]=function(e,i){return function(n){return n<.5?t(e,i)(2*n)/2:1-t(e,i)(-2*n+2)/2}},es["easeOutIn"+e]=function(e,i){return function(n){return n<.5?(1-t(e,i)(1-2*n))/2:(t(e,i)(2*n-1)+1)/2}}})),es);function ss(e,t){if(Yn.fnc(e))return e;var i=e.split("(")[0],n=ns[i],s=Qn(e);switch(i){case"spring":return Jn(e,t);case"cubicBezier":return Kn(is,s);case"steps":return Kn(Zn,s);default:return Kn(n,s)}}function rs(e){try{return document.querySelectorAll(e)}catch(e){return}}function os(e,t){for(var i=e.length,n=arguments.length>=2?arguments[1]:void 0,s=[],r=0;r<i;r++)if(r in e){var o=e[r];t.call(n,o,r,e)&&s.push(o)}return s}function as(e){return e.reduce((function(e,t){return e.concat(Yn.arr(t)?as(t):t)}),[])}function ls(e){return Yn.arr(e)?e:(Yn.str(e)&&(e=rs(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function cs(e,t){return e.some((function(e){return e===t}))}function us(e){var t={};for(var i in e)t[i]=e[i];return t}function ds(e,t){var i=us(e);for(var n in e)i[n]=t.hasOwnProperty(n)?t[n]:e[n];return i}function hs(e,t){var i=us(e);for(var n in t)i[n]=Yn.und(e[n])?t[n]:e[n];return i}function ps(e){return Yn.rgb(e)?(i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+i[1]+",1)":t:Yn.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,i,n){return t+t+i+i+n+n})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(i[1],16)+","+parseInt(i[2],16)+","+parseInt(i[3],16)+",1)"}(e):Yn.hsl(e)?function(e){var t,i,n,s=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(s[1],10)/360,o=parseInt(s[2],10)/100,a=parseInt(s[3],10)/100,l=s[4]||1;function c(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}if(0==o)t=i=n=a;else{var u=a<.5?a*(1+o):a+o-a*o,d=2*a-u;t=c(d,u,r+1/3),i=c(d,u,r),n=c(d,u,r-1/3)}return"rgba("+255*t+","+255*i+","+255*n+","+l+")"}(e):void 0;var t,i}function fs(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function ms(e,t){return Yn.fnc(e)?e(t.target,t.id,t.total):e}function gs(e,t){return e.getAttribute(t)}function ys(e,t,i){if(cs([i,"deg","rad","turn"],fs(t)))return t;var n=Wn.CSS[t+i];if(!Yn.und(n))return n;var s=document.createElement(e.tagName),r=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;r.appendChild(s),s.style.position="absolute",s.style.width=100+i;var o=100/s.offsetWidth;r.removeChild(s);var a=o*parseFloat(t);return Wn.CSS[t+i]=a,a}function _s(e,t,i){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return i?ys(e,s,i):s}}function vs(e,t){return Yn.dom(e)&&!Yn.inp(e)&&(!Yn.nil(gs(e,t))||Yn.svg(e)&&e[t])?"attribute":Yn.dom(e)&&cs(zn,t)?"transform":Yn.dom(e)&&"transform"!==t&&_s(e,t)?"css":null!=e[t]?"object":void 0}function bs(e){if(Yn.dom(e)){for(var t,i=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,s=new Map;t=n.exec(i);)s.set(t[1],t[2]);return s}}function Ts(e,t,i,n){var s=Xn(t,"scale")?1:0+function(e){return Xn(e,"translate")||"perspective"===e?"px":Xn(e,"rotate")||Xn(e,"skew")?"deg":void 0}(t),r=bs(e).get(t)||s;return i&&(i.transforms.list.set(t,r),i.transforms.last=t),n?ys(e,r,n):r}function ws(e,t,i,n){switch(vs(e,t)){case"transform":return Ts(e,t,n,i);case"css":return _s(e,t,i);case"attribute":return gs(e,t);default:return e[t]||0}}function Ss(e,t){var i=/^(\*=|\+=|-=)/.exec(e);if(!i)return e;var n=fs(e)||0,s=parseFloat(t),r=parseFloat(e.replace(i[0],""));switch(i[0][0]){case"+":return s+r+n;case"-":return s-r+n;case"*":return s*r+n}}function Es(e,t){if(Yn.col(e))return ps(e);if(/\s/g.test(e))return e;var i=fs(e),n=i?e.substr(0,e.length-i.length):e;return t?n+t:n}function Cs(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function ks(e){for(var t,i=e.points,n=0,s=0;s<i.numberOfItems;s++){var r=i.getItem(s);s>0&&(n+=Cs(t,r)),t=r}return n}function xs(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*gs(e,"r")}(e);case"rect":return function(e){return 2*gs(e,"width")+2*gs(e,"height")}(e);case"line":return function(e){return Cs({x:gs(e,"x1"),y:gs(e,"y1")},{x:gs(e,"x2"),y:gs(e,"y2")})}(e);case"polyline":return ks(e);case"polygon":return function(e){var t=e.points;return ks(e)+Cs(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Is(e,t){var i=t||{},n=i.el||function(e){for(var t=e.parentNode;Yn.svg(t)&&Yn.svg(t.parentNode);)t=t.parentNode;return t}(e),s=n.getBoundingClientRect(),r=gs(n,"viewBox"),o=s.width,a=s.height,l=i.viewBox||(r?r.split(" "):[0,0,o,a]);return{el:n,viewBox:l,x:l[0]/1,y:l[1]/1,w:o,h:a,vW:l[2],vH:l[3]}}function As(e,t,i){function n(i){void 0===i&&(i=0);var n=t+i>=1?t+i:0;return e.el.getPointAtLength(n)}var s=Is(e.el,e.svg),r=n(),o=n(-1),a=n(1),l=i?1:s.w/s.vW,c=i?1:s.h/s.vH;switch(e.property){case"x":return(r.x-s.x)*l;case"y":return(r.y-s.y)*c;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function Os(e,t){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=Es(Yn.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:Yn.str(e)||t?n.split(i):[]}}function Ps(e){return os(e?as(Yn.arr(e)?e.map(ls):ls(e)):[],(function(e,t,i){return i.indexOf(e)===t}))}function Ls(e){var t=Ps(e);return t.map((function(e,i){return{target:e,id:i,total:t.length,transforms:{list:bs(e)}}}))}function Ds(e,t){var i=us(t);if(/^spring/.test(i.easing)&&(i.duration=Jn(i.easing)),Yn.arr(e)){var n=e.length;2===n&&!Yn.obj(e[0])?e={value:e}:Yn.fnc(t.duration)||(i.duration=t.duration/n)}var s=Yn.arr(e)?e:[e];return s.map((function(e,i){var n=Yn.obj(e)&&!Yn.pth(e)?e:{value:e};return Yn.und(n.delay)&&(n.delay=i?0:t.delay),Yn.und(n.endDelay)&&(n.endDelay=i===s.length-1?t.endDelay:0),n})).map((function(e){return hs(e,i)}))}function Ms(e,t){var i=[],n=t.keyframes;for(var s in n&&(t=hs(function(e){for(var t=os(as(e.map((function(e){return Object.keys(e)}))),(function(e){return Yn.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),i={},n=function(n){var s=t[n];i[s]=e.map((function(e){var t={};for(var i in e)Yn.key(i)?i==s&&(t.value=e[i]):t[i]=e[i];return t}))},s=0;s<t.length;s++)n(s);return i}(n),t)),t)Yn.key(s)&&i.push({name:s,tweens:Ds(t[s],e)});return i}function Ns(e,t){var i;return e.tweens.map((function(n){var s=function(e,t){var i={};for(var n in e){var s=ms(e[n],t);Yn.arr(s)&&1===(s=s.map((function(e){return ms(e,t)}))).length&&(s=s[0]),i[n]=s}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(n,t),r=s.value,o=Yn.arr(r)?r[1]:r,a=fs(o),l=ws(t.target,e.name,a,t),c=i?i.to.original:l,u=Yn.arr(r)?r[0]:c,d=fs(u)||fs(l),h=a||d;return Yn.und(o)&&(o=c),s.from=Os(u,h),s.to=Os(Ss(o,u),h),s.start=i?i.end:0,s.end=s.start+s.delay+s.duration+s.endDelay,s.easing=ss(s.easing,s.duration),s.isPath=Yn.pth(r),s.isPathTargetInsideSVG=s.isPath&&Yn.svg(t.target),s.isColor=Yn.col(s.from.original),s.isColor&&(s.round=1),i=s,s}))}var Rs={css:function(e,t,i){return e.style[t]=i},attribute:function(e,t,i){return e.setAttribute(t,i)},object:function(e,t,i){return e[t]=i},transform:function(e,t,i,n,s){if(n.list.set(t,i),t===n.last||s){var r="";n.list.forEach((function(e,t){r+=t+"("+e+") "})),e.style.transform=r}}};function Fs(e,t){Ls(e).forEach((function(e){for(var i in t){var n=ms(t[i],e),s=e.target,r=fs(n),o=ws(s,i,r,e),a=Ss(Es(n,r||fs(o)),o),l=vs(s,i);Rs[l](s,i,a,e.transforms,!0)}}))}function Bs(e,t){return os(as(e.map((function(e){return t.map((function(t){return function(e,t){var i=vs(e.target,t.name);if(i){var n=Ns(t,e),s=n[n.length-1];return{type:i,property:t.name,animatable:e,tweens:n,duration:s.end,delay:n[0].delay,endDelay:s.endDelay}}}(e,t)}))}))),(function(e){return!Yn.und(e)}))}function Us(e,t){var i=e.length,n=function(e){return e.timelineOffset?e.timelineOffset:0},s={};return s.duration=i?Math.max.apply(Math,e.map((function(e){return n(e)+e.duration}))):t.duration,s.delay=i?Math.min.apply(Math,e.map((function(e){return n(e)+e.delay}))):t.delay,s.endDelay=i?s.duration-Math.max.apply(Math,e.map((function(e){return n(e)+e.duration-e.endDelay}))):t.endDelay,s}var js=0;var $s=[],qs=function(){var e;function t(i){for(var n=$s.length,s=0;s<n;){var r=$s[s];r.paused?($s.splice(s,1),n--):(r.tick(i),s++)}e=s>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){Hs.suspendWhenDocumentHidden&&(Vs()?e=cancelAnimationFrame(e):($s.forEach((function(e){return e._onDocumentVisibility()})),qs()))})),function(){e||Vs()&&Hs.suspendWhenDocumentHidden||!($s.length>0)||(e=requestAnimationFrame(t))}}();function Vs(){return!!document&&document.hidden}function Hs(e){void 0===e&&(e={});var t,i=0,n=0,s=0,r=0,o=null;function a(e){var t=window.Promise&&new Promise((function(e){return o=e}));return e.finished=t,t}var l=function(e){var t=ds(Vn,e),i=ds(Hn,e),n=Ms(i,e),s=Ls(e.targets),r=Bs(s,n),o=Us(r,i),a=js;return js++,hs(t,{id:a,children:[],animatables:s,animations:r,duration:o.duration,delay:o.delay,endDelay:o.endDelay})}(e);function c(){var e=l.direction;"alternate"!==e&&(l.direction="normal"!==e?"normal":"reverse"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function u(e){return l.reversed?l.duration-e:e}function d(){i=0,n=u(l.currentTime)*(1/Hs.speed)}function h(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,i=l.animations,n=i.length;t<n;){var s=i[t],r=s.animatable,o=s.tweens,a=o.length-1,c=o[a];a&&(c=os(o,(function(t){return e<t.end}))[0]||c);for(var u=Gn(e-c.start-c.delay,0,c.duration)/c.duration,d=isNaN(u)?1:c.easing(u),h=c.to.strings,p=c.round,f=[],m=c.to.numbers.length,g=void 0,y=0;y<m;y++){var _=void 0,v=c.to.numbers[y],b=c.from.numbers[y]||0;_=c.isPath?As(c.value,d*v,c.isPathTargetInsideSVG):b+d*(v-b),p&&(c.isColor&&y>2||(_=Math.round(_*p)/p)),f.push(_)}var T=h.length;if(T){g=h[0];for(var w=0;w<T;w++){h[w];var S=h[w+1],E=f[w];isNaN(E)||(g+=S?E+S:E+" ")}}else g=f[0];Rs[s.type](r.target,s.property,g,r.transforms),s.currentValue=g,t++}}function f(e){l[e]&&!l.passThrough&&l[e](l)}function m(e){var d=l.duration,m=l.delay,g=d-l.endDelay,y=u(e);l.progress=Gn(y/d*100,0,100),l.reversePlayback=y<l.currentTime,t&&function(e){if(l.reversePlayback)for(var i=r;i--;)h(e,t[i]);else for(var n=0;n<r;n++)h(e,t[n])}(y),!l.began&&l.currentTime>0&&(l.began=!0,f("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,f("loopBegin")),y<=m&&0!==l.currentTime&&p(0),(y>=g&&l.currentTime!==d||!d)&&p(d),y>m&&y<g?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,f("changeBegin")),f("change"),p(y)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,f("changeComplete")),l.currentTime=Gn(y,0,d),l.began&&f("update"),e>=d&&(n=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(i=s,f("loopComplete"),l.loopBegan=!1,"alternate"===l.direction&&c()):(l.paused=!0,l.completed||(l.completed=!0,f("loopComplete"),f("complete"),!l.passThrough&&"Promise"in window&&(o(),a(l)))))}return a(l),l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed="reverse"===e,l.remaining=l.loop,t=l.children;for(var i=r=t.length;i--;)l.children[i].reset();(l.reversed&&!0!==l.loop||"alternate"===e&&1===l.loop)&&l.remaining++,p(l.reversed?l.duration:0)},l._onDocumentVisibility=d,l.set=function(e,t){return Fs(e,t),l},l.tick=function(e){s=e,i||(i=s),m((s+(n-i))*Hs.speed)},l.seek=function(e){m(u(e))},l.pause=function(){l.paused=!0,d()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,$s.push(l),d(),qs())},l.reverse=function(){c(),l.completed=!l.reversed,d()},l.restart=function(){l.reset(),l.play()},l.remove=function(e){Ws(Ps(e),l)},l.reset(),l.autoplay&&l.play(),l}function zs(e,t){for(var i=t.length;i--;)cs(e,t[i].animatable.target)&&t.splice(i,1)}function Ws(e,t){var i=t.animations,n=t.children;zs(e,i);for(var s=n.length;s--;){var r=n[s],o=r.animations;zs(e,o),o.length||r.children.length||n.splice(s,1)}i.length||n.length||t.pause()}Hs.version="3.2.1",Hs.speed=1,Hs.suspendWhenDocumentHidden=!0,Hs.running=$s,Hs.remove=function(e){for(var t=Ps(e),i=$s.length;i--;){Ws(t,$s[i])}},Hs.get=ws,Hs.set=Fs,Hs.convertPx=ys,Hs.path=function(e,t){var i=Yn.str(e)?rs(e)[0]:e,n=t||100;return function(e){return{property:e,el:i,svg:Is(i),totalLength:xs(i)*(n/100)}}},Hs.setDashoffset=function(e){var t=xs(e);return e.setAttribute("stroke-dasharray",t),t},Hs.stagger=function(e,t){void 0===t&&(t={});var i=t.direction||"normal",n=t.easing?ss(t.easing):null,s=t.grid,r=t.axis,o=t.from||0,a="first"===o,l="center"===o,c="last"===o,u=Yn.arr(e),d=u?parseFloat(e[0]):parseFloat(e),h=u?parseFloat(e[1]):0,p=fs(u?e[1]:e)||0,f=t.start||0+(u?d:0),m=[],g=0;return function(e,t,y){if(a&&(o=0),l&&(o=(y-1)/2),c&&(o=y-1),!m.length){for(var _=0;_<y;_++){if(s){var v=l?(s[0]-1)/2:o%s[0],b=l?(s[1]-1)/2:Math.floor(o/s[0]),T=v-_%s[0],w=b-Math.floor(_/s[0]),S=Math.sqrt(T*T+w*w);"x"===r&&(S=-T),"y"===r&&(S=-w),m.push(S)}else m.push(Math.abs(o-_));g=Math.max.apply(Math,m)}n&&(m=m.map((function(e){return n(e/g)*g}))),"reverse"===i&&(m=m.map((function(e){return r?e<0?-1*e:-e:Math.abs(g-e)})))}return f+(u?(h-d)/g:d)*(Math.round(100*m[t])/100)+p}},Hs.timeline=function(e){void 0===e&&(e={});var t=Hs(e);return t.duration=0,t.add=function(i,n){var s=$s.indexOf(t),r=t.children;function o(e){e.passThrough=!0}s>-1&&$s.splice(s,1);for(var a=0;a<r.length;a++)o(r[a]);var l=hs(i,ds(Hn,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=Yn.und(n)?c:Ss(n,c),o(t),t.seek(l.timelineOffset);var u=Hs(l);o(u),r.push(u);var d=Us(r,e);return t.delay=d.delay,t.endDelay=d.endDelay,t.duration=d.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},Hs.easing=ss,Hs.penner=ns,Hs.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const Gs={duration:800,easing:"easeInOutSine"},Xs=(e,t)=>{if("undefined"==typeof window||"undefined"==typeof document)return;const i=("object"==typeof t?t:{}).complete,n=window.document.scrollingElement||window.document.body||window.document.documentElement,s=n.style.scrollBehavior;t={scrollTop:e||0,...Gs,..."object"==typeof t?t:{}},n.style.scrollBehavior="auto",t.complete=e=>{n.style.scrollBehavior=s,"function"==typeof i&&i(e)},Hs({targets:n,...t})},Ks="active",Ys="ul.link-list",Qs="a.nav-link",Js=`${Qs}.${Ks}`,Zs=`${Qs}[href^="#"]`,er={scrollPadding:10,duration:800,easing:"easeInOutSine"};class tr extends fi{constructor(e,t){super(e),this._config=this._getConfig(t),this._togglerElement=mi.findOne(".custom-navbar-toggler",this._element),this._sectionContainer=mi.findOne(".it-page-sections-container"),this._collapsible=this._getCollapsible(),this._isCollapseOpened=!1,this._callbackQueue=[],this._scrollCb=null,this._bindEvents()}static get NAME(){return"navscroll"}setScrollPadding(e){this._config.scrollPadding=e}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(e){return e={...er,...hi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){this._scrollCb=qn((()=>this._onScroll())),this._collapsible&&(li.on(this._collapsible._element,"shown.bs.navbarcollapsible",(()=>this._onCollapseOpened())),li.on(this._collapsible._element,"hidden.bs.navbarcollapsible",(()=>this._onCollapseClosed()))),mi.find(Zs,this._element).forEach((e=>{e.addEventListener("click",(()=>{const t=()=>this._scrollToHash(e.hash);this._isCollapseOpened?(this._callbackQueue.push(t),this._collapsible.hide()):t()}))})),"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(window,"load",(()=>{setTimeout((()=>this._onScroll()),150)}))}_onCollapseOpened(){this._isCollapseOpened=!0}_onCollapseClosed(){for(;this._callbackQueue.length>0;){const e=this._callbackQueue.shift();"function"==typeof e&&e()}this._isCollapseOpened=!1}_getParentLinks(e){const t=[];let i=e.closest(Ys),n=null,s=!1;for(;i&&!s;){const e=i.closest("li.nav-link, li.nav-item");if(e){const i=e.querySelector(Qs);i&&t.push(i)}n=i,i=(i.parentElement||i).closest(Ys),i===n&&(s=!0)}return t}_decorateToggler(e){if(this._togglerElement){const t=mi.findOne(".it-list",this._togglerElement);this._togglerElement.innerText="",this._togglerElement.textContent="",this._togglerElement.append(t),this._togglerElement.append(e)}}_scrollToHash(e){const t=mi.findOne(e,this._sectionContainer);t&&(Xs(t.offsetTop-this._getScrollPadding(),{duration:this._config.duration,easing:this._config.easing}),history.pushState?history.pushState(null,null,e):location.hash=e)}_updateProgress(e){if(!e)return;const t=mi.find(".it-navscroll-progressbar");if(t){const i=Math.abs(e.getBoundingClientRect().top)/e.getBoundingClientRect().height*100,n=Math.min(100,Math.max(0,i));t.forEach((t=>{e.getBoundingClientRect().top<=0?(t.style.width=n+"%",t.setAttribute("aria-valuenow",n)):(t.style.width="0%",t.setAttribute("aria-valuenow",0))}))}}_onScroll(){const e=this._sectionContainer?this._sectionContainer.offsetTop:0;if("undefined"==typeof document)return;const t=document.scrollingElement.scrollTop-e,i=mi.find(Qs,this._element),n=this._getScrollPadding();mi.find(".it-page-section").forEach(((s,r)=>{if(s.offsetTop-e<=t+n&&(mi.find(Js,this._element).forEach((e=>{e.classList.remove(Ks)})),r<i.length)){const e=i[r];this._getParentLinks(e).forEach((e=>{e.classList.add(Ks)})),e.classList.add(Ks),this._decorateToggler(e.innerText)}})),this._updateProgress(this._sectionContainer)}_getCollapsible(){const e=mi.findOne(".navbar-collapsable",this._element);return e?En.getOrCreateInstance(e):null}_getScrollPadding(){return"function"==typeof this._config.scrollPadding?this._config.scrollPadding():this._config.scrollPadding}}if("undefined"!=typeof window&&"undefined"!=typeof document){mi.find("[data-bs-navscroll]").map((e=>{tr.getOrCreateInstance(e)}))}const ir=".bs.sticky",nr=`resize${ir}`,sr=`on${ir}`,rr=`off${ir}`,or="bs-is-sticky",ar="bs-is-fixed",lr='[data-bs-toggle="sticky"]',cr={positionType:"sticky",stickyClassName:"",stackable:!1,paddingTop:0};class ur extends fi{constructor(e,t){super(e),this._config=this._getConfig(t),this._isSticky=!1,this._wrapper=null,this._stickyTarget=mi.findOne(Mt(this._element),this._element)||this._element,this._stickyTargetMobile=mi.findOne(this._element.getAttribute("data-bs-target-mobile"),this._element)||this._stickyTarget,this._stickyLimit=0,this._stickyLimitMobile=0,this._setLimit(),this._scrollCb=null,this._isMobile=Zi(),this._prevTop=0,this._onScroll(),this._bindEvents()}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(li.off(window,nr),this._scrollCb.dispose(),super.dispose())}static get NAME(){return"sticky"}_getConfig(e){return e={...cr,...hi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(li.on(window,nr,(()=>this._onResize())),this._scrollCb=qn((()=>this._onScroll())))}_onResize(){this._isMobile=Zi(),this._setLimit()}_onScroll(){this._checkSticky()}_setLimit(){this._stickyLimit=this._cumulativeOffset(this._stickyTarget).top,this._stickyLimitMobile=this._cumulativeOffset(this._stickyTargetMobile).top}_getLimit(){let e=this._isMobile?this._stickyLimitMobile:this._stickyLimit;return this._config.stackable&&this._getStickySimblings().forEach(((t,i)=>{const n=t.getBoundingClientRect();e-=n.height+(0===i?parseFloat(t.style.top):0)})),e>0?e:0}_cumulativeOffset(e){let t=0,i=0;do{t+=e.offsetTop||0,i+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:i}}_isTypeSticky(){return"sticky"===this._config.positionType}_checkSticky(){this._isSticky||this._setLimit();const e=this._getLimit();"undefined"!=typeof window&&window.pageYOffset>e?this._setSticky():this._unsetSticky()}_setSticky(){if(!this._isSticky){this._isSticky=!0;let e=or;this._isTypeSticky()||(e=ar,this._wrapper=this._createWrapper()),this._element.classList.add(e),this._config.stickyClassName&&this._element.classList.add(this._config.stickyClassName),this._prevTop=this._element.style.top,this._element.style.top=this._getPositionTop()+"px",li.trigger(this._element,sr)}}_unsetSticky(){if(this._isSticky){let e=or;this._isTypeSticky()||(e=ar,this._destroyWrapper()),this._element.classList.remove(e),this._config.stickyClassName&&this._element.classList.remove(this._config.stickyClassName),this._element.style.top=this._prevTop,this._isSticky=!1,li.trigger(this._element,rr)}}_createWrapper(){if("undefined"==typeof document)return;const e=document.createElement("div");return e.classList.add("bs-it-sticky-wrapper"),e.style.width="100%",e.style.height=this._element.getBoundingClientRect().height+"px",e.style.overflow="hidden",this._element.parentNode.insertBefore(e,this._element),e.appendChild(this._element),e}_destroyWrapper(){this._wrapper&&(this._wrapper.parentNode.insertBefore(this._element,this._wrapper),this._wrapper.remove())}_getStickySimblings(){return mi.find(lr).filter((e=>{const t=ur.getInstance(e);return!(!t||!t._isSticky||e===this._element)}))}_getPositionTop(){let e=0;return this._config.stackable?(this._getStickySimblings().forEach(((t,i)=>{const n=t.getBoundingClientRect();e+=n.height+(0===i?parseFloat(t.style.top):0)})),e):e+this._config.paddingTop}}"undefined"!=typeof window&&"undefined"!=typeof document&&qn((()=>{mi.find(lr).map((e=>{ur.getOrCreateInstance(e)}))}));const dr="cloned-element",hr=`.${dr}`,pr=new Map;class fr{constructor(e){if(pr.get(e))return null;this._element=e,this._elementObj=ur.getOrCreateInstance(e),pr.set(e,this._elementObj),this._bindEvents(),this._toggleClonedElement(this._element.classList.contains("is-sticky"))}static getOrCreateInstance(e){return pr.get(e)||new this(e)}_bindEvents(){this._element.addEventListener("on.bs.sticky",(()=>this._toggleClonedElement(!0))),this._element.addEventListener("off.bs.sticky",(()=>this._toggleClonedElement(!1)))}_toggleClonedElement(e=!0){if(!Ut(mi.findOne(".custom-navbar-toggler",this._element))){const t=mi.findOne(".menu-wrapper",this._element);if(e){const e=mi.findOne(".it-brand-wrapper",this._element),i=mi.findOne(".it-search-wrapper",this._element),n=mi.findOne(".it-user-wrapper",this._element),s=e?e.cloneNode(!0):null,r=i?i.cloneNode(!0):null,o=n?n.cloneNode(!0):null;s&&t.insertBefore(s,t.childNodes[0]).classList.add(dr),r&&t.appendChild(r).classList.add(dr),o&&(t.appendChild(o).classList.add(dr),t.appendChild(o).classList.remove("show"))}else mi.find(hr,this._element).forEach((e=>{e.parentElement.removeChild(e)}))}}}qn((()=>{mi.find(".it-header-sticky").map((e=>{fr.getOrCreateInstance(e)}))}));var mr=Object.defineProperty,gr=(e,t,i)=>(((e,t,i)=>{t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!=typeof t?t+"":t,i),i);const yr=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,_r=/^-?[0-9]\d*$/,vr=/^(?=.*[A-Za-z])(?=.*\d).{8,}$/,br=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,Tr=e=>"string"!=typeof e||""===e;var wr=(e=>(e.Required="required",e.Email="email",e.MinLength="minLength",e.MaxLength="maxLength",e.Password="password",e.Number="number",e.Integer="integer",e.MaxNumber="maxNumber",e.MinNumber="minNumber",e.StrongPassword="strongPassword",e.CustomRegexp="customRegexp",e.MinFilesCount="minFilesCount",e.MaxFilesCount="maxFilesCount",e.Files="files",e))(wr||{}),Sr=(e=>(e.Required="required",e))(Sr||{}),Er=(e=>(e.Label="label",e.LabelArrow="labelArrow",e))(Er||{});const Cr=[{key:wr.Required,dict:{en:"The field is required"}},{key:wr.Email,dict:{en:"Email has invalid format"}},{key:wr.MaxLength,dict:{en:"The field must contain a maximum of :value characters"}},{key:wr.MinLength,dict:{en:"The field must contain a minimum of :value characters"}},{key:wr.Password,dict:{en:"Password must contain minimum eight characters, at least one letter and one number"}},{key:wr.StrongPassword,dict:{en:"Password should contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"}},{key:wr.Number,dict:{en:"Value should be a number"}},{key:wr.MaxNumber,dict:{en:"Number should be less or equal than :value"}},{key:wr.MinNumber,dict:{en:"Number should be more or equal than :value"}},{key:wr.MinFilesCount,dict:{en:"Files count should be more or equal than :value"}},{key:wr.MaxFilesCount,dict:{en:"Files count should be less or equal than :value"}},{key:wr.Files,dict:{en:"Uploaded files have one or several invalid properties (extension/size/type etc)."}}],kr=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then,xr=e=>Array.isArray(e)?e.filter((e=>e.length>0)):"string"==typeof e&&e.trim()?[...e.split(" ").filter((e=>e.length>0))]:[],Ir=e=>e instanceof Element||e instanceof HTMLDocument,Ar={errorFieldStyle:{color:"#b81111",border:"1px solid #B81111"},errorFieldCssClass:"just-validate-error-field",successFieldCssClass:"just-validate-success-field",errorLabelStyle:{color:"#b81111"},errorLabelCssClass:"just-validate-error-label",successLabelCssClass:"just-validate-success-label",focusInvalidField:!0,lockForm:!0,testingMode:!1,validateBeforeSubmitting:!1,submitFormAutomatically:!1};class Or{constructor(e,t,i){gr(this,"form",null),gr(this,"fields",{}),gr(this,"groupFields",{}),gr(this,"errors",{}),gr(this,"isValid",!1),gr(this,"isSubmitted",!1),gr(this,"globalConfig",Ar),gr(this,"errorLabels",{}),gr(this,"successLabels",{}),gr(this,"eventListeners",[]),gr(this,"dictLocale",Cr),gr(this,"currentLocale","en"),gr(this,"customStyleTags",{}),gr(this,"onSuccessCallback"),gr(this,"onFailCallback"),gr(this,"onValidateCallback"),gr(this,"tooltips",[]),gr(this,"lastScrollPosition"),gr(this,"isScrollTick"),gr(this,"fieldIds",new Map),gr(this,"getKeyByFieldSelector",(e=>this.fieldIds.get(e))),gr(this,"getFieldSelectorByKey",(e=>{for(const[t,i]of this.fieldIds)if(e===i)return t})),gr(this,"getCompatibleFields",(()=>{const e={};return Object.keys(this.fields).forEach((t=>{let i=t;const n=this.getFieldSelectorByKey(t);"string"==typeof n&&(i=n),e[i]={...this.fields[t]}})),e})),gr(this,"setKeyByFieldSelector",(e=>{if(this.fieldIds.has(e))return this.fieldIds.get(e);const t=String(this.fieldIds.size+1);return this.fieldIds.set(e,t),t})),gr(this,"refreshAllTooltips",(()=>{this.tooltips.forEach((e=>{e.refresh()}))})),gr(this,"handleDocumentScroll",(()=>{this.lastScrollPosition=window.scrollY,this.isScrollTick||(window.requestAnimationFrame((()=>{this.refreshAllTooltips(),this.isScrollTick=!1})),this.isScrollTick=!0)})),gr(this,"formSubmitHandler",(e=>{e.preventDefault(),this.isSubmitted=!0,this.validateHandler(e)})),gr(this,"handleFieldChange",(e=>{let t;for(const i in this.fields){if(this.fields[i].elem===e){t=i;break}}t&&(this.fields[t].touched=!0,this.validateField(t,!0))})),gr(this,"handleGroupChange",(e=>{let t;for(const i in this.groupFields){if(this.groupFields[i].elems.find((t=>t===e))){t=i;break}}t&&(this.groupFields[t].touched=!0,this.validateGroup(t,!0))})),gr(this,"handlerChange",(e=>{e.target&&(this.handleFieldChange(e.target),this.handleGroupChange(e.target),this.renderErrors())})),this.initialize(e,t,i)}initialize(e,t,i){if(this.form=null,this.errors={},this.isValid=!1,this.isSubmitted=!1,this.globalConfig=Ar,this.errorLabels={},this.successLabels={},this.eventListeners=[],this.customStyleTags={},this.tooltips=[],this.currentLocale="en","string"==typeof e){const t=document.querySelector(e);if(!t)throw Error(`Form with ${e} selector not found! Please check the form selector`);this.setForm(t)}else{if(!(e instanceof HTMLFormElement))throw Error("Form selector is not valid. Please specify a string selector or a DOM element.");this.setForm(e)}if(this.globalConfig={...Ar,...t},i&&(this.dictLocale=[...i,...Cr]),this.isTooltip()){const e=document.createElement("style");e.textContent=".just-validate-error-label[data-tooltip=true]{position:fixed;padding:4px 8px;background:#423f3f;color:#fff;white-space:nowrap;z-index:10;border-radius:4px;transform:translateY(-5px)}.just-validate-error-label[data-tooltip=true]:before{content:'';width:0;height:0;border-left:solid 5px transparent;border-right:solid 5px transparent;border-bottom:solid 5px #423f3f;position:absolute;z-index:3;display:block;bottom:-5px;transform:rotate(180deg);left:calc(50% - 5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]{transform:translateX(-5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]:before{right:-7px;bottom:auto;left:auto;top:calc(50% - 2px);transform:rotate(90deg)}.just-validate-error-label[data-tooltip=true][data-direction=right]{transform:translateX(5px)}.just-validate-error-label[data-tooltip=true][data-direction=right]:before{right:auto;bottom:auto;left:-7px;top:calc(50% - 2px);transform:rotate(-90deg)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]{transform:translateY(5px)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]:before{right:auto;bottom:auto;left:calc(50% - 5px);top:-5px;transform:rotate(0)}",this.customStyleTags[Er.Label]=document.head.appendChild(e),this.addListener("scroll",document,this.handleDocumentScroll)}}getLocalisedString(e,t,i){var n;const s=null!=i?i:e;let r=null==(n=this.dictLocale.find((e=>e.key===s)))?void 0:n.dict[this.currentLocale];if(r||i&&(r=i),r&&void 0!==t)switch(e){case wr.MaxLength:case wr.MinLength:case wr.MaxNumber:case wr.MinNumber:case wr.MinFilesCount:case wr.MaxFilesCount:r=r.replace(":value",String(t))}return r||i||"Value is incorrect"}getFieldErrorMessage(e,t){const i="function"==typeof e.errorMessage?e.errorMessage(this.getElemValue(t),this.fields):e.errorMessage;return this.getLocalisedString(e.rule,e.value,i)}getFieldSuccessMessage(e,t){const i="function"==typeof e?e(this.getElemValue(t),this.fields):e;return this.getLocalisedString(void 0,void 0,i)}getGroupErrorMessage(e){return this.getLocalisedString(e.rule,void 0,e.errorMessage)}getGroupSuccessMessage(e){if(e.successMessage)return this.getLocalisedString(void 0,void 0,e.successMessage)}setFieldInvalid(e,t){this.fields[e].isValid=!1,this.fields[e].errorMessage=this.getFieldErrorMessage(t,this.fields[e].elem)}setFieldValid(e,t){this.fields[e].isValid=!0,void 0!==t&&(this.fields[e].successMessage=this.getFieldSuccessMessage(t,this.fields[e].elem))}setGroupInvalid(e,t){this.groupFields[e].isValid=!1,this.groupFields[e].errorMessage=this.getGroupErrorMessage(t)}setGroupValid(e,t){this.groupFields[e].isValid=!0,this.groupFields[e].successMessage=this.getGroupSuccessMessage(t)}getElemValue(e){switch(e.type){case"checkbox":return e.checked;case"file":return e.files;default:return e.value}}validateGroupRule(e,t,i){if(i.rule===Sr.Required)t.every((e=>!e.checked))?this.setGroupInvalid(e,i):this.setGroupValid(e,i)}validateFieldRule(e,t,i,n=!1){const s=i.value,r=this.getElemValue(t);if(i.plugin){i.plugin(r,this.getCompatibleFields())||this.setFieldInvalid(e,i)}else{switch(i.rule){case wr.Required:(e=>{let t=e;return"string"==typeof e&&(t=e.trim()),!t})(r)&&this.setFieldInvalid(e,i);break;case wr.Email:if(Tr(r))break;o=r,yr.test(o)||this.setFieldInvalid(e,i);break;case wr.MaxLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Tr(r))break;((e,t)=>e.length>t)(r,s)&&this.setFieldInvalid(e,i);break;case wr.MinLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Tr(r))break;((e,t)=>e.length<t)(r,s)&&this.setFieldInvalid(e,i);break;case wr.Password:if(Tr(r))break;(e=>vr.test(e))(r)||this.setFieldInvalid(e,i);break;case wr.StrongPassword:if(Tr(r))break;(e=>br.test(e))(r)||this.setFieldInvalid(e,i);break;case wr.Number:if(Tr(r))break;(e=>"string"==typeof e&&!isNaN(+e)&&!isNaN(parseFloat(e)))(r)||this.setFieldInvalid(e,i);break;case wr.Integer:if(Tr(r))break;(e=>_r.test(e))(r)||this.setFieldInvalid(e,i);break;case wr.MaxNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Tr(r))break;const t=+r;(Number.isNaN(t)||((e,t)=>e>t)(t,s))&&this.setFieldInvalid(e,i);break}case wr.MinNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Tr(r))break;const t=+r;(Number.isNaN(t)||((e,t)=>e<t)(t,s))&&this.setFieldInvalid(e,i);break}case wr.CustomRegexp:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(e,i);let t;try{t=new RegExp(s)}catch(t){console.error(`Value for ${i.rule} rule for [${e}] should be a valid regexp. This field will be always invalid.`),this.setFieldInvalid(e,i);break}const n=String(r);""===n||t.test(n)||this.setFieldInvalid(e,i);break}case wr.MinFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Number.isFinite(null==r?void 0:r.length)&&r.length<s){this.setFieldInvalid(e,i);break}break;case wr.MaxFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Number.isFinite(null==r?void 0:r.length)&&r.length>s){this.setFieldInvalid(e,i);break}break;case wr.Files:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(e,i);if("object"!=typeof s)return console.error(`Value for ${i.rule} rule for [${e}] field should be an object. This field will be always invalid.`),void this.setFieldInvalid(e,i);const t=s.files;if("object"!=typeof t)return console.error(`Value for ${i.rule} rule for [${e}] field should be an object with files array. This field will be always invalid.`),void this.setFieldInvalid(e,i);const n=(e,t)=>{const i=Number.isFinite(t.minSize)&&e.size<t.minSize,n=Number.isFinite(t.maxSize)&&e.size>t.maxSize,s=Array.isArray(t.names)&&!t.names.includes(e.name),r=Array.isArray(t.extensions)&&!t.extensions.includes(e.name.split(".")[e.name.split(".").length-1]),o=Array.isArray(t.types)&&!t.types.includes(e.type);return i||n||s||r||o};if("object"==typeof r&&null!==r)for(let s=0,o=r.length;s<o;++s){const o=r.item(s);if(!o){this.setFieldInvalid(e,i);break}if(n(o,t)){this.setFieldInvalid(e,i);break}}break}default:{if("function"!=typeof i.validator)return console.error(`Validator for custom rule for [${e}] field should be a function. This field will be always invalid.`),void this.setFieldInvalid(e,i);const t=i.validator(r,this.getCompatibleFields());if("boolean"!=typeof t&&"function"!=typeof t&&console.error(`Validator return value for [${e}] field should be boolean or function. It will be cast to boolean.`),"function"==typeof t){if(!n){this.fields[e].asyncCheckPending=!1;const n=t();return kr(n)?n.then((t=>{t||this.setFieldInvalid(e,i)})).catch((()=>{this.setFieldInvalid(e,i)})):(console.error(`Validator function for custom rule for [${e}] field should return a Promise. This field will be always invalid.`),void this.setFieldInvalid(e,i))}this.fields[e].asyncCheckPending=!0}t||this.setFieldInvalid(e,i)}}var o}}isFormValid(){let e=!0;for(let t=0,i=Object.values(this.fields).length;t<i;++t){const i=Object.values(this.fields)[t];if(void 0===i.isValid){e=void 0;break}if(!1===i.isValid){e=!1;break}}for(let t=0,i=Object.values(this.groupFields).length;t<i;++t){const i=Object.values(this.groupFields)[t];if(void 0===i.isValid){e=void 0;break}if(!1===i.isValid){e=!1;break}}return e}validateField(e,t=!1){var i;const n=this.fields[e];n.isValid=!0;const s=[];return[...n.rules].reverse().forEach((i=>{const r=this.validateFieldRule(e,n.elem,i,t);kr(r)&&s.push(r)})),n.isValid&&this.setFieldValid(e,null==(i=n.config)?void 0:i.successMessage),Promise.allSettled(s).finally((()=>{var e;t&&(null==(e=this.onValidateCallback)||e.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}))}))}revalidateField(e){if("string"!=typeof e&&!Ir(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);return t&&this.fields[t]?new Promise((e=>{this.validateField(t,!0).finally((()=>{this.clearFieldStyle(t),this.clearFieldLabel(t),this.renderFieldError(t,!0),e(!!this.fields[t].isValid)}))})):(console.error("Field not found. Check the field selector."),Promise.reject())}revalidateGroup(e){if("string"!=typeof e&&!Ir(e))throw Error("Group selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);return t&&this.groupFields[t]?new Promise((e=>{this.validateGroup(t).finally((()=>{this.clearFieldLabel(t),this.renderGroupError(t,!0),e(!!this.groupFields[t].isValid)}))})):(console.error("Group not found. Check the group selector."),Promise.reject())}validateGroup(e,t=!1){const i=this.groupFields[e],n=[];return[...i.rules].reverse().forEach((t=>{const s=this.validateGroupRule(e,i.elems,t);kr(s)&&n.push(s)})),Promise.allSettled(n).finally((()=>{var e;t&&(null==(e=this.onValidateCallback)||e.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}))}))}focusInvalidField(){for(const e in this.fields){const t=this.fields[e];if(!t.isValid){setTimeout((()=>t.elem.focus()),0);break}}}afterSubmitValidation(e=!1){this.renderErrors(e),this.globalConfig.focusInvalidField&&this.focusInvalidField()}validate(e=!1){return new Promise((t=>{const i=[];Object.keys(this.fields).forEach((e=>{const t=this.validateField(e);kr(t)&&i.push(t)})),Object.keys(this.groupFields).forEach((e=>{const t=this.validateGroup(e);kr(t)&&i.push(t)})),Promise.allSettled(i).then((()=>{var n;this.afterSubmitValidation(e),null==(n=this.onValidateCallback)||n.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}),t(!!i.length)}))}))}revalidate(){return new Promise((e=>{this.validateHandler(void 0,!0).finally((()=>{this.globalConfig.focusInvalidField&&this.focusInvalidField(),e(this.isValid)}))}))}validateHandler(e,t=!1){return this.globalConfig.lockForm&&this.lockForm(),this.validate(t).finally((()=>{var t,i,n;this.globalConfig.lockForm&&this.unlockForm(),this.isValid?(null==(t=this.onSuccessCallback)||t.call(this,e),this.globalConfig.submitFormAutomatically&&(null==(i=null==e?void 0:e.currentTarget)||i.submit())):null==(n=this.onFailCallback)||n.call(this,this.getCompatibleFields(),this.groupFields)}))}setForm(e){this.form=e,this.form.setAttribute("novalidate","novalidate"),this.removeListener("submit",this.form,this.formSubmitHandler),this.addListener("submit",this.form,this.formSubmitHandler)}addListener(e,t,i){t.addEventListener(e,i),this.eventListeners.push({type:e,elem:t,func:i})}removeListener(e,t,i){t.removeEventListener(e,i),this.eventListeners=this.eventListeners.filter((i=>i.type!==e||i.elem!==t))}addField(e,t,i){if("string"!=typeof e&&!Ir(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");let n;if(n="string"==typeof e?this.form.querySelector(e):e,!n)throw Error("Field doesn't exist in the DOM! Please check the field selector.");if(!Array.isArray(t)||!t.length)throw Error("Rules argument should be an array and should contain at least 1 element.");t.forEach((e=>{if(!("rule"in e||"validator"in e||"plugin"in e))throw Error("Rules argument must contain at least one rule or validator property.");if(!(e.validator||e.plugin||e.rule&&Object.values(wr).includes(e.rule)))throw Error(`Rule should be one of these types: ${Object.values(wr).join(", ")}. Provided value: ${e.rule}`)}));const s=this.setKeyByFieldSelector(e);return this.fields[s]={elem:n,rules:t,isValid:void 0,touched:!1,config:i},this.setListeners(n),(this.isSubmitted||this.globalConfig.validateBeforeSubmitting)&&this.validateField(s),this}removeField(e){if("string"!=typeof e&&!Ir(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);if(!t||!this.fields[t])return console.error("Field not found. Check the field selector."),this;const i=this.getListenerType(this.fields[t].elem.type);return this.removeListener(i,this.fields[t].elem,this.handlerChange),this.clearErrors(),delete this.fields[t],this}removeGroup(e){if("string"!=typeof e)throw Error("Group selector is not valid. Please specify a string selector.");const t=this.getKeyByFieldSelector(e);return t&&this.groupFields[t]?(this.groupFields[t].elems.forEach((e=>{const t=this.getListenerType(e.type);this.removeListener(t,e,this.handlerChange)})),this.clearErrors(),delete this.groupFields[t],this):(console.error("Group not found. Check the group selector."),this)}addRequiredGroup(e,t,i,n){if("string"!=typeof e&&!Ir(e))throw Error("Group selector is not valid. Please specify a string selector or a valid DOM element.");let s;if(s="string"==typeof e?this.form.querySelector(e):e,!s)throw Error("Group selector not found! Please check the group selector.");const r=s.querySelectorAll("input"),o=Array.from(r).filter((e=>{const t=((e,t)=>{const i=[...t].reverse();for(let t=0,n=i.length;t<n;++t){const n=i[t];for(const t in e){const i=e[t];if(i.groupElem===n)return[t,i]}}return null})(this.groupFields,(e=>{let t=e;const i=[];for(;t;)i.unshift(t),t=t.parentNode;return i})(e));return!t||t[1].elems.find((t=>t!==e))})),a=this.setKeyByFieldSelector(e);return this.groupFields[a]={rules:[{rule:Sr.Required,errorMessage:t,successMessage:n}],groupElem:s,elems:o,touched:!1,isValid:void 0,config:i},r.forEach((e=>{this.setListeners(e)})),this}getListenerType(e){switch(e){case"checkbox":case"select-one":case"file":case"radio":return"change";default:return"input"}}setListeners(e){const t=this.getListenerType(e.type);this.removeListener(t,e,this.handlerChange),this.addListener(t,e,this.handlerChange)}clearFieldLabel(e){var t,i;null==(t=this.errorLabels[e])||t.remove(),null==(i=this.successLabels[e])||i.remove()}clearFieldStyle(e){var t,i,n,s;const r=this.fields[e],o=(null==(t=r.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(o).forEach((e=>{r.elem.style[e]=""}));const a=(null==(i=r.config)?void 0:i.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(a).forEach((e=>{r.elem.style[e]=""})),r.elem.classList.remove(...xr((null==(n=r.config)?void 0:n.errorFieldCssClass)||this.globalConfig.errorFieldCssClass),...xr((null==(s=r.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}clearErrors(){var e,t;Object.keys(this.errorLabels).forEach((e=>this.errorLabels[e].remove())),Object.keys(this.successLabels).forEach((e=>this.successLabels[e].remove()));for(const e in this.fields)this.clearFieldStyle(e);for(const i in this.groupFields){const n=this.groupFields[i],s=(null==(e=n.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(s).forEach((e=>{n.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...xr((null==(i=n.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}))}));const r=(null==(t=n.config)?void 0:t.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(r).forEach((e=>{n.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...xr((null==(i=n.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}))}))}this.tooltips=[]}isTooltip(){return!!this.globalConfig.tooltip}lockForm(){const e=this.form.querySelectorAll("input, textarea, button, select");for(let t=0,i=e.length;t<i;++t)e[t].setAttribute("data-just-validate-fallback-disabled",e[t].disabled?"true":"false"),e[t].setAttribute("disabled","disabled"),e[t].style.pointerEvents="none",e[t].style.webkitFilter="grayscale(100%)",e[t].style.filter="grayscale(100%)"}unlockForm(){const e=this.form.querySelectorAll("input, textarea, button, select");for(let t=0,i=e.length;t<i;++t)"true"!==e[t].getAttribute("data-just-validate-fallback-disabled")&&e[t].removeAttribute("disabled"),e[t].style.pointerEvents="",e[t].style.webkitFilter="",e[t].style.filter=""}renderTooltip(e,t,i){var n;const{top:s,left:r,width:o,height:a}=e.getBoundingClientRect(),l=t.getBoundingClientRect(),c=i||(null==(n=this.globalConfig.tooltip)?void 0:n.position);switch(c){case"left":t.style.top=s+a/2-l.height/2+"px",t.style.left=r-l.width-5+"px";break;case"top":t.style.top=s-l.height-5+"px",t.style.left=r+o/2-l.width/2+"px";break;case"right":t.style.top=s+a/2-l.height/2+"px",t.style.left=`${r+o+5}px`;break;case"bottom":t.style.top=`${s+a+5}px`,t.style.left=r+o/2-l.width/2+"px"}t.dataset.direction=c;return{refresh:()=>{this.renderTooltip(e,t,i)}}}createErrorLabelElem(e,t,i){const n=document.createElement("div");n.innerHTML=t;const s=this.isTooltip()?null==i?void 0:i.errorLabelStyle:(null==i?void 0:i.errorLabelStyle)||this.globalConfig.errorLabelStyle;return Object.assign(n.style,s),n.classList.add(...xr((null==i?void 0:i.errorLabelCssClass)||this.globalConfig.errorLabelCssClass),"just-validate-error-label"),this.isTooltip()&&(n.dataset.tooltip="true"),this.globalConfig.testingMode&&(n.dataset.testId=`error-label-${e}`),this.errorLabels[e]=n,n}createSuccessLabelElem(e,t,i){if(void 0===t)return null;const n=document.createElement("div");n.innerHTML=t;const s=(null==i?void 0:i.successLabelStyle)||this.globalConfig.successLabelStyle;return Object.assign(n.style,s),n.classList.add(...xr((null==i?void 0:i.successLabelCssClass)||this.globalConfig.successLabelCssClass),"just-validate-success-label"),this.globalConfig.testingMode&&(n.dataset.testId=`success-label-${e}`),this.successLabels[e]=n,n}renderErrorsContainer(e,t){const i=t||this.globalConfig.errorsContainer;if("string"==typeof i){const t=this.form.querySelector(i);if(t)return t.appendChild(e),!0;console.error(`Error container with ${i} selector not found. Errors will be rendered as usual`)}return i instanceof Element?(i.appendChild(e),!0):(void 0!==i&&console.error("Error container not found. It should be a string or existing Element. Errors will be rendered as usual"),!1)}renderGroupLabel(e,t,i,n){if(!n){if(this.renderErrorsContainer(t,i))return}e.appendChild(t)}renderFieldLabel(e,t,i,n){var s,r,o,a,l,c,u;if(!n){if(this.renderErrorsContainer(t,i))return}if("checkbox"===e.type||"radio"===e.type){const i=document.querySelector(`label[for="${e.getAttribute("id")}"]`);"label"===(null==(r=null==(s=e.parentElement)?void 0:s.tagName)?void 0:r.toLowerCase())?null==(a=null==(o=e.parentElement)?void 0:o.parentElement)||a.appendChild(t):i?null==(l=i.parentElement)||l.appendChild(t):null==(c=e.parentElement)||c.appendChild(t)}else null==(u=e.parentElement)||u.appendChild(t)}showLabels(e,t){Object.keys(e).forEach(((i,n)=>{const s=e[i],r=this.getKeyByFieldSelector(i);if(!r||!this.fields[r])return void console.error("Field not found. Check the field selector.");const o=this.fields[r];o.isValid=!t,this.clearFieldStyle(r),this.clearFieldLabel(r),this.renderFieldError(r,!1,s),0===n&&this.globalConfig.focusInvalidField&&setTimeout((()=>o.elem.focus()),0)}))}showErrors(e){if("object"!=typeof e)throw Error("[showErrors]: Errors should be an object with key: value format");this.showLabels(e,!0)}showSuccessLabels(e){if("object"!=typeof e)throw Error("[showSuccessLabels]: Labels should be an object with key: value format");this.showLabels(e,!1)}renderFieldError(e,t=!1,i){var n,s,r,o,a,l;const c=this.fields[e];if(!1===c.isValid&&(this.isValid=!1),void 0===c.isValid||!t&&!this.isSubmitted&&!c.touched&&void 0===i)return;if(c.isValid){if(!c.asyncCheckPending){const t=this.createSuccessLabelElem(e,void 0!==i?i:c.successMessage,c.config);t&&this.renderFieldLabel(c.elem,t,null==(n=c.config)?void 0:n.errorsContainer,!0),c.elem.classList.add(...xr((null==(s=c.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}return}c.elem.classList.add(...xr((null==(r=c.config)?void 0:r.errorFieldCssClass)||this.globalConfig.errorFieldCssClass));const u=this.createErrorLabelElem(e,void 0!==i?i:c.errorMessage,c.config);this.renderFieldLabel(c.elem,u,null==(o=c.config)?void 0:o.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(c.elem,u,null==(l=null==(a=c.config)?void 0:a.tooltip)?void 0:l.position))}renderGroupError(e,t=!0){var i,n,s,r;const o=this.groupFields[e];if(!1===o.isValid&&(this.isValid=!1),void 0===o.isValid||!t&&!this.isSubmitted&&!o.touched)return;if(o.isValid){o.elems.forEach((e=>{var t,i;Object.assign(e.style,(null==(t=o.config)?void 0:t.successFieldStyle)||this.globalConfig.successFieldStyle),e.classList.add(...xr((null==(i=o.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}));const t=this.createSuccessLabelElem(e,o.successMessage,o.config);return void(t&&this.renderGroupLabel(o.groupElem,t,null==(i=o.config)?void 0:i.errorsContainer,!0))}this.isValid=!1,o.elems.forEach((e=>{var t,i;Object.assign(e.style,(null==(t=o.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle),e.classList.add(...xr((null==(i=o.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}));const a=this.createErrorLabelElem(e,o.errorMessage,o.config);this.renderGroupLabel(o.groupElem,a,null==(n=o.config)?void 0:n.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(o.groupElem,a,null==(r=null==(s=o.config)?void 0:s.tooltip)?void 0:r.position))}renderErrors(e=!1){if(this.isSubmitted||e||this.globalConfig.validateBeforeSubmitting){this.clearErrors(),this.isValid=!0;for(const e in this.groupFields)this.renderGroupError(e);for(const e in this.fields)this.renderFieldError(e)}}destroy(){this.eventListeners.forEach((e=>{this.removeListener(e.type,e.elem,e.func)})),Object.keys(this.customStyleTags).forEach((e=>{this.customStyleTags[e].remove()})),this.clearErrors(),this.globalConfig.lockForm&&this.unlockForm()}refresh(){this.destroy(),this.form?(this.initialize(this.form,this.globalConfig),Object.keys(this.fields).forEach((e=>{const t=this.getFieldSelectorByKey(e);t&&this.addField(t,[...this.fields[e].rules],this.fields[e].config)}))):console.error("Cannot initialize the library! Form is not defined")}setCurrentLocale(e){"string"==typeof e||void 0===e?(this.currentLocale=e,this.isSubmitted&&this.validate()):console.error("Current locale should be a string")}onSuccess(e){return this.onSuccessCallback=e,this}onFail(e){return this.onFailCallback=e,this}onValidate(e){return this.onValidateCallback=e,this}}class Pr{constructor(e,t,i,n,s){this.targetNode=e,this.classToWatch=t,this.classAddedCallback=i,this.classRemovedCallback=n,this.observer=null,this.lastClassState=e.classList.contains(this.classToWatch),this.ignoreToggle=!!s,this.init()}init(){this.observer=new MutationObserver((e=>this.mutationCallback(e))),this.observe()}observe(){this.observer.observe(this.targetNode,{attributes:!0})}disconnect(){this.observer.disconnect()}mutationCallback(e){for(let t of e)if("attributes"===t.type&&"class"===t.attributeName){let e=t.target.classList.contains(this.classToWatch);(this.ignoreToggle||this.lastClassState!==e)&&(this.lastClassState=e,e?"function"==typeof this.classAddedCallback&&this.classAddedCallback():"function"==typeof this.classRemovedCallback&&this.classRemovedCallback())}}}class Lr{constructor(e,t,i,n){this.targetNode=e,this.contentSelector=t,this.contentAddedCallback=i,this.contentRemovedCallback=n,this.observer=null,this.init()}init(){this.observer=new MutationObserver((e=>this.mutationCallback(e))),this.observe()}observe(){this.observer.observe(this.targetNode,{childList:!0,subtree:!0})}disconnect(){this.observer.disconnect()}mutationCallback(e){for(let t of e)"childList"===t.type&&(t.addedNodes.forEach((e=>{this._callbackExec(e)})),t.removedNodes.forEach((e=>{this._callbackExec(e,!0)})))}_callbackExec(e,t){const i=e.matches&&e.matches(this.contentSelector)?[e]:e.querySelectorAll?e.querySelectorAll(this.contentSelector):null,n=t&&"function"==typeof this.contentRemovedCallback?this.contentRemovedCallback:"function"==typeof this.contentAddedCallback?this.contentAddedCallback:null;i&&n&&i.forEach((e=>n(e)))}}const Dr={errorFieldCssClass:"is-invalid",errorLabelCssClass:"just-validate-error-label"},Mr="justvalidatebi";class Nr extends fi{constructor(e){super(e),this._label=new Ei(e),this._bindEvents()}static get NAME(){return"input"}_bindEvents(){"file"===this._element.getAttribute("type")&&li.on(this._element,"change.bs.input",(()=>{this._handleFileDescription()}))}_handleFileDescription(){const e=[];let t="";Array.from(this._element.files).forEach((t=>{const i=Math.round(parseInt(t.size,10)/1024);e.push(t.name+" ("+i+"kb)")})),this._element.files.length>1&&(t=this._element.files.length+" file da caricare: ");const i=mi.findOne('label[for="'+this._element.getAttribute("id")+'"] label.form-file-name',this._element);i&&(i.innerText=t+e.join("; "))}}const Rr=["select",'input[data-bs-input][type="password"]',"input.input-password[data-bs-input]",'input[data-bs-autocomplete][type="search"]','input[type="time"]','input[type="radio"]','input[type="checkbox"]'];"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("input, textarea, label").forEach((function(e){(e=>{const t=!!Rr.find((t=>e.matches(t))),i=!("number"!==e.getAttribute("type")||!e.parentNode.querySelector('button[class^="input-number-"]'));t||i||Nr.getOrCreateInstance(e)})(Ei.getInputFromLabel(e)||e)}))}));var Fr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Br(e,t){return e(t={exports:{}},t.exports),t.exports}var Ur=Br((function(e,t){self,e.exports=function(){var e={8952:function(e,t,i){var n=i(4328),s=i(36),r=TypeError;e.exports=function(e){if(n(e))return e;throw new r(s(e)+" is not a function")}},2096:function(e,t,i){var n=i(2424),s=String,r=TypeError;e.exports=function(e){if(n(e))return e;throw new r("Can't set "+s(e)+" as a prototype")}},4764:function(e,t,i){var n=i(9764).charAt;e.exports=function(e,t,i){return t+(i?n(e,t).length:1)}},6100:function(e,t,i){var n=i(7e3),s=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new s("Incorrect invocation")}},3951:function(e,t,i){var n=i(1632),s=String,r=TypeError;e.exports=function(e){if(n(e))return e;throw new r(s(e)+" is not an object")}},2504:function(e,t,i){var n=i(4096),s=i(2495),r=i(3556),o=function(e){return function(t,i,o){var a=n(t),l=r(a);if(0===l)return!e&&-1;var c,u=s(o,l);if(e&&i!=i){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},3364:function(e,t,i){var n=i(8992),s=i(1664),r=i(5712),o=i(4356),a=i(3556),l=i(2568),c=s([].push),u=function(e){var t=1===e,i=2===e,s=3===e,u=4===e,d=6===e,h=7===e,p=5===e||d;return function(f,m,g,y){for(var _,v,b=o(f),T=r(b),w=a(T),S=n(m,g),E=0,C=y||l,k=t?C(f,w):i||h?C(f,0):void 0;w>E;E++)if((p||E in T)&&(v=S(_=T[E],E,b),e))if(t)k[E]=v;else if(v)switch(e){case 3:return!0;case 5:return _;case 6:return E;case 2:c(k,_)}else switch(e){case 4:return!1;case 7:c(k,_)}return d?-1:s||u?u:k}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},953:function(e,t,i){var n=i(9957),s=i(9972),r=i(8504),o=s("species");e.exports=function(e){return r>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},1496:function(e,t,i){var n=i(9957);e.exports=function(e,t){var i=[][e];return!!i&&n((function(){i.call(null,t||function(){return 1},1)}))}},6728:function(e,t,i){var n=i(3476),s=i(1432),r=TypeError,o=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!o(e,"length").writable)throw new r("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},6736:function(e,t,i){var n=i(1432),s=i(6072),r=i(1632),o=i(9972)("species"),a=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(s(t)&&(t===a||n(t.prototype))||r(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?a:t}},2568:function(e,t,i){var n=i(6736);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},8696:function(e,t,i){var n=i(3951),s=i(3112);e.exports=function(e,t,i,r){try{return r?t(n(i)[0],i[1]):t(i)}catch(t){s(e,"throw",t)}}},1888:function(e,t,i){var n=i(1664),s=n({}.toString),r=n("".slice);e.exports=function(e){return r(s(e),8,-1)}},4427:function(e,t,i){var n=i(16),s=i(4328),r=i(1888),o=i(9972)("toStringTag"),a=Object,l="Arguments"===r(function(){return arguments}());e.exports=n?r:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?i:l?r(t):"Object"===(n=r(t))&&s(t.callee)?"Arguments":n}},9968:function(e,t,i){var n=i(5152),s=i(9252),r=i(9444),o=i(8352);e.exports=function(e,t,i){for(var a=s(t),l=o.f,c=r.f,u=0;u<a.length;u++){var d=a[u];n(e,d)||i&&n(i,d)||l(e,d,c(t,d))}}},2272:function(e,t,i){var n=i(9957);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},3336:function(e){e.exports=function(e,t){return{value:e,done:t}}},3440:function(e,t,i){var n=i(3476),s=i(8352),r=i(9728);e.exports=n?function(e,t,i){return s.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},9728:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},92:function(e,t,i){var n=i(3476),s=i(8352),r=i(9728);e.exports=function(e,t,i){n?s.f(e,t,r(0,i)):e[t]=i}},2544:function(e,t,i){var n=i(5312),s=i(8352);e.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),s.f(e,t,i)}},6076:function(e,t,i){var n=i(4328),s=i(8352),r=i(5312),o=i(4636);e.exports=function(e,t,i,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(n(i)&&r(i,c,a),a.global)l?e[t]=i:o(t,i);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=i:s.f(e,t,{value:i,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},4036:function(e,t,i){var n=i(6076);e.exports=function(e,t,i){for(var s in t)n(e,s,t[s],i);return e}},4636:function(e,t,i){var n=i(6420),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(i){n[e]=t}return t}},3476:function(e,t,i){var n=i(9957);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8168:function(e,t,i){var n=i(6420),s=i(1632),r=n.document,o=s(r)&&s(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},4316:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},6064:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},8504:function(e,t,i){var n,s,r=i(6420),o=i(6064),a=r.process,l=r.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},8256:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6520:function(e,t,i){var n=i(1664),s=Error,r=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=r(e,a,"");return e}},3696:function(e,t,i){var n=i(3440),s=i(6520),r=i(9184),o=Error.captureStackTrace;e.exports=function(e,t,i,a){r&&(o?o(e,t):n(e,"stack",s(i,a)))}},9184:function(e,t,i){var n=i(9957),s=i(9728);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9160:function(e,t,i){var n=i(6420),s=i(9444).f,r=i(3440),o=i(6076),a=i(4636),l=i(9968),c=i(6704);e.exports=function(e,t){var i,u,d,h,p,f=e.target,m=e.global,g=e.stat;if(i=m?n:g?n[f]||a(f,{}):n[f]&&n[f].prototype)for(u in t){if(h=t[u],d=e.dontCallGetSet?(p=s(i,u))&&p.value:i[u],!c(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&r(h,"sham",!0),o(i,u,h,e)}}},9957:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7176:function(e,t,i){i(880);var n=i(8448),s=i(6076),r=i(7680),o=i(9957),a=i(9972),l=i(3440),c=a("species"),u=RegExp.prototype;e.exports=function(e,t,i,d){var h=a(e),p=!o((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),f=p&&!o((function(){var t=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[c]=function(){return i},i.flags="",i[h]=/./[h]),i.exec=function(){return t=!0,null},i[h](""),!t}));if(!p||!f||i){var m=/./[h],g=t(h,""[e],(function(e,t,i,s,o){var a=t.exec;return a===r||a===u.exec?p&&!o?{done:!0,value:n(m,t,i,s)}:{done:!0,value:n(e,i,t,s)}:{done:!1}}));s(String.prototype,e,g[0]),s(u,h,g[1])}d&&l(u[h],"sham",!0)}},908:function(e,t,i){var n=i(7332),s=Function.prototype,r=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(r):function(){return o.apply(r,arguments)})},8992:function(e,t,i){var n=i(3180),s=i(8952),r=i(7332),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:r?o(e,t):function(){return e.apply(t,arguments)}}},7332:function(e,t,i){var n=i(9957);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8448:function(e,t,i){var n=i(7332),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},6208:function(e,t,i){var n=i(3476),s=i(5152),r=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(r,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&o(r,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},5288:function(e,t,i){var n=i(1664),s=i(8952);e.exports=function(e,t,i){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[i]))}catch(e){}}},3180:function(e,t,i){var n=i(1888),s=i(1664);e.exports=function(e){if("Function"===n(e))return s(e)}},1664:function(e,t,i){var n=i(7332),s=Function.prototype,r=s.call,o=n&&s.bind.bind(r,r);e.exports=n?o:function(e){return function(){return r.apply(e,arguments)}}},5232:function(e,t,i){var n=i(6420),s=i(4328);e.exports=function(e,t){return arguments.length<2?(i=n[e],s(i)?i:void 0):n[e]&&n[e][t];var i}},6752:function(e){e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},4504:function(e,t,i){var n=i(8952),s=i(9760);e.exports=function(e,t){var i=e[t];return s(i)?void 0:n(i)}},6420:function(e,t,i){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},5152:function(e,t,i){var n=i(1664),s=i(4356),r=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(s(e),t)}},2560:function(e){e.exports={}},4168:function(e,t,i){var n=i(5232);e.exports=n("document","documentElement")},9888:function(e,t,i){var n=i(3476),s=i(9957),r=i(8168);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},5712:function(e,t,i){var n=i(1664),s=i(9957),r=i(1888),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===r(e)?a(e,""):o(e)}:o},7512:function(e,t,i){var n=i(4328),s=i(1632),r=i(4024);e.exports=function(e,t,i){var o,a;return r&&n(o=t.constructor)&&o!==i&&s(a=o.prototype)&&a!==i.prototype&&r(e,a),e}},9112:function(e,t,i){var n=i(1664),s=i(4328),r=i(3976),o=n(Function.toString);s(r.inspectSource)||(r.inspectSource=function(e){return o(e)}),e.exports=r.inspectSource},3480:function(e,t,i){var n=i(1632),s=i(3440);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},9104:function(e,t,i){var n,s,r,o=i(4288),a=i(6420),l=i(1632),c=i(3440),u=i(5152),d=i(3976),h=i(6504),p=i(2560),f="Object already initialized",m=a.TypeError,g=a.WeakMap;if(o||d.state){var y=d.state||(d.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new m(f);return t.facade=e,y.set(e,t),t},s=function(e){return y.get(e)||{}},r=function(e){return y.has(e)}}else{var _=h("state");p[_]=!0,n=function(e,t){if(u(e,_))throw new m(f);return t.facade=e,c(e,_,t),t},s=function(e){return u(e,_)?e[_]:{}},r=function(e){return u(e,_)}}e.exports={set:n,get:s,has:r,enforce:function(e){return r(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=s(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return i}}}},1432:function(e,t,i){var n=i(1888);e.exports=Array.isArray||function(e){return"Array"===n(e)}},4328:function(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},6072:function(e,t,i){var n=i(1664),s=i(9957),r=i(4328),o=i(4427),a=i(5232),l=i(9112),c=function(){},u=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=n(d.exec),p=!d.test(c),f=function(e){if(!r(e))return!1;try{return u(c,[],e),!0}catch(e){return!1}},m=function(e){if(!r(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!u||s((function(){var e;return f(f.call)||!f(Object)||!f((function(){e=!0}))||e}))?m:f},6704:function(e,t,i){var n=i(9957),s=i(4328),r=/#|\.prototype\./,o=function(e,t){var i=l[a(e)];return i===u||i!==c&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},9760:function(e){e.exports=function(e){return null==e}},1632:function(e,t,i){var n=i(4328);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},2424:function(e,t,i){var n=i(1632);e.exports=function(e){return n(e)||null===e}},7048:function(e){e.exports=!1},7728:function(e,t,i){var n=i(5232),s=i(4328),r=i(7e3),o=i(6536),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&r(t.prototype,a(e))}},3112:function(e,t,i){var n=i(8448),s=i(3951),r=i(4504);e.exports=function(e,t,i){var o,a;s(e);try{if(!(o=r(e,"return"))){if("throw"===t)throw i;return i}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw i;if(a)throw o;return s(o),i}},9724:function(e,t,i){var n=i(8448),s=i(9368),r=i(3440),o=i(4036),a=i(9972),l=i(9104),c=i(4504),u=i(336).IteratorPrototype,d=i(3336),h=i(3112),p=a("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",g=l.set,y=function(e){var t=l.getterFor(e?m:f);return o(s(u),{next:function(){var i=t(this);if(e)return i.nextHandler();try{var n=i.done?void 0:i.nextHandler();return d(n,i.done)}catch(e){throw i.done=!0,e}},return:function(){var i=t(this),s=i.iterator;if(i.done=!0,e){var r=c(s,"return");return r?n(r,s):d(void 0,!0)}if(i.inner)try{h(i.inner.iterator,"normal")}catch(e){return h(s,"throw",e)}return h(s,"normal"),d(void 0,!0)}})},_=y(!0),v=y(!1);r(v,p,"Iterator Helper"),e.exports=function(e,t){var i=function(i,n){n?(n.iterator=i.iterator,n.next=i.next):n=i,n.type=t?m:f,n.nextHandler=e,n.counter=0,n.done=!1,g(this,n)};return i.prototype=t?_:v,i}},5792:function(e,t,i){var n=i(8448),s=i(8952),r=i(3951),o=i(6752),a=i(9724),l=i(8696),c=a((function(){var e=this.iterator,t=r(n(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return r(this),s(e),new c(o(this),{mapper:e})}},336:function(e,t,i){var n,s,r,o=i(9957),a=i(4328),l=i(1632),c=i(9368),u=i(7796),d=i(6076),h=i(9972),p=i(7048),f=h("iterator"),m=!1;[].keys&&("next"in(r=[].keys())?(s=u(u(r)))!==Object.prototype&&(n=s):m=!0),!l(n)||o((function(){var e={};return n[f].call(e)!==e}))?n={}:p&&(n=c(n)),a(n[f])||d(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},3556:function(e,t,i){var n=i(7584);e.exports=function(e){return n(e.length)}},5312:function(e,t,i){var n=i(1664),s=i(9957),r=i(4328),o=i(5152),a=i(3476),l=i(6208).CONFIGURABLE,c=i(9112),u=i(9104),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),_=a&&!s((function(){return 8!==f((function(){}),"length",{value:8}).length})),v=String(String).split("String"),b=e.exports=function(e,t,i){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(t="get "+t),i&&i.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),_&&i&&o(i,"arity")&&e.length!==i.arity&&f(e,"length",{value:i.arity});try{i&&o(i,"constructor")&&i.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return o(n,"source")||(n.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return r(this)&&h(this).source||c(this)}),"toString")},1748:function(e){var t=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:t)(n)}},8948:function(e,t,i){var n=i(5016);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},9292:function(e,t,i){var n=i(3476),s=i(1664),r=i(8448),o=i(9957),a=i(1531),l=i(9392),c=i(8912),u=i(4356),d=i(5712),h=Object.assign,p=Object.defineProperty,f=s([].concat);e.exports=!h||o((function(){if(n&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol("assign detection"),s="abcdefghijklmnopqrst";return e[i]=7,s.split("").forEach((function(e){t[e]=e})),7!==h({},e)[i]||a(h({},t)).join("")!==s}))?function(e,t){for(var i=u(e),s=arguments.length,o=1,h=l.f,p=c.f;s>o;)for(var m,g=d(arguments[o++]),y=h?f(a(g),h(g)):a(g),_=y.length,v=0;_>v;)m=y[v++],n&&!r(p,g,m)||(i[m]=g[m]);return i}:h},9368:function(e,t,i){var n,s=i(3951),r=i(2056),o=i(8256),a=i(2560),l=i(4168),c=i(8168),u=i(6504),d="prototype",h="script",p=u("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,i;y="undefined"!=typeof document?document.domain&&n?g(n):(t=c("iframe"),i="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(i),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var s=o.length;s--;)delete y[d][o[s]];return y()};a[p]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(f[d]=s(e),i=new f,f[d]=null,i[p]=e):i=y(),void 0===t?i:r.f(i,t)}},2056:function(e,t,i){var n=i(3476),s=i(1576),r=i(8352),o=i(3951),a=i(4096),l=i(1531);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var i,n=a(t),s=l(t),c=s.length,u=0;c>u;)r.f(e,i=s[u++],n[i]);return e}},8352:function(e,t,i){var n=i(3476),s=i(9888),r=i(1576),o=i(3951),a=i(88),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=n?r?function(e,t,i){if(o(e),t=a(t),o(i),"function"==typeof e&&"prototype"===t&&"value"in i&&p in i&&!i[p]){var n=u(e,t);n&&n[p]&&(e[t]=i.value,i={configurable:h in i?i[h]:n[h],enumerable:d in i?i[d]:n[d],writable:!1})}return c(e,t,i)}:c:function(e,t,i){if(o(e),t=a(t),o(i),s)try{return c(e,t,i)}catch(e){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},9444:function(e,t,i){var n=i(3476),s=i(8448),r=i(8912),o=i(9728),a=i(4096),l=i(88),c=i(5152),u=i(9888),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return o(!s(r.f,e,t),e[t])}},5048:function(e,t,i){var n=i(9008),s=i(8256).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},9392:function(e,t){t.f=Object.getOwnPropertySymbols},7796:function(e,t,i){var n=i(5152),s=i(4328),r=i(4356),o=i(6504),a=i(2272),l=o("IE_PROTO"),c=Object,u=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=r(e);if(n(t,l))return t[l];var i=t.constructor;return s(i)&&t instanceof i?i.prototype:t instanceof c?u:null}},7e3:function(e,t,i){var n=i(1664);e.exports=n({}.isPrototypeOf)},9008:function(e,t,i){var n=i(1664),s=i(5152),r=i(4096),o=i(2504).indexOf,a=i(2560),l=n([].push);e.exports=function(e,t){var i,n=r(e),c=0,u=[];for(i in n)!s(a,i)&&s(n,i)&&l(u,i);for(;t.length>c;)s(n,i=t[c++])&&(~o(u,i)||l(u,i));return u}},1531:function(e,t,i){var n=i(9008),s=i(8256);e.exports=Object.keys||function(e){return n(e,s)}},8912:function(e,t){var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!i.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:i},4024:function(e,t,i){var n=i(5288),s=i(3951),r=i(2096);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=n(Object.prototype,"__proto__","set"))(i,[]),t=i instanceof Array}catch(e){}return function(i,n){return s(i),r(n),t?e(i,n):i.__proto__=n,i}}():void 0)},7032:function(e,t,i){var n=i(16),s=i(4427);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},2104:function(e,t,i){var n=i(8448),s=i(4328),r=i(1632),o=TypeError;e.exports=function(e,t){var i,a;if("string"===t&&s(i=e.toString)&&!r(a=n(i,e)))return a;if(s(i=e.valueOf)&&!r(a=n(i,e)))return a;if("string"!==t&&s(i=e.toString)&&!r(a=n(i,e)))return a;throw new o("Can't convert object to primitive value")}},9252:function(e,t,i){var n=i(5232),s=i(1664),r=i(5048),o=i(9392),a=i(3951),l=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=r.f(a(e)),i=o.f;return i?l(t,i(e)):t}},584:function(e,t,i){var n=i(8352).f;e.exports=function(e,t,i){i in e||n(e,i,{configurable:!0,get:function(){return t[i]},set:function(e){t[i]=e}})}},9092:function(e,t,i){var n=i(8448),s=i(3951),r=i(4328),o=i(1888),a=i(7680),l=TypeError;e.exports=function(e,t){var i=e.exec;if(r(i)){var c=n(i,e,t);return null!==c&&s(c),c}if("RegExp"===o(e))return n(a,e,t);throw new l("RegExp#exec called on incompatible receiver")}},7680:function(e,t,i){var n,s,r=i(8448),o=i(1664),a=i(5016),l=i(8872),c=i(3548),u=i(4696),d=i(9368),h=i(9104).get,p=i(8e3),f=i(9124),m=u("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,_=o("".charAt),v=o("".indexOf),b=o("".replace),T=o("".slice),w=(s=/b*/g,r(g,n=/a/,"a"),r(g,s,"a"),0!==n.lastIndex||0!==s.lastIndex),S=c.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(w||E||S||p||f)&&(y=function(e){var t,i,n,s,o,c,u,p=this,f=h(p),C=a(e),k=f.raw;if(k)return k.lastIndex=p.lastIndex,t=r(y,k,C),p.lastIndex=k.lastIndex,t;var x=f.groups,I=S&&p.sticky,A=r(l,p),O=p.source,P=0,L=C;if(I&&(A=b(A,"y",""),-1===v(A,"g")&&(A+="g"),L=T(C,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==_(C,p.lastIndex-1))&&(O="(?: "+O+")",L=" "+L,P++),i=new RegExp("^(?:"+O+")",A)),E&&(i=new RegExp("^"+O+"$(?!\\s)",A)),w&&(n=p.lastIndex),s=r(g,I?i:p,L),I?s?(s.input=T(s.input,P),s[0]=T(s[0],P),s.index=p.lastIndex,p.lastIndex+=s[0].length):p.lastIndex=0:w&&s&&(p.lastIndex=p.global?s.index+s[0].length:n),E&&s&&s.length>1&&r(m,s[0],i,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(s[o]=void 0)})),s&&x)for(s.groups=c=d(null),o=0;o<x.length;o++)c[(u=x[o])[0]]=s[u[1]];return s}),e.exports=y},8872:function(e,t,i){var n=i(3951);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},3548:function(e,t,i){var n=i(9957),s=i(6420).RegExp,r=n((function(){var e=s("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),o=r||n((function(){return!s("a","y").sticky})),a=r||n((function(){var e=s("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:a,MISSED_STICKY:o,UNSUPPORTED_Y:r}},8e3:function(e,t,i){var n=i(9957),s=i(6420).RegExp;e.exports=n((function(){var e=s(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},9124:function(e,t,i){var n=i(9957),s=i(6420).RegExp;e.exports=n((function(){var e=s("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},5436:function(e,t,i){var n=i(9760),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},6504:function(e,t,i){var n=i(4696),s=i(7776),r=n("keys");e.exports=function(e){return r[e]||(r[e]=s(e))}},3976:function(e,t,i){var n=i(7048),s=i(6420),r=i(4636),o="__core-js_shared__",a=e.exports=s[o]||r(o,{});(a.versions||(a.versions=[])).push({version:"3.36.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},4696:function(e,t,i){var n=i(3976);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},9764:function(e,t,i){var n=i(1664),s=i(6180),r=i(5016),o=i(5436),a=n("".charAt),l=n("".charCodeAt),c=n("".slice),u=function(e){return function(t,i){var n,u,d=r(o(t)),h=s(i),p=d.length;return h<0||h>=p?e?"":void 0:(n=l(d,h))<55296||n>56319||h+1===p||(u=l(d,h+1))<56320||u>57343?e?a(d,h):n:e?c(d,h,h+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},772:function(e,t,i){var n=i(8504),s=i(9957),r=i(6420).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2495:function(e,t,i){var n=i(6180),s=Math.max,r=Math.min;e.exports=function(e,t){var i=n(e);return i<0?s(i+t,0):r(i,t)}},4096:function(e,t,i){var n=i(5712),s=i(5436);e.exports=function(e){return n(s(e))}},6180:function(e,t,i){var n=i(1748);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},7584:function(e,t,i){var n=i(6180),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},4356:function(e,t,i){var n=i(5436),s=Object;e.exports=function(e){return s(n(e))}},7024:function(e,t,i){var n=i(8448),s=i(1632),r=i(7728),o=i(4504),a=i(2104),l=i(9972),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!s(e)||r(e))return e;var i,l=o(e,u);if(l){if(void 0===t&&(t="default"),i=n(l,e,t),!s(i)||r(i))return i;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},88:function(e,t,i){var n=i(7024),s=i(7728);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},16:function(e,t,i){var n={};n[i(9972)("toStringTag")]="z",e.exports="[object z]"===String(n)},5016:function(e,t,i){var n=i(4427),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},36:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},7776:function(e,t,i){var n=i(1664),s=0,r=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+r,36)}},6536:function(e,t,i){var n=i(772);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1576:function(e,t,i){var n=i(3476),s=i(9957);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4288:function(e,t,i){var n=i(6420),s=i(4328),r=n.WeakMap;e.exports=s(r)&&/native code/.test(String(r))},9972:function(e,t,i){var n=i(6420),s=i(4696),r=i(5152),o=i(7776),a=i(772),l=i(6536),c=n.Symbol,u=s("wks"),d=l?c.for||c:c&&c.withoutSetter||o;e.exports=function(e){return r(u,e)||(u[e]=a&&r(c,e)?c[e]:d("Symbol."+e)),u[e]}},6488:function(e,t,i){var n=i(5232),s=i(5152),r=i(3440),o=i(7e3),a=i(4024),l=i(9968),c=i(584),u=i(7512),d=i(8948),h=i(3480),p=i(3696),f=i(3476),m=i(7048);e.exports=function(e,t,i,g){var y="stackTraceLimit",_=g?2:1,v=e.split("."),b=v[v.length-1],T=n.apply(null,v);if(T){var w=T.prototype;if(!m&&s(w,"cause")&&delete w.cause,!i)return T;var S=n("Error"),E=t((function(e,t){var i=d(g?t:e,void 0),n=g?new T(e):new T;return void 0!==i&&r(n,"message",i),p(n,E,n.stack,2),this&&o(w,this)&&u(n,this,E),arguments.length>_&&h(n,arguments[_]),n}));if(E.prototype=w,"Error"!==b?a?a(E,S):l(E,S,{name:!0}):f&&y in T&&(c(E,T,y),c(E,T,"prepareStackTrace")),l(E,T),!m)try{w.name!==b&&r(w,"name",b),w.constructor=E}catch(e){}return E}}},7476:function(e,t,i){var n=i(9160),s=i(9957),r=i(1432),o=i(1632),a=i(4356),l=i(3556),c=i(4316),u=i(92),d=i(2568),h=i(953),p=i(9972),f=i(8504),m=p("isConcatSpreadable"),g=f>=51||!s((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:r(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!h("concat")},{concat:function(e){var t,i,n,s,r,o=a(this),h=d(o,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(y(r=-1===t?o:arguments[t]))for(s=l(r),c(p+s),i=0;i<s;i++,p++)i in r&&u(h,p,r[i]);else c(p+1),u(h,p++,r);return h.length=p,h}})},6932:function(e,t,i){var n=i(9160),s=i(3364).filter;n({target:"Array",proto:!0,forced:!i(953)("filter")},{filter:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},700:function(e,t,i){var n=i(9160),s=i(1664),r=i(5712),o=i(4096),a=i(1496),l=s([].join);n({target:"Array",proto:!0,forced:r!==Object||!a("join",",")},{join:function(e){return l(o(this),void 0===e?",":e)}})},4456:function(e,t,i){var n=i(9160),s=i(3364).map;n({target:"Array",proto:!0,forced:!i(953)("map")},{map:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},4728:function(e,t,i){var n=i(9160),s=i(4356),r=i(3556),o=i(6728),a=i(4316);n({target:"Array",proto:!0,arity:1,forced:i(9957)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=s(this),i=r(t),n=arguments.length;a(i+n);for(var l=0;l<n;l++)t[i]=arguments[l],i++;return o(t,i),i}})},8752:function(e,t,i){var n=i(9160),s=i(6420),r=i(908),o=i(6488),a="WebAssembly",l=s[a],c=7!==new Error("e",{cause:7}).cause,u=function(e,t){var i={};i[e]=o(e,t,c),n({global:!0,constructor:!0,arity:1,forced:c},i)},d=function(e,t){if(l&&l[e]){var i={};i[e]=o(a+"."+e,t,c),n({target:a,stat:!0,constructor:!0,arity:1,forced:c},i)}};u("Error",(function(e){return function(t){return r(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),u("URIError",(function(e){return function(t){return r(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}}))},508:function(e,t,i){var n=i(3476),s=i(6208).EXISTS,r=i(1664),o=i(2544),a=Function.prototype,l=r(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=r(c.exec);n&&!s&&o(a,"name",{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(e){return""}}})},232:function(e,t,i){var n=i(9160),s=i(9292);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==s},{assign:s})},5443:function(e,t,i){var n=i(16),s=i(6076),r=i(7032);n||s(Object.prototype,"toString",r,{unsafe:!0})},880:function(e,t,i){var n=i(9160),s=i(7680);n({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},9836:function(e,t,i){var n=i(8448),s=i(7176),r=i(3951),o=i(9760),a=i(7584),l=i(5016),c=i(5436),u=i(4504),d=i(4764),h=i(9092);s("match",(function(e,t,i){return[function(t){var i=c(this),s=o(t)?void 0:u(t,e);return s?n(s,t,i):new RegExp(t)[e](l(i))},function(e){var n=r(this),s=l(e),o=i(t,n,s);if(o.done)return o.value;if(!n.global)return h(n,s);var c=n.unicode;n.lastIndex=0;for(var u,p=[],f=0;null!==(u=h(n,s));){var m=l(u[0]);p[f]=m,""===m&&(n.lastIndex=d(s,a(n.lastIndex),c)),f++}return 0===f?null:p}]}))},3536:function(e,t,i){var n=i(9160),s=i(6420),r=i(6100),o=i(3951),a=i(4328),l=i(7796),c=i(2544),u=i(92),d=i(9957),h=i(5152),p=i(9972),f=i(336).IteratorPrototype,m=i(3476),g=i(7048),y="constructor",_="Iterator",v=p("toStringTag"),b=TypeError,T=s[_],w=g||!a(T)||T.prototype!==f||!d((function(){T({})})),S=function(){if(r(this,f),l(this)===f)throw new b("Abstract class Iterator not directly constructable")},E=function(e,t){m?c(f,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===f)throw new b("You can't redefine this property");h(this,e)?this[e]=t:u(this,e,t)}}):f[e]=t};h(f,v)||E(v,_),!w&&h(f,y)&&f[y]!==Object||E(y,S),S.prototype=f,n({global:!0,constructor:!0,forced:w},{Iterator:S})},2144:function(e,t,i){var n=i(9160),s=i(8448),r=i(8952),o=i(3951),a=i(6752),l=i(9724),c=i(8696),u=i(7048),d=l((function(){for(var e,t,i=this.iterator,n=this.predicate,r=this.next;;){if(e=o(s(r,i)),this.done=!!e.done)return;if(t=e.value,c(i,n,[t,this.counter++],!0))return t}}));n({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(e){return o(this),r(e),new d(a(this),{predicate:e})}})},9080:function(e,t,i){var n=i(9160),s=i(5792);n({target:"Iterator",proto:!0,real:!0,forced:i(7048)},{map:s})}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,i),r.exports}i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var n={};return function(){i.d(n,{default:function(){return X}}),i(8752),i(6932),i(4456),i(508),i(232),i(5443),i(3536),i(2144),i(9080);var e=function(){},t={},s=[],r=[];function o(i,n){var o,a,l,c,u=r;for(c=arguments.length;c-- >2;)s.push(arguments[c]);for(n&&null!=n.children&&(s.length||s.push(n.children),delete n.children);s.length;)if((a=s.pop())&&void 0!==a.pop)for(c=a.length;c--;)s.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof i)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&o?u[u.length-1]+=a:u===r?u=[a]:u.push(a),o=l;var d=new e;return d.nodeName=i,d.children=u,d.attributes=null==n?void 0:n,d.key=null==n?void 0:n.key,void 0!==t.vnode&&t.vnode(d),d}function a(e,t){for(var i in t)e[i]=t[i];return e}function l(e,t){e&&("function"==typeof e?e(t):e.current=t)}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,d=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==d.push(e)&&(t.debounceRendering||c)(p)}function p(){for(var e;e=d.pop();)e._dirty&&D(e)}function f(e,t,i){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&m(e,t.nodeName):i||e._componentConstructor===t.nodeName}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(e){var t=a({},e.attributes);t.children=e.children;var i=e.nodeName.defaultProps;if(void 0!==i)for(var n in i)void 0===t[n]&&(t[n]=i[n]);return t}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,i,n,s){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)l(i,null),l(n,e);else if("class"!==t||s)if("style"===t){if(n&&"string"!=typeof n&&"string"!=typeof i||(e.style.cssText=n||""),n&&"object"==typeof n){if("string"!=typeof i)for(var r in i)r in n||(e.style[r]="");for(var r in n)e.style[r]="number"==typeof n[r]&&!1===u.test(r)?n[r]+"px":n[r]}}else if("dangerouslySetInnerHTML"===t)n&&(e.innerHTML=n.__html||"");else if("o"==t[0]&&"n"==t[1]){var o=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),n?i||e.addEventListener(t,v,o):e.removeEventListener(t,v,o),(e._listeners||(e._listeners={}))[t]=n}else if("list"!==t&&"type"!==t&&!s&&t in e){try{e[t]=null==n?"":n}catch(e){}null!=n&&!1!==n||"spellcheck"==t||e.removeAttribute(t)}else{var a=s&&t!==(t=t.replace(/^xlink:?/,""));null==n||!1===n?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof n&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):e.setAttribute(t,n))}else e.className=n||""}function v(e){return this._listeners[e.type](t.event&&t.event(e)||e)}var b=[],T=0,w=!1,S=!1;function E(){for(var e;e=b.shift();)t.afterMount&&t.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,i,n,s,r){T++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var o=k(e,t,i,n,r);return s&&o.parentNode!==s&&s.appendChild(o),--T||(S=!1,r||E()),o}function k(e,t,i,n,s){var r=e,o=w;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||s)?e.nodeValue!=t&&(e.nodeValue=t):(r=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(r,e),x(e,!0))),r.__preactattr_=!0,r;var a,l,c=t.nodeName;if("function"==typeof c)return function(e,t,i,n){for(var s=e&&e._component,r=s,o=e,a=s&&e._componentConstructor===t.nodeName,l=a,c=g(t);s&&!l&&(s=s._parentComponent);)l=s.constructor===t.nodeName;return s&&l&&(!n||s._component)?(L(s,c,3,i,n),e=s.base):(r&&!a&&(M(r),e=o=null),s=O(t.nodeName,c,i),e&&!s.nextBase&&(s.nextBase=e,o=null),L(s,c,1,i,n),e=s.base,o&&e!==o&&(o._component=null,x(o,!1))),e}(e,t,i,n);if(w="svg"===c||"foreignObject"!==c&&w,c=String(c),(!e||!m(e,c))&&(a=c,(l=w?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,r=l,e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),x(e,!0)}var u=r.firstChild,d=r.__preactattr_,h=t.children;if(null==d){d=r.__preactattr_={};for(var p=r.attributes,v=p.length;v--;)d[p[v].name]=p[v].value}return!S&&h&&1===h.length&&"string"==typeof h[0]&&null!=u&&void 0!==u.splitText&&null==u.nextSibling?u.nodeValue!=h[0]&&(u.nodeValue=h[0]):(h&&h.length||null!=u)&&function(e,t,i,n,s){var r,o,a,l,c,u=e.childNodes,d=[],h={},p=0,m=0,g=u.length,_=0,v=t?t.length:0;if(0!==g)for(var b=0;b<g;b++){var T=u[b],w=T.__preactattr_;null!=(S=v&&w?T._component?T._component.__key:w.key:null)?(p++,h[S]=T):(w||(void 0!==T.splitText?!s||T.nodeValue.trim():s))&&(d[_++]=T)}if(0!==v)for(b=0;b<v;b++){var S;if(c=null,null!=(S=(l=t[b]).key))p&&void 0!==h[S]&&(c=h[S],h[S]=void 0,p--);else if(m<_)for(r=m;r<_;r++)if(void 0!==d[r]&&f(o=d[r],l,s)){c=o,d[r]=void 0,r===_-1&&_--,r===m&&m++;break}c=k(c,l,i,n),a=u[b],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?y(a):e.insertBefore(c,a))}if(p)for(var b in h)void 0!==h[b]&&x(h[b],!1);for(;m<=_;)void 0!==(c=d[_--])&&x(c,!1)}(r,h,i,n,S||null!=d.dangerouslySetInnerHTML),function(e,t,i){var n;for(n in i)t&&null!=t[n]||null==i[n]||_(e,n,i[n],i[n]=void 0,w);for(n in t)"children"===n||"innerHTML"===n||n in i&&t[n]===("value"===n||"checked"===n?e[n]:i[n])||_(e,n,i[n],i[n]=t[n],w)}(r,t.attributes,d),w=o,r}function x(e,t){var i=e._component;i?M(i):(null!=e.__preactattr_&&l(e.__preactattr_.ref,null),!1!==t&&null!=e.__preactattr_||y(e),I(e))}function I(e){for(e=e.lastChild;e;){var t=e.previousSibling;x(e,!0),e=t}}var A=[];function O(e,t,i){var n,s=A.length;for(e.prototype&&e.prototype.render?(n=new e(t,i),N.call(n,t,i)):((n=new N(t,i)).constructor=e,n.render=P);s--;)if(A[s].constructor===e)return n.nextBase=A[s].nextBase,A.splice(s,1),n;return n}function P(e,t,i){return this.constructor(e,i)}function L(e,i,n,s,r){e._disable||(e._disable=!0,e.__ref=i.ref,e.__key=i.key,delete i.ref,delete i.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(i,s)),s&&s!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=s),e.prevProps||(e.prevProps=e.props),e.props=i,e._disable=!1,0!==n&&(1!==n&&!1===t.syncComponentUpdates&&e.base?h(e):D(e,1,r)),l(e.__ref,e))}function D(e,i,n,s){if(!e._disable){var r,o,l,c=e.props,u=e.state,d=e.context,h=e.prevProps||c,p=e.prevState||u,f=e.prevContext||d,m=e.base,y=e.nextBase,_=m||y,v=e._component,w=!1,S=f;if(e.constructor.getDerivedStateFromProps&&(u=a(a({},u),e.constructor.getDerivedStateFromProps(c,u)),e.state=u),m&&(e.props=h,e.state=p,e.context=f,2!==i&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,u,d)?w=!0:e.componentWillUpdate&&e.componentWillUpdate(c,u,d),e.props=c,e.state=u,e.context=d),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!w){r=e.render(c,u,d),e.getChildContext&&(d=a(a({},d),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(S=e.getSnapshotBeforeUpdate(h,p));var k,I,A=r&&r.nodeName;if("function"==typeof A){var P=g(r);(o=v)&&o.constructor===A&&P.key==o.__key?L(o,P,1,d,!1):(k=o,e._component=o=O(A,P,d),o.nextBase=o.nextBase||y,o._parentComponent=e,L(o,P,0,d,!1),D(o,1,n,!0)),I=o.base}else l=_,(k=v)&&(l=e._component=null),(_||1===i)&&(l&&(l._component=null),I=C(l,r,d,n||!m,_&&_.parentNode,!0));if(_&&I!==_&&o!==v){var N=_.parentNode;N&&I!==N&&(N.replaceChild(I,_),k||(_._component=null,x(_,!1)))}if(k&&M(k),e.base=I,I&&!s){for(var R=e,F=e;F=F._parentComponent;)(R=F).base=I;I._component=R,I._componentConstructor=R.constructor}}for(!m||n?b.push(e):w||(e.componentDidUpdate&&e.componentDidUpdate(h,p,S),t.afterUpdate&&t.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);T||s||E()}}function M(e){t.beforeUnmount&&t.beforeUnmount(e);var i=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?M(n):i&&(null!=i.__preactattr_&&l(i.__preactattr_.ref,null),e.nextBase=i,y(i),A.push(e),I(i)),l(e.__ref,null)}function N(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function R(e,t,i){return C(i,e,{},!1,t,!1)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}a(N.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=a(a({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),h(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),D(this,2)},render:function(){}}),i(700),i(4728),i(880),i(9836),i(7476);var B=function(e){var t,i;function n(){for(var t,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return(t=e.call.apply(e,[this].concat(n))||this).state={bump:!1,debounced:!1},t}i=e,(t=n).prototype=Object.create(i.prototype),t.prototype.constructor=t,F(t,i);var s=n.prototype;return s.componentWillMount=function(){var e,t,i,n=this;this.debounceStatusUpdate=(e=function(){if(!n.state.debounced){var e=!n.props.isInFocus||n.props.validChoiceMade;n.setState((function(t){return{bump:!t.bump,debounced:!0,silenced:e}}))}},t=1400,function(){var n=this,s=arguments;clearTimeout(i),i=setTimeout((function(){i=null,e.apply(n,s)}),t)})},s.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},s.render=function(){var e=this.props,t=e.id,i=e.length,n=e.queryLength,s=e.minQueryLength,r=e.selectedOption,a=e.selectedOptionIndex,l=e.tQueryTooShort,c=e.tNoResults,u=e.tSelectedOption,d=e.tResults,h=e.className,p=this.state,f=p.bump,m=p.debounced,g=p.silenced,y=n<s,_=0===i,v=r?u(r,i,a):"",b=null;return b=y?l(s):_?c():d(i,v),this.debounceStatusUpdate(),o("div",{className:h,style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},o("div",{id:t+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!g&&m&&f?b:""),o("div",{id:t+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!m||f?"":b))},n}(N);B.defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,i){return e+" "+(i+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}};var U=function(e){return o("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:e.className,focusable:"false"},o("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},o("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},j.apply(this,arguments)}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}var V={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function H(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var z=function(e){var t,i;function n(t){var i;return(i=e.call(this,t)||this).elementReferences={},i.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0},i.handleComponentBlur=i.handleComponentBlur.bind($(i)),i.handleKeyDown=i.handleKeyDown.bind($(i)),i.handleUpArrow=i.handleUpArrow.bind($(i)),i.handleDownArrow=i.handleDownArrow.bind($(i)),i.handleEnter=i.handleEnter.bind($(i)),i.handlePrintableKey=i.handlePrintableKey.bind($(i)),i.handleListMouseLeave=i.handleListMouseLeave.bind($(i)),i.handleOptionBlur=i.handleOptionBlur.bind($(i)),i.handleOptionClick=i.handleOptionClick.bind($(i)),i.handleOptionFocus=i.handleOptionFocus.bind($(i)),i.handleOptionMouseDown=i.handleOptionMouseDown.bind($(i)),i.handleOptionMouseEnter=i.handleOptionMouseEnter.bind($(i)),i.handleInputBlur=i.handleInputBlur.bind($(i)),i.handleInputChange=i.handleInputChange.bind($(i)),i.handleInputClick=i.handleInputClick.bind($(i)),i.handleInputFocus=i.handleInputFocus.bind($(i)),i.pollInputElement=i.pollInputElement.bind($(i)),i.getDirectInputChanges=i.getDirectInputChanges.bind($(i)),i}i=e,(t=n).prototype=Object.create(i.prototype),t.prototype.constructor=t,q(t,i);var s=n.prototype;return s.isQueryAnOption=function(e,t){var i=this;return-1!==t.map((function(e){return i.templateInputValue(e).toLowerCase()})).indexOf(e.toLowerCase())},s.componentDidMount=function(){this.pollInputElement()},s.componentWillUnmount=function(){clearTimeout(this.$pollInput)},s.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout((function(){e.pollInputElement()}),100)},s.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},s.componentDidUpdate=function(e,t){var i=this.state.focused,n=null===i,s=t.focused!==i;s&&!n&&this.elementReferences[i].focus();var r=-1===i,o=s&&null===t.focused;if(r&&o){var a=this.elementReferences[i];a.setSelectionRange(0,a.value.length)}},s.hasAutoselect=function(){return!H()&&this.props.autoselect},s.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},s.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},s.handleComponentBlur=function(e){var t,i=this.state,n=i.options,s=i.query,r=i.selected;this.props.confirmOnBlur?(t=e.query||s,this.props.onConfirm(n[r])):t=s,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,n)})},s.handleListMouseLeave=function(e){this.setState({hovered:null})},s.handleOptionBlur=function(e,t){var i=this.state,n=i.focused,s=i.menuOpen,r=i.options,o=i.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=n!==t&&-1!==n;if(!c&&a||!c&&!l){var u=s&&H();this.handleComponentBlur({menuOpen:u,query:this.templateInputValue(r[o])})}},s.handleInputBlur=function(e){var t=this.state,i=t.focused,n=t.menuOpen,s=t.options,r=t.query,o=t.selected;if(-1===i){var a=n&&H(),l=H()?r:this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:a,query:l})}},s.handleInputChange=function(e){var t=this,i=this.props,n=i.minLength,s=i.source,r=i.showAllValues,o=this.hasAutoselect(),a=e.target.value,l=0===a.length,c=this.state.query!==a,u=a.length>=n;this.setState({query:a,ariaHint:l}),r||!l&&c&&u?s(a,(function(e){var i=e.length>0;t.setState({menuOpen:i,options:e,selected:o&&i?0:-1,validChoiceMade:!1})})):!l&&u||this.setState({menuOpen:!1,options:[]})},s.handleInputClick=function(e){this.handleInputChange(e)},s.handleInputFocus=function(e){var t=this.state,i=t.query,n=t.validChoiceMade,s=t.options,r=this.props.minLength,o=!n&&i.length>=r&&s.length>0;o?this.setState((function(e){var t=e.menuOpen;return{focused:-1,menuOpen:o||t,selected:-1}})):this.setState({focused:-1})},s.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},s.handleOptionMouseEnter=function(e,t){H()||this.setState({hovered:t})},s.handleOptionClick=function(e,t){var i=this.state.options[t],n=this.templateInputValue(i);this.props.onConfirm(i),this.setState({focused:-1,hovered:null,menuOpen:!1,query:n,selected:-1,validChoiceMade:!0}),this.forceUpdate()},s.handleOptionMouseDown=function(e){e.preventDefault()},s.handleUpArrow=function(e){e.preventDefault();var t=this.state,i=t.menuOpen,n=t.selected;-1!==n&&i&&this.handleOptionFocus(n-1)},s.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})}));else if(!0===this.state.menuOpen){var i=this.state,n=i.menuOpen,s=i.options,r=i.selected;r!==s.length-1&&n&&this.handleOptionFocus(r+1)}},s.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e})}))),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},s.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),this.state.selected>=0&&this.handleOptionClick(e,this.state.selected))},s.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},s.handleKeyDown=function(e){switch(V[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:((t=e.keyCode)>47&&t<58||32===t||8===t||t>64&&t<91||t>95&&t<112||t>185&&t<193||t>218&&t<223)&&this.handlePrintableKey(e)}var t},s.render=function(){var e,t=this,i=this.props,n=i.cssNamespace,s=i.displayMenu,r=i.id,a=i.minLength,l=i.name,c=i.placeholder,u=i.required,d=i.showAllValues,h=i.tNoResults,p=i.tStatusQueryTooShort,f=i.tStatusNoResults,m=i.tStatusSelectedOption,g=i.tStatusResults,y=i.tAssistiveHint,_=i.dropdownArrow,v=i.menuAttributes,b=i.inputClasses,T=i.hintClasses,w=i.menuClasses,S=this.state,E=S.focused,C=S.hovered,k=S.menuOpen,x=S.options,I=S.query,A=S.selected,O=S.ariaHint,P=S.validChoiceMade,L=this.hasAutoselect(),D=-1===E,M=0===x.length,N=0!==I.length,R=I.length>=a,F=this.props.showNoOptionsFound&&D&&M&&N&&R,U=n+"__wrapper",$=n+"__status",q=n+"__dropdown-arrow-down",V=-1!==E&&null!==E,z=n+"__option",W=n+"__hint",G=this.templateInputValue(x[A]),X=G&&0===G.toLowerCase().indexOf(I.toLowerCase())&&L?I+G.substr(I.length):"",K=r+"__assistiveHint",Y={"aria-describedby":O?K:null,"aria-expanded":k?"true":"false","aria-activedescendant":V?r+"__option--"+E:null,"aria-controls":r+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"};d&&"string"==typeof(e=_({className:q}))&&(e=o("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}}));var Q=n+"__input",J=[Q,this.props.showAllValues?Q+"--show-all-values":Q+"--default"];null!==E&&J.push(Q+"--focused"),b&&J.push(b);var Z=n+"__menu",ee=[Z,Z+"--"+s,Z+"--"+(k||F?"visible":"hidden")];w&&ee.push(w),(null!=v&&v.class||null!=v&&v.className)&&ee.push((null==v?void 0:v.class)||(null==v?void 0:v.className));var te=Object.assign({"aria-labelledby":r},v,{id:r+"__listbox",role:"listbox",className:ee.join(" "),onMouseLeave:this.handleListMouseLeave});return delete te.class,o("div",{className:U,onKeyDown:this.handleKeyDown},o(B,{id:r,length:x.length,queryLength:I.length,minQueryLength:a,selectedOption:this.templateInputValue(x[A]),selectedOptionIndex:A,validChoiceMade:P,isInFocus:null!==this.state.focused,tQueryTooShort:p,tNoResults:f,tSelectedOption:m,tResults:g,className:$}),X&&o("span",null,o("input",{className:[W,null===T?b:T].filter(Boolean).join(" "),readonly:!0,tabIndex:"-1",value:X})),o("input",j({},Y,{autoComplete:"off",className:J.join(" "),id:r,onClick:this.handleInputClick,onBlur:this.handleInputBlur},{onInput:this.handleInputChange},{onFocus:this.handleInputFocus,name:l,placeholder:c,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:u,value:I})),e,o("ul",te,x.map((function(e,i){var n=(-1===E?A===i:E===i)&&null===C?" "+z+"--focused":"",s=i%2?" "+z+"--odd":"",a=H()?"<span id="+r+"__option-suffix--"+i+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(i+1)+" of "+x.length+"</span>":"";return o("li",{"aria-selected":E===i?"true":"false",className:""+z+n+s,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+a},id:r+"__option--"+i,key:i,onBlur:function(e){return t.handleOptionBlur(e,i)},onClick:function(e){return t.handleOptionClick(e,i)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,i)},ref:function(e){t.elementReferences[i]=e},role:"option",tabIndex:"-1","aria-posinset":i+1,"aria-setsize":x.length})})),F&&o("li",{className:z+" "+z+"--no-results",role:"option","aria-disabled":"true"},h())),o("span",{id:K,style:{display:"none"}},y()))},n}(N);function W(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=G(e.source)),R(o(z,e),e.element)}z.defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:U,menuAttributes:{},inputClasses:null,hintClasses:null,menuClasses:null};var G=function(e){return function(t,i){i(e.filter((function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())})))}};W.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,(function(t){return t.value||e.preserveNullOptions}));e.source=t.map((function(e){return e.textContent||e.innerText}))}if(e.onConfirm=e.onConfirm||function(t){var i=[].filter.call(e.selectElement.options,(function(e){return(e.textContent||e.innerText)===t}))[0];i&&(i.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var i=e.selectElement.options[e.selectElement.options.selectedIndex];e.defaultValue=i.textContent||i.innerText}void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0);var n=document.createElement("div");e.selectElement.parentNode.insertBefore(n,e.selectElement),W(Object.assign({},e,{element:n})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var X=W}(),n.default}()}));Ur.accessibleAutocomplete;const jr={autocomplete:[]},$r="autocomplete-list-show",qr="data-bs-autocomplete",Vr="input["+qr+'][type="search"]';class Hr extends fi{constructor(e,t){super(e),this._config=this._getConfig(t),this._items=[],this._autocompleteElement=null,this._label=new Ei(e),this._init(),this._bindEvents()}static get NAME(){return"inputsearchautocomplete"}search(){const e=this._element.value;
|
|
2
2
|
//!!! $autocomplete.empty()
|
|
3
3
|
this._autocompleteElement.innerHTML="",e?this._items.forEach((t=>{let i=new RegExp("("+e+")","gi"),n=t.text.replace(i,"<mark>$1</mark>"),s=t.label?"<em>"+t.label+"</em>":"",r=t.icon?t.icon:"",o=t.link?t.link:"#";-1!==n.toLowerCase().indexOf(e.toLowerCase())&&(this._autocompleteElement.classList.add($r),this._autocompleteElement.appendChild(this._createOption(o,n,s,r)))})):this._autocompleteElement.classList.remove($r)}_getConfig(e){return e={...jr,..."object"==typeof e?e:{}}}_getItems(){try{return JSON.parse(this._element.getAttribute(qr))}catch(e){return console.error("[InputSearchAutocomplete] invalid data provided for "+qr+" attribute",e),[]}}_init(){if(this._element.classList.contains("autocomplete")){if("undefined"==typeof document)return;this._items=this._getItems(),this._autocompleteElement=document.createElement("ul"),this._autocompleteElement.classList.add("autocomplete-list"),this._element.parentNode.insertBefore(this._autocompleteElement,this._element.nextSibling)}}_bindEvents(){li.on(this._element,"keyup.bs.inputsearchautocomplete",(()=>this.search()))}_createOption(e,t,i,n){if("undefined"==typeof document)return;const s=document.createElement("li");return s.innerHTML=`<a href="${e}">\n ${n}\n <span class="autocomplete-list-text">\n <span>${t}</span>\n ${i}\n </span>\n </a>`,s}}"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(Vr+", label").forEach((function(e){const t=Ei.getInputFromLabel(e)||e;var i;(i=t)&&i.matches(Vr)&&Hr.getOrCreateInstance(i)}))}));const zr=".bs.inputpassword",Wr=".data-api",Gr={shortPass:"Password troppo breve",badPass:"Password debole.",goodPass:"Password abbastanza sicura.",strongPass:"Password sicura.",minimumLength:8,suggestionsLabel:"Suggerimenti per una buona password:",suggestionFollowed:"suggerimenti seguito",suggestionFollowedPlural:"suggerimenti seguiti",suggestionOf:"di",suggestionMetLabel:"Soddisfatto: ",suggestionMetIconPath:"\n M9.6 16.9 4 11.4l.8-.7 4.8 4.8 8.5-8.4.7.7-9.2 9.1z\n ",suggestionLength:"Almeno {minLength} caratteri.",suggestionUppercase:"Una o più maiuscole.",suggestionLowercase:"Una o più minuscole.",suggestionNumber:"Uno o più numeri.",suggestionSpecial:"Uno o più caratteri speciali."},Xr=`click${zr}`,Kr=`keyup${zr}`,Yr=`score${zr}`,Qr=`text${zr}`,Jr=`suggs${zr}`,Zr=`click${zr}${Wr}`,eo=`mousedown${zr}${Wr}`,to=`keyup${zr}${Wr}`,io='input[data-bs-input][type="password"]',no=".password-icon";class so extends fi{constructor(e,t){super(e),this._config=this._getConfig(t),this._isCustom=this._element.classList.contains("input-password"),this._meter=this._element.parentNode.querySelector(".password-strength-meter"),this._grayBarElement=null,this._colorBarElement=null,this._textElement=null,this._suggsElement=null,this._showPwdElement=null,this._text={},this._label=new Ei(e),this._suggestions=[{key:"length",text:e=>e.suggestionLength.replace("{minLength}",e.minimumLength.toString()),test:(e,t)=>e.length>=t.minimumLength},{key:"uppercase",text:e=>e.suggestionUppercase,test:e=>/[A-Z]/.test(e)},{key:"lowercase",text:e=>e.suggestionLowercase,test:e=>/[a-z]/.test(e)},{key:"number",text:e=>e.suggestionNumber,test:e=>/[0-9]/.test(e)},{key:"special",text:e=>e.suggestionSpecial,test:e=>/[^A-Za-z0-9]/.test(e)}],this._init(),this._bindEvents()}static get NAME(){return"inputpassword"}_getConfig(e){return e={...Gr,...hi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_init(){this._isCustom&&(this._handleAutofill(),this._showPwdElement=mi.findOne(no,this._element.parentNode),this._meter&&(this._grayBarElement=this._meter.querySelector(".password-meter"),this._colorBarElement=this._meter.querySelector(".progress-bar"),this._textElement=this._meter.querySelector(".strength-meter-info"),this._suggsElement=this._meter.querySelector(".strenght-meter-suggestions"),this._textElement&&(this._config=Object.assign({},this._config,{...hi.getDataAttributes(this._textElement)})),this._suggsElement&&this._createsuggestionsList()))}_bindEvents(){this._isCustom&&(this._showPwdElement&&li.on(this._showPwdElement,Xr,(()=>this._toggleShowPassword())),this._meter&&(li.on(this._element,Kr,(()=>this._checkPassword())),li.on(this._element,"input",(()=>this._checkPassword()))))}_handleAutofill(){const e=()=>{""!==this._element.value&&(this._label._labelOut(),this._checkPassword())};e(),setTimeout(e,100),li.on(this._element,"animationstart",(t=>{"onAutoFillStart"===t.animationName&&e()}))}_toggleShowPassword(){const e="password"===this._element.getAttribute("type");mi.find('[class^="password-icon"]',this._showPwdElement).forEach((e=>e.classList.toggle("d-none"))),this._element.setAttribute("type",e?"text":"password"),this._showPwdElement.setAttribute("aria-checked",e.toString())}_checkPassword(){const e=this._element.value,t=this._calculateScore(e);this._updateMeter(t),this._updateText(t,e),this._updateSuggestions(e)}_updateMeter(e){const t=e<0?0:e;this._colorBarElement&&(this._colorBarElement.classList.forEach((e=>{e.match(/(^|\s)bg-\S+/g)&&this._colorBarElement.classList.remove(e)})),this._colorBarElement.classList.add(`bg-${this._scoreColor(e)}`),this._colorBarElement.style.width=`${t}%`,this._colorBarElement.setAttribute("aria-valuenow",t)),li.trigger(this._element,Yr)}_updateText(e,t){if(this._textElement){let i=this._scoreText(e);if(this._suggsElement){const{completedCount:e,totalCount:n}=this._getCompletedSuggestions(t),s=1===e?this._config.suggestionFollowed:this._config.suggestionFollowedPlural;i+=` ${e} ${this._config.suggestionOf} ${n} ${s}.`}this._textElement.textContent!==i&&(this._textElement.textContent=i,this._textElement.classList.forEach((e=>{e.match(/(^|\s)text-\S+/g)&&this._textElement.classList.remove(e)})),this._textElement.classList.add(`text-${this._scoreColor(e)}`),li.trigger(this._element,Qr))}}_updateSuggestions(e){this._suggsElement&&(this._updateSuggestionsList(e),li.trigger(this._element,Jr))}_getCompletedSuggestions(e){let t=0;const i=this._suggestions.length;return this._suggestions.forEach((i=>{i.test(e,this._config)&&t++})),{completedCount:t,totalCount:i}}_createsuggestionsList(){if(this._suggsElement.querySelector(".password-suggestions"))return;const e=document.createElement("label");e.className="visually-hidden",e.htmlFor="suggestions",e.textContent=Gr.suggestionsLabel;const t=document.createElement("div");t.id="suggestions",t.className="password-suggestions",this._suggestions.forEach((e=>{const i=document.createElement("div");i.className="suggestion",i.dataset.suggestion=e.key;const n=this._createIconCheck(),s=document.createElement("span");s.textContent=e.text(this._config),i.appendChild(n),i.appendChild(s),t.appendChild(i)})),this._suggsElement.appendChild(e),this._suggsElement.appendChild(t)}_createIconCheck(){const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","icon icon-xs me-1 d-none"),e.setAttribute("aria-label",this._config.suggestionMetLabel),e.setAttribute("viewBox","0 0 24 24"),e.style.width="1em",e.style.height="1em";const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",this._config.suggestionMetIconPath.trim()),e.appendChild(t),e}_updateSuggestionsList(e){this._suggsElement&&this._suggestions.forEach((t=>{const i=this._suggsElement.querySelector(`[data-suggestion="${t.key}"]`);if(i){const n=t.test(e,this._config),s=i.querySelector(".icon");s&&s.classList.toggle("d-none",!n)}}))}_scoreText(e){return-1===e?this._config.shortPass:-2===e?"":(e=e<0?0:e)<26||e<51?this._config.badPass:e<76?this._config.goodPass:this._config.strongPass}_scoreColor(e){return-1===e||-2===e||e<26?"danger":e<51?"warning":"success"}_calculateScore(e){var t=0;if(0===e.trim().length)return-2;if(e.length<this._config.minimumLength)return-1;t+=4*e.length,t+=this._checkRepetition(1,e).length-e.length,t+=this._checkRepetition(2,e).length-e.length,t+=this._checkRepetition(3,e).length-e.length,t+=this._checkRepetition(4,e).length-e.length,e.match(/(.*[0-9].*[0-9].*[0-9])/)&&(t+=5);var i=".*[!,@,#,$,%,^,&,*,?,_,~]";return i=new RegExp("("+i+i+")"),e.match(i)&&(t+=5),e.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(t+=10),e.match(/([a-zA-Z])/)&&e.match(/([0-9])/)&&(t+=15),e.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&e.match(/([0-9])/)&&(t+=15),e.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&e.match(/([a-zA-Z])/)&&(t+=15),(e.match(/^\w+$/)||e.match(/^\d+$/))&&(t-=10),t>100&&(t=100),t<0&&(t=0),t}_checkRepetition(e,t){for(var i="",n=!1,s=0;s<t.length;s++){n=!0;for(var r=0;r<e&&r+s+e<t.length;r++)n=n&&t.charAt(r+s)===t.charAt(r+s+e);r<e&&(n=!1),n?(s+=e-1,n=!1):i+=t.charAt(s)}return i}}if("undefined"!=typeof window&&"undefined"!=typeof document){const Mx=e=>e&&e.matches(io)?so.getOrCreateInstance(e):null,Nx=()=>{const e=mi.findOne(io);e&&so.getOrCreateInstance(e)};"loading"!==document.readyState?Nx():document.addEventListener("DOMContentLoaded",Nx),li.on(document,eo,io+", label",(function(){const e=Ei.getInputFromLabel(this)||this;Mx(e)})),li.on(document,to,io+", label",(function(){const e=Ei.getInputFromLabel(this)||this,t=Mx(e);t&&t._label&&t._label._labelOut()})),li.on(document,Zr,no,(function(){const e=this.parentNode&&this.parentNode.querySelector(io);e&&so.getOrCreateInstance(e)}))}var ro,oo=Br((function(e,t){
|
|
4
4
|
/*! Shifty 2.20.4 - https://github.com/jeremyckahn/shifty */
|