/*! * Bootstrap v5.1.3 (https://getbootstrap.com/) * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ !function(t,e){"object"==typeof exports&&void 0!==module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t="transitionend",e=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[1]),e=n&&"#"!==n?n.trim():null}return e},n=t=>{const n=e(t);return n&&document.querySelector(n)?n:null},r=t=>{const n=e(t);return n?document.querySelector(n):null},i=e=>{e.dispatchEvent(new Event(t))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),s=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,a=(t,e,n)=>{Object.keys(n).forEach(r=>{const i=n[r],s=e[r],a=s&&o(s)?"element":null==(l=s)?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(i).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${r}" provided type "${a}" but expected type "${i}".`)})},l=t=>!(!o(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),u=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),c=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?c(t.parentNode):null},d=()=>{},h=t=>{t.offsetHeight},p=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},f=[],m=()=>"rtl"===document.documentElement.dir,g=t=>{var e;e=()=>{const e=p();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",()=>{f.forEach(t=>t())}),f.push(e)):e()},v=t=>{"function"==typeof t&&t()},y=(e,n,r=!0)=>{if(!r)return void v(e);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),i=Number.parseFloat(n);return r||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(n)+5;let s=!1;const a=({target:r})=>{r===n&&(s=!0,n.removeEventListener(t,a),v(e))};n.addEventListener(t,a),setTimeout(()=>{s||i(n)},o)},_=(t,e,n,r)=>{let i=t.indexOf(e);if(-1===i)return t[!n&&r?t.length-1:0];const o=t.length;return i+=n?1:-1,r&&(i=(i+o)%o),t[Math.max(0,Math.min(i,o-1))]},b=/[^.]*(?=\..*)\.|.*/,w=/\..*/,x=/::\d+$/,S={};let k=1;const C={mouseenter:"mouseover",mouseleave:"mouseout"},E=/^(mouseenter|mouseleave)/i,T=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 P(t,e){return e&&`${e}::${k++}`||t.uidEvent||k++}function O(t){const e=P(t);return t.uidEvent=e,S[e]=S[e]||{},S[e]}function A(t,e,n=null){const r=Object.keys(t);for(let i=0,o=r.length;ifunction(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r?r=t(r):n=t(n)}const[o,s,a]=M(e,n,r),l=O(t),u=l[a]||(l[a]={}),c=A(u,s,o?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const d=P(s,e.replace(b,"")),h=o?function(t,e,n){return function r(i){const o=t.querySelectorAll(e);for(let{target:s}=i;s&&s!==this;s=s.parentNode)for(let a=o.length;a--;)if(o[a]===s)return i.delegateTarget=s,r.oneOff&&D.off(t,i.type,e,n),n.apply(s,[i]);return null}}(t,n,r):function(t,e){return function n(r){return r.delegateTarget=t,n.oneOff&&D.off(t,r.type,e),e.apply(t,[r])}}(t,n);h.delegationSelector=o?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=d,u[d]=h,t.addEventListener(a,h,o)}function I(t,e,n,r,i){const o=A(e[n],r,i);o&&(t.removeEventListener(n,o,Boolean(i)),delete e[n][o.uidEvent])}function j(t){return t=t.replace(w,""),C[t]||t}const D={on(t,e,n,r){L(t,e,n,r,!1)},one(t,e,n,r){L(t,e,n,r,!0)},off(t,e,n,r){if("string"!=typeof e||!t)return;const[i,o,s]=M(e,n,r),a=s!==e,l=O(t),u=e.startsWith(".");if(void 0!==o){if(!l||!l[s])return;return void I(t,l,s,o,i?n:null)}u&&Object.keys(l).forEach(n=>{!function(t,e,n,r){const i=e[n]||{};Object.keys(i).forEach(o=>{if(o.includes(r)){const r=i[o];I(t,e,n,r.originalHandler,r.delegationSelector)}})}(t,l,n,e.slice(1))});const c=l[s]||{};Object.keys(c).forEach(n=>{const r=n.replace(x,"");if(!a||e.includes(r)){const e=c[n];I(t,l,s,e.originalHandler,e.delegationSelector)}})},trigger(t,e,n){if("string"!=typeof e||!t)return null;const r=p(),i=j(e),o=e!==i,s=T.has(i);let a,l=!0,u=!0,c=!1,d=null;return o&&r&&(a=r.Event(e,n),r(t).trigger(a),l=!a.isPropagationStopped(),u=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented()),s?(d=document.createEvent("HTMLEvents"),d.initEvent(i,l,!0)):d=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==n&&Object.keys(n).forEach(t=>{Object.defineProperty(d,t,{get:()=>n[t]})}),c&&d.preventDefault(),u&&t.dispatchEvent(d),d.defaultPrevented&&void 0!==a&&a.preventDefault(),d}},N=new Map,R={set(t,e,n){N.has(t)||N.set(t,new Map);const r=N.get(t);r.has(e)||0===r.size?r.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(t,e)=>N.has(t)&&N.get(t).get(e)||null,remove(t,e){if(!N.has(t))return;const n=N.get(t);n.delete(e),0===n.size&&N.delete(t)}};class F{constructor(t){(t=s(t))&&(this._element=t,R.set(this._element,this.constructor.DATA_KEY,this))}dispose(){R.remove(this._element,this.constructor.DATA_KEY),D.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,n=!0){y(t,e,n)}static getInstance(t){return R.get(s(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.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}}const V=(t,e="hide")=>{const n="click.dismiss"+t.EVENT_KEY,i=t.NAME;D.on(document,n,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),u(this))return;const o=r(this)||this.closest("."+i);t.getOrCreateInstance(o)[e]()}))};class z extends F{static get NAME(){return"alert"}close(){if(D.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),D.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=z.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}V(z,"close"),g(z);const B='[data-bs-toggle="button"]';class q extends F{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=q.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}function H(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function $(t){return t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}D.on(document,"click.bs.button.data-api",B,t=>{t.preventDefault();const e=t.target.closest(B);q.getOrCreateInstance(e).toggle()}),g(q);const U={setDataAttribute(t,e,n){t.setAttribute("data-bs-"+$(e),n)},removeDataAttribute(t,e){t.removeAttribute("data-bs-"+$(e))},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter(t=>t.startsWith("bs")).forEach(n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=H(t.dataset[n])}),e},getDataAttribute:(t,e)=>H(t.getAttribute("data-bs-"+$(e))),offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},W={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 n=[];let r=t.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&3!==r.nodeType;)r.matches(e)&&n.push(r),r=r.parentNode;return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.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=>!u(t)&&l(t))}},G="carousel",Y={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Z={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},K="next",X="prev",Q="left",J="right",tt={ArrowLeft:J,ArrowRight:Q},et="slid.bs.carousel",nt="active",rt=".active.carousel-item";class it extends F{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=W.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Y}static get NAME(){return G}next(){this._slide(K)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(X)}pause(t){t||(this._isPaused=!0),W.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(i(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=W.findOne(rt,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void D.one(this._element,et,()=>this.to(t));if(e===t)return this.pause(),void this.cycle();const n=t>e?K:X;this._slide(n,this._items[t])}_getConfig(t){return t={...Y,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},a(G,t,Z),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?J:Q)}_addEventListeners(){this._config.keyboard&&D.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(D.on(this._element,"mouseenter.bs.carousel",t=>this.pause(t)),D.on(this._element,"mouseleave.bs.carousel",t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>this._pointerEvent&&("pen"===t.pointerType||"touch"===t.pointerType),e=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},n=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},r=e=>{t(e)&&(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(t=>this.cycle(t),500+this._config.interval))};W.find(".carousel-item img",this._element).forEach(t=>{D.on(t,"dragstart.bs.carousel",t=>t.preventDefault())}),this._pointerEvent?(D.on(this._element,"pointerdown.bs.carousel",t=>e(t)),D.on(this._element,"pointerup.bs.carousel",t=>r(t)),this._element.classList.add("pointer-event")):(D.on(this._element,"touchstart.bs.carousel",t=>e(t)),D.on(this._element,"touchmove.bs.carousel",t=>n(t)),D.on(this._element,"touchend.bs.carousel",t=>r(t)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=tt[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?W.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const n=t===K;return _(this._items,e,n,this._config.wrap)}_triggerSlideEvent(t,e){const n=this._getItemIndex(t),r=this._getItemIndex(W.findOne(rt,this._element));return D.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:r,to:n})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=W.findOne(".active",this._indicatorsElement);e.classList.remove(nt),e.removeAttribute("aria-current");const n=W.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e{D.trigger(this._element,et,{relatedTarget:o,direction:d,from:i,to:s})};if(this._element.classList.contains("slide")){o.classList.add(c),h(o),r.classList.add(u),o.classList.add(u);const t=()=>{o.classList.remove(u,c),o.classList.add(nt),r.classList.remove(nt,c,u),this._isSliding=!1,setTimeout(p,0)};this._queueCallback(t,r,!0)}else r.classList.remove(nt),o.classList.add(nt),this._isSliding=!1,p();a&&this.cycle()}_directionToOrder(t){return[J,Q].includes(t)?m()?t===Q?X:K:t===Q?K:X:t}_orderToDirection(t){return[K,X].includes(t)?m()?t===X?Q:J:t===X?J:Q:t}static carouselInterface(t,e){const n=it.getOrCreateInstance(t,e);let{_config:r}=n;"object"==typeof e&&(r={...r,...e});const i="string"==typeof e?e:r.slide;if("number"==typeof e)n.to(e);else if("string"==typeof i){if(void 0===n[i])throw new TypeError(`No method named "${i}"`);n[i]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}static jQueryInterface(t){return this.each((function(){it.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=r(this);if(!e||!e.classList.contains("carousel"))return;const n={...U.getDataAttributes(e),...U.getDataAttributes(this)},i=this.getAttribute("data-bs-slide-to");i&&(n.interval=!1),it.carouselInterface(e,n),i&&it.getInstance(e).to(i),t.preventDefault()}}D.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",it.dataApiClickHandler),D.on(window,"load.bs.carousel.data-api",()=>{const t=W.find('[data-bs-ride="carousel"]');for(let e=0,n=t.length;et===this._element);null!==i&&o.length&&(this._selector=i,this._triggerArray.push(e))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return st}static get NAME(){return ot}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t,e=[];if(this._config.parent){const t=W.find(ht,this._config.parent);e=W.find(".collapse.show, .collapse.collapsing",this._config.parent).filter(e=>!t.includes(e))}const n=W.findOne(this._selector);if(e.length){const r=e.find(t=>n!==t);if(t=r?ft.getInstance(r):null,t&&t._isTransitioning)return}if(D.trigger(this._element,"show.bs.collapse").defaultPrevented)return;e.forEach(e=>{n!==e&&ft.getOrCreateInstance(e,{toggle:!1}).hide(),t||R.set(e,"bs.collapse",null)});const r=this._getDimension();this._element.classList.remove(ut),this._element.classList.add(ct),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i="scroll"+(r[0].toUpperCase()+r.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ct),this._element.classList.add(ut,lt),this._element.style[r]="",D.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[r]=this._element[i]+"px"}hide(){if(this._isTransitioning||!this._isShown())return;if(D.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",h(this._element),this._element.classList.add(ct),this._element.classList.remove(ut,lt);const e=this._triggerArray.length;for(let t=0;t{this._isTransitioning=!1,this._element.classList.remove(ct),this._element.classList.add(ut),D.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}_isShown(t=this._element){return t.classList.contains(lt)}_getConfig(t){return(t={...st,...U.getDataAttributes(this._element),...t}).toggle=Boolean(t.toggle),t.parent=s(t.parent),a(ot,t,at),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=W.find(ht,this._config.parent);W.find(pt,this._config.parent).filter(e=>!t.includes(e)).forEach(t=>{const e=r(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))})}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach(t=>{e?t.classList.remove(dt):t.classList.add(dt),t.setAttribute("aria-expanded",e)})}static jQueryInterface(t){return this.each((function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const n=ft.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}D.on(document,"click.bs.collapse.data-api",pt,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=n(this);W.find(e).forEach(t=>{ft.getOrCreateInstance(t,{toggle:!1}).toggle()})})),g(ft);var mt="top",gt="bottom",vt="right",yt="left",_t="auto",bt=[mt,gt,vt,yt],wt="start",xt="end",St="clippingParents",kt="viewport",Ct="popper",Et="reference",Tt=bt.reduce((function(t,e){return t.concat([e+"-"+wt,e+"-"+xt])}),[]),Pt=[].concat(bt,[_t]).reduce((function(t,e){return t.concat([e,e+"-"+wt,e+"-"+xt])}),[]),Ot="beforeRead",At="afterRead",Mt="beforeMain",Lt="afterMain",It="beforeWrite",jt="afterWrite",Dt=[Ot,"read",At,Mt,"main",Lt,It,"write",jt];function Nt(t){return t?(t.nodeName||"").toLowerCase():null}function Rt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ft(t){return t instanceof Rt(t).Element||t instanceof Element}function Vt(t){return t instanceof Rt(t).HTMLElement||t instanceof HTMLElement}function zt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Rt(t).ShadowRoot||t instanceof ShadowRoot)}const Bt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];Vt(i)&&Nt(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Vt(r)&&Nt(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]};function qt(t){return t.split("-")[0]}function Ht(t,e){var n=t.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}function $t(t){var e=Ht(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Ut(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&zt(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wt(t){return Rt(t).getComputedStyle(t)}function Gt(t){return["table","td","th"].indexOf(Nt(t))>=0}function Yt(t){return((Ft(t)?t.ownerDocument:t.document)||window.document).documentElement}function Zt(t){return"html"===Nt(t)?t:t.assignedSlot||t.parentNode||(zt(t)?t.host:null)||Yt(t)}function Kt(t){return Vt(t)&&"fixed"!==Wt(t).position?t.offsetParent:null}function Xt(t){for(var e=Rt(t),n=Kt(t);n&&Gt(n)&&"static"===Wt(n).position;)n=Kt(n);return n&&("html"===Nt(n)||"body"===Nt(n)&&"static"===Wt(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Vt(t)&&"fixed"===Wt(t).position)return null;for(var n=Zt(t);Vt(n)&&["html","body"].indexOf(Nt(n))<0;){var r=Wt(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}function Qt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var Jt=Math.max,te=Math.min,ee=Math.round;function ne(t,e,n){return Jt(t,te(e,n))}function re(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ie(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}const oe={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=qt(n.placement),l=Qt(a),u=[yt,vt].indexOf(a)>=0?"height":"width";if(o&&s){var c=function(t,e){return re("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ie(t,bt))}(i.padding,n),d=$t(o),h="y"===l?mt:yt,p="y"===l?gt:vt,f=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],g=Xt(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,_=c[h],b=v-d[u]-c[p],w=v/2-d[u]/2+y,x=ne(_,w,b),S=l;n.modifiersData[r]=((e={})[S]=x,e.centerOffset=x-w,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&Ut(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function se(t){return t.split("-")[1]}var ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function le(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=!0===c?function(t){var e=t.x,n=t.y,r=window.devicePixelRatio||1;return{x:ee(ee(e*r)/r)||0,y:ee(ee(n*r)/r)||0}}(s):"function"==typeof c?c(s):s,h=d.x,p=void 0===h?0:h,f=d.y,m=void 0===f?0:f,g=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),y=yt,_=mt,b=window;if(u){var w=Xt(n),x="clientHeight",S="clientWidth";w===Rt(n)&&"static"!==Wt(w=Yt(n)).position&&"absolute"===a&&(x="scrollHeight",S="scrollWidth"),w=w,i!==mt&&(i!==yt&&i!==vt||o!==xt)||(_=gt,m-=w[x]-r.height,m*=l?1:-1),i!==yt&&(i!==mt&&i!==gt||o!==xt)||(y=vt,p-=w[S]-r.width,p*=l?1:-1)}var k,C=Object.assign({position:a},u&&ae);return l?Object.assign({},C,((k={})[_]=v?"0":"",k[y]=g?"0":"",k.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",k)):Object.assign({},C,((e={})[_]=v?m+"px":"",e[y]=g?p+"px":"",e.transform="",e))}const ue={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,u={placement:qt(e.placement),variation:se(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,le(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,le(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var ce={passive:!0};const de={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,l=Rt(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach((function(t){t.addEventListener("scroll",n.update,ce)})),a&&l.addEventListener("resize",n.update,ce),function(){o&&u.forEach((function(t){t.removeEventListener("scroll",n.update,ce)})),a&&l.removeEventListener("resize",n.update,ce)}},data:{}};var he={left:"right",right:"left",bottom:"top",top:"bottom"};function pe(t){return t.replace(/left|right|bottom|top/g,(function(t){return he[t]}))}var fe={start:"end",end:"start"};function me(t){return t.replace(/start|end/g,(function(t){return fe[t]}))}function ge(t){var e=Rt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ve(t){return Ht(Yt(t)).left+ge(t).scrollLeft}function ye(t){var e=Wt(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _e(t,e){var n;void 0===e&&(e=[]);var r=function t(e){return["html","body","#document"].indexOf(Nt(e))>=0?e.ownerDocument.body:Vt(e)&&ye(e)?e:t(Zt(e))}(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=Rt(r),s=i?[o].concat(o.visualViewport||[],ye(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(_e(Zt(s)))}function be(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function we(t,e){return e===kt?be(function(t){var e=Rt(t),n=Yt(t),r=e.visualViewport,i=n.clientWidth,o=n.clientHeight,s=0,a=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,a=r.offsetTop)),{width:i,height:o,x:s+ve(t),y:a}}(t)):Vt(e)?function(t){var e=Ht(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):be(function(t){var e,n=Yt(t),r=ge(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=Jt(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Jt(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+ve(t),l=-r.scrollTop;return"rtl"===Wt(i||n).direction&&(a+=Jt(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Yt(t)))}function xe(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?qt(i):null,s=i?se(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case mt:e={x:a,y:n.y-r.height};break;case gt:e={x:a,y:n.y+n.height};break;case vt:e={x:n.x+n.width,y:l};break;case yt:e={x:n.x-r.width,y:l};break;default:e={x:n.x,y:n.y}}var u=o?Qt(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case wt:e[u]=e[u]-(n[c]/2-r[c]/2);break;case xt:e[u]=e[u]+(n[c]/2-r[c]/2)}}return e}function Se(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,o=n.boundary,s=void 0===o?St:o,a=n.rootBoundary,l=void 0===a?kt:a,u=n.elementContext,c=void 0===u?Ct:u,d=n.altBoundary,h=void 0!==d&&d,p=n.padding,f=void 0===p?0:p,m=re("number"!=typeof f?f:ie(f,bt)),g=c===Ct?Et:Ct,v=t.rects.popper,y=t.elements[h?g:c],_=function(t,e,n){var r="clippingParents"===e?function(t){var e=_e(Zt(t)),n=["absolute","fixed"].indexOf(Wt(t).position)>=0&&Vt(t)?Xt(t):t;return Ft(n)?e.filter((function(t){return Ft(t)&&Ut(t,n)&&"body"!==Nt(t)})):[]}(t):[].concat(e),i=[].concat(r,[n]),o=i[0],s=i.reduce((function(e,n){var r=we(t,n);return e.top=Jt(r.top,e.top),e.right=te(r.right,e.right),e.bottom=te(r.bottom,e.bottom),e.left=Jt(r.left,e.left),e}),we(t,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Ft(y)?y:y.contextElement||Yt(t.elements.popper),s,l),b=Ht(t.elements.reference),w=xe({reference:b,element:v,strategy:"absolute",placement:i}),x=be(Object.assign({},v,w)),S=c===Ct?x:b,k={top:_.top-S.top+m.top,bottom:S.bottom-_.bottom+m.bottom,left:_.left-S.left+m.left,right:S.right-_.right+m.right},C=t.modifiersData.offset;if(c===Ct&&C){var E=C[i];Object.keys(k).forEach((function(t){var e=[vt,gt].indexOf(t)>=0?1:-1,n=[mt,gt].indexOf(t)>=0?"y":"x";k[t]+=E[n]*e}))}return k}const ke={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=e.options.placement,v=qt(g),y=l||(v!==g&&f?function(t){if(qt(t)===_t)return[];var e=pe(t);return[me(t),e,me(e)]}(g):[pe(g)]),_=[g].concat(y).reduce((function(t,n){return t.concat(qt(n)===_t?function(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?Pt:l,c=se(r),d=c?a?Tt:Tt.filter((function(t){return se(t)===c})):bt,h=d.filter((function(t){return u.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,n){return e[n]=Se(t,{placement:n,boundary:i,rootBoundary:o,padding:s})[qt(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),b=e.rects.reference,w=e.rects.popper,x=new Map,S=!0,k=_[0],C=0;C<_.length;C++){var E=_[C],T=qt(E),P=se(E)===wt,O=[mt,gt].indexOf(T)>=0,A=O?"width":"height",M=Se(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),L=O?P?vt:yt:P?gt:mt;b[A]>w[A]&&(L=pe(L));var I=pe(L),j=[];if(o&&j.push(M[T]<=0),a&&j.push(M[L]<=0,M[I]<=0),j.every((function(t){return t}))){k=E,S=!1;break}x.set(E,j)}if(S)for(var D=function(t){var e=_.find((function(e){var n=x.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},N=f?3:1;N>0&&"break"!==D(N);N--);e.placement!==k&&(e.modifiersData[r]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ce(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ee(t){return[mt,vt,gt,yt].some((function(e){return t[e]>=0}))}const Te={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=Se(e,{elementContext:"reference"}),a=Se(e,{altBoundary:!0}),l=Ce(s,r),u=Ce(a,i,o),c=Ee(l),d=Ee(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},Pe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=void 0===i?[0,0]:i,s=Pt.reduce((function(t,n){return t[n]=function(t,e,n){var r=qt(t),i=[yt,mt].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[yt,vt].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,o),t}),{}),a=s[e.placement],l=a.x,u=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}},Oe={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=xe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Ae={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,g=Se(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=qt(e.placement),y=se(e.placement),_=!y,b=Qt(v),w="x"===b?"y":"x",x=e.modifiersData.popperOffsets,S=e.rects.reference,k=e.rects.popper,C="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,E={x:0,y:0};if(x){if(o||a){var T="y"===b?mt:yt,P="y"===b?gt:vt,O="y"===b?"height":"width",A=x[b],M=x[b]+g[T],L=x[b]-g[P],I=p?-k[O]/2:0,j=y===wt?S[O]:k[O],D=y===wt?-k[O]:-S[O],N=e.elements.arrow,R=p&&N?$t(N):{width:0,height:0},F=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=F[T],z=F[P],B=ne(0,S[O],R[O]),q=_?S[O]/2-I-B-V-C:j-B-V-C,H=_?-S[O]/2+I+B+z+C:D+B+z+C,$=e.elements.arrow&&Xt(e.elements.arrow),U=$?"y"===b?$.clientTop||0:$.clientLeft||0:0,W=e.modifiersData.offset?e.modifiersData.offset[e.placement][b]:0,G=x[b]+q-W-U,Y=x[b]+H-W;if(o){var Z=ne(p?te(M,G):M,A,p?Jt(L,Y):L);x[b]=Z,E[b]=Z-A}if(a){var K="x"===b?mt:yt,X="x"===b?gt:vt,Q=x[w],J=Q+g[K],tt=Q-g[X],et=ne(p?te(J,G):J,Q,p?Jt(tt,Y):tt);x[w]=et,E[w]=et-Q}}e.modifiersData[r]=E}},requiresIfExists:["offset"]};function Me(t,e,n){void 0===n&&(n=!1);var r=Vt(e);Vt(e)&&function(t){var e=t.getBoundingClientRect();e.width,t.offsetWidth,e.height,t.offsetHeight}(e);var i,o,s=Yt(e),a=Ht(t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==Nt(e)||ye(s))&&(l=(i=e)!==Rt(i)&&Vt(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:ge(i)),Vt(e)?((u=Ht(e)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=ve(s))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function Le(t){var e=new Map,n=new Set,r=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var i=e.get(r);i&&t(i)}})),r.push(i)}(t)})),r}var Ie={placement:"bottom",modifiers:[],strategy:"absolute"};function je(){for(var t=arguments.length,e=new Array(t),n=0;nD.on(t,"mouseover",d)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ge),this._element.classList.add(Ge),D.trigger(this._element,"shown.bs.dropdown",t)}hide(){if(u(this._element)||!this._isShown(this._menu))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){D.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>D.off(t,"mouseover",d)),this._popper&&this._popper.destroy(),this._menu.classList.remove(Ge),this._element.classList.remove(Ge),this._element.setAttribute("aria-expanded","false"),U.removeDataAttribute(this._menu,"popper"),D.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t={...this.constructor.Default,...U.getDataAttributes(this._element),...t},a(ze,t,this.constructor.DefaultType),"object"==typeof t.reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(ze.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return t}_createPopper(t){if(void 0===Ve)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:o(this._config.reference)?e=s(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const n=this._getPopperConfig(),r=n.modifiers.find(t=>"applyStyles"===t.name&&!1===t.enabled);this._popper=Fe(e,this._menu,n),r&&U.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(Ge)}_getMenuElement(){return W.next(this._element,Ze)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return tn;if(t.classList.contains("dropstart"))return en;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Xe:Ke:e?Je:Qe}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const n=W.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(l);n.length&&_(n,e,t===He,!n.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=on.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(t&&(2===t.button||"keyup"===t.type&&"Tab"!==t.key))return;const e=W.find(Ye);for(let n=0,r=e.length;ne+t),this._setElementAttributes(sn,"paddingRight",e=>e+t),this._setElementAttributes(an,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const r=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+r)return;this._saveInitialAttribute(t,e);const i=window.getComputedStyle(t)[e];t.style[e]=n(Number.parseFloat(i))+"px"})}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(sn,"paddingRight"),this._resetElementAttributes(an,"marginRight")}_saveInitialAttribute(t,e){const n=t.style[e];n&&U.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const n=U.getDataAttribute(t,e);void 0===n?t.style.removeProperty(e):(U.removeDataAttribute(t,e),t.style[e]=n)})}_applyManipulationCallback(t,e){o(t)?e(t):W.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const un={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},cn={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},dn="mousedown.bs.backdrop";class hn{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&h(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation(()=>{v(t)})):v(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),v(t)})):v(t)}_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}_getConfig(t){return(t={...un,..."object"==typeof t?t:{}}).rootElement=s(t.rootElement),a("backdrop",t,cn),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),D.on(this._getElement(),dn,()=>{v(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(D.off(this._element,dn),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){y(t,this._getElement(),this._config.isAnimated)}}const pn={trapElement:null,autofocus:!0},fn={trapElement:"element",autofocus:"boolean"},mn=".bs.focustrap",gn="backward";class vn{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),D.off(document,mn),D.on(document,"focusin.bs.focustrap",t=>this._handleFocusin(t)),D.on(document,"keydown.tab.bs.focustrap",t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,D.off(document,mn))}_handleFocusin(t){const{target:e}=t,{trapElement:n}=this._config;if(e===document||e===n||n.contains(e))return;const r=W.focusableChildren(n);0===r.length?n.focus():this._lastTabNavDirection===gn?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?gn:"forward")}_getConfig(t){return t={...pn,..."object"==typeof t?t:{}},a("focustrap",t,fn),t}}const yn={backdrop:!0,keyboard:!0,focus:!0},_n={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},bn="hidden.bs.modal",wn="show.bs.modal",xn="resize.bs.modal",Sn="click.dismiss.bs.modal",kn="keydown.dismiss.bs.modal",Cn="mousedown.dismiss.bs.modal",En="modal-open",Tn="modal-static";class Pn extends F{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=W.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new ln}static get Default(){return yn}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||D.trigger(this._element,wn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(En),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),D.on(this._dialog,Cn,()=>{D.one(this._element,"mouseup.dismiss.bs.modal",t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;if(D.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove("show"),D.off(this._element,Sn),D.off(this._dialog,Cn),this._queueCallback(()=>this._hideModal(),this._element,t)}dispose(){[window,this._dialog].forEach(t=>D.off(t,".bs.modal")),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new hn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new vn({trapElement:this._element})}_getConfig(t){return t={...yn,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},a("modal",t,_n),t}_showElement(t){const e=this._isAnimated(),n=W.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,n&&(n.scrollTop=0),e&&h(this._element),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,D.trigger(this._element,"shown.bs.modal",{relatedTarget:t})},this._dialog,e)}_setEscapeEvent(){this._isShown?D.on(this._element,kn,t=>{this._config.keyboard&&"Escape"===t.key?(t.preventDefault(),this.hide()):this._config.keyboard||"Escape"!==t.key||this._triggerBackdropTransition()}):D.off(this._element,kn)}_setResizeEvent(){this._isShown?D.on(window,xn,()=>this._adjustDialog()):D.off(window,xn)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(En),this._resetAdjustments(),this._scrollBar.reset(),D.trigger(this._element,bn)})}_showBackdrop(t){D.on(this._element,Sn,t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(D.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:t,scrollHeight:e,style:n}=this._element,r=e>document.documentElement.clientHeight;!r&&"hidden"===n.overflowY||t.contains(Tn)||(r||(n.overflowY="hidden"),t.add(Tn),this._queueCallback(()=>{t.remove(Tn),r||this._queueCallback(()=>{n.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;(!n&&t&&!m()||n&&!t&&m())&&(this._element.style.paddingLeft=e+"px"),(n&&!t&&!m()||!n&&t&&m())&&(this._element.style.paddingRight=e+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const n=Pn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}}))}}D.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=r(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),D.one(e,wn,t=>{t.defaultPrevented||D.one(e,bn,()=>{l(this)&&this.focus()})});const n=W.findOne(".modal.show");n&&Pn.getInstance(n).hide(),Pn.getOrCreateInstance(e).toggle(this)})),V(Pn),g(Pn);const On="offcanvas",An={backdrop:!0,keyboard:!0,scroll:!1},Mn={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Ln=".offcanvas.show",In="hidden.bs.offcanvas";class jn extends F{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return On}static get Default(){return An}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||D.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new ln).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show"),this._queueCallback(()=>{this._config.scroll||this._focustrap.activate(),D.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(D.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide(),this._queueCallback(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new ln).reset(),D.trigger(this._element,In)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t={...An,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},a(On,t,Mn),t}_initializeBackDrop(){return new hn({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new vn({trapElement:this._element})}_addEventListeners(){D.on(this._element,"keydown.dismiss.bs.offcanvas",t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()})}static jQueryInterface(t){return this.each((function(){const e=jn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}D.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=r(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),u(this))return;D.one(e,In,()=>{l(this)&&this.focus()});const n=W.findOne(Ln);n&&n!==e&&jn.getInstance(n).hide(),jn.getOrCreateInstance(e).toggle(this)})),D.on(window,"load.bs.offcanvas.data-api",()=>W.find(Ln).forEach(t=>jn.getOrCreateInstance(t).show())),V(jn),g(jn);const Dn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Nn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Rn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Fn=(t,e)=>{const n=t.nodeName.toLowerCase();if(e.includes(n))return!Dn.has(n)||Boolean(Nn.test(t.nodeValue)||Rn.test(t.nodeValue));const r=e.filter(t=>t instanceof RegExp);for(let t=0,e=r.length;t{Fn(t,s)||n.removeAttribute(t.nodeName)})}return r.body.innerHTML}const zn="tooltip",Bn=new Set(["sanitize","allowList","sanitizeFn"]),qn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Hn={AUTO:"auto",TOP:"top",RIGHT:m()?"left":"right",BOTTOM:"bottom",LEFT:m()?"right":"left"},$n={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Un={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Wn="fade",Gn="show",Yn="show",Zn=".tooltip-inner",Kn="hide.bs.modal",Xn="hover";class Qn extends F{constructor(t,e){if(void 0===Ve)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return $n}static get NAME(){return zn}static get Event(){return Un}static get DefaultType(){return qn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(Gn))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),D.off(this._element.closest(".modal"),Kn,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=D.trigger(this._element,this.constructor.Event.SHOW),e=c(this._element),n=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!n)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(Zn).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const r=this.getTipElement(),i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME);r.setAttribute("id",i),this._element.setAttribute("aria-describedby",i),this._config.animation&&r.classList.add(Wn);const o="function"==typeof this._config.placement?this._config.placement.call(this,r,this._element):this._config.placement,s=this._getAttachment(o);this._addAttachmentClass(s);const{container:a}=this._config;R.set(r,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(r),D.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Fe(this._element,r,this._getPopperConfig(s)),r.classList.add(Gn);const l=this._resolvePossibleFunction(this._config.customClass);l&&r.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>{D.on(t,"mouseover",d)});const u=this.tip.classList.contains(Wn);this._queueCallback(()=>{const t=this._hoverState;this._hoverState=null,D.trigger(this._element,this.constructor.Event.SHOWN),"out"===t&&this._leave(null,this)},this.tip,u)}hide(){if(!this._popper)return;const t=this.getTipElement();if(D.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(Gn),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>D.off(t,"mouseover",d)),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains(Wn);this._queueCallback(()=>{this._isWithActiveTrigger()||(this._hoverState!==Yn&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),D.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())},this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(Wn,Gn),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),Zn)}_sanitizeAndSetContent(t,e,n){const r=W.findOne(n,t);e||!r?this.setElementContent(r,e):r.remove()}setElementContent(t,e){if(null!==t)return o(e)?(e=s(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Vn(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return Hn[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(t=>{if("click"===t)D.on(this._element,this.constructor.Event.CLICK,this._config.selector,t=>this.toggle(t));else if("manual"!==t){const e=t===Xn?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===Xn?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;D.on(this._element,e,this._config.selector,t=>this._enter(t)),D.on(this._element,n,this._config.selector,t=>this._leave(t))}}),this._hideModalHandler=()=>{this._element&&this.hide()},D.on(this._element.closest(".modal"),Kn,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?"focus":Xn]=!0),e.getTipElement().classList.contains(Gn)||e._hoverState===Yn?e._hoverState=Yn:(clearTimeout(e._timeout),e._hoverState=Yn,e._config.delay&&e._config.delay.show?e._timeout=setTimeout(()=>{e._hoverState===Yn&&e.show()},e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?"focus":Xn]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e._config.delay&&e._config.delay.hide?e._timeout=setTimeout(()=>{"out"===e._hoverState&&e.hide()},e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=U.getDataAttributes(this._element);return Object.keys(e).forEach(t=>{Bn.has(t)&&delete e[t]}),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:s(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),a(zn,t,this.constructor.DefaultType),t.sanitize&&(t.template=Vn(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),n=t.getAttribute("class").match(e);null!==n&&n.length>0&&n.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each((function(){const e=Qn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}g(Qn);const Jn={...Qn.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},tr={...Qn.DefaultType,content:"(string|element|function)"},er={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class nr extends Qn{static get Default(){return Jn}static get NAME(){return"popover"}static get Event(){return er}static get DefaultType(){return tr}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(t,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(t){return this.each((function(){const e=nr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}g(nr);const rr="scrollspy",ir={offset:10,method:"auto",target:""},or={offset:"number",method:"string",target:"(string|element)"},sr="active",ar=".nav-link, .list-group-item, .dropdown-item",lr="position";class ur extends F{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,D.on(this._scrollElement,"scroll.bs.scrollspy",()=>this._process()),this.refresh(),this._process()}static get Default(){return ir}static get NAME(){return rr}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":lr,e="auto"===this._config.method?t:this._config.method,r=e===lr?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),W.find(ar,this._config.target).map(t=>{const i=n(t),o=i?W.findOne(i):null;if(o){const t=o.getBoundingClientRect();if(t.width||t.height)return[U[e](o).top+r,i]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){D.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(t){return(t={...ir,...U.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target=s(t.target)||document.documentElement,a(rr,t,or),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t`${e}[data-bs-target="${t}"],${e}[href="${t}"]`),n=W.findOne(e.join(","),this._config.target);n.classList.add(sr),n.classList.contains("dropdown-item")?W.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add(sr):W.parents(n,".nav, .list-group").forEach(t=>{W.prev(t,".nav-link, .list-group-item").forEach(t=>t.classList.add(sr)),W.prev(t,".nav-item").forEach(t=>{W.children(t,".nav-link").forEach(t=>t.classList.add(sr))})}),D.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){W.find(ar,this._config.target).filter(t=>t.classList.contains(sr)).forEach(t=>t.classList.remove(sr))}static jQueryInterface(t){return this.each((function(){const e=ur.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}D.on(window,"load.bs.scrollspy.data-api",()=>{W.find('[data-bs-spy="scroll"]').forEach(t=>new ur(t))}),g(ur);const cr="active",dr=".active",hr=":scope > li > .active";class pr extends F{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(cr))return;let t;const e=r(this._element),n=this._element.closest(".nav, .list-group");if(n){const e="UL"===n.nodeName||"OL"===n.nodeName?hr:dr;t=W.find(e,n),t=t[t.length-1]}const i=t?D.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(D.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==i&&i.defaultPrevented)return;this._activate(this._element,n);const o=()=>{D.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),D.trigger(this._element,"shown.bs.tab",{relatedTarget:t})};e?this._activate(e,e.parentNode,o):o()}_activate(t,e,n){const r=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?W.children(e,dr):W.find(hr,e))[0],i=n&&r&&r.classList.contains("fade"),o=()=>this._transitionComplete(t,r,n);r&&i?(r.classList.remove("show"),this._queueCallback(o,t,!0)):o()}_transitionComplete(t,e,n){if(e){e.classList.remove(cr);const t=W.findOne(":scope > .dropdown-menu .active",e.parentNode);t&&t.classList.remove(cr),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(cr),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),h(t),t.classList.contains("fade")&&t.classList.add("show");let r=t.parentNode;if(r&&"LI"===r.nodeName&&(r=r.parentNode),r&&r.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&W.find(".dropdown-toggle",e).forEach(t=>t.classList.add(cr)),t.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(t){return this.each((function(){const e=pr.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}D.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),u(this)||pr.getOrCreateInstance(this).show()})),g(pr);const fr="show",mr="showing",gr={animation:"boolean",autohide:"boolean",delay:"number"},vr={animation:!0,autohide:!0,delay:5e3};class yr extends F{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return gr}static get Default(){return vr}static get NAME(){return"toast"}show(){D.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),h(this._element),this._element.classList.add(fr),this._element.classList.add(mr),this._queueCallback(()=>{this._element.classList.remove(mr),D.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this._element.classList.contains(fr)&&(D.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(mr),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(mr),this._element.classList.remove(fr),D.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(fr)&&this._element.classList.remove(fr),super.dispose()}_getConfig(t){return t={...vr,...U.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},a("toast",t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){D.on(this._element,"mouseover.bs.toast",t=>this._onInteraction(t,!0)),D.on(this._element,"mouseout.bs.toast",t=>this._onInteraction(t,!1)),D.on(this._element,"focusin.bs.toast",t=>this._onInteraction(t,!0)),D.on(this._element,"focusout.bs.toast",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=yr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return V(yr),g(yr),{Alert:z,Button:q,Carousel:it,Collapse:ft,Dropdown:on,Modal:Pn,Offcanvas:jn,Popover:nr,ScrollSpy:ur,Tab:pr,Toast:yr,Tooltip:Qn}})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSHeader=e():t.HSHeader=e()}(window,(function(){return d={"./src/js/hs-header.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return HSHeader; });\n/* harmony import */ var _observers_sticky__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./observers/sticky */ \"./src/js/observers/sticky.js\");\n/* harmony import */ var _observers_moment_show_hide__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./observers/moment-show-hide */ \"./src/js/observers/moment-show-hide.js\");\n/* harmony import */ var _observers_show_hide__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./observers/show-hide */ \"./src/js/observers/show-hide.js\");\n/* harmony import */ var _observers_hide_section__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./observers/hide-section */ \"./src/js/observers/hide-section.js\");\n/* harmony import */ var _observers_has_hidden_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./observers/has-hidden-element */ \"./src/js/observers/has-hidden-element.js\");\n/* harmony import */ var _observers_floating__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./observers/floating */ \"./src/js/observers/floating.js\");\n/* harmony import */ var _observers_without_behavior__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./observers/without-behavior */ \"./src/js/observers/without-behavior.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*\r\n* HSHeader Plugin\r\n* @version: 3.0.0 (Mon, 25 Mar 2021)\r\n* @author: HtmlStream\r\n* @event-namespace: .HSHeader\r\n* @license: Htmlstream Libraries (https://htmlstream.com/)\r\n* Copyright 2019 Htmlstream\r\n*/\n// Sticky\n // Moment Show / Hide\n\n // Show / Hide\n\n // Hide Section\n\n // Has Hidden Element\n\n // Floating\n\n // Without Behavior\n\n\n\nvar HSHeader = /*#__PURE__*/function () {\n function HSHeader(el, config, observers) {\n _classCallCheck(this, HSHeader);\n\n this.element = typeof el === \"string\" ? document.querySelector(el) : el;\n this.config = config;\n this.observers = observers && Object.prototype.toString.call(observers) === '[object Object]' ? observers : {};\n this.viewport = 'xs';\n this.defaults = {\n fixMoment: 0,\n fixMomentClasses: null,\n fixMomentExclude: null,\n fixEffect: 'slide',\n breakpoint: 'lg',\n breakpointsMap: {\n 'md': 768,\n 'sm': 576,\n 'lg': 992,\n 'xl': 1200\n },\n effectCompensation: false,\n effectCompensationStartClass: false,\n effectCompensationEndClass: false\n };\n }\n\n _createClass(HSHeader, [{\n key: \"init\",\n value: function init() {\n var self = this,\n element = this.element;\n var dataSettings = element.hasAttribute('data-hs-header-options') ? JSON.parse(element.getAttribute('data-hs-header-options')) : {};\n if (!element || element.hasAttribute('HSHeader')) return;\n this.config = Object.assign({}, this.defaults, dataSettings, this.config);\n\n this._detectObservers();\n\n this.fixMediaDifference(this.element);\n this.checkViewport();\n onScroll();\n document.addEventListener('scroll', onScroll);\n onResize();\n window.addEventListener('resize', onResize);\n\n function onScroll() {\n window.HSHeader = null;\n\n if (window.pageYOffset < self.config.fixMoment - 100 && self.config.effectCompensation === true) {\n element.style.top = -window.pageYOffset;\n element.classList.add(self.config.effectCompensationStartClass);\n element.classList.remove(self.config.effectCompensationEndClass);\n } else if (self.config.effectCompensation === true) {\n element.style.top = 0;\n element.classList.add(self.config.effectCompensationEndClass);\n element.classList.remove(self.config.effectCompensationStartClass);\n }\n\n if (element.hasAttribute('HSHeader')) {\n self.notify();\n }\n\n element.setAttribute('HSHeader', true);\n }\n\n function onResize() {\n if (self.resizeTimeOutId) clearTimeout(self.resizeTimeOutId);\n self.resizeTimeOutId = setTimeout(function () {\n // self.checkViewport()\n self.update();\n }, 100);\n }\n\n return this.element;\n }\n }, {\n key: \"header\",\n value: function header(element, config, observers) {\n if (!element || !element.length) return;\n this.element = element;\n this.config = config;\n this.observers = observers && $.isPlainObject(observers) ? observers : {};\n this.viewport = 'xs';\n this.checkViewport();\n }\n }, {\n key: \"_detectObservers\",\n value: function _detectObservers() {\n if (!this.element) return;\n var observers = this.observers = {\n 'xs': [],\n 'sm': [],\n 'md': [],\n 'lg': [],\n 'xl': []\n };\n /* ------------------------ xs -------------------------*/\n // Has Hidden Element\n\n if (this.element.classList.contains('navbar-has-hidden-element')) {\n observers['xs'].push(new _observers_has_hidden_element__WEBPACK_IMPORTED_MODULE_4__[\"default\"](this.element).init());\n } // Sticky top\n\n\n if (this.element.classList.contains('navbar-sticky-top')) {\n if (this.element.classList.contains('navbar-show-hide')) {\n observers['xs'].push(new _observers_moment_show_hide__WEBPACK_IMPORTED_MODULE_1__[\"default\"](this.element).init());\n } else if (this.element.classList.contains('navbar-toggle')) {\n observers['xs'].push(new _observers_hide_section__WEBPACK_IMPORTED_MODULE_3__[\"default\"](this.element).init());\n }\n\n observers['xs'].push(new _observers_sticky__WEBPACK_IMPORTED_MODULE_0__[\"default\"](this.element).init());\n } // Floating\n\n\n if (this.element.classList.contains('navbar-floating')) {\n observers['xs'].push(new _observers_floating__WEBPACK_IMPORTED_MODULE_5__[\"default\"](this.element).init());\n }\n\n if (this.element.classList.contains('navbar-invulnerable')) {\n observers['xs'].push(new _observers_without_behavior__WEBPACK_IMPORTED_MODULE_6__[\"default\"](this.element).init());\n } // Abs top & Static\n\n\n if (this.element.classList.contains('navbar-absolute-top') || this.element.classList.contains('navbar-static')) {\n if (this.element.classList.contains('navbar-show-hide')) {\n observers['xs'].push(new _observers_show_hide__WEBPACK_IMPORTED_MODULE_2__[\"default\"](this.element, this.config).init());\n }\n }\n\n return observers;\n }\n }, {\n key: \"fixMediaDifference\",\n value: function fixMediaDifference(element) {\n if (!element || !element.length || !element.filter(function (el) {\n return el.closest('[class*=\"navbar-side\"]');\n }).length) return;\n var toggleable;\n\n if (element.classList.contains('navbar-side-left-xl') || element.classList.contains('navbar-side-right-xl')) {\n toggleable = element.querySelector('.navbar-expand-xl');\n\n if (toggleable) {\n toggleable.classList.remove('navbar-expand-xl');\n toggleable.classList.add('navbar-expand-lg');\n }\n } else if (element.classList.contains('navbar-side-left-lg') || element.classList.contains('navbar-side-right-lg')) {\n toggleable = element.querySelector('.navbar-expand-lg');\n\n if (toggleable) {\n toggleable.classList.remove('navbar-expand-lg');\n toggleable.classList.add('navbar-expand-md');\n }\n } else if (element.classList.contains('navbar-side-left-md') || element.classList.contains('navbar-side-right-md')) {\n toggleable = element.querySelector('.navbar-expand-md');\n\n if (toggleable) {\n toggleable.classList.remove('navbar-expand-md');\n toggleable.classList.add('navbar-expand-sm');\n }\n } else if (element.classList.contains('navbar-side-left-sm') || element.classList.contains('navbar-side-right-sm')) {\n toggleable = element.querySelector('.navbar-expand-sm');\n\n if (toggleable) {\n toggleable.classList.remove('navbar-expand-sm');\n toggleable.classList.add('navbar-expand');\n }\n }\n }\n }, {\n key: \"checkViewport\",\n value: function checkViewport() {\n if (window.innerWidth > this.config.breakpointsMap['sm'] && this.observers['sm'].length) {\n this.prevViewport = this.viewport;\n this.viewport = 'sm';\n\n if (this.config.fixMoment && window.pageYOffset > this.config.fixMoment) {\n if (typeof this.config.breakpointsMap['sm'] === 'undefined') {\n this.element.classList.remove('navbar-scrolled');\n } else {\n this.element.classList.add('navbar-scrolled');\n }\n }\n\n return this;\n }\n\n if (window.innerWidth > this.config.breakpointsMap['md'] && this.observers['md'].length) {\n this.prevViewport = this.viewport;\n this.viewport = 'md';\n\n if (this.config.fixMoment && window.pageYOffset > this.config.fixMoment) {\n if (typeof this.config.breakpointsMap['md'] === 'undefined') {\n this.element.classList.remove('navbar-scrolled');\n } else {\n this.element.classList.add('navbar-scrolled');\n }\n }\n\n return this;\n }\n\n if (window.innerWidth > this.config.breakpointsMap['lg'] && this.observers['lg'].length) {\n this.prevViewport = this.viewport;\n this.viewport = 'lg';\n\n if (this.config.fixMoment && window.pageYOffset > this.config.fixMoment) {\n if (typeof this.config.breakpointsMap['lg'] === 'undefined') {\n this.element.classList.remove('navbar-scrolled');\n } else {\n this.element.classList.add('navbar-scrolled');\n }\n }\n\n return this;\n }\n\n if (window.innerWidth > this.config.breakpointsMap['xl'] && this.observers['xl'].length) {\n this.prevViewport = this.viewport;\n this.viewport = 'xl';\n\n if (this.config.fixMoment && window.pageYOffset > this.config.fixMoment) {\n if (typeof this.config.breakpointsMap['xl'] === 'undefined') {\n this.element.classList.remove('navbar-scrolled');\n } else {\n this.element.classList.add('navbar-scrolled');\n }\n }\n\n return this;\n }\n\n if (this.prevViewport) this.prevViewport = this.viewport;\n\n if (this.config.fixMoment && window.pageYOffset > this.config.fixMoment) {\n if (typeof this.config.breakpointsMap['xs'] === 'undefined') {\n this.element.classList.remove('navbar-scrolled');\n } else {\n this.element.classList.add('navbar-scrolled');\n }\n }\n\n this.viewport = 'xs';\n return this;\n }\n }, {\n key: \"notify\",\n value: function notify() {\n if (this.prevViewport) {\n this.observers[this.prevViewport].forEach(function (observer) {\n observer.destroy();\n });\n this.prevViewport = null;\n }\n\n this.observers[this.viewport].forEach(function (observer) {\n observer.check();\n });\n return this;\n }\n }, {\n key: \"update\",\n value: function update() {\n for (var viewport in this.observers) {\n this.observers[viewport].forEach(function (observer) {\n observer.destroy();\n });\n }\n\n this.prevViewport = null;\n this.observers[this.viewport].forEach(function (observer) {\n observer.reinit();\n });\n return this;\n }\n }]);\n\n return HSHeader;\n}();\n\n\n\n//# sourceURL=webpack://HSHeader/./src/js/hs-header.js?")},"./src/js/observers/abstract.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSAbstractObserver; });\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar HSAbstractObserver = /*#__PURE__*/function () {\n function HSAbstractObserver(element) {\n _classCallCheck(this, HSAbstractObserver);\n\n this.element = element;\n this.defaultState = true;\n }\n\n _createClass(HSAbstractObserver, [{\n key: "reinit",\n value: function reinit() {\n this.destroy().init().check();\n }\n }]);\n\n return HSAbstractObserver;\n}();\n\n\n\n//# sourceURL=webpack://HSHeader/./src/js/observers/abstract.js?')},"./src/js/observers/floating.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSHeaderFloatingObserver; });\n/* harmony import */ var _abstract__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstract */ "./src/js/observers/abstract.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\nvar HSHeaderFloatingObserver = /*#__PURE__*/function (_HSAbstractObserver) {\n _inherits(HSHeaderFloatingObserver, _HSAbstractObserver);\n\n var _super = _createSuper(HSHeaderFloatingObserver);\n\n function HSHeaderFloatingObserver(element) {\n var _this;\n\n _classCallCheck(this, HSHeaderFloatingObserver);\n\n _this = _super.call(this, element);\n _this.dataSettings = _this.element.hasAttribute(\'data-hs-header-options\') ? JSON.parse(_this.element.getAttribute(\'data-hs-header-options\')) : {};\n return _this;\n }\n\n _createClass(HSHeaderFloatingObserver, [{\n key: "init",\n value: function init() {\n this.offset = this.element.offsetTop;\n this.sections = this.element.querySelectorAll(\'.navbar-section\');\n this.defaultState = true;\n return this;\n }\n }, {\n key: "destroy",\n value: function destroy() {\n this.toDefaultState();\n return this;\n }\n }, {\n key: "check",\n value: function check() {\n var docScrolled = window.pageYOffset;\n\n if (docScrolled > this.offset && this.defaultState) {\n this.changeState();\n } else if (docScrolled <= this.offset && !this.defaultState) {\n this.toDefaultState();\n }\n\n return this;\n }\n }, {\n key: "changeState",\n value: function changeState() {\n this.element.classList.add(\'navbar-scrolled\');\n this.element.classList.add(this.dataSettings.fixMomentClasses);\n this.element.classList.remove(this.dataSettings.fixMomentExclude);\n\n if (this.sections.length) {\n this.sections.forEach(function ($section) {\n var dataSettings = $section.hasAttribute(\'data-hs-navbar-item-options\') ? JSON.parse($section.getAttribute(\'data-hs-navbar-item-options\')) : {};\n $section.classList.add(dataSettings.fixMomentClasses);\n $section.classList.remove(dataSettings.fixMomentExclude);\n });\n }\n\n this.defaultState = !this.defaultState;\n return this;\n }\n }, {\n key: "toDefaultState",\n value: function toDefaultState() {\n this.element.classList.remove(\'navbar-scrolled\');\n this.element.classList.remove(this.dataSettings.fixMomentClasses);\n this.element.classList.add(this.dataSettings.fixMomentExclude);\n\n if (this.sections.length) {\n this.sections.forEach(function ($section) {\n var dataSettings = $section.hasAttribute(\'data-hs-navbar-item-options\') ? JSON.parse($section.getAttribute(\'data-hs-navbar-item-options\')) : {};\n $section.classList.add(dataSettings.fixMomentClasses);\n $section.classList.remove(dataSettings.fixMomentExclude);\n });\n }\n\n this.defaultState = !this.defaultState;\n return this;\n }\n }]);\n\n return HSHeaderFloatingObserver;\n}(_abstract__WEBPACK_IMPORTED_MODULE_0__["default"]);\n\n\n\n//# sourceURL=webpack://HSHeader/./src/js/observers/floating.js?')},"./src/js/observers/has-hidden-element.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSHeaderHasHiddenElement; });\n/* harmony import */ var _abstract__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstract */ "./src/js/observers/abstract.js");\n/* harmony import */ var _utils_slideUp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/slideUp */ "./src/js/utils/slideUp.js");\n/* harmony import */ var _utils_slideDown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/slideDown */ "./src/js/utils/slideDown.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\nvar HSHeaderHasHiddenElement = /*#__PURE__*/function (_HSAbstractObserver) {\n _inherits(HSHeaderHasHiddenElement, _HSAbstractObserver);\n\n var _super = _createSuper(HSHeaderHasHiddenElement);\n\n function HSHeaderHasHiddenElement(element) {\n var _this;\n\n _classCallCheck(this, HSHeaderHasHiddenElement);\n\n _this = _super.call(this, element);\n _this.config = {\n animated: true\n };\n _this.dataSettings = _this.element.hasAttribute(\'data-hs-header-options\') ? JSON.parse(_this.element.getAttribute(\'data-hs-header-options\')) : {};\n return _this;\n }\n\n _createClass(HSHeaderHasHiddenElement, [{\n key: "init",\n value: function init() {\n this.offset = isFinite(this.dataSettings.fixMoment) ? this.dataSettings.fixMoment : 5;\n this.elements = this.element.querySelectorAll(\'.navbar-hidden-element\');\n this.defaultState = true;\n return this;\n }\n }, {\n key: "destroy",\n value: function destroy() {\n this.toDefaultState();\n return this;\n }\n }, {\n key: "check",\n value: function check() {\n if (!this.elements.length) return this;\n var docScrolled = window.pageYOffset;\n\n if (docScrolled > this.offset && this.defaultState) {\n this.changeState();\n } else if (docScrolled <= this.offset && !this.defaultState) {\n this.toDefaultState();\n }\n\n return this;\n }\n }, {\n key: "changeState",\n value: function changeState() {\n if (this.config.animated) {\n this.elements.forEach(function (item) {\n Object(_utils_slideUp__WEBPACK_IMPORTED_MODULE_1__["default"])(item);\n });\n } else {\n this.elements.forEach(function (item) {\n item.style.display = \'none\';\n });\n }\n\n this.defaultState = !this.defaultState;\n return this;\n }\n }, {\n key: "toDefaultState",\n value: function toDefaultState() {\n if (this.config.animated) {\n this.elements.forEach(function (item) {\n Object(_utils_slideDown__WEBPACK_IMPORTED_MODULE_2__["default"])(item);\n });\n } else {\n this.elements.forEach(function (item) {\n item.style.display = \'block\';\n });\n }\n\n this.defaultState = !this.defaultState;\n return this;\n }\n }]);\n\n return HSHeaderHasHiddenElement;\n}(_abstract__WEBPACK_IMPORTED_MODULE_0__["default"]);\n\n\n\n//# sourceURL=webpack://HSHeader/./src/js/observers/has-hidden-element.js?')},"./src/js/observers/hide-section.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSHeaderHideSectionObserver; });\n/* harmony import */ var _abstract__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstract */ "./src/js/observers/abstract.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\nvar HSHeaderHideSectionObserver = /*#__PURE__*/function (_HSAbstractObserver) {\n _inherits(HSHeaderHideSectionObserver, _HSAbstractObserver);\n\n var _super = _createSuper(HSHeaderHideSectionObserver);\n\n function HSHeaderHideSectionObserver(element) {\n var _this;\n\n _classCallCheck(this, HSHeaderHideSectionObserver);\n\n _this = _super.call(this, element);\n _this.dataSettings = _this.element.hasAttribute(\'data-hs-header-options\') ? JSON.parse(_this.element.getAttribute(\'data-hs-header-options\')) : {};\n return _this;\n }\n\n _createClass(HSHeaderHideSectionObserver, [{\n key: "init",\n value: function init() {\n this.offset = isFinite(this.dataSettings.fixMoment) ? this.dataSettings.fixMoment : 5;\n this.section = this.element.querySelector(\'.navbar-section-hidden\');\n this.defaultState = true;\n this.sectionHeight = this.section ? this.section.offsetHeight : 0;\n return this;\n }\n }, {\n key: "destroy",\n value: function destroy() {\n if (this.section) {\n this.element.transition = \'margin-top .5s\';\n this.element.style.marginTop = 0;\n }\n\n return this;\n }\n }, {\n key: "check",\n value: function check() {\n if (!this.section) return this;\n var docScrolled = window.pageYOffset;\n\n if (docScrolled > this.offset && this.defaultState) {\n this.changeState();\n } else if (docScrolled <= this.offset && !this.defaultState) {\n this.toDefaultState();\n }\n\n return this;\n }\n }, {\n key: "changeState",\n value: function changeState() {\n var self = this;\n this.element.transition = \'margin-top .5s\';\n this.element.style.marginTop = self.sectionHeight * -1 - 1 + \'px\';\n this.defaultState = !this.defaultState;\n return this;\n }\n }, {\n key: "toDefaultState",\n value: function toDefaultState() {\n this.element.transition = \'margin-top .5s\';\n this.element.style.marginTop = 0;\n this.defaultState = !this.defaultState;\n return this;\n }\n }]);\n\n return HSHeaderHideSectionObserver;\n}(_abstract__WEBPACK_IMPORTED_MODULE_0__["default"]);\n\n\n\n//# sourceURL=webpack://HSHeader/./src/js/observers/hide-section.js?')},"./src/js/observers/moment-show-hide.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSHeaderMomentShowHideObserver; });\n/* harmony import */ var _abstract__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstract */ "./src/js/observers/abstract.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\nvar HSHeaderMomentShowHideObserver = /*#__PURE__*/function (_HSAbstractObserver) {\n _inherits(HSHeaderMomentShowHideObserver, _HSAbstractObserver);\n\n var _super = _createSuper(HSHeaderMomentShowHideObserver);\n\n function HSHeaderMomentShowHideObserver(element) {\n var _this;\n\n _classCallCheck(this, HSHeaderMomentShowHideObserver);\n\n _this = _super.call(this, element);\n _this.dataSettings = _this.element.hasAttribute(\'data-hs-header-options\') ? JSON.parse(_this.element.getAttribute(\'data-hs-header-options\')) : {};\n return _this;\n }\n\n _createClass(HSHeaderMomentShowHideObserver, [{\n key: "init",\n value: function init() {\n this.direction = \'down\';\n this.delta = 0;\n this.defaultState = true;\n this.offset = isFinite(this.dataSettings.fixMoment) && this.dataSettings.fixMoment !== 0 ? this.dataSettings.fixMoment : 5;\n this.effect = this.dataSettings.fixEffect ? this.dataSettings.fixEffect : \'show-hide\';\n return this;\n }\n }, {\n key: "destroy",\n value: function destroy() {\n this.toDefaultState();\n return this;\n }\n }, {\n key: "checkDirection",\n value: function checkDirection() {\n if (window.pageYOffset > this.delta) {\n this.direction = \'down\';\n } else {\n this.direction = \'up\';\n }\n\n this.delta = window.pageYOffset;\n return this;\n }\n }, {\n key: "toDefaultState",\n value: function toDefaultState() {\n switch (this.effect) {\n case \'slide\':\n this.element.classList.remove(\'navbar-moved-up\');\n break;\n\n case \'fade\':\n this.element.classList.remove(\'navbar-faded\');\n break;\n\n default:\n this.element.classList.remove(\'navbar-invisible\');\n }\n\n this.defaultState = !this.defaultState;\n return this;\n }\n }, {\n key: "changeState",\n value: function changeState() {\n switch (this.effect) {\n case \'slide\':\n this.element.classList.add(\'navbar-moved-up\');\n break;\n\n case \'fade\':\n this.element.classList.add(\'navbar-faded\');\n break;\n\n default:\n this.element.classList.add(\'navbar-invisible\');\n }\n\n this.defaultState = !this.defaultState;\n return this;\n }\n }, {\n key: "check",\n value: function check() {\n var docScrolled = window.pageYOffset;\n this.checkDirection();\n\n if (docScrolled >= this.offset && this.defaultState && this.direction === \'down\') {\n this.changeState();\n } else if (!this.defaultState && this.direction === \'up\') {\n this.toDefaultState();\n }\n\n return this;\n }\n }]);\n\n return HSHeaderMomentShowHideObserver;\n}(_abstract__WEBPACK_IMPORTED_MODULE_0__["default"]);\n\n\n\n//# sourceURL=webpack://HSHeader/./src/js/observers/moment-show-hide.js?')},"./src/js/observers/show-hide.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return HSHeaderShowHideObserver; });\n/* harmony import */ var _abstract__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstract */ \"./src/js/observers/abstract.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\nvar HSHeaderShowHideObserver = /*#__PURE__*/function (_HSAbstractObserver) {\n _inherits(HSHeaderShowHideObserver, _HSAbstractObserver);\n\n var _super = _createSuper(HSHeaderShowHideObserver);\n\n function HSHeaderShowHideObserver(element, config) {\n var _this;\n\n _classCallCheck(this, HSHeaderShowHideObserver);\n\n _this = _super.call(this, element, config);\n _this.dataSettings = _this.element.hasAttribute('data-hs-header-options') ? JSON.parse(_this.element.getAttribute('data-hs-header-options')) : {};\n _this.config = config;\n return _this;\n }\n\n _createClass(HSHeaderShowHideObserver, [{\n key: \"init\",\n value: function init() {\n if (!this.defaultState && window.pageYOffset > this.offset) return this;\n this.defaultState = true;\n this.transitionDuration = parseFloat(getComputedStyle(this.element)['transition-duration'], 10) * 1000;\n this.offset = isFinite(this.dataSettings.fixMoment) && this.dataSettings.fixMoment > this.element.offsetHeight ? this.dataSettings.fixMoment : this.element.offsetHeight + 100;\n this.effect = this.dataSettings.fixEffect ? this.dataSettings.fixEffect : 'show-hide';\n return this;\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n if (!this.defaultState && window.pageYOffset > this.offset) return this;\n this.element.classList.remove('navbar-untransitioned');\n\n this._removeCap();\n\n return this;\n }\n }, {\n key: \"check\",\n value: function check() {\n if (window.pageYOffset > this.element.offsetHeight && !this.capInserted) {\n this._insertCap();\n } else if (window.pageYOffset <= this.element.offsetHeight && this.capInserted) {\n this._removeCap();\n }\n\n if (window.pageYOffset > this.offset && this.defaultState) {\n this.changeState();\n } else if (window.pageYOffset <= this.offset && !this.defaultState) {\n this.toDefaultState();\n }\n }\n }, {\n key: \"changeState\",\n value: function changeState() {\n if (this.config.fixMomentClasses) {\n var _this$element$classLi;\n\n (_this$element$classLi = this.element.classList).add.apply(_this$element$classLi, _toConsumableArray(this.config.fixMomentClasses));\n }\n\n this.element.classList.remove('navbar-untransitioned');\n if (this.animationTimeoutId) clearTimeout(this.animationTimeoutId);\n\n switch (this.effect) {\n case 'fade':\n this.element.classList.remove('navbar-faded');\n break;\n\n case 'slide':\n this.element.classList.remove('navbar-moved-up');\n break;\n\n default:\n this.element.classList.remove('navbar-invisible');\n }\n\n this.defaultState = !this.defaultState;\n }\n }, {\n key: \"toDefaultState\",\n value: function toDefaultState() {\n var self = this;\n\n if (this.config.fixMomentClasses) {\n var _this$element$classLi2;\n\n (_this$element$classLi2 = this.element.classList).remove.apply(_this$element$classLi2, _toConsumableArray(this.config.fixMomentClasses));\n }\n\n this.animationTimeoutId = setTimeout(function () {\n self.element.classList.add('navbar-untransitioned');\n }, this.transitionDuration);\n\n switch (this.effect) {\n case 'fade':\n this.element.classList.add('navbar-faded');\n break;\n\n case 'slide':\n this.element.classList.add('navbar-moved-up');\n break;\n\n default:\n this.element.classList.add('navbar-invisible');\n }\n\n this.defaultState = !this.defaultState;\n }\n }, {\n key: \"_insertCap\",\n value: function _insertCap() {\n this.element.classList.add('navbar-scrolled', 'navbar-untransitioned');\n\n if (this.element.classList.contains('navbar-static')) {\n document.documentElement.style.paddingTop = this.element.offsetHeight;\n }\n\n switch (this.effect) {\n case 'fade':\n this.element.classList.add('navbar-faded');\n break;\n\n case 'slide':\n this.element.classList.add('navbar-moved-up');\n break;\n\n default:\n this.element.classList.add('navbar-invisible');\n }\n\n this.capInserted = true;\n }\n }, {\n key: \"_removeCap\",\n value: function _removeCap() {\n var self = this;\n this.element.classList.remove('navbar-scrolled');\n\n if (this.element.classList.contains('navbar-static')) {\n document.documentElement.style.paddingTop = 0;\n }\n\n if (this.removeCapTimeOutId) clearTimeout(this.removeCapTimeOutId);\n this.removeCapTimeOutId = setTimeout(function () {\n self.element.classList.remove('navbar-moved-up', 'navbar-faded', 'navbar-invisible');\n }, 10);\n this.capInserted = false;\n }\n }]);\n\n return HSHeaderShowHideObserver;\n}(_abstract__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n\n\n\n//# sourceURL=webpack://HSHeader/./src/js/observers/show-hide.js?")},"./src/js/observers/sticky.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSHeaderStickObserver; });\n/* harmony import */ var _abstract__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstract */ "./src/js/observers/abstract.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\nvar HSHeaderStickObserver = /*#__PURE__*/function (_HSAbstractObserver) {\n _inherits(HSHeaderStickObserver, _HSAbstractObserver);\n\n var _super = _createSuper(HSHeaderStickObserver);\n\n function HSHeaderStickObserver(element) {\n _classCallCheck(this, HSHeaderStickObserver);\n\n return _super.call(this, element);\n }\n\n _createClass(HSHeaderStickObserver, [{\n key: "init",\n value: function init() {\n this.defaultState = true;\n this.offset = this.element.offsetTop;\n return this;\n }\n }, {\n key: "destroy",\n value: function destroy() {\n this.toDefaultState();\n return this;\n }\n }, {\n key: "check",\n value: function check() {\n var docScrolled = window.pageYOffset;\n\n if (docScrolled > this.offset && this.defaultState) {\n this.changeState();\n } else if (docScrolled <= this.offset && !this.defaultState) {\n this.toDefaultState();\n }\n\n return this;\n }\n }, {\n key: "changeState",\n value: function changeState() {\n this.element.classList.add(\'navbar-scrolled\');\n this.defaultState = !this.defaultState;\n return this;\n }\n }, {\n key: "toDefaultState",\n value: function toDefaultState() {\n this.element.classList.remove(\'navbar-scrolled\');\n this.defaultState = !this.defaultState;\n return this;\n }\n }]);\n\n return HSHeaderStickObserver;\n}(_abstract__WEBPACK_IMPORTED_MODULE_0__["default"]);\n\n\n\n//# sourceURL=webpack://HSHeader/./src/js/observers/sticky.js?')},"./src/js/observers/without-behavior.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSHeaderWithoutBehaviorObserver; });\n/* harmony import */ var _abstract__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstract */ "./src/js/observers/abstract.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\nvar HSHeaderWithoutBehaviorObserver = /*#__PURE__*/function (_HSAbstractObserver) {\n _inherits(HSHeaderWithoutBehaviorObserver, _HSAbstractObserver);\n\n var _super = _createSuper(HSHeaderWithoutBehaviorObserver);\n\n function HSHeaderWithoutBehaviorObserver(element) {\n _classCallCheck(this, HSHeaderWithoutBehaviorObserver);\n\n return _super.call(this, element);\n }\n\n _createClass(HSHeaderWithoutBehaviorObserver, [{\n key: "init",\n value: function init() {\n return this;\n }\n }, {\n key: "check",\n value: function check() {\n return this;\n }\n }, {\n key: "destroy",\n value: function destroy() {\n return this;\n }\n }, {\n key: "changeState",\n value: function changeState() {\n return this;\n }\n }, {\n key: "toDefaultState",\n value: function toDefaultState() {\n return this;\n }\n }]);\n\n return HSHeaderWithoutBehaviorObserver;\n}(_abstract__WEBPACK_IMPORTED_MODULE_0__["default"]);\n\n\n\n//# sourceURL=webpack://HSHeader/./src/js/observers/without-behavior.js?')},"./src/js/utils/slideDown.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\nvar slideDown = function slideDown(target) {\n var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;\n target.style.removeProperty('display');\n var display = window.getComputedStyle(target).display;\n if (display === 'none') display = 'block';\n target.style.display = display;\n var height = target.offsetHeight;\n target.style.overflow = 'hidden';\n target.style.height = 0;\n target.style.paddingTop = 0;\n target.style.paddingBottom = 0;\n target.style.marginTop = 0;\n target.style.marginBottom = 0;\n target.offsetHeight;\n target.style.boxSizing = 'border-box';\n target.style.transitionProperty = \"height, margin, padding\";\n target.style.transitionDuration = duration + 'ms';\n target.style.height = height + 'px';\n target.style.removeProperty('padding-top');\n target.style.removeProperty('padding-bottom');\n target.style.removeProperty('margin-top');\n target.style.removeProperty('margin-bottom');\n window.setTimeout(function () {\n target.style.removeProperty('height');\n target.style.removeProperty('overflow');\n target.style.removeProperty('transition-duration');\n target.style.removeProperty('transition-property');\n }, duration);\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (slideDown);\n\n//# sourceURL=webpack://HSHeader/./src/js/utils/slideDown.js?")},"./src/js/utils/slideUp.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\nvar slideUp = function slideUp(target) {\n var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;\n target.style.transitionProperty = 'height, margin, padding';\n target.style.transitionDuration = duration + 'ms';\n target.style.boxSizing = 'border-box';\n target.style.height = target.offsetHeight + 'px';\n target.offsetHeight;\n target.style.overflow = 'hidden';\n target.style.height = 0;\n target.style.paddingTop = 0;\n target.style.paddingBottom = 0;\n target.style.marginTop = 0;\n target.style.marginBottom = 0;\n window.setTimeout(function () {\n target.style.display = 'none';\n target.style.removeProperty('height');\n target.style.removeProperty('padding-top');\n target.style.removeProperty('padding-bottom');\n target.style.removeProperty('margin-top');\n target.style.removeProperty('margin-bottom');\n target.style.removeProperty('overflow');\n target.style.removeProperty('transition-duration');\n target.style.removeProperty('transition-property'); //alert(\"!\");\n }, duration);\n return target;\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (slideUp);\n\n//# sourceURL=webpack://HSHeader/./src/js/utils/slideUp.js?")}},e={},f.m=d,f.c=e,f.d=function(t,e,n){f.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.t=function(t,e){if(1&e&&(t=f(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)f.d(n,r,function(e){return t[e]}.bind(null,r));return n},f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,"a",e),e},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.p="",f(f.s="./src/js/hs-header.js").default;function f(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,f),n.l=!0,n.exports}var d,e})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSMegaMenu=e():t.HSMegaMenu=e()}(window,(function(){return d={"./src/js/hs-mega-menu.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSMegaMenu; });\n/* harmony import */ var _methods_object_assign_deep__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./methods/object-assign-deep */ "./src/js/methods/object-assign-deep.js");\n/* harmony import */ var _methods_object_assign_deep__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_methods_object_assign_deep__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _methods_get_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./methods/get-type */ "./src/js/methods/get-type.js");\n/* harmony import */ var _methods_smart_position__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./methods/smart-position */ "./src/js/methods/smart-position.js");\n/* harmony import */ var _methods_desktop_css_animation_enable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./methods/desktop-css-animation-enable */ "./src/js/methods/desktop-css-animation-enable.js");\n/* harmony import */ var _methods_desktop_mouseenter_event_listener__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./methods/desktop-mouseenter-event-listener */ "./src/js/methods/desktop-mouseenter-event-listener.js");\n/* harmony import */ var _methods_desktop_mouseleave_event_listener__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./methods/desktop-mouseleave-event-listener */ "./src/js/methods/desktop-mouseleave-event-listener.js");\n/* harmony import */ var _methods_desktop_click_event_listener__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./methods/desktop-click-event-listener */ "./src/js/methods/desktop-click-event-listener.js");\n/* harmony import */ var _methods_mobile_click_event_listener__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./methods/mobile-click-event-listener */ "./src/js/methods/mobile-click-event-listener.js");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*\n* HSMegaMenu Plugin\n* @version: 2.0.1 (Sun, 1 Nov 2021)\n* @author: HtmlStream\n* @event-namespace: .HSMegaMenu\n* @license: Htmlstream Libraries (https://htmlstream.com/)\n* Copyright 2021 Htmlstream\n*/\n\n\n\n\n\n\n\n\nvar dataAttributeName = \'data-hs-mega-menu-options\';\nvar defaults = {\n eventType: \'hover\',\n direction: \'horizontal\',\n breakpoint: \'lg\',\n rtl: false,\n isMenuOpened: false,\n sideBarRatio: 1 / 4,\n pageContainer: document.getElementsByTagName(\'body\'),\n mobileSpeed: 400,\n duration: 300,\n delay: 0,\n itemOptions: {\n megaMenuTimeOut: null,\n desktop: {\n animation: \'animated\',\n animationIn: \'slideInUp\',\n animationOut: false,\n position: null,\n maxWidth: null\n }\n },\n classMap: {\n rtl: \'.hs-rtl\',\n reversed: \'.hs-reversed\',\n initialized: \'.hs-menu-initialized\',\n mobileState: \'.hs-mobile-state\',\n invoker: \'.hs-mega-menu-invoker\',\n subMenu: \'.hs-sub-menu\',\n hasSubMenu: \'.hs-has-sub-menu\',\n hasSubMenuActive: \'.hs-sub-menu-opened\',\n megaMenu: \'.hs-mega-menu\',\n hasMegaMenu: \'.hs-has-mega-menu\',\n hasMegaMenuActive: \'.hs-mega-menu-opened\'\n }\n};\n\nvar HSMegaMenu = /*#__PURE__*/function () {\n function HSMegaMenu(el, options, id) {\n _classCallCheck(this, HSMegaMenu);\n\n this.collection = [];\n var that = this;\n var elems;\n\n if (el instanceof HTMLElement) {\n elems = [el];\n } else if (el instanceof Object) {\n elems = el;\n } else {\n elems = document.querySelectorAll(el);\n }\n\n for (var i = 0; i < elems.length; i += 1) {\n that.addToCollection(elems[i], options, id || elems[i].id);\n }\n\n if (!that.collection.length) {\n return false;\n } // initialization calls\n\n\n that._init();\n\n return this;\n }\n\n _createClass(HSMegaMenu, [{\n key: "_init",\n value: function _init() {\n var _this = this;\n\n var that = this;\n\n var _loop = function _loop(i) {\n var _$el = void 0;\n\n var _options = void 0;\n\n if (that.collection[i].hasOwnProperty(\'$initializedEl\')) {\n return "continue";\n }\n\n _$el = that.collection[i].$el;\n _options = that.collection[i].options;\n _options.state = null; // Resolution list\n\n resolutionsList = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n }; // Keycodes\n\n ESC_KEYCODE = 27;\n TAB_KEYCODE = 9;\n ENTER_KEYCODE = 13;\n SPACE_KEYCODE = 32;\n ARROW_UP_KEYCODE = 38;\n ARROW_DOWN_KEYCODE = 40;\n ARROW_RIGHT_KEYCODE = 39;\n ARROW_LEFT_KEYCODE = 37; // Prevent scroll\n\n var preventScroll = function preventScroll(keycode) {\n return function (e) {\n if (e.which === keycode) {\n e.preventDefault();\n }\n };\n }; // Get Item Settings\n\n\n var getItemSettings = function getItemSettings($el) {\n if (!$el) return false;\n var dataSettings = $el.hasAttribute(\'data-hs-mega-menu-item-options\') ? JSON.parse($el.getAttribute(\'data-hs-mega-menu-item-options\')) : {},\n itemSettings = _options.itemOptions;\n itemSettings = Object.assign({}, itemSettings, dataSettings);\n\n itemSettings.activeItemClass = function () {\n return Object(_methods_get_type__WEBPACK_IMPORTED_MODULE_1__["default"])($el, _options) === \'mega-menu\' ? _options.classMap.hasMegaMenuActive : _options.classMap.hasSubMenuActive;\n };\n\n return itemSettings;\n };\n\n var stateDetection = function stateDetection() {\n if (window.innerWidth < resolutionsList[_options.breakpoint]) {\n _this.state = \'mobile\';\n } else {\n _this.state = \'desktop\';\n }\n };\n\n stateDetection(); // State Detection\n\n window.addEventListener(\'resize\', function () {\n stateDetection();\n }); // Set RTL\n\n if (_options.rtl) {\n _$el.addClass(_options.classMap.rtl.slice(1));\n } // Init Menu Items\n\n\n _$el.querySelectorAll("".concat(_options.classMap.hasMegaMenu, ", ").concat(_options.classMap.hasSubMenu)).forEach(function (el) {\n _this.MegaMenuItem(el, el.querySelector(_options.classMap[Object(_methods_get_type__WEBPACK_IMPORTED_MODULE_1__["default"])(el, _options) === \'mega-menu\' ? \'megaMenu\' : \'subMenu\']), _options);\n }); // Add Initialized Classes\n\n\n _$el.classList.add("".concat(_options.classMap.initialized.slice(1)), "hs-menu-".concat(_options.direction)); // *****\n // Start: ACCESSIBILITY\n // *****\n\n\n myPreventScrollSpace = preventScroll(SPACE_KEYCODE);\n myPreventScrollDown = preventScroll(ARROW_DOWN_KEYCODE);\n myPreventScrollUp = preventScroll(ARROW_UP_KEYCODE);\n var $items = void 0,\n index = void 0,\n state = null;\n document.addEventListener(\'keyup\', function () {\n window.removeEventListener(\'keydown\', myPreventScrollSpace, false);\n window.removeEventListener(\'keydown\', myPreventScrollUp, false);\n window.removeEventListener(\'keydown\', myPreventScrollDown, false);\n });\n document.addEventListener(\'keyup\', function (e) {\n if (!e.target.closest("".concat(_options.classMap.hasMegaMenu, ", ").concat(_options.classMap.hasSubMenu))) return false; //\n // Start: PREVENT SCROLL\n //\n\n e.preventDefault();\n e.stopPropagation();\n window.addEventListener(\'keydown\', myPreventScrollSpace, false);\n window.addEventListener(\'keydown\', myPreventScrollUp, false);\n window.addEventListener(\'keydown\', myPreventScrollDown, false); //\n // End: PREVENT SCROLL\n //\n //\n // Start: ELEMENT DETECTION\n //\n\n if (e.target.classList.contains(_options.classMap.invoker.slice(1)) && !e.target.closest(["".concat(_options.classMap.subMenu, ", ").concat(_options.classMap.megaMenu)])) {\n // console.log(\'Top level\');\n if (state !== \'topLevel\') {\n state = \'topLevel\';\n }\n\n $items = [].slice.call(e.target.parentNode.parentNode.querySelectorAll(_options.classMap.invoker)).filter(function (item) {\n if (!item.closest(["".concat(_options.classMap.subMenu, ", ").concat(_options.classMap.megaMenu)])) {\n return item.offsetParent !== null;\n }\n });\n } else if (e.target.closest(["".concat(_options.classMap.subMenu, ", ").concat(_options.classMap.megaMenu)]) && e.target.parentNode.querySelector("".concat(_options.classMap.subMenu, ", ").concat(_options.classMap.megaMenu))) {\n // console.log(\'Has submenu and not top level\');\n if (state !== \'hasSubmenu\') {\n state = \'hasSubmenu\';\n }\n\n $items = [].slice.call(e.target.parentNode.parentNode.querySelectorAll(_options.classMap.invoker)).filter(function (item) {\n return item.offsetParent !== null;\n });\n } else {\n // console.log(\'Just element\');\n if (state !== \'simple\') {\n state = \'simple\';\n }\n\n $items = [].slice.call(e.target.closest(["".concat(_options.classMap.subMenu, ", ").concat(_options.classMap.megaMenu)]).querySelectorAll(\'a, button\')).filter(function (item) {\n return item.offsetParent !== null;\n });\n } //\n // End: ELEMENT DETECTION\n //\n\n\n index = $items.indexOf(e.target); //\n // Start: TOP LEVEL\n //\n // Left\n\n if (state === \'topLevel\' && e.which === ARROW_LEFT_KEYCODE && index > 0) {\n index--;\n } // Right\n\n\n if (state === \'topLevel\' && e.which === ARROW_RIGHT_KEYCODE && index < $items.length - 1) {\n index++;\n } // Open Sub\n\n\n if (state === \'topLevel\' && (e.which === ARROW_DOWN_KEYCODE || e.which === SPACE_KEYCODE || e.which === ENTER_KEYCODE)) {\n if (!e.target.parentNode.querySelector(["".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn)])) {\n Object(_methods_desktop_mouseenter_event_listener__WEBPACK_IMPORTED_MODULE_4__["default"])(e.target.parentNode, e.target.parentNode.querySelector(["".concat(_options.classMap.subMenu, ", ").concat(_options.classMap.megaMenu)]), _options, getItemSettings(e.target.parentNode))();\n } else if (e.target.parentNode.querySelector(["".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn)])) {\n e.target.parentNode.querySelector(["".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn)]).querySelectorAll(\'a\')[0].focus();\n return;\n }\n } // Close Siblings\n\n\n if (state === \'topLevel\' && (e.which === TAB_KEYCODE || e.which === ARROW_RIGHT_KEYCODE || e.which === ARROW_LEFT_KEYCODE) && e.target.closest("".concat(_options.classMap.hasMegaMenu, ", ").concat(_options.classMap.hasSubMenu)).parentNode.querySelector("".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn))) {\n Object(_methods_desktop_mouseleave_event_listener__WEBPACK_IMPORTED_MODULE_5__["default"])(e.target.closest("".concat(_options.classMap.hasMegaMenu, ", ").concat(_options.classMap.hasSubMenu)), e.target.closest("".concat(_options.classMap.hasMegaMenu, ", ").concat(_options.classMap.hasSubMenu)).parentNode.querySelector("".concat(_options.classMap.hasMegaMenuActive, " > ").concat(_options.classMap.megaMenu, ", ").concat(_options.classMap.hasSubMenuActive, " > ").concat(_options.classMap.subMenu)), _options, getItemSettings(e.target.closest("".concat(_options.classMap.hasMegaMenu, ", ").concat(_options.classMap.hasSubMenu))))();\n } //\n // End: TOP LEVEL\n //\n //\n // Start: HAS SUB-MENU BUT NOT TOP LEVEL\n //\n // Up\n\n\n if (state === \'hasSubmenu\' && e.which === ARROW_UP_KEYCODE && index > 0) {\n index--;\n } // Down\n\n\n if (state === \'hasSubmenu\' && e.which === ARROW_DOWN_KEYCODE && index < $items.length - 1) {\n index++;\n } // Open Sub\n\n\n if (state === \'hasSubmenu\' && (e.which === ARROW_LEFT_KEYCODE || e.which === ARROW_RIGHT_KEYCODE || e.which === SPACE_KEYCODE || e.which === ENTER_KEYCODE)) {\n if (!e.target.parentNode.querySelector(["".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn)])) {\n Object(_methods_desktop_mouseenter_event_listener__WEBPACK_IMPORTED_MODULE_4__["default"])(e.target.parentNode, e.target.parentNode.querySelector(["".concat(_options.classMap.subMenu, ", ").concat(_options.classMap.megaMenu)]), _options, getItemSettings(e.target.parentNode))();\n } else if (e.target.parentNode.querySelector(["".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn)])) {\n e.target.parentNode.querySelector(["".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn)]).querySelectorAll(\'a\')[0].focus();\n return;\n }\n } // Close Siblings\n\n\n if (state === \'hasSubmenu\' && (e.which === TAB_KEYCODE || e.which === ARROW_DOWN_KEYCODE || e.which === ARROW_UP_KEYCODE) && e.target.closest(["".concat(_options.classMap.hasMegaMenu, ", ").concat(_options.classMap.hasSubMenu)]).parentNode.querySelectorAll("".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn)).length) {\n Object(_methods_desktop_mouseleave_event_listener__WEBPACK_IMPORTED_MODULE_5__["default"])(e.target.closest(["".concat(_options.classMap.hasMegaMenu, ", ").concat(_options.classMap.hasSubMenu)]), e.target.closest(["".concat(_options.classMap.hasMegaMenu, ", ").concat(_options.classMap.hasSubMenu)]).parentNode.querySelector("".concat(_options.classMap.hasMegaMenuActive, " > ").concat(_options.classMap.megaMenu, ", ").concat(_options.classMap.hasSubMenuActive, " > ").concat(_options.classMap.subMenu)), _options, getItemSettings(e.target.closest(["".concat(_options.classMap.hasMegaMenu, ", ").concat(_options.classMap.hasSubMenu)])))();\n } //\n // End: HAS SUB-MENU BUT NOT TOP LEVEL\n //\n //\n // Start: SIMPLE\n //\n // Left, Up\n\n\n if (state === \'simple\' && e.which === ARROW_UP_KEYCODE && index > 0) {\n index--;\n } // Right, Down\n\n\n if (state === \'simple\' && e.which === ARROW_DOWN_KEYCODE && index < $items.length - 1) {\n index++;\n } // Close Siblings\n\n\n if (state === \'simple\' && (e.which === ARROW_RIGHT_KEYCODE || e.which === ARROW_LEFT_KEYCODE) && e.target.closest(_options.classMap.hasSubMenu).parentNode.querySelector(_options.classMap.subMenu)) {\n e.target.closest(_options.classMap.hasSubMenu).querySelector(_options.classMap.invoker).focus();\n Object(_methods_desktop_mouseleave_event_listener__WEBPACK_IMPORTED_MODULE_5__["default"])(e.target.closest(_options.classMap.hasSubMenu), e.target.closest(_options.classMap.hasSubMenu).parentNode.querySelector("".concat(_options.classMap.hasSubMenuActive, " > ").concat(_options.classMap.subMenu)), _options, getItemSettings(e.target.closest(_options.classMap.hasSubMenu)))();\n return;\n } //\n // End: SIMPLE\n //\n // Close Self\n\n\n if (e.which === ESC_KEYCODE && _this.state === \'desktop\' && document.querySelector("".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn))) {\n Object(_methods_desktop_mouseleave_event_listener__WEBPACK_IMPORTED_MODULE_5__["default"])(document.querySelector("".concat(_options.classMap.hasMegaMenuActive, ", ").concat(_options.classMap.hasSubMenuActive)), document.querySelector("".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn)), _options, getItemSettings(document.querySelector("".concat(_options.classMap.hasMegaMenuActive, ", ").concat(_options.classMap.hasSubMenuActive))))();\n return;\n } // Reset index\n\n\n if (index < 0) {\n index = 0;\n }\n\n $items[index].focus();\n });\n document.addEventListener(\'keyup\', function (e) {\n // Close All\n if (e.which === TAB_KEYCODE && document.querySelector("".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn))) {\n Object(_methods_desktop_mouseleave_event_listener__WEBPACK_IMPORTED_MODULE_5__["default"])(document.querySelector("".concat(_options.classMap.hasMegaMenuActive, ", ").concat(_options.classMap.hasSubMenuActive)), document.querySelector("".concat(_options.classMap.megaMenu, ".").concat(_options.itemOptions.desktop.animationIn, ", ").concat(_options.classMap.subMenu, ".").concat(_options.itemOptions.desktop.animationIn)), _options, getItemSettings(document.querySelector("".concat(_options.classMap.hasMegaMenuActive, ", ").concat(_options.classMap.hasSubMenuActive))))();\n }\n }); // *****\n // End: ACCESSIBILITY\n // *****\n\n that.collection[i].$initializedEl = _options;\n };\n\n for (var i = 0; i < that.collection.length; i += 1) {\n var resolutionsList;\n var ESC_KEYCODE, TAB_KEYCODE, ENTER_KEYCODE, SPACE_KEYCODE, ARROW_UP_KEYCODE, ARROW_DOWN_KEYCODE, ARROW_RIGHT_KEYCODE, ARROW_LEFT_KEYCODE;\n var myPreventScrollSpace, myPreventScrollDown, myPreventScrollUp;\n\n var _ret = _loop(i);\n\n if (_ret === "continue") continue;\n }\n }\n }, {\n key: "MegaMenuItem",\n value: function MegaMenuItem(el, menu, params) {\n var context = this,\n settings = params,\n itemDataSettings = el.hasAttribute(\'data-hs-mega-menu-item-options\') ? JSON.parse(el.getAttribute(\'data-hs-mega-menu-item-options\')) : {},\n $el = el,\n $menu = menu;\n var itemSettings = {\n eventType: itemDataSettings.eventType ? itemDataSettings.eventType : settings.eventType,\n megaMenuTimeOut: null,\n desktop: {\n animation: \'animated\',\n animationIn: \'slideInUp\',\n animationOut: false,\n position: null,\n maxWidth: null\n }\n };\n itemSettings = _methods_object_assign_deep__WEBPACK_IMPORTED_MODULE_0___default()({}, settings, itemSettings, itemDataSettings);\n\n itemSettings.activeItemClass = function () {\n return Object(_methods_get_type__WEBPACK_IMPORTED_MODULE_1__["default"])($el, itemSettings) === \'mega-menu\' ? itemSettings.classMap.hasMegaMenuActive : itemSettings.classMap.hasSubMenuActive;\n }; // Set Menu Breakpoint Class\n\n\n $menu.classList.add(Object(_methods_get_type__WEBPACK_IMPORTED_MODULE_1__["default"])($el, itemSettings) === \'mega-menu\' ? "hs-mega-menu-desktop-".concat(itemSettings.breakpoint) : "hs-sub-menu-desktop-".concat(itemSettings.breakpoint)); // Listeners\n\n var myDesktopCSSAnimationEnable = Object(_methods_desktop_css_animation_enable__WEBPACK_IMPORTED_MODULE_3__["default"])($menu, itemSettings),\n myDesktopMouseEnterEventListener = Object(_methods_desktop_mouseenter_event_listener__WEBPACK_IMPORTED_MODULE_4__["default"])($el, $menu, settings, itemSettings),\n myDesktopMouseLeaveEventListener = Object(_methods_desktop_mouseleave_event_listener__WEBPACK_IMPORTED_MODULE_5__["default"])($el, $menu, settings, itemSettings),\n myDesktopClickEventListener = Object(_methods_desktop_click_event_listener__WEBPACK_IMPORTED_MODULE_6__["default"])($el, $menu, settings, itemSettings),\n myMobileClickEventListener = Object(_methods_mobile_click_event_listener__WEBPACK_IMPORTED_MODULE_7__["default"])($el, $menu, settings, itemSettings);\n\n var mobileListeners = function mobileListeners() {\n // Remove Desktop Listeners\n $menu.removeEventListener(\'animationend\', myDesktopCSSAnimationEnable, false);\n $menu.removeEventListener(\'webkitAnimationEnd\', myDesktopCSSAnimationEnable, false);\n $el.removeEventListener(\'mouseenter\', myDesktopMouseEnterEventListener, false);\n $el.removeEventListener(\'mouseleave\', myDesktopMouseLeaveEventListener, false); // $el.children(settings.classMap.invoker)[0].removeEventListener(\'focus\', myDesktopMouseEnterEventListener, false);\n\n $el.querySelector(itemSettings.classMap.invoker).removeEventListener(\'click\', myDesktopClickEventListener, false); // Add Mobile Listeners\n\n $el.querySelector(itemSettings.classMap.invoker).addEventListener(\'click\', myMobileClickEventListener, false);\n },\n desktopListeners = function desktopListeners() {\n // Remove Mobile Listeners\n $el.querySelector(itemSettings.classMap.invoker).removeEventListener(\'click\', myMobileClickEventListener, false); // Add Desktop Listeners\n\n $menu.addEventListener(\'animationend\', myDesktopCSSAnimationEnable, false);\n $menu.addEventListener(\'webkitAnimationEnd\', myDesktopCSSAnimationEnable, false);\n\n if (itemSettings.eventType === \'hover\') {\n $el.addEventListener(\'mouseenter\', myDesktopMouseEnterEventListener, false);\n $el.addEventListener(\'mouseleave\', myDesktopMouseLeaveEventListener, false);\n }\n\n if (itemSettings.eventType === \'click\') {\n $el.querySelector(itemSettings.classMap.invoker).addEventListener(\'click\', myDesktopClickEventListener, false);\n }\n };\n\n if (itemSettings.desktop.maxWidth) {\n $menu.style.maxWidth = itemSettings.desktop.maxWidth;\n }\n\n if (itemSettings.desktop.position) {\n $menu.classList.add("hs-position-".concat(itemSettings.desktop.position));\n } // Document Events\n\n\n document.addEventListener(\'click\', function (e) {\n if (!e.target.closest([itemSettings.classMap.subMenu, itemSettings.classMap.megaMenu, itemSettings.classMap.invoker]) && context.state === \'desktop\') {\n $el.classList.remove(itemSettings.activeItemClass().slice(1));\n $menu.classList.remove(itemSettings.desktop.animationIn);\n\n if (itemSettings.animationOut) {\n $menu.classList.add(itemSettings.desktop.animationOut);\n } else {\n $menu.style.display = \'none\';\n }\n }\n }); // Resize and Scroll Events\n\n window.addEventListener(\'resize\', function () {\n if (context.state === \'desktop\') {\n Object(_methods_smart_position__WEBPACK_IMPORTED_MODULE_2__["default"])($menu, itemSettings);\n }\n });\n\n var resizeDetection = function resizeDetection() {\n if (context.state === \'mobile\') {\n $menu.classList.remove(itemSettings.desktop.animation);\n $menu.style.animationDuration = \'\';\n mobileListeners();\n } else if (context.state === \'desktop\') {\n $menu.classList.add(itemSettings.desktop.animation);\n $menu.style.animationDuration = "".concat(itemSettings.duration, "ms");\n desktopListeners();\n }\n };\n\n resizeDetection(); // State Detection\n\n window.addEventListener(\'resize\', function () {\n resizeDetection();\n });\n }\n }, {\n key: "addToCollection",\n value: function addToCollection(item, options, id) {\n this.collection.push({\n $el: item,\n id: id || null,\n options: _methods_object_assign_deep__WEBPACK_IMPORTED_MODULE_0___default()({}, defaults, item.hasAttribute(dataAttributeName) ? JSON.parse(item.getAttribute(dataAttributeName)) : {}, options)\n });\n }\n }, {\n key: "getItems",\n value: function getItems() {\n var that = this;\n var newCollection = [];\n\n for (var i = 0; i < that.collection.length; i += 1) {\n newCollection.push(that.collection[i].$initializedEl);\n }\n\n return newCollection;\n }\n }, {\n key: "getItem",\n value: function getItem(ind) {\n return this.collection[ind].$initializedEl;\n }\n }]);\n\n return HSMegaMenu;\n}();\n\n\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/hs-mega-menu.js?')},"./src/js/methods/desktop-click-event-listener.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return desktopClickEventListener; });\n/* harmony import */ var _get_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-type */ "./src/js/methods/get-type.js");\n/* harmony import */ var _smart_position__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./smart-position */ "./src/js/methods/smart-position.js");\n/* harmony import */ var _desktop_show__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./desktop-show */ "./src/js/methods/desktop-show.js");\n/* harmony import */ var _desktop_hide__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./desktop-hide */ "./src/js/methods/desktop-hide.js");\n\n\n\n\nfunction desktopClickEventListener(el, menu, params, itemParams) {\n return function () {\n var $siblingInvokers = menu.closest("".concat(params.classMap.hasMegaMenu, ", ").concat(params.classMap.hasSubMenu)).parentNode.querySelectorAll("".concat(params.classMap.hasMegaMenu).concat(params.classMap.hasMegaMenuActive, ", ").concat(params.classMap.hasSubMenu).concat(params.classMap.hasSubMenuActive));\n\n if ($siblingInvokers.length) {\n $siblingInvokers.forEach(function ($el) {\n var $menu = $el.querySelector("".concat(params.classMap.megaMenu, ", ").concat(params.classMap.subMenu)),\n itemDataSettings = $el.hasAttribute(\'data-hs-mega-menu-item-options\') ? JSON.parse($el.getAttribute(\'data-hs-mega-menu-item-options\')) : {};\n var itemSettings = {\n desktop: {\n animation: \'animated\',\n animationIn: \'slideInUp\',\n animationOut: \'fadeOut\',\n position: null\n }\n };\n itemSettings = Object.assign({}, itemSettings, itemDataSettings);\n\n itemSettings.activeItemClass = function () {\n return Object(_get_type__WEBPACK_IMPORTED_MODULE_0__["default"])($el, params) === \'mega-menu\' ? params.classMap.hasMegaMenuActive : params.classMap.hasSubMenuActive;\n };\n\n $el.classList.remove(itemSettings.activeItemClass().slice(1));\n Object(_desktop_hide__WEBPACK_IMPORTED_MODULE_3__["default"])($el, $menu, params, itemSettings);\n });\n }\n\n if (menu.previousElementSibling.classList.contains(\'show\')) {\n el.classList.add(itemParams.activeItemClass().slice(1));\n Object(_desktop_show__WEBPACK_IMPORTED_MODULE_2__["default"])(el, menu, params, itemParams);\n Object(_smart_position__WEBPACK_IMPORTED_MODULE_1__["default"])(menu, params);\n }\n };\n}\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/desktop-click-event-listener.js?')},"./src/js/methods/desktop-css-animation-enable.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return desktopCSSAnimationEnable; });\nfunction desktopCSSAnimationEnable(menu, itemParams) {\n return function (e) {\n if (menu.classList.contains(itemParams.desktop.animationOut)) {\n menu.classList.remove(itemParams.desktop.animationOut);\n menu.style.display = 'none';\n }\n\n e.preventDefault();\n e.stopPropagation();\n };\n}\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/desktop-css-animation-enable.js?")},"./src/js/methods/desktop-hide.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return desktopHide; });\nfunction desktopHide(el, menu, params, itemParams) {\n if (!menu) {\n return this;\n }\n\n if (itemParams.desktop.animationOut) {\n menu.classList.remove(itemParams.desktop.animationIn);\n menu.classList.add(itemParams.desktop.animationOut);\n menu.style.display = 'none';\n } else {\n menu.classList.remove(itemParams.desktop.animationIn);\n menu.style.display = 'none';\n }\n}\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/desktop-hide.js?")},"./src/js/methods/desktop-mouseenter-event-listener.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return desktopMouseEnterEventListener; });\n/* harmony import */ var _smart_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./smart-position */ "./src/js/methods/smart-position.js");\n/* harmony import */ var _desktop_show__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./desktop-show */ "./src/js/methods/desktop-show.js");\n/* harmony import */ var _get_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-type */ "./src/js/methods/get-type.js");\n/* harmony import */ var _desktop_hide__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./desktop-hide */ "./src/js/methods/desktop-hide.js");\n\n\n\n\nfunction desktopMouseEnterEventListener(el, menu, params, itemParams) {\n return function () {\n if (itemParams.megaMenuTimeOut) {\n clearTimeout(itemParams.megaMenuTimeOut);\n }\n\n var $siblingInvokers = menu.closest("".concat(params.classMap.hasMegaMenu, ", ").concat(params.classMap.hasSubMenu)).parentNode.querySelectorAll("".concat(params.classMap.hasMegaMenu).concat(params.classMap.hasMegaMenuActive, ", ").concat(params.classMap.hasSubMenu).concat(params.classMap.hasSubMenuActive));\n\n if ($siblingInvokers.length) {\n $siblingInvokers.forEach(function ($el) {\n var $menu = $el.querySelector("".concat(params.classMap.megaMenu, ", ").concat(params.classMap.subMenu)),\n itemDataSettings = $el.hasAttribute(\'data-hs-mega-menu-item-options\') ? JSON.parse($el.getAttribute(\'data-hs-mega-menu-item-options\')) : {};\n var itemSettings = {\n desktop: {\n animation: \'animated\',\n animationIn: \'slideInUp\',\n animationOut: \'fadeOut\',\n position: null\n }\n };\n itemSettings = Object.assign({}, itemSettings, itemDataSettings);\n\n itemSettings.activeItemClass = function () {\n return Object(_get_type__WEBPACK_IMPORTED_MODULE_2__["default"])($el, params) === \'mega-menu\' ? params.classMap.hasMegaMenuActive : params.classMap.hasSubMenuActive;\n };\n\n $el.classList.remove(itemSettings.activeItemClass().slice(1));\n Object(_desktop_hide__WEBPACK_IMPORTED_MODULE_3__["default"])($el, $menu, params, itemSettings);\n });\n }\n\n el.classList.add(itemParams.activeItemClass().slice(1));\n Object(_desktop_show__WEBPACK_IMPORTED_MODULE_1__["default"])(el, menu, params, itemParams);\n Object(_smart_position__WEBPACK_IMPORTED_MODULE_0__["default"])(menu, params);\n };\n}\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/desktop-mouseenter-event-listener.js?')},"./src/js/methods/desktop-mouseleave-event-listener.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return desktopMouseLeaveEventListener; });\n/* harmony import */ var _desktop_hide__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./desktop-hide */ "./src/js/methods/desktop-hide.js");\n\nfunction desktopMouseLeaveEventListener(el, menu, params, itemParams) {\n return function () {\n itemParams.megaMenuTimeOut = setTimeout(function () {\n el.classList.remove(itemParams.activeItemClass().slice(1));\n Object(_desktop_hide__WEBPACK_IMPORTED_MODULE_0__["default"])(el, menu, params, itemParams);\n }, params.delay);\n };\n}\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/desktop-mouseleave-event-listener.js?')},"./src/js/methods/desktop-show.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return desktopShow; });\nfunction desktopShow(el, menu, params, itemParams) {\n menu.classList.remove(itemParams.desktop.animationOut);\n menu.style.display = 'block';\n menu.classList.add(itemParams.desktop.animationIn);\n}\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/desktop-show.js?")},"./src/js/methods/get-type.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return getType; });\nfunction getType(el, params) {\n if (!el) {\n return false;\n }\n\n return el.classList.contains(params.classMap.hasSubMenu.slice(1)) ? 'sub-menu' : el.classList.contains(params.classMap.hasMegaMenu.slice(1)) ? 'mega-menu' : null;\n}\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/get-type.js?")},"./src/js/methods/mobile-click-event-listener.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return mobileClickEventListener; });\n/* harmony import */ var _get_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-type */ "./src/js/methods/get-type.js");\n/* harmony import */ var _mobile_show__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mobile-show */ "./src/js/methods/mobile-show.js");\n/* harmony import */ var _mobile_hide__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mobile-hide */ "./src/js/methods/mobile-hide.js");\n\n\n\nfunction mobileClickEventListener(el, menu, params, itemParams) {\n return function () {\n var $siblingInvokers = menu.closest("".concat(params.classMap.hasMegaMenu, ", ").concat(params.classMap.hasSubMenu)).parentNode.querySelectorAll("".concat(params.classMap.hasMegaMenu).concat(params.classMap.hasMegaMenuActive, ", ").concat(params.classMap.hasSubMenu).concat(params.classMap.hasSubMenuActive));\n\n if ($siblingInvokers.length) {\n $siblingInvokers.forEach(function ($el) {\n var $menu = $el.querySelector("".concat(params.classMap.megaMenu, ", ").concat(params.classMap.subMenu)),\n itemSettings = {};\n\n itemSettings.activeItemClass = function () {\n return Object(_get_type__WEBPACK_IMPORTED_MODULE_0__["default"])($el, params) === \'mega-menu\' ? params.classMap.hasMegaMenuActive : params.classMap.hasSubMenuActive;\n };\n\n Object(_mobile_hide__WEBPACK_IMPORTED_MODULE_2__["default"])($el, $menu, params, itemSettings);\n });\n }\n\n if (menu.offsetParent === null) {\n Object(_mobile_show__WEBPACK_IMPORTED_MODULE_1__["default"])(el, menu, params, itemParams);\n } else {\n Object(_mobile_hide__WEBPACK_IMPORTED_MODULE_2__["default"])(el, menu, params, itemParams);\n }\n };\n}\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/mobile-click-event-listener.js?')},"./src/js/methods/mobile-hide.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return mobileHide; });\n/* harmony import */ var _slideUp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./slideUp */ "./src/js/methods/slideUp.js");\n\nfunction mobileHide(el, menu, params, itemParams) {\n if (!menu) {\n return this;\n }\n\n el.classList.remove(itemParams.activeItemClass().slice(1));\n Object(_slideUp__WEBPACK_IMPORTED_MODULE_0__["default"])(menu, params.mobileSpeed);\n}\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/mobile-hide.js?')},"./src/js/methods/mobile-show.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return mobileShow; });\n/* harmony import */ var _slideDown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./slideDown */ "./src/js/methods/slideDown.js");\n\nfunction mobileShow(el, menu, params, itemParams) {\n if (!menu) {\n return this;\n }\n\n el.classList.add(itemParams.activeItemClass().slice(1));\n Object(_slideDown__WEBPACK_IMPORTED_MODULE_0__["default"])(menu, params.mobileSpeed);\n}\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/mobile-show.js?')},"./src/js/methods/object-assign-deep.js":function(module,exports,__webpack_require__){"use strict";eval("\n/*\n * OBJECT ASSIGN DEEP\n * Allows deep cloning of plain objects that contain primitives, nested plain objects, or nested plain arrays.\n */\n\n/*\n * A unified way of returning a string that describes the type of the given variable.\n */\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction getTypeOf(input) {\n if (input === null) {\n return 'null';\n } else if (typeof input === 'undefined') {\n return 'undefined';\n } else if (_typeof(input) === 'object') {\n return Array.isArray(input) ? 'array' : 'object';\n }\n\n return _typeof(input);\n}\n/*\n * Branching logic which calls the correct function to clone the given value base on its type.\n */\n\n\nfunction cloneValue(value) {\n // The value is an object so lets clone it.\n if (getTypeOf(value) === 'object') {\n return quickCloneObject(value);\n } // The value is an array so lets clone it.\n else if (getTypeOf(value) === 'array') {\n return quickCloneArray(value);\n } // Any other value can just be copied.\n\n\n return value;\n}\n/*\n * Enumerates the given array and returns a new array, with each of its values cloned (i.e. references broken).\n */\n\n\nfunction quickCloneArray(input) {\n return input.map(cloneValue);\n}\n/*\n * Enumerates the properties of the given object (ignoring the prototype chain) and returns a new object, with each of\n * its values cloned (i.e. references broken).\n */\n\n\nfunction quickCloneObject(input) {\n var output = {};\n\n for (var key in input) {\n if (!Object.prototype.hasOwnProperty.call(input, key)) {\n continue;\n }\n\n output[key] = cloneValue(input[key]);\n }\n\n return output;\n}\n/*\n * Does the actual deep merging.\n */\n\n\nfunction executeDeepMerge(target) {\n var _objects = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n var options = {\n arrayBehaviour: _options.arrayBehaviour || 'replace' // Can be \"merge\" or \"replace\".\n\n }; // Ensure we have actual objects for each.\n\n var objects = _objects.map(function (object) {\n return object || {};\n });\n\n var output = target || {}; // Enumerate the objects and their keys.\n\n for (var oindex = 0; oindex < objects.length; oindex++) {\n var object = objects[oindex];\n var keys = Object.keys(object);\n\n for (var kindex = 0; kindex < keys.length; kindex++) {\n var key = keys[kindex];\n var value = object[key];\n var type = getTypeOf(value);\n var existingValueType = getTypeOf(output[key]);\n\n if (type === 'object') {\n if (existingValueType !== 'undefined') {\n var existingValue = existingValueType === 'object' ? output[key] : {};\n output[key] = executeDeepMerge({}, [existingValue, quickCloneObject(value)], options);\n } else {\n output[key] = quickCloneObject(value);\n }\n } else if (type === 'array') {\n if (existingValueType === 'array') {\n var newValue = quickCloneArray(value);\n output[key] = options.arrayBehaviour === 'merge' ? output[key].concat(newValue) : newValue;\n } else {\n output[key] = quickCloneArray(value);\n }\n } else {\n output[key] = value;\n }\n }\n }\n\n return output;\n}\n/*\n * Merge all the supplied objects into the target object, breaking all references, including those of nested objects\n * and arrays, and even objects nested inside arrays. The first parameter is not mutated unlike Object.assign().\n * Properties in later objects will always overwrite.\n */\n\n\nmodule.exports = function objectAssignDeep(target) {\n for (var _len = arguments.length, objects = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n objects[_key - 1] = arguments[_key];\n }\n\n return executeDeepMerge(target, objects);\n};\n/*\n * Same as objectAssignDeep() except it doesn't mutate the target object and returns an entirely new object.\n */\n\n\nmodule.exports.noMutate = function objectAssignDeepInto() {\n for (var _len2 = arguments.length, objects = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n objects[_key2] = arguments[_key2];\n }\n\n return executeDeepMerge({}, objects);\n};\n/*\n * Allows an options object to be passed in to customise the behaviour of the function.\n */\n\n\nmodule.exports.withOptions = function objectAssignDeepInto(target, objects, options) {\n return executeDeepMerge(target, objects, options);\n};\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/object-assign-deep.js?")},"./src/js/methods/offset.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = (function (el) {\n if (!el) return false;\n var rect = el.getBoundingClientRect();\n return {\n top: rect.top - window.scrollY,\n left: rect.left - window.scrollX\n };\n});\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/offset.js?')},"./src/js/methods/slideDown.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\nvar slideDown = function slideDown(target) {\n var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;\n target.style.removeProperty('display');\n var display = window.getComputedStyle(target).display;\n if (display === 'none') display = 'block';\n target.style.display = display;\n var height = target.offsetHeight;\n target.style.overflow = 'hidden';\n target.style.height = 0;\n target.style.paddingTop = 0;\n target.style.paddingBottom = 0;\n target.style.marginTop = 0;\n target.style.marginBottom = 0;\n target.offsetHeight;\n target.style.boxSizing = 'border-box';\n target.style.transitionProperty = \"height, margin, padding\";\n target.style.transitionDuration = duration + 'ms';\n target.style.height = height + 'px';\n target.style.removeProperty('padding-top');\n target.style.removeProperty('padding-bottom');\n target.style.removeProperty('margin-top');\n target.style.removeProperty('margin-bottom');\n window.setTimeout(function () {\n target.style.removeProperty('height');\n target.style.removeProperty('overflow');\n target.style.removeProperty('transition-duration');\n target.style.removeProperty('transition-property');\n }, duration);\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (slideDown);\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/slideDown.js?")},"./src/js/methods/slideUp.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\nvar slideUp = function slideUp(target) {\n var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;\n target.style.transitionProperty = 'height, margin, padding';\n target.style.transitionDuration = duration + 'ms';\n target.style.boxSizing = 'border-box';\n target.style.height = target.offsetHeight + 'px';\n target.offsetHeight;\n target.style.overflow = 'hidden';\n target.style.height = 0;\n target.style.paddingTop = 0;\n target.style.paddingBottom = 0;\n target.style.marginTop = 0;\n target.style.marginBottom = 0;\n window.setTimeout(function () {\n target.style.display = 'none';\n target.style.removeProperty('height');\n target.style.removeProperty('padding-top');\n target.style.removeProperty('padding-bottom');\n target.style.removeProperty('margin-top');\n target.style.removeProperty('margin-bottom');\n target.style.removeProperty('overflow');\n target.style.removeProperty('transition-duration');\n target.style.removeProperty('transition-property'); //alert(\"!\");\n }, duration);\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (slideUp);\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/slideUp.js?")},"./src/js/methods/smart-position.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return smartPosition; });\n/* harmony import */ var _offset__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./offset */ "./src/js/methods/offset.js");\n\nfunction smartPosition(el, params) {\n if (!el) return;\n\n if (!params.rtl) {\n if (Object(_offset__WEBPACK_IMPORTED_MODULE_0__["default"])(el).left + el.offsetWidth > window.innerWidth) {\n el.classList.add(params.classMap.reversed.slice(1));\n }\n } else {\n if (Object(_offset__WEBPACK_IMPORTED_MODULE_0__["default"])(el).left < 0) {\n el.classList.add(params.classMap.reversed.slice(1));\n }\n }\n}\n\n//# sourceURL=webpack://HSMegaMenu/./src/js/methods/smart-position.js?')}},e={},f.m=d,f.c=e,f.d=function(t,e,n){f.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.t=function(t,e){if(1&e&&(t=f(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)f.d(n,r,function(e){return t[e]}.bind(null,r));return n},f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,"a",e),e},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.p="",f(f.s="./src/js/hs-mega-menu.js").default;function f(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,f),n.l=!0,n.exports}var d,e})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSShowAnimation=e():t.HSShowAnimation=e()}(window,(function(){return d={"./src/js/hs-show-animation.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSShowAnimation; });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./src/js/utils.js");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*\n* HSShowAnimation Plugin\n* @version: 3.0.0 (Sat, 20 Nov 2021)\n* @author: HtmlStream\n* @event-namespace: .HSShowAnimation\n* @license: Htmlstream Libraries (https://htmlstream.com/)\n* Copyright 2021 Htmlstream\n*/\n\nvar dataAttributeName = \'data-hs-show-animation-options\';\nvar defaults = {\n groupName: null,\n targetSelector: null,\n siblingSelector: null,\n eventType: \'click\',\n classMap: {\n active: \'active\'\n },\n animationType: \'simple\',\n animationInit: \'animated\',\n animationIn: null,\n duration: null,\n afterShow: function afterShow() {}\n};\n\nvar HSShowAnimation = /*#__PURE__*/function () {\n function HSShowAnimation(el, options, id) {\n _classCallCheck(this, HSShowAnimation);\n\n this.collection = [];\n var that = this;\n var elems;\n\n if (el instanceof HTMLElement) {\n elems = [el];\n } else if (el instanceof Object) {\n elems = el;\n } else {\n elems = document.querySelectorAll(el);\n }\n\n for (var i = 0; i < elems.length; i += 1) {\n that.addToCollection(elems[i], options, id || elems[i].id);\n }\n\n if (!that.collection.length) {\n return false;\n } // initialization calls\n\n\n that._init();\n\n return this;\n }\n\n _createClass(HSShowAnimation, [{\n key: "_init",\n value: function _init() {\n var that = this;\n\n var _loop = function _loop(i) {\n var _$el = void 0;\n\n var _options = void 0;\n\n if (that.collection[i].hasOwnProperty(\'$initializedEl\')) {\n return "continue";\n }\n\n _$el = that.collection[i].$el;\n _options = that.collection[i].options;\n that.prepareObject(_$el, _options);\n\n _$el.addEventListener(_options.eventType, function (e) {\n e.preventDefault();\n\n if (_$el.classList.contains(_options.classMap.active)) {\n return;\n }\n\n that.activeClassChange(_options);\n\n if (_options.animationType === \'css-animation\') {\n that.cssAnimation(_options);\n } else {\n that.simpleAnimation(_options);\n }\n });\n };\n\n for (var i = 0; i < that.collection.length; i += 1) {\n var _ret = _loop(i);\n\n if (_ret === "continue") continue;\n }\n }\n }, {\n key: "prepareObject",\n value: function prepareObject($el, settings) {\n var $targetSelector = document.querySelector(settings.targetSelector),\n $siblingSelector = document.querySelector(settings.siblingSelector);\n $el.setAttribute(\'data-hs-show-animation-link-group\', settings.groupName);\n\n if (settings.duration) {\n $targetSelector.style.animationDuration = "".concat(settings.duration, "ms");\n }\n\n $targetSelector.setAttribute(\'data-hs-show-animation-target-group\', settings.groupName);\n\n if ($siblingSelector) {\n $siblingSelector.setAttribute(\'data-hs-show-animation-target-group\', settings.groupName);\n }\n }\n }, {\n key: "activeClassChange",\n value: function activeClassChange(settings) {\n var $targets = document.querySelectorAll("[data-hs-show-animation-link-group=\\"".concat(settings.groupName, "\\"]"));\n\n if ($targets.length) {\n $targets.forEach(function ($item) {\n return $item.classList.remove(settings.classMap.active);\n });\n }\n }\n }, {\n key: "simpleAnimation",\n value: function simpleAnimation(settings) {\n var $targets = document.querySelectorAll("[data-hs-show-animation-target-group=\\"".concat(settings.groupName, "\\"]")),\n $targetSelector = document.querySelector(settings.targetSelector);\n\n if ($targets.length) {\n $targets.forEach(function ($item) {\n $item.style.display = \'none\';\n $item.style.opacity = 0;\n });\n }\n\n Object(_utils__WEBPACK_IMPORTED_MODULE_0__["fadeIn"])($targetSelector, 400);\n settings.afterShow();\n }\n }, {\n key: "cssAnimation",\n value: function cssAnimation(settings) {\n var $targets = document.querySelectorAll("[data-hs-show-animation-target-group=\\"".concat(settings.groupName, "\\"]")),\n $targetSelector = document.querySelector(settings.targetSelector);\n\n if ($targets.length) {\n $targets.forEach(function ($item) {\n $item.style.display = \'none\';\n $item.style.opacity = 0;\n $item.classList.remove(settings.animationInit, settings.animationIn);\n });\n }\n\n $targetSelector.style.display = \'block\';\n settings.afterShow();\n setTimeout(function () {\n $targetSelector.style.opacity = 1;\n $targetSelector.classList.add(settings.animationInit, settings.animationIn);\n }, 50);\n }\n }, {\n key: "addToCollection",\n value: function addToCollection(item, options, id) {\n this.collection.push({\n $el: item,\n id: id || null,\n options: Object.assign({}, defaults, item.hasAttribute(dataAttributeName) ? JSON.parse(item.getAttribute(dataAttributeName)) : {}, options)\n });\n }\n }, {\n key: "getItem",\n value: function getItem(item) {\n if (typeof item === \'number\') {\n return this.collection[item].$initializedEl;\n } else {\n return this.collection.find(function (el) {\n return el.id === item;\n }).$initializedEl;\n }\n }\n }]);\n\n return HSShowAnimation;\n}();\n\n\n\n//# sourceURL=webpack://HSShowAnimation/./src/js/hs-show-animation.js?')},"./src/js/utils.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fadeIn\", function() { return fadeIn; });\nfunction fadeIn(el, time) {\n if (!el || el.offsetParent !== null) return el;\n el.style.opacity = 0;\n el.style.display = 'block';\n var last = +new Date();\n\n var tick = function tick() {\n el.style.opacity = +el.style.opacity + (new Date() - last) / time;\n last = +new Date();\n\n if (+el.style.opacity < 1) {\n window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);\n }\n };\n\n tick();\n}\n\n//# sourceURL=webpack://HSShowAnimation/./src/js/utils.js?")}},e={},f.m=d,f.c=e,f.d=function(t,e,n){f.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.t=function(t,e){if(1&e&&(t=f(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)f.d(n,r,function(e){return t[e]}.bind(null,r));return n},f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,"a",e),e},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.p="",f(f.s="./src/js/hs-show-animation.js").default;function f(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,f),n.l=!0,n.exports}var d,e})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSGoTo=e():t.HSGoTo=e()}(window,(function(){return d={"./src/js/hs-go-to.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSGoTo; });\n/* harmony import */ var _utils_scrollTo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/scrollTo */ "./src/utils/scrollTo.js");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\nvar dataAttributeName = \'data-hs-go-to-options\';\nvar defaults = {\n pageContainerSelector: \'html, body\',\n targetSelector: null,\n compensationSelector: null,\n animationInit: \'animated\',\n animationIn: \'fadeInUp\',\n animationOut: \'fadeOutDown\',\n duration: 800,\n offsetTop: 0,\n position: {\n init: null,\n hide: null,\n show: null\n },\n isReferencedToOtherPage: null,\n preventEventClass: \'hs-go-to-prevent-event\'\n};\n\nvar HSGoTo = /*#__PURE__*/function () {\n function HSGoTo(el, options, id) {\n _classCallCheck(this, HSGoTo);\n\n this.collection = [];\n var that = this;\n var elems;\n\n if (el instanceof HTMLElement) {\n elems = [el];\n } else if (el instanceof Object) {\n elems = el;\n } else {\n elems = document.querySelectorAll(el);\n }\n\n for (var i = 0; i < elems.length; i += 1) {\n that.addToCollection(elems[i], options, id || elems[i].id);\n }\n\n if (!that.collection.length) {\n return false;\n } // initialization calls\n\n\n that._init();\n\n return this;\n }\n\n _createClass(HSGoTo, [{\n key: "_init",\n value: function _init() {\n var _this = this;\n\n var that = this;\n\n var _loop = function _loop(i) {\n var _$el = void 0;\n\n var _options = void 0;\n\n if (that.collection[i].hasOwnProperty(\'$initializedEl\')) {\n return "continue";\n }\n\n _$el = that.collection[i].$el;\n _options = that.collection[i].options;\n\n var _compensationSelector = document.querySelector(_options.compensationSelector),\n _targetSelector = document.querySelector(_options.targetSelector),\n _pageContainerSelector = document.querySelector(_options.pageContainerSelector);\n\n _options.targetOffsetTop = function () {\n if (_compensationSelector) {\n return _targetSelector ? _targetSelector.offsetTop - _compensationSelector.innerHeight : 0;\n } else {\n return _targetSelector ? _targetSelector.offsetTop : 0;\n }\n };\n\n _this.prepareObject(_$el, _options); // Set Position\n\n\n if (_options.position) {\n _this.setPosition(_$el, _options);\n } // Click Events\n\n\n _$el.addEventListener(\'click\', function (e) {\n return _this.clickEvents(_$el, _options, {\n _pageContainerSelector: _pageContainerSelector,\n _compensationSelector: _compensationSelector,\n _targetSelector: _targetSelector\n });\n }); // Scroll Events\n\n\n if (_options.animationIn && _options.animationOut) {\n document.addEventListener(\'scroll\', function (e) {\n return _this.scrollEvents(_$el, _options);\n });\n }\n };\n\n for (var i = 0; i < that.collection.length; i += 1) {\n var _ret = _loop(i);\n\n if (_ret === "continue") continue;\n }\n }\n }, {\n key: "prepareObject",\n value: function prepareObject($el, settings) {\n if (settings.animationIn && settings.animationOut) {\n if (navigator.userAgent.match(\'MSIE 10.0\')) {\n document.html.classList.add(\'ie10\');\n }\n\n $el.classList.add(settings.animationInit, settings.animationOut, settings.preventEventClass);\n }\n }\n }, {\n key: "setPosition",\n value: function setPosition($el, settings) {\n for (var style in settings.position.init) {\n $el.style.setProperty(style, settings.position.init[style]);\n }\n }\n }, {\n key: "clickEvents",\n value: function clickEvents($el, settings, _ref) {\n var _pageContainerSelector = _ref._pageContainerSelector;\n\n if (!settings.isReferencedToOtherPage) {\n if (event) {\n event.preventDefault();\n }\n\n Object(_utils_scrollTo__WEBPACK_IMPORTED_MODULE_0__["default"])({\n to: settings.targetOffsetTop(),\n el: _pageContainerSelector\n }, settings.duration);\n }\n }\n }, {\n key: "scrollEvents",\n value: function scrollEvents($el, settings) {\n $el.style.visibility = \'\';\n\n if (window.scrollY >= settings.offsetTop) {\n if (settings.position.show) {\n for (var style in settings.position.show) {\n $el.style.setProperty(style, settings.position.show[style]);\n }\n }\n\n $el.classList.remove(settings.animationOut);\n $el.classList.add(settings.animationIn);\n } else {\n if (settings.position.show) {\n for (var _style in settings.position.show) {\n $el.style.setProperty(_style, settings.position.show[_style]);\n }\n }\n\n $el.classList.remove(settings.animationIn);\n $el.classList.add(settings.animationOut);\n }\n }\n }, {\n key: "addToCollection",\n value: function addToCollection(item, options, id) {\n this.collection.push({\n $el: item,\n id: id || null,\n options: Object.assign({}, defaults, item.hasAttribute(dataAttributeName) ? JSON.parse(item.getAttribute(dataAttributeName)) : {}, options)\n });\n }\n }, {\n key: "getItem",\n value: function getItem(item) {\n if (typeof item === \'number\') {\n return this.collection[item].$initializedEl;\n } else {\n return this.collection.find(function (el) {\n return el.id === item;\n }).$initializedEl;\n }\n }\n }]);\n\n return HSGoTo;\n}();\n\n\n\n//# sourceURL=webpack://HSGoTo/./src/js/hs-go-to.js?')},"./src/utils/scrollTo.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return scrollTo; });\nMath.easeInOutQuad = function (t, b, c, d) {\n t /= d / 2;\n if (t < 1) return c / 2 * t * t + b;\n t--;\n return -c / 2 * (t * (t - 2) - 1) + b;\n};\n/*\n scrollTo(element.scrollTop || 200, 400)\n*/\n\n\nfunction scrollTo(_ref, duration) {\n var el = _ref.el,\n to = _ref.to;\n var element = el;\n var start = element && element.scrollTop || window.pageYOffset,\n change = to - start,\n increment = 20;\n var currentTime = 0;\n\n var animateScroll = function animateScroll() {\n currentTime += increment;\n var val = Math.easeInOutQuad(currentTime, start, change, duration);\n el.scrollTop = val;\n\n if (currentTime < duration) {\n window.setTimeout(animateScroll, increment);\n }\n };\n\n animateScroll();\n}\n\n//# sourceURL=webpack://HSGoTo/./src/utils/scrollTo.js?')}},e={},f.m=d,f.c=e,f.d=function(t,e,n){f.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.t=function(t,e){if(1&e&&(t=f(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)f.d(n,r,function(e){return t[e]}.bind(null,r));return n},f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,"a",e),e},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.p="",f(f.s="./src/js/hs-go-to.js").default;function f(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,f),n.l=!0,n.exports}var d,e})),function(t,e){"object"==typeof exports&&void 0!==module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).IMask={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")(),i={},o=function(t){try{return!!t()}catch(t){return!0}},s=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),l=a,u=Function.prototype.call,c=l?u.bind(u):function(){return u.apply(u,arguments)},d={},h={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,f=p&&!h.call({1:2},1);d.f=f?function(t){var e=p(this,t);return!!e&&e.enumerable}:h;var m,g,v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},y=a,_=Function.prototype,b=_.bind,w=_.call,x=y&&b.bind(w,w),S=y?function(t){return t&&x(t)}:function(t){return t&&function(){return w.apply(t,arguments)}},k=S,C=k({}.toString),E=k("".slice),T=function(t){return E(C(t),8,-1)},P=S,O=o,A=T,M=r.Object,L=P("".split),I=O((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?L(t,""):M(t)}:M,j=r.TypeError,D=function(t){if(null==t)throw j("Can't call method on "+t);return t},N=I,R=D,F=function(t){return N(R(t))},V=function(t){return"function"==typeof t},z=V,B=function(t){return"object"==typeof t?null!==t:z(t)},q=r,H=V,$=function(t){return H(t)?t:void 0},U=function(t,e){return arguments.length<2?$(q[t]):q[t]&&q[t][e]},W=S({}.isPrototypeOf),G=U("navigator","userAgent")||"",Y=r,Z=G,K=Y.process,X=Y.Deno,Q=K&&K.versions||X&&X.version,J=Q&&Q.v8;J&&(g=(m=J.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!g&&Z&&(!(m=Z.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=Z.match(/Chrome\/(\d+)/))&&(g=+m[1]);var tt=g,et=o,nt=!!Object.getOwnPropertySymbols&&!et((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&tt&&tt<41})),rt=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,it=U,ot=V,st=W,at=rt,lt=r.Object,ut=at?function(t){return"symbol"==typeof t}:function(t){var e=it("Symbol");return ot(e)&&st(e.prototype,lt(t))},ct=r.String,dt=V,ht=r.TypeError,pt=function(t){if(dt(t))return t;throw ht(function(t){try{return ct(t)}catch(t){return"Object"}}(t)+" is not a function")},ft=c,mt=V,gt=B,vt=r.TypeError,yt={exports:{}},_t=r,bt=Object.defineProperty,wt=function(t,e){try{bt(_t,t,{value:e,configurable:!0,writable:!0})}catch(n){_t[t]=e}return e},xt=wt,St="__core-js_shared__",kt=r[St]||xt(St,{}),Ct=kt;(yt.exports=function(t,e){return Ct[t]||(Ct[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.0",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Et=D,Tt=r.Object,Pt=function(t){return Tt(Et(t))},Ot=Pt,At=S({}.hasOwnProperty),Mt=Object.hasOwn||function(t,e){return At(Ot(t),e)},Lt=S,It=0,jt=Math.random(),Dt=Lt(1..toString),Nt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Dt(++It+jt,36)},Rt=r,Ft=yt.exports,Vt=Mt,zt=Nt,Bt=nt,qt=rt,Ht=Ft("wks"),$t=Rt.Symbol,Ut=$t&&$t.for,Wt=qt?$t:$t&&$t.withoutSetter||zt,Gt=function(t){if(!Vt(Ht,t)||!Bt&&"string"!=typeof Ht[t]){var e="Symbol."+t;Bt&&Vt($t,t)?Ht[t]=$t[t]:Ht[t]=qt&&Ut?Ut(e):Wt(e)}return Ht[t]},Yt=c,Zt=B,Kt=ut,Xt=Gt,Qt=r.TypeError,Jt=Xt("toPrimitive"),te=function(t,e){if(!Zt(t)||Kt(t))return t;var n,r=function(t,e){var n=t[e];return null==n?void 0:pt(n)}(t,Jt);if(r){if(void 0===e&&(e="default"),n=Yt(r,t,e),!Zt(n)||Kt(n))return n;throw Qt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&mt(n=t.toString)&&!gt(r=ft(n,t)))return r;if(mt(n=t.valueOf)&&!gt(r=ft(n,t)))return r;if("string"!==e&&mt(n=t.toString)&&!gt(r=ft(n,t)))return r;throw vt("Can't convert object to primitive value")}(t,e)},ee=ut,ne=function(t){var e=te(t,"string");return ee(e)?e:e+""},re=B,ie=r.document,oe=re(ie)&&re(ie.createElement),se=!s&&!o((function(){return 7!=Object.defineProperty(function(t){return oe?ie.createElement(t):{}}("div"),"a",{get:function(){return 7}}).a})),ae=s,le=c,ue=d,ce=v,de=F,he=ne,pe=Mt,fe=se,me=Object.getOwnPropertyDescriptor;i.f=ae?me:function(t,e){if(t=de(t),e=he(e),fe)try{return me(t,e)}catch(t){}if(pe(t,e))return ce(!le(ue.f,t,e),t[e])};var ge={},ve=s&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ye=r,_e=B,be=ye.String,we=ye.TypeError,xe=function(t){if(_e(t))return t;throw we(be(t)+" is not an object")},Se=s,ke=se,Ce=ve,Ee=xe,Te=ne,Pe=r.TypeError,Oe=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor;ge.f=Se?Ce?function(t,e,n){if(Ee(t),e=Te(e),Ee(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=Ae(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Oe(t,e,n)}:Oe:function(t,e,n){if(Ee(t),e=Te(e),Ee(n),ke)try{return Oe(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Pe("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Me=ge,Le=v,Ie=s?function(t,e,n){return Me.f(t,e,Le(1,n))}:function(t,e,n){return t[e]=n,t},je={exports:{}},De=V,Ne=kt,Re=S(Function.toString);De(Ne.inspectSource)||(Ne.inspectSource=function(t){return Re(t)});var Fe,Ve,ze,Be=Ne.inspectSource,qe=V,He=Be,$e=r.WeakMap,Ue=qe($e)&&/native code/.test(He($e)),We=yt.exports,Ge=Nt,Ye=We("keys"),Ze={},Ke=Ue,Xe=r,Qe=S,Je=B,tn=Ie,en=Mt,nn=kt,rn=Ze,on="Object already initialized",sn=Xe.TypeError,an=Xe.WeakMap;if(Ke||nn.state){var ln=nn.state||(nn.state=new an),un=Qe(ln.get),cn=Qe(ln.has),dn=Qe(ln.set);Fe=function(t,e){if(cn(ln,t))throw new sn(on);return e.facade=t,dn(ln,t,e),e},Ve=function(t){return un(ln,t)||{}},ze=function(t){return cn(ln,t)}}else{var hn=function(t){return Ye[t]||(Ye[t]=Ge(t))}("state");rn[hn]=!0,Fe=function(t,e){if(en(t,hn))throw new sn(on);return e.facade=t,tn(t,hn,e),e},Ve=function(t){return en(t,hn)?t[hn]:{}},ze=function(t){return en(t,hn)}}var pn={set:Fe,get:Ve,has:ze,enforce:function(t){return ze(t)?Ve(t):Fe(t,{})},getterFor:function(t){return function(e){var n;if(!Je(e)||(n=Ve(e)).type!==t)throw sn("Incompatible receiver, "+t+" required");return n}}},fn=s,mn=Mt,gn=Function.prototype,vn=fn&&Object.getOwnPropertyDescriptor,yn=mn(gn,"name"),_n=yn&&(!fn||fn&&vn(gn,"name").configurable),bn=r,wn=V,xn=Mt,Sn=Ie,kn=wt,Cn=Be,En=_n,Tn=pn.get,Pn=pn.enforce,On=String(String).split("String");(je.exports=function(t,e,n,r){var i,o=!!r&&!!r.unsafe,s=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet,l=r&&void 0!==r.name?r.name:e;wn(n)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xn(n,"name")||En&&n.name!==l)&&Sn(n,"name",l),(i=Pn(n)).source||(i.source=On.join("string"==typeof l?l:""))),t!==bn?(o?!a&&t[e]&&(s=!0):delete t[e],s?t[e]=n:Sn(t,e,n)):s?t[e]=n:kn(e,n)})(Function.prototype,"toString",(function(){return wn(this)&&Tn(this).source||Cn(this)}));var An={},Mn=Math.ceil,Ln=Math.floor,In=function(t){var e=+t;return e!=e||0===e?0:(e>0?Ln:Mn)(e)},jn=In,Dn=Math.max,Nn=Math.min,Rn=In,Fn=Math.min,Vn=function(t){return t>0?Fn(Rn(t),9007199254740991):0},zn=Vn,Bn=F,qn=function(t){return function(e,n,r){var i,o=Bn(e),s=function(t){return zn(t.length)}(o),a=function(t,e){var n=jn(t);return n<0?Dn(n+e,0):Nn(n,e)}(r,s);if(t&&n!=n){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},Hn={includes:qn(!0),indexOf:qn(!1)},$n=Mt,Un=F,Wn=Hn.indexOf,Gn=Ze,Yn=S([].push),Zn=function(t,e){var n,r=Un(t),i=0,o=[];for(n in r)!$n(Gn,n)&&$n(r,n)&&Yn(o,n);for(;e.length>i;)$n(r,n=e[i++])&&(~Wn(o,n)||Yn(o,n));return o},Kn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xn=Zn,Qn=Kn.concat("length","prototype");An.f=Object.getOwnPropertyNames||function(t){return Xn(t,Qn)};var Jn={};Jn.f=Object.getOwnPropertySymbols;var tr=U,er=An,nr=Jn,rr=xe,ir=S([].concat),or=tr("Reflect","ownKeys")||function(t){var e=er.f(rr(t)),n=nr.f;return n?ir(e,n(t)):e},sr=Mt,ar=or,lr=i,ur=ge,cr=o,dr=V,hr=/#|\.prototype\./,pr=function(t,e){var n=mr[fr(t)];return n==vr||n!=gr&&(dr(e)?cr(e):!!e)},fr=pr.normalize=function(t){return String(t).replace(hr,".").toLowerCase()},mr=pr.data={},gr=pr.NATIVE="N",vr=pr.POLYFILL="P",yr=pr,_r=r,br=i.f,wr=Ie,xr=je.exports,Sr=wt,kr=function(t,e,n){for(var r=ar(e),i=ur.f,o=lr.f,s=0;si;)for(var a,l=Fr(arguments[i++]),u=o?Br(jr(l),o(l)):jr(l),c=u.length,d=0;c>d;)a=u[d++],Ar&&!Lr(s,l,a)||(n[a]=l[a]);return n}:Vr;Er({target:"Object",stat:!0,forced:Object.assign!==qr},{assign:qr});var Hr={};Hr[Gt("toStringTag")]="z";var $r=r,Ur="[object z]"===String(Hr),Wr=V,Gr=T,Yr=Gt("toStringTag"),Zr=$r.Object,Kr="Arguments"==Gr(function(){return arguments}()),Xr=Ur?Gr:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Zr(t),Yr))?n:Kr?Gr(e):"Object"==(r=Gr(e))&&Wr(e.callee)?"Arguments":r},Qr=r.String,Jr=function(t){if("Symbol"===Xr(t))throw TypeError("Cannot convert a Symbol value to a string");return Qr(t)},ti=In,ei=Jr,ni=D,ri=r.RangeError,ii=function(t){var e=ei(ni(this)),n="",r=ti(t);if(r<0||r==1/0)throw ri("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n};Er({target:"String",proto:!0},{repeat:ii});var oi=S,si=Vn,ai=Jr,li=D,ui=oi(ii),ci=oi("".slice),di=Math.ceil,hi=function(t){return function(e,n,r){var i,o,s=ai(li(e)),a=si(n),l=s.length,u=void 0===r?" ":ai(r);return a<=l||""==u?s:((o=ui(u,di((i=a-l)/u.length))).length>i&&(o=ci(o,0,i)),t?s+o:o+s)}},pi={start:hi(!1),end:hi(!0)},fi=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(G),mi=pi.start;Er({target:"String",proto:!0,forced:fi},{padStart:function(t){return mi(this,t,arguments.length>1?arguments[1]:void 0)}});var gi=pi.end;function vi(t){return(vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _i(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ci(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ei(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=xi(t);if(e){var i=xi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ci(this,n)}}function Ti(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=xi(t)););return t}function Pi(){return(Pi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=Ti(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}}).apply(this,arguments)}function Oi(t,e,n,r){return(Oi="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,n,r){var i,o=Ti(t,e);if(o){if((i=Object.getOwnPropertyDescriptor(o,e)).set)return i.set.call(r,n),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(r,e)){if(!i.writable)return!1;i.value=n,Object.defineProperty(r,e,i)}else!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(r,e,n);return!0})(t,e,n,r)}function Ai(t,e,n,r,i){if(!Oi(t,e,n,r||t)&&i)throw new Error("failed to set property");return n}function Mi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(t){a=!0,i=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Li(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Li(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Li(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)}}),Er({global:!0},{globalThis:r});var Ii=function(){function t(e){yi(this,t),Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}return bi(t,[{key:"aggregate",value:function(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}},{key:"offset",get:function(){return this.tailShift+this.inserted.length}}]),t}();function ji(t){return"string"==typeof t||t instanceof String}var Di="NONE",Ni="LEFT",Ri="FORCE_LEFT",Fi="RIGHT",Vi="FORCE_RIGHT";function zi(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function Bi(t){return Array.isArray(t)?t:[t,new Ii]}var qi=function(){function t(e,n,r,i){for(yi(this,t),this.value=e,this.cursorPos=n,this.oldValue=r,this.oldSelection=i;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}return bi(t,[{key:"startChangePos",get:function(){return Math.min(this.cursorPos,this.oldSelection.start)}},{key:"insertedCount",get:function(){return this.cursorPos-this.startChangePos}},{key:"inserted",get:function(){return this.value.substr(this.startChangePos,this.insertedCount)}},{key:"removedCount",get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}},{key:"removed",get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)}},{key:"head",get:function(){return this.value.substring(0,this.startChangePos)}},{key:"tail",get:function(){return this.value.substring(this.startChangePos+this.insertedCount)}},{key:"removeDirection",get:function(){return!this.removedCount||this.insertedCount?Di:this.oldSelection.end!==this.cursorPos&&this.oldSelection.start!==this.cursorPos||this.oldSelection.end!==this.oldSelection.start?Ni:Fi}}]),t}(),Hi=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;yi(this,t),this.value=e,this.from=n,this.stop=r}return bi(t,[{key:"toString",value:function(){return this.value}},{key:"extend",value:function(t){this.value+=String(t)}},{key:"appendTo",value:function(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}},{key:"state",get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)}},{key:"unshift",value:function(t){if(!this.value.length||null!=t&&this.from>=t)return"";var e=this.value[0];return this.value=this.value.slice(1),e}},{key:"shift",value:function(){if(!this.value.length)return"";var t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}}]),t}();function $i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new $i.InputMask(t,e)}var Ui=function(){function t(e){yi(this,t),this._value="",this._update(Object.assign({},t.DEFAULTS,e)),this.isInitialized=!0}return bi(t,[{key:"updateOptions",value:function(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}},{key:"_update",value:function(t){Object.assign(this,t)}},{key:"state",get:function(){return{_value:this.value}},set:function(t){this._value=t._value}},{key:"reset",value:function(){this._value=""}},{key:"value",get:function(){return this._value},set:function(t){this.resolve(t)}},{key:"resolve",value:function(t){return this.reset(),this.append(t,{input:!0},""),this.doCommit(),this.value}},{key:"unmaskedValue",get:function(){return this.value},set:function(t){this.reset(),this.append(t,{},""),this.doCommit()}},{key:"typedValue",get:function(){return this.doParse(this.value)},set:function(t){this.value=this.doFormat(t)}},{key:"rawInputValue",get:function(){return this.extractInput(0,this.value.length,{raw:!0})},set:function(t){this.reset(),this.append(t,{raw:!0},""),this.doCommit()}},{key:"isComplete",get:function(){return!0}},{key:"isFilled",get:function(){return this.isComplete}},{key:"nearestInputPos",value:function(t,e){return t}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(t,e)}},{key:"extractTail",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new Hi(this.extractInput(t,e),t)}},{key:"appendTail",value:function(t){return ji(t)&&(t=new Hi(String(t))),t.appendTo(this)}},{key:"_appendCharRaw",value:function(t){return t?(this._value+=t,new Ii({inserted:t,rawInserted:t})):new Ii}},{key:"_appendChar",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=this.state,o=Bi(this.doPrepare(t,n)),s=Mi(o,2);if(t=s[0],(e=(e=s[1]).aggregate(this._appendCharRaw(t,n))).inserted){var a,l=!1!==this.doValidate(n);if(l&&null!=r){var u=this.state;!0===this.overwrite&&(a=r.state,r.unshift(this.value.length));var c=this.appendTail(r);(l=c.rawInserted===r.toString())&&c.inserted||"shift"!==this.overwrite||(this.state=u,a=r.state,r.shift(),l=(c=this.appendTail(r)).rawInserted===r.toString()),l&&c.inserted&&(this.state=u)}l||(e=new Ii,this.state=i,r&&a&&(r.state=a))}return e}},{key:"_appendPlaceholder",value:function(){return new Ii}},{key:"_appendEager",value:function(){return new Ii}},{key:"append",value:function(t,e,n){if(!ji(t))throw new Error("value should be string");var r=new Ii,i=ji(n)?new Hi(String(n)):n;e&&e.tail&&(e._beforeTailState=this.state);for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,t)+this.value.slice(e),new Ii}},{key:"withValueRefresh",value:function(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;var e=this.rawInputValue,n=this.value,r=t();return this.rawInputValue=e,this.value&&this.value!==n&&0===n.indexOf(this.value)&&this.append(n.slice(this.value.length),{},""),delete this._refreshing,r}},{key:"runIsolated",value:function(t){if(this._isolated||!this.isInitialized)return t(this);this._isolated=!0;var e=this.state,n=t(this);return this.state=e,delete this._isolated,n}},{key:"doPrepare",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(t,this,e):t}},{key:"doValidate",value:function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}},{key:"doCommit",value:function(){this.commit&&this.commit(this.value,this)}},{key:"doFormat",value:function(t){return this.format?this.format(t,this):t}},{key:"doParse",value:function(t){return this.parse?this.parse(t,this):t}},{key:"splice",value:function(t,e,n,r){var i,o=t+e,s=this.extractTail(o);this.eager&&(r=function(t){switch(t){case Ni:return Ri;case Fi:return Vi;default:return t}}(r),i=this.extractInput(0,o,{raw:!0}));var a=this.nearestInputPos(t,e>1&&0!==t&&!this.eager?Di:r),l=new Ii({tailShift:a-t}).aggregate(this.remove(a));if(this.eager&&r!==Di&&i===this.rawInputValue)if(r===Ri)for(var u;i===this.rawInputValue&&(u=this.value.length);)l.aggregate(new Ii({tailShift:-1})).aggregate(this.remove(u-1));else r===Vi&&s.unshift();return l.aggregate(this.append(n,{input:!0},s))}},{key:"maskEquals",value:function(t){return this.mask===t}}]),t}();function Wi(t){if(null==t)throw new Error("mask property should be defined");return t instanceof RegExp?$i.MaskedRegExp:ji(t)?$i.MaskedPattern:t instanceof Date||t===Date?$i.MaskedDate:t instanceof Number||"number"==typeof t||t===Number?$i.MaskedNumber:Array.isArray(t)||t===Array?$i.MaskedDynamic:$i.Masked&&t.prototype instanceof $i.Masked?t:t instanceof $i.Masked?t.constructor:t instanceof Function?$i.MaskedFunction:(console.warn("Mask not found for mask",t),$i.Masked)}function Gi(t){if($i.Masked&&t instanceof $i.Masked)return t;var e=(t=Object.assign({},t)).mask;if($i.Masked&&e instanceof $i.Masked)return e;var n=Wi(e);if(!n)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new n(t)}Ui.DEFAULTS={format:function(t){return t},parse:function(t){return t}},$i.Masked=Ui,$i.createMask=Gi;var Yi=["mask"],Zi={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},Ki=function(){function t(e){yi(this,t);var n=e.mask,r=ki(e,Yi);this.masked=Gi({mask:n}),Object.assign(this,r)}return bi(t,[{key:"reset",value:function(){this.isFilled=!1,this.masked.reset()}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===t&&e>=1?(this.isFilled=!1,this.masked.remove(t,e)):new Ii}},{key:"value",get:function(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}},{key:"unmaskedValue",get:function(){return this.masked.unmaskedValue}},{key:"isComplete",get:function(){return Boolean(this.masked.value)||this.isOptional}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isFilled)return new Ii;var n=this.masked.state,r=this.masked._appendChar(t,e);return r.inserted&&!1===this.doValidate(e)&&(r.inserted=r.rawInserted="",this.masked.state=n),r.inserted||this.isOptional||this.lazy||e.input||(r.inserted=this.placeholderChar),r.skip=!r.inserted&&!this.isOptional,this.isFilled=Boolean(r.inserted),r}},{key:"append",value:function(){var t;return(t=this.masked).append.apply(t,arguments)}},{key:"_appendPlaceholder",value:function(){var t=new Ii;return this.isFilled||this.isOptional||(this.isFilled=!0,t.inserted=this.placeholderChar),t}},{key:"_appendEager",value:function(){return new Ii}},{key:"extractTail",value:function(){var t;return(t=this.masked).extractTail.apply(t,arguments)}},{key:"appendTail",value:function(){var t;return(t=this.masked).appendTail.apply(t,arguments)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(t,e,n)}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Di,n=0,r=this.value.length,i=Math.min(Math.max(t,n),r);switch(e){case Ni:case Ri:return this.isComplete?i:n;case Fi:case Vi:return this.isComplete?i:r;default:return i}}},{key:"doValidate",value:function(){var t,e;return(t=this.masked).doValidate.apply(t,arguments)&&(!this.parent||(e=this.parent).doValidate.apply(e,arguments))}},{key:"doCommit",value:function(){this.masked.doCommit()}},{key:"state",get:function(){return{masked:this.masked.state,isFilled:this.isFilled}},set:function(t){this.masked.state=t.masked,this.isFilled=t.isFilled}}]),t}(),Xi=function(){function t(e){yi(this,t),Object.assign(this,e),this._value="",this.isFixed=!0}return bi(t,[{key:"value",get:function(){return this._value}},{key:"unmaskedValue",get:function(){return this.isUnmasking?this.value:""}},{key:"reset",value:function(){this._isRawInput=!1,this._value=""}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,t)+this._value.slice(e),this._value||(this._isRawInput=!1),new Ii}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Di,n=0,r=this._value.length;switch(e){case Ni:case Ri:return n;default:return r}}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.raw&&this._isRawInput&&this._value.slice(t,e)||""}},{key:"isComplete",get:function(){return!0}},{key:"isFilled",get:function(){return Boolean(this._value)}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Ii;if(this._value)return n;var r=this.char===t,i=r&&(this.isUnmasking||e.input||e.raw)&&!this.eager&&!e.tail;return i&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=i&&(e.raw||e.input),n}},{key:"_appendEager",value:function(){return this._appendChar(this.char)}},{key:"_appendPlaceholder",value:function(){var t=new Ii;return this._value||(this._value=t.inserted=this.char),t}},{key:"extractTail",value:function(){return arguments.length>1&&void 0!==arguments[1]||this.value.length,new Hi("")}},{key:"appendTail",value:function(t){return ji(t)&&(t=new Hi(String(t))),t.appendTo(this)}},{key:"append",value:function(t,e,n){var r=this._appendChar(t[0],e);return null!=n&&(r.tailShift+=this.appendTail(n).tailShift),r}},{key:"doCommit",value:function(){}},{key:"state",get:function(){return{_value:this._value,_isRawInput:this._isRawInput}},set:function(t){Object.assign(this,t)}}]),t}(),Qi=["chunks"],Ji=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;yi(this,t),this.chunks=e,this.from=n}return bi(t,[{key:"toString",value:function(){return this.chunks.map(String).join("")}},{key:"extend",value:function(e){if(String(e)){ji(e)&&(e=new Hi(String(e)));var n=this.chunks[this.chunks.length-1],r=n&&(n.stop===e.stop||null==e.stop)&&e.from===n.from+n.toString().length;if(e instanceof Hi)r?n.extend(e.toString()):this.chunks.push(e);else if(e instanceof t){if(null==e.stop)for(var i;e.chunks.length&&null==e.chunks[0].stop;)(i=e.chunks.shift()).from+=e.from,this.extend(i);e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}}},{key:"appendTo",value:function(e){if(!(e instanceof $i.MaskedPattern))return new Hi(this.toString()).appendTo(e);for(var n=new Ii,r=0;r=0)&&n.aggregate(e._appendPlaceholder(s)),a=i instanceof t&&e._blocks[s]),a){var l=a.appendTail(i);l.skip=!1,n.aggregate(l),e._value+=l.inserted;var u=i.toString().slice(l.rawInserted.length);u&&n.aggregate(e.append(u,{tail:!0}))}else n.aggregate(e.append(i.toString(),{tail:!0}))}return n}},{key:"state",get:function(){return{chunks:this.chunks.map((function(t){return t.state})),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(e){var n=e.chunks,r=ki(e,Qi);Object.assign(this,r),this.chunks=n.map((function(e){var n="chunks"in e?new t:new Hi;return n.state=e,n}))}},{key:"unshift",value:function(t){if(!this.chunks.length||null!=t&&this.from>=t)return"";for(var e=null!=t?t-this.from:t,n=0;n=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}},{key:"_pushLeft",value:function(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null===(e=this.block)||void 0===e?void 0:e.value.length)||0){var e;if(t())return this.ok=!0}return this.ok=!1}},{key:"_pushRight",value:function(t){for(this.pushState(),this.bindBlock();this.index=0}),Pi(xi(n.prototype),"_update",this).call(this,t)}}]),n}(Ui);$i.MaskedRegExp=eo;var no=["_blocks"],ro=function(t){wi(n,t);var e=Ei(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return yi(this,n),t.definitions=Object.assign({},Zi,t.definitions),e.call(this,Object.assign({},n.DEFAULTS,t))}return bi(n,[{key:"_update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.definitions=Object.assign({},this.definitions,t.definitions),Pi(xi(n.prototype),"_update",this).call(this,t),this._rebuildMask()}},{key:"_rebuildMask",value:function(){var t=this,e=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};var r=this.mask;if(r&&e)for(var i=!1,o=!1,s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=this._mapPosToBlock(this.value.length),r=new Ii;if(!n)return r;for(var i=n.index;;++i){var o,s=this._blocks[i];if(!s)break;var a=s._appendChar(t,Object.assign({},e,{_beforeTailState:null===(o=e._beforeTailState)||void 0===o?void 0:o._blocks[i]})),l=a.skip;if(r.aggregate(a),l||a.rawInserted)break}return r}},{key:"extractTail",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=new Ji;return e===n||this._forEachBlocksInRange(e,n,(function(e,n,i,o){var s=e.extractTail(i,o);s.stop=t._findStopBefore(n),s.from=t._blockStartPos(n),s instanceof Ji&&(s.blockIndex=n),r.extend(s)})),r}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t===e)return"";var r="";return this._forEachBlocksInRange(t,e,(function(t,e,i,o){r+=t.extractInput(i,o,n)})),r}},{key:"_findStopBefore",value:function(t){for(var e,n=0;n1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0,r=this._mapPosToBlock(t);if(r){var i=this._mapPosToBlock(e),o=i&&r.index===i.index,s=r.offset,a=i&&o?i.offset:this._blocks[r.index].value.length;if(n(this._blocks[r.index],r.index,s,a),i&&!o){for(var l=r.index+1;l0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=Pi(xi(n.prototype),"remove",this).call(this,t,e);return this._forEachBlocksInRange(t,e,(function(t,e,n,i){r.aggregate(t.remove(n,i))})),r}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Di;if(!this._blocks.length)return 0;var n=new to(this,t);if(e===Di)return n.pushRightBeforeInput()?n.pos:(n.popState(),n.pushLeftBeforeInput()?n.pos:this.value.length);if(e===Ni||e===Ri){if(e===Ni){if(n.pushRightBeforeFilled(),n.ok&&n.pos===t)return t;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),e===Ni){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=t)return n.pos;if(n.popState(),n.ok&&n.pos<=t)return n.pos;n.popState()}return n.ok?n.pos:e===Ri?0:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:0))}return e===Fi||e===Vi?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:e===Vi?this.value.length:(n.popState(),n.ok?n.pos:(n.popState(),n.ok?n.pos:this.nearestInputPos(t,Ni)))):t}},{key:"maskedBlock",value:function(t){return this.maskedBlocks(t)[0]}},{key:"maskedBlocks",value:function(t){var e=this,n=this._maskedBlocks[t];return n?n.map((function(t){return e._blocks[t]})):[]}}]),n}(Ui);ro.DEFAULTS={lazy:!0,placeholderChar:"_"},ro.STOP_CHAR="`",ro.ESCAPE_CHAR="\\",ro.InputDefinition=Ki,ro.FixedDefinition=Xi,$i.MaskedPattern=ro;var io=function(t){wi(n,t);var e=Ei(n);function n(){return yi(this,n),e.apply(this,arguments)}return bi(n,[{key:"_matchFrom",get:function(){return this.maxLength-String(this.from).length}},{key:"_update",value:function(t){t=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},t);var e=String(t.to).length;null!=t.maxLength&&(e=Math.max(e,t.maxLength)),t.maxLength=e;for(var r=String(t.from).padStart(e,"0"),i=String(t.to).padStart(e,"0"),o=0;o1&&void 0!==arguments[1]?arguments[1]:{},i=Bi(Pi(xi(n.prototype),"doPrepare",this).call(this,t.replace(/\D/g,""),r)),o=Mi(i,2);if(t=o[0],e=o[1],!this.autofix||!t)return t;var s=String(this.from).padStart(this.maxLength,"0"),a=String(this.to).padStart(this.maxLength,"0"),l=this.value+t;if(l.length>this.maxLength)return"";var u=this.boundaries(l),c=Mi(u,2),d=c[0],h=c[1];return Number(h)this.to?"pad"===this.autofix&&l.length=0}},{key:"date",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"typedValue",get:function(){return this.isComplete?Pi(xi(n.prototype),"typedValue",this):null},set:function(t){Ai(xi(n.prototype),"typedValue",t,this,!0)}},{key:"maskEquals",value:function(t){return t===Date||Pi(xi(n.prototype),"maskEquals",this).call(this,t)}}]),n}(ro);oo.DEFAULTS={pattern:"d{.}`m{.}`Y",format:function(t){return t?[String(t.getDate()).padStart(2,"0"),String(t.getMonth()+1).padStart(2,"0"),t.getFullYear()].join("."):""},parse:function(t){var e=Mi(t.split("."),3),n=e[0],r=e[1],i=e[2];return new Date(i,r-1,n)}},oo.GET_DEFAULT_BLOCKS=function(){return{d:{mask:io,from:1,to:31,maxLength:2},m:{mask:io,from:1,to:12,maxLength:2},Y:{mask:io,from:1900,to:9999}}},$i.MaskedDate=oo;var so=function(){function t(){yi(this,t)}return bi(t,[{key:"selectionStart",get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return null!=t?t:this.value.length}},{key:"selectionEnd",get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return null!=t?t:this.value.length}},{key:"select",value:function(t,e){if(null!=t&&null!=e&&(t!==this.selectionStart||e!==this.selectionEnd))try{this._unsafeSelect(t,e)}catch(t){}}},{key:"_unsafeSelect",value:function(t,e){}},{key:"isActive",get:function(){return!1}},{key:"bindEvents",value:function(t){}},{key:"unbindEvents",value:function(){}}]),t}();$i.MaskElement=so;var ao=function(t){wi(n,t);var e=Ei(n);function n(t){var r;return yi(this,n),(r=e.call(this)).input=t,r._handlers={},r}return bi(n,[{key:"rootElement",get:function(){var t,e,n;return null!==(t=null===(e=(n=this.input).getRootNode)||void 0===e?void 0:e.call(n))&&void 0!==t?t:document}},{key:"isActive",get:function(){return this.input===this.rootElement.activeElement}},{key:"_unsafeSelectionStart",get:function(){return this.input.selectionStart}},{key:"_unsafeSelectionEnd",get:function(){return this.input.selectionEnd}},{key:"_unsafeSelect",value:function(t,e){this.input.setSelectionRange(t,e)}},{key:"value",get:function(){return this.input.value},set:function(t){this.input.value=t}},{key:"bindEvents",value:function(t){var e=this;Object.keys(t).forEach((function(r){return e._toggleEventHandler(n.EVENTS_MAP[r],t[r])}))}},{key:"unbindEvents",value:function(){var t=this;Object.keys(this._handlers).forEach((function(e){return t._toggleEventHandler(e)}))}},{key:"_toggleEventHandler",value:function(t,e){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),e&&(this.input.addEventListener(t,e),this._handlers[t]=e)}}]),n}(so);ao.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},$i.HTMLMaskElement=ao;var lo=function(t){wi(n,t);var e=Ei(n);function n(){return yi(this,n),e.apply(this,arguments)}return bi(n,[{key:"_unsafeSelectionStart",get:function(){var t=this.rootElement,e=t.getSelection&&t.getSelection(),n=e&&e.anchorOffset,r=e&&e.focusOffset;return null==r||null==n||nr?n:r}},{key:"_unsafeSelect",value:function(t,e){if(this.rootElement.createRange){var n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,t),n.setEnd(this.input.lastChild||this.input,e);var r=this.rootElement,i=r.getSelection&&r.getSelection();i&&(i.removeAllRanges(),i.addRange(n))}}},{key:"value",get:function(){return this.input.textContent},set:function(t){this.input.textContent=t}}]),n}(ao);$i.HTMLContenteditableMaskElement=lo;var uo=["mask"],co=function(){function t(e,n){yi(this,t),this.el=e instanceof so?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new lo(e):new ao(e),this.masked=Gi(n),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}return bi(t,[{key:"mask",get:function(){return this.masked.mask},set:function(t){if(!this.maskEquals(t))if(t instanceof $i.Masked||this.masked.constructor!==Wi(t)){var e=Gi({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}else this.masked.updateOptions({mask:t})}},{key:"maskEquals",value:function(t){var e;return null==t||(null===(e=this.masked)||void 0===e?void 0:e.maskEquals(t))}},{key:"value",get:function(){return this._value},set:function(t){this.masked.value=t,this.updateControl(),this.alignCursor()}},{key:"unmaskedValue",get:function(){return this._unmaskedValue},set:function(t){this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor()}},{key:"typedValue",get:function(){return this.masked.typedValue},set:function(t){this.masked.typedValue=t,this.updateControl(),this.alignCursor()}},{key:"_bindEvents",value:function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}},{key:"_unbindEvents",value:function(){this.el&&this.el.unbindEvents()}},{key:"_fireEvent",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=0&&this._listeners[t].splice(n,1),this}},{key:"_onInput",value:function(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();var e=new qi(this.el.value,this.cursorPos,this.value,this._selection),n=this.masked.rawInputValue,r=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection).offset,i=n===this.masked.rawInputValue?e.removeDirection:Di,o=this.masked.nearestInputPos(e.startChangePos+r,i);i!==Di&&(o=this.masked.nearestInputPos(o,Di)),this.updateControl(),this.updateCursor(o),delete this._inputEvent}},{key:"_onChange",value:function(){this.value!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}},{key:"_onDrop",value:function(t){t.preventDefault(),t.stopPropagation()}},{key:"_onFocus",value:function(t){this.alignCursorFriendly()}},{key:"_onClick",value:function(t){this.alignCursorFriendly()}},{key:"destroy",value:function(){this._unbindEvents(),this._listeners.length=0,delete this.el}}]),t}();$i.InputMask=co;var ho=function(t){wi(n,t);var e=Ei(n);function n(){return yi(this,n),e.apply(this,arguments)}return bi(n,[{key:"_update",value:function(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),Pi(xi(n.prototype),"_update",this).call(this,t)}},{key:"doValidate",value:function(){for(var t,e=this,r=arguments.length,i=new Array(r),o=0;o=0}))&&(t=Pi(xi(n.prototype),"doValidate",this)).call.apply(t,[this].concat(i))}}]),n}(ro);$i.MaskedEnum=ho;var po=function(t){wi(n,t);var e=Ei(n);function n(t){return yi(this,n),e.call(this,Object.assign({},n.DEFAULTS,t))}return bi(n,[{key:"_update",value:function(t){Pi(xi(n.prototype),"_update",this).call(this,t),this._updateRegExps()}},{key:"_updateRegExps",value:function(){var t="^"+(this.allowNegative?"[+|\\-]?":""),e=(this.scale?"("+zi(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExpInput=new RegExp(t+"(0|([1-9]+\\d*))?"+e),this._numberRegExp=new RegExp(t+"\\d*"+e),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(zi).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(zi(this.thousandsSeparator),"g")}},{key:"_removeThousandsSeparators",value:function(t){return t.replace(this._thousandsSeparatorRegExp,"")}},{key:"_insertThousandsSeparators",value:function(t){var e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}},{key:"doPrepare",value:function(t){var e;t=t.replace(this._mapToRadixRegExp,this.radix);for(var r=this._removeThousandsSeparators(t),i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1&&void 0!==arguments[1]&&arguments[1],n=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0,i=this._adjustRangeWithSeparators(t,e),o=Mi(i,2);return t=o[0],e=o[1],this._removeThousandsSeparators(Pi(xi(n.prototype),"extractInput",this).call(this,t,e,r))}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return Pi(xi(n.prototype),"_appendCharRaw",this).call(this,t,e);var r=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);var o=Pi(xi(n.prototype),"_appendCharRaw",this).call(this,t,e);this._value=this._insertThousandsSeparators(this._value);var s=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(s);return o.tailShift+=(a-i)*this.thousandsSeparator.length,o.skip=!o.rawInserted&&t===this.thousandsSeparator,o}},{key:"_findSeparatorAround",value:function(t){if(this.thousandsSeparator){var e=t-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,e);if(n<=t)return n}return-1}},{key:"_adjustRangeWithSeparators",value:function(t,e){var n=this._findSeparatorAround(t);n>=0&&(t=n);var r=this._findSeparatorAround(e);return r>=0&&(e=r+this.thousandsSeparator.length),[t,e]}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=this._adjustRangeWithSeparators(t,e),r=Mi(n,2);t=r[0],e=r[1];var i=this.value.slice(0,t),o=this.value.slice(e),s=this._separatorsCount(i.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(i+o));var a=this._separatorsCountFromSlice(i);return new Ii({tailShift:(a-s)*this.thousandsSeparator.length})}},{key:"nearestInputPos",value:function(t,e){if(!this.thousandsSeparator)return t;switch(e){case Di:case Ni:case Ri:var n=this._findSeparatorAround(t-1);if(n>=0){var r=n+this.thousandsSeparator.length;if(t=0)return i+this.thousandsSeparator.length}return t}},{key:"doValidate",value:function(t){var e=(t.input?this._numberRegExpInput:this._numberRegExp).test(this._removeThousandsSeparators(this.value));if(e){var r=this.number;e=e&&!isNaN(r)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return e&&Pi(xi(n.prototype),"doValidate",this).call(this,t)}},{key:"doCommit",value:function(){if(this.value){var t=this.number,e=t;null!=this.min&&(e=Math.max(e,this.min)),null!=this.max&&(e=Math.min(e,this.max)),e!==t&&(this.unmaskedValue=String(e));var r=this.value;this.normalizeZeros&&(r=this._normalizeZeros(r)),this.padFractionalZeros&&this.scale>0&&(r=this._padFractionalZeros(r)),this._value=r}Pi(xi(n.prototype),"doCommit",this).call(this)}},{key:"_normalizeZeros",value:function(t){var e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,(function(t,e,n,r){return e+r})),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}},{key:"_padFractionalZeros",value:function(t){if(!t)return t;var e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}},{key:"unmaskedValue",get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,".")},set:function(t){Ai(xi(n.prototype),"unmaskedValue",t.replace(".",this.radix),this,!0)}},{key:"typedValue",get:function(){return Number(this.unmaskedValue)},set:function(t){Ai(xi(n.prototype),"unmaskedValue",String(t),this,!0)}},{key:"number",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"allowNegative",get:function(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}}]),n}(Ui);po.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:["."],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1},$i.MaskedNumber=po;var fo=function(t){wi(n,t);var e=Ei(n);function n(){return yi(this,n),e.apply(this,arguments)}return bi(n,[{key:"_update",value:function(t){t.mask&&(t.validate=t.mask),Pi(xi(n.prototype),"_update",this).call(this,t)}}]),n}(Ui);$i.MaskedFunction=fo;var mo=["compiledMasks","currentMaskRef","currentMask"],go=function(t){wi(n,t);var e=Ei(n);function n(t){var r;return yi(this,n),(r=e.call(this,Object.assign({},n.DEFAULTS,t))).currentMask=null,r}return bi(n,[{key:"_update",value:function(t){Pi(xi(n.prototype),"_update",this).call(this,t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map((function(t){return Gi(t)})):[])}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this._applyDispatch(t,e);return this.currentMask&&n.aggregate(this.currentMask._appendChar(t,e)),n}},{key:"_applyDispatch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.tail&&null!=e._beforeTailState?e._beforeTailState._value:this.value,r=this.rawInputValue,i=e.tail&&null!=e._beforeTailState?e._beforeTailState._rawInputValue:r,o=r.slice(i.length),s=this.currentMask,a=new Ii,l=s&&s.state;if(this.currentMask=this.doDispatch(t,Object.assign({},e)),this.currentMask)if(this.currentMask!==s){if(this.currentMask.reset(),i){var u=this.currentMask.append(i,{raw:!0});a.tailShift=u.inserted.length-n.length}o&&(a.tailShift+=this.currentMask.append(o,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=l;return a}},{key:"_appendPlaceholder",value:function(){var t=this._applyDispatch.apply(this,arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}},{key:"_appendEager",value:function(){var t=this._applyDispatch.apply(this,arguments);return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}},{key:"doDispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatch(t,this,e)}},{key:"doValidate",value:function(){for(var t,e,r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:vo.MASKED,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vo.MASKED,r=Gi(t);return function(t){return r.runIsolated((function(r){return r[e]=t,r[n]}))}}function _o(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r{e(t)})}class e{constructor(){this._events={}}on(e,n){t(e,t=>{this._events[t]=this._events[t]||[],this._events[t].push(n)})}off(e,n){var r=arguments.length;0!==r?t(e,t=>{if(1===r)return delete this._events[t];t in this._events!=0&&this._events[t].splice(this._events[t].indexOf(n),1)}):this._events={}}trigger(e,...n){var r=this;t(e,t=>{if(t in r._events!=0)for(let e of r._events[t])e.apply(r,n)})}}var n;const r=new RegExp("[̀-ͯ·ʾ]","g");var i;const o={"æ":"ae","ⱥ":"a","ø":"o"},s=new RegExp(Object.keys(o).join("|"),"g"),a=[[67,67],[160,160],[192,438],[452,652],[961,961],[1019,1019],[1083,1083],[1281,1289],[1984,1984],[5095,5095],[7429,7441],[7545,7549],[7680,7935],[8580,8580],[9398,9449],[11360,11391],[42792,42793],[42802,42851],[42873,42897],[42912,42922],[64256,64260],[65313,65338],[65345,65370]],l=t=>t.normalize("NFKD").replace(r,"").toLowerCase().replace(s,(function(t){return o[t]})),u=(t,e="|")=>t.length>1?"(?:"+t.join(e)+")":t[0],c=t=>{if(1===t.length)return[[t]];var e=[];return c(t.substring(1)).forEach((function(n){var r=n.slice(0);r[0]=t.charAt(0)+r[0],e.push(r),(r=n.slice(0)).unshift(t.charAt(0)),e.push(r)})),e},d=t=>(void 0===i&&(i=(()=>{var t={};a.forEach(e=>{for(let n=e[0];n<=e[1];n++){let e=String.fromCharCode(n),r=l(e);r!=e.toLowerCase()&&(r in t||(t[r]=[r]),t[r].push(e))}});var e=Object.keys(t);e=e.sort((t,e)=>e.length-t.length),n=new RegExp("("+u(e)+"[̀-ͯ·ʾ]*)","g");var r={};return e.sort((t,e)=>t.length-e.length).forEach(e=>{var n=c(e).map(e=>(e=e.map(e=>t.hasOwnProperty(e)?u(t[e]):e),u(e,"")));r[e]=u(n)}),r})()),t.normalize("NFKD").toLowerCase().split(n).map(t=>{if(""==t)return"";const e=l(t);if(i.hasOwnProperty(e))return i[e];const n=t.normalize("NFC");return n!=t?u([t,n]):t}).join("")),h=(t,e)=>{if(t)return t[e]},p=(t,e)=>{if(t){for(var n,r=e.split(".");(n=r.shift())&&(t=t[n]););return t}},f=(t,e,n)=>{var r,i;return t?-1===(i=(t+="").search(e.regex))?0:(r=e.string.length/t.length,0===i&&(r+=.5),r*n):0},m=t=>(t+"").replace(/([\$\(-\+\.\?\[-\^\{-\}])/g,"\\$1"),g=(t,e)=>{var n=t[e];n&&!Array.isArray(n)&&(t[e]=[n])},v=(t,e)=>{if(Array.isArray(t))t.forEach(e);else for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},y=(t,e)=>"number"==typeof t&&"number"==typeof e?t>e?1:t(e=l(e+"").toLowerCase())?1:e>t?-1:0;class _{constructor(t,e){this.items=t,this.settings=e||{diacritics:!0}}tokenize(t,e,n){if(!t||!t.length)return[];const r=[],i=t.split(/\s+/);var o;return n&&(o=new RegExp("^("+Object.keys(n).map(m).join("|")+"):(.*)$")),i.forEach(t=>{let n,i=null,s=null;o&&(n=t.match(o))&&(i=n[1],t=n[2]),t.length>0&&(s=m(t),this.settings.diacritics&&(s=d(s)),e&&(s="\\b"+s)),r.push({string:t,regex:s?new RegExp(s,"iu"):null,field:i})}),r}getScoreFunction(t,e){var n=this.prepareSearch(t,e);return this._getScoreFunction(n)}_getScoreFunction(t){const e=t.tokens,n=e.length;if(!n)return function(){return 0};const r=t.options.fields,i=t.weights,o=r.length,s=t.getAttrFn;if(!o)return function(){return 1};const a=1===o?function(t,e){const n=r[0].field;return f(s(e,n),t,i[n])}:function(t,e){var n=0;if(t.field){const r=s(e,t.field);!t.regex&&r?n+=1/o:n+=f(r,t,1)}else v(i,(r,i)=>{n+=f(s(e,i),t,r)});return n/o};return 1===n?function(t){return a(e[0],t)}:"and"===t.options.conjunction?function(t){for(var r,i=0,o=0;i{r+=a(e,t)}),r/n}}getSortFunction(t,e){var n=this.prepareSearch(t,e);return this._getSortFunction(n)}_getSortFunction(t){var e,n,r;const i=this,o=t.options,s=!t.query&&o.sort_empty?o.sort_empty:o.sort,a=[],l=[],u=function(e,n){return"$score"===e?n.score:t.getAttrFn(i.items[n.id],e)};if(s)for(e=0,n=s.length;e{"string"==typeof e&&(e={field:e,weight:1}),t.push(e),n[e.field]="weight"in e?e.weight:1}),r.fields=t}return{options:r,query:t.toLowerCase().trim(),tokens:this.tokenize(t,r.respect_word_boundaries,n),total:0,items:[],weights:n,getAttrFn:r.nesting?p:h}}search(t,e){var n,r,i=this;r=this.prepareSearch(t,e),e=r.options,t=r.query;const o=e.score||i._getScoreFunction(r);t.length?v(i.items,(t,i)=>{n=o(t),(!1===e.filter||n>0)&&r.items.push({score:n,id:i})}):v(i.items,(t,e)=>{r.items.push({score:1,id:e})});const s=i._getSortFunction(r);return s&&r.items.sort(s),r.total=r.items.length,"number"==typeof e.limit&&(r.items=r.items.slice(0,e.limit)),r}}const b=t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(t.indexOf("<")>-1){let e=document.createElement("div");return e.innerHTML=t.trim(),e.firstChild}return document.querySelector(t)},w=(t,e)=>{var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!1),t.dispatchEvent(n)},x=(t,e)=>{Object.assign(t.style,e)},S=(t,...e)=>{var n=C(e);(t=E(t)).map(t=>{n.map(e=>{t.classList.add(e)})})},k=(t,...e)=>{var n=C(e);(t=E(t)).map(t=>{n.map(e=>{t.classList.remove(e)})})},C=t=>{var e=[];for(let n of t)"string"==typeof n&&(n=n.trim().split(/[\11\12\14\15\40]/)),Array.isArray(n)&&(e=e.concat(n));return e.filter(Boolean)},E=t=>(Array.isArray(t)||(t=[t]),t),T=(t,e,n)=>{if(!n||n.contains(t))for(;t&&t.matches;){if(t.matches(e))return t;t=t.parentNode}},P=(t,e=0)=>e>0?t[t.length-1]:t[0],O=(t,e)=>{if(!t)return-1;e=e||t.nodeName;for(var n=0;t=t.previousElementSibling;)t.matches(e)&&n++;return n},A=(t,e)=>{for(const n in e){let r=e[n];null==r?t.removeAttribute(n):t.setAttribute(n,""+r)}},M=(t,e)=>{t.parentNode&&t.parentNode.replaceChild(e,t)},L=(t,e)=>{if(null===e)return;if("string"==typeof e){if(!e.length)return;e=new RegExp(e,"i")}const n=t=>3===t.nodeType?(t=>{var n=t.data.match(e);if(n&&t.data.length>0){var r=document.createElement("span");r.className="highlight";var i=t.splitText(n.index);i.splitText(n[0].length);var o=i.cloneNode(!0);return r.appendChild(o),M(i,r),1}return 0})(t):((t=>{if(1===t.nodeType&&t.childNodes&&!/(script|style)/i.test(t.tagName)&&("highlight"!==t.className||"SPAN"!==t.tagName))for(var e=0;e0},render:{}};const D=t=>null==t?null:N(t),N=t=>"boolean"==typeof t?t?"1":"0":t+"",R=t=>(t+"").replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),F=(t,e)=>{var n;return function(r,i){var o=this;n&&(o.loading=Math.max(o.loading-1,0),clearTimeout(n)),n=setTimeout((function(){n=null,o.loadedSearches[r]=!0,t.call(o,r,i)}),e)}},V=(t,e,n)=>{var r,i=t.trigger,o={};for(r in t.trigger=function(){var n=arguments[0];if(-1===e.indexOf(n))return i.apply(t,arguments);o[n]=arguments},n.apply(t,[]),t.trigger=i,o)i.apply(t,o[r])},z=(t,e=!1)=>{t&&(t.preventDefault(),e&&t.stopPropagation())},B=(t,e,n,r)=>{t.addEventListener(e,n,r)},q=(t,e)=>!!e&&!!e[t]&&1==(e.altKey?1:0)+(e.ctrlKey?1:0)+(e.shiftKey?1:0)+(e.metaKey?1:0),H=(t,e)=>t.getAttribute("id")||(t.setAttribute("id",e),e),U=t=>t.replace(/[\\"']/g,"\\$&"),W=(t,e)=>{e&&t.append(e)};function G(t,e){var n=Object.assign({},j,e),r=n.dataAttr,i=n.labelField,o=n.valueField,s=n.disabledField,a=n.optgroupField,l=n.optgroupLabelField,u=n.optgroupValueField,c=t.tagName.toLowerCase(),d=t.getAttribute("placeholder")||t.getAttribute("data-placeholder");if(!d&&!n.allowEmptyOption){let e=t.querySelector('option[value=""]');e&&(d=e.textContent)}var h={placeholder:d,options:[],optgroups:[],items:[],maxItems:null};return"select"===c?(()=>{var e,c=h.options,d={},p=1,f=t=>{var e=Object.assign({},t.dataset),n=r&&e[r];return"string"==typeof n&&n.length&&(e=Object.assign(e,JSON.parse(n))),e},m=(t,e)=>{var r=D(t.value);if(null!=r&&(r||n.allowEmptyOption)){if(d.hasOwnProperty(r)){if(e){var l=d[r][a];l?Array.isArray(l)?l.push(e):d[r][a]=[l,e]:d[r][a]=e}}else{var u=f(t);u[i]=u[i]||t.textContent,u[o]=u[o]||r,u[s]=u[s]||t.disabled,u[a]=u[a]||e,u.$option=t,d[r]=u,c.push(u)}t.selected&&h.items.push(r)}},g=t=>{var e,n;(n=f(t))[l]=n[l]||t.getAttribute("label")||"",n[u]=n[u]||p++,n[s]=n[s]||t.disabled,h.optgroups.push(n),e=n[u];for(const n of t.children)m(n,e)};h.maxItems=t.hasAttribute("multiple")?null:1;for(const n of t.children)"optgroup"===(e=n.tagName.toLowerCase())?g(n):"option"===e&&m(n)})():(()=>{const e=t.getAttribute(r);if(e){h.options=JSON.parse(e);for(const t of h.options)h.items.push(t[o])}else{var s=t.value.trim()||"";if(!n.allowEmptyOption&&!s.length)return;const e=s.split(n.delimiter);for(const t of e){const e={};e[i]=t,e[o]=t,h.options.push(e)}h.items=e}})(),Object.assign({},j,h,e)}var Y=0;class Z extends(function(t){return t.plugins={},class extends t{constructor(...t){super(...t),this.plugins={names:[],settings:{},requested:{},loaded:{}}}static define(e,n){t.plugins[e]={name:e,fn:n}}initializePlugins(t){var e,n;const r=this,i=[];if(Array.isArray(t))t.forEach(t=>{"string"==typeof t?i.push(t):(r.plugins.settings[t.name]=t.options,i.push(t.name))});else if(t)for(e in t)t.hasOwnProperty(e)&&(r.plugins.settings[e]=t[e],i.push(e));for(;n=i.shift();)r.require(n)}loadPlugin(e){var n=this,r=n.plugins,i=t.plugins[e];if(!t.plugins.hasOwnProperty(e))throw new Error('Unable to find "'+e+'" plugin');r.requested[e]=!0,r.loaded[e]=i.fn.apply(n,[n.plugins.settings[e]||{}]),r.names.push(e)}require(t){var e=this,n=e.plugins;if(!e.plugins.loaded.hasOwnProperty(t)){if(n.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');e.loadPlugin(t)}return n.loaded[t]}}}(e)){constructor(t,e){var n;super(),this.order=0,this.tab_key=!1,this.isOpen=!1,this.isDisabled=!1,this.isInvalid=!1,this.isLocked=!1,this.isFocused=!1,this.isInputHidden=!1,this.isSetup=!1,this.ignoreFocus=!1,this.hasOptions=!1,this.lastValue="",this.caretPos=0,this.loading=0,this.loadedSearches={},this.activeOption=null,this.activeItems=[],this.optgroups={},this.options={},this.userOptions={},this.items=[],this.renderCache={item:{},option:{}},Y++;var r=b(t),i=this;if(r.tomselect)throw new Error("Tom Select already initialized on this element");r.tomselect=this,n=(window.getComputedStyle&&window.getComputedStyle(r,null)).getPropertyValue("direction"),this.settings=G(r,e),this.input=r,this.tabIndex=r.tabIndex||0,this.is_select_tag="select"===r.tagName.toLowerCase(),this.rtl=/rtl/i.test(n),this.inputId=H(r,"tomselect-"+Y),this.isRequired=r.required,this.sifter=new _(this.options,{diacritics:this.settings.diacritics}),this.setupOptions(this.settings.options,this.settings.optgroups),delete this.settings.optgroups,delete this.settings.options,this.settings.mode=this.settings.mode||(1===this.settings.maxItems?"single":"multi"),"boolean"!=typeof this.settings.hideSelected&&(this.settings.hideSelected="multi"===this.settings.mode),"boolean"!=typeof this.settings.hidePlaceholder&&(this.settings.hidePlaceholder="multi"!==this.settings.mode);var o,s,a,l,u,c,d,h,p,f=this.settings.createFilter;"function"!=typeof f&&("string"==typeof f&&(f=new RegExp(f)),f instanceof RegExp?this.settings.createFilter=t=>f.test(t):this.settings.createFilter=()=>!0),this.initializePlugins(this.settings.plugins),this.setupCallbacks(),this.setupTemplates(),e=i.settings,r=i.input;const g={passive:!0},v=i.inputId+"-ts-dropdown";if(c=i.settings.mode,d=r.getAttribute("class")||"",o=b("
"),S(o,e.wrapperClass,d,c),s=b('
'),S(s,e.inputClass),W(o,s),l=i._render("dropdown"),S(l,e.dropdownClass,c),u=b(`
`),S(u,e.dropdownContentClass),W(l,u),b(e.dropdownParent||o).appendChild(l),e.controlInput)a=b(e.controlInput);else{a=b('');for(const t of["autocorrect","autocapitalize","autocomplete"])r.getAttribute(t)&&A(a,{[t]:r.getAttribute(t)})}e.controlInput||(a.tabIndex=r.disabled?-1:i.tabIndex,s.appendChild(a)),A(a,{role:"combobox",haspopup:"listbox","aria-expanded":"false","aria-controls":v}),p=H(a,i.inputId+"-tomselected");let y="label[for='"+(t=>t.replace(/['"\\]/g,"\\$&"))(i.inputId)+"']",w=document.querySelector(y);if(w){A(w,{for:p});let t=H(w,i.inputId+"-ts-label");A(u,{"aria-labelledby":t})}i.settings.copyClassesToDropdown&&S(l,d),o.style.width=r.style.width,i.plugins.names.length&&(h="plugin-"+i.plugins.names.join(" plugin-"),S([o,l],h)),(null===e.maxItems||e.maxItems>1)&&i.is_select_tag&&A(r,{multiple:"multiple"}),i.settings.placeholder&&A(a,{placeholder:e.placeholder}),!i.settings.splitOn&&i.settings.delimiter&&(i.settings.splitOn=new RegExp("\\s*"+m(i.settings.delimiter)+"+\\s*")),this.settings.load&&this.settings.loadThrottle&&(this.settings.load=F(this.settings.load,this.settings.loadThrottle)),this.control=s,this.control_input=a,this.wrapper=o,this.dropdown=l,this.dropdown_content=u,i.control_input.type=r.type,B(l,"click",t=>{const e=T(t.target,"[data-selectable]");e&&(i.onOptionSelect(t,e),z(t,!0))}),B(s,"click",t=>{var e=T(t.target,"."+i.settings.itemClass,s);e&&i.onItemSelect(t,e)?z(t,!0):""==a.value&&(i.onClick(),z(t,!0))}),B(a,"mousedown",t=>{""!==a.value&&t.stopPropagation()}),B(a,"keydown",t=>i.onKeyDown(t)),B(a,"keyup",t=>i.onKeyUp(t)),B(a,"keypress",t=>i.onKeyPress(t)),B(a,"resize",()=>i.positionDropdown(),g),B(a,"blur",()=>i.onBlur()),B(a,"focus",t=>i.onFocus(t)),B(a,"paste",t=>i.onPaste(t));const x=t=>{const e=t.composedPath()[0];if(!o.contains(e)&&!l.contains(e))return i.isFocused&&i.blur(),void i.inputState();z(t,!0)};var k=()=>{i.isOpen&&i.positionDropdown()};B(document,"mousedown",x),B(window,"sroll",k,g),B(window,"resize",k,g),this._destroy=()=>{document.removeEventListener("mousedown",x),window.removeEventListener("sroll",k),window.removeEventListener("resize",k)},this.revertSettings={innerHTML:r.innerHTML,tabIndex:r.tabIndex},r.tabIndex=-1,A(r,{hidden:"hidden"}),r.insertAdjacentElement("afterend",i.wrapper),i.setValue(e.items),e.items=[],B(r,"invalid",t=>{z(t),i.isInvalid||(i.isInvalid=!0,i.refreshState())}),i.updateOriginalInput(),i.refreshItems(),i.close(!1),i.inputState(),i.isSetup=!0,r.disabled&&i.disable(),i.on("change",this.onChange),S(r,"tomselected"),i.trigger("initialize"),!0===e.preload&&i.load(""),i.setup()}setup(){}setupOptions(t=[],e=[]){for(const e of t)this.registerOption(e);for(const t of e)this.registerOptionGroup(t)}setupTemplates(){var t=this,e=t.settings.labelField,n=t.settings.optgroupLabelField,r={optgroup:t=>{let e=document.createElement("div");return e.className="optgroup",e.appendChild(t.options),e},optgroup_header:(t,e)=>'
'+e(t[n])+"
",option:(t,n)=>"
"+n(t[e])+"
",item:(t,n)=>"
"+n(t[e])+"
",option_create:(t,e)=>'
Add '+e(t.input)+"
",no_results:()=>'
No results found
',loading:()=>'
',not_loading:()=>{},dropdown:()=>"
"};t.settings.render=Object.assign({},r,t.settings.render)}setupCallbacks(){var t,e,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",item_select:"onItemSelect",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(t in n)(e=this.settings[n[t]])&&this.on(t,e)}onClick(){var t=this;if(t.activeItems.length>0)return t.clearActiveItems(),void t.focus();t.isFocused&&t.isOpen?t.blur():t.focus()}onMouseDown(){}onChange(){w(this.input,"input"),w(this.input,"change")}onPaste(t){var e=this;e.isFull()||e.isInputHidden||e.isLocked?z(t):e.settings.splitOn&&setTimeout(()=>{var t=e.inputValue();if(t.match(e.settings.splitOn)){var n=t.trim().split(e.settings.splitOn);for(const t of n)e.createItem(t)}},0)}onKeyPress(t){var e=this;if(!e.isLocked){var n=String.fromCharCode(t.keyCode||t.which);return e.settings.create&&"multi"===e.settings.mode&&n===e.settings.delimiter?(e.createItem(),void z(t)):void 0}z(t)}onKeyDown(t){var e=this;if(e.isLocked)9!==t.keyCode&&z(t);else{switch(t.keyCode){case 65:if(q(I,t))return void e.selectAll();break;case 27:return e.isOpen&&(z(t,!0),e.close()),void e.clearActiveItems();case 40:if(!e.isOpen&&e.hasOptions)e.open();else if(e.activeOption){let t=e.getAdjacent(e.activeOption,1);t&&e.setActiveOption(t)}return void z(t);case 38:if(e.activeOption){let t=e.getAdjacent(e.activeOption,-1);t&&e.setActiveOption(t)}return void z(t);case 13:return void(e.isOpen&&e.activeOption?(e.onOptionSelect(t,e.activeOption),z(t)):e.settings.create&&e.createItem()&&z(t));case 37:return void e.advanceSelection(-1,t);case 39:return void e.advanceSelection(1,t);case 9:return void(e.settings.selectOnTab&&(e.isOpen&&e.activeOption&&(e.tab_key=!0,e.onOptionSelect(t,e.activeOption),z(t),e.tab_key=!1),e.settings.create&&e.createItem()&&z(t)));case 8:case 46:return void e.deleteSelection(t)}e.isInputHidden&&!q(I,t)&&z(t)}}onKeyUp(t){var e=this;if(e.isLocked)z(t);else{var n=e.inputValue();e.lastValue!==n&&(e.lastValue=n,e.settings.shouldLoad.call(e,n)&&e.load(n),e.refreshOptions(),e.trigger("type",n))}}onFocus(t){var e=this,n=e.isFocused;if(e.isDisabled)return e.blur(),void z(t);e.ignoreFocus||(e.isFocused=!0,"focus"===e.settings.preload&&e.load(""),n||e.trigger("focus"),e.activeItems.length||(e.showInput(),e.refreshOptions(!!e.settings.openOnFocus)),e.refreshState())}onBlur(){var t=this;if(t.isFocused){t.isFocused=!1,t.ignoreFocus=!1;var e=()=>{t.close(),t.setActiveItem(),t.setCaret(t.items.length),t.trigger("blur")};t.settings.create&&t.settings.createOnBlur?t.createItem(null,!1,e):e()}}onOptionSelect(t,e){var n,r=this;e&&(e.parentElement&&e.parentElement.matches("[data-disabled]")||(e.classList.contains("create")?r.createItem(null,!0,()=>{r.settings.closeAfterSelect&&r.close()}):void 0!==(n=e.dataset.value)&&(r.lastQuery=null,r.addItem(n),r.settings.closeAfterSelect&&r.close(),!r.settings.hideSelected&&t.type&&/click/.test(t.type)&&r.setActiveOption(e))))}onItemSelect(t,e){var n=this;return!n.isLocked&&"multi"===n.settings.mode&&(z(t),n.setActiveItem(e,t),!0)}canLoad(t){return!!this.settings.load&&!this.loadedSearches.hasOwnProperty(t)}load(t){const e=this;if(!e.canLoad(t))return;S(e.wrapper,e.settings.loadingClass),e.loading++;const n=e.loadCallback.bind(e);e.settings.load.call(e,t,n)}loadCallback(t,e){const n=this;n.loading=Math.max(n.loading-1,0),n.lastQuery=null,n.clearActiveOption(),n.setupOptions(t,e),n.refreshOptions(n.isFocused&&!n.isInputHidden),n.loading||k(n.wrapper,n.settings.loadingClass),n.trigger("load",t,e)}setTextboxValue(t=""){var e=this.control_input;e.value!==t&&(e.value=t,w(e,"update"),this.lastValue=t)}getValue(){return this.is_select_tag&&this.input.hasAttribute("multiple")?this.items:this.items.join(this.settings.delimiter)}setValue(t,e){V(this,e?[]:["change"],()=>{this.clear(e),this.addItems(t,e)})}setMaxItems(t){0===t&&(t=null),this.settings.maxItems=t,this.refreshState()}setActiveItem(t,e){var n,r,i,o,s,a,l=this;if("single"!==l.settings.mode){if(!t)return l.clearActiveItems(),void(l.isFocused&&l.showInput());if("click"===(n=e&&e.type.toLowerCase())&&q("shiftKey",e)&&l.activeItems.length){for(a=l.getLastActive(),(i=Array.prototype.indexOf.call(l.control.children,a))>(o=Array.prototype.indexOf.call(l.control.children,t))&&(s=i,i=o,o=s),r=i;r<=o;r++)t=l.control.children[r],-1===l.activeItems.indexOf(t)&&l.setActiveItemClass(t);z(e)}else"click"===n&&q(I,e)||"keydown"===n&&q("shiftKey",e)?t.classList.contains("active")?l.removeActiveItem(t):l.setActiveItemClass(t):(l.clearActiveItems(),l.setActiveItemClass(t));l.hideInput(),l.isFocused||l.focus()}}setActiveItemClass(t){const e=this,n=e.control.querySelector(".last-active");n&&k(n,"last-active"),S(t,"active last-active"),e.trigger("item_select",t),-1==e.activeItems.indexOf(t)&&e.activeItems.push(t)}removeActiveItem(t){var e=this.activeItems.indexOf(t);this.activeItems.splice(e,1),k(t,"active")}clearActiveItems(){k(this.activeItems,"active"),this.activeItems=[]}setActiveOption(t){t!==this.activeOption&&(this.clearActiveOption(),t&&(this.activeOption=t,A(this.control_input,{"aria-activedescendant":t.getAttribute("id")}),A(t,{"aria-selected":"true"}),S(t,"active"),this.scrollToOption(t)))}scrollToOption(t,e){if(!t)return;const n=this.dropdown_content,r=n.clientHeight,i=n.scrollTop||0,o=t.offsetHeight,s=t.getBoundingClientRect().top-n.getBoundingClientRect().top+i;s+o>r+i?this.scroll(s-r+o,e):s0||!t.isFocused&&this.settings.hidePlaceholder&&t.items.length>0?(t.setTextboxValue(),t.isInputHidden=!0,S(t.wrapper,"input-hidden")):(t.isInputHidden=!1,k(t.wrapper,"input-hidden")))}hideInput(){this.inputState()}showInput(){this.inputState()}inputValue(){return this.control_input.value.trim()}focus(){var t=this;t.isDisabled||(t.ignoreFocus=!0,t.control_input.focus(),setTimeout(()=>{t.ignoreFocus=!1,t.onFocus()},0))}blur(){this.control_input.blur(),this.onBlur()}getScoreFunction(t){return this.sifter.getScoreFunction(t,this.getSearchOptions())}getSearchOptions(){var t=this.settings,e=t.sortField;return"string"==typeof t.sortField&&(e=[{field:t.sortField}]),{fields:t.searchField,conjunction:t.searchConjunction,sort:e,nesting:t.nesting}}search(t){var e,n,r,i=this,o=this.getSearchOptions();if(i.settings.score&&"function"!=typeof(r=i.settings.score.call(i,t)))throw new Error('Tom Select "score" setting must be a function that returns a function');if(t!==i.lastQuery?(i.lastQuery=t,n=i.sifter.search(t,Object.assign(o,{score:r})),i.currentResults=n):n=Object.assign({},i.currentResults),i.settings.hideSelected)for(e=n.items.length-1;e>=0;e--){let t=D(n.items[e].id);t&&-1!==i.items.indexOf(t)&&n.items.splice(e,1)}return n}refreshOptions(t=!0){var e,n,r,i,o,s,a,l,u,c,d;const h={},p=[];var f,m=this,g=m.inputValue(),v=m.search(g),y=m.activeOption,_=m.settings.shouldOpen||!1,b=m.dropdown_content;for(y&&(u=y.dataset.value,c=y.closest("[data-group]")),i=v.items.length,"number"==typeof m.settings.maxOptions&&(i=Math.min(i,m.settings.maxOptions)),i>0&&(_=!0),e=0;e0&&(a=a.cloneNode(!0),A(a,{id:i.$id+"-clone-"+n,"aria-selected":null}),a.classList.add("ts-cloned"),k(a,"active")),u==t&&c&&c.dataset.group===o&&(y=a),h[o].appendChild(a)}for(o of(this.settings.lockOptgroupOrder&&p.sort((t,e)=>(m.optgroups[t]&&m.optgroups[t].$order||0)-(m.optgroups[e]&&m.optgroups[e].$order||0)),a=document.createDocumentFragment(),p))if(m.optgroups.hasOwnProperty(o)&&h[o].children.length){let t=document.createDocumentFragment(),e=m.render("optgroup_header",m.optgroups[o]);W(t,e),W(t,h[o]);let n=m.render("optgroup",{group:m.optgroups[o],options:t});W(a,n)}else W(a,h[o]);if(b.innerHTML="",W(b,a),m.settings.highlight&&(f=b.querySelectorAll("span.highlight"),Array.prototype.forEach.call(f,(function(t){var e=t.parentNode;e.replaceChild(t.firstChild,t),e.normalize()})),v.query.length&&v.tokens.length))for(const t of v.tokens)L(b,t.regex);var w=t=>{let e=m.render(t,{input:g});return e&&(_=!0,b.insertBefore(e,b.firstChild)),e};if(m.settings.shouldLoad.call(m,g)?m.loading?w("loading"):0===v.items.length&&w("no_results"):w("not_loading"),(l=m.canCreate(g))&&(d=w("option_create")),m.hasOptions=v.items.length>0||l,_){if(v.items.length>0){if(!b.contains(y)&&"single"===m.settings.mode&&m.items.length&&(y=m.getOption(m.items[0])),!b.contains(y)){let t=0;d&&!m.settings.addPrecedence&&(t=1),y=m.selectable()[t]}}else d&&(y=d);t&&!m.isOpen&&(m.open(),m.scrollToOption(y,"auto")),m.setActiveOption(y)}else m.clearActiveOption(),t&&m.isOpen&&m.close(!1)}selectable(){return this.dropdown_content.querySelectorAll("[data-selectable]")}addOption(t){var e,n=this;if(Array.isArray(t))for(const e of t)n.addOption(e);else(e=n.registerOption(t))&&(n.userOptions[e]=!0,n.lastQuery=null,n.trigger("option_add",e,t))}registerOption(t){var e=D(t[this.settings.valueField]);return null!==e&&!this.options.hasOwnProperty(e)&&(t.$order=t.$order||++this.order,t.$id=this.inputId+"-opt-"+t.$order,this.options[e]=t,e)}registerOptionGroup(t){var e=D(t[this.settings.optgroupValueField]);return null!==e&&(t.$order=t.$order||++this.order,this.optgroups[e]=t,e)}addOptionGroup(t,e){var n;e[this.settings.optgroupValueField]=t,(n=this.registerOptionGroup(e))&&this.trigger("optgroup_add",n,e)}removeOptionGroup(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.clearCache(),this.trigger("optgroup_remove",t))}clearOptionGroups(){this.optgroups={},this.clearCache(),this.trigger("optgroup_clear")}updateOption(t,e){const n=this;var r,i;const o=D(t);if(null===o)return;const s=D(e[n.settings.valueField]),a=n.getOption(o),l=n.getItem(o);if(n.options.hasOwnProperty(o)){if("string"!=typeof s)throw new Error("Value must be set in option data");if(e.$order=e.$order||n.options[o].$order,delete n.options[o],n.uncacheValue(s),n.uncacheValue(o,!1),n.options[s]=e,a){if(n.dropdown_content.contains(a)){const t=n._render("option",e);M(a,t),n.activeOption===a&&n.setActiveOption(t)}a.remove()}l&&(-1!==(i=n.items.indexOf(o))&&n.items.splice(i,1,s),r=n._render("item",e),l.classList.contains("active")&&S(r,"active"),M(l,r)),n.lastQuery=null}}removeOption(t,e){const n=this;t=N(t),n.uncacheValue(t),delete n.userOptions[t],delete n.options[t],n.lastQuery=null,n.trigger("option_remove",t),n.removeItem(t,e)}clearOptions(){this.loadedSearches={},this.userOptions={},this.clearCache();var t={};for(let e in this.options)this.options.hasOwnProperty(e)&&this.items.indexOf(e)>=0&&(t[e]=this.options[e]);this.options=this.sifter.items=t,this.lastQuery=null,this.trigger("option_clear")}uncacheValue(t,e=!0){const n=this,r=n.renderCache.item,i=n.renderCache.option;if(r&&delete r[t],i&&delete i[t],e){const e=n.getOption(t);e&&e.remove()}}getOption(t,e=!1){var n=D(t),r=this.rendered("option",n);return!r&&e&&null!==n&&(r=this._render("option",this.options[n])),r}getAdjacent(t,e,n="option"){var r;if(!t)return null;r="item"==n?this.controlChildren():this.dropdown_content.querySelectorAll("[data-selectable]");for(let n=0;n0?r[n+1]:r[n-1];return null}getItem(t){if("object"==typeof t)return t;var e=D(t);return null!==e?this.control.querySelector(`[data-value="${U(e)}"]`):null}addItems(t,e){var n=this,r=Array.isArray(t)?t:[t];for(let t=0,i=(r=r.filter(t=>-1===n.items.indexOf(t))).length;t{var n,r;const i=this,o=i.settings.mode,s=D(t);if((!s||-1===i.items.indexOf(s)||("single"===o&&i.close(),"single"!==o&&i.settings.duplicates))&&null!==s&&i.options.hasOwnProperty(s)&&("single"===o&&i.clear(e),"multi"!==o||!i.isFull())){if(n=i._render("item",i.options[s]),i.control.contains(n)&&(n=n.cloneNode(!0)),r=i.isFull(),i.items.splice(i.caretPos,0,s),i.insertAtCaret(n),i.isSetup){let t=i.selectable();if(!i.isPending&&i.settings.hideSelected){let t=i.getOption(s),e=i.getAdjacent(t,1);e&&i.setActiveOption(e)}i.isPending||i.refreshOptions(i.isFocused&&"single"!==o),!t.length||i.isFull()?i.close():i.isPending||i.positionDropdown(),i.trigger("item_add",s,n),i.isPending||i.updateOriginalInput({silent:e})}(!i.isPending||!r&&i.isFull())&&i.refreshState()}})}removeItem(t=null,e){const n=this;if(!(t=n.getItem(t)))return;var r,i;const o=t.dataset.value;r=O(t),t.remove(),t.classList.contains("active")&&(i=n.activeItems.indexOf(t),n.activeItems.splice(i,1),k(t,"active")),n.items.splice(r,1),n.lastQuery=null,!n.settings.persist&&n.userOptions.hasOwnProperty(o)&&n.removeOption(o,e),r{})){var r,i=this,o=i.caretPos;if(t=t||i.inputValue(),!i.canCreate(t))return n(),!1;i.lock();var s=!1,a=t=>{if(i.unlock(),!t||"object"!=typeof t)return n();var r=D(t[i.settings.valueField]);if("string"!=typeof r)return n();i.setTextboxValue(),i.addOption(t),i.setCaret(o),i.addItem(r),i.refreshOptions(e&&"single"!==i.settings.mode),n(t),s=!0};return r="function"==typeof i.settings.create?i.settings.create.call(this,t,a):{[i.settings.labelField]:t,[i.settings.valueField]:t},s||a(r),!0}refreshItems(){var t=this;t.lastQuery=null,t.isSetup&&t.addItems(t.items),t.updateOriginalInput(),t.refreshState()}refreshState(){var t=this;t.refreshValidityState();var e=t.isFull(),n=t.isLocked;t.wrapper.classList.toggle("rtl",t.rtl);var r,i=t.control.classList;i.toggle("focus",t.isFocused),i.toggle("disabled",t.isDisabled),i.toggle("required",t.isRequired),i.toggle("invalid",t.isInvalid),i.toggle("locked",n),i.toggle("full",e),i.toggle("not-full",!e),i.toggle("input-active",t.isFocused&&!t.isInputHidden),i.toggle("dropdown-active",t.isOpen),i.toggle("has-options",(r=t.options,0===Object.keys(r).length)),i.toggle("has-items",t.items.length>0)}refreshValidityState(){var t=this;if(t.input.checkValidity){this.isRequired&&(t.input.required=!0);var e=!t.input.checkValidity();t.isInvalid=e,t.control_input.required=e,this.isRequired&&(t.input.required=!e)}}isFull(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems}updateOriginalInput(t={}){const e=this;var n,r,i,o;if(e.is_select_tag){const t=[];function s(n,r,i){return n||(n=b('")),e.input.prepend(n),t.push(n),A(n,{selected:"true"}),n.selected=!0,n}if(e.input.querySelectorAll("option[selected]").forEach(t=>{A(t,{selected:null}),t.selected=!1}),0!=e.items.length||"single"!=e.settings.mode||e.isRequired)for(n=e.items.length-1;n>=0;n--)r=e.items[n],o=(i=e.options[r])[e.settings.labelField]||"",t.includes(i.$option)?s(e.input.querySelector(`option[value="${U(r)}"]:not([selected])`),r,o):i.$option=s(i.$option,r,o);else s(e.input.querySelector('option[value=""]'),"","")}else e.input.value=e.getValue();e.isSetup&&(t.silent||e.trigger("change",e.getValue()))}open(){var t=this;t.isLocked||t.isOpen||"multi"===t.settings.mode&&t.isFull()||(t.isOpen=!0,A(t.control_input,{"aria-expanded":"true"}),t.refreshState(),x(t.dropdown,{visibility:"hidden",display:"block"}),t.positionDropdown(),x(t.dropdown,{visibility:"visible",display:"block"}),t.focus(),t.trigger("dropdown_open",t.dropdown))}close(t=!0){var e=this,n=e.isOpen;t&&(e.setTextboxValue(),"single"===e.settings.mode&&e.items.length&&(e.hideInput(),e.tab_key||e.blur())),e.isOpen=!1,A(e.control_input,{"aria-expanded":"false"}),x(e.dropdown,{display:"none"}),e.settings.hideSelected&&e.clearActiveOption(),e.refreshState(),n&&e.trigger("dropdown_close",e.dropdown)}positionDropdown(){if("body"===this.settings.dropdownParent){var t=this.control,e=t.getBoundingClientRect(),n=t.offsetHeight+e.top+window.scrollY,r=e.left+window.scrollX;x(this.dropdown,{width:e.width+"px",top:n+"px",left:r+"px"})}}clear(t){var e=this;if(e.items.length){var n=e.controlChildren();for(const t of n)e.removeItem(t,!0);e.showInput(),t||e.updateOriginalInput(),e.trigger("clear")}}insertAtCaret(t){var e=this,n=Math.min(e.caretPos,e.items.length),r=e.control;0===n?r.insertBefore(t,r.firstChild):r.insertBefore(t,r.children[n]),e.setCaret(n+1)}deleteSelection(t){var e,n,r,i,o,s=this;e=t&&8===t.keyCode?-1:1,n={start:(o=s.control_input).selectionStart||0,length:(o.selectionEnd||0)-(o.selectionStart||0)};const a=[];if(s.activeItems.length){i=P(s.activeItems,e),r=O(i),e>0&&r++;for(const t of s.activeItems)a.push(t)}else if((s.isFocused||"single"===s.settings.mode)&&s.items.length){const t=s.controlChildren();e<0&&0===n.start&&0===n.length?a.push(t[s.caretPos-1]):e>0&&n.start===s.inputValue().length&&a.push(t[s.caretPos])}const l=a.map(t=>t.dataset.value);if(!l.length||"function"==typeof s.settings.onDelete&&!1===s.settings.onDelete.call(s,l,t))return!1;for(z(t,!0),void 0!==r&&s.setCaret(r);a.length;)s.removeItem(a.pop());return s.showInput(),s.positionDropdown(),s.refreshOptions(!1),!0}advanceSelection(t,e){var n,r,i,o=this;o.rtl&&(t*=-1),o.inputValue().length||(q(I,e)||q("shiftKey",e)?(i=(r=o.getLastActive(t))?r.classList.contains("active")?o.getAdjacent(r,t,"item"):r:t>0?o.control_input.nextElementSibling:o.control_input.previousElementSibling)&&(i.classList.contains("active")&&o.removeActiveItem(r),o.setActiveItemClass(i)):o.isFocused&&!o.activeItems.length?o.setCaret(o.caretPos+t):(r=o.getLastActive(t))&&(n=O(r),o.setCaret(t>0?n+1:n),o.setActiveItem()))}getLastActive(t){let e=this.control.querySelector(".last-active");if(e)return e;var n=this.control.querySelectorAll(".active");return n?P(n,t):void 0}setCaret(t){var e=this;"single"===e.settings.mode||e.settings.controlInput?t=e.items.length:(t=Math.max(0,Math.min(e.items.length,t)))==e.caretPos||e.isPending||e.controlChildren().forEach((n,r)=>{r0&&this.settings.createFilter.call(this,t)}hook(t,e,n){var r=this,i=r[e];r[e]=function(){var e,o;return"after"===t&&(e=i.apply(r,arguments)),o=n.apply(r,arguments),"instead"===t?o:("before"===t&&(e=i.apply(r,arguments)),e)}}}return Z.define("change_listener",(function(){const t=this,e=e=>e.join(t.settings.delimiter);B(t.input,"change",()=>{var n=G(t.input,{delimiter:t.settings.delimiter});e(t.items)!=e(n.items)&&(t.setupOptions(n.options,n.optgroups),t.setValue(n.items))})})),Z.define("checkbox_options",(function(){var t=this,e=t.onOptionSelect;t.settings.hideSelected=!1;var n=function(t){setTimeout(()=>{var e=t.querySelector("input");t.classList.contains("selected")?e.checked=!0:e.checked=!1},1)};t.hook("after","setupTemplates",()=>{var e=t.settings.render.option;t.settings.render.option=(n,r)=>{var i=b(e.call(t,n,r)),o=document.createElement("input");o.addEventListener("click",(function(t){z(t)})),o.type="checkbox";const s=D(n[t.settings.valueField]);return s&&t.items.indexOf(s)>-1&&(o.checked=!0),i.prepend(o),i}}),t.on("item_remove",e=>{var r=t.getOption(e);r&&(r.classList.remove("selected"),n(r))}),t.hook("instead","onOptionSelect",(r,i)=>{if(i.classList.contains("selected"))return i.classList.remove("selected"),t.removeItem(i.dataset.value),t.refreshOptions(),void z(r,!0);e.call(t,r,i),n(i)})})),Z.define("clear_button",(function(t){const e=this,n=Object.assign({className:"clear-button",title:"Clear All",html:t=>`
×
`},t);e.on("initialize",()=>{var t=b(n.html(n));t.addEventListener("click",t=>{e.clear(),t.preventDefault(),t.stopPropagation()}),e.control.appendChild(t)})})),Z.define("drag_drop",(function(){var t=this;if(!$.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===t.settings.mode){var e=t.lock,n=t.unlock;t.hook("instead","lock",()=>{var n=$(t.control).data("sortable");return n&&n.disable(),e.call(t)}),t.hook("instead","unlock",()=>{var e=$(t.control).data("sortable");return e&&e.enable(),n.call(t)}),t.on("initialize",()=>{var e=$(t.control).sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:t.isLocked,start:(t,n)=>{n.placeholder.css("width",n.helper.css("width")),e.css({overflow:"visible"})},stop:()=>{e.css({overflow:"hidden"});var n=[];e.children("[data-value]").each((function(){this.dataset.value&&n.push(this.dataset.value)})),t.setValue(n)}})})}})),Z.define("dropdown_header",(function(t){const e=this,n=Object.assign({title:"Untitled",headerClass:"dropdown-header",titleRowClass:"dropdown-header-title",labelClass:"dropdown-header-label",closeClass:"dropdown-header-close",html:t=>'
'+t.title+'×
'},t);e.on("initialize",()=>{var t=b(n.html(n)),r=t.querySelector("."+n.closeClass);r&&r.addEventListener("click",t=>{z(t,!0),e.close()}),e.dropdown.insertBefore(t,e.dropdown.firstChild)})})),Z.define("dropdown_input",(function(){var t=this,e=t.settings.controlInput||'';e=b(e),t.settings.placeholder&&A(e,{placeholder:t.settings.placeholder}),t.settings.controlInput=e,t.settings.shouldOpen=!0,t.on("initialize",()=>{B(t.wrapper,"focus",e=>{t.onFocus(e)});const n=()=>{A(t.wrapper,{tabindex:t.input.disabled?"-1":t.tabIndex})};t.on("dropdown_close",n),t.on("dropdown_open",()=>A(t.wrapper,{tabindex:"-1"})),n(),B(t.wrapper,"keypress",e=>{if(!t.control.contains(e.target)&&!t.dropdown.contains(e.target))switch(e.keyCode){case 13:return void t.onClick()}});let r=b('`),i.append(o)),o}Object.keys(R).forEach(t=>{Object.keys(R[t]).forEach(e=>{V.prototype[e]=R[t][e]})}),V.use([function({swiper:t,on:e,emit:n}){const r=o();let i=null;const s=()=>{t&&!t.destroyed&&t.initialized&&(n("beforeResize"),n("resize"))},a=()=>{t&&!t.destroyed&&t.initialized&&n("orientationchange")};e("init",()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(i=new ResizeObserver(e=>{const{width:n,height:r}=t;let i=n,o=r;e.forEach(({contentBoxSize:e,contentRect:n,target:r})=>{r&&r!==t.el||(i=n?n.width:(e[0]||e).inlineSize,o=n?n.height:(e[0]||e).blockSize)}),i===n&&o===r||s()}),i.observe(t.el)):(r.addEventListener("resize",s),r.addEventListener("orientationchange",a))}),e("destroy",()=>{i&&i.unobserve&&t.el&&(i.unobserve(t.el),i=null),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",a)})},function({swiper:t,extendParams:e,on:n,emit:r}){const i=[],s=o(),a=(t,e={})=>{const n=new(s.MutationObserver||s.WebkitMutationObserver)(t=>{if(1===t.length)return void r("observerUpdate",t[0]);const e=function(){r("observerUpdate",t[0])};s.requestAnimationFrame?s.requestAnimationFrame(e):s.setTimeout(e,0)});n.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),i.push(n)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t{i.forEach(t=>{t.disconnect()}),i.splice(0,i.length)})}]);const X=[function({swiper:t,extendParams:e,on:n}){let r;function i(e,n){const r=t.params.virtual;if(r.cache&&t.virtual.cache[n])return t.virtual.cache[n];const i=r.renderSlide?u(r.renderSlide.call(t,e,n)):u(`
${e}
`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",n),r.cache&&(t.virtual.cache[n]=i),i}function o(e){const{slidesPerView:n,slidesPerGroup:r,centeredSlides:o}=t.params,{addSlidesBefore:s,addSlidesAfter:a}=t.params.virtual,{from:l,to:u,slides:c,slidesGrid:d,offset:h}=t.virtual;t.params.cssMode||t.updateActiveIndex();const p=t.activeIndex||0;let f,m,g;f=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",o?(m=Math.floor(n/2)+r+a,g=Math.floor(n/2)+r+s):(m=n+(r-1)+a,g=r+s);const v=Math.max((p||0)-g,0),y=Math.min((p||0)+m,c.length-1),_=(t.slidesGrid[v]||0)-(t.slidesGrid[0]||0);function b(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(Object.assign(t.virtual,{from:v,to:y,offset:_,slidesGrid:t.slidesGrid}),l===v&&u===y&&!e)return t.slidesGrid!==d&&_!==h&&t.slides.css(f,_+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:_,from:v,to:y,slides:function(){const t=[];for(let e=v;e<=y;e+=1)t.push(c[e]);return t}()}),void(t.params.virtual.renderExternalUpdate&&b());const w=[],x=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(let e=l;e<=u;e+=1)(ey)&&t.$wrapperEl.find(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`).remove();for(let t=0;t=v&&t<=y&&(void 0===u||e?x.push(t):(t>u&&x.push(t),t{t.$wrapperEl.append(i(c[e],e))}),w.sort((t,e)=>e-t).forEach(e=>{t.$wrapperEl.prepend(i(c[e],e))}),t.$wrapperEl.children(".swiper-slide").css(f,_+"px"),b()}e({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),t.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},n("beforeInit",()=>{t.params.virtual.enabled&&(t.virtual.slides=t.params.virtual.slides,t.classNames.push(t.params.containerModifierClass+"virtual"),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0,t.params.initialSlide||o())}),n("setTranslate",()=>{t.params.virtual.enabled&&(t.params.cssMode&&!t._immediateVirtual?(clearTimeout(r),r=setTimeout(()=>{o()},100)):o())}),n("init update resize",()=>{t.params.virtual.enabled&&t.params.cssMode&&g(t.wrapperEl,"--swiper-virtual-size",t.virtualSize+"px")}),Object.assign(t.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let n=0;n{const r=e[t],o=r.attr("data-swiper-slide-index");o&&r.attr("data-swiper-slide-index",parseInt(o,10)+i),n[parseInt(t,10)+i]=r}),t.virtual.cache=n}o(!0),t.slideTo(r,0)},removeSlide:function(e){if(null==e)return;let n=t.activeIndex;if(Array.isArray(e))for(let r=e.length-1;r>=0;r-=1)t.virtual.slides.splice(e[r],1),t.params.virtual.cache&&delete t.virtual.cache[e[r]],e[r]0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;const r=t.$el,i=r[0].clientWidth,o=r[0].clientHeight,s=a.innerWidth,l=a.innerHeight,u=t.$el.offset();n&&(u.left-=t.$el[0].scrollLeft);const c=[[u.left,u.top],[u.left+i,u.top],[u.left,u.top+o],[u.left+i,u.top+o]];for(let t=0;t=0&&n[0]<=s&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((u||c||d||h)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((c||h)&&!n||(u||d)&&n)&&t.slideNext(),((u||d)&&!n||(c||h)&&n)&&t.slidePrev()):((u||c||p||f)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(c||f)&&t.slideNext(),(u||p)&&t.slidePrev()),i("keyPress",o)}}function c(){t.keyboard.enabled||(u(s).on("keydown",l),t.keyboard.enabled=!0)}function d(){t.keyboard.enabled&&(u(s).off("keydown",l),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},e({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),n("init",()=>{t.params.keyboard.enabled&&c()}),n("destroy",()=>{t.keyboard.enabled&&d()}),Object.assign(t.keyboard,{enable:c,disable:d})},function({swiper:t,extendParams:e,on:n,emit:r}){const i=o();let s;e({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),t.mousewheel={enabled:!1};let a,l=h();const c=[];function p(){t.enabled&&(t.mouseEntered=!0)}function f(){t.enabled&&(t.mouseEntered=!1)}function m(e){return!(t.params.mousewheel.thresholdDelta&&e.delta=6&&h()-l<60)&&(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),r("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),r("scroll",e.raw)),l=(new i.Date).getTime(),1))}function g(e){let n=e,i=!0;if(!t.enabled)return;const o=t.params.mousewheel;t.params.cssMode&&n.preventDefault();let l=t.$el;if("container"!==t.params.mousewheel.eventsTarget&&(l=u(t.params.mousewheel.eventsTarget)),!t.mouseEntered&&!l[0].contains(n.target)&&!o.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let p=0;const f=t.rtlTranslate?-1:1,g=function(t){let e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=10*e,i=10*n,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),t.shiftKey&&!r&&(r=i,i=0),(r||i)&&t.deltaMode&&(1===t.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}(n);if(o.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;p=-g.pixelX*f}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;p=-g.pixelY}else p=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*f:-g.pixelY;if(0===p)return!0;o.invert&&(p=-p);let v=t.getTranslate()+p*o.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),i=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),i&&t.params.nested&&n.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:h(),delta:Math.abs(p),direction:Math.sign(p)},i=a&&e.time=t.minTranslate()&&(l=t.minTranslate()),l<=t.maxTranslate()&&(l=t.maxTranslate()),t.setTransition(0),t.setTranslate(l),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!u&&t.isBeginning||!h&&t.isEnd)&&t.updateSlidesClasses(),t.params.freeMode.sticky){clearTimeout(s),s=void 0,c.length>=15&&c.shift();const n=c.length?c[c.length-1]:void 0,r=c[0];if(c.push(e),n&&(e.delta>n.delta||e.direction!==n.direction))c.splice(0);else if(c.length>=15&&e.time-r.time<500&&r.delta-e.delta>=1&&e.delta<=6){const n=p>0?.8:.2;a=e,c.splice(0),s=d(()=>{t.slideToClosest(t.params.speed,!0,void 0,n)},0)}s||(s=d(()=>{a=e,c.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)},500))}if(i||r("scroll",n),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),l===t.minTranslate()||l===t.maxTranslate())return!0}}else{const n={time:h(),delta:Math.abs(p),direction:Math.sign(p),raw:e};c.length>=2&&c.shift();const r=c.length?c[c.length-1]:void 0;if(c.push(n),r?(n.direction!==r.direction||n.delta>r.delta||n.time>r.time+150)&&m(n):m(n),function(e){const n=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&n.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function v(e){let n=t.$el;"container"!==t.params.mousewheel.eventsTarget&&(n=u(t.params.mousewheel.eventsTarget)),n[e]("mouseenter",p),n[e]("mouseleave",f),n[e]("wheel",g)}function y(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",g),!0):!t.mousewheel.enabled&&(v("on"),t.mousewheel.enabled=!0,!0)}function _(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,g),!0):!!t.mousewheel.enabled&&(v("off"),t.mousewheel.enabled=!1,!0)}n("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&_(),t.params.mousewheel.enabled&&y()}),n("destroy",()=>{t.params.cssMode&&y(),t.mousewheel.enabled&&_()}),Object.assign(t.mousewheel,{enable:y,disable:_})},function({swiper:t,extendParams:e,on:n,emit:r}){function i(e){let n;return e&&(n=u(e),t.params.uniqueNavElements&&"string"==typeof e&&n.length>1&&1===t.$el.find(e).length&&(n=t.$el.find(e))),n}function o(e,n){const r=t.params.navigation;e&&e.length>0&&(e[n?"addClass":"removeClass"](r.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=n),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](r.lockClass))}function s(){if(t.params.loop)return;const{$nextEl:e,$prevEl:n}=t.navigation;o(n,t.isBeginning&&!t.params.rewind),o(e,t.isEnd&&!t.params.rewind)}function a(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&t.slidePrev()}function l(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&t.slideNext()}function c(){const e=t.params.navigation;if(t.params.navigation=z(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const n=i(e.nextEl),r=i(e.prevEl);n&&n.length>0&&n.on("click",l),r&&r.length>0&&r.on("click",a),Object.assign(t.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:r,prevEl:r&&r[0]}),t.enabled||(n&&n.addClass(e.lockClass),r&&r.addClass(e.lockClass))}function d(){const{$nextEl:e,$prevEl:n}=t.navigation;e&&e.length&&(e.off("click",l),e.removeClass(t.params.navigation.disabledClass)),n&&n.length&&(n.off("click",a),n.removeClass(t.params.navigation.disabledClass))}e({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},n("init",()=>{c(),s()}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{d()}),n("enable disable",()=>{const{$nextEl:e,$prevEl:n}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),n&&n[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)}),n("click",(e,n)=>{const{$nextEl:i,$prevEl:o}=t.navigation,s=n.target;if(t.params.navigation.hideOnClick&&!u(s).is(o)&&!u(s).is(i)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;let e;i?e=i.hasClass(t.params.navigation.hiddenClass):o&&(e=o.hasClass(t.params.navigation.hiddenClass)),r(!0===e?"navigationShow":"navigationHide"),i&&i.toggleClass(t.params.navigation.hiddenClass),o&&o.toggleClass(t.params.navigation.hiddenClass)}}),Object.assign(t.navigation,{update:s,init:c,destroy:d})},function({swiper:t,extendParams:e,on:n,emit:r}){const i="swiper-pagination";let o;e({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:i+"-bullet",bulletActiveClass:i+"-bullet-active",modifierClass:i+"-",currentClass:i+"-current",totalClass:i+"-total",hiddenClass:i+"-hidden",progressbarFillClass:i+"-progressbar-fill",progressbarOppositeClass:i+"-progressbar-opposite",clickableClass:i+"-clickable",lockClass:i+"-lock",horizontalClass:i+"-horizontal",verticalClass:i+"-vertical"}}),t.pagination={el:null,$el:null,bullets:[]};let s=0;function a(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function l(e,n){const{bulletActiveClass:r}=t.params.pagination;e[n]().addClass(`${r}-${n}`)[n]().addClass(`${r}-${n}-${n}`)}function c(){const e=t.rtl,n=t.params.pagination;if(a())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,c=t.pagination.$el;let d;const h=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(d=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),d>i-1-2*t.loopedSlides&&(d-=i-2*t.loopedSlides),d>h-1&&(d-=h),d<0&&"bullets"!==t.params.paginationType&&(d=h+d)):d=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let i,a,h;if(n.dynamicBullets&&(o=r.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(t.isHorizontal()?"width":"height",o*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(s+=d-(t.previousIndex-t.loopedSlides||0),s>n.dynamicMainBullets-1?s=n.dynamicMainBullets-1:s<0&&(s=0)),i=Math.max(d-s,0),a=i+(Math.min(r.length,n.dynamicMainBullets)-1),h=(a+i)/2),r.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(t=>`${n.bulletActiveClass}${t}`).join(" ")),c.length>1)r.each(t=>{const e=u(t),r=e.index();r===d&&e.addClass(n.bulletActiveClass),n.dynamicBullets&&(r>=i&&r<=a&&e.addClass(n.bulletActiveClass+"-main"),r===i&&l(e,"prev"),r===a&&l(e,"next"))});else{const e=r.eq(d),o=e.index();if(e.addClass(n.bulletActiveClass),n.dynamicBullets){const e=r.eq(i),s=r.eq(a);for(let t=i;t<=a;t+=1)r.eq(t).addClass(n.bulletActiveClass+"-main");if(t.params.loop)if(o>=r.length){for(let t=n.dynamicMainBullets;t>=0;t-=1)r.eq(r.length-t).addClass(n.bulletActiveClass+"-main");r.eq(r.length-n.dynamicMainBullets-1).addClass(n.bulletActiveClass+"-prev")}else l(e,"prev"),l(s,"next");else l(e,"prev"),l(s,"next")}}if(n.dynamicBullets){const i=Math.min(r.length,n.dynamicMainBullets+4),s=(o*i-o)/2-h*o,a=e?"right":"left";r.css(t.isHorizontal()?a:"top",s+"px")}}if("fraction"===n.type&&(c.find(B(n.currentClass)).text(n.formatFractionCurrent(d+1)),c.find(B(n.totalClass)).text(n.formatFractionTotal(h))),"progressbar"===n.type){let e;e=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(d+1)/h;let i=1,o=1;"horizontal"===e?i=r:o=r,c.find(B(n.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${i}) scaleY(${o})`).transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(c.html(n.renderCustom(t,d+1,h)),r("paginationRender",c[0])):r("paginationUpdate",c[0]),t.params.watchOverflow&&t.enabled&&c[t.isLocked?"addClass":"removeClass"](n.lockClass)}function d(){const e=t.params.pagination;if(a())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el;let o="";if("bullets"===e.type){let r=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&r>n&&(r=n);for(let n=0;n`;i.html(o),t.pagination.bullets=i.find(B(e.bulletClass))}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):` / `,i.html(o)),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):``,i.html(o)),"custom"!==e.type&&r("paginationRender",t.pagination.$el[0])}function h(){t.params.pagination=z(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n=u(e.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&n.length>1&&(n=t.$el.find(e.el),n.length>1&&(n=n.filter(e=>u(e).parents(".swiper")[0]===t.el))),"bullets"===e.type&&e.clickable&&n.addClass(e.clickableClass),n.addClass(e.modifierClass+e.type),n.addClass(e.modifierClass+t.params.direction),"bullets"===e.type&&e.dynamicBullets&&(n.addClass(`${e.modifierClass}${e.type}-dynamic`),s=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.addClass(e.progressbarOppositeClass),e.clickable&&n.on("click",B(e.bulletClass),(function(e){e.preventDefault();let n=u(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)})),Object.assign(t.pagination,{$el:n,el:n[0]}),t.enabled||n.addClass(e.lockClass))}function p(){const e=t.params.pagination;if(a())return;const n=t.pagination.$el;n.removeClass(e.hiddenClass),n.removeClass(e.modifierClass+e.type),n.removeClass(e.modifierClass+t.params.direction),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&n.off("click",B(e.bulletClass))}n("init",()=>{h(),d(),c()}),n("activeIndexChange",()=>{(t.params.loop||void 0===t.snapIndex)&&c()}),n("snapIndexChange",()=>{t.params.loop||c()}),n("slidesLengthChange",()=>{t.params.loop&&(d(),c())}),n("snapGridLengthChange",()=>{t.params.loop||(d(),c())}),n("destroy",()=>{p()}),n("enable disable",()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)}),n("lock unlock",()=>{c()}),n("click",(e,n)=>{const i=n.target,{$el:o}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o.length>0&&!u(i).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=o.hasClass(t.params.pagination.hiddenClass);r(!0===e?"paginationShow":"paginationHide"),o.toggleClass(t.params.pagination.hiddenClass)}}),Object.assign(t.pagination,{render:d,update:c,init:h,destroy:p})},function({swiper:t,extendParams:e,on:n,emit:i}){const o=r();let s,a,l,c,h=!1,p=null,f=null;function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n,progress:r}=t,{$dragEl:i,$el:o}=e,s=t.params.scrollbar;let u=a,c=(l-a)*r;n?(c=-c,c>0?(u=a-c,c=0):-c+a>l&&(u=l+c)):c<0?(u=a+c,c=0):c+a>l&&(u=l-c),t.isHorizontal()?(i.transform(`translate3d(${c}px, 0, 0)`),i[0].style.width=u+"px"):(i.transform(`translate3d(0px, ${c}px, 0)`),i[0].style.height=u+"px"),s.hide&&(clearTimeout(p),o[0].style.opacity=1,p=setTimeout(()=>{o[0].style.opacity=0,o.transition(400)},1e3))}function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:n,$el:r}=e;n[0].style.width="",n[0].style.height="",l=t.isHorizontal()?r[0].offsetWidth:r[0].offsetHeight,c=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),a="auto"===t.params.scrollbar.dragSize?l*c:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n[0].style.width=a+"px":n[0].style.height=a+"px",r[0].style.display=c>=1?"none":"",t.params.scrollbar.hide&&(r[0].style.opacity=0),t.params.watchOverflow&&t.enabled&&e.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}function v(e){return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY}function y(e){const{scrollbar:n,rtlTranslate:r}=t,{$el:i}=n;let o;o=(v(e)-i.offset()[t.isHorizontal()?"left":"top"]-(null!==s?s:a/2))/(l-a),o=Math.max(Math.min(o,1),0),r&&(o=1-o);const u=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*o;t.updateProgress(u),t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()}function _(e){const n=t.params.scrollbar,{scrollbar:r,$wrapperEl:o}=t,{$el:a,$dragEl:l}=r;h=!0,s=e.target===l[0]||e.target===l?v(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),o.transition(100),l.transition(100),y(e),clearTimeout(f),a.transition(0),n.hide&&a.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),i("scrollbarDragStart",e)}function b(e){const{scrollbar:n,$wrapperEl:r}=t,{$el:o,$dragEl:s}=n;h&&(e.preventDefault?e.preventDefault():e.returnValue=!1,y(e),r.transition(0),o.transition(0),s.transition(0),i("scrollbarDragMove",e))}function w(e){const n=t.params.scrollbar,{scrollbar:r,$wrapperEl:o}=t,{$el:s}=r;h&&(h=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),o.transition("")),n.hide&&(clearTimeout(f),f=d(()=>{s.css("opacity",0),s.transition(400)},1e3)),i("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())}function x(e){const{scrollbar:n,touchEventsTouch:r,touchEventsDesktop:i,params:s,support:a}=t,l=n.$el[0],u=!(!a.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},c=!(!a.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};if(!l)return;const d="on"===e?"addEventListener":"removeEventListener";a.touch?(l[d](r.start,_,u),l[d](r.move,b,u),l[d](r.end,w,c)):(l[d](i.start,_,u),o[d](i.move,b,u),o[d](i.end,w,c))}function S(){const{scrollbar:e,$el:n}=t;t.params.scrollbar=z(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const r=t.params.scrollbar;if(!r.el)return;let i=u(r.el);t.params.uniqueNavElements&&"string"==typeof r.el&&i.length>1&&1===n.find(r.el).length&&(i=n.find(r.el));let o=i.find("."+t.params.scrollbar.dragClass);0===o.length&&(o=u(`
`),i.append(o)),Object.assign(e,{$el:i,el:i[0],$dragEl:o,dragEl:o[0]}),r.draggable&&t.params.scrollbar.el&&x("on"),i&&i[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}function k(){t.params.scrollbar.el&&x("off")}e({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}}),t.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},n("init",()=>{S(),g(),m()}),n("update resize observerUpdate lock unlock",()=>{g()}),n("setTranslate",()=>{m()}),n("setTransition",(e,n)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)}(n)}),n("enable disable",()=>{const{$el:e}=t.scrollbar;e&&e[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}),n("destroy",()=>{k()}),Object.assign(t.scrollbar,{updateSize:g,setTranslate:m,init:S,destroy:k})},function({swiper:t,extendParams:e,on:n}){e({parallax:{enabled:!1}});const r=(e,n)=>{const{rtl:r}=t,i=u(e),o=r?-1:1,s=i.attr("data-swiper-parallax")||"0";let a=i.attr("data-swiper-parallax-x"),l=i.attr("data-swiper-parallax-y");const c=i.attr("data-swiper-parallax-scale"),d=i.attr("data-swiper-parallax-opacity");if(a||l?(a=a||"0",l=l||"0"):t.isHorizontal()?(a=s,l="0"):(l=s,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*n*o+"%":a*n*o+"px",l=l.indexOf("%")>=0?parseInt(l,10)*n+"%":l*n+"px",null!=d){const t=d-(d-1)*(1-Math.abs(n));i[0].style.opacity=t}if(null==c)i.transform(`translate3d(${a}, ${l}, 0px)`);else{const t=c-(c-1)*(1-Math.abs(n));i.transform(`translate3d(${a}, ${l}, 0px) scale(${t})`)}},i=()=>{const{$el:e,slides:n,progress:i,snapGrid:o}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(t=>{r(t,i)}),n.each((e,n)=>{let s=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(s+=Math.ceil(n/2)-i*(o.length-1)),s=Math.min(Math.max(s,-1),1),u(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(t=>{r(t,s)})})};n("beforeInit",()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),n("init",()=>{t.params.parallax.enabled&&i()}),n("setTranslate",()=>{t.params.parallax.enabled&&i()}),n("setTransition",(e,n)=>{t.params.parallax.enabled&&((e=t.params.speed)=>{const{$el:n}=t;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(t=>{const n=u(t);let r=parseInt(n.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),n.transition(r)})})(n)})},function({swiper:t,extendParams:e,on:n,emit:r}){const i=o();e({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let s,a,l,c=1,d=!1;const h={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},f={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},m={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let g=1;function v(t){if(t.targetTouches.length<2)return 1;const e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY,r=t.targetTouches[1].pageX,i=t.targetTouches[1].pageY;return Math.sqrt((r-e)**2+(i-n)**2)}function y(e){const n=t.support,r=t.params.zoom;if(a=!1,l=!1,!n.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;a=!0,h.scaleStart=v(e)}h.$slideEl&&h.$slideEl.length||(h.$slideEl=u(e.target).closest("."+t.params.slideClass),0===h.$slideEl.length&&(h.$slideEl=t.slides.eq(t.activeIndex)),h.$imageEl=h.$slideEl.find("."+r.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),h.$imageWrapEl=h.$imageEl.parent("."+r.containerClass),h.maxRatio=h.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,0!==h.$imageWrapEl.length)?(h.$imageEl&&h.$imageEl.transition(0),d=!0):h.$imageEl=void 0}function _(e){const n=t.support,r=t.params.zoom,i=t.zoom;if(!n.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;l=!0,h.scaleMove=v(e)}h.$imageEl&&0!==h.$imageEl.length?(n.gestures?i.scale=e.scale*c:i.scale=h.scaleMove/h.scaleStart*c,i.scale>h.maxRatio&&(i.scale=h.maxRatio-1+(i.scale-h.maxRatio+1)**.5),i.scalef.touchesStart.x))return void(f.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.yf.touchesStart.y))return void(f.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),f.isMoved=!0,f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX,f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY,f.currentXf.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentYf.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),m.prevPositionX||(m.prevPositionX=f.touchesCurrent.x),m.prevPositionY||(m.prevPositionY=f.touchesCurrent.y),m.prevTime||(m.prevTime=Date.now()),m.x=(f.touchesCurrent.x-m.prevPositionX)/(Date.now()-m.prevTime)/2,m.y=(f.touchesCurrent.y-m.prevPositionY)/(Date.now()-m.prevTime)/2,Math.abs(f.touchesCurrent.x-m.prevPositionX)<2&&(m.x=0),Math.abs(f.touchesCurrent.y-m.prevPositionY)<2&&(m.y=0),m.prevPositionX=f.touchesCurrent.x,m.prevPositionY=f.touchesCurrent.y,m.prevTime=Date.now(),h.$imageWrapEl.transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`)}}function x(){const e=t.zoom;h.$slideEl&&t.previousIndex!==t.activeIndex&&(h.$imageEl&&h.$imageEl.transform("translate3d(0,0,0) scale(1)"),h.$imageWrapEl&&h.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,c=1,h.$slideEl=void 0,h.$imageEl=void 0,h.$imageWrapEl=void 0)}function S(e){const n=t.zoom,r=t.params.zoom;if(h.$slideEl||(e&&e.target&&(h.$slideEl=u(e.target).closest("."+t.params.slideClass)),h.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.$slideEl=t.$wrapperEl.children("."+t.params.slideActiveClass):h.$slideEl=t.slides.eq(t.activeIndex)),h.$imageEl=h.$slideEl.find("."+r.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),h.$imageWrapEl=h.$imageEl.parent("."+r.containerClass)),!h.$imageEl||0===h.$imageEl.length||!h.$imageWrapEl||0===h.$imageWrapEl.length)return;let o,s,a,l,d,p,m,g,v,y,_,b,w,x,S,k,C,E;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),h.$slideEl.addClass(""+r.zoomedSlideClass),void 0===f.touchesStart.x&&e?(o="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,s="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(o=f.touchesStart.x,s=f.touchesStart.y),n.scale=h.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,c=h.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,e?(C=h.$slideEl[0].offsetWidth,E=h.$slideEl[0].offsetHeight,a=h.$slideEl.offset().left+i.scrollX,l=h.$slideEl.offset().top+i.scrollY,d=a+C/2-o,p=l+E/2-s,v=h.$imageEl[0].offsetWidth,y=h.$imageEl[0].offsetHeight,_=v*n.scale,b=y*n.scale,w=Math.min(C/2-_/2,0),x=Math.min(E/2-b/2,0),S=-w,k=-x,m=d*n.scale,g=p*n.scale,mS&&(m=S),gk&&(g=k)):(m=0,g=0),h.$imageWrapEl.transition(300).transform(`translate3d(${m}px, ${g}px,0)`),h.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${n.scale})`)}function k(){const e=t.zoom,n=t.params.zoom;h.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.$slideEl=t.$wrapperEl.children("."+t.params.slideActiveClass):h.$slideEl=t.slides.eq(t.activeIndex),h.$imageEl=h.$slideEl.find("."+n.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),h.$imageWrapEl=h.$imageEl.parent("."+n.containerClass)),h.$imageEl&&0!==h.$imageEl.length&&h.$imageWrapEl&&0!==h.$imageWrapEl.length&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,c=1,h.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),h.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),h.$slideEl.removeClass(""+n.zoomedSlideClass),h.$slideEl=void 0)}function C(e){const n=t.zoom;n.scale&&1!==n.scale?k():S(e)}function E(){const e=t.support;return{passiveListener:!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!e.passiveListener||{passive:!1,capture:!0}}}function T(){return"."+t.params.slideClass}function P(e){const{passiveListener:n}=E(),r=T();t.$wrapperEl[e]("gesturestart",r,y,n),t.$wrapperEl[e]("gesturechange",r,_,n),t.$wrapperEl[e]("gestureend",r,b,n)}function O(){s||(s=!0,P("on"))}function A(){s&&(s=!1,P("off"))}function M(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const n=t.support,{passiveListener:r,activeListenerWithCapture:i}=E(),o=T();n.gestures?(t.$wrapperEl.on(t.touchEvents.start,O,r),t.$wrapperEl.on(t.touchEvents.end,A,r)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,o,y,r),t.$wrapperEl.on(t.touchEvents.move,o,_,i),t.$wrapperEl.on(t.touchEvents.end,o,b,r),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,o,b,r)),t.$wrapperEl.on(t.touchEvents.move,"."+t.params.zoom.containerClass,w,i)}function L(){const e=t.zoom;if(!e.enabled)return;const n=t.support;e.enabled=!1;const{passiveListener:r,activeListenerWithCapture:i}=E(),o=T();n.gestures?(t.$wrapperEl.off(t.touchEvents.start,O,r),t.$wrapperEl.off(t.touchEvents.end,A,r)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,o,y,r),t.$wrapperEl.off(t.touchEvents.move,o,_,i),t.$wrapperEl.off(t.touchEvents.end,o,b,r),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,o,b,r)),t.$wrapperEl.off(t.touchEvents.move,"."+t.params.zoom.containerClass,w,i)}Object.defineProperty(t.zoom,"scale",{get:()=>g,set(t){if(g!==t){const e=h.$imageEl?h.$imageEl[0]:void 0,n=h.$slideEl?h.$slideEl[0]:void 0;r("zoomChange",t,e,n)}g=t}}),n("init",()=>{t.params.zoom.enabled&&M()}),n("destroy",()=>{L()}),n("touchStart",(e,n)=>{t.zoom.enabled&&function(e){const n=t.device;h.$imageEl&&0!==h.$imageEl.length&&(f.isTouched||(n.android&&e.cancelable&&e.preventDefault(),f.isTouched=!0,f.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,f.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))}(n)}),n("touchEnd",(e,n)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!h.$imageEl||0===h.$imageEl.length)return;if(!f.isTouched||!f.isMoved)return f.isTouched=!1,void(f.isMoved=!1);f.isTouched=!1,f.isMoved=!1;let n=300,r=300;const i=m.x*n,o=f.currentX+i,s=m.y*r,a=f.currentY+s;0!==m.x&&(n=Math.abs((o-f.currentX)/m.x)),0!==m.y&&(r=Math.abs((a-f.currentY)/m.y));const l=Math.max(n,r);f.currentX=o,f.currentY=a;const u=f.width*e.scale,c=f.height*e.scale;f.minX=Math.min(h.slideWidth/2-u/2,0),f.maxX=-f.minX,f.minY=Math.min(h.slideHeight/2-c/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),h.$imageWrapEl.transition(l).transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`)}()}),n("doubleTap",(e,n)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&C(n)}),n("transitionEnd",()=>{t.zoom.enabled&&t.params.zoom.enabled&&x()}),n("slideChange",()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&x()}),Object.assign(t.zoom,{enable:M,disable:L,in:S,out:k,toggle:C})},function({swiper:t,extendParams:e,on:n,emit:r}){e({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),t.lazy={};let i=!1,s=!1;function a(e,n=!0){const i=t.params.lazy;if(void 0===e)return;if(0===t.slides.length)return;const o=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`):t.slides.eq(e),s=o.find(`.${i.elementClass}:not(.${i.loadedClass}):not(.${i.loadingClass})`);!o.hasClass(i.elementClass)||o.hasClass(i.loadedClass)||o.hasClass(i.loadingClass)||s.push(o[0]),0!==s.length&&s.each(e=>{const s=u(e);s.addClass(i.loadingClass);const l=s.attr("data-background"),c=s.attr("data-src"),d=s.attr("data-srcset"),h=s.attr("data-sizes"),p=s.parent("picture");t.loadImage(s[0],c||l,d,h,!1,()=>{if(null!=t&&t&&(!t||t.params)&&!t.destroyed){if(l?(s.css("background-image",`url("${l}")`),s.removeAttr("data-background")):(d&&(s.attr("srcset",d),s.removeAttr("data-srcset")),h&&(s.attr("sizes",h),s.removeAttr("data-sizes")),p.length&&p.children("source").each(t=>{const e=u(t);e.attr("data-srcset")&&(e.attr("srcset",e.attr("data-srcset")),e.removeAttr("data-srcset"))}),c&&(s.attr("src",c),s.removeAttr("data-src"))),s.addClass(i.loadedClass).removeClass(i.loadingClass),o.find("."+i.preloaderClass).remove(),t.params.loop&&n){const e=o.attr("data-swiper-slide-index");o.hasClass(t.params.slideDuplicateClass)?a(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(),!1):a(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)}r("lazyImageReady",o[0],s[0]),t.params.autoHeight&&t.updateAutoHeight()}}),r("lazyImageLoad",o[0],s[0])})}function l(){const{$wrapperEl:e,params:n,slides:r,activeIndex:i}=t,o=t.virtual&&n.virtual.enabled,l=n.lazy;let c=n.slidesPerView;function d(t){if(o){if(e.children(`.${n.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(r[t])return!0;return!1}function h(t){return o?u(t).attr("data-swiper-slide-index"):u(t).index()}if("auto"===c&&(c=0),s||(s=!0),t.params.watchSlidesProgress)e.children("."+n.slideVisibleClass).each(t=>{a(o?u(t).attr("data-swiper-slide-index"):u(t).index())});else if(c>1)for(let t=i;t1||l.loadPrevNextAmount&&l.loadPrevNextAmount>1){const t=l.loadPrevNextAmount,e=c,n=Math.min(i+e+Math.max(t,e),r.length),o=Math.max(i-Math.max(e,t),0);for(let t=i+c;t0&&a(h(t));const r=e.children("."+n.slidePrevClass);r.length>0&&a(h(r))}}function c(){const e=o();if(!t||t.destroyed)return;const n=t.params.lazy.scrollingElement?u(t.params.lazy.scrollingElement):u(e),r=n[0]===e,s=r?e.innerWidth:n[0].offsetWidth,a=r?e.innerHeight:n[0].offsetHeight,d=t.$el.offset(),{rtlTranslate:h}=t;let p=!1;h&&(d.left-=t.$el[0].scrollLeft);const f=[[d.left,d.top],[d.left+t.width,d.top],[d.left,d.top+t.height],[d.left+t.width,d.top+t.height]];for(let t=0;t=0&&e[0]<=s&&e[1]>=0&&e[1]<=a){if(0===e[0]&&0===e[1])continue;p=!0}}const m=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};p?(l(),n.off("scroll",c,m)):i||(i=!0,n.on("scroll",c,m))}n("beforeInit",()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)}),n("init",()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?c():l())}),n("scroll",()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&l()}),n("scrollbarDragMove resize _freeModeNoMomentumRelease",()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?c():l())}),n("transitionStart",()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!s)&&(t.params.lazy.checkInView?c():l())}),n("transitionEnd",()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?c():l())}),n("slideChange",()=>{const{lazy:e,cssMode:n,watchSlidesProgress:r,touchReleaseOnEdges:i,resistanceRatio:o}=t.params;e.enabled&&(n||r&&(i||0===o))&&l()}),Object.assign(t.lazy,{load:l,loadInSlide:a})},function({swiper:t,extendParams:e,on:n}){function r(t,e){const n=function(){let t,e,n;return(r,i)=>{for(e=-1,t=r.length;t-e>1;)n=t+e>>1,r[n]<=i?e=n:t=n;return t}}();let r,i;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(i=n(this.x,t),r=i-1,(t-this.x[r])*(this.y[i]-this.y[r])/(this.x[i]-this.x[r])+this.y[r]):0},this}function i(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}e({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},n("beforeInit",()=>{t.controller.control=t.params.controller.control}),n("update",()=>{i()}),n("resize",()=>{i()}),n("observerUpdate",()=>{i()}),n("setTranslate",(e,n,r)=>{t.controller.control&&t.controller.setTranslate(n,r)}),n("setTransition",(e,n,r)=>{t.controller.control&&t.controller.setTransition(n,r)}),Object.assign(t.controller,{setTranslate:function(e,n){const i=t.controller.control;let o,s;const a=t.constructor;function l(e){const n=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline||(t.controller.spline=t.params.loop?new r(t.slidesGrid,e.slidesGrid):new r(t.snapGrid,e.snapGrid))}(e),s=-t.controller.spline.interpolate(-n)),s&&"container"!==t.params.controller.by||(o=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),s=(n-t.minTranslate())*o+e.minTranslate()),t.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(i))for(let t=0;t{n.updateAutoHeight()}),n.$wrapperEl.transitionEnd(()=>{i&&(n.params.loop&&"slide"===t.params.controller.by&&n.loopFix(),n.transitionEnd())}))}if(Array.isArray(i))for(o=0;o0&&(t.isBeginning?(d(n),s(n)):(h(n),o(n))),e&&e.length>0&&(t.isEnd?(d(e),s(e)):(h(e),o(e)))}function m(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function g(){return m()&&t.params.pagination.clickable}const v=(t,e,n)=>{o(t),"BUTTON"!==t[0].tagName&&(a(t,"button"),t.on("keydown",p)),c(t,n),function(t,e){t.attr("aria-controls",e)}(t,e)};n("beforeInit",()=>{r=u(``)}),n("afterInit",()=>{t.params.a11y.enabled&&(function(){const e=t.params.a11y;t.$el.append(r);const n=t.$el;e.containerRoleDescriptionMessage&&l(n,e.containerRoleDescriptionMessage),e.containerMessage&&c(n,e.containerMessage);const i=t.$wrapperEl,o=i.attr("id")||"swiper-wrapper-"+function(t=16){return"x".repeat(t).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16),s=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var d;d=o,i.attr("id",d),function(t,e){t.attr("aria-live",e)}(i,s),e.itemRoleDescriptionMessage&&l(u(t.slides),e.itemRoleDescriptionMessage),a(u(t.slides),e.slideRole);const h=t.params.loop?t.slides.filter(e=>!e.classList.contains(t.params.slideDuplicateClass)).length:t.slides.length;let f,m;t.slides.each((n,r)=>{const i=u(n),o=t.params.loop?parseInt(i.attr("data-swiper-slide-index"),10):r;c(i,e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,h))}),t.navigation&&t.navigation.$nextEl&&(f=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(m=t.navigation.$prevEl),f&&f.length&&v(f,o,e.nextSlideMessage),m&&m.length&&v(m,o,e.prevSlideMessage),g()&&t.pagination.$el.on("keydown",B(t.params.pagination.bulletClass),p)}(),f())}),n("toEdge",()=>{t.params.a11y.enabled&&f()}),n("fromEdge",()=>{t.params.a11y.enabled&&f()}),n("paginationUpdate",()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;m()&&t.pagination.bullets.each(n=>{const r=u(n);t.params.pagination.clickable&&(o(r),t.params.pagination.renderBullet||(a(r,"button"),c(r,e.paginationBulletMessage.replace(/\{\{index\}\}/,r.index()+1)))),r.is("."+t.params.pagination.bulletActiveClass)?r.attr("aria-current","true"):r.removeAttr("aria-current")})}()}),n("destroy",()=>{t.params.a11y.enabled&&function(){let e,n;r&&r.length>0&&r.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(n=t.navigation.$prevEl),e&&e.off("keydown",p),n&&n.off("keydown",p),g()&&t.pagination.$el.off("keydown",B(t.params.pagination.bulletClass),p)}()})},function({swiper:t,extendParams:e,on:n}){e({history:{enabled:!1,root:"",replaceState:!1,key:"slides"}});let r=!1,i={};const s=t=>t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),a=t=>{const e=o();let n;n=t?new URL(t):e.location;const r=n.pathname.slice(1).split("/").filter(t=>""!==t),i=r.length;return{key:r[i-2],value:r[i-1]}},l=(e,n)=>{const i=o();if(!r||!t.params.history.enabled)return;let a;a=t.params.url?new URL(t.params.url):i.location;const l=t.slides.eq(n);let u=s(l.attr("data-history"));if(t.params.history.root.length>0){let n=t.params.history.root;"/"===n[n.length-1]&&(n=n.slice(0,n.length-1)),u=`${n}/${e}/${u}`}else a.pathname.includes(e)||(u=`${e}/${u}`);const c=i.history.state;c&&c.value===u||(t.params.history.replaceState?i.history.replaceState({value:u},null,u):i.history.pushState({value:u},null,u))},u=(e,n,r)=>{if(n)for(let i=0,o=t.slides.length;i{i=a(t.params.url),u(t.params.speed,t.paths.value,!1)};n("init",()=>{t.params.history.enabled&&(()=>{const e=o();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);r=!0,i=a(t.params.url),(i.key||i.value)&&(u(0,i.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",c))}})()}),n("destroy",()=>{t.params.history.enabled&&(()=>{const e=o();t.params.history.replaceState||e.removeEventListener("popstate",c)})()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{r&&l(t.params.history.key,t.activeIndex)}),n("slideChange",()=>{r&&t.params.cssMode&&l(t.params.history.key,t.activeIndex)})},function({swiper:t,extendParams:e,emit:n,on:i}){let s=!1;const a=r(),l=o();e({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const c=()=>{n("hashChange");const e=a.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const n=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===n)return;t.slideTo(n)}},d=()=>{if(s&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&l.history&&l.history.replaceState)l.history.replaceState(null,null,"#"+t.slides.eq(t.activeIndex).attr("data-hash")||""),n("hashSet");else{const e=t.slides.eq(t.activeIndex),r=e.attr("data-hash")||e.attr("data-history");a.location.hash=r||"",n("hashSet")}};i("init",()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;s=!0;const e=a.location.hash.replace("#","");if(e){const n=0;for(let r=0,i=t.slides.length;r{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&u(l).off("hashchange",c)}),i("transitionEnd _freeModeNoMomentumRelease",()=>{s&&d()}),i("slideChange",()=>{s&&t.params.cssMode&&d()})},function({swiper:t,extendParams:e,on:n,emit:i}){let o;function s(){const e=t.slides.eq(t.activeIndex);let n=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(o),o=d(()=>{let e;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),e=t.slidePrev(t.params.speed,!0,!0),i("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?l():(e=t.slideTo(t.slides.length-1,t.params.speed,!0,!0),i("autoplay")):(e=t.slidePrev(t.params.speed,!0,!0),i("autoplay")):t.params.loop?(t.loopFix(),e=t.slideNext(t.params.speed,!0,!0),i("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?l():(e=t.slideTo(0,t.params.speed,!0,!0),i("autoplay")):(e=t.slideNext(t.params.speed,!0,!0),i("autoplay")),(t.params.cssMode&&t.autoplay.running||!1===e)&&s()},n)}function a(){return void 0===o&&!t.autoplay.running&&(t.autoplay.running=!0,i("autoplayStart"),s(),!0)}function l(){return!!t.autoplay.running&&void 0!==o&&(o&&(clearTimeout(o),o=void 0),t.autoplay.running=!1,i("autoplayStop"),!0)}function u(e){t.autoplay.running&&(t.autoplay.paused||(o&&clearTimeout(o),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach(e=>{t.$wrapperEl[0].addEventListener(e,h)}):(t.autoplay.paused=!1,s())))}function c(){const e=r();"hidden"===e.visibilityState&&t.autoplay.running&&u(),"visible"===e.visibilityState&&t.autoplay.paused&&(s(),t.autoplay.paused=!1)}function h(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===t.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(e=>{t.$wrapperEl[0].removeEventListener(e,h)}),t.autoplay.paused=!1,t.autoplay.running?s():l())}function p(){t.params.autoplay.disableOnInteraction?l():u(),["transitionend","webkitTransitionEnd"].forEach(e=>{t.$wrapperEl[0].removeEventListener(e,h)})}function f(){t.params.autoplay.disableOnInteraction||(t.autoplay.paused=!1,s())}t.autoplay={running:!1,paused:!1},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),n("init",()=>{t.params.autoplay.enabled&&(a(),r().addEventListener("visibilitychange",c),t.params.autoplay.pauseOnMouseEnter&&(t.$el.on("mouseenter",p),t.$el.on("mouseleave",f)))}),n("beforeTransitionStart",(e,n,r)=>{t.autoplay.running&&(r||!t.params.autoplay.disableOnInteraction?t.autoplay.pause(n):l())}),n("sliderFirstMove",()=>{t.autoplay.running&&(t.params.autoplay.disableOnInteraction?l():u())}),n("touchEnd",()=>{t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&s()}),n("destroy",()=>{t.$el.off("mouseenter",p),t.$el.off("mouseleave",f),t.autoplay.running&&l(),r().removeEventListener("visibilitychange",c)}),Object.assign(t.autoplay,{pause:u,run:s,start:a,stop:l})},function({swiper:t,extendParams:e,on:n}){e({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,i=!1;function o(){const e=t.thumbs.swiper;if(!e)return;const n=e.clickedIndex,r=e.clickedSlide;if(r&&u(r).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(null==n)return;let i;if(i=e.params.loop?parseInt(u(e.clickedSlide).attr("data-swiper-slide-index"),10):n,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const n=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),r=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();i=void 0===n?r:void 0===r?n:r-e1?r:l:r-lt.previousIndex?"next":"prev"}else s=t.realIndex,a=s>t.previousIndex?"next":"prev";o&&(s+="next"===a?i:-1*i),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(s)<0&&(n.params.centeredSlides?s=s>l?s-Math.floor(r/2)+1:s+Math.floor(r/2)-1:s>l&&n.params.slidesPerGroup,n.slideTo(s,e?0:void 0))}let s=1;const a=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(s=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(s=1),s=Math.floor(s),n.slides.removeClass(a),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e{const{thumbs:e}=t.params;e&&e.swiper&&(s(),a(!0))}),n("slideChange update resize observerUpdate",()=>{t.thumbs.swiper&&a()}),n("setTransition",(e,n)=>{const r=t.thumbs.swiper;r&&r.setTransition(n)}),n("beforeDestroy",()=>{const e=t.thumbs.swiper;e&&i&&e&&e.destroy()}),Object.assign(t.thumbs,{init:s,update:a})},function({swiper:t,extendParams:e,emit:n,once:r}){e({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchMove:function(){const{touchEventsData:e,touches:n}=t;0===e.velocities.length&&e.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:h()})},onTouchEnd:function({currentPos:e}){const{params:i,$wrapperEl:o,rtlTranslate:s,snapGrid:a,touchEventsData:l}=t,u=h()-l.touchStartTime;if(e<-t.minTranslate())t.slideTo(t.activeIndex);else if(e>-t.maxTranslate())t.slides.length1){const e=l.velocities.pop(),n=l.velocities.pop(),r=e.position-n.position,o=e.time-n.time;t.velocity=r/o,t.velocity/=2,Math.abs(t.velocity)150||h()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freeMode.momentumVelocityRatio,l.velocities.length=0;let e=1e3*i.freeMode.momentumRatio;const u=t.velocity*e;let c=t.translate+u;s&&(c=-c);let d,p=!1;const f=20*Math.abs(t.velocity)*i.freeMode.momentumBounceRatio;let m;if(ct.minTranslate())i.freeMode.momentumBounce?(c-t.minTranslate()>f&&(c=t.minTranslate()+f),d=t.minTranslate(),p=!0,l.allowMomentumBounce=!0):c=t.minTranslate(),i.loop&&i.centeredSlides&&(m=!0);else if(i.freeMode.sticky){let e;for(let t=0;t-c){e=t;break}c=Math.abs(a[e]-c){t.loopFix()}),0!==t.velocity){if(e=s?Math.abs((-c-t.translate)/t.velocity):Math.abs((c-t.translate)/t.velocity),i.freeMode.sticky){const n=Math.abs((s?-c:c)-t.translate),r=t.slidesSizesGrid[t.activeIndex];e=n{t&&!t.destroyed&&l.allowMomentumBounce&&(n("momentumBounce"),t.setTransition(i.speed),setTimeout(()=>{t.setTranslate(d),o.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(n("_freeModeNoMomentumRelease"),t.updateProgress(c),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(c),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(i.freeMode.sticky)return void t.slideToClosest();i.freeMode&&n("_freeModeNoMomentumRelease")}(!i.freeMode.momentum||u>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function({swiper:t,extendParams:e}){let n,r,i;e({grid:{rows:1,fill:"column"}}),t.grid={initSlides:e=>{const{slidesPerView:o}=t.params,{rows:s,fill:a}=t.params.grid;r=n/s,i=Math.floor(e/s),n=Math.floor(e/s)===e/s?e:Math.ceil(e/s)*s,"auto"!==o&&"row"===a&&(n=Math.max(n,o*s))},updateSlide:(e,o,s,a)=>{const{slidesPerGroup:l,spaceBetween:u}=t.params,{rows:c,fill:d}=t.params.grid;let h,p,f;if("row"===d&&l>1){const t=Math.floor(e/(l*c)),r=e-c*l*t,i=0===t?l:Math.min(Math.ceil((s-t*c*l)/c),l);f=Math.floor(r/i),p=r-f*i+t*l,h=p+f*n/c,o.css({"-webkit-order":h,order:h})}else"column"===d?(p=Math.floor(e/c),f=e-p*c,(p>i||p===i&&f===c-1)&&(f+=1,f>=c&&(f=0,p+=1))):(f=Math.floor(e/r),p=e-f*r);o.css(a("margin-top"),0!==f?u&&u+"px":"")},updateWrapperSize:(e,r,i)=>{const{spaceBetween:o,centeredSlides:s,roundLengths:a}=t.params,{rows:l}=t.params.grid;if(t.virtualSize=(e+o)*n,t.virtualSize=Math.ceil(t.virtualSize/l)-o,t.$wrapperEl.css({[i("width")]:t.virtualSize+o+"px"}),s){r.splice(0,r.length);const e=[];for(let n=0;n{const{slides:e}=t,n=t.params.fadeEffect;for(let r=0;r{const{transformEl:n}=t.params.fadeEffect;(n?t.slides.find(n):t.slides).transition(e),Z({swiper:t,duration:e,transformEl:n,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:n}){e({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}}),G({effect:"cube",swiper:t,on:n,setTranslate:()=>{const{$el:e,$wrapperEl:n,slides:r,width:i,height:o,rtlTranslate:s,size:a,browser:l}=t,c=t.params.cubeEffect,d=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled;let p,f=0;c.shadow&&(d?(p=n.find(".swiper-cube-shadow"),0===p.length&&(p=u('
'),n.append(p)),p.css({height:i+"px"})):(p=e.find(".swiper-cube-shadow"),0===p.length&&(p=u('
'),e.append(p))));for(let t=0;t-1&&(f=90*n+90*l,s&&(f=90*-n-90*l)),e.transform(v),c.slideShadows){let t=d?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),n=d?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=u(`
`),e.append(t)),0===n.length&&(n=u(`
`),e.append(n)),t.length&&(t[0].style.opacity=Math.max(-l,0)),n.length&&(n[0].style.opacity=Math.max(l,0))}}if(n.css({"-webkit-transform-origin":`50% 50% -${a/2}px`,"transform-origin":`50% 50% -${a/2}px`}),c.shadow)if(d)p.transform(`translate3d(0px, ${i/2+c.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`);else{const t=Math.abs(f)-90*Math.floor(Math.abs(f)/90),e=1.5-(Math.sin(2*t*Math.PI/360)/2+Math.cos(2*t*Math.PI/360)/2),n=c.shadowScale,r=c.shadowScale/e,i=c.shadowOffset;p.transform(`scale3d(${n}, 1, ${r}) translate3d(0px, ${o/2+i}px, ${-o/2/r}px) rotateX(-90deg)`)}const m=l.isSafari||l.isWebView?-a/2:0;n.transform(`translate3d(0px,0,${m}px) rotateX(${t.isHorizontal()?0:f}deg) rotateY(${t.isHorizontal()?-f:0}deg)`)},setTransition:e=>{const{$el:n,slides:r}=t;r.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&n.find(".swiper-cube-shadow").transition(e)},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function({swiper:t,extendParams:e,on:n}){e({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}}),G({effect:"flip",swiper:t,on:n,setTranslate:()=>{const{slides:e,rtlTranslate:n}=t,r=t.params.flipEffect;for(let i=0;i{const{transformEl:n}=t.params.flipEffect;(n?t.slides.find(n):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),Z({swiper:t,duration:e,transformEl:n})},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:n}){e({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),G({effect:"coverflow",swiper:t,on:n,setTranslate:()=>{const{width:e,height:n,slides:r,slidesSizesGrid:i}=t,o=t.params.coverflowEffect,s=t.isHorizontal(),a=t.translate,l=s?e/2-a:n/2-a,u=s?o.rotate:-o.rotate,c=o.depth;for(let t=0,e=r.length;t0?a:0),n.length&&(n[0].style.opacity=-a>0?-a:0)}}},setTransition:e=>{const{transformEl:n}=t.params.coverflowEffect;(n?t.slides.find(n):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function({swiper:t,extendParams:e,on:n}){e({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const r=t=>"string"==typeof t?t:t+"px";G({effect:"creative",swiper:t,on:n,setTranslate:()=>{const{slides:e,$wrapperEl:n,slidesSizesGrid:i}=t,o=t.params.creativeEffect,{progressMultiplier:s}=o,a=t.params.centeredSlides;if(a){const e=i[0]/2-t.params.slidesOffsetBefore||0;n.transform(`translateX(calc(50% - ${e}px))`)}for(let n=0;n0&&(m=o.prev,f=!0),h.forEach((t,e)=>{h[e]=`calc(${t}px + (${r(m.translate[e])} * ${Math.abs(u*s)}))`}),p.forEach((t,e)=>{p[e]=m.rotate[e]*Math.abs(u*s)}),i[0].style.zIndex=-Math.abs(Math.round(l))+e.length;const g=h.join(", "),v=`rotateX(${p[0]}deg) rotateY(${p[1]}deg) rotateZ(${p[2]}deg)`,y=c<0?`scale(${1+(1-m.scale)*c*s})`:`scale(${1-(1-m.scale)*c*s})`,_=c<0?1+(1-m.opacity)*c*s:1-(1-m.opacity)*c*s,b=`translate3d(${g}) ${v} ${y}`;if(f&&m.shadow||!f){let t=i.children(".swiper-slide-shadow");if(0===t.length&&m.shadow&&(t=K(o,i)),t.length){const e=o.shadowPerProgress?u*(1/o.limitProgress):u;t[0].style.opacity=Math.min(Math.max(Math.abs(e),0),1)}}const w=Y(o,i);w.transform(b).css({opacity:_}),m.origin&&w.css("transform-origin",m.origin)}},setTransition:e=>{const{transformEl:n}=t.params.creativeEffect;(n?t.slides.find(n):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),Z({swiper:t,duration:e,transformEl:n,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:n}){e({cardsEffect:{slideShadows:!0,transformEl:null}}),G({effect:"cards",swiper:t,on:n,setTranslate:()=>{const{slides:e,activeIndex:n}=t,r=t.params.cardsEffect,{startTranslate:i,isTouched:o}=t.touchEventsData,s=t.translate;for(let a=0;a0&&c<1&&(o||t.params.cssMode)&&s-1&&(o||t.params.cssMode)&&s>i;if(y||_){const t=(1-Math.abs((Math.abs(c)-.5)/.5))**.5;g+=-28*c*t,m+=-.5*t,v+=96*t,p=-25*t*Math.abs(c)+"%"}if(h=c<0?`calc(${h}px + (${v*Math.abs(c)}%))`:c>0?`calc(${h}px + (-${v*Math.abs(c)}%))`:h+"px",!t.isHorizontal()){const t=p;p=h,h=t}const b=`\n translate3d(${h}, ${p}, ${f}px)\n rotateZ(${g}deg)\n scale(${c<0?""+(1+(1-m)*c):""+(1-(1-m)*c)})\n `;if(r.slideShadows){let t=l.find(".swiper-slide-shadow");0===t.length&&(t=K(r,l)),t.length&&(t[0].style.opacity=Math.min(Math.max((Math.abs(c)-.5)/.5,0),1))}l[0].style.zIndex=-Math.abs(Math.round(u))+e.length,Y(r,l).transform(b)}},setTransition:e=>{const{transformEl:n}=t.params.cardsEffect;(n?t.slides.find(n):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),Z({swiper:t,duration:e,transformEl:n})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return V.use(X),V})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSStickyBlock=e():t.HSStickyBlock=e()}(window,(function(){return d={"./src/js/hs-sticky-block.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSStickyBlock; });\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }\n\n/*\n* HSStickyBlock Plugin\n* @version: 3.0.0 (Wed, 24 Nov 2021)\n* @author: HtmlStream\n* @event-namespace: .HSStickyBlock\n* @license: Htmlstream Libraries (https://htmlstream.com/)\n* Copyright 2021 Htmlstream\n*/\nvar isNumeric = function isNumeric(n) {\n return !isNaN(parseFloat(n)) && isFinite(n);\n},\n offset = function offset(el) {\n el = _typeof(el) === "object" ? el : document.querySelector(el);\n return {\n top: el ? window.pageYOffset + el.getBoundingClientRect().top : 0,\n left: el ? el.getBoundingClientRect().left : 0\n };\n},\n css = function css(el, style) {\n el = _typeof(el) === "object" ? el : document.querySelector(el);\n\n for (var property in style) {\n el.style[property] = style[property];\n }\n};\n\nvar dataAttributeName = \'data-hs-sticky-block-options\';\nvar defaults = {\n parentSelector: null,\n parentWidth: null,\n parentPaddingLeft: null,\n parentOffsetLeft: null,\n targetSelector: null,\n targetHeight: 0,\n stickyHeight: null,\n stickyOffsetTop: 0,\n stickyOffsetBottom: 0,\n windowOffsetTop: 0,\n startPoint: null,\n endPoint: null,\n resolutionsList: {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n },\n breakpoint: \'lg\',\n styles: {\n position: \'fixed\'\n },\n classMap: {\n kill: \'hs-kill-sticky\'\n }\n};\n\nvar HSStickyBlock = /*#__PURE__*/function () {\n function HSStickyBlock(el, options, id) {\n _classCallCheck(this, HSStickyBlock);\n\n this.collection = [];\n var that = this;\n var elems;\n\n if (el instanceof HTMLElement) {\n elems = [el];\n } else if (el instanceof Object) {\n elems = el;\n } else {\n elems = document.querySelectorAll(el);\n }\n\n for (var i = 0; i < elems.length; i += 1) {\n that.addToCollection(elems[i], options, id || elems[i].id);\n }\n\n if (!that.collection.length) {\n return false;\n } // initialization calls\n\n\n that._init();\n\n return this;\n }\n\n _createClass(HSStickyBlock, [{\n key: "_init",\n value: function _init() {\n var _this = this;\n\n var that = this;\n\n var _loop = function _loop(i) {\n var _$el = void 0;\n\n var _options = void 0;\n\n if (that.collection[i].hasOwnProperty(\'$initializedEl\')) {\n return "continue";\n }\n\n _$el = that.collection[i].$el;\n _options = that.collection[i].options;\n Array(\'resize\', \'scroll\').forEach(function (evt) {\n return window.addEventListener(evt, function () {\n return _this.update(_$el, _options);\n }, false);\n });\n that.collection[i].$initializedEl = _options;\n };\n\n for (var i = 0; i < that.collection.length; i += 1) {\n var _ret = _loop(i);\n\n if (_ret === "continue") continue;\n }\n }\n }, {\n key: "update",\n value: function update($el, settings) {\n var that = this;\n\n that._setRules($el, settings);\n }\n }, {\n key: "_updateOptions",\n value: function _updateOptions($el, settings) {\n var parentSelector = document.querySelector(settings.parentSelector),\n targetSelector = document.querySelector(settings.targetSelector);\n settings.windowOffsetTop = window.pageYOffset;\n settings.startPointPos = offset(settings.startPoint).top;\n settings.endPointPos = offset(settings.endPoint).top;\n settings.parentWidth = parentSelector ? parentSelector.clientWidth : 0;\n settings.parentPaddingLeft = parentSelector ? parseInt(window.getComputedStyle(parentSelector).paddingLeft) : 0;\n settings.parentOffsetLeft = offset(parentSelector).left;\n settings.targetHeight = targetSelector ? targetSelector.offsetHeight : 0;\n settings.stickyHeight = $el.offsetHeight;\n }\n }, {\n key: "_setRules",\n value: function _setRules($el, settings) {\n var that = this;\n\n that._kill($el, settings);\n\n that._updateOptions($el, settings);\n\n if (!$el.classList.contains(settings.classMap.kill)) {\n if (settings.windowOffsetTop >= settings.startPointPos - settings.targetHeight - settings.stickyOffsetTop && settings.windowOffsetTop <= settings.endPointPos - settings.targetHeight - settings.stickyOffsetTop) {\n that._add($el, settings);\n\n that._top($el, settings);\n\n that._parentSetHeight($el, settings);\n } else {\n that._reset($el);\n\n that._parentRemoveHeight($el, settings);\n }\n\n if (settings.windowOffsetTop >= settings.endPointPos - settings.targetHeight - settings.stickyHeight - settings.stickyOffsetTop - settings.stickyOffsetBottom) {\n that._bottom($el, settings);\n }\n }\n }\n }, {\n key: "_add",\n value: function _add($el, settings) {\n css($el, {\n position: settings.styles.position,\n left: settings.parentOffsetLeft + settings.parentPaddingLeft + \'px\',\n width: settings.parentWidth + \'px\'\n });\n }\n }, {\n key: "_top",\n value: function _top($el, settings) {\n css($el, {\n top: settings.stickyOffsetTop + settings.targetHeight + \'px\'\n });\n }\n }, {\n key: "_bottom",\n value: function _bottom($el, settings) {\n css($el, {\n top: settings.endPointPos - settings.windowOffsetTop - settings.stickyHeight - settings.stickyOffsetBottom + \'px\'\n });\n }\n }, {\n key: "_reset",\n value: function _reset($el, settings) {\n css($el, {\n position: \'\',\n top: \'\',\n bottom: \'\',\n left: \'\',\n width: \'\'\n });\n }\n }, {\n key: "_kill",\n value: function _kill($el, settings) {\n var that = this;\n\n if (window.innerWidth < settings.resolutionsList[settings.breakpoint]) {\n $el.classList.add(settings.classMap.kill);\n\n that._reset($el);\n\n that._parentRemoveHeight($el, settings);\n } else {\n $el.classList.remove(settings.classMap.kill);\n }\n }\n }, {\n key: "_parentSetHeight",\n value: function _parentSetHeight($el, settings) {\n css(settings.parentSelector, {\n height: settings.stickyHeight + \'px\'\n });\n }\n }, {\n key: "_parentRemoveHeight",\n value: function _parentRemoveHeight($el, settings) {\n css(settings.parentSelector, {\n height: \'\'\n });\n }\n }, {\n key: "addToCollection",\n value: function addToCollection(item, options, id) {\n this.collection.push({\n $el: item,\n id: id || null,\n options: Object.assign({}, defaults, item.hasAttribute(dataAttributeName) ? JSON.parse(item.getAttribute(dataAttributeName)) : {}, options)\n });\n }\n }, {\n key: "getItem",\n value: function getItem(item) {\n if (typeof item === \'number\') {\n return this.collection[item].$initializedEl;\n } else {\n return this.collection.find(function (el) {\n return el.id === item;\n }).$initializedEl;\n }\n }\n }]);\n\n return HSStickyBlock;\n}();\n\n\n\n//# sourceURL=webpack://HSStickyBlock/./src/js/hs-sticky-block.js?')}},e={},f.m=d,f.c=e,f.d=function(t,e,n){f.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.t=function(t,e){if(1&e&&(t=f(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)f.d(n,r,function(e){return t[e]}.bind(null,r));return n},f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,"a",e),e},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.p="",f(f.s="./src/js/hs-sticky-block.js").default;function f(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,f),n.l=!0,n.exports}var d,e})), /*! * * typed.js - A JavaScript Typing Animation Library * Author: Matt Boldt * Version: v2.0.12 * Url: https://github.com/mattboldt/typed.js * License(s): MIT * */ function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Typed=e():t.Typed=e()}(this,(function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;nt.length)););var l=t.substring(0,e),u=t.substring(l.length+1,e+i),c=t.substring(e+i+1);t=l+u+c,i--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),e>=t.length?n.doneTyping(t,e):n.keepTyping(t,e,i),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),r)}),r))}},{key:"keepTyping",value:function(t,e,n){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),e+=n;var r=t.substr(0,e);this.replaceText(r),this.typewrite(t,e)}},{key:"doneTyping",value:function(t,e){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(t,e)}),this.backDelay))}},{key:"backspace",value:function(t,e){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var r=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){e=o.htmlParser.backSpaceHtmlChars(t,e,n);var r=t.substr(0,e);if(n.replaceText(r),n.smartBackspace){var i=n.strings[n.arrayPos+1];i&&r===i.substr(0,e)?n.stopNum=e:n.stopNum=0}e>n.stopNum?(e--,n.backspace(t,e)):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))}),r)}else this.setPauseStatus(t,e,!1)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(t,e,n){this.pause.typewrite=n,this.pause.curString=t,this.pause.curStrPos=e}},{key:"toggleBlinking",value:function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&(this.cursorBlinking=t,t?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(t){return Math.round(Math.random()*t/2)+t}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))}},{key:"initFadeOut",value:function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)}),this.fadeOutDelay)}},{key:"replaceText",value:function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t}},{key:"bindFocusEvents",value:function(){var t=this;this.isInput&&(this.el.addEventListener("focus",(function(e){t.stop()})),this.el.addEventListener("blur",(function(e){t.el.value&&0!==t.el.value.length||t.start()})))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),t}();e.default=s,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e":";";t.substr(e+1).charAt(0)!==i&&!(++e+1>t.length););e++}return e}},{key:"backSpaceHtmlChars",value:function(t,e,n){if("html"!==n.contentType)return e;var r=t.substr(e).charAt(0);if(">"===r||";"===r){var i;for(i=">"===r?"<":"&";t.substr(e-1).charAt(0)!==i&&!(--e<0););e--}return e}}]),t}();e.default=r;var i=new r;e.htmlParser=i}])})),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e);var r,i="fslightbox-",o="".concat(i,"styles"),s="".concat(i,"cursor-grabbing"),a="".concat(i,"full-dimension"),l="".concat(i,"flex-centered"),u="".concat(i,"open"),c="".concat(i,"transform-transition"),d="".concat(i,"absoluted"),h="".concat(i,"slide-btn"),p="".concat(h,"-container"),f="".concat(i,"fade-in"),m="".concat(i,"fade-out"),g=f+"-strong",v=m+"-strong",y="".concat(i,"opacity-"),_="".concat(y,"1"),b="".concat(i,"source");function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t){var e,n=t.props,r=0,i={};this.getSourceTypeFromLocalStorageByUrl=function(t){return e[t]?e[t]:o(t)},this.handleReceivedSourceTypeForUrl=function(t,n){!1===i[n]&&(r--,"invalid"!==t?i[n]=t:delete i[n],0===r&&(function(t,e){for(var n in e)t[n]=e[n]}(e,i),localStorage.setItem("fslightbox-types",JSON.stringify(e))))};var o=function(t){r++,i[t]=!1};n.disableLocalStorage?(this.getSourceTypeFromLocalStorageByUrl=function(){},this.handleReceivedSourceTypeForUrl=function(){}):(e=JSON.parse(localStorage.getItem("fslightbox-types")))||(e={},this.getSourceTypeFromLocalStorageByUrl=o)}function S(t,e,n,r){var i=t.data,o=t.elements.sources,s=n/r,a=0;this.adjustSize=function(){if((a=i.maxSourceWidth/s)i.maxSourceHeight?i.maxSourceHeight:r,l()};var l=function(){o[e].style.width=a*s+"px",o[e].style.height=a+"px"}}function k(t,e){var n=this,r=t.collections.sourceSizers,i=t.elements,o=i.sourceAnimationWrappers,s=i.sourceMainWrappers,a=i.sources,l=t.resolve;function u(t,n){r[e]=l(S,[e,t,n]),r[e].adjustSize()}this.runActions=function(t,r){a[e].classList.add(_),o[e].classList.add(g),s[e].removeChild(s[e].firstChild),u(t,r),n.runActions=u}}function C(t,e){var n,r=this,i=t.elements.sources,o=t.props,s=(0,t.resolve)(k,[e]);this.handleImageLoad=function(t){var e=t.target,n=e.naturalWidth,r=e.naturalHeight;s.runActions(n,r)},this.handleVideoLoad=function(t){var e=t.target,r=e.videoWidth,i=e.videoHeight;n=!0,s.runActions(r,i)},this.handleNotMetaDatedVideoLoad=function(){n||r.handleYoutubeLoad()},this.handleYoutubeLoad=function(){var t=1920,e=1080;o.maxYoutubeDimensions&&(t=o.maxYoutubeDimensions.width,e=o.maxYoutubeDimensions.height),s.runActions(t,e)},this.handleCustomLoad=function(){setTimeout((function(){var t=i[e];s.runActions(t.offsetWidth,t.offsetHeight)}))}}function E(t,e,n){var r=t.elements.sources,i=t.props.customClasses,o=i[e]?i[e]:"";r[e].className=n+" "+o}function T(t,e){var n=t.elements.sources,r=t.props.customAttributes;for(var i in r[e])n[e].setAttribute(i,r[e][i])}function P(t,e){var n=t.collections.sourceLoadHandlers,r=t.elements,i=r.sources,o=r.sourceAnimationWrappers,s=t.props.sources;i[e]=document.createElement("img"),E(t,e,b),i[e].src=s[e],i[e].onload=n[e].handleImageLoad,T(t,e),o[e].appendChild(i[e])}function O(t,e){var n=t.collections.sourceLoadHandlers,r=t.elements,i=r.sources,o=r.sourceAnimationWrappers,s=t.props,a=s.sources,l=s.videosPosters;i[e]=document.createElement("video"),E(t,e,b),i[e].src=a[e],i[e].onloadedmetadata=function(t){n[e].handleVideoLoad(t)},i[e].controls=!0,T(t,e),l[e]&&(i[e].poster=l[e]);var u=document.createElement("source");u.src=a[e],i[e].appendChild(u),setTimeout(n[e].handleNotMetaDatedVideoLoad,3e3),o[e].appendChild(i[e])}function A(t,e){var n=t.collections.sourceLoadHandlers,r=t.elements,o=r.sources,s=r.sourceAnimationWrappers,a=t.props.sources;o[e]=document.createElement("iframe"),E(t,e,"".concat(b," ").concat(i,"youtube-iframe")),o[e].src="https://www.youtube.com/embed/".concat(a[e].match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2],"?enablejsapi=1"),o[e].allowFullscreen=!0,T(t,e),s[e].appendChild(o[e]),n[e].handleYoutubeLoad()}function M(t,e){var n=t.collections.sourceLoadHandlers,r=t.elements,i=r.sources,o=r.sourceAnimationWrappers,s=t.props.sources;i[e]=s[e],E(t,e,"".concat(i[e].className," ").concat(b)),o[e].appendChild(i[e]),n[e].handleCustomLoad()}function L(t,e){var n=t.elements,r=n.sources,o=n.sourceAnimationWrappers,s=n.sourceMainWrappers;t.props.sources,r[e]=document.createElement("div"),r[e].className="".concat(i,"invalid-file-wrapper ").concat(l),r[e].innerHTML="Invalid source",o[e].classList.add(g),o[e].appendChild(r[e]),s[e].removeChild(s[e].firstChild)}function I(t){var e=t.collections,n=e.sourceLoadHandlers,r=e.sourcesRenderFunctions,i=t.core.sourceDisplayFacade,o=t.resolve;this.runActionsForSourceTypeAndIndex=function(e,s){var a;switch("invalid"!==e&&(n[s]=o(C,[s])),e){case"image":a=P;break;case"video":a=O;break;case"youtube":a=A;break;case"custom":a=M;break;default:a=L}r[s]=function(){return a(t,s)},i.displaySourcesWhichShouldBeDisplayed()}}function j(){var t,e,n,r=function(t){var e=document.createElement("a");return e.href=t,"www.youtube.com"===e.hostname},i=function(t){return t.slice(0,t.indexOf("/"))};function o(){if(4!==n.readyState){if(2===n.readyState){var t;switch(i(n.getResponseHeader("content-type"))){case"image":t="image";break;case"video":t="video";break;default:t="invalid"}n.onreadystatechange=null,n.abort(),e(t)}}else e("invalid")}this.setUrlToCheck=function(e){t=e},this.getSourceType=function(i){if(r(t))return i("youtube");e=i,(n=new XMLHttpRequest).onreadystatechange=o,n.open("GET",t,!0),n.send()}}function D(t,e,n){var r=t.props,i=r.types,o=r.type,s=r.sources,a=t.resolve;this.getTypeSetByClientForIndex=function(t){var e;return i&&i[t]?e=i[t]:o&&(e=o),e},this.retrieveTypeWithXhrForIndex=function(t){var r=a(j);r.setUrlToCheck(s[t]),r.getSourceType((function(r){e.handleReceivedSourceTypeForUrl(r,s[t]),n.runActionsForSourceTypeAndIndex(r,t)}))}}function N(t,e){var n=t.componentsServices.hideSourceLoaderIfNotYetCollection,r=t.elements,i=r.sourceWrappersContainer,o=r.sourceMainWrappers;o[e]=document.createElement("div"),o[e].className="".concat(d," ").concat(a," ").concat(l),o[e].innerHTML='
';var s=o[e].firstChild;n[e]=function(){o[e].contains(s)&&o[e].removeChild(s)},i.appendChild(o[e]),function(t,e){var n=t.elements,r=n.sourceMainWrappers,i=n.sourceAnimationWrappers;i[e]=document.createElement("div"),r[e].appendChild(i[e])}(t,e)}function R(t,e,n,r){var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttributeNS(null,"width",e),o.setAttributeNS(null,"height",e),o.setAttributeNS(null,"viewBox",n);var s=document.createElementNS("http://www.w3.org/2000/svg","path");return s.setAttributeNS(null,"class","".concat(i,"svg-path")),s.setAttributeNS(null,"d",r),o.appendChild(s),t.appendChild(o),o}function F(t,e){var n=document.createElement("div");return n.className="".concat(i,"toolbar-button ").concat(l),n.title=e,t.appendChild(n),n}function V(t){var e=t.props.sources,n=t.elements.container,r=document.createElement("div");r.className="".concat(i,"nav"),n.appendChild(r),function(t,e){var n=document.createElement("div");n.className="".concat(i,"toolbar"),e.appendChild(n),function(t,e){var n=t.componentsServices,r=t.core.fullscreenToggler,i=t.data,o="M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z",s=F(e);s.title="Enter fullscreen";var a=R(s,"20px","0 0 18 18",o);n.enterFullscreen=function(){i.isFullscreenOpen=!0,s.title="Exit fullscreen",a.setAttributeNS(null,"width","24px"),a.setAttributeNS(null,"height","24px"),a.setAttributeNS(null,"viewBox","0 0 950 1024"),a.firstChild.setAttributeNS(null,"d","M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z")},n.exitFullscreen=function(){i.isFullscreenOpen=!1,s.title="Enter fullscreen",a.setAttributeNS(null,"width","20px"),a.setAttributeNS(null,"height","20px"),a.setAttributeNS(null,"viewBox","0 0 18 18"),a.firstChild.setAttributeNS(null,"d",o)},s.onclick=function(){i.isFullscreenOpen?r.exitFullscreen():r.enterFullscreen()}}(t,n),function(t,e){var n=F(e,"Close");n.onclick=t.core.lightboxCloser.closeLightbox,R(n,"20px","0 0 24 24","M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z")}(t,n)}(t,r),e.length>1&&function(t,e){var n=t.componentsServices,r=t.props.sources,o=(t.stageIndexes,document.createElement("div"));o.className="".concat(i,"slide-number-container");var s=document.createElement("div");s.className=l;var a=document.createElement("span");n.setSlideNumber=function(t){return a.innerHTML=t};var u=document.createElement("span");u.className="".concat(i,"slash");var c=document.createElement("div");c.innerHTML=r.length,o.appendChild(s),s.appendChild(a),s.appendChild(u),s.appendChild(c),e.appendChild(o),setTimeout((function(){s.offsetWidth>55&&(o.style.justifyContent="flex-start")}))}(t,r)}function z(t,e){var n=this,r=t.elements.sourceMainWrappers,i=t.props,o=0;this.byValue=function(t){return o=t,n},this.negative=function(){s(-a())},this.zero=function(){s(0)},this.positive=function(){s(a())};var s=function(t){r[e].style.transform="translateX(".concat(t+o,"px)"),o=0},a=function(){return(1+i.slideDistance)*innerWidth}}function B(t,e,n,r){var i=t.elements.container,o=n.charAt(0).toUpperCase()+n.slice(1),s=document.createElement("div");s.className="".concat(p," ").concat(p,"-").concat(n),s.title="".concat(o," slide"),s.onclick=e,function(t,e){var n=document.createElement("div");n.className="".concat(h," ").concat(l),R(n,"20px","0 0 20 20",e),t.appendChild(n)}(s,r),i.appendChild(s)}function q(t,e){var n=t.classList;n.contains(e)&&n.remove(e)}function H(t){var e=this,n=t.core,r=n.eventsDispatcher,i=n.fullscreenToggler,o=n.globalEventsController,s=n.scrollbarRecompensor,a=t.data,l=t.elements,c=t.props,d=t.sourcePointerProps;this.isLightboxFadingOut=!1,this.runActions=function(){e.isLightboxFadingOut=!0,l.container.classList.add(v),o.removeListeners(),c.exitFullscreenOnClose&&a.isFullscreenOpen&&i.exitFullscreen(),setTimeout((function(){e.isLightboxFadingOut=!1,d.isPointering=!1,l.container.classList.remove(v),document.documentElement.classList.remove(u),s.removeRecompense(),document.body.removeChild(l.container),r.dispatch("onClose")}),270)}}function $(t){var e=t.core,n=e.lightboxCloser,r=e.fullscreenToggler,i=e.slideChangeFacade;this.listener=function(t){switch(t.key){case"Escape":n.closeLightbox();break;case"ArrowLeft":i.changeToPrevious();break;case"ArrowRight":i.changeToNext();break;case"F11":t.preventDefault(),r.enterFullscreen()}}}function U(t){var e=t.collections.sourceMainWrappersTransformers,n=t.elements,r=t.sourcePointerProps,i=t.stageIndexes;function o(t,n){e[t].byValue(r.swipedX)[n]()}this.runActionsForEvent=function(t){var e,a,l;n.container.contains(n.slideSwipingHoverer)||n.container.appendChild(n.slideSwipingHoverer),e=n.container,a=s,(l=e.classList).contains(a)||l.add(a),r.swipedX=t.screenX-r.downScreenX,o(i.current,"zero"),void 0!==i.previous&&r.swipedX>0?o(i.previous,"negative"):void 0!==i.next&&r.swipedX<0&&o(i.next,"positive")}}function W(t){var e=t.props.sources,n=t.resolve,r=t.sourcePointerProps,i=n(U);1===e.length?this.listener=function(){r.swipedX=1}:this.listener=function(t){r.isPointering&&i.runActionsForEvent(t)}}function G(t){var e=t.collections.sourceMainWrappersTransformers,n=t.core.slideIndexChanger,r=t.elements.sourceMainWrappers,i=t.stageIndexes;this.runPositiveSwipedXActions=function(){void 0===i.previous||(o("positive"),n.changeTo(i.previous)),o("zero")},this.runNegativeSwipedXActions=function(){void 0===i.next||(o("negative"),n.changeTo(i.next)),o("zero")};var o=function(t){r[i.current].classList.add(c),e[i.current][t]()}}function Y(t,e){t.contains(e)&&t.removeChild(e)}function Z(t){var e=t.core.lightboxCloser,n=t.elements,r=t.resolve,i=t.sourcePointerProps,o=r(G);this.runNoSwipeActions=function(){Y(n.container,n.slideSwipingHoverer),i.isSourceDownEventTarget||e.closeLightbox(),i.isPointering=!1},this.runActions=function(){i.swipedX>0?o.runPositiveSwipedXActions():o.runNegativeSwipedXActions(),Y(n.container,n.slideSwipingHoverer),n.container.classList.remove(s),i.isPointering=!1}}function K(t){var e=t.resolve,n=t.sourcePointerProps,r=e(Z);this.listener=function(){n.isPointering&&(n.swipedX?r.runActions():r.runNoSwipeActions())}}function X(t){var e,n,r;n=(e=t).core.classFacade,r=e.elements,n.removeFromEachElementClassIfContains=function(t,e){for(var n=0;ninnerHeight&&(document.body.style.marginRight=e.scrollbarWidth+"px")}n.addRecompense=function(){"complete"===document.readyState?r():addEventListener("load",(function(){r(),n.addRecompense=r}))},n.removeRecompense=function(){document.body.style.removeProperty("margin-right")}}(t),function(t){var e=t.core,n=e.slideChangeFacade,r=e.slideIndexChanger,i=e.stageManager;t.props.sources.length>1?(n.changeToPrevious=function(){r.jumpTo(i.getPreviousSlideIndex())},n.changeToNext=function(){r.jumpTo(i.getNextSlideIndex())}):(n.changeToPrevious=function(){},n.changeToNext=function(){})}(t),function(t){var e,n,r=t.collections.sourceMainWrappersTransformers,i=t.componentsServices,o=t.core,s=o.classFacade,a=o.slideIndexChanger,l=o.sourceDisplayFacade,u=o.stageManager,d=t.elements.sourceAnimationWrappers,h=t.stageIndexes,p=(e=function(){s.removeFromEachElementClassIfContains("sourceAnimationWrappers",m)},300,n=[],function(){n.push(!0),setTimeout((function(){n.pop(),n.length||e()}),300)});a.changeTo=function(t){h.current=t,u.updateStageIndexes(),i.setSlideNumber(t+1),l.displaySourcesWhichShouldBeDisplayed()},a.jumpTo=function(t){var e=h.current;a.changeTo(t),s.removeFromEachElementClassIfContains("sourceMainWrappers",c),q(d[e],g),q(d[e],f),d[e].classList.add(m),q(d[t],g),q(d[t],m),d[t].classList.add(f),p(),r[t].zero(),setTimeout((function(){e!==h.current&&r[e].negative()}),270)}}(t),function(t){var e=t.core,n=e.classFacade,r=e.sourcesPointerDown,i=t.elements.sources,o=t.sourcePointerProps,s=t.stageIndexes;r.listener=function(t){"VIDEO"!==t.target.tagName&&t.preventDefault(),o.isPointering=!0,o.downScreenX=t.screenX,o.swipedX=0;var e=i[s.current];e&&e.contains(t.target)?o.isSourceDownEventTarget=!0:o.isSourceDownEventTarget=!1,n.removeFromEachElementClassIfContains("sourceMainWrappers",c)}}(t),function(t){var e=t.collections.sourcesRenderFunctions,n=t.core.sourceDisplayFacade,r=t.props,i=t.stageIndexes;function o(t){e[t]&&(e[t](),delete e[t])}n.displaySourcesWhichShouldBeDisplayed=function(){if(r.loadOnlyCurrentSource)o(i.current);else for(var t in i)o(i[t])}}(t),function(t){var e=t.stageIndexes,n=t.core.stageManager,r=t.props.sources.length-1;n.getPreviousSlideIndex=function(){return 0===e.current?r:e.current-1},n.getNextSlideIndex=function(){return e.current===r?0:e.current+1},n.updateStageIndexes=0===r?function(){}:1===r?function(){0===e.current?(e.next=1,delete e.previous):(e.previous=0,delete e.next)}:function(){e.previous=n.getPreviousSlideIndex(),e.next=n.getNextSlideIndex()},n.isSourceInStage=r<=2?function(){return!0}:function(t){var n=e.current;if(0===n&&t===r||n===r&&0===t)return!0;var i=n-t;return-1===i||0===i||1===i}}(t),function(t){var e=t.collections,n=e.sourceMainWrappersTransformers,r=e.sourceSizers,i=t.core.windowResizeActioner,o=t.data,s=t.elements.sourceMainWrappers,a=t.props,l=t.stageIndexes;i.runActions=function(){innerWidth<992?o.maxSourceWidth=innerWidth:o.maxSourceWidth=.9*innerWidth,o.maxSourceHeight=.9*innerHeight;for(var t=0;t1&&function(t){var e=t.core.slideChangeFacade;B(t,e.changeToPrevious,"previous","M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"),B(t,e.changeToNext,"next","M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z")}(t),function(t){for(var e=t.props.sources,n=t.resolve,r=n(x),i=n(I),o=n(D,[r,i]),s=0;s0&&void 0!==arguments[0]?arguments[0]:0;f.current=r,h.isInitialized?i.dispatch("onShow"):Q(t),c.updateStageIndexes(),l.displaySourcesWhichShouldBeDisplayed(),n.setSlideNumber(r+1),document.body.appendChild(p.container),document.documentElement.classList.add(u),a.addRecompense(),s.attachListeners(),d.runActions(),e[f.current].zero(),i.dispatch("onOpen")}}function tt(t,e,n){return(tt=et()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&nt(i,n.prototype),i}).apply(null,arguments)}function et(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function nt(t,e){return(nt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rt(t){return function(t){if(Array.isArray(t))return it(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return it(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?it(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:[];return n.unshift(t),tt(e,rt(n))},this.collections={sourceMainWrappersTransformers:[],sourceLoadHandlers:[],sourcesRenderFunctions:[],sourceSizers:[]},this.core={classFacade:{},eventsDispatcher:{},fullscreenToggler:{},globalEventsController:{},lightboxCloser:{},lightboxOpener:{},lightboxUpdater:{},scrollbarRecompensor:{},slideChangeFacade:{},slideIndexChanger:{},sourcesPointerDown:{},sourceDisplayFacade:{},stageManager:{},windowResizeActioner:{}},J(this),this.open=function(e){return t.core.lightboxOpener.open(e)},this.close=function(){return t.core.lightboxCloser.closeLightbox()}},window.fsLightboxInstances={},ot(),window.refreshFsLightbox=function(){for(var t in fsLightboxInstances){var e=fsLightboxInstances[t].props;fsLightboxInstances[t]=new FsLightbox,fsLightboxInstances[t].props=e,fsLightboxInstances[t].props.sources=[],fsLightboxInstances[t].elements.a=[]}ot()}}])})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSSwitchText=e():t.HSSwitchText=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/js/hs-switch-text.js")}({"./src/js/hs-switch-text.js": /*!**********************************!*\ !*** ./src/js/hs-switch-text.js ***! \**********************************/ /*! exports provided: default */function(t,e,n){"use strict";function r(t,e){for(var n=0;n=e[n];)n+=1;return n}t.PipsMode=void 0,(Z=t.PipsMode||(t.PipsMode={})).Range="range",Z.Steps="steps",Z.Positions="positions",Z.Count="count",Z.Values="values",t.PipsType=void 0,(Z=t.PipsType||(t.PipsType={}))[Z.None=-1]="None",Z[Z.NoValue=0]="NoValue",Z[Z.LargeValue=1]="LargeValue",Z[Z.SmallValue=2]="SmallValue";var g=(v.prototype.getDistance=function(t){for(var e=[],n=0;nthis.xPct[r+1];)r++;else t===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);n||t!==this.xPct[r+1]||r++;for(var i,o=1,s=(e=null===e?[]:e)[r],a=0,l=0,u=0,c=n?(t-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):(this.xPct[r+1]-t)/(this.xPct[r+1]-this.xPct[r]);0=t.slice(-1)[0])return 100;var r=t[(o=m(n,t))-1],i=t[o],o=(t=e[o-1],e[o]);return t+(n=n,f(i=[r,i],i[0]<0?n+Math.abs(i[0]):n-i[0],0)/p(t,o))}(this.xVal,this.xPct,t)},v.prototype.fromStepping=function(t){return function(t,e,n){if(100<=n)return t.slice(-1)[0];var r,i=t[(r=m(n,e))-1],o=t[r];return(n-(t=e[r-1]))*p(t,r=e[r])*((o=[i,o])[1]-o[0])/100+o[0]}(this.xVal,this.xPct,t)},v.prototype.getStep=function(t){return function(t,e,n,r){if(100===r)return r;var i=m(r,t),o=t[i-1],s=t[i];return n?(s-o)/2= 2) required for mode 'count'.");for(var n=e.values-1,r=100/n,i=[];n--;)i[n]=n*r;return i.push(100),q(i,e.stepped)}(e),r={},i=k.xVal[0],o=k.xVal[k.xVal.length-1],s=!1,a=!1,l=0;return(n=n.slice().sort((function(t,e){return t-e})).filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==i&&(n.unshift(i),s=!0),n[n.length-1]!==o&&(n.push(o),a=!0),n.forEach((function(i,o){i=i;var u,c,d,h,p,f,m,g,v=n[o+1],y=e.mode===t.PipsMode.Steps,_=(_=y?k.xNumSteps[o]:_)||v-i;for(void 0===v&&(v=i),_=Math.max(_,1e-7),u=i;u<=v;u=Number((u+_).toFixed(7))){for(f=(h=(d=k.toStepping(u))-l)/(e.density||1),g=h/(m=Math.round(f)),c=1;c<=m;c+=1)r[(p=l+c*g).toFixed(5)]=[k.fromStepping(p),0];f=-1t.PipsType.NoValue&&((i=j(s,!1)).className=h(u,o.cssClasses.value),i.setAttribute("data-value",String(l)),i.style[o.style]=a+"%",i.innerHTML=String(r.to(l))))})),s}(n,r,e))}function U(){var t=p.getBoundingClientRect(),e="offset"+["Width","Height"][o.ort];return 0===o.ort?t.width||p[e]:t.height||p[e]}function G(t,e,n,r){function i(i){var s,a=function(t,e,n){var r=0===t.type.indexOf("touch"),i=0===t.type.indexOf("mouse"),o=0===t.type.indexOf("pointer"),s=0,a=0;if(0===t.type.indexOf("MSPointer")&&(o=!0),"mousedown"===t.type&&!t.buttons&&!t.touches)return!1;if(r){var l=function(e){return(e=e.target)===n||n.contains(e)||t.composed&&t.composedPath().shift()===n};if("touchstart"===t.type){if(1<(r=Array.prototype.filter.call(t.touches,l)).length)return!1;s=r[0].pageX,a=r[0].pageY}else{if(!(l=Array.prototype.find.call(t.changedTouches,l)))return!1;s=l.pageX,a=l.pageY}}return e=e||h(A),(i||o)&&(s=t.clientX+e.x,a=t.clientY+e.y),t.pageOffset=e,t.points=[s,a],t.cursor=i||o,t}(i,r.pageOffset,r.target||e);return!!a&&!(F()&&!r.doNotReject)&&(s=S,i=o.cssClasses.tap,!((s.classList?s.classList.contains(i):new RegExp("\\b"+i+"\\b").test(s.className))&&!r.doNotReject)&&!(t===_.start&&void 0!==a.buttons&&1n.stepAfter.startValue&&(i=n.stepAfter.startValue-r),t=r>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&r-n.stepBefore.highestStep,100===e?i=null:0===e&&(t=null),e=k.countStepDecimals(),null!==i&&!1!==i&&(i=Number(i.toFixed(e))),[t=null!==t&&!1!==t?Number(t.toFixed(e)):t,i])}c(e=S,o.cssClasses.target),0===o.dir?c(e,o.cssClasses.ltr):c(e,o.cssClasses.rtl),0===o.ort?c(e,o.cssClasses.horizontal):c(e,o.cssClasses.vertical),c(e,"rtl"===getComputedStyle(e).direction?o.cssClasses.textDirectionRtl:o.cssClasses.textDirectionLtr),p=j(e,o.cssClasses.base),function(t,e){var n=j(e,o.cssClasses.connects);f=[],(m=[]).push(N(n,t[0]));for(var r=0;r=0?n.velocity:-1*n.velocity),t=r,e&&clearTimeout(e),e=setTimeout((function(){t=null}),30)}),!1),function(t){return function(){function t(){n.delta=0&&n.left+n.width>=0&&n.bottom-n.height<=(window.innerHeight||document.documentElement.clientHeight)+e&&n.right-n.width<=(window.innerWidth||document.documentElement.clientWidth)+e}(t,m.bounds)?h[e]&&(h[e]=!1,p++,m.appear&&m.appear(t),m.disappear||m.reappear||(d[e]=null)):(!1===h[e]&&(m.disappear&&m.disappear(t),f++,m.reappear||(d[e]=null)),h[e]=!0)})),m.reappear||m.appear&&(!m.appear||p!==s)||m.disappear&&(!m.disappear||f!==s)||(u=!0,r(),m.done&&m.done()))}function o(){var t;if(!c&&(c=!0,m.init&&m.init(),t="function"==typeof m.elements?m.elements():m.elements)){s=t.length;for(var n=0;s>n;n+=1)d.push(t[n]),h.push(!0);e()}}var s,a,l,u,c=!1,d=[],h=[],p=0,f=0,m={};return function(t){return m={init:(t=t||{}).init,elements:t.elements,appear:t.appear,disappear:t.disappear,done:t.done,reappear:t.reappear,bounds:t.bounds||0,debounce:t.debounce||50,delta:{speed:t.deltaSpeed||50,timeout:t.deltaTimeout||500}},addEventListener("DOMContentLoaded",o,!1),("complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState)&&o(),{trigger:function(){i()},pause:function(){r()},resume:function(){e()},destroy:function(){d=[],a&&clearTimeout(a),r()}}}}()(t)}}(),function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.Circles=e()}(this,(function(){"use strict";var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,1e3/60)},e=function(t){var e=t.id;if(this._el=document.getElementById(e),null!==this._el){this._radius=t.radius||10,this._duration=void 0===t.duration?500:t.duration,this._value=1e-7,this._maxValue=t.maxValue||100,this._text=void 0===t.text?function(t){return this.htmlifyNumber(t)}:t.text,this._strokeWidth=t.width||10,this._colors=t.colors||["#EEE","#F00"],this._svg=null,this._movingPath=null,this._wrapContainer=null,this._textContainer=null,this._wrpClass=t.wrpClass||"circles-wrp",this._textClass=t.textClass||"circles-text",this._valClass=t.valueStrokeClass||"circles-valueStroke",this._maxValClass=t.maxValueStrokeClass||"circles-maxValueStroke",this._styleWrapper=!1!==t.styleWrapper,this._styleText=!1!==t.styleText;var n=Math.PI/180*270;this._start=-Math.PI/180*90,this._startPrecise=this._precise(this._start),this._circ=n-this._start,this._generate().update(t.value||0)}};return e.prototype={VERSION:"0.0.6",_generate:function(){return this._svgSize=2*this._radius,this._radiusAdjusted=this._radius-this._strokeWidth/2,this._generateSvg()._generateText()._generateWrapper(),this._el.innerHTML="",this._el.appendChild(this._wrapContainer),this},_setPercentage:function(t){this._movingPath.setAttribute("d",this._calculatePath(t,!0)),this._textContainer.innerHTML=this._getText(this.getValueFromPercent(t))},_generateWrapper:function(){return this._wrapContainer=document.createElement("div"),this._wrapContainer.className=this._wrpClass,this._styleWrapper&&(this._wrapContainer.style.position="relative",this._wrapContainer.style.display="inline-block"),this._wrapContainer.appendChild(this._svg),this._wrapContainer.appendChild(this._textContainer),this},_generateText:function(){if(this._textContainer=document.createElement("div"),this._textContainer.className=this._textClass,this._styleText){var t={position:"absolute",top:0,left:0,textAlign:"center",width:"100%",fontSize:.7*this._radius+"px",height:this._svgSize+"px",lineHeight:this._svgSize+"px"};for(var e in t)this._textContainer.style[e]=t[e]}return this._textContainer.innerHTML=this._getText(0),this},_getText:function(t){return this._text?(void 0===t&&(t=this._value),t=parseFloat(t.toFixed(2)),"function"==typeof this._text?this._text.call(this,t):this._text):""},_generateSvg:function(){return this._svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._svg.setAttribute("xmlns","http://www.w3.org/2000/svg"),this._svg.setAttribute("width",this._svgSize),this._svg.setAttribute("height",this._svgSize),this._generatePath(100,!1,this._colors[0],this._maxValClass)._generatePath(1,!0,this._colors[1],this._valClass),this._movingPath=this._svg.getElementsByTagName("path")[1],this},_generatePath:function(t,e,n,r){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("fill","transparent"),i.setAttribute("stroke",n),i.setAttribute("stroke-width",this._strokeWidth),i.setAttribute("d",this._calculatePath(t,e)),i.setAttribute("class",r),this._svg.appendChild(i),this},_calculatePath:function(t,e){var n=this._start+t/100*this._circ,r=this._precise(n);return this._arc(r,e)},_arc:function(t,e){var n=t-.001,r=t-this._startPrecise'+r[0]+"";return r.length>1&&(i+='.'+r[1].substring(0,2)+""),i},updateRadius:function(t){return this._radius=t,this._generate().update(!0)},updateWidth:function(t){return this._strokeWidth=t,this._generate().update(!0)},updateColors:function(t){this._colors=t;var e=this._svg.getElementsByTagName("path");return e[0].setAttribute("stroke",t[0]),e[1].setAttribute("stroke",t[1]),this},getPercent:function(){return 100*this._value/this._maxValue},getValueFromPercent:function(t){return this._maxValue*t/100},getValue:function(){return this._value},getMaxValue:function(){return this._maxValue},update:function(e,n){if(!0===e)return this._setPercentage(this.getPercent()),this;if(this._value==e||isNaN(e))return this;void 0===n&&(n=this._duration);var r,i,o,s,a=this,l=a.getPercent(),u=1;return this._value=Math.min(this._maxValue,Math.max(0,e)),n?(r=a.getPercent(),i=r>l,u+=r%1,o=Math.floor(Math.abs(r-l)/u),s=n/o,function e(n){if(i?l+=u:l-=u,i&&l>=r||!i&&l<=r)t((function(){a._setPercentage(r)}));else{t((function(){a._setPercentage(l)}));var o=Date.now(),c=o-n;c>=s?e(o):setTimeout((function(){e(Date.now())}),s-c)}}(Date.now()),this):(this._setPercentage(this.getPercent()),this)}},e.create=function(t){return new e(t)},e})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSVideoBg=e():t.HSVideoBg=e()}(window,(function(){return d={"./src/js/hs-video-bg.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return HSVideoBg; });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ \"./src/js/utils/index.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*\n* HSVideoBg Plugin\n* @version: 3.0.0 (Wed, 17 Mar 2021)\n* @author: HtmlStream\n* @event-namespace: .HSVideoBg\n* @license: Htmlstream Libraries (https://htmlstream.com/)\n* Copyright 2021 Htmlstream\n*/\n\n\nvar HSVideoBg = /*#__PURE__*/function () {\n function HSVideoBg(el, settings) {\n _classCallCheck(this, HSVideoBg);\n\n this.$el = typeof el === \"string\" ? document.querySelector(el) : el;\n this.defaults = {\n type: 'default',\n videoId: null,\n isLoop: true,\n ratio: 1.5\n };\n this.dataSettings = this.$el.hasAttribute('data-hs-video-bg-options') ? JSON.parse(this.$el.getAttribute('data-hs-video-bg-options')) : {};\n this.settings = Object.assign({}, this.defaults, this.dataSettings, settings);\n }\n\n _createClass(HSVideoBg, [{\n key: \"init\",\n value: function init() {\n var _this = this;\n\n this._prepareObject();\n\n if (this.settings.type === 'you-tube') {\n this._APICreating('//www.youtube.com/player_api', 'YT', 'YTDetect').then(function () {\n var newYT;\n\n if (typeof window.onYouTubeIframeAPIReady === 'function') {\n setTimeout(function () {\n newYT = new YT.Player(_this.$el.querySelector('.hs-video-bg-video > div'), {\n videoId: _this.settings.videoId,\n playerVars: {\n autoplay: true,\n controls: 0,\n showinfo: 0,\n enablejsapi: 1,\n modestbranding: 1,\n iv_load_policy: 3,\n loop: _this.settings.isLoop,\n playlist: _this.settings.videoId,\n origin: window.location.origin\n },\n events: {\n onReady: function onReady(e) {\n e.target.mute();\n\n _this._ratioCalc();\n\n window.addEventListener('resize', function () {\n _this._ratioCalc();\n });\n Object(_utils__WEBPACK_IMPORTED_MODULE_0__[\"fadeOut\"])(_this.$el.querySelector('.hs-video-bg-preview'), 400);\n }\n }\n });\n }, 100);\n } else {\n window.onYouTubeIframeAPIReady = function () {\n newYT = new YT.Player(_this.$el.querySelector('.hs-video-bg-video > div'), {\n videoId: _this.settings.videoId,\n playerVars: {\n autoplay: true,\n controls: 0,\n showinfo: 0,\n enablejsapi: 1,\n modestbranding: 1,\n iv_load_policy: 3,\n loop: _this.settings.isLoop,\n playlist: _this.settings.videoId,\n origin: window.location.origin\n },\n events: {\n onReady: function onReady(e) {\n e.target.mute();\n\n _this._ratioCalc();\n\n window.addEventListener('resize', function () {\n _this._ratioCalc();\n });\n Object(_utils__WEBPACK_IMPORTED_MODULE_0__[\"fadeOut\"])(_this.$el.querySelector('.hs-video-bg-preview'), 400);\n }\n }\n });\n };\n }\n });\n } else if (this.settings.type === 'vimeo') {\n this._APICreating('//player.vimeo.com/api/player.js', 'Vimeo', 'VimeoDetect').then(function () {\n var newVimeo = new Vimeo.Player(_this.$el.querySelector('.hs-video-bg-video'), {\n id: _this.settings.videoId,\n loop: _this.settings.isLoop,\n title: false,\n portrait: false,\n byline: false,\n autoplay: true,\n autopause: false,\n muted: true\n });\n newVimeo.play().then(function () {\n _this._ratioCalc();\n\n window.addEventListener('resize', function () {\n _this._ratioCalc();\n });\n Object(_utils__WEBPACK_IMPORTED_MODULE_0__[\"fadeOut\"])(_this.$el.querySelector('.hs-video-bg-preview'), 400);\n });\n });\n } else {\n window.addEventListener('resize', function () {\n _this._ratioCalc();\n });\n setTimeout(function () {\n _this._ratioCalc();\n });\n }\n }\n }, {\n key: \"_prepareObject\",\n value: function _prepareObject() {\n var _this2 = this;\n\n this.$el.style.position = 'relative';\n\n if (this.settings.type === 'you-tube') {\n this.$el.insertAdjacentHTML('beforeend', '
');\n } else if (this.settings.type === 'vimeo') {\n this.$el.insertAdjacentHTML('beforeend', '
');\n } else {\n this.$el.insertAdjacentHTML('beforeend', \"\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\n
\\n\\t\\t\\t\"));\n }\n\n if (this.settings.type === 'you-tube') {\n this.$el.insertAdjacentHTML('beforeend', \"
\"));\n } else if (this.settings.type === 'vimeo') {\n fetch(\"//www.vimeo.com/api/v2/video/\".concat(this.settings.videoId, \".json?callback=?\")).then(function (data) {\n _this2.$el.insertAdjacentHTML('beforeend', \"
\"));\n });\n } else {\n return false;\n }\n }\n }, {\n key: \"_ratioCalc\",\n value: function _ratioCalc() {\n var _ratio = this.$el.clientWidth / this.$el.clientHeight;\n\n var $videoBg = this.$el.querySelector('.hs-video-bg-video');\n if (!$videoBg) return false;\n\n if (this.settings.type === 'you-tube' || this.settings.type === 'vimeo') {\n if (this.$el.clientHeight < this.$el.clientWidth && window.innerWidth > 768) {\n $videoBg.style.width = _ratio * this.$el.clientWidth * this.settings.ratio;\n $videoBg.style.height = _ratio * this.$el.clientHeight * this.settings.ratio;\n } else {\n $videoBg.style.width = _ratio * this.$el.clientWidth;\n $videoBg.style.height = '130%';\n }\n }\n }\n }, {\n key: \"_APICreating\",\n value: function _APICreating(scriptUrl, globalName, globalNameDetect) {\n if (window[globalNameDetect]) {\n return Promise.resolve();\n }\n\n return new Promise(function (resolve, reject) {\n var script = document.createElement('script'),\n before = document.querySelector('script');\n script.src = scriptUrl;\n before.parentNode.insertBefore(script, before);\n\n script.onload = function () {\n !globalName || window[globalName] ? resolve() : reject(Error('window.' + globalName + ' undefined'));\n };\n\n script.onerror = function () {\n reject(Error('Error loading ' + globalName || false));\n };\n });\n }\n }]);\n\n return HSVideoBg;\n}();\n\n\n\n//# sourceURL=webpack://HSVideoBg/./src/js/hs-video-bg.js?")},"./src/js/utils/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fadeOut\", function() { return fadeOut; });\nfunction fadeOut(el, time) {\n if (!el || el.offsetParent === null) return el;\n\n if (!time) {\n return el.style.display = 'none';\n }\n\n var intervalID = setInterval(function () {\n if (!el.style.opacity) {\n el.style.opacity = 1;\n }\n\n if (el.style.opacity > 0) {\n el.style.opacity -= 0.1;\n } else {\n clearInterval(intervalID);\n el.style.display = 'none';\n }\n }, time / 10);\n}\n\n//# sourceURL=webpack://HSVideoBg/./src/js/utils/index.js?")}},e={},f.m=d,f.c=e,f.d=function(t,e,n){f.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.t=function(t,e){if(1&e&&(t=f(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)f.d(n,r,function(e){return t[e]}.bind(null,r));return n},f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,"a",e),e},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.p="",f(f.s="./src/js/hs-video-bg.js").default;function f(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,f),n.l=!0,n.exports}var d,e})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSToggleSwitch=e():t.HSToggleSwitch=e()}(window,(function(){return d={"./node_modules/countup.js/dist/countUp.min.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CountUp", function() { return CountUp; });\nvar __assign=undefined&&undefined.__assign||function(){return(__assign=Object.assign||function(t){for(var i,a=1,s=arguments.length;as.endVal?s.endVal:s.frameVal,s.frameVal=Number(s.frameVal.toFixed(s.options.decimalPlaces)),s.printValue(s.frameVal),i1?s.options.decimal+a[1]:"",s.options.useGrouping){r="";for(var l=0,h=n.length;lt;var i=t-this.startVal;if(Math.abs(i)>this.options.smartEasingThreshold){this.finalEndVal=t;var a=this.countDown?1:-1;this.endVal=t+a*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.callback=t,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var i=this.formattingFn(t);"INPUT"===this.el.tagName?this.el.value=i:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=i:this.el.innerHTML=i},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var i=Number(t);return this.ensureNumber(i)?i:(this.error="[CountUp] invalid start or end value: "+t,null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}();\n\n//# sourceURL=webpack://HSToggleSwitch/./node_modules/countup.js/dist/countUp.min.js?')},"./src/js/hs-toggle-switch.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSToggleSwitch; });\n/* harmony import */ var countup_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! countup.js */ "./node_modules/countup.js/dist/countUp.min.js");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*\n* HSToggleSwitch Plugin\n* @version: 1.0.0 (Mon, 12 Dec 2019)\n* @requires: countup.js v2.0.4\n* @author: HtmlStream\n* @event-namespace: .HSToggleSwitch\n* @license: Htmlstream Libraries (https://htmlstream.com/)\n* Copyright 2019 Htmlstream\n*/\n\nvar dataAttributeName = \'data-hs-toggle-switch-options\';\nvar dataAttributeItemName = \'data-hs-toggle-switch-item-options\';\nvar defaults = {\n mode: \'toggle-count\',\n targetSelector: undefined,\n isChecked: false,\n eventType: \'change\'\n};\n\nvar HSToggleSwitch = /*#__PURE__*/function () {\n function HSToggleSwitch(el, options, id) {\n _classCallCheck(this, HSToggleSwitch);\n\n this.collection = [];\n var that = this;\n var elems;\n\n if (el instanceof HTMLElement) {\n elems = [el];\n } else if (el instanceof Object) {\n elems = el;\n } else {\n elems = document.querySelectorAll(el);\n }\n\n for (var i = 0; i < elems.length; i += 1) {\n that.addToCollection(elems[i], options, id || elems[i].id);\n }\n\n if (!that.collection.length) {\n return false;\n } // initialization calls\n\n\n that._init();\n\n return this;\n }\n\n _createClass(HSToggleSwitch, [{\n key: "_init",\n value: function _init() {\n var that = this;\n\n var _loop = function _loop(i) {\n var _$el = void 0;\n\n var _options = void 0;\n\n if (that.collection[i].hasOwnProperty(\'$initializedEl\')) {\n return "continue";\n }\n\n _$el = that.collection[i].$el;\n _options = that.collection[i].options;\n _options.isChecked = _$el.checked;\n _options.$targets = document.querySelectorAll(_options.targetSelector);\n\n if (_options.mode === \'toggle-count\') {\n if (_options.isChecked) {\n _options.isChecked = true;\n\n _options.$targets.forEach(function ($target) {\n var currentDataSettings = $target.hasAttribute(dataAttributeItemName) ? JSON.parse($target.getAttribute(dataAttributeItemName)) : {};\n $target.innerHTML = currentDataSettings.max;\n });\n }\n\n _$el.addEventListener(_options.eventType, function () {\n return that._toggleCount(_options);\n });\n }\n };\n\n for (var i = 0; i < that.collection.length; i += 1) {\n var _ret = _loop(i);\n\n if (_ret === "continue") continue;\n }\n } // Toggle Count\n\n }, {\n key: "_toggleCount",\n value: function _toggleCount(settings) {\n if (settings.isChecked) {\n this._countDownEach(settings);\n } else {\n this._countUpEach(settings);\n }\n }\n }, {\n key: "_countUpEach",\n value: function _countUpEach(settings) {\n var _this = this;\n\n settings.isChecked = true;\n settings.$targets.forEach(function ($target) {\n var currentDataSettings = $target.hasAttribute(dataAttributeItemName) ? JSON.parse($target.getAttribute(dataAttributeItemName)) : {};\n var currentDefaults = {\n duration: .5,\n useEasing: false\n },\n currentOptions = {};\n currentOptions = Object.assign({}, currentDefaults, currentDataSettings);\n\n _this._countUp($target, currentOptions);\n });\n }\n }, {\n key: "_countDownEach",\n value: function _countDownEach(settings) {\n var _this2 = this;\n\n settings.isChecked = false;\n settings.$targets.forEach(function ($target) {\n var currentDataSettings = $target.hasAttribute(dataAttributeItemName) ? JSON.parse($target.getAttribute(dataAttributeItemName)) : {};\n var currentDefaults = {\n duration: .5,\n useEasing: false\n },\n currentOptions = {};\n currentOptions = Object.assign({}, currentDefaults, currentDataSettings);\n\n _this2._countDown($target, currentOptions);\n });\n }\n }, {\n key: "_countUp",\n value: function _countUp(el, data) {\n var defaults = {\n startVal: data.min\n };\n var options = Object.assign({}, defaults, data);\n var countUp = new countup_js__WEBPACK_IMPORTED_MODULE_0__["CountUp"](el, data.max, options);\n countUp.start();\n }\n }, {\n key: "_countDown",\n value: function _countDown(el, data) {\n var defaults = {\n startVal: data.max\n };\n var options = Object.assign({}, defaults, data);\n var countUp = new countup_js__WEBPACK_IMPORTED_MODULE_0__["CountUp"](el, data.min, options);\n countUp.start();\n }\n }, {\n key: "addToCollection",\n value: function addToCollection(item, options, id) {\n this.collection.push({\n $el: item,\n id: id || null,\n options: Object.assign({}, defaults, item.hasAttribute(dataAttributeName) ? JSON.parse(item.getAttribute(dataAttributeName)) : {}, options)\n });\n }\n }, {\n key: "getItem",\n value: function getItem(item) {\n if (typeof item === \'number\') {\n return this.collection[item].$initializedEl;\n } else {\n return this.collection.find(function (el) {\n return el.id === item;\n }).$initializedEl;\n }\n }\n }]);\n\n return HSToggleSwitch;\n}();\n\n\n\n//# sourceURL=webpack://HSToggleSwitch/./src/js/hs-toggle-switch.js?')}},e={},f.m=d,f.c=e,f.d=function(t,e,n){f.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.t=function(t,e){if(1&e&&(t=f(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)f.d(n,r,function(e){return t[e]}.bind(null,r));return n},f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,"a",e),e},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.p="",f(f.s="./src/js/hs-toggle-switch.js").default;function f(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,f),n.l=!0,n.exports}var d,e})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSScrollspy=e():t.HSScrollspy=e()}(window,(function(){return d={"./src/js/hs-scrollspy.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSScrollspy; });\nfunction _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*\r\n* HSScrollspy Plugin\r\n* @version: 1.0.0 (Wed, 24 Nov 2021)\r\n* @author: HtmlStream\r\n* @event-namespace: .HSScrollspy\r\n* @license: Htmlstream Libraries (https://htmlstream.com/)\r\n* Copyright 2021 Htmlstream\r\n*/\nvar HSScrollspy = /*#__PURE__*/function () {\n function HSScrollspy(elem, settings) {\n _classCallCheck(this, HSScrollspy);\n\n this.$el = typeof elem === \'string\' ? document.querySelector(elem) : elem;\n this.defaults = {\n disableCollapse: null,\n scrollOffset: 0,\n collapsibleNav: null,\n resolutionsList: {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n },\n resetOffset: null,\n breakpoint: \'lg\',\n scrollspyContainer: document.body\n };\n this.dataSettings = this.$el.hasAttribute(\'data-hs-scrollspy-options\') ? JSON.parse(this.$el.getAttribute(\'data-hs-scrollspy-options\')) : {}, this.settings = Object.assign({}, this.defaults, this.dataSettings, settings);\n this.init();\n }\n\n _createClass(HSScrollspy, [{\n key: "init",\n value: function init() {\n var _this = this;\n\n this.scrollSpyInstance = bootstrap.ScrollSpy.getInstance(this.settings.scrollspyContainer);\n var nav = _typeof(this.scrollSpyInstance._config.target) === \'object\' ? this.scrollSpyInstance._config.target : document.querySelector(this.scrollSpyInstance._config.target);\n\n if (this.settings.disableCollapse === null && this.$el.classList.contains(\'collapse\')) {\n this.settings.disableCollapse = false;\n }\n\n nav.addEventListener(\'click\', function (e) {\n if (!e.target.closest(\'a:not([href="#"]):not([href="#0"])\')) return;\n e.preventDefault();\n\n if (_this.settings.disableCollapse === false && window.innerWidth < _this.settings.resolutionsList[_this.settings.breakpoint]) {\n new bootstrap.Collapse(_this.$el).hide();\n return _this.$el.addEventListener(\'hidden.bs.collapse\', function () {\n _this.smoothScroll(e);\n });\n } else {\n _this.smoothScroll(e);\n }\n });\n }\n }, {\n key: "smoothScroll",\n value: function smoothScroll(e) {\n var offset = this.settings.resetOffset && window.innerWidth < this.settings.resolutionsList[this.settings.resetOffset] ? 0 : this.scrollSpyInstance._config.offset;\n window.scroll({\n top: document.querySelector(e.target.hash).offsetTop - offset - this.settings.scrollOffset,\n left: 0,\n behavior: \'smooth\'\n });\n }\n }]);\n\n return HSScrollspy;\n}();\n\n\n\n//# sourceURL=webpack://HSScrollspy/./src/js/hs-scrollspy.js?')}},e={},f.m=d,f.c=e,f.d=function(t,e,n){f.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.t=function(t,e){if(1&e&&(t=f(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)f.d(n,r,function(e){return t[e]}.bind(null,r));return n},f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,"a",e),e},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.p="",f(f.s="./src/js/hs-scrollspy.js").default;function f(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,f),n.l=!0,n.exports}var d,e})),function(t,e){"object"==typeof exports&&void 0!==module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.L={})}(this,(function(t){"use strict";function e(t){for(var e,n,r=1,i=arguments.length;r=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>=e.x&&r.x<=n.x,s=i.y>=e.y&&r.y<=n.y;return o&&s},overlaps:function(t){t=N(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>e.x&&r.xe.y&&r.y=r.lat&&n.lat<=i.lat&&e.lng>=r.lng&&n.lng<=i.lng},intersects:function(t){t=F(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>=e.lat&&r.lat<=n.lat,s=i.lng>=e.lng&&r.lng<=n.lng;return o&&s},overlaps:function(t){t=F(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>e.lat&&r.late.lng&&r.lng';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function Lt(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var It={ie:tt,ielt9:et,edge:nt,webkit:rt,android:it,android23:ot,androidStock:at,opera:lt,chrome:ut,gecko:ct,safari:dt,phantom:ht,opera12:pt,win:ft,ie3d:mt,webkit3d:gt,gecko3d:vt,any3d:yt,mobile:_t,mobileWebkit:bt,mobileWebkit3d:wt,msPointer:xt,pointer:St,touch:kt,mobileOpera:Ct,mobileGecko:Et,retina:Tt,passiveEvents:Pt,canvas:Ot,svg:At,vml:Mt},jt=xt?"MSPointerDown":"pointerdown",Dt=xt?"MSPointerMove":"pointermove",Nt=xt?"MSPointerUp":"pointerup",Rt=xt?"MSPointerCancel":"pointercancel",Ft={},Vt=!1;function zt(t,e,n,r){function o(t){$t(t,a)}var s,a,l,u,c,d,h,p;function f(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||$t(t,u)}return"touchstart"===e?(c=t,d=n,h=r,p=i((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Re(t),$t(t,d)})),c["_leaflet_touchstart"+h]=p,c.addEventListener(jt,p,!1),Vt||(document.addEventListener(jt,Bt,!0),document.addEventListener(Dt,qt,!0),document.addEventListener(Nt,Ht,!0),document.addEventListener(Rt,Ht,!0),Vt=!0)):"touchmove"===e?(u=n,(l=t)["_leaflet_touchmove"+r]=f,l.addEventListener(Dt,f,!1)):"touchend"===e&&(a=n,(s=t)["_leaflet_touchend"+r]=o,s.addEventListener(Nt,o,!1),s.addEventListener(Rt,o,!1)),this}function Bt(t){Ft[t.pointerId]=t}function qt(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function Ht(t){delete Ft[t.pointerId]}function $t(t,e){for(var n in t.touches=[],Ft)t.touches.push(Ft[n]);t.changedTouches=[t],e(t)}var Ut,Wt,Gt,Yt,Zt,Kt,Xt=xt?"MSPointerDown":St?"pointerdown":"touchstart",Qt=xt?"MSPointerUp":St?"pointerup":"touchend",Jt="_leaflet_",te=ge(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ee=ge(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ne="webkitTransition"===ee||"OTransition"===ee?ee+"End":"transitionend";function re(t){return"string"==typeof t?document.getElementById(t):t}function ie(t,e){var n,r=t.style[e]||t.currentStyle&&t.currentStyle[e];return r&&"auto"!==r||!document.defaultView||(r=(n=document.defaultView.getComputedStyle(t,null))?n[e]:null),"auto"===r?null:r}function oe(t,e,n){var r=document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}function se(t){var e=t.parentNode;e&&e.removeChild(t)}function ae(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function le(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ue(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ce(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=fe(t);return 0this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,F(t));return n.equals(r)||this.panTo(r,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n,r,i=j((e=e||{}).paddingTopLeft||e.padding||[0,0]),o=j(e.paddingBottomRight||e.padding||[0,0]),s=this.getCenter(),a=this.project(s),l=this.project(t),u=this.getPixelBounds(),c=u.getSize().divideBy(2),d=N([u.min.add(i),u.max.subtract(o)]);return d.contains(l)||(this._enforcingBounds=!0,n=a.subtract(l),r=j(l.x+n.x,l.y+n.y),(l.xd.max.x)&&(r.x=a.x-n.x,0d.max.y)&&(r.y=a.y-n.y,0=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,r=[],i="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,a=!1;o;){if((n=this._targets[s(o)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(i&&!Ue(o,t))break;if(r.push(n),i)break}if(o===this._container)break;o=o.parentNode}return r.length||a||i||!Ue(o,t)||(r=[this]),r},_handleDOMEvent:function(t){var e;this._loaded&&!$e(t)&&("mousedown"!==(e=t.type)&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||xe(t.target||t.srcElement),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,r){var i;if("click"===t.type&&((i=e({},t)).type="preclick",this._fireDOMEvent(i,i.type,r)),!t._stopped&&(r=(r||[]).concat(this._findEventTargets(t,n))).length){var o=r[0];"contextmenu"===n&&o.listens(n,!0)&&Re(t);var s,a={originalEvent:t};"keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(s=o.getLatLng&&(!o._radius||o._radius<=10),a.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?o.getLatLng():this.layerPointToLatLng(a.layerPoint));for(var l=0;lthis.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(e),i=this._getCenterOffset(t)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i)||(C((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,de(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:r}),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&he(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),C((function(){this._moveEnd(!0)}),this))}});function Ze(t){return new Ke(t)}var Ke=P.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),r=t._controlCorners[n];return de(e,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(e,r.firstChild):r.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(se(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(t){var e,n=document.createElement("label"),r=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=r):e=this._createRadioElement("leaflet-base-layers_"+s(this),r),this._layerControlInputs.push(e),e.layerId=s(t.layer),Te(e,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+t.name;var o=document.createElement("div");return n.appendChild(o),o.appendChild(e),o.appendChild(i),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;0<=o;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?r.push(e):t.checked||i.push(e);for(o=0;oe.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Qe=Ke.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=oe("div",e+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,r,i){var o=oe("a",n,r);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Ne(o),Te(o,"click",Fe),Te(o,"click",i,this),Te(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";he(this._zoomInButton,e),he(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMinZoom()||de(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMaxZoom()||de(this._zoomInButton,e)}});Ye.mergeOptions({zoomControl:!0}),Ye.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Qe,this.addControl(this.zoomControl))}));var Je=Ke.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=oe("div",e),r=this.options;return this._addScales(r,e+"-line",n),t.on(r.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=oe("div",e,n)),t.imperial&&(this._iScale=oe("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,r,i=3.2808399*t;5280Leaflet'},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=oe("div","leaflet-control-attribution"),Ne(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});Ye.mergeOptions({attributionControl:!0}),Ye.addInitHook((function(){this.options.attributionControl&&(new tn).addTo(this)})),Ke.Layers=Xe,Ke.Zoom=Qe,Ke.Scale=Je,Ke.Attribution=tn,Ze.layers=function(t,e,n){return new Xe(t,e,n)},Ze.zoom=function(t){return new Qe(t)},Ze.scale=function(t){return new Je(t)},Ze.attribution=function(t){return new tn(t)};var en=P.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});en.addTo=function(t,e){return t.addHandler(e,this),this};var nn,rn={Events:O},on=kt?"touchstart mousedown":"mousedown",sn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},an={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},ln=A.extend({options:{clickTolerance:3},initialize:function(t,e,n,r){p(this,r),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Te(this._dragStartTarget,on,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ln._dragging===this&&this.finishDrag(),Oe(this._dragStartTarget,on,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,n;!t._simulated&&this._enabled&&(this._moved=!1,ce(this._element,"leaflet-zoom-anim")||ln._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((ln._dragging=this)._preventOutline&&xe(this._element),be(),Gt(),this._moving||(this.fire("down"),e=t.touches?t.touches[0]:t,n=ke(this._element),this._startPoint=new M(e.clientX,e.clientY),this._parentScale=Ce(n),Te(document,an[t.type],this._onMove,this),Te(document,sn[t.type],this._onUp,this))))},_onMove:function(t){var e,n;!t._simulated&&this._enabled&&(t.touches&&1e&&(n.push(t[r]),i=r);return ie.max.x&&(n|=2),t.ye.max.y&&(n|=8),n}function fn(t,e,n,r){var i,o=e.x,s=e.y,a=n.x-o,l=n.y-s,u=a*a+l*l;return 0this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()t.y!=r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x&&(u=!u);return u||Rn.prototype._containsPoint.call(this,t,!0)}}),Vn=On.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,r,i=v(t)?t:t.features;if(i){for(e=0,n=i.length;eu.x&&(c=o.x+r-u.x+l.x),o.x-c-a.x<0&&(c=o.x-a.x),o.y+n+l.y>u.y&&(d=o.y+n-u.y+l.y),o.y-d-a.y<0&&(d=o.y-a.y),(c||d)&&t.fire("autopanstart").panBy([c,d]))},_onCloseButtonClick:function(t){this._close(),Fe(t)},_getAnchor:function(){return j(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ye.mergeOptions({closePopupOnClick:!0}),Ye.include({openPopup:function(t,e,n){return t instanceof er||(t=new er(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Tn.include({bindPopup:function(t,e){return t instanceof er?(p(t,e),(this._popup=t)._source=this):(this._popup&&!e||(this._popup=new er(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Fe(t),e instanceof jn?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var nr=tr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){tr.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){tr.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=tr.prototype.getEvents.call(this);return kt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=oe("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n=this._map,r=this._container,i=n.latLngToContainerPoint(n.getCenter()),o=n.layerPointToContainerPoint(t),s=this.options.direction,a=r.offsetWidth,l=r.offsetHeight,u=j(this.options.offset),c=this._getAnchor(),d="top"===s?(e=a/2,l):"bottom"===s?(e=a/2,0):(e="center"===s?a/2:"right"===s?0:"left"===s?a:o.xthis.options.maxZoom||rthis.options.maxZoom||void 0!==this.options.minZoom&&in.max.x)||!e.wrapLat&&(t.yn.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),r=t.scaleBy(n),i=r.add(n);return[e.unproject(r,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new R(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new M(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(se(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){de(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=u,t.onmousemove=u,et&&this.options.opacity<1&&me(t,this.options.opacity),it&&!ot&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),r=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&C(i(this._tileReady,this,t,null,o)),ye(o,n),this._tiles[r]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var r=this._tileCoordsToKey(t);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(me(n.el,0),E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(de(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),et||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new M(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new D(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),or=ir.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&Tt&&0')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),hr={_initContainer:function(){this._container=oe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(lr.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=dr("shape");de(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=dr("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;se(e),t.removeInteractiveTarget(e),delete this._layers[s(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,r=t.options,i=t._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(e=e||(t._stroke=dr("stroke")),i.appendChild(e),e.weight=r.weight+"px",e.color=r.color,e.opacity=r.opacity,r.dashArray?e.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=r.lineCap.replace("butt","flat"),e.joinstyle=r.lineJoin):e&&(i.removeChild(e),t._stroke=null),r.fill?(n=n||(t._fill=dr("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),r=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+r+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){le(t._container)},_bringToBack:function(t){ue(t._container)}},pr=Mt?dr:X,fr=lr.extend({getEvents:function(){var t=lr.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=pr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){se(this._container),Oe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){var t,e,n;this._map._animatingZoom&&this._bounds||(lr.prototype._update.call(this),e=(t=this._bounds).getSize(),n=this._container,this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),ye(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath:function(t){var e=t._path=pr("path");t.options.className&&de(e,t.options.className),t.options.interactive&&de(e,"leaflet-interactive"),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){se(t._path),t.removeInteractiveTarget(t._path),delete this._layers[s(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Q(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),r="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",i=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(t,i)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){le(t._path)},_bringToBack:function(t){ue(t._path)}});function mr(t){return At||Mt?new fr(t):null}Mt&&fr.include(hr),Ye.include({getRenderer:function(t){var e=(e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer());return this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&cr(t)||mr(t)}});var gr=Fn.extend({initialize:function(t,e){Fn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=F(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});fr.create=pr,fr.pointsToPath=Q,Vn.geometryToLayer=zn,Vn.coordsToLatLng=qn,Vn.coordsToLatLngs=Hn,Vn.latLngToCoords=$n,Vn.latLngsToCoords=Un,Vn.getFeature=Wn,Vn.asFeature=Gn,Ye.mergeOptions({boxZoom:!0});var vr=en.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Te(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Oe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){se(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Gt(),be(),this._startPoint=this._map.mouseEventToContainerPoint(t),Te(document,{contextmenu:Fe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=oe("div","leaflet-zoom-box",this._container),de(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new D(this._point,this._startPoint),n=e.getSize();ye(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(se(this._box),he(this._container,"leaflet-crosshair")),Yt(),we(),Oe(document,{contextmenu:Fe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){var e;1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0),e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})))},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Ye.addInitHook("addHandler","boxZoom",vr),Ye.mergeOptions({doubleClickZoom:!0});var yr=en.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),r=e.options.zoomDelta,i=t.originalEvent.shiftKey?n-r:n+r;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}});Ye.addInitHook("addHandler","doubleClickZoom",yr),Ye.mergeOptions({dragging:!0,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _r=en.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new ln(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),de(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){he(this._map._container,"leaflet-grab"),he(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=F(this._map.options.maxBounds),this._offsetLimit=N(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var e,n;this._map.options.inertia&&(e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(n),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-e+n)%t+e-n,o=(r+e+n)%t-e-n,s=Math.abs(i+n)e.getMaxZoom()&&1\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tYour browser doesn\'t support HTML5 video tag.\n\t\t\t\t'))}},{key:"addToCollection",value:function(t,e,n){this.collection.push({$el:t,id:n||null,options:Object.assign({},i,t.hasAttribute("data-hs-video-player-options")?JSON.parse(t.getAttribute("data-hs-video-player-options")):{},e)})}},{key:"getItem",value:function(t){return"number"==typeof t?this.collection[t].$initializedEl:this.collection.find((function(e){return e.id===t})).$initializedEl}}])&&r(e.prototype,n),t}()}}).default})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSStepForm=e():t.HSStepForm=e()}(window,(function(){return d={"./src/js/hs-step-form.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return HSStepForm; });\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*\n* HSStepForm Plugin\n* @version: 3.0.1 (Sun, 1 Aug 2021)\n* @author: HtmlStream\n* @event-namespace: .HSStepForm\n* @license: Htmlstream Libraries (https://htmlstream.com/)\n* Copyright 2021 Htmlstream\n*/\nvar dataAttributeName = 'data-hs-step-form-options';\nvar defaults = {\n progressSelector: null,\n progressItems: null,\n stepsSelector: null,\n stepsItems: null,\n stepsActiveItem: null,\n nextSelector: '[data-hs-step-form-next-options]',\n prevSelector: '[data-hs-step-form-prev-options]',\n endSelector: null,\n isValidate: false,\n classMap: {\n active: 'active',\n checked: 'is-valid',\n error: 'is-invalid',\n required: 'js-step-required',\n focus: 'focus'\n },\n finish: function finish() {},\n preventNextStep: function preventNextStep() {\n return new Promise(function (resolve, reject) {\n resolve();\n });\n },\n onNextStep: function onNextStep() {},\n onPrevStep: function onPrevStep() {}\n};\n\nvar HSStepForm = /*#__PURE__*/function () {\n function HSStepForm(el, options, id) {\n _classCallCheck(this, HSStepForm);\n\n this.collection = [];\n var that = this;\n var elems;\n\n if (el instanceof HTMLElement) {\n elems = [el];\n } else if (el instanceof Object) {\n elems = el;\n } else {\n elems = document.querySelectorAll(el);\n }\n\n for (var i = 0; i < elems.length; i += 1) {\n that.addToCollection(elems[i], options, id || elems[i].id);\n }\n\n if (!that.collection.length) {\n return false;\n } // initialization calls\n\n\n that._init();\n\n return this;\n }\n\n _createClass(HSStepForm, [{\n key: \"_init\",\n value: function _init() {\n var that = this;\n\n var _loop = function _loop(i) {\n var _$el = void 0;\n\n var _options = void 0;\n\n if (that.collection[i].hasOwnProperty('$initializedEl')) {\n return \"continue\";\n }\n\n _$el = that.collection[i].$el;\n _options = that.collection[i].options;\n _options.progressItems = _$el.querySelector(_options.progressSelector).children;\n _options.stepsItems = _$el.querySelector(_options.stepsSelector).children;\n _options.stepsActiveItem = _$el.querySelector(_options.stepsSelector).querySelector(\".\".concat(_options.classMap.active));\n\n that._prepareObject(_$el, _options);\n\n _$el.querySelectorAll(_options.nextSelector).forEach(function (item) {\n item.addEventListener('click', function () {\n that._nextClickEvents(_$el, _options, item);\n });\n });\n\n _$el.querySelectorAll(_options.prevSelector).forEach(function (item) {\n item.addEventListener('click', function () {\n that._prevClickEvents(_$el, _options, item);\n });\n });\n\n _$el.querySelectorAll(_options.endSelector).forEach(function (item) {\n item.addEventListener('click', function () {\n that._endClickEvents(_$el, _options);\n });\n });\n\n that.collection[i].$initializedEl = _options;\n };\n\n for (var i = 0; i < that.collection.length; i += 1) {\n var _ret = _loop(i);\n\n if (_ret === \"continue\") continue;\n }\n }\n }, {\n key: \"_prepareObject\",\n value: function _prepareObject($el, settings) {\n $el.querySelector(settings.stepsSelector).querySelectorAll(\":scope > :not(.\".concat(settings.classMap.active, \")\")).forEach(function (item) {\n item.style.display = 'none';\n });\n\n settings.progressItems[_toConsumableArray(settings.stepsActiveItem.parentNode.children).indexOf(settings.stepsActiveItem)].classList.add(settings.classMap.active, settings.classMap.focus);\n }\n }, {\n key: \"_endClickEvents\",\n value: function _endClickEvents($el, settings) {\n var isValid = true;\n\n if (settings.isValidate) {\n $el.classList.remove('was-validated');\n settings.progressItems[settings.progressItems.length - 1].classList.remove(settings.classMap.error);\n Array.from($el.elements).forEach(function (item) {\n if (item.offsetParent !== null && !item.checkValidity()) {\n isValid = false;\n settings.progressItems[settings.progressItems.length - 1].classList.add(settings.classMap.error);\n\n if (settings.validator) {\n settings.validator.updateFieldStete(item);\n $el.classList.add('was-validated');\n }\n }\n });\n }\n\n if (isValid) {\n return settings.finish($el, settings);\n }\n }\n }, {\n key: \"_nextClickEvents\",\n value: function _nextClickEvents($el, settings, nextEl) {\n var _this = this;\n\n var nextDataSettings = nextEl.hasAttribute('data-hs-step-form-next-options') ? JSON.parse(nextEl.getAttribute('data-hs-step-form-next-options')) : {};\n var nextItemDefaults = {\n targetSelector: null\n },\n nextItemOptions = Object.assign({}, nextItemDefaults, nextDataSettings);\n var targetSelector = $el.querySelector(nextItemOptions.targetSelector);\n\n var targetIndex = _toConsumableArray(targetSelector.parentNode.children).indexOf(targetSelector);\n\n for (var i = 0; i < settings.progressItems.length; i++) {\n if (settings.isValidate) {\n if (settings.validator) {\n $el.classList.remove('was-validated');\n }\n\n if (targetIndex > i) {\n settings.progressItems[i].classList.add(settings.classMap.error);\n var requiredSelector = settings.progressItems[i].querySelector(settings.nextSelector).getAttribute('data-hs-step-form-next-options');\n\n var _iterator = _createForOfIteratorHelper(settings.stepsItems),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n item.classList.remove(settings.classMap.active);\n item.style.display = 'none';\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n var newTargetSelector = $el.querySelector(JSON.parse(requiredSelector).targetSelector);\n newTargetSelector.classList.add(settings.classMap.active);\n newTargetSelector.style.display = 'block';\n var isValid = true;\n Array.from($el.elements).forEach(function (item) {\n if (item.offsetParent !== null && !item.checkValidity()) {\n isValid = false;\n\n if (settings.validator) {\n settings.validator.updateFieldStete(item);\n $el.classList.add('was-validated');\n }\n }\n });\n\n if (!isValid) {\n settings.progressItems[i].classList.remove(settings.classMap.checked);\n return false;\n } else {\n settings.progressItems[i].classList.remove(settings.classMap.error);\n }\n }\n\n if (targetIndex > i && settings.isValidate) {\n settings.progressItems[i].classList.add(settings.classMap.checked);\n }\n } else {\n if (targetIndex > i && settings.isValidate) {\n settings.progressItems[i].classList.add(settings.classMap.checked);\n }\n\n if (targetIndex > i && !settings.isValidate) {\n settings.progressItems[i].classList.add(settings.classMap.active);\n }\n }\n }\n\n settings.preventNextStep($el).then(function () {\n var _iterator2 = _createForOfIteratorHelper(settings.progressItems),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _item = _step2.value;\n\n _item.classList.remove(settings.classMap.active, settings.classMap.focus);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n settings.progressItems[targetIndex].classList.add(settings.classMap.active, settings.classMap.focus);\n\n var _iterator3 = _createForOfIteratorHelper(settings.stepsItems),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var _item2 = _step3.value;\n\n _item2.classList.remove(settings.classMap.active);\n\n _item2.style.display = 'none';\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n\n targetSelector.classList.add(settings.classMap.active);\n\n _this.fadeIn(targetSelector, 400);\n\n return settings.onNextStep();\n });\n }\n }, {\n key: \"_prevClickEvents\",\n value: function _prevClickEvents($el, settings, prevEl) {\n var prevDataSettings = prevEl.hasAttribute('data-hs-step-form-prev-options') ? JSON.parse(prevEl.getAttribute('data-hs-step-form-prev-options')) : {};\n var prevItemDefaults = {\n targetSelector: null\n },\n prevItemOptions = Object.assign({}, prevItemDefaults, prevDataSettings);\n var targetSelector = $el.querySelector(prevItemOptions.targetSelector);\n\n var targetIndex = _toConsumableArray(targetSelector.parentNode.children).indexOf(targetSelector);\n\n for (var i = 0; i < settings.progressItems.length; i++) {\n if (settings.isValidate) {\n if (targetIndex > i) {\n settings.progressItems[i].classList.add(settings.classMap.error);\n var requiredSelector = settings.progressItems[i].querySelector(settings.nextSelector).getAttribute('data-hs-step-form-next-options');\n\n var _iterator4 = _createForOfIteratorHelper(settings.stepsItems),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var item = _step4.value;\n item.classList.remove(settings.classMap.active);\n item.style.display = 'none';\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n\n var newTargetSelector = $el.querySelector(JSON.parse(requiredSelector).targetSelector);\n newTargetSelector.classList.add(settings.classMap.active);\n newTargetSelector.style.display = 'block';\n var isValid = true;\n Array.from($el.elements).forEach(function (item) {\n if (item.offsetParent !== null && !item.checkValidity()) {\n isValid = false;\n }\n });\n\n if (!isValid) {\n settings.progressItems[i].classList.remove(settings.classMap.checked);\n return false;\n } else {\n settings.progressItems[i].classList.remove(settings.classMap.error);\n }\n }\n\n if (targetIndex > i && settings.isValidate) {\n settings.progressItems[i].classList.add(settings.classMap.checked);\n }\n } else {\n if (targetIndex > i && settings.isValidate) {\n settings.progressItems[i].classList.add(settings.classMap.checked);\n }\n\n if (targetIndex > i && !settings.isValidate) {\n settings.progressItems[i].classList.add(settings.classMap.active);\n }\n }\n }\n\n var _iterator5 = _createForOfIteratorHelper(settings.progressItems),\n _step5;\n\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var _item3 = _step5.value;\n\n _item3.classList.remove(settings.classMap.active, settings.classMap.focus);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n\n settings.progressItems[targetIndex].classList.add(settings.classMap.active, settings.classMap.focus);\n\n var _iterator6 = _createForOfIteratorHelper(settings.stepsItems),\n _step6;\n\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n var _item4 = _step6.value;\n\n _item4.classList.remove(settings.classMap.active);\n\n _item4.style.display = 'none';\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n\n targetSelector.classList.add(settings.classMap.active);\n this.fadeIn(targetSelector, 400);\n return settings.onPrevStep();\n }\n }, {\n key: \"fadeIn\",\n value: function fadeIn(el, time) {\n el.style.opacity = 0;\n el.style.display = 'block';\n var last = +new Date();\n\n var tick = function tick() {\n el.style.opacity = +el.style.opacity + (new Date() - last) / time;\n last = +new Date();\n\n if (+el.style.opacity < 1) {\n window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);\n }\n };\n\n tick();\n }\n }, {\n key: \"addToCollection\",\n value: function addToCollection(item, options, id) {\n this.collection.push({\n $el: item,\n id: id || null,\n options: Object.assign({}, defaults, item.hasAttribute(dataAttributeName) ? JSON.parse(item.getAttribute(dataAttributeName)) : {}, options)\n });\n }\n }, {\n key: \"getItem\",\n value: function getItem(item) {\n if (typeof item === 'number') {\n return this.collection[item].$initializedEl;\n } else {\n return this.collection.find(function (el) {\n return el.id === item;\n }).$initializedEl;\n }\n }\n }]);\n\n return HSStepForm;\n}();\n\n\n\n//# sourceURL=webpack://HSStepForm/./src/js/hs-step-form.js?")}},e={},f.m=d,f.c=e,f.d=function(t,e,n){f.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.t=function(t,e){if(1&e&&(t=f(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)f.d(n,r,function(e){return t[e]}.bind(null,r));return n},f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,"a",e),e},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.p="",f(f.s="./src/js/hs-step-form.js").default;function f(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,f),n.l=!0,n.exports}var d,e})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSTogglePassword=e():t.HSTogglePassword=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/js/hs-toggle-password.js")}({"./src/js/hs-toggle-password.js": /*!**************************************!*\ !*** ./src/js/hs-toggle-password.js ***! \**************************************/ /*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _default; });\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*\n* HSTogglePassword Plugin\n* @version: 1.0.0 (Sat, 30 Jul 2021)\n* @requires: tom-select 1.7.26\n* @author: HtmlStream\n* @event-namespace: .HSTogglePassword\n* @license: Htmlstream Libraries (https://htmlstream.com/)\n* Copyright 2021 Htmlstream\n*/\nvar dataAttributeName = \'data-hs-toggle-password-options\';\nvar defaults = {\n classChangeTarget: null,\n defaultClass: null,\n showClass: null,\n show: false\n};\n\nvar _default = /*#__PURE__*/function () {\n function _default(el, options, id) {\n _classCallCheck(this, _default);\n\n this.collection = [];\n var that = this;\n var elems;\n\n if (el instanceof HTMLElement) {\n elems = [el];\n } else if (el instanceof Object) {\n elems = el;\n } else {\n elems = document.querySelectorAll(el);\n }\n\n for (var i = 0; i < elems.length; i += 1) {\n that.addToCollection(elems[i], options, id || elems[i].id);\n }\n\n if (!that.collection.length) {\n return false;\n } // initialization calls\n\n\n that._init();\n\n return this;\n }\n\n _createClass(_default, [{\n key: "_init",\n value: function _init() {\n var that = this;\n\n for (var i = 0; i < that.collection.length; i += 1) {\n var _$el = void 0;\n\n var _options = void 0;\n\n if (that.collection[i].hasOwnProperty(\'$initializedEl\')) {\n continue;\n }\n\n _$el = that.collection[i].$el;\n _options = that.collection[i].options;\n\n if (Array.isArray(_options.target)) {\n (function () {\n var targets = [];\n\n _options.target.forEach(function (target) {\n targets.push(document.querySelector(target));\n });\n\n _options.target = targets;\n _options.classChangeTarget = _options.classChangeTarget ? document.querySelector(_options.classChangeTarget) : _options.target;\n })();\n } else {\n _options.target = document.querySelector(_options.target);\n _options.classChangeTarget = _options.classChangeTarget ? document.querySelector(_options.classChangeTarget) : _options.target;\n }\n\n if (_options.show) {\n _$el.type = "text";\n }\n\n that._toggleClass(_options, _options.show);\n\n that._showPassword(_$el, _options);\n }\n }\n }, {\n key: "_showPassword",\n value: function _showPassword(el, config) {\n var that = this,\n $target = config.target;\n\n if (Array.isArray($target)) {\n $target.forEach(function (target) {\n target.addEventListener(\'click\', function (event) {\n if (el.type === "password") {\n el.type = "text";\n\n that._toggleClass(config, true);\n } else {\n el.type = "password";\n\n that._toggleClass(config, false);\n }\n });\n });\n } else {\n $target.addEventListener(\'click\', function (event) {\n if (el.type === "password") {\n el.type = "text";\n\n that._toggleClass(config, true);\n } else {\n el.type = "password";\n\n that._toggleClass(config, false);\n }\n });\n }\n }\n }, {\n key: "_toggleClass",\n value: function _toggleClass(config) {\n var _this = this;\n\n var isShow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var that = this,\n $target = config.classChangeTarget;\n\n if (Array.isArray($target)) {\n $target.forEach(function (target) {\n if (isShow) {\n _this._removeClasses(target, config.defaultClass);\n\n _this._addClasses(target, config.showClass);\n } else {\n _this._removeClasses(target, config.showClass);\n\n _this._addClasses(target, config.defaultClass);\n }\n });\n } else {\n if (isShow) {\n this._removeClasses($target, config.defaultClass);\n\n this._addClasses($target, config.showClass);\n } else {\n this._removeClasses($target, config.showClass);\n\n this._addClasses($target, config.defaultClass);\n }\n }\n }\n }, {\n key: "_addClasses",\n value: function _addClasses($target, classes) {\n if (classes && classes.trim().indexOf(\' \') != -1) {\n var array = classes.split(\' \');\n\n for (var i = 0, length = array.length; i < length; i++) {\n $target.classList.add(array[i]);\n }\n } else {\n $target.classList.add(classes);\n }\n }\n }, {\n key: "_removeClasses",\n value: function _removeClasses($target, classes) {\n if (classes && classes.trim().indexOf(\' \') != -1) {\n var array = classes.split(\' \');\n\n for (var i = 0, length = array.length; i < length; i++) {\n $target.classList.remove(array[i]);\n }\n } else {\n $target.classList.remove(classes);\n }\n }\n }, {\n key: "addToCollection",\n value: function addToCollection(item, options, id) {\n this.collection.push({\n $el: item,\n id: id || null,\n options: Object.assign({}, defaults, item.hasAttribute(dataAttributeName) ? JSON.parse(item.getAttribute(dataAttributeName)) : {}, options)\n });\n }\n }, {\n key: "getItem",\n value: function getItem(item) {\n if (typeof item === \'number\') {\n return this.collection[item].$initializedEl;\n } else {\n return this.collection.find(function (el) {\n return el.id === item;\n }).$initializedEl;\n }\n }\n }]);\n\n return _default;\n}();\n\n\n\n//# sourceURL=webpack://HSTogglePassword/./src/js/hs-toggle-password.js?')}}).default}));var countdown=function(t){"use strict";var e=Math.ceil,n=Math.floor;function r(t,e){var n=t.getTime();return t.setMonth(t.getMonth()+e),Math.round((t.getTime()-n)/864e5)}function i(t){var e=t.getTime(),n=new Date(e);return n.setMonth(t.getMonth()+1),Math.round((n.getTime()-e)/864e5)}function o(t,e){if(e=e instanceof Date||null!==e&&isFinite(e)?new Date(+e):new Date,!t)return e;var n=+t.value||0;return n?(e.setTime(e.getTime()+n),e):((n=+t.milliseconds||0)&&e.setMilliseconds(e.getMilliseconds()+n),(n=+t.seconds||0)&&e.setSeconds(e.getSeconds()+n),(n=+t.minutes||0)&&e.setMinutes(e.getMinutes()+n),(n=+t.hours||0)&&e.setHours(e.getHours()+n),(n=+t.weeks||0)&&(n*=7),(n+=+t.days||0)&&e.setDate(e.getDate()+n),(n=+t.months||0)&&e.setMonth(e.getMonth()+n),(n=+t.millennia||0)&&(n*=10),(n+=+t.centuries||0)&&(n*=10),(n+=+t.decades||0)&&(n*=10),(n+=+t.years||0)&&e.setFullYear(e.getFullYear()+n),e)}var s,a,l,u,c,d,h,p;function f(t,e){return h(t)+(1===t?s[e]:a[e])}function m(){}function g(t,e,n,r,o,s){return t[n]>=0&&(e+=t[n],delete t[n]),(e/=o)+1<=1?0:t[r]>=0?(t[r]=+(t[r]+e).toFixed(s),function(t,e){switch(e){case"seconds":if(60!==t.seconds||isNaN(t.minutes))return;t.minutes++,t.seconds=0;case"minutes":if(60!==t.minutes||isNaN(t.hours))return;t.hours++,t.minutes=0;case"hours":if(24!==t.hours||isNaN(t.days))return;t.days++,t.hours=0;case"days":if(7!==t.days||isNaN(t.weeks))return;t.weeks++,t.days=0;case"weeks":if(t.weeks!==i(t.refMonth)/7||isNaN(t.months))return;t.months++,t.weeks=0;case"months":if(12!==t.months||isNaN(t.years))return;t.years++,t.months=0;case"years":if(10!==t.years||isNaN(t.decades))return;t.decades++,t.years=0;case"decades":if(10!==t.decades||isNaN(t.centuries))return;t.centuries++,t.decades=0;case"centuries":if(10!==t.centuries||isNaN(t.millennia))return;t.millennia++,t.centuries=0}}(t,r),0):e}function v(t,e){var n,r,o,s=g(t,0,"milliseconds","seconds",1e3,e);if(s&&((s=g(t,s,"seconds","minutes",60,e))&&(s=g(t,s,"minutes","hours",60,e))&&(s=g(t,s,"hours","days",24,e))&&(s=g(t,s,"days","weeks",7,e))&&(s=g(t,s,"weeks","months",i(t.refMonth)/7,e))&&(s=g(t,s,"months","years",(n=t.refMonth,r=n.getTime(),(o=new Date(r)).setFullYear(n.getFullYear()+1),Math.round((o.getTime()-r)/864e5)/i(t.refMonth)),e))&&(s=g(t,s,"years","decades",10,e))&&(s=g(t,s,"decades","centuries",10,e))&&(s=g(t,s,"centuries","millennia",10,e))))throw new Error("Fractional unit overflow")}function y(t,i,o,s,a,l){var u=new Date;if(t.start=i=i||u,t.end=o=o||u,t.units=s,t.value=o.getTime()-i.getTime(),t.value<0){var c=o;o=i,i=c}t.refMonth=new Date(i.getFullYear(),i.getMonth(),15,12,0,0);try{t.millennia=0,t.centuries=0,t.decades=0,t.years=o.getFullYear()-i.getFullYear(),t.months=o.getMonth()-i.getMonth(),t.weeks=0,t.days=o.getDate()-i.getDate(),t.hours=o.getHours()-i.getHours(),t.minutes=o.getMinutes()-i.getMinutes(),t.seconds=o.getSeconds()-i.getSeconds(),t.milliseconds=o.getMilliseconds()-i.getMilliseconds(),function(t){var i;for(t.milliseconds<0?(i=e(-t.milliseconds/1e3),t.seconds-=i,t.milliseconds+=1e3*i):t.milliseconds>=1e3&&(t.seconds+=n(t.milliseconds/1e3),t.milliseconds%=1e3),t.seconds<0?(i=e(-t.seconds/60),t.minutes-=i,t.seconds+=60*i):t.seconds>=60&&(t.minutes+=n(t.seconds/60),t.seconds%=60),t.minutes<0?(i=e(-t.minutes/60),t.hours-=i,t.minutes+=60*i):t.minutes>=60&&(t.hours+=n(t.minutes/60),t.minutes%=60),t.hours<0?(i=e(-t.hours/24),t.days-=i,t.hours+=24*i):t.hours>=24&&(t.days+=n(t.hours/24),t.hours%=24);t.days<0;)t.months--,t.days+=r(t.refMonth,1);t.days>=7&&(t.weeks+=n(t.days/7),t.days%=7),t.months<0?(i=e(-t.months/12),t.years-=i,t.months+=12*i):t.months>=12&&(t.years+=n(t.months/12),t.months%=12),t.years>=10&&(t.decades+=n(t.years/10),t.years%=10,t.decades>=10&&(t.centuries+=n(t.decades/10),t.decades%=10,t.centuries>=10&&(t.millennia+=n(t.centuries/10),t.centuries%=10)))}(t),function(t,e,i,o){var s=0;!(1024&e)||s>=i?(t.centuries+=10*t.millennia,delete t.millennia):t.millennia&&s++,!(512&e)||s>=i?(t.decades+=10*t.centuries,delete t.centuries):t.centuries&&s++,!(256&e)||s>=i?(t.years+=10*t.decades,delete t.decades):t.decades&&s++,!(128&e)||s>=i?(t.months+=12*t.years,delete t.years):t.years&&s++,!(64&e)||s>=i?(t.months&&(t.days+=r(t.refMonth,t.months)),delete t.months,t.days>=7&&(t.weeks+=n(t.days/7),t.days%=7)):t.months&&s++,!(32&e)||s>=i?(t.days+=7*t.weeks,delete t.weeks):t.weeks&&s++,!(16&e)||s>=i?(t.hours+=24*t.days,delete t.days):t.days&&s++,!(8&e)||s>=i?(t.minutes+=60*t.hours,delete t.hours):t.hours&&s++,!(4&e)||s>=i?(t.seconds+=60*t.minutes,delete t.minutes):t.minutes&&s++,!(2&e)||s>=i?(t.milliseconds+=1e3*t.seconds,delete t.seconds):t.seconds&&s++,1&e&&!(s>=i)||v(t,o)}(t,s,a,l)}finally{delete t.refMonth}return t}function _(t,e,n,r,i){var s;n=+n||222,r=r>0?r:NaN,i=i>0?i<20?Math.round(i):20:0;var a=null;"function"==typeof t?(s=t,t=null):t instanceof Date||(null!==t&&isFinite(t)?t=new Date(+t):("object"==typeof a&&(a=t),t=null));var l=null;if("function"==typeof e?(s=e,e=null):e instanceof Date||(null!==e&&isFinite(e)?e=new Date(+e):("object"==typeof e&&(l=e),e=null)),a&&(t=o(a,e)),l&&(e=o(l,t)),!t&&!e)return new m;if(!s)return y(new m,t,e,n,r,i);var u,c=function(t){return 1&t?1e3/30:2&t?1e3:4&t?6e4:8&t?36e5:16&t?864e5:6048e5}(n),d=function(){s(y(new m,t,e,n,r,i),u)};return d(),u=setInterval(d,c)}m.prototype.toString=function(t){var e=p(this),n=e.length;if(!n)return t?""+t:c;if(1===n)return e[0];var r=l+e.pop();return e.join(u)+r},m.prototype.toHTML=function(t,e){t=t||"span";var n=p(this),r=n.length;if(!r)return(e=e||c)?"<"+t+">"+e+"":e;for(var i=0;i"+n[i]+"";if(1===r)return n[0];var o=l+n.pop();return n.join(u)+o},m.prototype.addTo=function(t){return o(this,t)},p=function(t){var e=[],n=t.millennia;return n&&e.push(d(n,10)),(n=t.centuries)&&e.push(d(n,9)),(n=t.decades)&&e.push(d(n,8)),(n=t.years)&&e.push(d(n,7)),(n=t.months)&&e.push(d(n,6)),(n=t.weeks)&&e.push(d(n,5)),(n=t.days)&&e.push(d(n,4)),(n=t.hours)&&e.push(d(n,3)),(n=t.minutes)&&e.push(d(n,2)),(n=t.seconds)&&e.push(d(n,1)),(n=t.milliseconds)&&e.push(d(n,0)),e},_.MILLISECONDS=1,_.SECONDS=2,_.MINUTES=4,_.HOURS=8,_.DAYS=16,_.WEEKS=32,_.MONTHS=64,_.YEARS=128,_.DECADES=256,_.CENTURIES=512,_.MILLENNIA=1024,_.DEFAULTS=222,_.ALL=2047;var b=_.setFormat=function(t){if(t){if("singular"in t||"plural"in t){var e=t.singular||[];e.split&&(e=e.split("|"));var n=t.plural||[];n.split&&(n=n.split("|"));for(var r=0;r<=10;r++)s[r]=e[r]||s[r],a[r]=n[r]||a[r]}"string"==typeof t.last&&(l=t.last),"string"==typeof t.delim&&(u=t.delim),"string"==typeof t.empty&&(c=t.empty),"function"==typeof t.formatNumber&&(h=t.formatNumber),"function"==typeof t.formatter&&(d=t.formatter)}},w=_.resetFormat=function(){s=" millisecond| second| minute| hour| day| week| month| year| decade| century| millennium".split("|"),a=" milliseconds| seconds| minutes| hours| days| weeks| months| years| decades| centuries| millennia".split("|"),l=" and ",u=", ",c="",h=function(t){return t},d=f};return _.setLabels=function(t,e,n,r,i,o,s){b({singular:t,plural:e,last:n,delim:r,empty:i,formatNumber:o,formatter:s})},_.resetLabels=w,w(),t&&t.exports?t.exports=_:"function"==typeof window.define&&void 0!==window.define.amd&&window.define("countdown",[],(function(){return _})),_}(module),List;!function(t,e){"object"==typeof exports&&void 0!==module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Shuffle=e()}(this,(function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n=e?a():o=setTimeout(a,e-t)),i};function a(){o=0,s=+new Date,i=t.apply(n,r),n=null,r=null}};function f(){}function m(t){return parseFloat(t)||0}var g=function(){function e(n,r){t(this,e),this.x=m(n),this.y=m(r)}return n(e,null,[{key:"equals",value:function(t,e){return t.x===e.x&&t.y===e.y}}]),e}(),v=function(){function e(n,r,i,o,s){t(this,e),this.id=s,this.left=n,this.top=r,this.width=i,this.height=o}return n(e,null,[{key:"intersects",value:function(t,e){return t.left2&&void 0!==arguments[2]?arguments[2]:window.getComputedStyle(t,null),r=m(n[e]);return x()||"width"!==e?x()||"height"!==e||(r+=m(n.paddingTop)+m(n.paddingBottom)+m(n.borderTopWidth)+m(n.borderBottomWidth)):r+=m(n.paddingLeft)+m(n.paddingRight)+m(n.borderLeftWidth)+m(n.borderRightWidth),r}var k={reverse:!1,by:null,compare:null,randomize:!1,key:"element"};function C(t,e){var n=Object.assign({},k,e),r=Array.from(t),i=!1;return t.length?n.randomize?function(t){for(var e=t.length;e;){e-=1;var n=Math.floor(Math.random()*(e+1)),r=t[n];t[n]=t[e],t[e]=r}return t}(t):("function"==typeof n.by?t.sort((function(t,e){if(i)return 0;var r=n.by(t[n.key]),o=n.by(e[n.key]);return void 0===r&&void 0===o?(i=!0,0):ro||"sortLast"===r||"sortFirst"===o?1:0})):"function"==typeof n.compare&&t.sort(n.compare),i?r:(n.reverse&&t.reverse(),t)):[]}var E={},T=0;function P(t){return!!E[t]&&(E[t].element.removeEventListener("transitionend",E[t].listener),E[t]=null,!0)}function O(t,e){var n="transitionend"+(T+=1),r=function(t){t.currentTarget===t.target&&(P(n),e(t))};return t.addEventListener("transitionend",r),E[n]={element:t,listener:r},n}function A(t){return Math.max.apply(Math,t)}function M(t,e,n,r){var i=t/e;return Math.abs(Math.round(i)-i)=r-e&&t[i]<=r+e)return i;return 0}function j(t,e){var n={};t.forEach((function(t){n[t.top]?n[t.top].push(t):n[t.top]=[t]}));var r=[],i=[],o=[];return Object.keys(n).forEach((function(t){var s=n[t];i.push(s);var a,l=s[s.length-1],u=l.left+l.width,c=Math.round((e-u)/2),d=s,h=!1;if(c>0){var p=[];(h=s.every((function(t){var e=new v(t.left+c,t.top,t.width,t.height,t.id),n=!r.some((function(t){return v.intersects(e,t)}));return p.push(e),n})))&&(d=p)}if(!h&&s.some((function(t){return r.some((function(e){var n=v.intersects(t,e);return n&&(a=e),n}))}))){var f=o.findIndex((function(t){return t.includes(a)}));o.splice(f,1,i[f])}r=r.concat(d),o.push(d)})),[].concat.apply([],o).sort((function(t,e){return t.id-e.id})).map((function(t){return new g(t.left,t.top)}))}function D(t){return Array.from(new Set(t))}var N=0,R=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(o,e);var r=s(o);function o(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,o),(n=r.call(this)).options=Object.assign({},o.options,i),n.options.delimeter&&(n.options.delimiter=n.options.delimeter),n.lastSort={},n.group=o.ALL_ITEMS,n.lastFilter=o.ALL_ITEMS,n.isEnabled=!0,n.isDestroyed=!1,n.isInitialized=!1,n._transitions=[],n.isTransitioning=!1,n._queue=[];var s=n._getElementOption(e);if(!s)throw new TypeError("Shuffle needs to be initialized with an element.");return n.element=s,n.id="shuffle_"+N,N+=1,n._init(),n.isInitialized=!0,n}return n(o,[{key:"_init",value:function(){if(this.items=this._getItems(),this.sortedItems=this.items,this.options.sizer=this._getElementOption(this.options.sizer),this.element.classList.add(o.Classes.BASE),this._initItems(this.items),this._onResize=this._getResizeFunction(),window.addEventListener("resize",this._onResize),"complete"!==document.readyState){var t=this.layout.bind(this);window.addEventListener("load",(function e(){window.removeEventListener("load",e),t()}))}var e=window.getComputedStyle(this.element,null),n=o.getSize(this.element).width;this._validateStyles(e),this._setColumns(n),this.filter(this.options.group,this.options.initialSort),this.element.offsetWidth,this.setItemTransitions(this.items),this.element.style.transition="height ".concat(this.options.speed,"ms ").concat(this.options.easing)}},{key:"_getResizeFunction",value:function(){var t=this._handleResize.bind(this);return this.options.throttle?this.options.throttle(t,this.options.throttleTime):t}},{key:"_getElementOption",value:function(t){return"string"==typeof t?this.element.querySelector(t):t&&t.nodeType&&1===t.nodeType?t:t&&t.jquery?t[0]:null}},{key:"_validateStyles",value:function(t){"static"===t.position&&(this.element.style.position="relative"),"hidden"!==t.overflow&&(this.element.style.overflow="hidden")}},{key:"_filter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastFilter,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.items,n=this._getFilteredSets(t,e);return this._toggleFilterClasses(n),this.lastFilter=t,"string"==typeof t&&(this.group=t),n}},{key:"_getFilteredSets",value:function(t,e){var n=this,r=[],i=[];return t===o.ALL_ITEMS?r=e:e.forEach((function(e){n._doesPassFilter(t,e.element)?r.push(e):i.push(e)})),{visible:r,hidden:i}}},{key:"_doesPassFilter",value:function(t,e){if("function"==typeof t)return t.call(e,e,this);var n=e.getAttribute("data-"+o.FILTER_ATTRIBUTE_KEY),r=this.options.delimiter?n.split(this.options.delimiter):JSON.parse(n);function i(t){return r.includes(t)}return Array.isArray(t)?this.options.filterMode===o.FilterMode.ANY?t.some(i):t.every(i):r.includes(t)}},{key:"_toggleFilterClasses",value:function(t){var e=t.visible,n=t.hidden;e.forEach((function(t){t.show()})),n.forEach((function(t){t.hide()}))}},{key:"_initItems",value:function(t){t.forEach((function(t){t.init()}))}},{key:"_disposeItems",value:function(t){t.forEach((function(t){t.dispose()}))}},{key:"_updateItemCount",value:function(){this.visibleItems=this._getFilteredItems().length}},{key:"setItemTransitions",value:function(t){var e=this.options,n=e.speed,r=e.easing,i=this.options.useTransforms?["transform"]:["top","left"],o=Object.keys(b.Css.HIDDEN.before).map((function(t){return t.replace(/([A-Z])/g,(function(t,e){return"-".concat(e.toLowerCase())}))})),s=i.concat(o).join();t.forEach((function(t){t.element.style.transitionDuration=n+"ms",t.element.style.transitionTimingFunction=r,t.element.style.transitionProperty=s}))}},{key:"_getItems",value:function(){var t=this;return Array.from(this.element.children).filter((function(e){return h(e,t.options.itemSelector)})).map((function(e){return new b(e,t.options.isRTL)}))}},{key:"_mergeNewItems",value:function(t){var e=Array.from(this.element.children);return C(this.items.concat(t),{by:function(t){return e.indexOf(t)}})}},{key:"_getFilteredItems",value:function(){return this.items.filter((function(t){return t.isVisible}))}},{key:"_getConcealedItems",value:function(){return this.items.filter((function(t){return!t.isVisible}))}},{key:"_getColumnSize",value:function(t,e){var n;return 0===(n="function"==typeof this.options.columnWidth?this.options.columnWidth(t):this.options.sizer?o.getSize(this.options.sizer).width:this.options.columnWidth?this.options.columnWidth:this.items.length>0?o.getSize(this.items[0].element,!0).width:t)&&(n=t),n+e}},{key:"_getGutterSize",value:function(t){return"function"==typeof this.options.gutterWidth?this.options.gutterWidth(t):this.options.sizer?S(this.options.sizer,"marginLeft"):this.options.gutterWidth}},{key:"_setColumns",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.getSize(this.element).width,e=this._getGutterSize(t),n=this._getColumnSize(t,e),r=(t+e)/n;Math.abs(Math.round(r)-r)1&&void 0!==arguments[1]?arguments[1]:{};this.isDestroyed||(e.shuffle=this,this.emit(t,e))}},{key:"_resetCols",value:function(){var t=this.cols;for(this.positions=[];t;)t-=1,this.positions.push(0)}},{key:"_layout",value:function(t){var e=this,n=this._getNextPositions(t),r=0;t.forEach((function(t,i){function o(){t.applyCss(b.Css.VISIBLE.after)}if(g.equals(t.point,n[i])&&!t.isHidden)return t.applyCss(b.Css.VISIBLE.before),void o();t.point=n[i],t.scale=b.Scale.VISIBLE,t.isHidden=!1;var s=e.getStylesForTransition(t,b.Css.VISIBLE.before);s.transitionDelay=e._getStaggerAmount(r)+"ms",e._queue.push({item:t,styles:s,callback:o}),r+=1}))}},{key:"_getNextPositions",value:function(t){var e=this;if(this.options.isCentered){var n=t.map((function(t,n){var r=o.getSize(t.element,!0),i=e._getItemPosition(r);return new v(i.x,i.y,r.width,r.height,n)}));return this.getTransformedPositions(n,this.containerWidth)}return t.map((function(t){return e._getItemPosition(o.getSize(t.element,!0))}))}},{key:"_getItemPosition",value:function(t){return function(t){for(var e=t.itemSize,n=t.positions,r=t.gridSize,i=t.total,o=t.threshold,s=t.buffer,a=M(e.width,r,i,o),l=L(n,a,i),u=I(l,s),c=new g(r*u,l[u]),d=l[u]+e.height,h=0;h0&&void 0!==arguments[0]?arguments[0]:this._getConcealedItems(),n=0;e.forEach((function(e){function r(){e.applyCss(b.Css.HIDDEN.after)}if(e.isHidden)return e.applyCss(b.Css.HIDDEN.before),void r();e.scale=b.Scale.HIDDEN,e.isHidden=!0;var i=t.getStylesForTransition(e,b.Css.HIDDEN.before);i.transitionDelay=t._getStaggerAmount(n)+"ms",t._queue.push({item:e,styles:i,callback:r}),n+=1}))}},{key:"_handleResize",value:function(){this.isEnabled&&!this.isDestroyed&&this.update()}},{key:"getStylesForTransition",value:function(t,e){var n=Object.assign({},e);if(this.options.useTransforms){var r=this.options.isRTL?"-":"",i=this.options.roundTransforms?Math.round(t.point.x):t.point.x,o=this.options.roundTransforms?Math.round(t.point.y):t.point.y;n.transform="translate(".concat(r).concat(i,"px, ").concat(o,"px) scale(").concat(t.scale,")")}else this.options.isRTL?n.right=t.point.x+"px":n.left=t.point.x+"px",n.top=t.point.y+"px";return n}},{key:"_whenTransitionDone",value:function(t,e,n){var r=O(t,(function(t){e(),n(null,t)}));this._transitions.push(r)}},{key:"_getTransitionFunction",value:function(t){var e=this;return function(n){t.item.applyCss(t.styles),e._whenTransitionDone(t.item.element,t.callback,n)}}},{key:"_processQueue",value:function(){this.isTransitioning&&this._cancelMovement();var t=this.options.speed>0,e=this._queue.length>0;e&&t&&this.isInitialized?this._startTransitions(this._queue):e?(this._styleImmediately(this._queue),this._dispatch(o.EventType.LAYOUT)):this._dispatch(o.EventType.LAYOUT),this._queue.length=0}},{key:"_startTransitions",value:function(t){var e=this;this.isTransitioning=!0,function(t,e,n){n||("function"==typeof e?(n=e,e=null):n=f);var r=t&&t.length;if(!r)return n(null,[]);var i=!1,o=new Array(r);function s(t){return function(e,s){if(!i){if(e)return n(e,o),void(i=!0);o[t]=s,--r||n(null,o)}}}t.forEach(e?function(t,n){t.call(e,s(n))}:function(t,e){t(s(e))})}(t.map((function(t){return e._getTransitionFunction(t)})),this._movementFinished.bind(this))}},{key:"_cancelMovement",value:function(){this._transitions.forEach(P),this._transitions.length=0,this.isTransitioning=!1}},{key:"_styleImmediately",value:function(t){if(t.length){var e=t.map((function(t){return t.item.element}));o._skipTransitions(e,(function(){t.forEach((function(t){t.item.applyCss(t.styles),t.callback()}))}))}}},{key:"_movementFinished",value:function(){this._transitions.length=0,this.isTransitioning=!1,this._dispatch(o.EventType.LAYOUT)}},{key:"filter",value:function(t,e){this.isEnabled&&((!t||t&&0===t.length)&&(t=o.ALL_ITEMS),this._filter(t),this._shrink(),this._updateItemCount(),this.sort(e))}},{key:"sort",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastSort;if(this.isEnabled){this._resetCols();var e=C(this._getFilteredItems(),t);this.sortedItems=e,this._layout(e),this._processQueue(),this._setContainerSize(),this.lastSort=t}}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isEnabled&&(t||this._setColumns(),this.sort())}},{key:"layout",value:function(){this.update(!0)}},{key:"add",value:function(t){var e=this,n=D(t).map((function(t){return new b(t,e.options.isRTL)}));this._initItems(n),this._resetCols();var r=C(this._mergeNewItems(n),this.lastSort),i=this._filter(this.lastFilter,r),o=function(t){return n.includes(t)},s=function(t){t.scale=b.Scale.HIDDEN,t.isHidden=!0,t.applyCss(b.Css.HIDDEN.before),t.applyCss(b.Css.HIDDEN.after)},a=this._getNextPositions(i.visible);i.visible.forEach((function(t,n){o(t)&&(t.point=a[n],s(t),t.applyCss(e.getStylesForTransition(t,{})))})),i.hidden.forEach((function(t){o(t)&&s(t)})),this.element.offsetWidth,this.setItemTransitions(n),this.items=this._mergeNewItems(n),this.filter(this.lastFilter)}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isEnabled=!0,t&&this.update()}},{key:"remove",value:function(t){var e=this;if(t.length){var n=D(t),r=n.map((function(t){return e.getItemByElement(t)})).filter((function(t){return!!t}));this._toggleFilterClasses({visible:[],hidden:r}),this._shrink(r),this.sort(),this.items=this.items.filter((function(t){return!r.includes(t)})),this._updateItemCount(),this.once(o.EventType.LAYOUT,(function(){e._disposeItems(r),n.forEach((function(t){t.parentNode.removeChild(t)})),e._dispatch(o.EventType.REMOVED,{collection:n})}))}}},{key:"getItemByElement",value:function(t){return this.items.find((function(e){return e.element===t}))}},{key:"resetItems",value:function(){var t=this;this._disposeItems(this.items),this.isInitialized=!1,this.items=this._getItems(),this._initItems(this.items),this.once(o.EventType.LAYOUT,(function(){t.setItemTransitions(t.items),t.isInitialized=!0})),this.filter(this.lastFilter)}},{key:"destroy",value:function(){this._cancelMovement(),window.removeEventListener("resize",this._onResize),this.element.classList.remove("shuffle"),this.element.removeAttribute("style"),this._disposeItems(this.items),this.items.length=0,this._transitions.length=0,this.options.sizer=null,this.element=null,this.isDestroyed=!0,this.isEnabled=!1}}],[{key:"getSize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=window.getComputedStyle(t,null),r=S(t,"width",n),i=S(t,"height",n);if(e){var o=S(t,"marginLeft",n),s=S(t,"marginRight",n),a=S(t,"marginTop",n),l=S(t,"marginBottom",n);r+=o+s,i+=a+l}return{width:r,height:i}}},{key:"_skipTransitions",value:function(t,e){var n=t.map((function(t){var e=t.style,n=e.transitionDuration,r=e.transitionDelay;return e.transitionDuration="0ms",e.transitionDelay="0ms",{duration:n,delay:r}}));e(),t[0].offsetWidth,t.forEach((function(t,e){t.style.transitionDuration=n[e].duration,t.style.transitionDelay=n[e].delay}))}}]),o}(u);return R.ShuffleItem=b,R.ALL_ITEMS="all",R.FILTER_ATTRIBUTE_KEY="groups",R.EventType={LAYOUT:"shuffle:layout",REMOVED:"shuffle:removed"},R.Classes=y,R.FilterMode={ANY:"any",ALL:"all"},R.options={group:R.ALL_ITEMS,speed:250,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)",itemSelector:"*",sizer:null,gutterWidth:0,columnWidth:0,delimiter:null,buffer:0,columnThreshold:.01,initialSort:null,throttle:p,throttleTime:300,staggerAmount:15,staggerAmountMax:150,useTransforms:!0,filterMode:R.FilterMode.ANY,isCentered:!1,isRTL:!1,roundTransforms:!0},R.Point=g,R.Rect=v,R.__sorter=C,R.__getColumnSpan=M,R.__getAvailablePositions=L,R.__getShortColumn=I,R.__getCenteredPositions=j,R})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.HSCountCharacters=e():t.HSCountCharacters=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/js/hs-count-characters.js")}({"./src/js/hs-count-characters.js": /*!***************************************!*\ !*** ./src/js/hs-count-characters.js ***! \***************************************/ /*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return HSCountCharacters; });\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*\n* HSCountCharacters Plugin\n* @version: 1.0.1 (Sun, 1 Aug 2021)\n* @author: HtmlStream\n* @event-namespace: .HSCountCharacters\n* @license: Htmlstream Libraries (https://htmlstream.com/)\n* Copyright 2021 Htmlstream\n*/\nvar dataAttributeName = \'data-hs-count-characters-options\';\nvar defaults = {};\n\nvar HSCountCharacters = /*#__PURE__*/function () {\n function HSCountCharacters(el, options, id) {\n _classCallCheck(this, HSCountCharacters);\n\n this.collection = [];\n var that = this;\n var elems;\n\n if (el instanceof HTMLElement) {\n elems = [el];\n } else if (el instanceof Object) {\n elems = el;\n } else {\n elems = document.querySelectorAll(el);\n }\n\n for (var i = 0; i < elems.length; i += 1) {\n that.addToCollection(elems[i], options, id || elems[i].id);\n }\n\n if (!that.collection.length) {\n return false;\n } // initialization calls\n\n\n that._init();\n\n return this;\n }\n\n _createClass(HSCountCharacters, [{\n key: "_init",\n value: function _init() {\n var that = this;\n\n var _loop = function _loop(i) {\n var _$el = void 0;\n\n var _options = void 0;\n\n if (that.collection[i].hasOwnProperty(\'$initializedEl\')) {\n return "continue";\n }\n\n _$el = that.collection[i].$el;\n _options = that.collection[i].options;\n _options.output = document.querySelector(_options.output);\n _options.maxLength = _$el.hasAttribute(\'maxlength\') ? \'/ \' + _$el.getAttribute(\'maxlength\') : \'\';\n\n that._updateOutput(_$el, _options);\n\n _$el.addEventListener(\'input\', function () {\n that._updateOutput(_$el, _options);\n });\n\n that.collection[i].$initializedEl = _options;\n };\n\n for (var i = 0; i < that.collection.length; i += 1) {\n var _ret = _loop(i);\n\n if (_ret === "continue") continue;\n }\n }\n }, {\n key: "_updateOutput",\n value: function _updateOutput($el, settings) {\n settings.output.innerHTML = "".concat($el.value.length, " ").concat(settings.maxLength);\n }\n }, {\n key: "addToCollection",\n value: function addToCollection(item, options, id) {\n this.collection.push({\n $el: item,\n id: id || null,\n options: Object.assign({}, defaults, item.hasAttribute(dataAttributeName) ? JSON.parse(item.getAttribute(dataAttributeName)) : {}, options)\n });\n }\n }, {\n key: "getItem",\n value: function getItem(item) {\n if (typeof item === \'number\') {\n return this.collection[item].$initializedEl;\n } else {\n return this.collection.find(function (el) {\n return el.id === item;\n }).$initializedEl;\n }\n }\n }]);\n\n return HSCountCharacters;\n}();\n\n\n\n//# sourceURL=webpack://HSCountCharacters/./src/js/hs-count-characters.js?')}}).default})),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(function(){return function(){var t={3099:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:function(t,e,n){var r=n(111);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},1223:function(t,e,n){var r=n(5112),i=n(30),o=n(3070),s=r("unscopables"),a=Array.prototype;null==a[s]&&o.f(a,s,{configurable:!0,value:i(null)}),t.exports=function(t){a[s][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:function(t){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},9670:function(t,e,n){var r=n(111);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},4019:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(t,e,n){"use strict";var r,i=n(4019),o=n(9781),s=n(7854),a=n(111),l=n(6656),u=n(648),c=n(8880),d=n(1320),h=n(3070).f,p=n(9518),f=n(7674),m=n(5112),g=n(9711),v=s.Int8Array,y=v&&v.prototype,_=s.Uint8ClampedArray,b=_&&_.prototype,w=v&&p(v),x=y&&p(y),S=Object.prototype,k=S.isPrototypeOf,C=m("toStringTag"),E=g("TYPED_ARRAY_TAG"),T=i&&!!f&&"Opera"!==u(s.opera),P=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},A={BigInt64Array:8,BigUint64Array:8},M=function(t){if(!a(t))return!1;var e=u(t);return l(O,e)||l(A,e)};for(r in O)s[r]||(T=!1);if((!T||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},T))for(r in O)s[r]&&f(s[r],w);if((!T||!x||x===S)&&(x=w.prototype,T))for(r in O)s[r]&&f(s[r].prototype,x);if(T&&p(b)!==x&&f(b,x),o&&!l(x,C))for(r in P=!0,h(x,C,{get:function(){return a(this)?this[E]:void 0}}),O)s[r]&&c(s[r],E,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:T,TYPED_ARRAY_TAG:P&&E,aTypedArray:function(t){if(M(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(f){if(k.call(w,t))return t}else for(var e in O)if(l(O,r)){var n=s[e];if(n&&(t===n||k.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n){if(o){if(n)for(var r in O){var i=s[r];i&&l(i.prototype,t)&&delete i.prototype[t]}x[t]&&!n||d(x,t,n?e:T&&y[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(o){if(f){if(n)for(r in O)(i=s[r])&&l(i,t)&&delete i[t];if(w[t]&&!n)return;try{return d(w,t,n?e:T&&v[t]||e)}catch(t){}}for(r in O)!(i=s[r])||i[t]&&!n||d(i,t,e)}},isView:function(t){if(!a(t))return!1;var e=u(t);return"DataView"===e||l(O,e)||l(A,e)},isTypedArray:M,TypedArray:w,TypedArrayPrototype:x}},3331:function(t,e,n){"use strict";var r=n(7854),i=n(9781),o=n(4019),s=n(8880),a=n(2248),l=n(7293),u=n(5787),c=n(9958),d=n(7466),h=n(7067),p=n(1179),f=n(9518),m=n(7674),g=n(8006).f,v=n(3070).f,y=n(1285),_=n(8003),b=n(9909),w=b.get,x=b.set,S="ArrayBuffer",k="DataView",C="Wrong index",E=r.ArrayBuffer,T=E,P=r.DataView,O=P&&P.prototype,A=Object.prototype,M=r.RangeError,L=p.pack,I=p.unpack,j=function(t){return[255&t]},D=function(t){return[255&t,t>>8&255]},N=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},R=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},F=function(t){return L(t,23,4)},V=function(t){return L(t,52,8)},z=function(t,e){v(t.prototype,e,{get:function(){return w(this)[e]}})},B=function(t,e,n,r){var i=h(n),o=w(t);if(i+e>o.byteLength)throw M(C);var s=w(o.buffer).bytes,a=i+o.byteOffset,l=s.slice(a,a+e);return r?l:l.reverse()},q=function(t,e,n,r,i,o){var s=h(n),a=w(t);if(s+e>a.byteLength)throw M(C);for(var l=w(a.buffer).bytes,u=s+a.byteOffset,c=r(+i),d=0;dW;)(H=U[W++])in T||s(T,H,E[H]);$.constructor=T}m&&f(O)!==A&&m(O,A);var G=new P(new T(2)),Y=O.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||a(O,{setInt8:function(t,e){Y.call(this,t,e<<24>>24)},setUint8:function(t,e){Y.call(this,t,e<<24>>24)}},{unsafe:!0})}else T=function(t){u(this,T,S);var e=h(t);x(this,{bytes:y.call(new Array(e),0),byteLength:e}),i||(this.byteLength=e)},P=function(t,e,n){u(this,P,k),u(t,T,k);var r=w(t).byteLength,o=c(e);if(o<0||o>r)throw M("Wrong offset");if(o+(n=void 0===n?r-o:d(n))>r)throw M("Wrong length");x(this,{buffer:t,byteLength:n,byteOffset:o}),i||(this.buffer=t,this.byteLength=n,this.byteOffset=o)},i&&(z(T,"byteLength"),z(P,"buffer"),z(P,"byteLength"),z(P,"byteOffset")),a(P.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return R(B(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return R(B(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return I(B(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return I(B(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){q(this,1,t,j,e)},setUint8:function(t,e){q(this,1,t,j,e)},setInt16:function(t,e){q(this,2,t,D,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){q(this,2,t,D,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){q(this,4,t,N,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){q(this,4,t,N,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){q(this,4,t,F,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){q(this,8,t,V,e,arguments.length>2?arguments[2]:void 0)}});_(T,S),_(P,k),t.exports={ArrayBuffer:T,DataView:P}},1048:function(t,e,n){"use strict";var r=n(7908),i=n(1400),o=n(7466),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),a=o(n.length),l=i(t,a),u=i(e,a),c=arguments.length>2?arguments[2]:void 0,d=s((void 0===c?a:i(c,a))-u,a-l),h=1;for(u0;)u in n?n[l]=n[u]:delete n[l],l+=h,u+=h;return n}},1285:function(t,e,n){"use strict";var r=n(7908),i=n(1400),o=n(7466);t.exports=function(t){for(var e=r(this),n=o(e.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);u>a;)e[a++]=t;return e}},8533:function(t,e,n){"use strict";var r=n(2092).forEach,i=n(9341)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,n){"use strict";var r=n(9974),i=n(7908),o=n(3411),s=n(7659),a=n(7466),l=n(6135),u=n(1246);t.exports=function(t){var e,n,c,d,h,p,f=i(t),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,y=void 0!==v,_=u(f),b=0;if(y&&(v=r(v,g>2?arguments[2]:void 0,2)),null==_||m==Array&&s(_))for(n=new m(e=a(f.length));e>b;b++)p=y?v(f[b],b):f[b],l(n,b,p);else for(h=(d=_.call(f)).next,n=new m;!(c=h.call(d)).done;b++)p=y?o(d,v,[c.value,b],!0):c.value,l(n,b,p);return n.length=b,n}},1318:function(t,e,n){var r=n(5656),i=n(7466),o=n(1400),s=function(t){return function(e,n,s){var a,l=r(e),u=i(l.length),c=o(s,u);if(t&&n!=n){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},2092:function(t,e,n){var r=n(9974),i=n(8361),o=n(7908),s=n(7466),a=n(5417),l=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,c=4==t,d=6==t,h=7==t,p=5==t||d;return function(f,m,g,v){for(var y,_,b=o(f),w=i(b),x=r(m,g,3),S=s(w.length),k=0,C=v||a,E=e?C(f,S):n||h?C(f,0):void 0;S>k;k++)if((p||k in w)&&(_=x(y=w[k],k,b),t))if(e)E[k]=_;else if(_)switch(t){case 3:return!0;case 5:return y;case 6:return k;case 2:l.call(E,y)}else switch(t){case 4:return!1;case 7:l.call(E,y)}return d?-1:u||c?c:E}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},6583:function(t,e,n){"use strict";var r=n(5656),i=n(9958),o=n(7466),s=n(9341),a=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,c=s("lastIndexOf"),d=u||!c;t.exports=d?function(t){if(u)return l.apply(this,arguments)||0;var e=r(this),n=o(e.length),s=n-1;for(arguments.length>1&&(s=a(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:l},1194:function(t,e,n){var r=n(7293),i=n(5112),o=n(7392),s=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},3671:function(t,e,n){var r=n(3099),i=n(7908),o=n(8361),s=n(7466),a=function(t){return function(e,n,a,l){r(n);var u=i(e),c=o(u),d=s(u.length),h=t?d-1:0,p=t?-1:1;if(a<2)for(;;){if(h in c){l=c[h],h+=p;break}if(h+=p,t?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:d>h;h+=p)h in c&&(l=n(l,c[h],h,u));return l}};t.exports={left:a(!1),right:a(!0)}},5417:function(t,e,n){var r=n(111),i=n(3157),o=n(5112)("species");t.exports=function(t,e){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},3411:function(t,e,n){var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){throw i(t),e}}},7072:function(t,e,n){var r=n(5112)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},4326:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:function(t,e,n){var r=n(1694),i=n(4326),o=n(5112)("toStringTag"),s="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},9920:function(t,e,n){var r=n(6656),i=n(3887),o=n(1236),s=n(3070);t.exports=function(t,e){for(var n=i(e),a=s.f,l=o.f,u=0;u=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),i=n(1236).f,o=n(8880),s=n(1320),a=n(3505),l=n(9920),u=n(4705);t.exports=function(t,e){var n,c,d,h,p,f=t.target,m=t.global,g=t.stat;if(n=m?r:g?r[f]||a(f,{}):(r[f]||{}).prototype)for(c in e){if(h=e[c],d=t.noTargetGet?(p=i(n,c))&&p.value:n[c],!u(m?c:f+(g?".":"#")+c,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),s(n,c,h,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,n){"use strict";n(4916);var r=n(1320),i=n(7293),o=n(5112),s=n(2261),a=n(8880),l=o("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),c="$0"==="a".replace(/./,"$0"),d=o("replace"),h=!!/./[d]&&""===/./[d]("a","$0"),p=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,d){var f=o(t),m=!i((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=m&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!m||!g||"replace"===t&&(!u||!c||h)||"split"===t&&!p){var v=/./[f],y=n(f,""[t],(function(t,e,n,r,i){return e.exec===s?m&&!i?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),_=y[0],b=y[1];r(String.prototype,t,_),r(RegExp.prototype,f,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}d&&a(RegExp.prototype[f],"sham",!0)}},9974:function(t,e,n){var r=n(3099);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},5005:function(t,e,n){var r=n(857),i=n(7854),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},1246:function(t,e,n){var r=n(648),i=n(7497),o=n(5112)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},8554:function(t,e,n){var r=n(9670),i=n(1246);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},647:function(t,e,n){var r=n(7908),i=Math.floor,o="".replace,s=/\$([$&'`]|\d\d?|<[^>]*>)/g,a=/\$([$&'`]|\d\d?)/g;t.exports=function(t,e,n,l,u,c){var d=n+t.length,h=l.length,p=a;return void 0!==u&&(u=r(u),p=s),o.call(c,p,(function(r,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(d);case"<":s=u[o.slice(1,-1)];break;default:var a=+o;if(0===a)return r;if(a>h){var c=i(a/10);return 0===c?r:c<=h?void 0===l[c-1]?o.charAt(1):l[c-1]+o.charAt(1):r}s=l[a-1]}return void 0===s?"":s}))}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:function(t){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},3501:function(t){t.exports={}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1179:function(t){var e=Math.abs,n=Math.pow,r=Math.floor,i=Math.log,o=Math.LN2;t.exports={pack:function(t,s,a){var l,u,c,d=new Array(a),h=8*a-s-1,p=(1<>1,m=23===s?n(2,-24)-n(2,-77):0,g=t<0||0===t&&1/t<0?1:0,v=0;for((t=e(t))!=t||t===1/0?(u=t!=t?1:0,l=p):(l=r(i(t)/o),t*(c=n(2,-l))<1&&(l--,c*=2),(t+=l+f>=1?m/c:m*n(2,1-f))*c>=2&&(l++,c/=2),l+f>=p?(u=0,l=p):l+f>=1?(u=(t*c-1)*n(2,s),l+=f):(u=t*n(2,f-1)*n(2,s),l=0));s>=8;d[v++]=255&u,u/=256,s-=8);for(l=l<0;d[v++]=255&l,l/=256,h-=8);return d[--v]|=128*g,d},unpack:function(t,e){var r,i=t.length,o=8*i-e-1,s=(1<>1,l=o-7,u=i-1,c=t[u--],d=127&c;for(c>>=7;l>0;d=256*d+t[u],u--,l-=8);for(r=d&(1<<-l)-1,d>>=-l,l+=e;l>0;r=256*r+t[u],u--,l-=8);if(0===d)d=1-a;else{if(d===s)return r?NaN:c?-1/0:1/0;r+=n(2,e),d-=a}return(c?-1:1)*r*n(2,d-e)}}},8361:function(t,e,n){var r=n(7293),i=n(4326),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},9587:function(t,e,n){var r=n(111),i=n(7674);t.exports=function(t,e,n){var o,s;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(s=o.prototype)&&s!==n.prototype&&i(t,s),t}},2788:function(t,e,n){var r=n(5465),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},9909:function(t,e,n){var r,i,o,s=n(8536),a=n(7854),l=n(111),u=n(8880),c=n(6656),d=n(5465),h=n(6200),p=n(3501),f=a.WeakMap;if(s){var m=d.state||(d.state=new f),g=m.get,v=m.has,y=m.set;r=function(t,e){return e.facade=t,y.call(m,t,e),e},i=function(t){return g.call(m,t)||{}},o=function(t){return v.call(m,t)}}else{var _=h("state");p[_]=!0,r=function(t,e){return e.facade=t,u(t,_,e),e},i=function(t){return c(t,_)?t[_]:{}},o=function(t){return c(t,_)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,e,n){var r=n(5112),i=n(7497),o=r("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[o]===t)}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},4705:function(t,e,n){var r=n(7293),i=/#|\.prototype\./,o=function(t,e){var n=a[s(t)];return n==u||n!=l&&("function"==typeof e?r(e):!!e)},s=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},111:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:function(t){t.exports=!1},7850:function(t,e,n){var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},9212:function(t,e,n){var r=n(9670);t.exports=function(t){var e=t.return;if(void 0!==e)return r(e.call(t)).value}},3383:function(t,e,n){"use strict";var r,i,o,s=n(7293),a=n(9518),l=n(8880),u=n(6656),c=n(5112),d=n(1913),h=c("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):p=!0);var f=null==r||s((function(){var t={};return r[h].call(t)!==t}));f&&(r={}),d&&!f||u(r,h)||l(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},7497:function(t){t.exports={}},133:function(t,e,n){var r=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},590:function(t,e,n){var r=n(7293),i=n(5112),o=n(1913),s=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8536:function(t,e,n){var r=n(7854),i=n(2788),o=r.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},1574:function(t,e,n){"use strict";var r=n(9781),i=n(7293),o=n(1956),s=n(5181),a=n(5296),l=n(7908),u=n(8361),c=Object.assign,d=Object.defineProperty;t.exports=!c||i((function(){if(r&&1!==c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||o(c({},e)).join("")!=i}))?function(t,e){for(var n=l(t),i=arguments.length,c=1,d=s.f,h=a.f;i>c;)for(var p,f=u(arguments[c++]),m=d?o(f).concat(d(f)):o(f),g=m.length,v=0;g>v;)p=m[v++],r&&!h.call(f,p)||(n[p]=f[p]);return n}:c},30:function(t,e,n){var r,i=n(9670),o=n(6048),s=n(748),a=n(3501),l=n(490),u=n(317),c=n(6200)("IE_PROTO"),d=function(){},h=function(t){return"