preline
Version:
Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.
32 lines • 252 kB
JavaScript
!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 i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(self,(()=>(()=>{"use strict";var t={170:(t,e,n)=>{n.r(e),n.d(e,{afterMain:()=>C,afterRead:()=>w,afterWrite:()=>T,applyStyles:()=>P,arrow:()=>Z,auto:()=>l,basePlacements:()=>a,beforeMain:()=>b,beforeRead:()=>g,beforeWrite:()=>x,bottom:()=>o,clippingParents:()=>d,computeStyles:()=>nt,createPopper:()=>Pt,createPopperBase:()=>kt,createPopperLite:()=>Dt,detectOverflow:()=>yt,end:()=>u,eventListeners:()=>ot,flip:()=>wt,hide:()=>Ct,left:()=>s,main:()=>S,modifierPhases:()=>E,offset:()=>xt,placements:()=>m,popper:()=>h,popperGenerator:()=>_t,popperOffsets:()=>It,preventOverflow:()=>Tt,read:()=>y,reference:()=>f,right:()=>r,start:()=>c,top:()=>i,variationPlacements:()=>v,viewport:()=>p,write:()=>I});var i="top",o="bottom",r="right",s="left",l="auto",a=[i,o,r,s],c="start",u="end",d="clippingParents",p="viewport",h="popper",f="reference",v=a.reduce((function(t,e){return t.concat([e+"-"+c,e+"-"+u])}),[]),m=[].concat(a,[l]).reduce((function(t,e){return t.concat([e,e+"-"+c,e+"-"+u])}),[]),g="beforeRead",y="read",w="afterRead",b="beforeMain",S="main",C="afterMain",x="beforeWrite",I="write",T="afterWrite",E=[g,y,w,b,S,C,x,I,T];function O(t){return t?(t.nodeName||"").toLowerCase():null}function L(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function A(t){return t instanceof L(t).Element||t instanceof Element}function _(t){return t instanceof L(t).HTMLElement||t instanceof HTMLElement}function k(t){return"undefined"!=typeof ShadowRoot&&(t instanceof L(t).ShadowRoot||t instanceof ShadowRoot)}const P={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]||{},i=e.attributes[t]||{},o=e.elements[t];_(o)&&O(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?o.removeAttribute(t):o.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 i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});_(i)&&O(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function D(t){return t.split("-")[0]}var B=Math.max,q=Math.min,H=Math.round;function M(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function N(){return!/^((?!chrome|android).)*safari/i.test(M())}function j(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,r=1;e&&_(t)&&(o=t.offsetWidth>0&&H(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&H(i.height)/t.offsetHeight||1);var s=(A(t)?L(t):window).visualViewport,l=!N()&&n,a=(i.left+(l&&s?s.offsetLeft:0))/o,c=(i.top+(l&&s?s.offsetTop:0))/r,u=i.width/o,d=i.height/r;return{width:u,height:d,top:c,right:a+u,bottom:c+d,left:a,x:a,y:c}}function $(t){var e=j(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function V(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&k(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function R(t){return L(t).getComputedStyle(t)}function F(t){return["table","td","th"].indexOf(O(t))>=0}function W(t){return((A(t)?t.ownerDocument:t.document)||window.document).documentElement}function U(t){return"html"===O(t)?t:t.assignedSlot||t.parentNode||(k(t)?t.host:null)||W(t)}function z(t){return _(t)&&"fixed"!==R(t).position?t.offsetParent:null}function Q(t){for(var e=L(t),n=z(t);n&&F(n)&&"static"===R(n).position;)n=z(n);return n&&("html"===O(n)||"body"===O(n)&&"static"===R(n).position)?e:n||function(t){var e=/firefox/i.test(M());if(/Trident/i.test(M())&&_(t)&&"fixed"===R(t).position)return null;var n=U(t);for(k(n)&&(n=n.host);_(n)&&["html","body"].indexOf(O(n))<0;){var i=R(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function J(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function K(t,e,n){return B(t,q(e,n))}function Y(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function X(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}const Z={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,l=t.name,c=t.options,u=n.elements.arrow,d=n.modifiersData.popperOffsets,p=D(n.placement),h=J(p),f=[s,r].indexOf(p)>=0?"height":"width";if(u&&d){var v=function(t,e){return Y("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:X(t,a))}(c.padding,n),m=$(u),g="y"===h?i:s,y="y"===h?o:r,w=n.rects.reference[f]+n.rects.reference[h]-d[h]-n.rects.popper[f],b=d[h]-n.rects.reference[h],S=Q(u),C=S?"y"===h?S.clientHeight||0:S.clientWidth||0:0,x=w/2-b/2,I=v[g],T=C-m[f]-v[y],E=C/2-m[f]/2+x,O=K(I,E,T),L=h;n.modifiersData[l]=((e={})[L]=O,e.centerOffset=O-E,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&V(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function G(t){return t.split("-")[1]}var tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function et(t){var e,n=t.popper,l=t.popperRect,a=t.placement,c=t.variation,d=t.offsets,p=t.position,h=t.gpuAcceleration,f=t.adaptive,v=t.roundOffsets,m=t.isFixed,g=d.x,y=void 0===g?0:g,w=d.y,b=void 0===w?0:w,S="function"==typeof v?v({x:y,y:b}):{x:y,y:b};y=S.x,b=S.y;var C=d.hasOwnProperty("x"),x=d.hasOwnProperty("y"),I=s,T=i,E=window;if(f){var O=Q(n),A="clientHeight",_="clientWidth";if(O===L(n)&&"static"!==R(O=W(n)).position&&"absolute"===p&&(A="scrollHeight",_="scrollWidth"),a===i||(a===s||a===r)&&c===u)T=o,b-=(m&&O===E&&E.visualViewport?E.visualViewport.height:O[A])-l.height,b*=h?1:-1;if(a===s||(a===i||a===o)&&c===u)I=r,y-=(m&&O===E&&E.visualViewport?E.visualViewport.width:O[_])-l.width,y*=h?1:-1}var k,P=Object.assign({position:p},f&&tt),D=!0===v?function(t,e){var n=t.x,i=t.y,o=e.devicePixelRatio||1;return{x:H(n*o)/o||0,y:H(i*o)/o||0}}({x:y,y:b},L(n)):{x:y,y:b};return y=D.x,b=D.y,h?Object.assign({},P,((k={})[T]=x?"0":"",k[I]=C?"0":"",k.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",k)):Object.assign({},P,((e={})[T]=x?b+"px":"",e[I]=C?y+"px":"",e.transform="",e))}const nt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,l=n.roundOffsets,a=void 0===l||l,c={placement:D(e.placement),variation:G(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,et(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,et(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var it={passive:!0};const ot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,l=void 0===s||s,a=L(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",n.update,it)})),l&&a.addEventListener("resize",n.update,it),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",n.update,it)})),l&&a.removeEventListener("resize",n.update,it)}},data:{}};var rt={left:"right",right:"left",bottom:"top",top:"bottom"};function st(t){return t.replace(/left|right|bottom|top/g,(function(t){return rt[t]}))}var lt={start:"end",end:"start"};function at(t){return t.replace(/start|end/g,(function(t){return lt[t]}))}function ct(t){var e=L(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ut(t){return j(W(t)).left+ct(t).scrollLeft}function dt(t){var e=R(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function pt(t){return["html","body","#document"].indexOf(O(t))>=0?t.ownerDocument.body:_(t)&&dt(t)?t:pt(U(t))}function ht(t,e){var n;void 0===e&&(e=[]);var i=pt(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=L(i),s=o?[r].concat(r.visualViewport||[],dt(i)?i:[]):i,l=e.concat(s);return o?l:l.concat(ht(U(s)))}function ft(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function vt(t,e,n){return e===p?ft(function(t,e){var n=L(t),i=W(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,l=0,a=0;if(o){r=o.width,s=o.height;var c=N();(c||!c&&"fixed"===e)&&(l=o.offsetLeft,a=o.offsetTop)}return{width:r,height:s,x:l+ut(t),y:a}}(t,n)):A(e)?function(t,e){var n=j(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):ft(function(t){var e,n=W(t),i=ct(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=B(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=B(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-i.scrollLeft+ut(t),a=-i.scrollTop;return"rtl"===R(o||n).direction&&(l+=B(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:l,y:a}}(W(t)))}function mt(t,e,n,i){var o="clippingParents"===e?function(t){var e=ht(U(t)),n=["absolute","fixed"].indexOf(R(t).position)>=0&&_(t)?Q(t):t;return A(n)?e.filter((function(t){return A(t)&&V(t,n)&&"body"!==O(t)})):[]}(t):[].concat(e),r=[].concat(o,[n]),s=r[0],l=r.reduce((function(e,n){var o=vt(t,n,i);return e.top=B(o.top,e.top),e.right=q(o.right,e.right),e.bottom=q(o.bottom,e.bottom),e.left=B(o.left,e.left),e}),vt(t,s,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function gt(t){var e,n=t.reference,l=t.element,a=t.placement,d=a?D(a):null,p=a?G(a):null,h=n.x+n.width/2-l.width/2,f=n.y+n.height/2-l.height/2;switch(d){case i:e={x:h,y:n.y-l.height};break;case o:e={x:h,y:n.y+n.height};break;case r:e={x:n.x+n.width,y:f};break;case s:e={x:n.x-l.width,y:f};break;default:e={x:n.x,y:n.y}}var v=d?J(d):null;if(null!=v){var m="y"===v?"height":"width";switch(p){case c:e[v]=e[v]-(n[m]/2-l[m]/2);break;case u:e[v]=e[v]+(n[m]/2-l[m]/2)}}return e}function yt(t,e){void 0===e&&(e={});var n=e,s=n.placement,l=void 0===s?t.placement:s,c=n.strategy,u=void 0===c?t.strategy:c,v=n.boundary,m=void 0===v?d:v,g=n.rootBoundary,y=void 0===g?p:g,w=n.elementContext,b=void 0===w?h:w,S=n.altBoundary,C=void 0!==S&&S,x=n.padding,I=void 0===x?0:x,T=Y("number"!=typeof I?I:X(I,a)),E=b===h?f:h,O=t.rects.popper,L=t.elements[C?E:b],_=mt(A(L)?L:L.contextElement||W(t.elements.popper),m,y,u),k=j(t.elements.reference),P=gt({reference:k,element:O,strategy:"absolute",placement:l}),D=ft(Object.assign({},O,P)),B=b===h?D:k,q={top:_.top-B.top+T.top,bottom:B.bottom-_.bottom+T.bottom,left:_.left-B.left+T.left,right:B.right-_.right+T.right},H=t.modifiersData.offset;if(b===h&&H){var M=H[l];Object.keys(q).forEach((function(t){var e=[r,o].indexOf(t)>=0?1:-1,n=[i,o].indexOf(t)>=0?"y":"x";q[t]+=M[n]*e}))}return q}const wt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,u=t.name;if(!e.modifiersData[u]._skip){for(var d=n.mainAxis,p=void 0===d||d,h=n.altAxis,f=void 0===h||h,g=n.fallbackPlacements,y=n.padding,w=n.boundary,b=n.rootBoundary,S=n.altBoundary,C=n.flipVariations,x=void 0===C||C,I=n.allowedAutoPlacements,T=e.options.placement,E=D(T),O=g||(E===T||!x?[st(T)]:function(t){if(D(t)===l)return[];var e=st(t);return[at(t),e,at(e)]}(T)),L=[T].concat(O).reduce((function(t,n){return t.concat(D(n)===l?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?m:c,d=G(i),p=d?l?v:v.filter((function(t){return G(t)===d})):a,h=p.filter((function(t){return u.indexOf(t)>=0}));0===h.length&&(h=p);var f=h.reduce((function(e,n){return e[n]=yt(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[D(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:n,boundary:w,rootBoundary:b,padding:y,flipVariations:x,allowedAutoPlacements:I}):n)}),[]),A=e.rects.reference,_=e.rects.popper,k=new Map,P=!0,B=L[0],q=0;q<L.length;q++){var H=L[q],M=D(H),N=G(H)===c,j=[i,o].indexOf(M)>=0,$=j?"width":"height",V=yt(e,{placement:H,boundary:w,rootBoundary:b,altBoundary:S,padding:y}),R=j?N?r:s:N?o:i;A[$]>_[$]&&(R=st(R));var F=st(R),W=[];if(p&&W.push(V[M]<=0),f&&W.push(V[R]<=0,V[F]<=0),W.every((function(t){return t}))){B=H,P=!1;break}k.set(H,W)}if(P)for(var U=function(t){var e=L.find((function(e){var n=k.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return B=e,"break"},z=x?3:1;z>0;z--){if("break"===U(z))break}e.placement!==B&&(e.modifiersData[u]._skip=!0,e.placement=B,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bt(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 St(t){return[i,r,o,s].some((function(e){return t[e]>=0}))}const Ct={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=yt(e,{elementContext:"reference"}),l=yt(e,{altBoundary:!0}),a=bt(s,i),c=bt(l,o,r),u=St(a),d=St(c);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};const xt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,o=t.name,l=n.offset,a=void 0===l?[0,0]:l,c=m.reduce((function(t,n){return t[n]=function(t,e,n){var o=D(t),l=[s,i].indexOf(o)>=0?-1:1,a="function"==typeof n?n(Object.assign({},e,{placement:t})):n,c=a[0],u=a[1];return c=c||0,u=(u||0)*l,[s,r].indexOf(o)>=0?{x:u,y:c}:{x:c,y:u}}(n,e.rects,a),t}),{}),u=c[e.placement],d=u.x,p=u.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=p),e.modifiersData[o]=c}};const It={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=gt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};const Tt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,l=t.name,a=n.mainAxis,u=void 0===a||a,d=n.altAxis,p=void 0!==d&&d,h=n.boundary,f=n.rootBoundary,v=n.altBoundary,m=n.padding,g=n.tether,y=void 0===g||g,w=n.tetherOffset,b=void 0===w?0:w,S=yt(e,{boundary:h,rootBoundary:f,padding:m,altBoundary:v}),C=D(e.placement),x=G(e.placement),I=!x,T=J(C),E="x"===T?"y":"x",O=e.modifiersData.popperOffsets,L=e.rects.reference,A=e.rects.popper,_="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,k="number"==typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(O){if(u){var M,N="y"===T?i:s,j="y"===T?o:r,V="y"===T?"height":"width",R=O[T],F=R+S[N],W=R-S[j],U=y?-A[V]/2:0,z=x===c?L[V]:A[V],Y=x===c?-A[V]:-L[V],X=e.elements.arrow,Z=y&&X?$(X):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[N],nt=tt[j],it=K(0,L[V],Z[V]),ot=I?L[V]/2-U-it-et-k.mainAxis:z-it-et-k.mainAxis,rt=I?-L[V]/2+U+it+nt+k.mainAxis:Y+it+nt+k.mainAxis,st=e.elements.arrow&&Q(e.elements.arrow),lt=st?"y"===T?st.clientTop||0:st.clientLeft||0:0,at=null!=(M=null==P?void 0:P[T])?M:0,ct=R+rt-at,ut=K(y?q(F,R+ot-at-lt):F,R,y?B(W,ct):W);O[T]=ut,H[T]=ut-R}if(p){var dt,pt="x"===T?i:s,ht="x"===T?o:r,ft=O[E],vt="y"===E?"height":"width",mt=ft+S[pt],gt=ft-S[ht],wt=-1!==[i,s].indexOf(C),bt=null!=(dt=null==P?void 0:P[E])?dt:0,St=wt?mt:ft-L[vt]-A[vt]-bt+k.altAxis,Ct=wt?ft+L[vt]+A[vt]-bt-k.altAxis:gt,xt=y&&wt?function(t,e,n){var i=K(t,e,n);return i>n?n:i}(St,ft,Ct):K(y?St:mt,ft,y?Ct:gt);O[E]=xt,H[E]=xt-ft}e.modifiersData[l]=H}},requiresIfExists:["offset"]};function Et(t,e,n){void 0===n&&(n=!1);var i,o,r=_(e),s=_(e)&&function(t){var e=t.getBoundingClientRect(),n=H(e.width)/t.offsetWidth||1,i=H(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),l=W(e),a=j(t,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==O(e)||dt(l))&&(c=(i=e)!==L(i)&&_(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:ct(i)),_(e)?((u=j(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):l&&(u.x=ut(l))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function Ot(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||o(t)})),i}var Lt={placement:"bottom",modifiers:[],strategy:"absolute"};function At(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function _t(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?Lt:o;return function(t,e,n){void 0===n&&(n=r);var o,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lt,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},a=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},r,l.options,o),l.scrollParents={reference:A(t)?ht(t):t.contextElement?ht(t.contextElement):[],popper:ht(e)};var s,c,p=function(t){var e=Ot(t);return E.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((s=[].concat(i,l.options.modifiers),c=s.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return l.orderedModifiers=p.filter((function(t){return t.enabled})),l.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:l,name:e,instance:u,options:i}),s=function(){};a.push(r||s)}})),u.update()},forceUpdate:function(){if(!c){var t=l.elements,e=t.reference,n=t.popper;if(At(e,n)){l.rects={reference:Et(e,Q(n),"fixed"===l.options.strategy),popper:$(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(t){return l.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<l.orderedModifiers.length;i++)if(!0!==l.reset){var o=l.orderedModifiers[i],r=o.fn,s=o.options,a=void 0===s?{}:s,d=o.name;"function"==typeof r&&(l=r({state:l,options:a,name:d,instance:u})||l)}else l.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){u.forceUpdate(),t(l)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(o())}))}))),s}),destroy:function(){d(),c=!0}};if(!At(t,e))return u;function d(){a.forEach((function(t){return t()})),a=[]}return u.setOptions(n).then((function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)})),u}}var kt=_t(),Pt=_t({defaultModifiers:[ot,It,nt,P,xt,wt,Tt,Z,Ct]}),Dt=_t({defaultModifiers:[ot,It,nt,P]})},223:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BREAKPOINTS=e.COMBO_BOX_ACCESSIBILITY_KEY_SET=e.SELECT_ACCESSIBILITY_KEY_SET=e.TABS_ACCESSIBILITY_KEY_SET=e.OVERLAY_ACCESSIBILITY_KEY_SET=e.DROPDOWN_ACCESSIBILITY_KEY_SET=e.POSITIONS=void 0,e.POSITIONS={auto:"auto","auto-start":"auto-start","auto-end":"auto-end",top:"top","top-left":"top-start","top-right":"top-end",bottom:"bottom","bottom-left":"bottom-start","bottom-right":"bottom-end",right:"right","right-start":"right-start","right-end":"right-end",left:"left","left-start":"left-start","left-end":"left-end"},e.DROPDOWN_ACCESSIBILITY_KEY_SET=["Escape","ArrowUp","ArrowDown","Home","End","Enter"],e.OVERLAY_ACCESSIBILITY_KEY_SET=["Escape","Tab"],e.TABS_ACCESSIBILITY_KEY_SET=["ArrowUp","ArrowLeft","ArrowDown","ArrowRight","Home","End"],e.SELECT_ACCESSIBILITY_KEY_SET=["ArrowUp","ArrowLeft","ArrowDown","ArrowRight","Home","End","Escape","Enter","Tab"],e.COMBO_BOX_ACCESSIBILITY_KEY_SET=["ArrowUp","ArrowLeft","ArrowDown","ArrowRight","Home","End","Escape","Enter"],e.BREAKPOINTS={xs:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536}},158:function(t,e,n){
/*
* @version: 2.5.0
* @author: Preline Labs Ltd.
* @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
* Copyright 2024 Preline Labs Ltd.
*/
var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.HSRangeSlider=e.HSFileUpload=e.HSDataTable=e.HSStaticMethods=e.HSTreeView=e.HSTooltip=e.HSTogglePassword=e.HSToggleCount=e.HSThemeSwitch=e.HSTextareaAutoHeight=e.HSTabs=e.HSStrongPassword=e.HSStepper=e.HSSelect=e.HSScrollspy=e.HSRemoveElement=e.HSPinInput=e.HSOverlay=e.HSInputNumber=e.HSDropdown=e.HSComboBox=e.HSCollapse=e.HSCarousel=e.HSAccordion=e.HSCopyMarkup=void 0;var o=n(406);Object.defineProperty(e,"HSCopyMarkup",{enumerable:!0,get:function(){return i(o).default}});var r=n(740);Object.defineProperty(e,"HSAccordion",{enumerable:!0,get:function(){return i(r).default}});var s=n(268);Object.defineProperty(e,"HSCarousel",{enumerable:!0,get:function(){return i(s).default}});var l=n(485);Object.defineProperty(e,"HSCollapse",{enumerable:!0,get:function(){return i(l).default}});var a=n(809);Object.defineProperty(e,"HSComboBox",{enumerable:!0,get:function(){return i(a).default}});var c=n(891);Object.defineProperty(e,"HSDropdown",{enumerable:!0,get:function(){return i(c).default}});var u=n(332);Object.defineProperty(e,"HSInputNumber",{enumerable:!0,get:function(){return i(u).default}});var d=n(850);Object.defineProperty(e,"HSOverlay",{enumerable:!0,get:function(){return i(d).default}});var p=n(60);Object.defineProperty(e,"HSPinInput",{enumerable:!0,get:function(){return i(p).default}});var h=n(911);Object.defineProperty(e,"HSRemoveElement",{enumerable:!0,get:function(){return i(h).default}});var f=n(751);Object.defineProperty(e,"HSScrollspy",{enumerable:!0,get:function(){return i(f).default}});var v=n(442);Object.defineProperty(e,"HSSelect",{enumerable:!0,get:function(){return i(v).default}});var m=n(887);Object.defineProperty(e,"HSStepper",{enumerable:!0,get:function(){return i(m).default}});var g=n(97);Object.defineProperty(e,"HSStrongPassword",{enumerable:!0,get:function(){return i(g).default}});var y=n(166);Object.defineProperty(e,"HSTabs",{enumerable:!0,get:function(){return i(y).default}});var w=n(144);Object.defineProperty(e,"HSTextareaAutoHeight",{enumerable:!0,get:function(){return i(w).default}});var b=n(502);Object.defineProperty(e,"HSThemeSwitch",{enumerable:!0,get:function(){return i(b).default}});var S=n(684);Object.defineProperty(e,"HSToggleCount",{enumerable:!0,get:function(){return i(S).default}});var C=n(100);Object.defineProperty(e,"HSTogglePassword",{enumerable:!0,get:function(){return i(C).default}});var x=n(969);Object.defineProperty(e,"HSTooltip",{enumerable:!0,get:function(){return i(x).default}});var I=n(772);Object.defineProperty(e,"HSTreeView",{enumerable:!0,get:function(){return i(I).default}});var T=n(957);Object.defineProperty(e,"HSStaticMethods",{enumerable:!0,get:function(){return i(T).default}}),"undefined"!=typeof DataTable&&"undefined"!=typeof jQuery?e.HSDataTable=n(814).default:e.HSDataTable=null,"undefined"!=typeof _&&"undefined"!=typeof Dropzone?e.HSFileUpload=n(234).default:e.HSFileUpload=null,void 0!==typeof noUiSlider?e.HSRangeSlider=n(347).default:e.HSRangeSlider=null},740:function(t,e,n){
/*
* HSAccordion
* @version: 2.5.0
* @author: Preline Labs Ltd.
* @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
* Copyright 2024 Preline Labs Ltd.
*/
var i,o=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=n(292),a=function(t){function e(e,n,i){var o=t.call(this,e,n,i)||this;return o.toggle=o.el.querySelector(".hs-accordion-toggle")||null,o.content=o.el.querySelector(".hs-accordion-content")||null,o.update(),o.toggle&&o.content&&o.init(),o}return o(e,t),e.prototype.init=function(){var t=this;this.createCollection(window.$hsAccordionCollection,this),this.toggle.addEventListener("click",(function(e){e.stopPropagation(),t.el.classList.contains("active")?t.hide():t.show()}))},e.prototype.show=function(){var t,e=this;this.group&&!this.isAlwaysOpened&&this.group.querySelector(":scope > .hs-accordion.active")&&this.group.querySelector(":scope > .hs-accordion.active")!==this.el&&window.$hsAccordionCollection.find((function(t){return t.element.el===e.group.querySelector(":scope > .hs-accordion.active")})).element.hide();if(this.el.classList.contains("active"))return!1;this.el.classList.add("active"),(null===(t=null==this?void 0:this.toggle)||void 0===t?void 0:t.ariaExpanded)&&(this.toggle.ariaExpanded="true"),this.content.style.display="block",this.content.style.height="0",setTimeout((function(){e.content.style.height="".concat(e.content.scrollHeight,"px")})),(0,l.afterTransition)(this.content,(function(){e.content.style.display="block",e.content.style.height="",e.fireEvent("open",e.el),(0,l.dispatch)("open.hs.accordion",e.el,e.el)}))},e.prototype.hide=function(){var t,e=this;if(!this.el.classList.contains("active"))return!1;this.el.classList.remove("active"),(null===(t=null==this?void 0:this.toggle)||void 0===t?void 0:t.ariaExpanded)&&(this.toggle.ariaExpanded="false"),this.content.style.height="".concat(this.content.scrollHeight,"px"),setTimeout((function(){e.content.style.height="0"})),(0,l.afterTransition)(this.content,(function(){e.content.style.display="",e.content.style.height="0",e.fireEvent("close",e.el),(0,l.dispatch)("close.hs.accordion",e.el,e.el)}))},e.prototype.update=function(){var t=this;if(this.group=this.el.closest(".hs-accordion-group")||null,!this.group)return!1;this.isAlwaysOpened=this.group.hasAttribute("data-hs-accordion-always-open")||!1,window.$hsAccordionCollection.map((function(e){return e.id===t.el.id&&(e.element.group=t.group,e.element.isAlwaysOpened=t.isAlwaysOpened),e}))},e.getInstance=function(t,e){var n=window.$hsAccordionCollection.find((function(e){return e.element.el===("string"==typeof t?document.querySelector(t):t)}));return n?e?n:n.element.el:null},e.show=function(t){var e=window.$hsAccordionCollection.find((function(e){return e.element.el===("string"==typeof t?document.querySelector(t):t)}));e&&"block"!==e.element.content.style.display&&e.element.show()},e.hide=function(t){var e=window.$hsAccordionCollection.find((function(e){return e.element.el===("string"==typeof t?document.querySelector(t):t)}));e&&"block"===e.element.content.style.display&&e.element.hide()},e.autoInit=function(){window.$hsAccordionCollection||(window.$hsAccordionCollection=[]),document.querySelectorAll(".hs-accordion:not(.--prevent-on-load-init)").forEach((function(t){window.$hsAccordionCollection.find((function(e){var n;return(null===(n=null==e?void 0:e.element)||void 0===n?void 0:n.el)===t}))||new e(t)}))},e.treeView=function(){var t=this;if(!document.querySelectorAll(".hs-accordion-treeview-root").length)return!1;this.selectable=[],document.querySelectorAll(".hs-accordion-treeview-root").forEach((function(e){var n=null==e?void 0:e.getAttribute("data-hs-accordion-options"),i=n?JSON.parse(n):{};t.selectable.push({el:e,options:r({},i)})})),this.selectable.length&&this.selectable.forEach((function(e){e.el.querySelectorAll(".hs-accordion-selectable").forEach((function(n){n.addEventListener("click",(function(i){i.stopPropagation(),t.toggleSelected(e,n)}))}))}))},e.toggleSelected=function(t,e){e.classList.contains("selected")?e.classList.remove("selected"):(t.el.querySelectorAll(".hs-accordion-selectable").forEach((function(t){return t.classList.remove("selected")})),e.classList.add("selected"))},e.on=function(t,e,n){var i=window.$hsAccordionCollection.find((function(t){return t.element.el===("string"==typeof e?document.querySelector(e):e)}));i&&(i.element.events[t]=n)},e}(s(n(961)).default);window.addEventListener("load",(function(){a.autoInit(),document.querySelectorAll(".hs-accordion-treeview-root").length&&a.treeView()})),"undefined"!=typeof window&&(window.HSAccordion=a),e.default=a},961:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,n){this.el=t,this.options=e,this.events=n,this.el=t,this.options=e,this.events={}}return t.prototype.createCollection=function(t,e){var n;t.push({id:(null===(n=null==e?void 0:e.el)||void 0===n?void 0:n.id)||t.length+1,element:e})},t.prototype.fireEvent=function(t,e){if(void 0===e&&(e=null),this.events.hasOwnProperty(t))return this.events[t](e)},t.prototype.on=function(t,e){this.events[t]=e},t}();e.default=n},268:function(t,e,n){
/*
* HSCarousel
* @version: 2.5.0
* @author: Preline Labs Ltd.
* @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
* Copyright 2024 Preline Labs Ltd.
*/
var i,o=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=n(292),a=s(n(961)),c=n(223),u=function(t){function e(e,n){var i,o,s,l,a,c=t.call(this,e,n)||this,u=e.getAttribute("data-hs-carousel"),d=u?JSON.parse(u):{},p=r(r({},d),n);return c.currentIndex=p.currentIndex||0,c.loadingClasses=p.loadingClasses?"".concat(p.loadingClasses).split(","):null,c.dotsItemClasses=p.dotsItemClasses?p.dotsItemClasses:null,c.isAutoHeight=void 0!==p.isAutoHeight&&p.isAutoHeight,c.isAutoPlay=void 0!==p.isAutoPlay&&p.isAutoPlay,c.isCentered=void 0!==p.isCentered&&p.isCentered,c.isDraggable=void 0!==p.isDraggable&&p.isDraggable,c.isInfiniteLoop=void 0!==p.isInfiniteLoop&&p.isInfiniteLoop,c.isRTL=void 0!==p.isRTL&&p.isRTL,c.isSnap=void 0!==p.isSnap&&p.isSnap,c.hasSnapSpacers=void 0===p.hasSnapSpacers||p.hasSnapSpacers,c.speed=p.speed||4e3,c.updateDelay=p.updateDelay||0,c.slidesQty=p.slidesQty||1,c.loadingClassesRemove=(null===(i=c.loadingClasses)||void 0===i?void 0:i[0])?c.loadingClasses[0].split(" "):"opacity-0",c.loadingClassesAdd=(null===(o=c.loadingClasses)||void 0===o?void 0:o[1])?c.loadingClasses[1].split(" "):"",c.afterLoadingClassesAdd=(null===(s=c.loadingClasses)||void 0===s?void 0:s[2])?c.loadingClasses[2].split(" "):"",c.container=c.el.querySelector(".hs-carousel")||null,c.inner=c.el.querySelector(".hs-carousel-body")||null,c.slides=c.el.querySelectorAll(".hs-carousel-slide")||[],c.prev=c.el.querySelector(".hs-carousel-prev")||null,c.next=c.el.querySelector(".hs-carousel-next")||null,c.dots=c.el.querySelector(".hs-carousel-pagination")||null,c.info=c.el.querySelector(".hs-carousel-info")||null,c.infoTotal=(null===(l=null==c?void 0:c.info)||void 0===l?void 0:l.querySelector(".hs-carousel-info-total"))||null,c.infoCurrent=(null===(a=null==c?void 0:c.info)||void 0===a?void 0:a.querySelector(".hs-carousel-info-current"))||null,c.sliderWidth=c.el.getBoundingClientRect().width,c.isDragging=!1,c.dragStartX=null,c.initialTranslateX=null,c.touchX={start:0,end:0},c.resizeContainer=document.querySelector("body"),c.resizeContainerWidth=0,c.init(),c}return o(e,t),e.prototype.setIsSnap=function(){var t=this,e=this.container.getBoundingClientRect(),n=e.left+e.width/2,i=null,o=null,r=1/0;Array.from(this.inner.children).forEach((function(e){var o=e.getBoundingClientRect(),s=t.inner.getBoundingClientRect(),l=o.left+o.width/2-s.left,a=Math.abs(n-(s.left+l));a<r&&(r=a,i=e)})),i&&(o=Array.from(this.slides).findIndex((function(t){return t===i}))),this.setIndex(o),this.dots&&this.setCurrentDot()},e.prototype.init=function(){var t=this;this.createCollection(window.$hsCarouselCollection,this),this.inner&&(this.calculateWidth(),this.isDraggable&&!this.isSnap&&this.initDragHandling()),this.prev&&this.prev.addEventListener("click",(function(){t.goToPrev(),t.isAutoPlay&&(t.resetTimer(),t.setTimer())})),this.next&&this.next.addEventListener("click",(function(){t.goToNext(),t.isAutoPlay&&(t.resetTimer(),t.setTimer())})),this.dots&&this.initDots(),this.info&&this.buildInfo(),this.slides.length&&(this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass(),this.isAutoPlay&&this.autoPlay()),setTimeout((function(){var e,n;t.isSnap&&t.setIsSnap(),t.loadingClassesRemove&&("string"==typeof t.loadingClassesRemove?t.inner.classList.remove(t.loadingClassesRemove):(e=t.inner.classList).remove.apply(e,t.loadingClassesRemove)),t.loadingClassesAdd&&("string"==typeof t.loadingClassesAdd?t.inner.classList.add(t.loadingClassesAdd):(n=t.inner.classList).add.apply(n,t.loadingClassesAdd)),t.inner&&t.afterLoadingClassesAdd&&setTimeout((function(){var e;"string"==typeof t.afterLoadingClassesAdd?t.inner.classList.add(t.afterLoadingClassesAdd):(e=t.inner.classList).add.apply(e,t.afterLoadingClassesAdd)}))}),400),this.isSnap&&this.container.addEventListener("scroll",(function(){clearTimeout(t.isScrolling),t.isScrolling=setTimeout((function(){t.setIsSnap()}),100)})),this.el.classList.add("init"),this.isSnap||(this.el.addEventListener("touchstart",(function(e){t.touchX.start=e.changedTouches[0].screenX})),this.el.addEventListener("touchend",(function(e){t.touchX.end=e.changedTouches[0].screenX,t.detectDirection()}))),this.observeResize()},e.prototype.initDragHandling=function(){var t=this.inner;t&&(t.addEventListener("mousedown",this.handleDragStart.bind(this)),t.addEventListener("touchstart",this.handleDragStart.bind(this),{passive:!0}),document.addEventListener("mousemove",this.handleDragMove.bind(this)),document.addEventListener("touchmove",this.handleDragMove.bind(this),{passive:!1}),document.addEventListener("mouseup",this.handleDragEnd.bind(this)),document.addEventListener("touchend",this.handleDragEnd.bind(this)))},e.prototype.getTranslateXValue=function(){var t,e=window.getComputedStyle(this.inner).transform;if("none"!==e){var n=null===(t=e.match(/matrix.*\((.+)\)/))||void 0===t?void 0:t[1].split(", ");if(n){var i=parseFloat(6===n.length?n[4]:n[12]);return this.isRTL&&(i=-i),isNaN(i)||0===i?0:-i}}return 0},e.prototype.removeClickEventWhileDragging=function(t){t.preventDefault()},e.prototype.handleDragStart=function(t){t.preventDefault(),this.isDragging=!0,this.dragStartX=this.getEventX(t),this.initialTranslateX=this.isRTL?this.getTranslateXValue():-this.getTranslateXValue(),this.inner.classList.add("dragging")},e.prototype.handleDragMove=function(t){var e=this;if(this.isDragging){this.inner.querySelectorAll("a:not(.prevented-click)").forEach((function(t){t.classList.add("prevented-click"),t.addEventListener("click",e.removeClickEventWhileDragging)}));var n=this.getEventX(t)-this.dragStartX;this.isRTL&&(n=-n);var i=this.initialTranslateX+n;this.setTranslate(function(){var t=e.sliderWidth*e.slides.length/e.getCurrentSlidesQty()-e.sliderWidth,n=e.sliderWidth,o=(n-n/e.getCurrentSlidesQty())/2,r=e.isCentered?o:0;e.isCentered&&(t+=o);var s=-t;return e.isRTL?i<r?r:i>t?s:-i:i>r?r:i<-t?s:i}())}},e.prototype.handleDragEnd=function(){var t=this;if(this.isDragging){this.isDragging=!1;var e=this.sliderWidth/this.getCurrentSlidesQty(),n=this.getTranslateXValue(),i=Math.round(n/e);this.isRTL&&(i=Math.round(n/e)),this.inner.classList.remove("dragging"),setTimeout((function(){t.calculateTransform(i),t.dots&&t.setCurrentDot(),t.dragStartX=null,t.initialTranslateX=null,t.inner.querySelectorAll("a.prevented-click").forEach((function(e){e.classList.remove("prevented-click"),e.removeEventListener("click",t.removeClickEventWhileDragging)}))}))}},e.prototype.getEventX=function(t){return t instanceof MouseEvent?t.clientX:t.touches[0].clientX},e.prototype.getCurrentSlidesQty=function(){var t=this;if("object"==typeof this.slidesQty){var e=document.body.clientWidth,n=0;return Object.keys(this.slidesQty).forEach((function(i){e>=(typeof i+1=="number"?t.slidesQty[i]:c.BREAKPOINTS[i])&&(n=t.slidesQty[i])})),n}return this.slidesQty},e.prototype.buildSnapSpacers=function(){var t=this.inner.querySelector(".hs-snap-before"),e=this.inner.querySelector(".hs-snap-after");t&&t.remove(),e&&e.remove();var n=this.sliderWidth,i=n/2-n/this.getCurrentSlidesQty()/2,o=(0,l.htmlToElement)('<div class="hs-snap-before" style="height: 100%; width: '.concat(i,'px"></div>')),r=(0,l.htmlToElement)('<div class="hs-snap-after" style="height: 100%; width: '.concat(i,'px"></div>'));this.inner.prepend(o),this.inner.appendChild(r)},e.prototype.initDots=function(){this.el.querySelectorAll(".hs-carousel-pagination-item").length?this.setDots():this.buildDots(),this.dots&&this.setCurrentDot()},e.prototype.buildDots=function(){this.dots.innerHTML="";for(var t=!this.isCentered&&this.slidesQty?this.slides.length-(this.getCurrentSlidesQty()-1):this.slides.length,e=0;e<t;e++){var n=this.buildSingleDot(e);this.dots.append(n)}},e.prototype.setDots=function(){var t=this;this.dotsItems=this.dots.querySelectorAll(".hs-carousel-pagination-item"),this.dotsItems.forEach((function(e,n){var i=e.getAttribute("data-carousel-pagination-item-target");t.singleDotEvents(e,i?+i:n)}))},e.prototype.goToCurrentDot=function(){var t=this.dots,e=t.getBoundingClientRect(),n=t.scrollLeft,i=t.scrollTop,o=t.clientWidth,r=t.clientHeight,s=this.dotsItems[this.currentIndex],l=s.getBoundingClientRect(),a=l.left-e.left+n,c=a+s.clientWidth,u=l.top-e.top+i,d=u+s.clientHeight,p=n,h=i;(a<n||c>n+o)&&(p=c-o),(u<i||d>i+r)&&(h=d-r),t.scrollTo({left:p,top:h,behavior:"smooth"})},e.prototype.buildInfo=function(){this.infoTotal&&this.setInfoTotal(),this.infoCurrent&&this.setInfoCurrent()},e.prototype.setInfoTotal=function(){this.infoTotal.innerText="".concat(this.slides.length)},e.prototype.setInfoCurrent=function(){this.infoCurrent.innerText="".concat(this.currentIndex+1)},e.prototype.buildSingleDot=function(t){var e=(0,l.htmlToElement)("<span></span>");return this.dotsItemClasses&&(0,l.classToClassList)(this.dotsItemClasses,e),this.singleDotEvents(e,t),e},e.prototype.singleDotEvents=function(t,e){var n=this;t.addEventListener("click",(function(){n.goTo(e),n.isAutoPlay&&(n.resetTimer(),n.setTimer())}))},e.prototype.observeResize=function(){var t=this;new ResizeObserver((0,l.debounce)((function(e){for(var n=0,i=e;n<i.length;n++){var o=i[n].contentRect.width;o!==t.resizeContainerWidth&&(t.recalculateWidth(),t.dots&&t.initDots(),t.addCurrentClass(),t.resizeContainerWidth=o)}}),this.updateDelay)).observe(this.resizeContainer)},e.prototype.calculateWidth=function(){var t=this;this.isSnap||(this.inner.style.width="".concat(this.sliderWidth*this.slides.length/this.getCurrentSlidesQty(),"px")),this.slides.forEach((function(e){e.style.width="".concat(t.sliderWidth/t.getCurrentSlidesQty(),"px")})),this.calculateTransform()},e.prototype.addCurrentClass=function(){var t=this;if(this.isSnap)for(var e=Math.floor(this.getCurrentSlidesQty()/2),n=0;n<this.slides.length;n++){var i=this.slides[n];n<=this.currentIndex+e&&n>=this.currentIndex-e?i.classList.add("active"):i.classList.remove("active")}else{var o=this.isCentered?this.currentIndex+this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.currentIndex+this.getCurrentSlidesQty();this.slides.forEach((function(e,n){n>=t.currentIndex&&n<o?e.classList.add("active"):e.classList.remove("active")}))}},e.prototype.setCurrentDot=function(){var t=this,e=function(e,n){var i=Math.floor(t.getCurrentSlidesQty()/2);(t.isSnap&&!t.hasSnapSpacers?n===(t.getCurrentSlidesQty()%2==0?t.currentIndex-i+1:t.currentIndex-i):n===t.currentIndex)?e.classList.add("active"):e.classList.remove("active")};this.dotsItems?this.dotsItems.forEach((function(t,n){return e(t,n)})):this.dots.querySelectorAll(":scope > *").forEach((function(t,n){return e(t,n)}))},e.prototype.setElementToDisabled=function(t){t.classList.add("disabled"),"BUTTON"!==t.tagName&&"INPUT"!==t.tagName||t.setAttribute("disabled","disabled")},e.prototype.unsetElementToDisabled=function(t){t.classList.remove("disabled"),"BUTTON"!==t.tagName&&"INPUT"!==t.tagName||t.removeAttribute("disabled")},e.prototype.addDisabledClass=function(){if(!this.prev||!this.next)return!1;var t=getComputedStyle(this.inner).getPropertyValue("gap"),e=Math.floor(this.getCurrentSlidesQty()/2),n=0,i=0,o=!1,r=!1;this.isSnap?(n=this.currentIndex,i=this.hasSnapSpacers?this.slides.length-1:this.slides.length-e-1,o=this.hasSnapSpacers?0===n:this.getCurrentSlidesQty()%2==0?n-e<0:n-e==0,r=n>=i&&this.container.scrollLeft+this.container.clientWidth+(parseFloat(t)||0)>=this.container.scrollWidth):(o=0===(n=this.currentIndex),r=n>=(i=this.isCentered?this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.slides.length-this.getCurrentSlidesQty())),o?(this.unsetElementToDisabled(this.next),this.setElementToDisabled(this.prev)):r?(this.unsetElementToDisabled(this.prev),this.setElementToDisabled(this.next)):(this.unsetElementToDisabled(this.prev),this.unsetElementToDisabled(this.next))},e.prototype.autoPlay=function(){this.setTimer()},e.prototype.setTimer=function(){var t=this;this.timer=setInterval((function(){t.currentIndex===t.slides.length-1?t.goTo(0):t.goToNext()}),this.speed)},e.prototype.resetTimer=function(){clearInterval(this.timer)},e.prototype.detectDirection=function(){var t=this.touchX,e=t.start,n=t.end;n<e&&this.goToNext(),n>e&&this.goToPrev()},e.prototype.recalculateWidth=function(){this.sliderWidth=this.inner.parentElement.getBoundingClientRect().width,this.calculateWidth(),this.sliderWidth!==this.inner.parentElement.getBoundingClientRect().width&&this.recalculateWidth()},e.prototype.calculateTransform=function(t){void 0!==t&&(this.currentIndex=t),this.currentIndex>this.slides.length-this.getCurrentSlidesQty()&&!this.isCentered&&(this.currentIndex=this.slides.length-this.getCurrentSlidesQty());var e=this.sliderWidth,n=e/this.getCurrentSlidesQty(),i=this.currentIndex*n;if(this.isSnap&&!this.isCentered&&this.container.scrollLeft<e&&this.container.scrollLeft+n/2>e&&(this.container.scrollLeft=this.container.scrollWidth),this.isCentered&&!this.isSnap){var o=(e-n)/2;if(0===this.currentIndex)i=-o;else if(this.currentIndex>=this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1)){i=this.slides.length*n-e+o}else i=this.currentIndex*n-o}this.isSnap||(this.inner.style.transform=this.isRTL?"translate(".concat(i,"px, 0px)"):"translate(".concat(-i,"px, 0px)")),this.isAutoHeight&&(this.inner.style.height="".concat(this.slides[this.currentIndex].clientHeight,"px")),this.dotsItems&&this.goToCurrentDot(),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass(),this.isSnap&&this.hasSnapSpacers&&this.buildSnapSpacers(),this.infoCurrent&&this.setInfoCurrent()},e.prototype.setTranslate=function(t){this.inner.style.transform=this.isRTL?"translate(".concat(-t,"px, 0px)"):"translate(".concat(t,"px, 0px)")},e.prototype.goToPrev=function(){if(this.currentIndex>0?this.currentIndex--:this.currentIndex=this.slides.length-this.getCurrentSlidesQty(),this.isSnap){var t=this.sliderWidth/this.getCurrentSlidesQty();this.container.scrollBy({left:Math.max(-this.container.scrollLeft,-t),behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()},e.prototype.goToNext=function(){var t=this.isCentered?this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.slides.length-this.getCurrentSlidesQty();if(this.currentIndex<t?this.currentIndex++:this.currentIndex=0,this.isSnap){var e=this.sliderWidth/this.getCurrentSlidesQty(),n=this.container.scrollWidth-this.container.clientWidth;this.container.scrollBy({left:Math.min(e,n-this.container.scrollLeft),behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()},e.prototype.goTo=function(t){var e=this.currentIndex;if(this.currentIndex=t,this.isSnap){var n=this.sliderWidth/this.getCurrentSlidesQty(),i=e>this.currentIndex?e-this.currentIndex:this.currentIndex-e,o=e>this.currentIndex?-n*i:n*i;this.container.scrollBy({left:o,behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()},e.prototype.setIndex=function(t){this.currentIndex=t,this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()},e.getInstance=function(t,e){var n=window.$hsCarouselCollection.find((function(e){return e.element.el===("string"==typeof t?document.querySelector(t):t)}));return n?e?n:n.element:null},e.autoInit=function(){window.$hsCarouselCollection||(window.$hsCarouselCollection=[]),document.querySelectorAll("[data-hs-carousel]:not(.--prevent-on-load-init)").forEach((function(t){window.$hsCarouselCollection.find((function(e){var n;return(null===(n=null==e?void 0:e.element)||void 0===n?void 0:n.el)===t}))||new e(t)}))},e}(a.default);window.addEventListener("load",(function(){u.autoInit()})),"undefined"!=typeof window&&(window.HSCarousel=u),e.default=u},485:function(t,e,n){
/*
* HSCollapse
* @version: 2.5.0
* @author: Preline Labs Ltd.
* @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
* Copyright 2024 Preline Labs Ltd.
*/
var i,o=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(292),l=function(t){function e(e,n,i){var o=t.call(this,e,n,i)||this;return o.contentId=o.el.dataset.hsCollapse,o.content=document.querySelector(o.contentId),o.animationInProcess=!1,o.content&&o.init(),o}return o(e,t),e.prototype.init=function(){var t,e=this;this.createCollection(window.$hsCollapseCollection,this),(null===(t=null==this?void 0:this.el)||void 0===t?void 0:t.ariaExpanded)&&(this.el.classList.contains("open")?this.el.ariaExpanded="true":this.el.ariaExpanded="false"),this.el.addEventListener("click",(function(){e.content.classList.contains("open")?e.hide():e.show()}))},e.prototype.hideAllMegaMenuItems=function(){this.content.querySelectorAll(".hs-mega-menu-content.block").forEach((function(t){t.classList.remove("block"),t.classList.add("hidden")}))},e.prototype.show=function(){var t,e=this;if(this.animationInProcess||this.el.classList.contains("open"))return!1;this.animationInProcess=!0,this.el.classList.add("open"),(null===(t=null==this?void 0:this.el)||void 0===t?void 0:t.ariaExpanded)&&(this.el.ariaExpanded="true"),this.content.classList.add("open"),this.content.classList.remove("hidden"),this.content.style.height="0",setTimeout((function(){e.content.style.height="".concat(e.content.scrollHeight,"px"),e.fireEvent("beforeOpen",e.el),(0,s.dispatch)("beforeOpen.hs.collapse",e.el,e.el)})),(0,s.afterTransition)(this.content,(function(){e.content.style.height="",e.fireEvent("open",e.el),(0,s.dispatch)("open.hs.collapse",e.el,e.el),e.animationIn