UNPKG

bootstrap-italia

Version:

Bootstrap Italia è un tema Bootstrap 5 per la creazione di applicazioni web nel pieno rispetto delle linee guida di design per i siti internet e i servizi digitali della PA

1 lines 253 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("animejs/lib/anime.es.js"),require("video.js"),require("@popperjs/core"),require("@splidejs/splide")):"function"==typeof define&&define.amd?define(["animejs/lib/anime.es.js","video.js","@popperjs/core","@splidejs/splide"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.anime,t.videojs,t.Popper,t.Splide)}(this,function(t,e,i,n){"use strict";function s(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const o=s(i);!function(){const t={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,t)}catch(t){}globalThis.process={env:t}}();const r="data-focus-mouse";class a{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach(t=>{document.addEventListener(t,t=>{this._usingMouse="mousedown"===t.type})}),document.addEventListener("focusin",t=>{this._usingMouse&&t.target&&t.target.setAttribute(r,!0)}),document.addEventListener("focusout",t=>{t.target&&t.target.setAttribute(r,!1)})}}new a;const l=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new a,window.BOOTSTRAP_ITALIA_VERSION="2.18.1")};l();const c={ck3:{}},u={rememberChoice:(t,e)=>{c.ck3[t]=e,localStorage.setItem("bs-ck3",JSON.stringify(c.ck3))},isChoiceRemembered:t=>(c.ck3=JSON.parse(localStorage.getItem("bs-ck3")||"{}"),c.ck3[t]||!1),clearAllRememberedChoices:()=>{localStorage.removeItem("bs-ck3")}},h=new Map,d={set(t,e,i){h.has(t)||h.set(t,new Map);const n=h.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>h.has(t)&&h.get(t).get(e)||null,remove(t,e){if(!h.has(t))return;const i=h.get(t);i.delete(e),0===i.size&&h.delete(t)}},f="transitionend",p=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),m=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},g=t=>{const e=m(t);return e&&document.querySelector(e)?e:null},_=t=>{const e=m(t);return e?document.querySelector(e):null},b=t=>!(!t||"object"!=typeof t)&&void 0!==t.nodeType,v=t=>b(t)?t:"string"==typeof t&&t.length>0?document.querySelector(t):null,y=t=>{if(!b(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},w=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),E=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?E(t.parentNode):null},C=()=>{},S=t=>{t.offsetHeight},k=()=>"undefined"!=typeof window&&"undefined"!=typeof document&&"rtl"===document.documentElement.dir,x=t=>{"function"==typeof t&&t()},T=(t,e,i=!0)=>{if(!i)return void x(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let s=!1;const o=({target:i})=>{i===e&&(s=!0,e.removeEventListener(f,o),x(t))};e.addEventListener(f,o),setTimeout(()=>{s||e.dispatchEvent(new Event(f))},n)},A=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},O=/[^.]*(?=\..*)\.|.*/,L=/\..*/,P=/::\d+$/,I={};let M=1;const F={mouseenter:"mouseover",mouseleave:"mouseout"},$=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 j(t,e){return e&&`${e}::${M++}`||t.uidEvent||M++}function N(t){const e=j(t);return t.uidEvent=e,I[e]=I[e]||{},I[e]}function D(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function B(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=(r=(r=t).replace(L,""),F[r]||r);var r;return $.has(o)||(o=t),[n,s,o]}function R(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=B(e,i,n);if(e in F){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=N(t),c=l[a]||(l[a]={}),u=D(c,r,o?i:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=j(r,e.replace(O,"")),d=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return q(s,{delegateTarget:r}),n.oneOff&&W.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return q(n,{delegateTarget:t}),i.oneOff&&W.off(t,n.type,e),e.apply(t,[n])}}(t,r);d.delegationSelector=o?i:null,d.callable=r,d.oneOff=s,d.uidEvent=h,c[h]=d,t.addEventListener(a,d,o)}function V(t,e,i,n,s){const o=D(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function z(t,e,i,n){const s=e[i]||{};for(const o of Object.keys(s))if(o.includes(n)){const n=s[o];V(t,e,i,n.callable,n.delegationSelector)}}const W={on(t,e,i,n){R(t,e,i,n,!1)},one(t,e,i,n){R(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=B(e,i,n),a=r!==e,l=N(t),c=l[r]||{},u=e.startsWith(".");if(void 0===o){if(u)for(const i of Object.keys(l))z(t,l,i,e.slice(1));for(const i of Object.keys(c)){const n=i.replace(P,"");if(!a||e.includes(n)){const e=c[i];V(t,l,r,e.callable,e.delegationSelector)}}}else{if(!Object.keys(c).length)return;V(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;let n=new Event(e,{bubbles:!0,cancelable:!0});return n=q(n,i),t.dispatchEvent(n),n}};function q(t,e){for(const[i,n]of Object.entries(e||{}))try{t[i]=n}catch{Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function H(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function U(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const G={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${U(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${U(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=H(t.dataset[n])}return e},getDataAttribute:(t,e)=>H(t.getAttribute(`data-bs-${U(e)}`))};class Y{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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=b(e)?G.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...b(e)?G.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const i of Object.keys(e)){const n=e[i],s=t[i],o=b(s)?"element":p(s);if(!new RegExp(n).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${n}".`)}}}class K extends Y{constructor(t,e){super(),(t=v(t))&&(this._element=t,this._config=this._getConfig(e),d.set(this._element,this.constructor.DATA_KEY,this))}dispose(){d.remove(this._element,this.constructor.DATA_KEY),W.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){T(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return d.get(v(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e: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(t){return`${t}${this.EVENT_KEY}`}}const Q={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!w(t)&&y(t))}},X={slideFocus:!1,rewind:!0,perMove:1,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",carousel:"Carosello",select:"Seleziona una slide da mostrare",slide:"slide",slideLabel:"%s di %s"}},Z={"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 J extends K{constructor(t){super(t),this._config=this._getConfig(),this._splide=new n(this._element,this._config),this._init()}dispose(){this._splide.destroy(),super.dispose()}static get NAME(){return"carousel"}_init(){this._splide.mount()}_getConfig(){let t=Object.assign({},X);return Object.keys(Z).forEach(e=>{this._element.classList.contains(e)&&(t=Object.assign({},t,Z[e]))}),t}}"undefined"!=typeof window&&"undefined"!=typeof document&&W.on(window,"load.bs.carousel.data-api",()=>{Q.find("[data-bs-carousel-splide]").forEach(t=>{J.getOrCreateInstance(t)})});const tt=".bs.inputlabel",et=`focus${tt}`,it=`blur${tt}`,nt=`change${tt}`,st="active";class ot{constructor(t){this._element=t,this._init()}static get NAME(){return"inputlabel"}static getInputFromLabel=t=>{if("undefined"!=typeof window&&"undefined"!=typeof document)return document.querySelector("#"+CSS.escape(t.getAttribute("for")))};_init(){const t=this._getLabel();t&&!t.classList.contains(st)&&(this._labelOut(),this._labelOver()),t&&null===t.getAttribute("it-bs-static")&&this._bindEvents()}_bindEvents(){["date","time"].includes(this._element.getAttribute("type"))||("file"===this._element.getAttribute("type")?W.on(this._element,it,()=>{this._labelOut()}):(W.on(this._element,et,()=>{this._labelOut()}),W.on(this._element,it,()=>{this._labelOver()}),W.on(this._element,nt,()=>{this._labelToggle()})))}_getLabel(){return Q.findOne('label[for="'+this._element.getAttribute("id")+'"]')}_isEmpty(){return"number"===this._element.getAttribute("type")?!this._element.value&&!this._element.getAttribute("placeholder")&&!this._element.validity.badInput:!this._element.value&&!this._element.getAttribute("placeholder")}_labelOut(){const t=this._getLabel();t&&t.classList.add(st)}_labelOver(){if(this._isEmpty()){const t=this._getLabel();t&&t.classList.remove(st)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}const rt=".bs.inputnumber",at=`click${rt}`,lt=`change${rt}`,ct=`click${rt}.data-api`,ut=".input-number",ht='input[data-bs-input][type="number"]',dt='button[class^="input-number-"]';class ft extends K{constructor(t){super(t),this._wrapperElement=this._element.closest(ut),this._label=new ot(t),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(Q.find(dt,this._wrapperElement).forEach(t=>{W.on(t,at,e=>{e.preventDefault(),this._incrDecr(t.classList.contains("input-number-sub")),this._label._labelOut()})}),W.on(this._element,lt,()=>this._checkLimit()))}_inputResize(){if(this._wrapperElement.classList.contains("input-number-adaptive")){let t=null;t="calc(70px + "+this._element.value.length+"ch)",t&&(this._element.style.width=t)}}_incrDecr(t){let e=0;if(!this._element.disabled&&!this._element.readonly&&(""!==this._element.value&&(e=parseFloat(this._element.value)),!isNaN(e))){let i=parseFloat(this._element.getAttribute("step"));i||(i=1),this._element.value=e+i*(t?-1:1),W.trigger(this._element,lt),W.trigger(this._element,"input")}}_checkLimit(){const t=parseFloat(this._element.value);if(!isNaN(t)){let e=t;const i=parseFloat(this._element.getAttribute("max")),n=parseFloat(this._element.getAttribute("min"));n&&t<n&&(e=n),i&&t>i&&(e=i),this._element.value=e}this._inputResize()}}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(ht+", label").forEach(function(t){const e=ot.getInputFromLabel(t)||t;var i;(i=e)&&i.matches(ht)&&i.parentNode.querySelector(dt)&&ft.getOrCreateInstance(i)})}),W.on(document,ct,dt,function(){const t=this.closest(ut);if(t){const e=Q.findOne(ht,t);e&&ft.getOrCreateInstance(e)}}));const pt="show";class mt extends K{constructor(t){super(t),this._isShown=!t.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 t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(pt),this._queueCallback(()=>this._hideElement(),this._element,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),t&&S(this._element),this._element.classList.add(pt);this._queueCallback(()=>{this._isTransitioning=!1},this._element,t)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}"undefined"!=typeof window&&"undefined"!=typeof document&&W.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',function(){const t=_(this),e=mt.getOrCreateInstance(t);this.checked?e.show():e.hide()});const gt=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;W.on(document,i,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),w(this))return;const s=_(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()})},_t=".bs.notification",bt=`click${_t}.data-api`,vt=`hidden${_t}`,yt=`show${_t}`,wt={timeout:0},Et="show";class Ct extends K{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=this._element.classList.contains(Et),this._isTransitioning=!1,this._toId=null}static get NAME(){return"notification"}show(t,e){if(this._isShown||this._isTransitioning)return;const i=t||this._getElementTimeout(e);this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement(i)}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(Et),this._queueCallback(()=>this._hideElement(),this._element,t)}toggle(t){this._isShown?this.hide():this.show(null,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(t){const e=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),e&&S(this._element),this._element.classList.add(Et);this._queueCallback(()=>{this._isTransitioning=!1,t&&this._setTimeout(t,()=>this.hide())},this._element,e)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}_getConfig(t){return t={...wt,...G.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_getElementTimeout(t){const e=t?parseInt(t.getAttribute("data-bs-timeout")):null;return e>0?e:this._config.timeout}_setTimeout(t,e){this._clearTimeout(),setTimeout(e,t)}_clearTimeout(){this._toId&&(clearTimeout(this._toId),this._toId=null)}}"undefined"!=typeof window&&"undefined"!=typeof document&&(W.on(document,bt,'[data-bs-toggle="notification"]',function(t){const e=_(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),W.one(e,yt,t=>{t.defaultPrevented||W.one(e,vt,()=>{y(this)&&this.focus()})});Ct.getOrCreateInstance(e).toggle(this)}),gt(Ct));const St="cookiebar",kt=".bs.cookiebar",xt=".data-api",Tt="cookies_consent",At=`close${kt}`,Ot=`closed${kt}`,Lt=`load${kt}${xt}`,Pt=`click${kt}${xt}`,It="show";class Mt extends K{constructor(t){super(t),this._isShown=this._element.classList.contains(It),this._isTransitioning=!1}static get NAME(){return St}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 t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(It),this._queueCallback(()=>this._hideElement(),this._element,t)}accept(t){t=t||this._element;const e=this._getRootElement(t);this._triggerCloseEvent(e).defaultPrevented||(this._setCookieEU(),this.hide())}static clearCookie(){"undefined"!=typeof document&&(document.cookie=Tt+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-live","polite"),t&&S(this._element),this._element.classList.add(It);this._queueCallback(()=>{this._isTransitioning=!1},this._element,t)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-live"),this._isTransitioning=!1}_setCookieEU(){var t=new Date;t.setDate(t.getDate()+30);var e=escape("true")+"; expires="+t.toUTCString();"undefined"!=typeof document&&(document.cookie=Tt+"="+e+"; path=/; SameSite=Strict")}_getRootElement(t){const e=_(t);let i=null;return e&&(i=e),i||(i=t.closest(".cookiebar")),i}_triggerCloseEvent(t){return W.trigger(t,At)}_removeElement(t){t.classList.remove(It),t.setAttribute("aria-hidden","true"),t.setAttribute("aria-live","off"),W.trigger(t,Ot),this.dispose()}static _handleAccept(t){return function(e){e&&e.preventDefault(),t.close(this)}}static _handleConsent(t){return function(e){e&&e.preventDefault(),t.close(this)}}static _getCookieEU(){if("undefined"!=typeof document){var t,e,i,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(e=n[t].substring(0,n[t].indexOf("=")),i=n[t].substring(n[t].indexOf("=")+1),(e=e.replace(/^\s+|\s+$/g,""))==Tt)return unescape(i)}}}"undefined"!=typeof window&&"undefined"!=typeof document&&(W.on(document,Pt,'[data-bs-accept="cookiebar"]',function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),w(this))return;const e=_(this)||this.closest(`.${St}`);Mt.getOrCreateInstance(e).accept()}),W.on(window,Lt,function(){if(!Mt._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach(t=>{Mt.getOrCreateInstance(t).show()})}}));const Ft=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches},$t=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",jt=".sticky-top",Nt="padding-right",Dt="margin-right";class Bt{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Nt,e=>e+t),this._setElementAttributes($t,Nt,e=>e+t),this._setElementAttributes(jt,Dt,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Nt),this._resetElementAttributes($t,Nt),this._resetElementAttributes(jt,Dt)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)})}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&G.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const i=G.getDataAttribute(t,e);null!==i?(G.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(b(t))e(t);else for(const i of Q.find(t,this._element))e(i)}}const Rt=".bs.focustrap",Vt=`focusin${Rt}`,zt=`keydown.tab${Rt}`,Wt="backward",qt={autofocus:!0,trapElement:null,initialFocus:null},Ht={autofocus:"boolean",trapElement:"element",initialFocus:"(null|element|string|function)"};class Ut extends Y{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null,this._affectedElements=[]}static get Default(){return qt}static get DefaultType(){return Ht}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._setInitialFocus(),W.off(document,Rt),W.on(document,Vt,t=>this._handleFocusin(t)),W.on(document,zt,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,W.off(document,Rt))}_setInitialFocus(){if(this._config.initialFocus){let t;t="function"==typeof this._config.initialFocus?this._config.initialFocus():this._config.initialFocus,t&&"function"==typeof t.focus?t.focus():this._config.trapElement.focus()}else this._config.trapElement.focus()}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=Q.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===Wt?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Wt:"forward")}}const Gt="backdrop",Yt="show",Kt=`mousedown.bs.${Gt}`,Qt={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Xt={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Zt extends Y{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Qt}static get DefaultType(){return Xt}static get NAME(){return Gt}show(t){if(!this._config.isVisible)return void x(t);this._append();const e=this._getElement();this._config.isAnimated&&S(e),e.classList.add(Yt),this._emulateAnimation(()=>{x(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(Yt),this._emulateAnimation(()=>{this.dispose(),x(t)})):x(t)}dispose(){this._isAppended&&(W.off(this._element,Kt),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=v(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),W.on(t,Kt,()=>{x(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){T(t,this._getElement(),this._config.isAnimated)}}const Jt=".bs.navbarcollapsible",te=`click${Jt}.data-api`,ee=`click${Jt}`,ie=`keydown${Jt}`,ne=`hide${Jt}`,se=`hidden${Jt}`,oe=`show${Jt}`,re=`shown${Jt}`,ae=`resize${Jt}`,le="navbar-open",ce="show",ue="expanded",he='[data-bs-toggle="navbarcollapsible"]',de=".close-menu",fe=".nav-link",pe=".nav-item .list-item",me=".it-heading-link",ge=".it-footer-link",_e={backdrop:!0,focus:!0},be={backdrop:"(boolean|string)",focus:"boolean"};class ve extends K{constructor(t,e){super(t,e),this._mainElement=Q.findOne("main"),this._isNavbarOutsideMain=this._mainElement&&!this._mainElement.contains(this._element),this._parentElement=this._element.parentNode,this._isShown=this._element.classList.contains(ue),this._element.getAttribute("tabindex")||this._element.setAttribute("tabindex","-1"),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._scrollBar=new Bt,this._isTransitioning=!1,this._isMobile=Ft(),this._btnClose=Q.findOne(".close-div button",this._element),this._btnBack=Q.findOne(".it-back-button",this._element),this._menuWrapper=Q.findOne(".menu-wrapper",this._element),this._menuItems=Q.find([fe,pe,me,ge,de].join(","),this._element),this._toggleButton=Q.findOne(`${he}[data-bs-target="#${this._element.id}"]`)||Q.findOne(`${he}[href="#${this._element.id}"]`),this._toggleButton&&(this._toggleButton.getAttribute("aria-expanded")||this._toggleButton.setAttribute("aria-expanded",this._isShown?"true":"false")),this._bindEvents()}static get Default(){return _e}static get DefaultType(){return be}static get NAME(){return"navbarcollapsible"}toggle(t){this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;W.trigger(this._element,oe,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),this._btnBack&&this._btnBack.classList.add(ce),document.body.classList.add(le),this._backdrop.show(),this._showElement(),this._toggleButton&&this._toggleButton.setAttribute("aria-expanded","true"))}hide(){if(!this._isShown||this._isTransitioning)return;W.trigger(this._element,ne).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._btnBack&&this._btnBack.classList.remove(ce),this._element.classList.remove(ue),this._backdrop.hide(),this._queueCallback(()=>this._hideElement(),this._menuWrapper,this._isAnimated()),this._toggleButton&&this._toggleButton.setAttribute("aria-expanded","false"))}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(W.off(window,ae),W.off(document,ie)),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){return new Zt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated(),className:"navbar-backdrop",rootElement:this._parentElement,clickCallback:()=>{this.hide()}})}_initializeFocusTrap(){return new Ut({trapElement:this._element,initialFocus:()=>this._btnClose||this._element.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')})}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(W.on(window,ae,()=>this._onResize()),W.on(document,ie,t=>{this._isShown&&"Escape"===t.key&&this.hide()}),W.on(this._btnClose,ee,t=>{t.preventDefault(),this.hide()}),W.on(this._btnBack,ee,t=>{t.preventDefault(),this.hide()}),this._menuItems.forEach(t=>{W.on(t,ie,t=>this._isMobile&&this._onMenuItemKeyDown(t))}))}_onResize(){this._isMobile=Ft()}_onMenuItemKeyDown(t){"Escape"===t.key&&this.hide()}_isAnimated(){return!0}_isElementHidden(t){return null===t.offsetParent}_showElement(){this._element.style.display="block",this._element.getAttribute("aria-label")||this._element.getAttribute("aria-labelledby")||this._element.setAttribute("aria-label","Menu"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._mainElement&&this._isNavbarOutsideMain&&this._mainElement.setAttribute("inert",""),S(this._element),this._element.classList.add(ue);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,W.trigger(this._element,re)},this._menuWrapper,this._isAnimated())}_hideElement(){this._element.style.display="none",this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),document.body.classList.remove(le),this._mainElement&&this._isNavbarOutsideMain&&this._mainElement.removeAttribute("inert"),this._scrollBar.reset(),this._isTransitioning=!1,W.trigger(this._element,se)}}"undefined"!=typeof window&&"undefined"!=typeof document&&W.on(document,te,he,function(t){const e=_(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),W.one(e,oe,t=>{t.defaultPrevented||W.one(e,se,()=>{y(this)&&this.focus()})});ve.getOrCreateInstance(e).toggle(this)});const ye=(t,e,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const n=((t,e)=>{let i=null;return e.forEach((e,n)=>{e===t&&(i=n)}),i})(t,e);let s=null;if(i.isLimit&&i.isDirectionTop&&n>0)s=e[0];else if(i.isLimit&&n<e.length-1)s=e[e.length-1];else if(i.isDirectionTop){if(!i.loop&&0===n)return;s=e[0===n?e.length-1:n-1]}else{if(!i.loop&&n===e.length-1)return;s=e[n===e.length-1?0:n+1]}s&&s.focus()},we=".bs.accordion",Ee=`keydown${we}`,Ce=`keydown${we}.data-api`,Se='.accordion-item > .accordion-header [data-bs-toggle="collapse"]';class ke extends K{constructor(t){super(t),this._bindEvents()}static get NAME(){return"accordion"}handleKeyDown(t,e,i){const n={ArrowDown:t=>this._focusNext(t),ArrowUp:t=>this._focusPrev(t),Home:t=>this._focusFirst(t),End:t=>this._focusLast(t)};"function"==typeof n[t]&&(i&&i.preventDefault(),n[t](e))}_bindEvents(){Q.find(Se,this._element).forEach(t=>{W.on(t,Ee,t=>{this.handleKeyDown(t.key,t.currentTarget,t)})})}_getHeadButtons(){return Q.find(":scope > "+Se,this._element)}_focusNext(t){ye(t,this._getHeadButtons(),{loop:!0})}_focusPrev(t){ye(t,this._getHeadButtons(),{isDirectionTop:!0,loop:!0})}_focusFirst(t){ye(t,this._getHeadButtons(),{isDirectionTop:!0,isLimit:!0})}_focusLast(t){ye(t,this._getHeadButtons(),{isLimit:!0})}}"undefined"!=typeof window&&"undefined"!=typeof document&&W.on(document,Ce,Se,function(t){const e=this.closest(".accordion");if(e){ke.getOrCreateInstance(e).handleKeyDown(t.key,this,t)}});const xe=[];for(let t=0;t<256;++t)xe.push((t+256).toString(16).slice(1));const Te=new Uint8Array(16);function Ae(t,e,i){return crypto.randomUUID?crypto.randomUUID():function(t){t=t||{};const e=t.random??t.rng?.()??crypto.getRandomValues(Te);if(e.length<16)throw new Error("Random bytes length must be >= 16");return e[6]=15&e[6]|64,e[8]=63&e[8]|128,function(t,e=0){return(xe[t[e+0]]+xe[t[e+1]]+xe[t[e+2]]+xe[t[e+3]]+"-"+xe[t[e+4]]+xe[t[e+5]]+"-"+xe[t[e+6]]+xe[t[e+7]]+"-"+xe[t[e+8]]+xe[t[e+9]]+"-"+xe[t[e+10]]+xe[t[e+11]]+xe[t[e+12]]+xe[t[e+13]]+xe[t[e+14]]+xe[t[e+15]]).toLowerCase()}(e)}(t)}let Oe=!1,Le=[];class Pe{constructor(t,e){this.id=t,this._callback=e}dispose(){Ie(this.id)}_execute(t){this._callback(t)}}const Ie=t=>{Le=Le.filter(e=>e.id!==t)},Me=t=>{if("undefined"!=typeof document){if(Le.length||"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("scroll",t=>{Oe||(window.requestAnimationFrame(()=>{Le.forEach(e=>e.cb._execute(t)),Oe=!1}),Oe=!0)}),"function"==typeof t){const e=new Pe(Ae(),t);return Le.push({id:e.id,cb:e}),e}return console.error("[onDocumentScroll] the provided data has to be of type function"),null}},Fe={duration:800,easing:"easeInOutSine"},$e=(e,i)=>{if("undefined"==typeof window||"undefined"==typeof document)return;const n=("object"==typeof i?i:{}).complete,s=window.document.scrollingElement||window.document.body||window.document.documentElement,o=s.style.scrollBehavior;i={scrollTop:e||0,...Fe,..."object"==typeof i?i:{}},s.style.scrollBehavior="auto",i.complete=t=>{s.style.scrollBehavior=o,"function"==typeof n&&n(t)},t({targets:s,...i})},je="active",Ne="ul.link-list",De="a.nav-link",Be=`${De}.${je}`,Re=`${De}[href^="#"]`,Ve={scrollPadding:10,duration:800,easing:"easeInOutSine"};class ze extends K{constructor(t,e){super(t),this._config=this._getConfig(e),this._togglerElement=Q.findOne(".custom-navbar-toggler",this._element),this._sectionContainer=Q.findOne(".it-page-sections-container"),this._collapsible=this._getCollapsible(),this._isCollapseOpened=!1,this._callbackQueue=[],this._scrollCb=null;const i=Q.findOne(".menu-wrapper",this._element);i&&!i.hasAttribute("tabindex")&&i.setAttribute("tabindex","-1"),this._bindEvents()}static get NAME(){return"navscroll"}setScrollPadding(t){this._config.scrollPadding=t}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(t){return t={...Ve,...G.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){this._scrollCb=Me(()=>this._onScroll()),this._collapsible&&(W.on(this._collapsible._element,"shown.bs.navbarcollapsible",()=>this._onCollapseOpened()),W.on(this._collapsible._element,"hidden.bs.navbarcollapsible",()=>this._onCollapseClosed())),Q.find(Re,this._element).forEach(t=>{t.addEventListener("click",()=>{const e=()=>this._scrollToHash(t.hash);this._isCollapseOpened?(this._callbackQueue.push(e),this._collapsible.hide()):e()})}),"undefined"!=typeof window&&"undefined"!=typeof document&&W.on(window,"load",()=>{setTimeout(()=>this._onScroll(),150)})}_onCollapseOpened(){this._isCollapseOpened=!0}_onCollapseClosed(){for(;this._callbackQueue.length>0;){const t=this._callbackQueue.shift();"function"==typeof t&&t()}this._isCollapseOpened=!1}_getParentLinks(t){const e=[];let i=t.closest(Ne),n=null,s=!1;for(;i&&!s;){const t=i.closest("li.nav-link, li.nav-item");if(t){const i=t.querySelector(De);i&&e.push(i)}n=i,i=(i.parentElement||i).closest(Ne),i===n&&(s=!0)}return e}_decorateToggler(t){if(this._togglerElement){const e=Q.findOne(".it-list",this._togglerElement);this._togglerElement.innerText="",this._togglerElement.textContent="",this._togglerElement.append(e),this._togglerElement.append(t)}}_scrollToHash(t){if(!t||"#"===t)return;const e=this._sectionContainer?Q.findOne(t,this._sectionContainer):Q.findOne(t);e&&($e(e.offsetTop-this._getScrollPadding(),{duration:this._config.duration,easing:this._config.easing,complete:()=>{const t=e.matches("h1, h2, h3, h4, h5, h6"),i=!e.hasAttribute("tabindex");i&&e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),i&&t&&setTimeout(()=>{e.removeAttribute("tabindex")},500)}}),history.pushState?history.pushState(null,null,t):location.hash=t)}_updateProgress(t){if(!t)return;const e=Q.find(".it-navscroll-progressbar");if(e){const i=Math.abs(t.getBoundingClientRect().top)/t.getBoundingClientRect().height*100,n=Math.min(100,Math.max(0,i));e.forEach(e=>{t.getBoundingClientRect().top<=0?(e.style.width=n+"%",e.setAttribute("aria-valuenow",n)):(e.style.width="0%",e.setAttribute("aria-valuenow",0))})}}_onScroll(){const t=this._sectionContainer?this._sectionContainer.offsetTop:0;if("undefined"==typeof document)return;const e=document.scrollingElement.scrollTop-t,i=Q.find(De,this._element),n=this._getScrollPadding();Q.find(".it-page-section").forEach((s,o)=>{if(s.offsetTop-t<=e+n&&(Q.find(Be,this._element).forEach(t=>{t.classList.remove(je)}),o<i.length)){const t=i[o];this._getParentLinks(t).forEach(t=>{t.classList.add(je)}),t.classList.add(je),this._decorateToggler(t.innerText)}}),this._updateProgress(this._sectionContainer)}_getCollapsible(){const t=Q.findOne(".navbar-collapsable",this._element);return t?ve.getOrCreateInstance(t):null}_getScrollPadding(){return"function"==typeof this._config.scrollPadding?this._config.scrollPadding():this._config.scrollPadding}}if("undefined"!=typeof window&&"undefined"!=typeof document){Q.find("[data-bs-navscroll]").map(t=>{ze.getOrCreateInstance(t)})}const We=".bs.sticky",qe=`resize${We}`,He=`on${We}`,Ue=`off${We}`,Ge="bs-is-sticky",Ye="bs-is-fixed",Ke='[data-bs-toggle="sticky"]',Qe={positionType:"sticky",stickyClassName:"",stackable:!1,paddingTop:0};class Xe extends K{constructor(t,e){super(t),this._config=this._getConfig(e),this._isSticky=!1,this._wrapper=null,this._stickyTarget=Q.findOne(g(this._element),this._element)||this._element,this._stickyTargetMobile=Q.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=Ft(),this._prevTop=0,this._onScroll(),this._bindEvents()}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(W.off(window,qe),this._scrollCb.dispose(),super.dispose())}static get NAME(){return"sticky"}_getConfig(t){return t={...Qe,...G.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(W.on(window,qe,()=>this._onResize()),this._scrollCb=Me(()=>this._onScroll()))}_onResize(){this._isMobile=Ft(),this._setLimit()}_onScroll(){this._checkSticky()}_setLimit(){this._stickyLimit=this._cumulativeOffset(this._stickyTarget).top,this._stickyLimitMobile=this._cumulativeOffset(this._stickyTargetMobile).top}_getLimit(){let t=this._isMobile?this._stickyLimitMobile:this._stickyLimit;return this._config.stackable&&this._getStickySimblings().forEach((e,i)=>{const n=e.getBoundingClientRect();t-=n.height+(0===i?parseFloat(e.style.top):0)}),t>0?t:0}_cumulativeOffset(t){let e=0,i=0;do{e+=t.offsetTop||0,i+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:i}}_isTypeSticky(){return"sticky"===this._config.positionType}_checkSticky(){this._isSticky||this._setLimit();const t=this._getLimit();"undefined"!=typeof window&&window.pageYOffset>t?this._setSticky():this._unsetSticky()}_setSticky(){if(!this._isSticky){this._isSticky=!0;let t=Ge;this._isTypeSticky()||(t=Ye,this._wrapper=this._createWrapper()),this._element.classList.add(t),this._config.stickyClassName&&this._element.classList.add(this._config.stickyClassName),this._prevTop=this._element.style.top,this._element.style.top=this._getPositionTop()+"px",W.trigger(this._element,He)}}_unsetSticky(){if(this._isSticky){let t=Ge;this._isTypeSticky()||(t=Ye,this._destroyWrapper()),this._element.classList.remove(t),this._config.stickyClassName&&this._element.classList.remove(this._config.stickyClassName),this._element.style.top=this._prevTop,this._isSticky=!1,W.trigger(this._element,Ue)}}_createWrapper(){if("undefined"==typeof document)return;const t=document.createElement("div");return t.classList.add("bs-it-sticky-wrapper"),t.style.width="100%",t.style.height=this._element.getBoundingClientRect().height+"px",t.style.overflow="hidden",this._element.parentNode.insertBefore(t,this._element),t.appendChild(this._element),t}_destroyWrapper(){this._wrapper&&(this._wrapper.parentNode.insertBefore(this._element,this._wrapper),this._wrapper.remove())}_getStickySimblings(){return Q.find(Ke).filter(t=>{const e=Xe.getInstance(t);return!(!e||!e._isSticky||t===this._element)})}_getPositionTop(){let t=0;return this._config.stackable?(this._getStickySimblings().forEach((e,i)=>{const n=e.getBoundingClientRect();t+=n.height+(0===i?parseFloat(e.style.top):0)}),t):t+this._config.paddingTop}}"undefined"!=typeof window&&"undefined"!=typeof document&&Me(()=>{Q.find(Ke).map(t=>{Xe.getOrCreateInstance(t)})});const Ze="cloned-element",Je=`.${Ze}`,ti=new Map;class ei{constructor(t){if(ti.get(t))return null;this._element=t,this._elementObj=Xe.getOrCreateInstance(t),ti.set(t,this._elementObj),this._bindEvents(),this._toggleClonedElement(this._element.classList.contains("is-sticky"))}static getOrCreateInstance(t){return ti.get(t)||new this(t)}_bindEvents(){this._element.addEventListener("on.bs.sticky",()=>this._toggleClonedElement(!0)),this._element.addEventListener("off.bs.sticky",()=>this._toggleClonedElement(!1))}_toggleClonedElement(t=!0){if(!y(Q.findOne(".custom-navbar-toggler",this._element))){const e=Q.findOne(".menu-wrapper",this._element);if(t){const t=Q.findOne(".it-brand-wrapper",this._element),i=Q.findOne(".it-search-wrapper",this._element),n=Q.findOne(".it-user-wrapper",this._element),s=t?t.cloneNode(!0):null,o=i?i.cloneNode(!0):null,r=n?n.cloneNode(!0):null;s&&e.insertBefore(s,e.childNodes[0]).classList.add(Ze),o&&e.appendChild(o).classList.add(Ze),r&&(e.appendChild(r).classList.add(Ze),e.appendChild(r).classList.remove("show"))}else Q.find(Je,this._element).forEach(t=>{t.parentElement.removeChild(t)})}}}Me(()=>{Q.find('.it-header-sticky [data-bs-toggle="sticky"]').map(t=>{ei.getOrCreateInstance(t)})});var ii=Object.defineProperty,ni=(t,e,i)=>(((t,e,i)=>{e in t?ii(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i})(t,"symbol"!=typeof e?e+"":e,i),i);const si=/^(([^<>()[\]\\.,;:\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,}))$/,oi=/^-?[0-9]\d*$/,ri=/^(?=.*[A-Za-z])(?=.*\d).{8,}$/,ai=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,li=t=>"string"!=typeof t||""===t;var ci=(t=>(t.Required="required",t.Email="email",t.MinLength="minLength",t.MaxLength="maxLength",t.Password="password",t.Number="number",t.Integer="integer",t.MaxNumber="maxNumber",t.MinNumber="minNumber",t.StrongPassword="strongPassword",t.CustomRegexp="customRegexp",t.MinFilesCount="minFilesCount",t.MaxFilesCount="maxFilesCount",t.Files="files",t))(ci||{}),ui=(t=>(t.Required="required",t))(ui||{}),hi=(t=>(t.Label="label",t.LabelArrow="labelArrow",t))(hi||{});const di=[{key:ci.Required,dict:{en:"The field is required"}},{key:ci.Email,dict:{en:"Email has invalid format"}},{key:ci.MaxLength,dict:{en:"The field must contain a maximum of :value characters"}},{key:ci.MinLength,dict:{en:"The field must contain a minimum of :value characters"}},{key:ci.Password,dict:{en:"Password must contain minimum eight characters, at least one letter and one number"}},{key:ci.StrongPassword,dict:{en:"Password should contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"}},{key:ci.Number,dict:{en:"Value should be a number"}},{key:ci.MaxNumber,dict:{en:"Number should be less or equal than :value"}},{key:ci.MinNumber,dict:{en:"Number should be more or equal than :value"}},{key:ci.MinFilesCount,dict:{en:"Files count should be more or equal than :value"}},{key:ci.MaxFilesCount,dict:{en:"Files count should be less or equal than :value"}},{key:ci.Files,dict:{en:"Uploaded files have one or several invalid properties (extension/size/type etc)."}}],fi=t=>"object"==typeof t&&null!==t&&"then"in t&&"function"==typeof t.then,pi=t=>Array.isArray(t)?t.filter(t=>t.length>0):"string"==typeof t&&t.trim()?[...t.split(" ").filter(t=>t.length>0)]:[],mi=t=>t instanceof Element||t instanceof HTMLDocument,gi={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 _i{constructor(t,e,i){ni(this,"form",null),ni(this,"fields",{}),ni(this,"groupFields",{}),ni(this,"errors",{}),ni(this,"isValid",!1),ni(this,"isSubmitted",!1),ni(this,"globalConfig",gi),ni(this,"errorLabels",{}),ni(this,"successLabels",{}),ni(this,"eventListeners",[]),ni(this,"dictLocale",di),ni(this,"currentLocale","en"),ni(this,"customStyleTags",{}),ni(this,"onSuccessCallback"),ni(this,"onFailCallback"),ni(this,"onValidateCallback"),ni(this,"tooltips",[]),ni(this,"lastScrollPosition"),ni(this,"isScrollTick"),ni(this,"fieldIds",new Map),ni(this,"getKeyByFieldSelector",t=>this.fieldIds.get(t)),ni(this,"getFieldSelectorByKey",t=>{for(const[e,i]of this.fieldIds)if(t===i)return e}),ni(this,"getCompatibleFields",()=>{const t={};return Object.keys(this.fields).forEach(e=>{let i=e;const n=this.getFieldSelectorByKey(e);"string"==typeof n&&(i=n),t[i]={...this.fields[e]}}),t}),ni(this,"setKeyByFieldSelector",t=>{if(this.fieldIds.has(t))return this.fieldIds.get(t);const e=String(this.fieldIds.size+1);return this.fieldIds.set(t,e),e}),ni(this,"refreshAllTooltips",()=>{this.tooltips.forEach(t=>{t.refresh()})}),ni(this,"handleDocumentScroll",()=>{this.lastScrollPosition=window.scrollY,this.isScrollTick||(window.requestAnimationFrame(()=>{this.refreshAllTooltips(),this.isScrollTick=!1}),this.isScrollTick=!0)}),ni(this,"formSubmitHandler",t=>{t.preventDefault(),this.isSubmitted=!0,this.validateHandler(t)}),ni(this,"handleFieldChange",t=>{let e;for(const i in this.fields){if(this.fields[i].elem===t){e=i;break}}e&&(this.fields[e].touched=!0,this.validateField(e,!0))}),ni(this,"handleGroupChange",t=>{let e;for(const i in this.groupFields){if(this.groupFields[i].elems.find(e=>e===t)){e=i;break}}e&&(this.groupFields[e].touched=!0,this.validateGroup(e,!0))}),ni(this,"handlerChange",t=>{t.target&&(this.handleFieldChange(t.target),this.handleGroupChange(t.target),this.renderErrors())}),this.initialize(t,e,i)}initialize(t,e,i){if(this.form=null,this.errors={},this.isValid=!1,this.isSubmitted=!1,this.globalConfig=gi,this.errorLabels={},this.successLabels={},this.eventListeners=[],this.customStyleTags={},this.tooltips=[],this.currentLocale="en","string"==typeof t){const e=document.querySelector(t);if(!e)throw Error(`Form with ${t} selector not found! Please check the form selector`);this.setForm(e)}else{if(!(t instanceof HTMLFormElement))throw Error("Form selector is not valid. Please specify a string selector or a DOM element.");this.setForm(t)}if(this.globalConfig={...gi,...e},i&&(this.dictLocale=[...i,...di]),this.isTooltip()){const t=document.createElement("style");t.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[hi.Label]=document.head.appendChild(t),this.addListener("scroll",document,this.handleDocumentScroll)}}getLocalisedString(t,e,i){var n;const s=null!=i?i:t;let o=null==(n=this.dictLocale.find(t=>t.key===s))?void 0:n.dict[this.currentLocale];if(o||i&&(o=i),o&&void 0!==e)switch(t){case ci.MaxLength:case ci.MinLength:case ci.MaxNumber:case ci.MinNumber:case ci.MinFilesCount:case ci.MaxFilesCount:o=o.replace(":value",String(e))}return o||i||"Value is incorrect"}getFieldErrorMessage(t,e){const i="function"==typeof t.errorMessage?t.errorMessage(this.getElemValue(e),this.fields):t.errorMessage;return this.getLocalisedString(t.rule,t.value,i)}getFieldSuccessMessage(t,e){const i="function"==typeof t?t(this.getElemValue(e),this.fields):t;return this.getLocalisedString(void 0,void 0,i)}getGroupErrorMessage(t){return this.getLocalisedString(t.rule,void 0,t.errorMessage)}getGroupSuccessMessage(t){if(t.successMessage)return this.getLocalisedString(void 0,void 0,t.successMessage)}setFieldInvalid(t,e){this.fields[t].isValid=!1,this.fields[t].errorMessage=this.getFieldErrorMessage(e,this.fields[t].elem)}setFieldValid(t,e){this.fields[t].isValid=!0,void 0!==e&&(this.fields[t].successMessage=this.getFieldSuccessMessage(e,this.fields[t].elem))}setGroupInvalid(t,e){this.group