vendors.min.js 592 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /*!
  2. Anime.js - IIFE
  3. Version: v4.1.3
  4. Plugin URL: https://animejs.com
  5. License: (c) 2025 Julian Garnier | Released under the MIT license
  6. !*/
  7. var anime=function(e){"use strict";const t="undefined"!=typeof window,i=t?window:null,s=t?document:null,n={replace:0,none:1,blend:2},r=Symbol(),o=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),d=Symbol(),u=1e-11,h=1e12,p=1e3,f="",m=(()=>{const e=new Map;return e.set("x","translateX"),e.set("y","translateY"),e.set("z","translateZ"),e})(),g=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],v=g.reduce(((e,t)=>({...e,[t]:t+"("})),{}),y=()=>{},b=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,_=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,w=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,x=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,T=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,S=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,E=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,C=/([a-z])([A-Z])/g,M=/(\w+)(\([^)]+\)+)/g,k=/(\*=|\+=|-=)/,A={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:120,loop:0,reversed:!1,alternate:!1,autoplay:!0,duration:p,delay:0,loopDelay:0,ease:"out(2)",composition:n.replace,modifier:e=>e,onBegin:y,onBeforeUpdate:y,onUpdate:y,onLoop:y,onPause:y,onComplete:y,onRender:y},I={current:null,root:s},O={defaults:A,precision:4,timeScale:1,tickThreshold:200},L={version:"4.1.3",engine:null};t&&(i.AnimeJS||(i.AnimeJS=[]),i.AnimeJS.push(L));const P=e=>e.replace(C,"$1-$2").toLowerCase(),z=(e,t)=>0===e.indexOf(t),D=Date.now,$=Array.isArray,B=e=>e&&e.constructor===Object,R=e=>"number"==typeof e&&!isNaN(e),F=e=>"string"==typeof e,j=e=>"function"==typeof e,N=e=>void 0===e,H=e=>N(e)||null===e,W=e=>t&&e instanceof SVGElement,q=e=>b.test(e),Y=e=>z(e,"rgb"),X=e=>z(e,"hsl"),V=e=>!O.defaults.hasOwnProperty(e),G=e=>F(e)?parseFloat(e):e,U=Math.pow,Q=Math.sqrt,Z=Math.sin,K=Math.cos,J=Math.abs,ee=Math.exp,te=Math.ceil,ie=Math.floor,se=Math.asin,ne=Math.max,re=Math.atan2,oe=Math.PI,ae=Math.round,le=(e,t,i)=>e<t?t:e>i?i:e,ce={},de=(e,t)=>{if(t<0)return e;if(!t)return ae(e);let i=ce[t];return i||(i=ce[t]=10**t),ae(e*i)/i},ue=(e,t)=>$(t)?t.reduce(((t,i)=>J(i-e)<J(t-e)?i:t)):t?ae(e/t)*t:e,he=(e,t,i)=>e+(t-e)*i,pe=(e,t,i)=>{const s=10**(i||0);return ie((Math.random()*(t-e+1/s)+e)*s)/s},fe=e=>{let t,i,s=e.length;for(;s;)i=pe(0,--s),t=e[s],e[s]=e[i],e[i]=t;return e},me=e=>e===1/0?h:e===-1/0?-1e12:e,ge=e=>e<=u?u:me(de(e,11)),ve=e=>$(e)?[...e]:e,ye=(e,t)=>{const i={...e};for(let s in t){const n=e[s];i[s]=N(n)?t[s]:n}return i},be=(e,t,i,s="_prev",n="_next")=>{let r=e._head,o=n;for(i&&(r=e._tail,o=s);r;){const e=r[o];t(r),r=e}},_e=(e,t,i="_prev",s="_next")=>{const n=t[i],r=t[s];n?n[s]=r:e._head=r,r?r[i]=n:e._tail=n,t[i]=null,t[s]=null},we=(e,t,i,s="_prev",n="_next")=>{let r=e._tail;for(;r&&i&&i(r,t);)r=r[s];const o=r?r[n]:e._head;r?r[n]=t:e._head=t,o?o[s]=t:e._tail=t,t[s]=r,t[n]=o},xe=e=>{let t;return(...i)=>{let s,n,r,o;t&&(s=t.currentIteration,n=t.iterationProgress,r=t.reversed,o=t._alternate,t.revert());const a=e(...i);return a&&!j(a)&&a.revert&&(t=a),N(n)||(t.currentIteration=s,t.iterationProgress=(o&&s%2?!r:r)?1-n:n),a||y}};class Te{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._elapsedTime=e,this._startTime=e,this._lastTime=e,this._scheduledTime=0,this._frameDuration=de(p/120,0),this._fps=120,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(e){const t=this._frameDuration,i=+e,s=i<u?u:i,n=de(p/s,0);this._fps=s,this._frameDuration=n,this._scheduledTime+=n-t}get speed(){return this._speed}set speed(e){const t=+e;this._speed=t<u?u:t}requestTick(e){const t=this._scheduledTime,i=this._elapsedTime;if(this._elapsedTime+=e-i,i<t)return 0;const s=this._frameDuration,n=i-t;return this._scheduledTime+=n<s?s:n,1}computeDeltaTime(e){const t=e-this._lastTime;return this.deltaTime=t,this._lastTime=e,t}}const Se=(e,t,i,s,r)=>{const o=e.parent,a=e.duration,c=e.completed,d=e.iterationDuration,h=e.iterationCount,p=e._currentIteration,m=e._loopDelay,g=e._reversed,y=e._alternate,b=e._hasChildren,_=e._delay,w=e._currentTime,x=_+d,T=t-_,S=le(w,-_,a),E=le(T,-_,a),C=T-w,M=E>0,k=E>=a,A=a<=u,I=2===r;let L=0,P=T,z=0;if(h>1){const t=~~(E/(d+(k?0:m)));e._currentIteration=le(t,0,h),k&&e._currentIteration--,L=e._currentIteration%2,P=E%(d+m)||0}const D=g^(y&&L),$=e._ease;let B=k?D?0:a:D?d-P:P;$&&(B=d*$(B/d)||0);const R=(o?o.backwards:T<w)?!D:!!D;if(e._currentTime=T,e._iterationTime=B,e.backwards=R,M&&!e.began?(e.began=!0,i||o&&(R||!o.began)||e.onBegin(e)):T<=0&&(e.began=!1),i||b||!M||e._currentIteration===p||e.onLoop(e),I||1===r&&(t>=_&&t<=x||t<=_&&S>_||t>=x&&S!==a)||B>=x&&S!==a||B<=_&&S>0||t<=S&&S===a&&c||k&&!c&&A){if(M&&(e.computeDeltaTime(S),i||e.onBeforeUpdate(e)),!b){const t=I||(R?-1*C:C)>=O.tickThreshold,r=e._offset+(o?o._offset:0)+_+B;let a,c,d,u,h=e._head,p=0;for(;h;){const e=h._composition,i=h._currentTime,o=h._changeDuration,m=h._absoluteStartTime+h._changeDuration,g=h._nextRep,y=h._prevRep,b=e!==n.none;if((t||(i!==o||r<=m+(g?g._delay:0))&&(0!==i||r>=h._absoluteStartTime))&&(!b||!h._isOverridden&&(!h._isOverlapped||r<=m)&&(!g||g._isOverridden||r<=g._absoluteStartTime)&&(!y||y._isOverridden||r>=y._absoluteStartTime+y._changeDuration+h._delay))){const t=h._currentTime=le(B-h._startTime,0,o),i=h._ease(t/h._updateDuration),r=h._modifier,f=h._valueType,m=h._tweenType,g=0===m,v=0===f,y=v&&g||0===i||1===i?-1:O.precision;let _,w;if(v)_=w=r(de(he(h._fromNumber,h._toNumber,i),y));else if(1===f)w=r(de(he(h._fromNumber,h._toNumber,i),y)),_=`${w}${h._unit}`;else if(2===f){const e=h._fromNumbers,t=h._toNumbers,s=de(le(r(he(e[0],t[0],i)),0,255),0),n=de(le(r(he(e[1],t[1],i)),0,255),0),o=de(le(r(he(e[2],t[2],i)),0,255),0),a=le(r(de(he(e[3],t[3],i),y)),0,1);if(_=`rgba(${s},${n},${o},${a})`,b){const e=h._numbers;e[0]=s,e[1]=n,e[2]=o,e[3]=a}}else if(3===f){_=h._strings[0];for(let e=0,t=h._toNumbers.length;e<t;e++){const t=r(de(he(h._fromNumbers[e],h._toNumbers[e],i),y)),s=h._strings[e+1];_+=`${s?t+s:t}`,b&&(h._numbers[e]=t)}}if(b&&(h._number=w),s||e===n.blend)h._value=_;else{const e=h.property;a=h.target,g?a[e]=_:1===m?a.setAttribute(e,_):(c=a.style,3===m?(a!==d&&(d=a,u=a[l]),u[e]=_,p=1):2===m?c[e]=_:4===m&&c.setProperty(e,_)),M&&(z=1)}}if(p&&h._renderTransforms){let e=f;for(let t in u)e+=`${v[t]}${u[t]}) `;c.transform=e,p=0}h=h._next}!i&&z&&e.onRender(e)}!i&&M&&e.onUpdate(e)}return o&&A?!i&&(o.began&&!R&&T>=a&&!c||R&&T<=u&&c)&&(e.onComplete(e),e.completed=!R):M&&k?h===1/0?e._startTime+=e.duration:e._currentIteration>=h-1&&(e.paused=!0,c||b||(e.completed=!0,i||o&&(R||!o.began)||(e.onComplete(e),e._resolve(e)))):e.completed=!1,z},Ee=(e,t,i,s,n)=>{const r=e._currentIteration;if(Se(e,t,i,s,n),e._hasChildren){const o=e,a=o.backwards,l=s?t:o._iterationTime,c=D();let d=0,h=!0;if(!s&&o._currentIteration!==r){const e=o.iterationDuration;be(o,(t=>{if(a){const s=t.duration,n=t._offset+t._delay;i||!(s<=u)||n&&n+s!==e||t.onComplete(t)}else!t.completed&&!t.backwards&&t._currentTime<t.iterationDuration&&Se(t,e,i,1,2),t.began=!1,t.completed=!1})),i||o.onLoop(o)}be(o,(e=>{const t=de((l-e._offset)*e._speed,12),r=e._fps<o._fps?e.requestTick(c):n;d+=Se(e,t,i,s,r),!e.completed&&h&&(h=!1)}),a),!i&&d&&o.onRender(o),(h||a)&&o._currentTime>=o.duration&&(o.paused=!0,o.completed||(o.completed=!0,i||(o.onComplete(o),o._resolve(o))))}},Ce={animation:null,update:y},Me=t?requestAnimationFrame:setImmediate,ke=t?cancelAnimationFrame:clearImmediate;class Ae extends Te{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=A,this.paused=!0,this.reqId=0}update(){const e=this._currentTime=D();if(this.requestTick(e)){this.computeDeltaTime(e);const t=this._speed,i=this._fps;let s=this._head;for(;s;){const n=s._next;s.paused?(_e(this,s),this._hasChildren=!!this._tail,s._running=!1,s.completed&&!s._cancelled&&s.cancel()):Ee(s,(e-s._startTime)*s._speed*t,0,0,s._fps<i?s.requestTick(e):1),s=n}Ce.update()}}wake(){return this.useDefaultMainLoop&&!this.reqId&&(this.requestTick(D()),this.reqId=Me(Oe)),this}pause(){if(this.reqId)return this.paused=!0,Le()}resume(){if(this.paused)return this.paused=!1,be(this,(e=>e.resetTime())),this.wake()}get speed(){return this._speed*(1===O.timeScale?1:p)}set speed(e){this._speed=e*O.timeScale,be(this,(e=>e.speed=e._speed))}get timeUnit(){return 1===O.timeScale?"ms":"s"}set timeUnit(e){const t="s"===e,i=t?.001:1;if(O.timeScale!==i){O.timeScale=i,O.tickThreshold=200*i;const e=t?.001:p;this.defaults.duration*=e,this._speed*=e}}get precision(){return O.precision}set precision(e){O.precision=e}}const Ie=(()=>{const e=new Ae(D());return t&&(L.engine=e,s.addEventListener("visibilitychange",(()=>{e.pauseOnDocumentHidden&&(s.hidden?e.pause():e.resume())}))),e})(),Oe=()=>{Ie._head?(Ie.reqId=Me(Oe),Ie.update()):Ie.reqId=0},Le=()=>(ke(Ie.reqId),Ie.reqId=0,Ie);function Pe(e){const t=F(e)?I.root.querySelectorAll(e):e;if(t instanceof NodeList||t instanceof HTMLCollection)return t}function ze(e){if(H(e))return[];if(!t)return $(e)&&e.flat(1/0)||[e];if($(e)){const t=e.flat(1/0),i=[];for(let e=0,s=t.length;e<s;e++){const s=t[e];if(!H(s)){const e=Pe(s);if(e)for(let t=0,s=e.length;t<s;t++){const s=e[t];if(!H(s)){let e=!1;for(let t=0,n=i.length;t<n;t++)if(i[t]===s){e=!0;break}e||i.push(s)}}else{let e=!1;for(let t=0,n=i.length;t<n;t++)if(i[t]===s){e=!0;break}e||i.push(s)}}}return i}const i=Pe(e);return i?Array.from(i):[e]}function De(e){const t=ze(e),i=t.length;if(i)for(let e=0;e<i;e++){const i=t[e];if(!i[r]){i[r]=!0;const e=W(i);(i.nodeType||e)&&(i[o]=!0,i[a]=e,i[l]={})}}return t}const $e=e=>{const t=ze(e)[0];if(t&&W(t))return t},Be=(e,t,i=0)=>e.getPointAtLength(t+i>=1?t+i:0),Re=(e,t)=>i=>{const s=+e.getTotalLength(),n=i[a],r=e.getCTM();return{from:0,to:s,modifier:i=>{if("a"===t){const t=Be(e,i,-1),s=Be(e,i,1);return 180*re(s.y-t.y,s.x-t.x)/oe}{const s=Be(e,i,0);return"x"===t?n||!r?s.x:s.x*r.a+s.y*r.c+r.e:n||!r?s.y:s.x*r.b+s.y*r.d+r.f}}}},Fe=["opacity","rotate","overflow","color"],je={morphTo:(e,t=.33)=>i=>{const s=$e(e);if(!s)return;const n="path"===i.tagName,r=n?" ":",",o=i[c];o&&i.setAttribute(n?"d":"points",o);let a="",l="";if(t){const e=i.getTotalLength(),o=s.getTotalLength(),c=Math.max(Math.ceil(e*t),Math.ceil(o*t));for(let t=0;t<c;t++){const d=t/(c-1),u=i.getPointAtLength(e*d),h=s.getPointAtLength(o*d),p=n?0===t?"M":"L":"";a+=p+de(u.x,3)+r+u.y+" ",l+=p+de(h.x,3)+r+h.y+" "}}else a=i.getAttribute(n?"d":"points"),l=s.getAttribute(n?"d":"points");return i[c]=l,[a,l]},createMotionPath:e=>{const t=$e(e);if(t)return{translateX:Re(t,"x"),translateY:Re(t,"y"),rotate:Re(t,"a")}},createDrawable:(e,t=0,i=0)=>ze(e).map((e=>((e,t,i)=>{const s=getComputedStyle(e),n=s.strokeLinecap,r="non-scaling-stroke"===s.vectorEffect?e:null;let o=n;const a=new Proxy(e,{get(e,t){const i=e[t];return t===d?e:"setAttribute"===t?(...t)=>{if("draw"===t[0]){const i=t[1].split(" "),s=+i[0],a=+i[1],l=(e=>{let t=1;if(e&&e.getCTM){const i=e.getCTM();i&&(t=(Q(i.a*i.a+i.b*i.b)+Q(i.c*i.c+i.d*i.d))/2)}return t})(r),c=-1e3*s*l,d=1e3*a*l+c,u=1e3*l+(0===s&&1===a||1===s&&0===a?0:10*l)-d;if("butt"!==n){const t=s===a?"butt":n;o!==t&&(e.style.strokeLinecap=`${t}`,o=t)}e.setAttribute("stroke-dashoffset",`${c}`),e.setAttribute("stroke-dasharray",`${d} ${u}`)}return Reflect.apply(i,e,t)}:j(i)?(...t)=>Reflect.apply(i,e,t):i}});return"1000"!==e.getAttribute("pathLength")&&(e.setAttribute("pathLength","1000"),a.setAttribute("draw",`${t} ${i}`)),a})(e,t,i)))},Ne=(e,t,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e),He=(e,t)=>N(e)?t:e,We=(e,t,i,s,n)=>{if(j(e)){const r=()=>{const n=e(t,i,s);return isNaN(+n)?n||0:+n};return n&&(n.func=r),r()}return e},qe=(e,t)=>e[o]?e[a]&&((e,t)=>{if(Fe.includes(t))return!1;if(e.getAttribute(t)||t in e){if("scale"===t){const t=e.parentNode;return t&&"filter"===t.tagName}return!0}})(e,t)?1:g.includes(t)||m.get(t)?3:z(t,"--")?4:t in e.style?2:t in e?0:1:0,Ye=(e,t,i)=>{const s=e.style[t];s&&i&&(i[t]=s);const n=s||getComputedStyle(e[d]||e).getPropertyValue(t);return"auto"===n?"0":n},Xe=(e,t,i,s)=>{const n=N(i)?qe(e,t):i;return 0===n?e[t]||0:1===n?e.getAttribute(t):3===n?((e,t,i)=>{const s=e.style.transform;let n;if(s){const r=e[l];let o;for(;o=M.exec(s);){const e=o[1],s=o[2].slice(1,-1);r[e]=s,e===t&&(n=s,i&&(i[t]=s))}}return s&&!N(n)?n:z(t,"scale")?"1":z(t,"rotate")||z(t,"skew")?"0deg":"0px"})(e,t,s):4===n?Ye(e,t,s).trimStart():Ye(e,t,s)},Ve=(e,t,i)=>"-"===i?e-t:"+"===i?e+t:e*t,Ge=(e,t)=>{if(t.t=0,t.n=0,t.u=null,t.o=null,t.d=null,t.s=null,!e)return t;const i=+e;if(isNaN(i)){let i=e;"="===i[1]&&(t.o=i[0],i=i.slice(2));const r=!i.includes(" ")&&E.exec(i);if(r)return t.t=1,t.n=+r[1],t.u=r[2],t;if(t.o)return t.n=+i,t;if(q(n=i)||Y(n)||X(n))return t.t=2,t.d=Y(s=i)?(e=>{const t=_.exec(e)||w.exec(e),i=N(t[4])?1:+t[4];return[+t[1],+t[2],+t[3],i]})(s):q(s)?(e=>{const t=e.length,i=4===t||5===t;return[+("0x"+e[1]+e[i?1:2]),+("0x"+e[i?2:3]+e[i?2:4]),+("0x"+e[i?3:5]+e[i?3:6]),5===t||9===t?+(+("0x"+e[i?4:7]+e[i?4:8])/255).toFixed(3):1]})(s):X(s)?(e=>{const t=x.exec(e)||T.exec(e),i=+t[1]/360,s=+t[2]/100,n=+t[3]/100,r=N(t[4])?1:+t[4];let o,a,l;if(0===s)o=a=l=n;else{const e=n<.5?n*(1+s):n+s-n*s,t=2*n-e;o=de(255*Ne(t,e,i+1/3),0),a=de(255*Ne(t,e,i),0),l=de(255*Ne(t,e,i-1/3),0)}return[o,a,l,r]})(s):[0,0,0,1],t;{const e=i.match(S);return t.t=3,t.d=e?e.map(Number):[],t.s=i.split(S)||[],t}}var s,n;return t.n=i,t},Ue=(e,t)=>(t.t=e._valueType,t.n=e._toNumber,t.u=e._unit,t.o=null,t.d=ve(e._toNumbers),t.s=ve(e._strings),t),Qe={t:0,n:0,u:null,o:null,d:null,s:null},Ze={_rep:new WeakMap,_add:new Map},Ke=(e,t,i="_rep")=>{const s=Ze[i];let n=s.get(e);return n||(n={},s.set(e,n)),n[t]?n[t]:n[t]={_head:null,_tail:null}},Je=(e,t)=>e._isOverridden||e._absoluteStartTime>t._absoluteStartTime,et=e=>{e._isOverlapped=1,e._isOverridden=1,e._changeDuration=u,e._currentTime=u},tt=(e,t)=>{const i=e._composition;if(i===n.replace){const i=e._absoluteStartTime;we(t,e,Je,"_prevRep","_nextRep");const s=e._prevRep;if(s){const t=s.parent,n=s._absoluteStartTime+s._changeDuration;if(e.parent.id!==t.id&&t.iterationCount>1&&n+(t.duration-t.iterationDuration)>i){et(s);let e=s._prevRep;for(;e&&e.parent.id===t.id;)et(e),e=e._prevRep}const r=i-e._delay;if(n>r){const e=s._startTime,t=n-(e+s._updateDuration),i=de(r-t-e,12);s._changeDuration=i,s._currentTime=i,s._isOverlapped=1,i<u&&et(s)}let o=!0;if(be(t,(e=>{e._isOverlapped||(o=!1)})),o){const e=t.parent;if(e){let i=!0;be(e,(e=>{e!==t&&be(e,(e=>{e._isOverlapped||(i=!1)}))})),i&&e.cancel()}else t.cancel()}}}else if(i===n.blend){const t=Ke(e.target,e.property,"_add"),i=(e=>{let t=Ce.animation;return t||(t={duration:u,computeDeltaTime:y,_offset:0,_delay:0,_head:null,_tail:null},Ce.animation=t,Ce.update=()=>{e.forEach((e=>{for(let t in e){const i=e[t],s=i._head;if(s){const e=s._valueType,t=3===e||2===e?ve(s._fromNumbers):null;let n=s._fromNumber,r=i._tail;for(;r&&r!==s;){if(t)for(let e=0,i=r._numbers.length;e<i;e++)t[e]+=r._numbers[e];else n+=r._number;r=r._prevAdd}s._toNumber=n,s._toNumbers=t}}})),Se(t,1,1,0,2)}),t})(Ze._add);let s=t._head;s||(s={...e},s._composition=n.replace,s._updateDuration=u,s._startTime=0,s._numbers=ve(e._fromNumbers),s._number=0,s._next=null,s._prev=null,we(t,s),we(i,s));const r=e._toNumber;if(e._fromNumber=s._fromNumber-r,e._toNumber=0,e._numbers=ve(e._fromNumbers),e._number=0,s._fromNumber=r,e._toNumbers){const t=ve(e._toNumbers);t&&t.forEach(((t,i)=>{e._fromNumbers[i]=s._fromNumbers[i]-t,e._toNumbers[i]=0})),s._fromNumbers=t}we(t,e,null,"_prevAdd","_nextAdd")}return e},it=e=>{const t=e._composition;if(t!==n.none){const i=e.target,s=e.property,r=Ze._rep.get(i)[s];if(_e(r,e,"_prevRep","_nextRep"),t===n.blend){const t=Ze._add,n=t.get(i);if(!n)return;const r=n[s],o=Ce.animation;_e(r,e,"_prevAdd","_nextAdd");const a=r._head;if(a&&a===r._tail){_e(r,a,"_prevAdd","_nextAdd"),_e(o,a);let e=!0;for(let t in n)if(n[t]._head){e=!1;break}e&&t.delete(i)}}}return e},st=e=>(e.paused=!0,e.began=!1,e.completed=!1,e),nt=e=>e._cancelled?(e._hasChildren?be(e,nt):be(e,(e=>{e._composition!==n.none&&tt(e,Ke(e.target,e.property))})),e._cancelled=0,e):e;let rt=0;class ot extends Te{constructor(e={},t=null,i=0){super(0);const{id:s,delay:n,duration:r,reversed:o,alternate:a,loop:l,loopDelay:c,autoplay:d,frameRate:h,playbackRate:p,onComplete:f,onLoop:m,onPause:g,onBegin:v,onBeforeUpdate:b,onUpdate:_}=e;I.current&&I.current.register(this);const w=t?0:Ie._elapsedTime,x=t?t.defaults:O.defaults,T=j(n)||N(n)?x.delay:+n,S=j(r)||N(r)?1/0:+r,E=He(l,x.loop),C=He(c,x.loopDelay),M=!0===E||E===1/0||E<0?1/0:E+1;let k=0;t?k=i:(Ie.reqId||Ie.requestTick(D()),k=(Ie._elapsedTime-Ie._startTime)*O.timeScale),this.id=N(s)?++rt:s,this.parent=t,this.duration=me((S+C)*M-C)||u,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=v||x.onBegin,this.onBeforeUpdate=b||x.onBeforeUpdate,this.onUpdate=_||x.onUpdate,this.onLoop=m||x.onLoop,this.onPause=g||x.onPause,this.onComplete=f||x.onComplete,this.iterationDuration=S,this.iterationCount=M,this._autoplay=!t&&He(d,x.autoplay),this._offset=k,this._delay=T,this._loopDelay=C,this._iterationTime=0,this._currentIteration=0,this._resolve=y,this._running=!1,this._reversed=+He(o,x.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=He(a,x.alternate),this._prev=null,this._next=null,this._elapsedTime=w,this._startTime=w,this._lastTime=w,this._fps=He(h,x.frameRate),this._speed=He(p,x.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(1).play()}get currentTime(){return le(de(this._currentTime,O.precision),-this._delay,this.duration)}set currentTime(e){const t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return de(this._iterationTime,O.precision)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return le(de(this._currentTime/this.duration,10),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return le(de(this._iterationTime/this.iterationDuration,10),0,1)}set iterationProgress(e){const t=this.iterationDuration;this.currentTime=t*this._currentIteration+t*e}get currentIteration(){return this._currentIteration}set currentIteration(e){this.currentTime=this.iterationDuration*le(+e,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(e){e?this.reverse():this.play()}get speed(){return super.speed}set speed(e){super.speed=e,this.resetTime()}reset(e=0){return nt(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,Ee(this,0,1,e,2),st(this),this._hasChildren&&be(this,st),this}init(e=0){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&Ee(this,this.duration,1,e,2),this.reset(e);const t=this._autoplay;return!0===t?this.resume():t&&!N(t.linked)&&t.link(this),this}resetTime(){const e=1/(this._speed*Ie._speed);return this._startTime=D()-(this._currentTime+this._delay)*e,this}pause(){return this.paused||(this.paused=!0,this.onPause(this)),this}resume(){return this.paused?(this.paused=!1,this.duration<=u&&!this._hasChildren?Ee(this,u,0,0,2):(this._running||(we(Ie,this),Ie._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,Ie.wake()),this):this}restart(){return this.reset(0).resume()}seek(e,t=0,i=0){nt(this),this.completed=!1;const s=this.paused;return this.paused=!0,Ee(this,e+this._delay,~~t,~~i,1),s?this:this.resume()}alternate(){const e=this._reversed,t=this.iterationCount,i=this.iterationDuration,s=t===1/0?ie(h/i):t;return this._reversed=+(!this._alternate||s%2?!e:e),t===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(i*s-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?be(this,(e=>e.cancel()),!0):be(this,it),this._cancelled=1,this.pause()}stretch(e){const t=this.duration,i=ge(e);if(t===i)return this;const s=e/t,n=e<=u;return this.duration=n?u:i,this.iterationDuration=n?u:ge(this.iterationDuration*s),this._offset*=s,this._delay*=s,this._loopDelay*=s,this}revert(){Ee(this,0,1,0,1);const e=this._autoplay;return e&&e.linked&&e.linked===this&&e.revert(),this.cancel()}complete(){return this.seek(this.duration).cancel()}then(e=y){const t=this.then,i=()=>{this.then=null,e(this),this.then=t,this._resolve=y};return new Promise((e=>(this._resolve=()=>e(i()),this.completed&&this._resolve(),this)))}}const at=e=>e,lt=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e,ct=(e=.5,t=0,i=.5,s=1)=>e===t&&i===s?at:n=>0===n||1===n?n:lt(((e,t,i)=>{let s,n,r=0,o=1,a=0;do{n=r+(o-r)/2,s=lt(n,t,i)-e,s>0?o=n:r=n}while(J(s)>1e-7&&++a<100);return n})(n,e,i),t,s),dt=(e=10,t)=>{const i=t?te:ie;return t=>i(le(t,0,1)*e)*(1/e)},ut=(...e)=>{const t=e.length;if(!t)return at;const i=t-1,s=e[0],n=e[i],r=[0],o=[G(s)];for(let t=1;t<i;t++){const s=e[t],n=F(s)?s.trim().split(" "):[s],a=n[0],l=n[1];r.push(N(l)?t/i:G(l)/100),o.push(G(a))}return o.push(G(n)),r.push(1),function(e){for(let t=1,i=r.length;t<i;t++){const i=r[t];if(e<=i){const s=r[t-1],n=o[t-1];return n+(o[t]-n)*(e-s)/(i-s)}}return o[o.length-1]}},ht=(e=10,t=1)=>{const i=[0],s=e-1;for(let e=1;e<s;e++){const n=i[e-1],r=e/s,o=r*(1-t)+(r+((e+1)/s-r)*Math.random())*t;i.push(le(o,n,1))}return i.push(1),ut(...i)},pt=oe/2,ft=2*oe,mt=(e=1.68)=>t=>U(t,+e),gt={[f]:mt,Quad:mt(2),Cubic:mt(3),Quart:mt(4),Quint:mt(5),Sine:e=>1-K(e*pt),Circ:e=>1-Q(1-e*e),Expo:e=>e?U(2,10*e-10):0,Bounce:e=>{let t,i=4;for(;e<((t=U(2,--i))-1)/11;);return 1/U(4,3-i)-7.5625*U((3*t-2)/22-e,2)},Back:(e=1.70158)=>t=>(+e+1)*t*t*t-+e*t*t,Elastic:(e=1,t=.3)=>{const i=le(+e,1,10),s=le(+t,u,2),n=s/ft*se(1/i),r=ft/s;return e=>0===e||1===e?e:-i*U(2,-10*(1-e))*Z((1-e-n)*r)}},vt={in:e=>t=>e(t),out:e=>t=>1-e(1-t),inOut:e=>t=>t<.5?e(2*t)/2:1-e(-2*t+2)/2,outIn:e=>t=>t<.5?(1-e(1-2*t))/2:(e(2*t-1)+1)/2},yt=(e,t,i)=>{if(i[e])return i[e];if(e.indexOf("(")<=-1){const s=vt[e]||e.includes("Back")||e.includes("Elastic")?t[e]():t[e];return s?i[e]=s:at}{const s=e.slice(0,-1).split("("),n=t[s[0]];return n?i[e]=n(...s[1].split(",")):at}},bt=(()=>{const e={linear:ut,irregular:ht,steps:dt,cubicBezier:ct};for(let t in vt)for(let i in gt){const s=gt[i],n=vt[t];e[t+i]=i===f||"Back"===i||"Elastic"===i?(e,t)=>n(s(e,t)):n(s)}return e})(),_t={linear:at},wt=e=>j(e)?e:F(e)?yt(e,bt,_t):at,xt={},Tt=(e,t,i)=>{if(3===i)return m.get(e)||e;if(2===i||1===i&&W(t)&&e in t.style){const t=xt[e];if(t)return t;{const t=e?P(e):e;return xt[e]=t,t}}return e},St={deg:1,rad:180/oe,turn:360},Et={},Ct=(e,t,i,n=!1)=>{const r=t.u,o=t.n;if(1===t.t&&r===i)return t;const a=o+r+i,l=Et[a];if(N(l)||n){let n;if(r in St)n=o*St[r]/St[i];else{const t=100,a=e.cloneNode(),l=e.parentNode,c=l&&l!==s?l:s.body;c.appendChild(a);const d=a.style;d.width=t+r;const u=a.offsetWidth||t;d.width=t+i;const h=u/(a.offsetWidth||t);c.removeChild(a),n=h*o}t.n=n,Et[a]=n}else t.n=l;return t.t,t.u=i,t},Mt=e=>{if(e._hasChildren)be(e,Mt,!0);else{const t=e;t.pause(),be(t,(e=>{const i=e.property,s=e.target;if(s[o]){const n=s.style,r=t._inlineStyles[i];if(3===e._tweenType){const t=s[l];if(N(r)||r===f?delete t[i]:t[i]=r,e._renderTransforms)if(Object.keys(t).length){let e=f;for(let i in t)e+=v[i]+t[i]+") ";n.transform=e}else n.removeProperty("transform")}else N(r)||r===f?n.removeProperty(i):n[i]=r;t._tail===e&&t.targets.forEach((e=>{e.getAttribute&&e.getAttribute("style")===f&&e.removeAttribute("style")}))}}))}return e},kt={t:0,n:0,u:null,o:null,d:null,s:null},At={t:0,n:0,u:null,o:null,d:null,s:null},It={func:null},Ot=[null],Lt=[null,null],Pt={to:null};let zt,Dt,$t=0;class Bt extends ot{constructor(e,t,i,s,r=!1,o=0,a=0){super(t,i,s);const l=De(e),c=l.length,d=t.keyframes,h=d?ye(((e,t)=>{const i={};if($(e)){const t=[].concat(...e.map((e=>Object.keys(e)))).filter(V);for(let s=0,n=t.length;s<n;s++){const n=t[s],r=e.map((e=>{const t={};for(let i in e){const s=e[i];V(i)?i===n&&(t.to=s):t[i]=s}return t}));i[n]=r}}else{const s=He(t.duration,O.defaults.duration),n=Object.keys(e).map((t=>({o:parseFloat(t)/100,p:e[t]}))).sort(((e,t)=>e.o-t.o));n.forEach((e=>{const t=e.o,n=e.p;for(let e in n)if(V(e)){let r=i[e];r||(r=i[e]=[]);const o=t*s;let a=r.length,l=r[a-1];const c={to:n[e]};let d=0;for(let e=0;e<a;e++)d+=r[e].duration;1===a&&(c.from=l.to),n.ease&&(c.ease=n.ease),c.duration=o-(a?d:0),r.push(c)}return e}));for(let e in i){const t=i[e];let s;for(let e=0,i=t.length;e<i;e++){const i=t[e],n=i.ease;i.ease=s||void 0,s=n}t[0].duration||t.shift()}}return i})(d,t),t):t,{delay:f,duration:m,ease:g,playbackEase:v,modifier:y,composition:b,onRender:_}=h,w=i?i.defaults:O.defaults,x=He(v,w.playbackEase),T=x?wt(x):null,S=!N(g)&&!N(g.ease),E=S?g.ease:He(g,T?"linear":w.ease),C=S?g.duration:He(m,w.duration),M=He(f,w.delay),k=y||w.modifier,A=N(b)&&c>=p?n.none:N(b)?w.composition:b,I={},L=this._offset+(i?i._offset:0);let P=NaN,z=NaN,D=0,F=0;for(let e=0;e<c;e++){const t=l[e],s=o||e,d=a||c;let p=NaN,f=NaN;for(let e in h)if(V(e)){const o=qe(t,e),a=Tt(e,t,o);let l=h[e];const c=$(l);if(r&&!c&&(Lt[0]=l,Lt[1]=l,l=Lt),c){const e=l.length,t=!B(l[0]);2===e&&t?(Pt.to=l,Ot[0]=Pt,zt=Ot):e>2&&t?(zt=[],l.forEach(((e,t)=>{t?1===t?(Lt[1]=e,zt.push(Lt)):zt.push(e):Lt[0]=e}))):zt=l}else Ot[0]=l,zt=Ot;let m=null,g=null,v=NaN,y=0,b=0;for(let e=zt.length;b<e;b++){const r=zt[b];B(r)?Dt=r:(Pt.to=r,Dt=Pt),It.func=null;const l=We(Dt.to,t,s,d,It);let c;B(l)&&!N(l.to)?(Dt=l,c=l.to):c=l;const h=We(Dt.from,t,s,d),p=Dt.ease,f=!N(p)&&!N(p.ease),_=f?p.ease:p||E,w=f?p.duration:We(He(Dt.duration,e>1?We(C,t,s,d)/e:C),t,s,d),x=We(He(Dt.delay,b?0:M),t,s,d),T=We(He(Dt.composition,A),t,s,d),S=R(T)?T:n[T],O=Dt.modifier||k,P=!N(h),z=!N(c),j=$(c),H=j||P&&z,W=g?y+x:x,q=de(L+W,12);F||!P&&!j||(F=1);let Y=g;if(S!==n.none){m||(m=Ke(t,a));let e=m._head;for(;e&&!e._isOverridden&&e._absoluteStartTime<=q;)if(Y=e,e=e._nextRep,e&&e._absoluteStartTime>=q)for(;e;)et(e),e=e._nextRep}if(H?(Ge(j?We(c[0],t,s,d):h,kt),Ge(j?We(c[1],t,s,d,It):c,At),0===kt.t&&(Y?1===Y._valueType&&(kt.t=1,kt.u=Y._unit):(Ge(Xe(t,a,o,I),Qe),1===Qe.t&&(kt.t=1,kt.u=Qe.u)))):(z?Ge(c,At):g?Ue(g,At):Ge(i&&Y&&Y.parent.parent===i?Y._value:Xe(t,a,o,I),At),P?Ge(h,kt):g?Ue(g,kt):Ge(i&&Y&&Y.parent.parent===i?Y._value:Xe(t,a,o,I),kt)),kt.o&&(kt.n=Ve(Y?Y._toNumber:Ge(Xe(t,a,o,I),Qe).n,kt.n,kt.o)),At.o&&(At.n=Ve(kt.n,At.n,At.o)),kt.t!==At.t)if(3===kt.t||3===At.t){const e=3===kt.t?kt:At,t=3===kt.t?At:kt;t.t=3,t.s=ve(e.s),t.d=e.d.map((()=>t.n))}else if(1===kt.t||1===At.t){const e=1===kt.t?kt:At,t=1===kt.t?At:kt;t.t=1,t.u=e.u}else if(2===kt.t||2===At.t){const e=2===kt.t?kt:At,t=2===kt.t?At:kt;t.t=2,t.s=e.s,t.d=[0,0,0,1]}if(kt.u!==At.u){let e=At.u?kt:At;e=Ct(t,e,At.u?At.u:kt.u,!1)}if(At.d&&kt.d&&At.d.length!==kt.d.length){const e=kt.d.length>At.d.length?kt:At,t=e===kt?At:kt;t.d=e.d.map(((e,i)=>N(t.d[i])?0:t.d[i])),t.s=ve(e.s)}const X=de(+w||u,12),V={parent:this,id:$t++,property:a,target:t,_value:null,_func:It.func,_ease:wt(_),_fromNumbers:ve(kt.d),_toNumbers:ve(At.d),_strings:ve(At.s),_fromNumber:kt.n,_toNumber:At.n,_numbers:ve(kt.d),_number:kt.n,_unit:At.u,_modifier:O,_currentTime:0,_startTime:W,_delay:+x,_updateDuration:X,_changeDuration:X,_absoluteStartTime:q,_tweenType:o,_valueType:At.t,_composition:S,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};S!==n.none&&tt(V,m),isNaN(v)&&(v=V._startTime),y=de(W+X,12),g=V,D++,we(this,V)}(isNaN(z)||v<z)&&(z=v),(isNaN(P)||y>P)&&(P=y),3===o&&(p=D-b,f=D)}if(!isNaN(p)){let e=0;be(this,(t=>{e>=p&&e<f&&(t._renderTransforms=1,t._composition===n.blend&&be(Ce.animation,(e=>{e.id===t.id&&(e._renderTransforms=1)}))),e++}))}}c||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."),z?(be(this,(e=>{e._startTime-e._delay||(e._delay-=z),e._startTime-=z})),P-=z):z=0,P||(P=u,this.iterationCount=0),this.targets=l,this.duration=P===u?u:me((P+this._loopDelay)*this.iterationCount-this._loopDelay)||u,this.onRender=_||w.onRender,this._ease=T,this._delay=z,this.iterationDuration=P,this._inlineStyles=I,!this._autoplay&&F&&this.onRender(this)}stretch(e){const t=this.duration;if(t===ge(e))return this;const i=e/t;return be(this,(e=>{e._updateDuration=ge(e._updateDuration*i),e._changeDuration=ge(e._changeDuration*i),e._currentTime*=i,e._startTime*=i,e._absoluteStartTime*=i})),super.stretch(e)}refresh(){return be(this,(e=>{const t=e._func;if(t){const i=Xe(e.target,e.property,e._tweenType);Ge(i,Qe),Ge(t(),At),e._fromNumbers=ve(Qe.d),e._fromNumber=Qe.n,e._toNumbers=ve(At.d),e._strings=ve(At.s),e._toNumber=At.o?Ve(Qe.n,At.n,At.o):At.n}})),this}revert(){return super.revert(),Mt(this)}then(e){return super.then(e)}}const Rt=(e,t=100)=>{const i=[];for(let s=0;s<=t;s++)i.push(e(s/t));return`linear(${i.join(", ")})`},Ft={in:"ease-in",out:"ease-out",inOut:"ease-in-out"},jt=(()=>{const e={};for(let t in vt)e[t]=e=>vt[t](mt(e));return e})(),Nt=e=>{let t=Ft[e];if(t)return t;if(t="linear",F(e)){if(z(e,"linear")||z(e,"cubic-")||z(e,"steps")||z(e,"ease"))t=e;else if(z(e,"cubicB"))t=P(e);else{const i=yt(e,jt,Ft);j(i)&&(t=i===at?"linear":Rt(i))}Ft[e]=t}else if(j(e)){const i=Rt(e);i&&(t=i)}else e.ease&&(t=Rt(e.ease));return t},Ht=["x","y","z"],Wt=["perspective","width","height","margin","padding","top","right","bottom","left","borderWidth","fontSize","borderRadius",...Ht],qt=[...Ht,...g.filter((e=>["X","Y","Z"].some((t=>e.endsWith(t)))))];let Yt=null;const Xt={_head:null,_tail:null},Vt=(e,t,i)=>{let s=Xt._head;for(;s;){const n=s._next,r=s.$el===e,o=!t||s.property===t,a=!i||s.parent===i;if(r&&o&&a){const e=s.animation;try{e.commitStyles()}catch{}e.cancel(),_e(Xt,s);const t=s.parent;t&&(t._completed++,t.animations.length===t._completed&&(t.completed=!0,t.muteCallbacks||(t.paused=!0,t.onComplete(t),t._resolve(t))))}s=n}},Gt=(e,t,i,s,n)=>{const r=t.animate(s,n),o=n.delay+ +n.duration*n.iterations;r.playbackRate=e._speed,e.paused&&r.pause(),e.duration<o&&(e.duration=o,e.controlAnimation=r),e.animations.push(r),Vt(t,i),we(Xt,{parent:e,animation:r,$el:t,property:i,_next:null,_prev:null});const a=()=>{Vt(t,i,e)};return r.onremove=a,r.onfinish=a,r},Ut=(e,t,i,s,n)=>{let r=We(t,i,s,n);return R(r)?Wt.includes(e)||z(e,"translate")?`${r}px`:z(e,"rotate")||z(e,"skew")?`${r}deg`:`${r}`:r},Qt=(e,t,i,s,n,r)=>{let o="0";const a=N(s)?getComputedStyle(e)[t]:Ut(t,s,e,n,r);return o=N(i)?$(s)?s.map((i=>Ut(t,i,e,n,r))):a:[Ut(t,i,e,n,r),a],o};class Zt{constructor(e,i){I.current&&I.current.register(this),H(Yt)&&(!t||!N(CSS)&&Object.hasOwnProperty.call(CSS,"registerProperty")?(g.forEach((e=>{const t=z(e,"skew"),i=z(e,"scale"),s=z(e,"rotate"),n=z(e,"translate"),r=s||t,o=r?"<angle>":i?"<number>":n?"<length-percentage>":"*";try{CSS.registerProperty({name:"--"+e,syntax:o,inherits:!1,initialValue:n?"0px":r?"0deg":i?"1":"0"})}catch{}})),Yt=!0):Yt=!1);const s=De(e),n=s.length;n||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation.");const r=He(i.ease,Nt(O.defaults.ease)),o=r.ease&&r,a=He(i.autoplay,O.defaults.autoplay),c=!(!a||!a.link)&&a,d=i.alternate&&!0===i.alternate,u=i.reversed&&!0===i.reversed,h=He(i.loop,O.defaults.loop),b=!0===h||h===1/0?1/0:R(h)?h+1:1,_=d?u?"alternate-reverse":"alternate":u?"reverse":"normal",w=Nt(r),x=1===O.timeScale?1:p;this.targets=s,this.animations=[],this.controlAnimation=null,this.onComplete=i.onComplete||y,this.duration=0,this.muteCallbacks=!1,this.completed=!1,this.paused=!a||!1!==c,this.reversed=u,this.autoplay=a,this._speed=He(i.playbackRate,O.defaults.playbackRate),this._resolve=y,this._completed=0,this._inlineStyles=s.map((e=>e.getAttribute("style"))),s.forEach(((e,t)=>{const s=e[l],a=qt.some((e=>i.hasOwnProperty(e))),c=(o?o.duration:We(He(i.duration,O.defaults.duration),e,t,n))*x,d=We(He(i.delay,O.defaults.delay),e,t,n)*x,u=He(i.composition,"replace");for(let o in i){if(!V(o))continue;const l={},h={iterations:b,direction:_,fill:"forwards",easing:w,duration:c,delay:d,composite:u},p=i[o],f=!!a&&(g.includes(o)?o:m.get(o));let v;if(B(p)){const i=p,a=He(i.ease,r),m=a.ease&&a,g=i.to,y=i.from;if(h.duration=(m?m.duration:We(He(i.duration,c),e,t,n))*x,h.delay=We(He(i.delay,d),e,t,n)*x,h.composite=He(i.composition,u),h.easing=Nt(a),v=Qt(e,o,y,g,t,n),f?(l[`--${f}`]=v,s[f]=v):l[o]=Qt(e,o,y,g,t,n),Gt(this,e,o,l,h),!N(y))if(f){const t=`--${f}`;e.style.setProperty(t,l[t][0])}else e.style[o]=l[o][0]}else v=$(p)?p.map((i=>Ut(o,i,e,t,n))):Ut(o,p,e,t,n),f?(l[`--${f}`]=v,s[f]=v):l[o]=v,Gt(this,e,o,l,h)}if(a){let t=f;for(let e in s)t+=`${v[e]}var(--${e})) `;e.style.transform=t}})),c&&this.autoplay.link(this)}forEach(e){const t=F(e)?t=>t[e]():e;return this.animations.forEach(t),this}get speed(){return this._speed}set speed(e){this._speed=+e,this.forEach((t=>t.playbackRate=e))}get currentTime(){const e=this.controlAnimation,t=O.timeScale;return this.completed?this.duration:e?+e.currentTime*(1===t?1:t):0}set currentTime(e){const t=e*(1===O.timeScale?1:p);this.forEach((e=>{t>=this.duration&&e.play(),e.currentTime=t}))}get progress(){return this.currentTime/this.duration}set progress(e){this.forEach((t=>t.currentTime=e*this.duration||0))}resume(){return this.paused?(this.paused=!1,this.forEach("play")):this}pause(){return this.paused?this:(this.paused=!0,this.forEach("pause"))}alternate(){return this.reversed=!this.reversed,this.forEach("reverse"),this.paused&&this.forEach("pause"),this}play(){return this.reversed&&this.alternate(),this.resume()}reverse(){return this.reversed||this.alternate(),this.resume()}seek(e,t=!1){return t&&(this.muteCallbacks=!0),e<this.duration&&(this.completed=!1),this.currentTime=e,this.muteCallbacks=!1,this.paused&&this.pause(),this}restart(){return this.completed=!1,this.seek(0,!0).resume()}commitStyles(){return this.forEach("commitStyles")}complete(){return this.seek(this.duration)}cancel(){return this.forEach("cancel"),this.pause()}revert(){return this.cancel(),this.targets.forEach(((e,t)=>e.setAttribute("style",this._inlineStyles[t]))),this}then(e=y){const t=this.then,i=()=>{this.then=null,e(this),this.then=t,this._resolve=y};return new Promise((e=>(this._resolve=()=>e(i()),this.completed&&this._resolve(),this)))}}const Kt={animate:(e,t)=>new Zt(e,t),convertEase:Rt},Jt=(e=y)=>new ot({duration:1*O.timeScale,onComplete:e},null,0).resume();function ei(e,t,i){const s=De(e);if(!s.length)return;const[n]=s,r=qe(n,t),o=Tt(t,n,r);let a=Xe(n,o);if(N(i))return a;if(Ge(a,Qe),0===Qe.t||1===Qe.t){if(!1===i)return Qe.n;{const e=Ct(n,Qe,i,!1);return`${de(e.n,O.precision)}${e.u}`}}}const ti=(e,t)=>{if(!N(t))return t.duration=u,t.composition=He(t.composition,n.none),new Bt(e,t,null,0,!0).resume()},ii=(e,t,i)=>{let s=!1;return be(t,(n=>{const r=n.target;if(e.includes(r)){const e=n.property,o=n._tweenType,a=Tt(i,r,o);(!a||a&&a===e)&&(n.parent._tail===n&&3===n._tweenType&&n._prev&&3===n._prev._tweenType&&(n._prev._renderTransforms=1),_e(t,n),it(n),s=!0)}}),!0),s},si=(e,t,i)=>{const s=ze(e),n=t||Ie,r=t&&t.controlAnimation&&t;for(let e=0,t=s.length;e<t;e++){const t=s[e];Vt(t,i,r)}let o;if(n._hasChildren){let t=0;be(n,(r=>{if(!r._hasChildren)if(o=ii(s,r,i),o&&!r._head)r.cancel(),_e(n,r);else{const e=r._offset+r._delay+r.duration;e>t&&(t=e)}r._head?si(e,r,i):r._hasChildren=!1}),!0),N(n.iterationDuration)||(n.iterationDuration=t)}else o=ii(s,n,i);return o&&!n._head&&(n._hasChildren=!1,n.cancel&&n.cancel()),s},ni=(e,t,i,s,n)=>s+(e-t)/(i-t)*(n-s),ri=(e,t,i,s)=>{let n=p/O.defaults.frameRate;if(!1!==s){const e=s||Ie._hasChildren&&Ie;e&&e.deltaTime&&(n=e.deltaTime)}const r=1-Math.exp(-i*n*.1);return i?1===i?t:(1-r)*e+r*t:e},oi=e=>(...t)=>{const i=e(...t);return new Proxy(y,{apply:(e,t,[s])=>i(s),get:(e,t)=>oi(((...e)=>{const s=li[t](...e);return e=>s(i(e))}))})},ai=(e,t=0)=>(...i)=>(i.length<e.length?oi(((e,t=0)=>(...i)=>t?t=>e(...i,t):t=>e(t,...i))(e,t)):e)(...i),li={$:De,get:ei,set:ti,remove:si,cleanInlineStyles:Mt,random:pe,randomPick:e=>e[pe(0,e.length-1)],shuffle:fe,lerp:ri,sync:Jt,keepTime:xe,clamp:ai(le),round:ai(de),snap:ai(ue),wrap:ai(((e,t,i)=>((e-t)%(i-t)+(i-t))%(i-t)+t)),interpolate:ai(he,1),mapRange:ai(ni),roundPad:ai(((e,t)=>(+e).toFixed(t))),padStart:ai(((e,t,i)=>`${e}`.padStart(t,i))),padEnd:ai(((e,t,i)=>`${e}`.padEnd(t,i))),degToRad:ai((e=>e*oe/180)),radToDeg:ai((e=>180*e/oe))},ci=(e,t)=>{let i=e.iterationDuration;if(i===u&&(i=0),N(t))return i;if(R(+t))return+t;const s=t,n=e?e.labels:null,r=!H(n),o=((e,t)=>{if(z(t,"<")){const i="<"===t[1],s=e._tail,n=s?s._offset+s._delay:0;return i?n:n+s.duration}})(e,s),a=!N(o),l=k.exec(s);if(l){const e=l[0],t=s.split(e),c=r&&t[0]?n[t[0]]:i,d=a?o:r?c:i,u=+t[1];return Ve(d,u,e[0])}return a?o:r?N(n[s])?i:n[s]:i};function di(e,t,i,s,n,r){const o=R(e.duration)&&e.duration<=u?i-u:i;Ee(t,o,1,1,1);const a=s?new Bt(s,e,t,o,!1,n,r):new ot(e,t,o);return a.init(1),we(t,a),be(t,(e=>{const i=e._offset+e._delay+e.duration;i>t.iterationDuration&&(t.iterationDuration=i)})),t.duration=function(e){return me((e.iterationDuration+e._loopDelay)*e.iterationCount-e._loopDelay)||u}(t),t}class ui extends ot{constructor(e={}){super(e,null,0),this.duration=0,this.labels={};const t=e.defaults,i=O.defaults;this.defaults=t?ye(t,i):i,this.onRender=e.onRender||i.onRender;const s=He(e.playbackEase,i.playbackEase);this._ease=s?wt(s):null,this.iterationDuration=0}add(e,t,i){const s=B(t),n=B(e);if(s||n){if(this._hasChildren=!0,s){const s=t;if(j(i)){const t=i,n=ze(e),r=this.duration,o=this.iterationDuration,a=s.id;let l=0;const c=n.length;n.forEach((e=>{const i={...s};this.duration=r,this.iterationDuration=o,N(a)||(i.id=a+"-"+l),di(i,this,ci(this,t(e,l,c,this)),e,l,c),l++}))}else di(s,this,ci(this,i),e)}else di(e,this,ci(this,t));return this.init(1)}}sync(e,t){if(N(e)||e&&N(e.pause))return this;e.pause();const i=+(e.effect?e.effect.getTiming().duration:e.duration);return this.add(e,{currentTime:[0,i],duration:i,ease:"linear"},t)}set(e,t,i){return N(t)?this:(t.duration=u,t.composition=n.replace,this.add(e,t,i))}call(e,t){return N(e)||e&&!j(e)?this:this.add({duration:0,onComplete:()=>e(this)},t)}label(e,t){return N(e)||e&&!F(e)||(this.labels[e]=ci(this,t)),this}remove(e,t){return si(e,this,t),this}stretch(e){const t=this.duration;if(t===ge(e))return this;const i=e/t,s=this.labels;be(this,(e=>e.stretch(e.duration*i)));for(let e in s)s[e]*=i;return super.stretch(e)}refresh(){return be(this,(e=>{e.refresh&&e.refresh()})),this}revert(){return super.revert(),be(this,(e=>e.revert),!0),Mt(this)}then(e){return super.then(e)}}class hi{constructor(e,t){I.current&&I.current.register(this);const i=()=>{if(this.callbacks.completed)return;let e=!0;for(let t in this.animations)if(!this.animations[t].paused&&e){e=!1;break}e&&this.callbacks.complete()},s={onBegin:()=>{this.callbacks.completed&&this.callbacks.reset(),this.callbacks.play()},onComplete:i,onPause:i},r={v:1,autoplay:!1},o={};if(this.targets=[],this.animations={},this.callbacks=null,!N(e)&&!N(t)){for(let e in t){const i=t[e];V(e)?o[e]=i:z(e,"on")?r[e]=i:s[e]=i}this.callbacks=new Bt({v:0},r);for(let t in o){const i=o[t],r=B(i);let a={},l="+=0";if(r){const e=i.unit;F(e)&&(l+=e)}else a.duration=i;a[t]=r?ye({to:l},i):l;const c=ye(s,a);c.composition=n.replace,c.autoplay=!1;const d=this.animations[t]=new Bt(e,c,null,0,!1).init();this.targets.length||this.targets.push(...d.targets),this[t]=(e,t,i)=>{const s=d._head;if(N(e)&&s){const e=s._numbers;return e&&e.length?e:s._modifier(s._number)}return be(d,(t=>{if($(e))for(let i=0,s=e.length;i<s;i++)N(t._numbers[i])||(t._fromNumbers[i]=t._modifier(t._numbers[i]),t._toNumbers[i]=e[i]);else t._fromNumber=t._modifier(t._number),t._toNumber=e;N(i)||(t._ease=wt(i)),t._currentTime=0})),N(t)||d.stretch(t),d.reset(1).resume(),this}}}}revert(){for(let e in this.animations)this[e]=y,this.animations[e].revert();return this.animations={},this.targets.length=0,this.callbacks&&this.callbacks.revert(),this}}const pi=10*p;class fi{constructor(e={}){this.timeStep=.02,this.restThreshold=5e-4,this.restDuration=200,this.maxDuration=6e4,this.maxRestSteps=this.restDuration/this.timeStep/p,this.maxIterations=this.maxDuration/this.timeStep/p,this.m=le(He(e.mass,1),0,pi),this.s=le(He(e.stiffness,100),1,pi),this.d=le(He(e.damping,10),.1,pi),this.v=le(He(e.velocity,0),-1e4,pi),this.w0=0,this.zeta=0,this.wd=0,this.b=0,this.solverDuration=0,this.duration=0,this.compute(),this.ease=e=>0===e||1===e?e:this.solve(e*this.solverDuration)}solve(e){const{zeta:t,w0:i,wd:s,b:n}=this;let r=e;return r=t<1?ee(-r*t*i)*(1*K(s*r)+n*Z(s*r)):(1+n*r)*ee(-r*i),1-r}compute(){const{maxRestSteps:e,maxIterations:t,restThreshold:i,timeStep:s,m:n,d:r,s:o,v:a}=this,l=this.w0=le(Q(o/n),u,p),c=this.zeta=r/(2*Q(o*n)),d=this.wd=c<1?l*Q(1-c*c):0;this.b=c<1?(c*l-a)/d:-a+l;let h=0,f=0,m=0;for(;f<e&&m<t;)J(1-this.solve(h))<i?f++:f=0,this.solverDuration=h,h+=s,m++;this.duration=de(this.solverDuration*p,0)*O.timeScale}get mass(){return this.m}set mass(e){this.m=le(He(e,1),0,pi),this.compute()}get stiffness(){return this.s}set stiffness(e){this.s=le(He(e,100),1,pi),this.compute()}get damping(){return this.d}set damping(e){this.d=le(He(e,10),.1,pi),this.compute()}get velocity(){return this.v}set velocity(e){this.v=le(He(e,0),-1e4,pi),this.compute()}}const mi=e=>new fi(e),gi=e=>{e.cancelable&&e.preventDefault()};class vi{constructor(e){this.el=e,this.zIndex=0,this.parentElement=null,this.classList={add:y,remove:y}}get x(){return this.el.x||0}set x(e){this.el.x=e}get y(){return this.el.y||0}set y(e){this.el.y=e}get width(){return this.el.width||0}set width(e){this.el.width=e}get height(){return this.el.height||0}set height(e){this.el.height=e}getBoundingClientRect(){return{top:this.y,right:this.x,bottom:this.y+this.height,left:this.x+this.width}}}class yi{constructor(e){this.$el=e,this.inlineTransforms=[],this.point=new DOMPoint,this.inversedMatrix=this.getMatrix().inverse()}normalizePoint(e,t){return this.point.x=e,this.point.y=t,this.point.matrixTransform(this.inversedMatrix)}traverseUp(e){let t=this.$el.parentElement,i=0;for(;t&&t!==s;)e(t,i),t=t.parentElement,i++}getMatrix(){const e=new DOMMatrix;return this.traverseUp((t=>{const i=getComputedStyle(t).transform;if(i){const t=new DOMMatrix(i);e.preMultiplySelf(t)}})),e}remove(){this.traverseUp(((e,t)=>{this.inlineTransforms[t]=e.style.transform,e.style.transform="none"}))}revert(){this.traverseUp(((e,t)=>{const i=this.inlineTransforms[t];""===i?e.style.removeProperty("transform"):e.style.transform=i}))}}const bi=(e,t)=>e&&j(e)?e(t):e;let _i=0;class wi{constructor(e,t={}){if(!e)return;I.current&&I.current.register(this);const n=t.x,r=t.y,o=t.trigger,a=t.modifier,l=t.releaseEase,c=l&&wt(l),d=!N(l)&&!N(l.ease),u=B(n)&&!N(n.mapTo)?n.mapTo:"translateX",p=B(r)&&!N(r.mapTo)?r.mapTo:"translateY",f=bi(t.container,this);this.containerArray=$(f)?f:null,this.$container=f&&!this.containerArray?ze(f)[0]:s.body,this.useWin=this.$container===s.body,this.$scrollContainer=this.useWin?i:this.$container,this.$target=B(e)?new vi(e):ze(e)[0],this.$trigger=ze(o||e)[0],this.fixed="fixed"===ei(this.$target,"position"),this.isFinePointer=!0,this.containerPadding=[0,0,0,0],this.containerFriction=0,this.releaseContainerFriction=0,this.snapX=0,this.snapY=0,this.scrollSpeed=0,this.scrollThreshold=0,this.dragSpeed=0,this.maxVelocity=0,this.minVelocity=0,this.velocityMultiplier=0,this.cursor=!1,this.releaseXSpring=d?l:mi({mass:He(t.releaseMass,1),stiffness:He(t.releaseStiffness,80),damping:He(t.releaseDamping,20)}),this.releaseYSpring=d?l:mi({mass:He(t.releaseMass,1),stiffness:He(t.releaseStiffness,80),damping:He(t.releaseDamping,20)}),this.releaseEase=c||bt.outQuint,this.hasReleaseSpring=d,this.onGrab=t.onGrab||y,this.onDrag=t.onDrag||y,this.onRelease=t.onRelease||y,this.onUpdate=t.onUpdate||y,this.onSettle=t.onSettle||y,this.onSnap=t.onSnap||y,this.onResize=t.onResize||y,this.onAfterResize=t.onAfterResize||y,this.disabled=[0,0];const m={};if(a&&(m.modifier=a),N(n)||!0===n)m[u]=0;else if(B(n)){const e=n,t={};e.modifier&&(t.modifier=e.modifier),e.composition&&(t.composition=e.composition),m[u]=t}else!1===n&&(m[u]=0,this.disabled[0]=1);if(N(r)||!0===r)m[p]=0;else if(B(r)){const e=r,t={};e.modifier&&(t.modifier=e.modifier),e.composition&&(t.composition=e.composition),m[p]=t}else!1===r&&(m[p]=0,this.disabled[1]=1);this.animate=new hi(this.$target,m),this.xProp=u,this.yProp=p,this.destX=0,this.destY=0,this.deltaX=0,this.deltaY=0,this.scroll={x:0,y:0},this.coords=[this.x,this.y,0,0],this.snapped=[0,0],this.pointer=[0,0,0,0,0,0,0,0],this.scrollView=[0,0],this.dragArea=[0,0,0,0],this.containerBounds=[-1e12,h,h,-1e12],this.scrollBounds=[0,0,0,0],this.targetBounds=[0,0,0,0],this.window=[0,0],this.velocityStack=[0,0,0],this.velocityStackIndex=0,this.velocityTime=D(),this.velocity=0,this.angle=0,this.cursorStyles=null,this.triggerStyles=null,this.bodyStyles=null,this.targetStyles=null,this.touchActionStyles=null,this.transforms=new yi(this.$target),this.overshootCoords={x:0,y:0},this.overshootTicker=new ot({autoplay:!1,onUpdate:()=>{this.updated=!0,this.manual=!0,this.disabled[0]||this.animate[this.xProp](this.overshootCoords.x,1),this.disabled[1]||this.animate[this.yProp](this.overshootCoords.y,1)},onComplete:()=>{this.manual=!1,this.disabled[0]||this.animate[this.xProp](this.overshootCoords.x,0),this.disabled[1]||this.animate[this.yProp](this.overshootCoords.y,0)}},null,0).init(),this.updateTicker=new ot({autoplay:!1,onUpdate:()=>this.update()},null,0).init(),this.contained=!N(f),this.manual=!1,this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.enabled=!1,this.initialized=!1,this.activeProp=this.disabled[1]?u:p,this.animate.callbacks.onRender=()=>{const e=this.updated,t=!(this.grabbed&&e)&&this.released,i=this.x,s=this.y,n=i-this.coords[2],r=s-this.coords[3];this.deltaX=n,this.deltaY=r,this.coords[2]=i,this.coords[3]=s,e&&(n||r)&&this.onUpdate(this),t?(this.computeVelocity(n,r),this.angle=re(r,n)):this.updated=!1},this.animate.callbacks.onComplete=()=>{!this.grabbed&&this.released&&(this.released=!1),this.manual||(this.deltaX=0,this.deltaY=0,this.velocity=0,this.velocityStack[0]=0,this.velocityStack[1]=0,this.velocityStack[2]=0,this.velocityStackIndex=0,this.onSettle(this))},this.resizeTicker=new ot({autoplay:!1,duration:150*O.timeScale,onComplete:()=>{this.onResize(this),this.refresh(),this.onAfterResize(this)}}).init(),this.parameters=t,this.resizeObserver=new ResizeObserver((()=>{this.initialized?this.resizeTicker.restart():this.initialized=!0})),this.enable(),this.refresh(),this.resizeObserver.observe(this.$container),B(e)||this.resizeObserver.observe(this.$target)}computeVelocity(e,t){const i=this.velocityTime,s=D(),n=s-i;if(n<17)return this.velocity;this.velocityTime=s;const r=this.velocityStack,o=this.velocityMultiplier,a=this.minVelocity,l=this.maxVelocity,c=this.velocityStackIndex;r[c]=de(le(Q(e*e+t*t)/n*o,a,l),5);const d=ne(r[0],r[1],r[2]);return this.velocity=d,this.velocityStackIndex=(c+1)%3,d}setX(e,t=!1){if(this.disabled[0])return;const i=de(e,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!t,this.destX=i,this.snapped[0]=ue(i,this.snapX),this.animate[this.xProp](i,0),this.manual=!1,this}setY(e,t=!1){if(this.disabled[1])return;const i=de(e,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!t,this.destY=i,this.snapped[1]=ue(i,this.snapY),this.animate[this.yProp](i,0),this.manual=!1,this}get x(){return de(this.animate[this.xProp](),O.precision)}set x(e){this.setX(e,!1)}get y(){return de(this.animate[this.yProp](),O.precision)}set y(e){this.setY(e,!1)}get progressX(){return ni(this.x,this.containerBounds[3],this.containerBounds[1],0,1)}set progressX(e){this.setX(ni(e,0,1,this.containerBounds[3],this.containerBounds[1]),!1)}get progressY(){return ni(this.y,this.containerBounds[0],this.containerBounds[2],0,1)}set progressY(e){this.setY(ni(e,0,1,this.containerBounds[0],this.containerBounds[2]),!1)}updateScrollCoords(){const e=de(this.useWin?i.scrollX:this.$container.scrollLeft,0),t=de(this.useWin?i.scrollY:this.$container.scrollTop,0),[s,n,r,o]=this.containerPadding,a=this.scrollThreshold;this.scroll.x=e,this.scroll.y=t,this.scrollBounds[0]=t-this.targetBounds[0]+s-a,this.scrollBounds[1]=e-this.targetBounds[1]-n+a,this.scrollBounds[2]=t-this.targetBounds[2]-r+a,this.scrollBounds[3]=e-this.targetBounds[3]+o-a}updateBoundingValues(){const e=this.$container;if(!e)return;const t=this.x,n=this.y,r=this.coords[2],o=this.coords[3];this.coords[2]=0,this.coords[3]=0,this.setX(0,!0),this.setY(0,!0),this.transforms.remove();const a=this.window[0]=i.innerWidth,l=this.window[1]=i.innerHeight,c=this.useWin,d=e.scrollWidth,u=e.scrollHeight,h=this.fixed,p=e.getBoundingClientRect(),[f,m,g,v]=this.containerPadding;this.dragArea[0]=c?0:p.left,this.dragArea[1]=c?0:p.top,this.scrollView[0]=c?le(d,a,d):d,this.scrollView[1]=c?le(u,l,u):u,this.updateScrollCoords();const{width:y,height:b,left:_,top:w,right:x,bottom:T}=e.getBoundingClientRect();this.dragArea[2]=de(c?le(y,a,a):y,0),this.dragArea[3]=de(c?le(b,l,l):b,0);const S=ei(e,"overflow"),E="visible"===S,C="hidden"===S;if(this.canScroll=!h&&this.contained&&(e===s.body&&E||!C&&!E)&&(d>this.dragArea[2]+v-m||u>this.dragArea[3]+f-g)&&(!this.containerArray||this.containerArray&&!$(this.containerArray)),this.contained){const t=this.scroll.x,i=this.scroll.y,s=this.canScroll,n=this.$target.getBoundingClientRect(),r=s?c?0:e.scrollLeft:0,o=s?c?0:e.scrollTop:0,d=s?this.scrollView[0]-r-y:0,u=s?this.scrollView[1]-o-b:0;this.targetBounds[0]=de(n.top+i-(c?0:w),0),this.targetBounds[1]=de(n.right+t-(c?a:x),0),this.targetBounds[2]=de(n.bottom+i-(c?l:T),0),this.targetBounds[3]=de(n.left+t-(c?0:_),0),this.containerArray?(this.containerBounds[0]=this.containerArray[0]+f,this.containerBounds[1]=this.containerArray[1]-m,this.containerBounds[2]=this.containerArray[2]-g,this.containerBounds[3]=this.containerArray[3]+v):(this.containerBounds[0]=-de(n.top-(h?le(w,0,l):w)+o-f,0),this.containerBounds[1]=-de(n.right-(h?le(x,0,a):x)-d+m,0),this.containerBounds[2]=-de(n.bottom-(h?le(T,0,l):T)-u+g,0),this.containerBounds[3]=-de(n.left-(h?le(_,0,a):_)+r-v,0))}this.transforms.revert(),this.coords[2]=r,this.coords[3]=o,this.setX(t,!0),this.setY(n,!0)}isOutOfBounds(e,t,i){if(!this.contained)return 0;const[s,n,r,o]=e,[a,l]=this.disabled,c=!a&&t<o||!a&&t>n,d=!l&&i<s||!l&&i>r;return c&&!d?1:!c&&d?2:c&&d?3:0}refresh(){const e=this.parameters,t=e.x,n=e.y,r=bi(e.container,this),o=bi(e.containerPadding,this)||0,a=$(o)?o:[o,o,o,o],l=this.x,c=this.y,d=bi(e.cursor,this),u={onHover:"grab",onGrab:"grabbing"};if(d){const{onHover:e,onGrab:t}=d;e&&(u.onHover=e),t&&(u.onGrab=t)}this.containerArray=$(r)?r:null,this.$container=r&&!this.containerArray?ze(r)[0]:s.body,this.useWin=this.$container===s.body,this.$scrollContainer=this.useWin?i:this.$container,this.isFinePointer=matchMedia("(pointer:fine)").matches,this.containerPadding=He(a,[0,0,0,0]),this.containerFriction=le(He(bi(e.containerFriction,this),.8),0,1),this.releaseContainerFriction=le(He(bi(e.releaseContainerFriction,this),this.containerFriction),0,1),this.snapX=bi(B(t)&&!N(t.snap)?t.snap:e.snap,this),this.snapY=bi(B(n)&&!N(n.snap)?n.snap:e.snap,this),this.scrollSpeed=He(bi(e.scrollSpeed,this),1.5),this.scrollThreshold=He(bi(e.scrollThreshold,this),20),this.dragSpeed=He(bi(e.dragSpeed,this),1),this.minVelocity=He(bi(e.minVelocity,this),0),this.maxVelocity=He(bi(e.maxVelocity,this),50),this.velocityMultiplier=He(bi(e.velocityMultiplier,this),1),this.cursor=!1!==d&&u,this.updateBoundingValues();const[h,p,f,m]=this.containerBounds;this.setX(le(l,m,p),!0),this.setY(le(c,h,f),!0)}update(){if(this.updateScrollCoords(),this.canScroll){const[e,t,i,s]=this.containerPadding,[n,r]=this.scrollView,o=this.dragArea[2],a=this.dragArea[3],l=this.scroll.x,c=this.scroll.y,d=this.$container.scrollWidth,u=this.$container.scrollHeight,h=this.useWin?le(d,this.window[0],d):d,p=this.useWin?le(u,this.window[1],u):u,f=n-h,m=r-p;this.dragged&&f>0&&(this.coords[0]-=f,this.scrollView[0]=h),this.dragged&&m>0&&(this.coords[1]-=m,this.scrollView[1]=p);const g=10*this.scrollSpeed,v=this.scrollThreshold,[y,b]=this.coords,[_,w,x,T]=this.scrollBounds,S=de(le((b-_+e)/v,-1,0)*g,0),E=de(le((y-w-t)/v,0,1)*g,0),C=de(le((b-x-i)/v,0,1)*g,0),M=de(le((y-T+s)/v,-1,0)*g,0);if(S||C||M||E){const[e,t]=this.disabled;let i=l,s=c;e||(i=de(le(l+(M||E),0,n-o),0),this.coords[0]-=l-i),t||(s=de(le(c+(S||C),0,r-a),0),this.coords[1]-=c-s),this.useWin?this.$scrollContainer.scrollBy(-(l-i),-(c-s)):this.$scrollContainer.scrollTo(i,s)}}const[e,t,i,s]=this.containerBounds,[n,r,o,a,l,c]=this.pointer;this.coords[0]+=(n-l)*this.dragSpeed,this.coords[1]+=(r-c)*this.dragSpeed,this.pointer[4]=n,this.pointer[5]=r;const[d,u]=this.coords,[h,p]=this.snapped,f=(1-this.containerFriction)*this.dragSpeed;this.setX(d>t?t+(d-t)*f:d<s?s+(d-s)*f:d,!1),this.setY(u>i?i+(u-i)*f:u<e?e+(u-e)*f:u,!1),this.computeVelocity(n-l,r-c),this.angle=re(r-a,n-o);const[m,g]=this.snapped;(m!==h&&this.snapX||g!==p&&this.snapY)&&this.onSnap(this)}stop(){this.updateTicker.pause(),this.overshootTicker.pause();for(let e in this.animate.animations)this.animate.animations[e].pause();return si(this,null,"x"),si(this,null,"y"),si(this,null,"progressX"),si(this,null,"progressY"),si(this.scroll),si(this.overshootCoords),this}scrollInView(e,t=0,i=bt.inOutQuad){this.updateScrollCoords();const s=this.destX,n=this.destY,r=this.scroll,o=this.scrollBounds,a=this.canScroll;if(!this.containerArray&&this.isOutOfBounds(o,s,n)){const[l,c,d,u]=o,p=de(le(n-l,-1e12,0),0),f=de(le(s-c,0,h),0),m=de(le(n-d,0,h),0),g=de(le(s-u,-1e12,0),0);new Bt(r,{x:de(r.x+(g?g-t:f?f+t:0),0),y:de(r.y+(p?p-t:m?m+t:0),0),duration:N(e)?350*O.timeScale:e,ease:i,onUpdate:()=>{this.canScroll=!1,this.$scrollContainer.scrollTo(r.x,r.y)}}).init().then((()=>{this.canScroll=a}))}return this}handleHover(){this.isFinePointer&&this.cursor&&!this.cursorStyles&&(this.cursorStyles=ti(this.$trigger,{cursor:this.cursor.onHover}))}animateInView(e,t=0,i=bt.inOutQuad){this.stop(),this.updateBoundingValues();const s=this.x,n=this.y,[r,o,a,l]=this.containerPadding,c=this.scroll.y-this.targetBounds[0]+r+t,d=this.scroll.x-this.targetBounds[1]-o-t,u=this.scroll.y-this.targetBounds[2]-a-t,h=this.scroll.x-this.targetBounds[3]+l+t,p=this.isOutOfBounds([c,d,u,h],s,n);if(p){const[t,r]=this.disabled,o=le(ue(s,this.snapX),h,d),a=le(ue(n,this.snapY),c,u),l=N(e)?350*O.timeScale:e;t||1!==p&&3!==p||this.animate[this.xProp](o,l,i),r||2!==p&&3!==p||this.animate[this.yProp](a,l,i)}return this}handleDown(e){const t=e.target;if(this.grabbed||"range"===t.type)return;e.stopPropagation(),this.grabbed=!0,this.released=!1,this.stop(),this.updateBoundingValues();const i=e.changedTouches,n=i?i[0].clientX:e.clientX,r=i?i[0].clientY:e.clientY,{x:o,y:a}=this.transforms.normalizePoint(n,r),[l,c,d,u]=this.containerBounds,h=(1-this.containerFriction)*this.dragSpeed,p=this.x,f=this.y;this.coords[0]=this.coords[2]=h?p>c?c+(p-c)/h:p<u?u+(p-u)/h:p:p,this.coords[1]=this.coords[3]=h?f>d?d+(f-d)/h:f<l?l+(f-l)/h:f:f,this.pointer[0]=o,this.pointer[1]=a,this.pointer[2]=o,this.pointer[3]=a,this.pointer[4]=o,this.pointer[5]=a,this.pointer[6]=o,this.pointer[7]=a,this.deltaX=0,this.deltaY=0,this.velocity=0,this.velocityStack[0]=0,this.velocityStack[1]=0,this.velocityStack[2]=0,this.velocityStackIndex=0,this.angle=0,this.targetStyles&&(this.targetStyles.revert(),this.targetStyles=null);const m=ei(this.$target,"zIndex",!1);_i=(m>_i?m:_i)+1,this.targetStyles=ti(this.$target,{zIndex:_i}),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.cursorStyles&&(this.cursorStyles.revert(),this.cursorStyles=null),this.isFinePointer&&this.cursor&&(this.bodyStyles=ti(s.body,{cursor:this.cursor.onGrab})),this.scrollInView(100,0,bt.out(3)),this.onGrab(this),s.addEventListener("touchmove",this),s.addEventListener("touchend",this),s.addEventListener("touchcancel",this),s.addEventListener("mousemove",this),s.addEventListener("mouseup",this),s.addEventListener("selectstart",this)}handleMove(e){if(!this.grabbed)return;const t=e.changedTouches,i=t?t[0].clientX:e.clientX,s=t?t[0].clientY:e.clientY,{x:n,y:r}=this.transforms.normalizePoint(i,s),o=n-this.pointer[6],a=r-this.pointer[7];let l=e.target,c=!1,d=!1,u=!1;for(;t&&l&&l!==this.$trigger;){const e=ei(l,"overflow-y");if("hidden"!==e&&"visible"!==e){const{scrollTop:e,scrollHeight:t,clientHeight:i}=l;if(t>i){u=!0,c=e<=3,d=e>=t-i-3;break}}l=l.parentNode}u&&(!c&&!d||c&&a<0||d&&a>0)?(this.pointer[0]=n,this.pointer[1]=r,this.pointer[2]=n,this.pointer[3]=r,this.pointer[4]=n,this.pointer[5]=r,this.pointer[6]=n,this.pointer[7]=r):(gi(e),this.triggerStyles||(this.triggerStyles=ti(this.$trigger,{pointerEvents:"none"})),this.$trigger.addEventListener("touchstart",gi,{passive:!1}),this.$trigger.addEventListener("touchmove",gi,{passive:!1}),this.$trigger.addEventListener("touchend",gi),(!this.disabled[0]&&J(o)>3||!this.disabled[1]&&J(a)>3)&&(this.updateTicker.resume(),this.pointer[2]=this.pointer[0],this.pointer[3]=this.pointer[1],this.pointer[0]=n,this.pointer[1]=r,this.dragged=!0,this.released=!1,this.onDrag(this)))}handleUp(){if(!this.grabbed)return;this.updateTicker.pause(),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.bodyStyles&&(this.bodyStyles.revert(),this.bodyStyles=null);const[e,t]=this.disabled,[i,r,o,a,l,c]=this.pointer,[d,u,h,p]=this.containerBounds,[f,m]=this.snapped,g=this.releaseXSpring,v=this.releaseYSpring,y=this.releaseEase,b=this.hasReleaseSpring,_=this.overshootCoords,w=this.x,x=this.y,T=this.computeVelocity(i-l,r-c),S=this.angle=re(r-a,i-o),E=150*T,C=(1-this.releaseContainerFriction)*this.dragSpeed,M=w+K(S)*E,k=x+Z(S)*E,A=M>u?u+(M-u)*C:M<p?p+(M-p)*C:M,I=k>h?h+(k-h)*C:k<d?d+(k-d)*C:k,L=this.destX=le(de(ue(A,this.snapX),5),p,u),P=this.destY=le(de(ue(I,this.snapY),5),d,h),z=this.isOutOfBounds(this.containerBounds,M,k);let D=0,$=0,B=y,R=y,F=0;if(_.x=w,_.y=x,!e){const e=L===u?w>u?-1:1:w<p?-1:1,i=de(w-L,0);g.velocity=t&&b?i?E*e/J(i):0:T;const{ease:s,duration:n,restDuration:r}=g;D=w===L?0:b?n:n-r*O.timeScale,b&&(B=s),D>F&&(F=D)}if(!t){const t=P===h?x>h?-1:1:x<d?-1:1,i=de(x-P,0);v.velocity=e&&b?i?E*t/J(i):0:T;const{ease:s,duration:n,restDuration:r}=v;$=x===P?0:b?n:n-r*O.timeScale,b&&(R=s),$>F&&(F=$)}if(!b&&z&&C&&(D||$)){const e=n.blend;new Bt(_,{x:{to:A,duration:.65*D},y:{to:I,duration:.65*$},ease:y,composition:e}).init(),new Bt(_,{x:{to:L,duration:D},y:{to:P,duration:$},ease:y,composition:e}).init(),this.overshootTicker.stretch(ne(D,$)).restart()}else e||this.animate[this.xProp](L,D,B),t||this.animate[this.yProp](P,$,R);this.scrollInView(F,this.scrollThreshold,y);let j=!1;L!==f&&(this.snapped[0]=L,this.snapX&&(j=!0)),P!==m&&this.snapY&&(this.snapped[1]=P,this.snapY&&(j=!0)),j&&this.onSnap(this),this.grabbed=!1,this.dragged=!1,this.updated=!0,this.released=!0,this.onRelease(this),this.$trigger.removeEventListener("touchstart",gi),this.$trigger.removeEventListener("touchmove",gi),this.$trigger.removeEventListener("touchend",gi),s.removeEventListener("touchmove",this),s.removeEventListener("touchend",this),s.removeEventListener("touchcancel",this),s.removeEventListener("mousemove",this),s.removeEventListener("mouseup",this),s.removeEventListener("selectstart",this)}reset(){return this.stop(),this.resizeTicker.pause(),this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.setX(0,!0),this.setY(0,!0),this.coords[0]=0,this.coords[1]=0,this.pointer[0]=0,this.pointer[1]=0,this.pointer[2]=0,this.pointer[3]=0,this.pointer[4]=0,this.pointer[5]=0,this.pointer[6]=0,this.pointer[7]=0,this.velocity=0,this.velocityStack[0]=0,this.velocityStack[1]=0,this.velocityStack[2]=0,this.velocityStackIndex=0,this.angle=0,this}enable(){return this.enabled||(this.enabled=!0,this.$target.classList.remove("is-disabled"),this.touchActionStyles=ti(this.$trigger,{touchAction:this.disabled[0]?"pan-x":this.disabled[1]?"pan-y":"none"}),this.$trigger.addEventListener("touchstart",this,{passive:!0}),this.$trigger.addEventListener("mousedown",this,{passive:!0}),this.$trigger.addEventListener("mouseenter",this)),this}disable(){return this.enabled=!1,this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.touchActionStyles.revert(),this.cursorStyles&&(this.cursorStyles.revert(),this.cursorStyles=null),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.bodyStyles&&(this.bodyStyles.revert(),this.bodyStyles=null),this.targetStyles&&(this.targetStyles.revert(),this.targetStyles=null),this.$target.classList.add("is-disabled"),this.$trigger.removeEventListener("touchstart",this),this.$trigger.removeEventListener("mousedown",this),this.$trigger.removeEventListener("mouseenter",this),s.removeEventListener("touchmove",this),s.removeEventListener("touchend",this),s.removeEventListener("touchcancel",this),s.removeEventListener("mousemove",this),s.removeEventListener("mouseup",this),s.removeEventListener("selectstart",this),this}revert(){return this.reset(),this.disable(),this.$target.classList.remove("is-disabled"),this.updateTicker.revert(),this.overshootTicker.revert(),this.resizeTicker.revert(),this.animate.revert(),this.resizeObserver.disconnect(),this}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":this.handleDown(e);break;case"mousemove":case"touchmove":this.handleMove(e);break;case"mouseup":case"touchend":case"touchcancel":this.handleUp();break;case"mouseenter":this.handleHover();break;case"selectstart":gi(e)}}}class xi{constructor(e={}){I.current&&I.current.register(this);const t=e.root;let n=s;t&&(n=t.current||t.nativeElement||ze(t)[0]||s);const r=e.defaults,o=O.defaults,a=e.mediaQueries;if(this.defaults=r?ye(r,o):o,this.root=n,this.constructors=[],this.revertConstructors=[],this.revertibles=[],this.constructorsOnce=[],this.revertConstructorsOnce=[],this.revertiblesOnce=[],this.once=!1,this.onceIndex=0,this.methods={},this.matches={},this.mediaQueryLists={},this.data={},a)for(let e in a){const t=i.matchMedia(a[e]);this.mediaQueryLists[e]=t,t.addEventListener("change",this)}}register(e){(this.once?this.revertiblesOnce:this.revertibles).push(e)}execute(e){let t=I.current,i=I.root,s=O.defaults;I.current=this,I.root=this.root,O.defaults=this.defaults;const n=this.mediaQueryLists;for(let e in n)this.matches[e]=n[e].matches;const r=e(this);return I.current=t,I.root=i,O.defaults=s,r}refresh(){return this.onceIndex=0,this.execute((()=>{let e=this.revertibles.length,t=this.revertConstructors.length;for(;e--;)this.revertibles[e].revert();for(;t--;)this.revertConstructors[t](this);this.revertibles.length=0,this.revertConstructors.length=0,this.constructors.forEach((e=>{const t=e(this);j(t)&&this.revertConstructors.push(t)}))})),this}add(e,t){if(this.once=!1,j(e)){const t=e;this.constructors.push(t),this.execute((()=>{const e=t(this);j(e)&&this.revertConstructors.push(e)}))}else this.methods[e]=(...e)=>this.execute((()=>t(...e)));return this}addOnce(e){if(this.once=!0,j(e)){const t=this.onceIndex++;if(this.constructorsOnce[t])return this;const i=e;this.constructorsOnce[t]=i,this.execute((()=>{const e=i(this);j(e)&&this.revertConstructorsOnce.push(e)}))}return this}keepTime(e){this.once=!0;const t=this.onceIndex++,i=this.constructorsOnce[t];if(j(i))return i(this);const s=xe(e);let n;return this.constructorsOnce[t]=s,this.execute((()=>{n=s(this)})),n}handleEvent(e){"change"===e.type&&this.refresh()}revert(){const e=this.revertibles,t=this.revertConstructors,i=this.revertiblesOnce,s=this.revertConstructorsOnce,n=this.mediaQueryLists;let r=e.length,o=t.length,a=i.length,l=s.length;for(;r--;)e[r].revert();for(;o--;)t[o](this);for(;a--;)i[a].revert();for(;l--;)s[l](this);for(let e in n)n[e].removeEventListener("change",this);e.length=0,t.length=0,this.constructors.length=0,i.length=0,s.length=0,this.constructorsOnce.length=0,this.onceIndex=0,this.matches={},this.methods={},this.mediaQueryLists={},this.data={}}}const Ti=(e,t)=>e&&j(e)?e(t):e,Si=new Map;class Ei{constructor(e){this.element=e,this.useWin=this.element===s.body,this.winWidth=0,this.winHeight=0,this.width=0,this.height=0,this.left=0,this.top=0,this.zIndex=0,this.scrollX=0,this.scrollY=0,this.prevScrollX=0,this.prevScrollY=0,this.scrollWidth=0,this.scrollHeight=0,this.velocity=0,this.backwardX=!1,this.backwardY=!1,this.scrollTicker=new ot({autoplay:!1,onBegin:()=>this.dataTimer.resume(),onUpdate:()=>{const e=this.backwardX||this.backwardY;be(this,(e=>e.handleScroll()),e)},onComplete:()=>this.dataTimer.pause()}).init(),this.dataTimer=new ot({autoplay:!1,frameRate:30,onUpdate:e=>{const t=e.deltaTime,i=this.prevScrollX,s=this.prevScrollY,n=this.scrollX,r=this.scrollY,o=i-n,a=s-r;this.prevScrollX=n,this.prevScrollY=r,o&&(this.backwardX=i>n),a&&(this.backwardY=s>r),this.velocity=de(t>0?Math.sqrt(o*o+a*a)/t:0,5)}}).init(),this.resizeTicker=new ot({autoplay:!1,duration:250*O.timeScale,onComplete:()=>{this.updateWindowBounds(),this.refreshScrollObservers(),this.handleScroll()}}).init(),this.wakeTicker=new ot({autoplay:!1,duration:500*O.timeScale,onBegin:()=>{this.scrollTicker.resume()},onComplete:()=>{this.scrollTicker.pause()}}).init(),this._head=null,this._tail=null,this.updateScrollCoords(),this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll(),this.resizeObserver=new ResizeObserver((()=>this.resizeTicker.restart())),this.resizeObserver.observe(this.element),(this.useWin?i:this.element).addEventListener("scroll",this,!1)}updateScrollCoords(){const e=this.useWin,t=this.element;this.scrollX=de(e?i.scrollX:t.scrollLeft,0),this.scrollY=de(e?i.scrollY:t.scrollTop,0)}updateWindowBounds(){this.winWidth=i.innerWidth,this.winHeight=(()=>{const e=s.createElement("div");s.body.appendChild(e),e.style.height="100lvh";const t=e.offsetHeight;return s.body.removeChild(e),t})()}updateBounds(){const e=getComputedStyle(this.element),t=this.element;let i,s;if(this.scrollWidth=t.scrollWidth+parseFloat(e.marginLeft)+parseFloat(e.marginRight),this.scrollHeight=t.scrollHeight+parseFloat(e.marginTop)+parseFloat(e.marginBottom),this.updateWindowBounds(),this.useWin)i=this.winWidth,s=this.winHeight;else{const e=t.getBoundingClientRect();i=t.clientWidth,s=t.clientHeight,this.top=e.top,this.left=e.left}this.width=i,this.height=s}refreshScrollObservers(){be(this,(e=>{e._debug&&e.removeDebug()})),this.updateBounds(),be(this,(e=>{e.refresh(),e._debug&&e.debug()}))}refresh(){this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll()}handleScroll(){this.updateScrollCoords(),this.wakeTicker.restart()}handleEvent(e){"scroll"===e.type&&this.handleScroll()}revert(){this.scrollTicker.cancel(),this.dataTimer.cancel(),this.resizeTicker.cancel(),this.wakeTicker.cancel(),this.resizeObserver.disconnect(),(this.useWin?i:this.element).removeEventListener("scroll",this),Si.delete(this.element)}}const Ci=(e,t,i,s,n)=>{const r="min"===t,o="max"===t,a="top"===t||"left"===t||"start"===t||r?0:"bottom"===t||"right"===t||"end"===t||o?"100%":"center"===t?"50%":t,{n:l,u:c}=Ge(a,Qe);let d=l;return"%"===c?d=l/100*i:c&&(d=Ct(e,Qe,"px",!0).n),o&&s<0&&(d+=s),r&&n>0&&(d+=n),d},Mi=(e,t,i,s,n)=>{let r;if(F(t)){const o=k.exec(t);if(o){const a=o[0],l=a[0],c=t.split(a),d="min"===c[0],u="max"===c[0],h=Ci(e,c[0],i,s,n),p=Ci(e,c[1],i,s,n);if(d){const t=Ve(Ci(e,"min",i),p,l);r=t<h?h:t}else if(u){const t=Ve(Ci(e,"max",i),p,l);r=t>h?h:t}else r=Ve(h,p,l)}else r=Ci(e,t,i,s,n)}else r=t;return de(r,0)},ki=e=>{let t;const i=e.targets;for(let e=0,s=i.length;e<s;e++){const s=i[e];if(s[o]){t=s;break}}return t};let Ai=0;const Ii=["#FF4B4B","#FF971B","#FFC730","#F9F640","#7AFF5A","#18FF74","#17E09B","#3CFFEC","#05DBE9","#33B3F1","#638CF9","#C563FE","#FF4FCF","#F93F8A"];class Oi{constructor(e={}){I.current&&I.current.register(this);const t=He(e.sync,"play pause"),i=t?wt(t):null,n=t&&("linear"===t||t===at),r=t&&!(i===at&&!n),o=t&&(R(t)||!0===t||n),a=t&&F(t)&&!r&&!o,l=a?t.split(" ").map((e=>()=>{const t=this.linked;return t&&t[e]?t[e]():null})):null,c=a&&l.length>2;this.index=Ai++,this.id=N(e.id)?this.index:e.id,this.container=(e=>{const t=e&&ze(e)[0]||s.body;let i=Si.get(t);return i||(i=new Ei(t),Si.set(t,i)),i})(e.container),this.target=null,this.linked=null,this.repeat=null,this.horizontal=null,this.enter=null,this.leave=null,this.sync=r||o||!!l,this.syncEase=r?i:null,this.syncSmooth=o?!0===t||n?1:t:null,this.onSyncEnter=l&&!c&&l[0]?l[0]:y,this.onSyncLeave=l&&!c&&l[1]?l[1]:y,this.onSyncEnterForward=l&&c&&l[0]?l[0]:y,this.onSyncLeaveForward=l&&c&&l[1]?l[1]:y,this.onSyncEnterBackward=l&&c&&l[2]?l[2]:y,this.onSyncLeaveBackward=l&&c&&l[3]?l[3]:y,this.onEnter=e.onEnter||y,this.onLeave=e.onLeave||y,this.onEnterForward=e.onEnterForward||y,this.onLeaveForward=e.onLeaveForward||y,this.onEnterBackward=e.onEnterBackward||y,this.onLeaveBackward=e.onLeaveBackward||y,this.onUpdate=e.onUpdate||y,this.onSyncComplete=e.onSyncComplete||y,this.reverted=!1,this.completed=!1,this.began=!1,this.isInView=!1,this.forceEnter=!1,this.hasEntered=!1,this.offset=0,this.offsetStart=0,this.offsetEnd=0,this.distance=0,this.prevProgress=0,this.thresholds=["start","end","end","start"],this.coords=[0,0,0,0],this.debugStyles=null,this.$debug=null,this._params=e,this._debug=He(e.debug,!1),this._next=null,this._prev=null,we(this.container,this),Jt((()=>{if(!this.reverted){if(!this.target){const t=ze(e.target)[0];this.target=t||s.body,this.refresh()}this._debug&&this.debug()}}))}link(e){if(e&&(e.pause(),this.linked=e,!this._params.target)){let t;N(e.targets)?be(e,(e=>{e.targets&&!t&&(t=ki(e))})):t=ki(e),this.target=t||s.body,this.refresh()}return this}get velocity(){return this.container.velocity}get backward(){return this.horizontal?this.container.backwardX:this.container.backwardY}get scroll(){return this.horizontal?this.container.scrollX:this.container.scrollY}get progress(){const e=(this.scroll-this.offsetStart)/this.distance;return e===1/0||isNaN(e)?0:de(le(e,0,1),6)}refresh(){this.reverted=!1;const e=this._params;return this.repeat=He(Ti(e.repeat,this),!0),this.horizontal="x"===He(Ti(e.axis,this),"y"),this.enter=He(Ti(e.enter,this),"end start"),this.leave=He(Ti(e.leave,this),"start end"),this.updateBounds(),this.handleScroll(),this}removeDebug(){return this.$debug&&(this.$debug.parentNode.removeChild(this.$debug),this.$debug=null),this.debugStyles&&(this.debugStyles.revert(),this.$debug=null),this}debug(){this.removeDebug();const e=this.container,t=this.horizontal,i=e.element.querySelector(":scope > .animejs-onscroll-debug"),n=s.createElement("div"),r=s.createElement("div"),o=s.createElement("div"),a=Ii[this.index%Ii.length],l=e.useWin,c=l?e.winWidth:e.width,d=l?e.winHeight:e.height,u=e.scrollWidth,h=e.scrollHeight,p=this.container.width>360?320:260,f=t?0:10,m=t?10:0,g=t?24:p/2,v=t?g:15,y=t?60:g,b=t?y:v,_=t?"repeat-x":"repeat-y",w=e=>t?"0px "+e+"px":e+"px 2px",x=e=>`linear-gradient(${t?90:0}deg, ${e} 2px, transparent 1px)`,T=(e,t,i,s,n)=>`position:${e};left:${t}px;top:${i}px;width:${s}px;height:${n}px;`;n.style.cssText=`${T("absolute",f,m,t?u:p,t?p:h)}\n pointer-events: none;\n z-index: ${this.container.zIndex++};\n display: flex;\n flex-direction: ${t?"column":"row"};\n filter: drop-shadow(0px 1px 0px rgba(0,0,0,.75));\n `,r.style.cssText=`${T("sticky",0,0,t?c:g,t?g:d)}`,i||(r.style.cssText+=`background:\n ${x("#FFFF")}${w(g-10)} / 100px 100px ${_},\n ${x("#FFF8")}${w(g-10)} / 10px 10px ${_};\n `),o.style.cssText=`${T("relative",0,0,t?u:g,t?g:h)}`,i||(o.style.cssText+=`background:\n ${x("#FFFF")}${w(0)} / ${t?"100px 10px":"10px 100px"} ${_},\n ${x("#FFF8")}${w(0)} / ${t?"10px 0px":"0px 10px"} ${_};\n `);const S=[" enter: "," leave: "];this.coords.forEach(((e,i)=>{const n=i>1,l=(n?0:this.offset)+e,f=i%2,m=l<b,g=l>(n?t?c:d:t?u:h)-b,_=(n?f&&!m:!f&&!m)||g,w=s.createElement("div"),x=s.createElement("div"),E=t?_?"right":"left":_?"bottom":"top",C=_?(t?y:v)+(n?t?-1:g?0:-2:t?-1:-2):t?1:0;x.innerHTML=`${this.id}${S[f]}${this.thresholds[i]}`,w.style.cssText=`${T("absolute",0,0,y,v)}\n display: flex;\n flex-direction: ${t?"column":"row"};\n justify-content: flex-${n?"start":"end"};\n align-items: flex-${_?"end":"start"};\n border-${E}: 2px solid ${a};\n `,x.style.cssText=`\n overflow: hidden;\n max-width: ${p/2-10}px;\n height: ${v};\n margin-${t?_?"right":"left":_?"bottom":"top"}: -2px;\n padding: 1px;\n font-family: ui-monospace, monospace;\n font-size: 10px;\n letter-spacing: -.025em;\n line-height: 9px;\n font-weight: 600;\n text-align: ${t&&_||!t&&!n?"right":"left"};\n white-space: pre;\n text-overflow: ellipsis;\n color: ${f?a:"rgba(0,0,0,.75)"};\n background-color: ${f?"rgba(0,0,0,.65)":a};\n border: 2px solid ${f?a:"transparent"};\n border-${t?_?"top-left":"top-right":_?"top-left":"bottom-left"}-radius: 5px;\n border-${t?_?"bottom-left":"bottom-right":_?"top-right":"bottom-right"}-radius: 5px;\n `,w.appendChild(x);let M=l-C+(t?1:0);w.style[t?"left":"top"]=`${M}px`,(n?r:o).appendChild(w)})),n.appendChild(r),n.appendChild(o),e.element.appendChild(n),i||n.classList.add("animejs-onscroll-debug"),this.$debug=n,"static"===ei(e.element,"position")&&(this.debugStyles=ti(e.element,{position:"relative "}))}updateBounds(){let e;this._debug&&this.removeDebug();const t=this.target,i=this.container,n=this.horizontal,r=this.linked;let o,a=t;for(r&&(o=r.currentTime,r.seek(0,!0)),a.parentElement;a&&a!==i.element&&a!==s.body;){const t="sticky"===ei(a,"position")&&ti(a,{position:"static"});a=a.parentElement,t&&(e||(e=[]),e.push(t))}const l=t.getBoundingClientRect(),c=n?l.left+i.scrollX-i.left:l.top+i.scrollY-i.top,d=n?l.width:l.height,u=n?i.width:i.height,h=(n?i.scrollWidth:i.scrollHeight)-u,p=this.enter,f=this.leave;let m="start",g="end",v="end",y="start";if(F(p)){const e=p.split(" ");v=e[0],m=e.length>1?e[1]:m}else if(B(p)){const e=p;N(e.container)||(v=e.container),N(e.target)||(m=e.target)}else R(p)&&(v=p);if(F(f)){const e=f.split(" ");y=e[0],g=e.length>1?e[1]:g}else if(B(f)){const e=f;N(e.container)||(y=e.container),N(e.target)||(g=e.target)}else R(f)&&(y=f);const b=Mi(t,m,d),_=Mi(t,g,d),w=b+c-u,x=_+c-h,T=Mi(t,v,u,w,x),S=Mi(t,y,u,w,x),E=b+c-T,C=_+c-S,M=C-E;this.offset=c,this.offsetStart=E,this.offsetEnd=C,this.distance=M<=0?0:M,this.thresholds=[m,g,v,y],this.coords=[b,_,T,S],e&&e.forEach((e=>e.revert())),r&&r.seek(o,!0),this._debug&&this.debug()}handleScroll(){const e=this.linked,t=this.sync,i=this.syncEase,s=this.syncSmooth,n=e&&(i||s),r=this.horizontal,o=this.container,a=this.scroll,l=a<=this.offsetStart,c=a>=this.offsetEnd,d=!l&&!c,u=a===this.offsetStart||a===this.offsetEnd,h=!this.hasEntered&&u,p=this._debug&&this.$debug;let f=!1,m=!1,g=this.progress;if(l&&this.began&&(this.began=!1),g>0&&!this.began&&(this.began=!0),n){const t=e.progress;if(s&&R(s)){if(s<1){const e=t<g&&1===g?1e-4:t>g&&!g?-1e-4:0;g=de(ri(t,g,he(.01,.2,s),!1)+e,6)}}else i&&(g=i(g));f=g!==this.prevProgress,m=1===t,f&&!m&&s&&t&&o.wakeTicker.restart()}if(p){const e=r?o.scrollY:o.scrollX;p.style[r?"top":"left"]=e+10+"px"}(d&&!this.isInView||h&&!this.forceEnter&&!this.hasEntered)&&(d&&(this.isInView=!0),this.forceEnter&&this.hasEntered?d&&(this.forceEnter=!1):(p&&d&&(p.style.zIndex=""+this.container.zIndex++),this.onSyncEnter(this),this.onEnter(this),this.backward?(this.onSyncEnterBackward(this),this.onEnterBackward(this)):(this.onSyncEnterForward(this),this.onEnterForward(this)),this.hasEntered=!0,h&&(this.forceEnter=!0))),(d||!d&&this.isInView)&&(f=!0),f&&(n&&e.seek(e.duration*g),this.onUpdate(this)),!d&&this.isInView&&(this.isInView=!1,this.onSyncLeave(this),this.onLeave(this),this.backward?(this.onSyncLeaveBackward(this),this.onLeaveBackward(this)):(this.onSyncLeaveForward(this),this.onLeaveForward(this)),t&&!s&&(m=!0)),g>=1&&this.began&&!this.completed&&(t&&m||!t)&&(t&&this.onSyncComplete(this),this.completed=!0,(!this.repeat&&!e||!this.repeat&&e&&e.completed)&&this.revert()),g<1&&this.completed&&(this.completed=!1),this.prevProgress=g}revert(){if(this.reverted)return;const e=this.container;return _e(e,this),e._head||e.revert(),this._debug&&this.removeDebug(),this.reverted=!0,this}}const Li="undefined"!=typeof Intl&&Intl.Segmenter,Pi=/\{value\}/g,zi=/\{i\}/g,Di=/(\s+)/,$i=/^\s+$/,Bi="line",Ri="word",Fi="char",ji="data-line";let Ni=null,Hi=null,Wi=null;const qi=e=>e.isWordLike||" "===e.segment||R(+e.segment),Yi=e=>e.setAttribute("aria-hidden","true"),Xi=(e,t)=>[...e.querySelectorAll(`[data-${t}]:not([data-${t}] [data-${t}])`)],Vi={line:"#00D672",word:"#FF4B4B",char:"#5A87FF"},Gi=e=>{if(!e.childElementCount&&!e.textContent.trim()){const t=e.parentElement;e.remove(),t&&Gi(t)}},Ui=(e,t,i)=>{const s=e.getAttribute(ji);(null!==s&&+s!==t||"BR"===e.tagName)&&i.add(e);let n=e.childElementCount;for(;n--;)Ui(e.children[n],t,i);return i},Qi=(e,t={})=>{let i="";const s=F(t.class)?` class="${t.class}"`:"",n=He(t.clone,!1),r=He(t.wrap,!1),o=r?!0===r?"clip":r:!!n&&"clip";return r&&(i+=`<span${o?` style="overflow:${o};"`:""}>`),i+=`<span${s}${n?' style="position:relative;"':""} data-${e}="{i}">`,n?(i+="<span>{value}</span>",i+=`<span inert style="position:absolute;top:${"top"===n?"-100%":"bottom"===n?"100%":"0"};left:${"left"===n?"-100%":"right"===n?"100%":"0"};white-space:nowrap;">{value}</span>`):i+="{value}",i+="</span>",r&&(i+="</span>"),i},Zi=(e,t,i,s,n,r,o,a,l)=>{const c=n===Bi,d=n===Fi,u=`_${n}_`,h=j(e)?e(i):e,p=c?"block":"inline-block";Wi.innerHTML=h.replace(Pi,`<i class="${u}"></i>`).replace(zi,`${d?l:c?o:a}`);const f=Wi.content,m=f.firstElementChild,g=f.querySelector(`[data-${n}]`)||m,v=f.querySelectorAll(`i.${u}`),y=v.length;if(y){m.style.display=p,g.style.display=p,g.setAttribute(ji,`${o}`),c||(g.setAttribute("data-word",`${a}`),d&&g.setAttribute("data-char",`${l}`));let e=y;for(;e--;){const t=v[e],s=t.parentElement;s.style.display=p,c?s.innerHTML=i.innerHTML:s.replaceChild(i.cloneNode(!0),t)}t.push(g),s.appendChild(f)}else console.warn('The expression "{value}" is missing from the provided template.');return r&&(m.style.outline=`1px dotted ${Vi[n]}`),m};class Ki{constructor(e,i={}){Ni||(Ni=Li?new Li([],{granularity:Ri}):{segment:e=>{const t=[],i=e.split(Di);for(let e=0,s=i.length;e<s;e++){const s=i[e];t.push({segment:s,isWordLike:!$i.test(s)})}return t}}),Hi||(Hi=Li?new Li([],{granularity:"grapheme"}):{segment:e=>[...e].map((e=>({segment:e})))}),!Wi&&t&&(Wi=s.createElement("template")),I.current&&I.current.register(this);const{words:n,chars:r,lines:o,accessible:a,includeSpaces:l,debug:c}=i,d=(e=$(e)?e[0]:e)&&e.nodeType?e:(Pe(e)||[])[0],u=!0===o?{}:o,h=!0===n||N(n)?{}:n,p=!0===r?{}:r;this.debug=He(c,!1),this.includeSpaces=He(l,!1),this.accessible=He(a,!0),this.linesOnly=u&&!h&&!p,this.lineTemplate=B(u)?Qi(Bi,u):u,this.wordTemplate=B(h)||this.linesOnly?Qi(Ri,h):h,this.charTemplate=B(p)?Qi(Fi,p):p,this.$target=d,this.html=d&&d.innerHTML,this.lines=[],this.words=[],this.chars=[],this.effects=[],this.effectsCleanups=[],this.cache=null,this.ready=!1,this.width=0,this.resizeTimeout=null;const f=()=>this.html&&(u||h||p)&&this.split();this.resizeObserver=new ResizeObserver((()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((()=>{const e=d.offsetWidth;e!==this.width&&(this.width=e,f())}),150)})),this.lineTemplate&&!this.ready?s.fonts.ready.then(f):f(),d?this.resizeObserver.observe(d):console.warn("No Text Splitter target found.")}addEffect(e){if(!j(e))return console.warn("Effect must return a function.");const t=xe(e);return this.effects.push(t),this.ready&&(this.effectsCleanups[this.effects.length-1]=t(this)),this}revert(){return clearTimeout(this.resizeTimeout),this.lines.length=this.words.length=this.chars.length=0,this.resizeObserver.disconnect(),this.effectsCleanups.forEach((e=>j(e)?e(this):e.revert&&e.revert())),this.$target.innerHTML=this.html,this}splitNode(e){const t=this.wordTemplate,i=this.charTemplate,n=this.includeSpaces,r=this.debug,o=e.nodeType;if(3===o){const o=e.nodeValue;if(o.trim()){const a=[],l=this.words,c=this.chars,d=Ni.segment(o),u=s.createDocumentFragment();let h=null;for(const e of d){const t=e.segment,i=qi(e);if(!h||i&&h&&qi(h))a.push(t);else{const e=a.length-1;a[e].includes(" ")||t.includes(" ")?a.push(t):a[e]+=t}h=e}for(let e=0,o=a.length;e<o;e++){const o=a[e];if(o.trim()){const d=a[e+1],h=n&&d&&!d.trim(),p=o,f=i?Hi.segment(p):null,m=i?s.createDocumentFragment():s.createTextNode(h?o+" ":o);if(i){const e=[...f];for(let t=0,n=e.length;t<n;t++){const o=e[t],a=t===n-1&&h?o.segment+" ":o.segment,d=s.createTextNode(a);Zi(i,c,d,m,Fi,r,-1,l.length,c.length)}}t?Zi(t,l,m,u,Ri,r,-1,l.length,c.length):i?u.appendChild(m):u.appendChild(s.createTextNode(o)),h&&e++}else{if(e&&n)continue;u.appendChild(s.createTextNode(o))}}e.parentNode.replaceChild(u,e)}}else if(1===o){const t=[...e.childNodes];for(let e=0,i=t.length;e<i;e++)this.splitNode(t[e])}}split(e=!1){const t=this.$target,i=!!this.cache&&!e,n=this.lineTemplate,r=this.wordTemplate,o=this.charTemplate,a="loading"!==s.fonts.status,l=n&&a;this.ready=!n||a,(l||e)&&this.effectsCleanups.forEach((e=>j(e)&&e(this))),i||(e&&(t.innerHTML=this.html,this.words.length=this.chars.length=0),this.splitNode(t),this.cache=t.innerHTML),l&&(i&&(t.innerHTML=this.cache),this.lines.length=0,r&&(this.words=Xi(t,Ri))),o&&(l||r)&&(this.chars=Xi(t,Fi));const c=this.words.length?this.words:this.chars;let d,u=0;for(let e=0,t=c.length;e<t;e++){const t=c[e],{top:i,height:s}=t.getBoundingClientRect();d&&i-d>.5*s&&u++,t.setAttribute(ji,`${u}`);const n=t.querySelectorAll(`[${ji}]`);let r=n.length;for(;r--;)n[r].setAttribute(ji,`${u}`);d=i}if(l){const e=s.createDocumentFragment(),i=new Set,a=[];for(let e=0;e<u+1;e++){const s=t.cloneNode(!0);Ui(s,e,new Set).forEach((e=>{const t=e.parentElement;t&&i.add(t),e.remove()})),a.push(s)}i.forEach(Gi);for(let t=0,i=a.length;t<i;t++)Zi(n,this.lines,a[t],e,Bi,this.debug,t);t.innerHTML="",t.appendChild(e),r&&(this.words=Xi(t,Ri)),o&&(this.chars=Xi(t,Fi))}if(this.linesOnly){const e=this.words;let t=e.length;for(;t--;){const i=e[t];i.replaceWith(i.textContent)}e.length=0}if(this.accessible&&(l||!i)){const e=s.createElement("span");e.style.cssText="position:absolute;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);width:1px;height:1px;white-space:nowrap;",e.innerHTML=this.html,t.insertBefore(e,t.firstChild),this.lines.forEach(Yi),this.words.forEach(Yi),this.chars.forEach(Yi)}return this.width=t.offsetWidth,(l||e)&&this.effects.forEach(((e,t)=>this.effectsCleanups[t]=e(this))),this}refresh(){this.split(!0)}}const Ji={split:(e,t)=>new Ki(e,t)};return e.Animatable=hi,e.Draggable=wi,e.JSAnimation=Bt,e.Scope=xi,e.ScrollObserver=Oi,e.Spring=fi,e.TextSplitter=Ki,e.Timeline=ui,e.Timer=ot,e.WAAPIAnimation=Zt,e.animate=(e,t)=>new Bt(e,t,null,0,!1).init(),e.createAnimatable=(e,t)=>new hi(e,t),e.createDraggable=(e,t)=>new wi(e,t),e.createScope=e=>new xi(e),e.createSpring=mi,e.createTimeline=e=>new ui(e).init(),e.createTimer=e=>new ot(e,null,0).init(),e.eases=bt,e.engine=Ie,e.onScroll=(e={})=>new Oi(e),e.scrollContainers=Si,e.stagger=(e,t={})=>{let i=[],s=0;const n=t.from,r=t.reversed,o=t.ease,a=!N(o),l=a&&!N(o.ease)?o.ease:a?wt(o):null,c=t.grid,d=t.axis,u=t.total,h=N(n)||0===n||"first"===n,p="center"===n,m="last"===n,g="random"===n,v=$(e),y=t.use,b=G(v?e[0]:e),_=v?G(e[1]):0,w=E.exec((v?e[1]:e)+f),x=t.start||0+(v?b:0);let T=h?0:R(n)?n:0;return(e,n,o,a)=>{const[h]=De(e),f=N(u)?o:u,S=!N(y)&&(j(y)?y(h,n,f):Xe(h,y)),E=R(S)||F(S)&&R(+S)?+S:n;if(p&&(T=(f-1)/2),m&&(T=f-1),!i.length){for(let e=0;e<f;e++){if(c){const t=p?(c[0]-1)/2:T%c[0],s=p?(c[1]-1)/2:ie(T/c[0]),n=t-e%c[0],r=s-ie(e/c[0]);let o=Q(n*n+r*r);"x"===d&&(o=-n),"y"===d&&(o=-r),i.push(o)}else i.push(J(T-e));s=ne(...i)}l&&(i=i.map((e=>l(e/s)*s))),r&&(i=i.map((e=>d?e<0?-1*e:-e:J(s-e)))),g&&(i=fe(i))}const C=v?(_-b)/s:b;let M=(a?ci(a,N(t.start)?a.iterationDuration:x):x)+(C*de(i[E],2)||0);return t.modifier&&(M=t.modifier(M)),w&&(M=`${M}${w[2]}`),M}},e.svg=je,e.text=Ji,e.utils=li,e.waapi=Kt,e}({}),Atropos=function(){"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},e.apply(this,arguments)}var t=function(e,t){return e.querySelector(t)},i=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(i){void 0!==e[i]&&(t[i]=e[i])})),t},s={alwaysActive:!1,activeOffset:50,shadowOffset:50,shadowScale:1,duration:300,rotate:!0,rotateTouch:!0,rotateXMax:15,rotateYMax:15,rotateXInvert:!1,rotateYInvert:!1,stretchX:0,stretchY:0,stretchZ:0,commonOrigin:!0,shadow:!0,highlight:!0};return function(n){void 0===n&&(n={});var r,o,a,l,c,d,u,h,p,f,m,g,v=n,y=v.el,b=v.eventsEl,_=n.isComponent,w={__atropos__:!0,params:e({},s,{onEnter:null,onLeave:null,onRotate:null},i(n||{})),destroyed:!1,isActive:!1},x=w.params,T=[];!function e(){g=requestAnimationFrame((function(){T.forEach((function(e){if("function"==typeof e)e();else{var t=e.element,i=e.prop,s=e.value;t.style[i]=s}})),T.splice(0,T.length),e()}))}();var S,E=function(e,t){T.push({element:e,prop:"transitionDuration",value:t})},C=function(e,t){T.push({element:e,prop:"transitionTimingFunction",value:t})},M=function(e,t){T.push({element:e,prop:"transform",value:t})},k=function(e,t){T.push({element:e,prop:"opacity",value:t})},A=function(e,t,i,s){return e.addEventListener(t,i,s)},I=function(e,t,i,s){return e.removeEventListener(t,i,s)},O=function(e){var t=e.rotateXPercentage,i=void 0===t?0:t,s=e.rotateYPercentage,n=void 0===s?0:s,o=e.duration,a=e.opacityOnly,l=e.easeOut;(function(e,t){return e.querySelectorAll(t)})(r,"[data-atropos-offset], [data-atropos-opacity]").forEach((function(e){E(e,o),C(e,l?"ease-out":"");var t=function(e){if(e.dataset.atroposOpacity&&"string"==typeof e.dataset.atroposOpacity)return e.dataset.atroposOpacity.split(";").map((function(e){return parseFloat(e)}))}(e);if(0===i&&0===n)a||M(e,"translate3d(0, 0, 0)"),t&&k(e,t[0]);else{var s=parseFloat(e.dataset.atroposOffset)/100;if(Number.isNaN(s)||a||M(e,"translate3d("+-n*-s+"%, "+i*-s+"%, 0)"),t){var r=t[0],c=t[1],d=Math.max(Math.abs(i),Math.abs(n));k(e,r+(c-r)*d/100)}}}))},L=function(e,t){var i=y!==b;if(c||(c=y.getBoundingClientRect()),i&&!d&&(d=b.getBoundingClientRect()),void 0===e&&void 0===t){var s=i?d:c;e=s.left+s.width/2,t=s.top+s.height/2}var n,r=0,a=0,l=c,u=l.top,p=l.left,f=l.width,m=l.height;if(i){var g=d,v=g.top,_=g.left,w=g.width,S=g.height,A=f/2+(p-_),I=m/2+(u-v),L=e-_,P=t-v;a=x.rotateYMax*(L-A)/(w-f/2)*-1,r=x.rotateXMax*(P-I)/(S-m/2),n=e-p+"px "+(t-u)+"px"}else{var z=f/2,D=m/2,$=e-p,B=t-u;a=x.rotateYMax*($-z)/(f/2)*-1,r=x.rotateXMax*(B-D)/(m/2)}r=Math.min(Math.max(-r,-x.rotateXMax),x.rotateXMax),x.rotateXInvert&&(r=-r),a=Math.min(Math.max(-a,-x.rotateYMax),x.rotateYMax),x.rotateYInvert&&(a=-a);var R,F,j=r/x.rotateXMax*100,N=a/x.rotateYMax*100,H=(i?N/100*x.stretchX:0)*(x.rotateYInvert?-1:1),W=(i?j/100*x.stretchY:0)*(x.rotateXInvert?-1:1),q=i?Math.max(Math.abs(j),Math.abs(N))/100*x.stretchZ:0;M(o,"translate3d("+H+"%, "+-W+"%, "+-q+"px) rotateX("+r+"deg) rotateY("+a+"deg)"),n&&x.commonOrigin&&(R=o,F=n,T.push({element:R,prop:"transformOrigin",value:F})),h&&(E(h,x.duration+"ms"),C(h,"ease-out"),M(h,"translate3d("+.25*-N+"%, "+.25*j+"%, 0)"),k(h,Math.max(Math.abs(j),Math.abs(N))/100)),O({rotateXPercentage:j,rotateYPercentage:N,duration:x.duration+"ms",easeOut:!0}),"function"==typeof x.onRotate&&x.onRotate(r,a)},P=function(){T.push((function(){return y.classList.add("atropos-active")})),E(o,x.duration+"ms"),C(o,"ease-out"),M(a,"translate3d(0,0, "+x.activeOffset+"px)"),E(a,x.duration+"ms"),C(a,"ease-out"),u&&(E(u,x.duration+"ms"),C(u,"ease-out")),w.isActive=!0},z=function(e){if(p=void 0,!("pointerdown"===e.type&&"mouse"===e.pointerType||"pointerenter"===e.type&&"mouse"!==e.pointerType)){if("pointerdown"===e.type&&e.preventDefault(),f=e.clientX,m=e.clientY,x.alwaysActive)return c=void 0,void(d=void 0);P(),"function"==typeof x.onEnter&&x.onEnter()}},D=function(e){!1===p&&e.cancelable&&e.preventDefault()},$=function(e){if(x.rotate&&w.isActive){if("mouse"!==e.pointerType){if(!x.rotateTouch)return;e.preventDefault()}var t=e.clientX,i=e.clientY,s=t-f,n=i-m;if("string"==typeof x.rotateTouch&&(0!==s||0!==n)&&void 0===p){if(s*s+n*n>=25){var r=180*Math.atan2(Math.abs(n),Math.abs(s))/Math.PI;p="scroll-y"===x.rotateTouch?r>45:90-r>45}!1===p&&(y.classList.add("atropos-rotate-touch"),e.cancelable&&e.preventDefault())}"mouse"!==e.pointerType&&p||L(t,i)}},B=function(e){if(c=void 0,d=void 0,w.isActive&&!(e&&"pointerup"===e.type&&"mouse"===e.pointerType||e&&"pointerleave"===e.type&&"mouse"!==e.pointerType)){if("string"==typeof x.rotateTouch&&p&&y.classList.remove("atropos-rotate-touch"),x.alwaysActive)return L(),"function"==typeof x.onRotate&&x.onRotate(0,0),void("function"==typeof x.onLeave&&x.onLeave());T.push((function(){return y.classList.remove("atropos-active")})),E(a,x.duration+"ms"),C(a,""),M(a,"translate3d(0,0, 0px)"),u&&(E(u,x.duration+"ms"),C(u,"")),h&&(E(h,x.duration+"ms"),C(h,""),M(h,"translate3d(0, 0, 0)"),k(h,0)),E(o,x.duration+"ms"),C(o,""),M(o,"translate3d(0,0,0) rotateX(0deg) rotateY(0deg)"),O({duration:x.duration+"ms"}),w.isActive=!1,"function"==typeof x.onRotate&&x.onRotate(0,0),"function"==typeof x.onLeave&&x.onLeave()}},R=function(e){var t=e.target;!b.contains(t)&&t!==b&&w.isActive&&B()};return w.destroy=function(){w.destroyed=!0,cancelAnimationFrame(g),I(document,"click",R),I(b,"pointerdown",z),I(b,"pointerenter",z),I(b,"pointermove",$),I(b,"touchmove",D),I(b,"pointerleave",B),I(b,"pointerup",B),I(b,"lostpointercapture",B),delete y.__atropos__},"string"==typeof y&&(y=t(document,y)),y&&(y.__atropos__||(void 0!==b?"string"==typeof b&&(b=t(document,b)):b=y,r=_?y.parentNode.host:y,Object.assign(w,{el:y}),o=t(y,".atropos-rotate"),a=t(y,".atropos-scale"),l=t(y,".atropos-inner"),y.__atropos__=w)),y&&b&&(x.shadow&&((u=t(y,".atropos-shadow"))||((u=document.createElement("span")).classList.add("atropos-shadow"),S=!0),M(u,"translate3d(0,0,-"+x.shadowOffset+"px) scale("+x.shadowScale+")"),S&&o.appendChild(u)),x.highlight&&function(){var e;(h=t(y,".atropos-highlight"))||((h=document.createElement("span")).classList.add("atropos-highlight"),e=!0),M(h,"translate3d(0,0,0)"),e&&l.appendChild(h)}(),x.rotateTouch&&("string"==typeof x.rotateTouch?y.classList.add("atropos-rotate-touch-"+x.rotateTouch):y.classList.add("atropos-rotate-touch")),t(r,"[data-atropos-opacity]")&&O({opacityOnly:!0}),A(document,"click",R),A(b,"pointerdown",z),A(b,"pointerenter",z),A(b,"pointermove",$),A(b,"touchmove",D),A(b,"pointerleave",B),A(b,"pointerup",B),A(b,"lostpointercapture",B),x.alwaysActive&&(P(),L())),w}}();
  8. /*!
  9. Atropos
  10. Version: 2.0.2
  11. Plugin URL: https://atroposjs.com
  12. License: Copyright 2021-2024 | Released under the MIT License
  13. !*/
  14. /*!
  15. Bootstrap
  16. Version: v5.3.7
  17. Plugin URL: https://getbootstrap.com/
  18. License: Copyright 2011-2025 The Bootstrap Authors | Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  19. !*/
  20. !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,(function(){"use strict";const e=new Map,t={set(t,i,s){e.has(t)||e.set(t,new Map);const n=e.get(t);n.has(i)||0===n.size?n.set(i,s):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,i)=>e.has(t)&&e.get(t).get(i)||null,remove(t,i){if(!e.has(t))return;const s=e.get(t);s.delete(i),0===s.size&&e.delete(t)}},i="transitionend",s=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),n=e=>{e.dispatchEvent(new Event(i))},r=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),o=e=>r(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(s(e)):null,a=e=>{if(!r(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},l=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),c=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?c(e.parentNode):null},d=()=>{},u=e=>{e.offsetHeight},h=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,p=[],f=()=>"rtl"===document.documentElement.dir,m=e=>{var t;t=()=>{const t=h();if(t){const i=e.NAME,s=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=s,e.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of p)e()})),p.push(t)):t()},g=(e,t=[],i=e)=>"function"==typeof e?e.call(...t):i,v=(e,t,s=!0)=>{if(!s)return void g(e);const r=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const s=Number.parseFloat(t),n=Number.parseFloat(i);return s||n?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let o=!1;const a=({target:s})=>{s===t&&(o=!0,t.removeEventListener(i,a),g(e))};t.addEventListener(i,a),setTimeout((()=>{o||n(t)}),r)},y=(e,t,i,s)=>{const n=e.length;let r=e.indexOf(t);return-1===r?!i&&s?e[n-1]:e[0]:(r+=i?1:-1,s&&(r=(r+n)%n),e[Math.max(0,Math.min(r,n-1))])},b=/[^.]*(?=\..*)\.|.*/,_=/\..*/,w=/::\d+$/,x={};let T=1;const S={mouseenter:"mouseover",mouseleave:"mouseout"},E=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 C(e,t){return t&&`${t}::${T++}`||e.uidEvent||T++}function M(e){const t=C(e);return e.uidEvent=t,x[t]=x[t]||{},x[t]}function k(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function A(e,t,i){const s="string"==typeof t,n=s?i:t||i;let r=P(e);return E.has(r)||(r=e),[s,n,r]}function I(e,t,i,s,n){if("string"!=typeof t||!e)return;let[r,o,a]=A(t,i,s);if(t in S){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};o=e(o)}const l=M(e),c=l[a]||(l[a]={}),d=k(c,o,r?i:null);if(d)return void(d.oneOff=d.oneOff&&n);const u=C(o,t.replace(b,"")),h=r?function(e,t,i){return function s(n){const r=e.querySelectorAll(t);for(let{target:o}=n;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return D(n,{delegateTarget:o}),s.oneOff&&z.off(e,n.type,t,i),i.apply(o,[n])}}(e,i,o):function(e,t){return function i(s){return D(s,{delegateTarget:e}),i.oneOff&&z.off(e,s.type,t),t.apply(e,[s])}}(e,o);h.delegationSelector=r?i:null,h.callable=o,h.oneOff=n,h.uidEvent=u,c[u]=h,e.addEventListener(a,h,r)}function O(e,t,i,s,n){const r=k(t[i],s,n);r&&(e.removeEventListener(i,r,Boolean(n)),delete t[i][r.uidEvent])}function L(e,t,i,s){const n=t[i]||{};for(const[r,o]of Object.entries(n))r.includes(s)&&O(e,t,i,o.callable,o.delegationSelector)}function P(e){return e=e.replace(_,""),S[e]||e}const z={on(e,t,i,s){I(e,t,i,s,!1)},one(e,t,i,s){I(e,t,i,s,!0)},off(e,t,i,s){if("string"!=typeof t||!e)return;const[n,r,o]=A(t,i,s),a=o!==t,l=M(e),c=l[o]||{},d=t.startsWith(".");if(void 0===r){if(d)for(const i of Object.keys(l))L(e,l,i,t.slice(1));for(const[i,s]of Object.entries(c)){const n=i.replace(w,"");a&&!t.includes(n)||O(e,l,o,s.callable,s.delegationSelector)}}else{if(!Object.keys(c).length)return;O(e,l,o,r,n?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const s=h();let n=null,r=!0,o=!0,a=!1;t!==P(t)&&s&&(n=s.Event(t,i),s(e).trigger(n),r=!n.isPropagationStopped(),o=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=D(new Event(t,{bubbles:r,cancelable:!0}),i);return a&&l.preventDefault(),o&&e.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function D(e,t={}){for(const[i,s]of Object.entries(t))try{e[i]=s}catch(t){Object.defineProperty(e,i,{configurable:!0,get:()=>s})}return e}function $(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function B(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const R={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${B(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${B(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const s of i){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),t[i]=$(e.dataset[s])}return t},getDataAttribute:(e,t)=>$(e.getAttribute(`data-bs-${B(t)}`))};class F{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=r(t)?R.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...r(t)?R.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[s,n]of Object.entries(t)){const t=e[s],o=r(t)?"element":null==(i=t)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${o}" but expected type "${n}".`)}var i}}class j extends F{constructor(e,i){super(),(e=o(e))&&(this._element=e,this._config=this._getConfig(i),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),z.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){v(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(o(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.7"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const N=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map((e=>s(e))).join(","):null},H={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let s=e.parentNode.closest(t);for(;s;)i.push(s),s=s.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!l(e)&&a(e)))},getSelectorFromElement(e){const t=N(e);return t&&H.findOne(t)?t:null},getElementFromSelector(e){const t=N(e);return t?H.findOne(t):null},getMultipleElementsFromSelector(e){const t=N(e);return t?H.find(t):[]}},W=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;z.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),l(this))return;const n=H.getElementFromSelector(this)||this.closest(`.${s}`);e.getOrCreateInstance(n)[t]()}))},q=".bs.alert",Y=`close${q}`,X=`closed${q}`;class V extends j{static get NAME(){return"alert"}close(){if(z.trigger(this._element,Y).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),z.trigger(this._element,X),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=V.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}W(V,"close"),m(V);const G='[data-bs-toggle="button"]';class U extends j{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=U.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}z.on(document,"click.bs.button.data-api",G,(e=>{e.preventDefault();const t=e.target.closest(G);U.getOrCreateInstance(t).toggle()})),m(U);const Q=".bs.swipe",Z=`touchstart${Q}`,K=`touchmove${Q}`,J=`touchend${Q}`,ee=`pointerdown${Q}`,te=`pointerup${Q}`,ie={endCallback:null,leftCallback:null,rightCallback:null},se={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ne extends F{constructor(e,t){super(),this._element=e,e&&ne.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ie}static get DefaultType(){return se}static get NAME(){return"swipe"}dispose(){z.off(this._element,Q)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&g(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(z.on(this._element,ee,(e=>this._start(e))),z.on(this._element,te,(e=>this._end(e))),this._element.classList.add("pointer-event")):(z.on(this._element,Z,(e=>this._start(e))),z.on(this._element,K,(e=>this._move(e))),z.on(this._element,J,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const re=".bs.carousel",oe=".data-api",ae="next",le="prev",ce="left",de="right",ue=`slide${re}`,he=`slid${re}`,pe=`keydown${re}`,fe=`mouseenter${re}`,me=`mouseleave${re}`,ge=`dragstart${re}`,ve=`load${re}${oe}`,ye=`click${re}${oe}`,be="carousel",_e="active",we=".active",xe=".carousel-item",Te=we+xe,Se={ArrowLeft:de,ArrowRight:ce},Ee={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ce={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Me extends j{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=H.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===be&&this.cycle()}static get Default(){return Ee}static get DefaultType(){return Ce}static get NAME(){return"carousel"}next(){this._slide(ae)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(le)}pause(){this._isSliding&&n(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?z.one(this._element,he,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void z.one(this._element,he,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const s=e>i?ae:le;this._slide(s,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&z.on(this._element,pe,(e=>this._keydown(e))),"hover"===this._config.pause&&(z.on(this._element,fe,(()=>this.pause())),z.on(this._element,me,(()=>this._maybeEnableCycle()))),this._config.touch&&ne.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of H.find(".carousel-item img",this._element))z.on(e,ge,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(ce)),rightCallback:()=>this._slide(this._directionToOrder(de)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new ne(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Se[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=H.findOne(we,this._indicatorsElement);t.classList.remove(_e),t.removeAttribute("aria-current");const i=H.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(_e),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),s=e===ae,n=t||y(this._getItems(),i,s,this._config.wrap);if(n===i)return;const r=this._getItemIndex(n),o=t=>z.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:r});if(o(ue).defaultPrevented)return;if(!i||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=n;const l=s?"carousel-item-start":"carousel-item-end",c=s?"carousel-item-next":"carousel-item-prev";n.classList.add(c),u(n),i.classList.add(l),n.classList.add(l);this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(_e),i.classList.remove(_e,c,l),this._isSliding=!1,o(he)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return H.findOne(Te,this._element)}_getItems(){return H.find(xe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return f()?e===ce?le:ae:e===ce?ae:le}_orderToDirection(e){return f()?e===le?ce:de:e===le?de:ce}static jQueryInterface(e){return this.each((function(){const t=Me.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}z.on(document,ye,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=H.getElementFromSelector(this);if(!t||!t.classList.contains(be))return;e.preventDefault();const i=Me.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===R.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),z.on(window,ve,(()=>{const e=H.find('[data-bs-ride="carousel"]');for(const t of e)Me.getOrCreateInstance(t)})),m(Me);const ke=".bs.collapse",Ae=`show${ke}`,Ie=`shown${ke}`,Oe=`hide${ke}`,Le=`hidden${ke}`,Pe=`click${ke}.data-api`,ze="show",De="collapse",$e="collapsing",Be=`:scope .${De} .${De}`,Re='[data-bs-toggle="collapse"]',Fe={parent:null,toggle:!0},je={parent:"(null|element)",toggle:"boolean"};class Ne extends j{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=H.find(Re);for(const e of i){const t=H.getSelectorFromElement(e),i=H.find(t).filter((e=>e===this._element));null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Fe}static get DefaultType(){return je}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>Ne.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(z.trigger(this._element,Ae).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(De),this._element.classList.add($e),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove($e),this._element.classList.add(De,ze),this._element.style[t]="",z.trigger(this._element,Ie)}),this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(z.trigger(this._element,Oe).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,u(this._element),this._element.classList.add($e),this._element.classList.remove(De,ze);for(const e of this._triggerArray){const t=H.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove($e),this._element.classList.add(De),z.trigger(this._element,Le)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(ze)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=o(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Re);for(const t of e){const e=H.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=H.find(Be,this._config.parent);return H.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=Ne.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}z.on(document,Pe,Re,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of H.getMultipleElementsFromSelector(this))Ne.getOrCreateInstance(e,{toggle:!1}).toggle()})),m(Ne);var He="top",We="bottom",qe="right",Ye="left",Xe="auto",Ve=[He,We,qe,Ye],Ge="start",Ue="end",Qe="clippingParents",Ze="viewport",Ke="popper",Je="reference",et=Ve.reduce((function(e,t){return e.concat([t+"-"+Ge,t+"-"+Ue])}),[]),tt=[].concat(Ve,[Xe]).reduce((function(e,t){return e.concat([t,t+"-"+Ge,t+"-"+Ue])}),[]),it="beforeRead",st="read",nt="afterRead",rt="beforeMain",ot="main",at="afterMain",lt="beforeWrite",ct="write",dt="afterWrite",ut=[it,st,nt,rt,ot,at,lt,ct,dt];function ht(e){return e?(e.nodeName||"").toLowerCase():null}function pt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ft(e){return e instanceof pt(e).Element||e instanceof Element}function mt(e){return e instanceof pt(e).HTMLElement||e instanceof HTMLElement}function gt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof pt(e).ShadowRoot||e instanceof ShadowRoot)}const vt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},n=t.elements[e];mt(n)&&ht(n)&&(Object.assign(n.style,i),Object.keys(s).forEach((function(e){var t=s[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],n=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});mt(s)&&ht(s)&&(Object.assign(s.style,r),Object.keys(n).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]};function yt(e){return e.split("-")[0]}var bt=Math.max,_t=Math.min,wt=Math.round;function xt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Tt(){return!/^((?!chrome|android).)*safari/i.test(xt())}function St(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var s=e.getBoundingClientRect(),n=1,r=1;t&&mt(e)&&(n=e.offsetWidth>0&&wt(s.width)/e.offsetWidth||1,r=e.offsetHeight>0&&wt(s.height)/e.offsetHeight||1);var o=(ft(e)?pt(e):window).visualViewport,a=!Tt()&&i,l=(s.left+(a&&o?o.offsetLeft:0))/n,c=(s.top+(a&&o?o.offsetTop:0))/r,d=s.width/n,u=s.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Et(e){var t=St(e),i=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:s}}function Ct(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&gt(i)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Mt(e){return pt(e).getComputedStyle(e)}function kt(e){return["table","td","th"].indexOf(ht(e))>=0}function At(e){return((ft(e)?e.ownerDocument:e.document)||window.document).documentElement}function It(e){return"html"===ht(e)?e:e.assignedSlot||e.parentNode||(gt(e)?e.host:null)||At(e)}function Ot(e){return mt(e)&&"fixed"!==Mt(e).position?e.offsetParent:null}function Lt(e){for(var t=pt(e),i=Ot(e);i&&kt(i)&&"static"===Mt(i).position;)i=Ot(i);return i&&("html"===ht(i)||"body"===ht(i)&&"static"===Mt(i).position)?t:i||function(e){var t=/firefox/i.test(xt());if(/Trident/i.test(xt())&&mt(e)&&"fixed"===Mt(e).position)return null;var i=It(e);for(gt(i)&&(i=i.host);mt(i)&&["html","body"].indexOf(ht(i))<0;){var s=Mt(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(e)||t}function Pt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zt(e,t,i){return bt(e,_t(t,i))}function Dt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function $t(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}const Bt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,s=e.name,n=e.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,a=yt(i.placement),l=Pt(a),c=[Ye,qe].indexOf(a)>=0?"height":"width";if(r&&o){var d=function(e,t){return Dt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:$t(e,Ve))}(n.padding,i),u=Et(r),h="y"===l?He:Ye,p="y"===l?We:qe,f=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],m=o[l]-i.rects.reference[l],g=Lt(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=d[h],_=v-u[c]-d[p],w=v/2-u[c]/2+y,x=zt(b,w,_),T=l;i.modifiersData[s]=((t={})[T]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,i=e.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&&Ct(t.elements.popper,s)&&(t.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rt(e){return e.split("-")[1]}var Ft={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jt(e){var t,i=e.popper,s=e.popperRect,n=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=o.x,p=void 0===h?0:h,f=o.y,m=void 0===f?0:f,g="function"==typeof d?d({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=Ye,_=He,w=window;if(c){var x=Lt(i),T="clientHeight",S="clientWidth";if(x===pt(i)&&"static"!==Mt(x=At(i)).position&&"absolute"===a&&(T="scrollHeight",S="scrollWidth"),n===He||(n===Ye||n===qe)&&r===Ue)_=We,m-=(u&&x===w&&w.visualViewport?w.visualViewport.height:x[T])-s.height,m*=l?1:-1;if(n===Ye||(n===He||n===We)&&r===Ue)b=qe,p-=(u&&x===w&&w.visualViewport?w.visualViewport.width:x[S])-s.width,p*=l?1:-1}var E,C=Object.assign({position:a},c&&Ft),M=!0===d?function(e,t){var i=e.x,s=e.y,n=t.devicePixelRatio||1;return{x:wt(i*n)/n||0,y:wt(s*n)/n||0}}({x:p,y:m},pt(i)):{x:p,y:m};return p=M.x,m=M.y,l?Object.assign({},C,((E={})[_]=y?"0":"",E[b]=v?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",E)):Object.assign({},C,((t={})[_]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}const Nt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,s=i.gpuAcceleration,n=void 0===s||s,r=i.adaptive,o=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:yt(t.placement),variation:Rt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,jt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,jt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Ht={passive:!0};const Wt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,s=e.options,n=s.scroll,r=void 0===n||n,o=s.resize,a=void 0===o||o,l=pt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",i.update,Ht)})),a&&l.addEventListener("resize",i.update,Ht),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",i.update,Ht)})),a&&l.removeEventListener("resize",i.update,Ht)}},data:{}};var qt={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(e){return e.replace(/left|right|bottom|top/g,(function(e){return qt[e]}))}var Xt={start:"end",end:"start"};function Vt(e){return e.replace(/start|end/g,(function(e){return Xt[e]}))}function Gt(e){var t=pt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ut(e){return St(At(e)).left+Gt(e).scrollLeft}function Qt(e){var t=Mt(e),i=t.overflow,s=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function Zt(e){return["html","body","#document"].indexOf(ht(e))>=0?e.ownerDocument.body:mt(e)&&Qt(e)?e:Zt(It(e))}function Kt(e,t){var i;void 0===t&&(t=[]);var s=Zt(e),n=s===(null==(i=e.ownerDocument)?void 0:i.body),r=pt(s),o=n?[r].concat(r.visualViewport||[],Qt(s)?s:[]):s,a=t.concat(o);return n?a:a.concat(Kt(It(o)))}function Jt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ei(e,t,i){return t===Ze?Jt(function(e,t){var i=pt(e),s=At(e),n=i.visualViewport,r=s.clientWidth,o=s.clientHeight,a=0,l=0;if(n){r=n.width,o=n.height;var c=Tt();(c||!c&&"fixed"===t)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:r,height:o,x:a+Ut(e),y:l}}(e,i)):ft(t)?function(e,t){var i=St(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):Jt(function(e){var t,i=At(e),s=Gt(e),n=null==(t=e.ownerDocument)?void 0:t.body,r=bt(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=bt(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-s.scrollLeft+Ut(e),l=-s.scrollTop;return"rtl"===Mt(n||i).direction&&(a+=bt(i.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(At(e)))}function ti(e,t,i,s){var n="clippingParents"===t?function(e){var t=Kt(It(e)),i=["absolute","fixed"].indexOf(Mt(e).position)>=0&&mt(e)?Lt(e):e;return ft(i)?t.filter((function(e){return ft(e)&&Ct(e,i)&&"body"!==ht(e)})):[]}(e):[].concat(t),r=[].concat(n,[i]),o=r[0],a=r.reduce((function(t,i){var n=ei(e,i,s);return t.top=bt(n.top,t.top),t.right=_t(n.right,t.right),t.bottom=_t(n.bottom,t.bottom),t.left=bt(n.left,t.left),t}),ei(e,o,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ii(e){var t,i=e.reference,s=e.element,n=e.placement,r=n?yt(n):null,o=n?Rt(n):null,a=i.x+i.width/2-s.width/2,l=i.y+i.height/2-s.height/2;switch(r){case He:t={x:a,y:i.y-s.height};break;case We:t={x:a,y:i.y+i.height};break;case qe:t={x:i.x+i.width,y:l};break;case Ye:t={x:i.x-s.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?Pt(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case Ge:t[c]=t[c]-(i[d]/2-s[d]/2);break;case Ue:t[c]=t[c]+(i[d]/2-s[d]/2)}}return t}function si(e,t){void 0===t&&(t={});var i=t,s=i.placement,n=void 0===s?e.placement:s,r=i.strategy,o=void 0===r?e.strategy:r,a=i.boundary,l=void 0===a?Qe:a,c=i.rootBoundary,d=void 0===c?Ze:c,u=i.elementContext,h=void 0===u?Ke:u,p=i.altBoundary,f=void 0!==p&&p,m=i.padding,g=void 0===m?0:m,v=Dt("number"!=typeof g?g:$t(g,Ve)),y=h===Ke?Je:Ke,b=e.rects.popper,_=e.elements[f?y:h],w=ti(ft(_)?_:_.contextElement||At(e.elements.popper),l,d,o),x=St(e.elements.reference),T=ii({reference:x,element:b,placement:n}),S=Jt(Object.assign({},b,T)),E=h===Ke?S:x,C={top:w.top-E.top+v.top,bottom:E.bottom-w.bottom+v.bottom,left:w.left-E.left+v.left,right:E.right-w.right+v.right},M=e.modifiersData.offset;if(h===Ke&&M){var k=M[n];Object.keys(C).forEach((function(e){var t=[qe,We].indexOf(e)>=0?1:-1,i=[He,We].indexOf(e)>=0?"y":"x";C[e]+=k[i]*t}))}return C}function ni(e,t){void 0===t&&(t={});var i=t,s=i.placement,n=i.boundary,r=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?tt:l,d=Rt(s),u=d?a?et:et.filter((function(e){return Rt(e)===d})):Ve,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var p=h.reduce((function(t,i){return t[i]=si(e,{placement:i,boundary:n,rootBoundary:r,padding:o})[yt(i)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}const ri={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var n=i.mainAxis,r=void 0===n||n,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,d=i.boundary,u=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,m=i.allowedAutoPlacements,g=t.options.placement,v=yt(g),y=l||(v===g||!f?[Yt(g)]:function(e){if(yt(e)===Xe)return[];var t=Yt(e);return[Vt(e),t,Vt(t)]}(g)),b=[g].concat(y).reduce((function(e,i){return e.concat(yt(i)===Xe?ni(t,{placement:i,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)}),[]),_=t.rects.reference,w=t.rects.popper,x=new Map,T=!0,S=b[0],E=0;E<b.length;E++){var C=b[E],M=yt(C),k=Rt(C)===Ge,A=[He,We].indexOf(M)>=0,I=A?"width":"height",O=si(t,{placement:C,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),L=A?k?qe:Ye:k?We:He;_[I]>w[I]&&(L=Yt(L));var P=Yt(L),z=[];if(r&&z.push(O[M]<=0),a&&z.push(O[L]<=0,O[P]<=0),z.every((function(e){return e}))){S=C,T=!1;break}x.set(C,z)}if(T)for(var D=function(e){var t=b.find((function(t){var i=x.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},$=f?3:1;$>0;$--){if("break"===D($))break}t.placement!==S&&(t.modifiersData[s]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function oi(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ai(e){return[He,qe,We,Ye].some((function(t){return e[t]>=0}))}const li={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,s=t.rects.reference,n=t.rects.popper,r=t.modifiersData.preventOverflow,o=si(t,{elementContext:"reference"}),a=si(t,{altBoundary:!0}),l=oi(o,s),c=oi(a,n,r),d=ai(l),u=ai(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}};const ci={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,s=e.name,n=i.offset,r=void 0===n?[0,0]:n,o=tt.reduce((function(e,i){return e[i]=function(e,t,i){var s=yt(e),n=[Ye,He].indexOf(s)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=r[0],a=r[1];return o=o||0,a=(a||0)*n,[Ye,qe].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}(i,t.rects,r),e}),{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=o}};const di={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=ii({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};const ui={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,s=e.name,n=i.mainAxis,r=void 0===n||n,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,u=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,m=void 0===f?0:f,g=si(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=yt(t.placement),y=Rt(t.placement),b=!y,_=Pt(v),w="x"===_?"y":"x",x=t.modifiersData.popperOffsets,T=t.rects.reference,S=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(x){if(r){var A,I="y"===_?He:Ye,O="y"===_?We:qe,L="y"===_?"height":"width",P=x[_],z=P+g[I],D=P-g[O],$=p?-S[L]/2:0,B=y===Ge?T[L]:S[L],R=y===Ge?-S[L]:-T[L],F=t.elements.arrow,j=p&&F?Et(F):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=N[I],W=N[O],q=zt(0,T[L],j[L]),Y=b?T[L]/2-$-q-H-C.mainAxis:B-q-H-C.mainAxis,X=b?-T[L]/2+$+q+W+C.mainAxis:R+q+W+C.mainAxis,V=t.elements.arrow&&Lt(t.elements.arrow),G=V?"y"===_?V.clientTop||0:V.clientLeft||0:0,U=null!=(A=null==M?void 0:M[_])?A:0,Q=P+X-U,Z=zt(p?_t(z,P+Y-U-G):z,P,p?bt(D,Q):D);x[_]=Z,k[_]=Z-P}if(a){var K,J="x"===_?He:Ye,ee="x"===_?We:qe,te=x[w],ie="y"===w?"height":"width",se=te+g[J],ne=te-g[ee],re=-1!==[He,Ye].indexOf(v),oe=null!=(K=null==M?void 0:M[w])?K:0,ae=re?se:te-T[ie]-S[ie]-oe+C.altAxis,le=re?te+T[ie]+S[ie]-oe-C.altAxis:ne,ce=p&&re?function(e,t,i){var s=zt(e,t,i);return s>i?i:s}(ae,te,le):zt(p?ae:se,te,p?le:ne);x[w]=ce,k[w]=ce-te}t.modifiersData[s]=k}},requiresIfExists:["offset"]};function hi(e,t,i){void 0===i&&(i=!1);var s,n,r=mt(t),o=mt(t)&&function(e){var t=e.getBoundingClientRect(),i=wt(t.width)/e.offsetWidth||1,s=wt(t.height)/e.offsetHeight||1;return 1!==i||1!==s}(t),a=At(t),l=St(e,o,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!i)&&(("body"!==ht(t)||Qt(a))&&(c=(s=t)!==pt(s)&&mt(s)?{scrollLeft:(n=s).scrollLeft,scrollTop:n.scrollTop}:Gt(s)),mt(t)?((d=St(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Ut(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function pi(e){var t=new Map,i=new Set,s=[];function n(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var s=t.get(e);s&&n(s)}})),s.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||n(e)})),s}var fi={placement:"bottom",modifiers:[],strategy:"absolute"};function mi(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function gi(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,s=void 0===i?[]:i,n=t.defaultOptions,r=void 0===n?fi:n;return function(e,t,i){void 0===i&&(i=r);var n,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},fi,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var n="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},r,a.options,n),a.scrollParents={reference:ft(e)?Kt(e):e.contextElement?Kt(e.contextElement):[],popper:Kt(t)};var o,c,h=function(e){var t=pi(e);return ut.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((o=[].concat(s,a.options.modifiers),c=o.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,s=void 0===i?{}:i,n=e.effect;if("function"==typeof n){var r=n({state:a,name:t,instance:d,options:s}),o=function(){};l.push(r||o)}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(mi(t,i)){a.rects={reference:hi(t,Lt(i),"fixed"===a.options.strategy),popper:Et(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var s=0;s<a.orderedModifiers.length;s++)if(!0!==a.reset){var n=a.orderedModifiers[s],r=n.fn,o=n.options,l=void 0===o?{}:o,u=n.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,s=-1}}},update:(n=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(n())}))}))),o}),destroy:function(){u(),c=!0}};if(!mi(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),d}}var vi=gi(),yi=gi({defaultModifiers:[Wt,di,Nt,vt]}),bi=gi({defaultModifiers:[Wt,di,Nt,vt,ci,ri,ui,Bt,li]});const _i=Object.freeze(Object.defineProperty({__proto__:null,afterMain:at,afterRead:nt,afterWrite:dt,applyStyles:vt,arrow:Bt,auto:Xe,basePlacements:Ve,beforeMain:rt,beforeRead:it,beforeWrite:lt,bottom:We,clippingParents:Qe,computeStyles:Nt,createPopper:bi,createPopperBase:vi,createPopperLite:yi,detectOverflow:si,end:Ue,eventListeners:Wt,flip:ri,hide:li,left:Ye,main:ot,modifierPhases:ut,offset:ci,placements:tt,popper:Ke,popperGenerator:gi,popperOffsets:di,preventOverflow:ui,read:st,reference:Je,right:qe,start:Ge,top:He,variationPlacements:et,viewport:Ze,write:ct},Symbol.toStringTag,{value:"Module"})),wi="dropdown",xi=".bs.dropdown",Ti=".data-api",Si="ArrowUp",Ei="ArrowDown",Ci=`hide${xi}`,Mi=`hidden${xi}`,ki=`show${xi}`,Ai=`shown${xi}`,Ii=`click${xi}${Ti}`,Oi=`keydown${xi}${Ti}`,Li=`keyup${xi}${Ti}`,Pi="show",zi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Di=`${zi}.${Pi}`,$i=".dropdown-menu",Bi=f()?"top-end":"top-start",Ri=f()?"top-start":"top-end",Fi=f()?"bottom-end":"bottom-start",ji=f()?"bottom-start":"bottom-end",Ni=f()?"left-start":"right-start",Hi=f()?"right-start":"left-start",Wi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},qi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Yi extends j{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=H.next(this._element,$i)[0]||H.prev(this._element,$i)[0]||H.findOne($i,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Wi}static get DefaultType(){return qi}static get NAME(){return wi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!z.trigger(this._element,ki,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))z.on(e,"mouseover",d);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Pi),this._element.classList.add(Pi),z.trigger(this._element,Ai,e)}}hide(){if(l(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!z.trigger(this._element,Ci,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))z.off(e,"mouseover",d);this._popper&&this._popper.destroy(),this._menu.classList.remove(Pi),this._element.classList.remove(Pi),this._element.setAttribute("aria-expanded","false"),R.removeDataAttribute(this._menu,"popper"),z.trigger(this._element,Mi,e),this._element.focus()}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!r(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${wi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===_i)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:r(this._config.reference)?e=o(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=bi(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Pi)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Ni;if(e.classList.contains("dropstart"))return Hi;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Ri:Bi:t?ji:Fi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(R.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...g(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const i=H.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>a(e)));i.length&&y(i,t,e===Ei,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Yi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=H.find(Di);for(const i of t){const t=Yi.getInstance(i);if(!t||!1===t._config.autoClose)continue;const s=e.composedPath(),n=s.includes(t._menu);if(s.includes(t._element)||"inside"===t._config.autoClose&&!n||"outside"===t._config.autoClose&&n)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const r={relatedTarget:t._element};"click"===e.type&&(r.clickEvent=e),t._completeHide(r)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,s=[Si,Ei].includes(e.key);if(!s&&!i)return;if(t&&!i)return;e.preventDefault();const n=this.matches(zi)?this:H.prev(this,zi)[0]||H.next(this,zi)[0]||H.findOne(zi,e.delegateTarget.parentNode),r=Yi.getOrCreateInstance(n);if(s)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),n.focus())}}z.on(document,Oi,zi,Yi.dataApiKeydownHandler),z.on(document,Oi,$i,Yi.dataApiKeydownHandler),z.on(document,Ii,Yi.clearMenus),z.on(document,Li,Yi.clearMenus),z.on(document,Ii,zi,(function(e){e.preventDefault(),Yi.getOrCreateInstance(this).toggle()})),m(Yi);const Xi="backdrop",Vi="show",Gi=`mousedown.bs.${Xi}`,Ui={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Qi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Zi extends F{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Ui}static get DefaultType(){return Qi}static get NAME(){return Xi}show(e){if(!this._config.isVisible)return void g(e);this._append();const t=this._getElement();this._config.isAnimated&&u(t),t.classList.add(Vi),this._emulateAnimation((()=>{g(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Vi),this._emulateAnimation((()=>{this.dispose(),g(e)}))):g(e)}dispose(){this._isAppended&&(z.off(this._element,Gi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=o(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),z.on(e,Gi,(()=>{g(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){v(e,this._getElement(),this._config.isAnimated)}}const Ki=".bs.focustrap",Ji=`focusin${Ki}`,es=`keydown.tab${Ki}`,ts="backward",is={autofocus:!0,trapElement:null},ss={autofocus:"boolean",trapElement:"element"};class ns extends F{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return is}static get DefaultType(){return ss}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),z.off(document,Ki),z.on(document,Ji,(e=>this._handleFocusin(e))),z.on(document,es,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,z.off(document,Ki))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=H.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===ts?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ts:"forward")}}const rs=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",os=".sticky-top",as="padding-right",ls="margin-right";class cs{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,as,(t=>t+e)),this._setElementAttributes(rs,as,(t=>t+e)),this._setElementAttributes(os,ls,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,as),this._resetElementAttributes(rs,as),this._resetElementAttributes(os,ls)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const s=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+s)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&R.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=R.getDataAttribute(e,t);null!==i?(R.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(r(e))t(e);else for(const i of H.find(e,this._element))t(i)}}const ds=".bs.modal",us=`hide${ds}`,hs=`hidePrevented${ds}`,ps=`hidden${ds}`,fs=`show${ds}`,ms=`shown${ds}`,gs=`resize${ds}`,vs=`click.dismiss${ds}`,ys=`mousedown.dismiss${ds}`,bs=`keydown.dismiss${ds}`,_s=`click${ds}.data-api`,ws="modal-open",xs="show",Ts="modal-static",Ss={backdrop:!0,focus:!0,keyboard:!0},Es={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Cs extends j{constructor(e,t){super(e,t),this._dialog=H.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new cs,this._addEventListeners()}static get Default(){return Ss}static get DefaultType(){return Es}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;z.trigger(this._element,fs,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ws),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;z.trigger(this._element,us).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(xs),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){z.off(window,ds),z.off(this._dialog,ds),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Zi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ns({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||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;const t=H.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),u(this._element),this._element.classList.add(xs);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,z.trigger(this._element,ms,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){z.on(this._element,bs,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),z.on(window,gs,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),z.on(this._element,ys,(e=>{z.one(this._element,vs,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_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(ws),this._resetAdjustments(),this._scrollBar.reset(),z.trigger(this._element,ps)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(z.trigger(this._element,hs).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Ts)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ts),this._queueCallback((()=>{this._element.classList.remove(Ts),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const e=f()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=f()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=Cs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}z.on(document,_s,'[data-bs-toggle="modal"]',(function(e){const t=H.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),z.one(t,fs,(e=>{e.defaultPrevented||z.one(t,ps,(()=>{a(this)&&this.focus()}))}));const i=H.findOne(".modal.show");i&&Cs.getInstance(i).hide();Cs.getOrCreateInstance(t).toggle(this)})),W(Cs),m(Cs);const Ms=".bs.offcanvas",ks=".data-api",As=`load${Ms}${ks}`,Is="show",Os="showing",Ls="hiding",Ps=".offcanvas.show",zs=`show${Ms}`,Ds=`shown${Ms}`,$s=`hide${Ms}`,Bs=`hidePrevented${Ms}`,Rs=`hidden${Ms}`,Fs=`resize${Ms}`,js=`click${Ms}${ks}`,Ns=`keydown.dismiss${Ms}`,Hs={backdrop:!0,keyboard:!0,scroll:!1},Ws={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class qs extends j{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Hs}static get DefaultType(){return Ws}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(z.trigger(this._element,zs,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new cs).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Os);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Is),this._element.classList.remove(Os),z.trigger(this._element,Ds,{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(z.trigger(this._element,$s).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ls),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(Is,Ls),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new cs).reset(),z.trigger(this._element,Rs)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Zi({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():z.trigger(this._element,Bs)}:null})}_initializeFocusTrap(){return new ns({trapElement:this._element})}_addEventListeners(){z.on(this._element,Ns,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():z.trigger(this._element,Bs))}))}static jQueryInterface(e){return this.each((function(){const t=qs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}z.on(document,js,'[data-bs-toggle="offcanvas"]',(function(e){const t=H.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this))return;z.one(t,Rs,(()=>{a(this)&&this.focus()}));const i=H.findOne(Ps);i&&i!==t&&qs.getInstance(i).hide();qs.getOrCreateInstance(t).toggle(this)})),z.on(window,As,(()=>{for(const e of H.find(Ps))qs.getOrCreateInstance(e).show()})),z.on(window,Fs,(()=>{for(const e of H.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&qs.getOrCreateInstance(e).hide()})),W(qs),m(qs);const Ys={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},Xs=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Vs=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Gs=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Xs.has(i)||Boolean(Vs.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(i)))};const Us={allowList:Ys,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Qs={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Zs={entry:"(string|element|function|null)",selector:"(string|element)"};class Ks extends F{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Us}static get DefaultType(){return Qs}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,i]of Object.entries(this._config.content))this._setContent(e,i,t);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},Zs)}_setContent(e,t,i){const s=H.findOne(i,e);s&&((t=this._resolvePossibleFunction(t))?r(t)?this._putElementInTemplate(o(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const s=(new window.DOMParser).parseFromString(e,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(const e of n){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue}const s=[].concat(...e.attributes),n=[].concat(t["*"]||[],t[i]||[]);for(const t of s)Gs(t,n)||e.removeAttribute(t.nodeName)}return s.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return g(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Js=new Set(["sanitize","allowList","sanitizeFn"]),en="fade",tn="show",sn=".modal",nn="hide.bs.modal",rn="hover",on="focus",an="click",ln={AUTO:"auto",TOP:"top",RIGHT:f()?"left":"right",BOTTOM:"bottom",LEFT:f()?"right":"left"},cn={allowList:Ys,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},dn={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class un extends j{constructor(e,t){if(void 0===_i)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return cn}static get DefaultType(){return dn}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),z.off(this._element.closest(sn),nn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),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 e=z.trigger(this._element,this.constructor.eventName("show")),t=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),z.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(tn),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))z.on(e,"mouseover",d);this._queueCallback((()=>{z.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(z.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(tn),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))z.off(e,"mouseover",d);this._activeTrigger[an]=!1,this._activeTrigger[on]=!1,this._activeTrigger[rn]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),z.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(en,tn),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(en),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Ks({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(en)}_isShown(){return this.tip&&this.tip.classList.contains(tn)}_createPopper(e){const t=g(this._config.placement,[this,e,this._element]),i=ln[t.toUpperCase()];return bi(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return g(e,[this._element,this._element])}_getPopperConfig(e){const t={placement:e,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:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...g(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)z.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[an]=!(t._isShown()&&t._activeTrigger[an]),t.toggle()}));else if("manual"!==t){const e=t===rn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===rn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");z.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?on:rn]=!0,t._enter()})),z.on(this._element,i,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?on:rn]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},z.on(this._element.closest(sn),nn,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=R.getDataAttributes(this._element);for(const e of Object.keys(t))Js.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:o(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,i]of Object.entries(this._config))this.constructor.Default[t]!==i&&(e[t]=i);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=un.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(un);const hn={...un.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},pn={...un.DefaultType,content:"(null|string|element|function)"};class fn extends un{static get Default(){return hn}static get DefaultType(){return pn}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=fn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(fn);const mn=".bs.scrollspy",gn=`activate${mn}`,vn=`click${mn}`,yn=`load${mn}.data-api`,bn="active",_n="[href]",wn=".nav-link",xn=`${wn}, .nav-item > ${wn}, .list-group-item`,Tn={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Sn={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class En extends j{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Tn}static get DefaultType(){return Sn}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=o(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(z.off(this._config.target,vn),z.on(this._config.target,vn,_n,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:s,behavior:"smooth"});i.scrollTop=s}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const e=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&e){if(i(r),!s)return}else n||e||i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=H.find(_n,this._config.target);for(const t of e){if(!t.hash||l(t))continue;const e=H.findOne(decodeURI(t.hash),this._element);a(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(bn),this._activateParents(e),z.trigger(this._element,gn,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))H.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(bn);else for(const t of H.parents(e,".nav, .list-group"))for(const e of H.prev(t,xn))e.classList.add(bn)}_clearActiveClass(e){e.classList.remove(bn);const t=H.find(`${_n}.${bn}`,e);for(const e of t)e.classList.remove(bn)}static jQueryInterface(e){return this.each((function(){const t=En.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}z.on(window,yn,(()=>{for(const e of H.find('[data-bs-spy="scroll"]'))En.getOrCreateInstance(e)})),m(En);const Cn=".bs.tab",Mn=`hide${Cn}`,kn=`hidden${Cn}`,An=`show${Cn}`,In=`shown${Cn}`,On=`click${Cn}`,Ln=`keydown${Cn}`,Pn=`load${Cn}`,zn="ArrowLeft",Dn="ArrowRight",$n="ArrowUp",Bn="ArrowDown",Rn="Home",Fn="End",jn="active",Nn="fade",Hn="show",Wn=".dropdown-toggle",qn=`:not(${Wn})`,Yn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Xn=`${`.nav-link${qn}, .list-group-item${qn}, [role="tab"]${qn}`}, ${Yn}`,Vn=`.${jn}[data-bs-toggle="tab"], .${jn}[data-bs-toggle="pill"], .${jn}[data-bs-toggle="list"]`;class Gn extends j{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),z.on(this._element,Ln,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?z.trigger(t,Mn,{relatedTarget:e}):null;z.trigger(e,An,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(jn),this._activate(H.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),z.trigger(e,In,{relatedTarget:t})):e.classList.add(Hn)}),e,e.classList.contains(Nn))}_deactivate(e,t){if(!e)return;e.classList.remove(jn),e.blur(),this._deactivate(H.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),z.trigger(e,kn,{relatedTarget:t})):e.classList.remove(Hn)}),e,e.classList.contains(Nn))}_keydown(e){if(![zn,Dn,$n,Bn,Rn,Fn].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!l(e)));let i;if([Rn,Fn].includes(e.key))i=t[e.key===Rn?0:t.length-1];else{const s=[Dn,Bn].includes(e.key);i=y(t,e.target,s,!0)}i&&(i.focus({preventScroll:!0}),Gn.getOrCreateInstance(i).show())}_getChildren(){return H.find(Xn,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=H.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;const s=(e,s)=>{const n=H.findOne(e,i);n&&n.classList.toggle(s,t)};s(Wn,jn),s(".dropdown-menu",Hn),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(jn)}_getInnerElement(e){return e.matches(Xn)?e:H.findOne(Xn,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Gn.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}z.on(document,On,Yn,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this)||Gn.getOrCreateInstance(this).show()})),z.on(window,Pn,(()=>{for(const e of H.find(Vn))Gn.getOrCreateInstance(e)})),m(Gn);const Un=".bs.toast",Qn=`mouseover${Un}`,Zn=`mouseout${Un}`,Kn=`focusin${Un}`,Jn=`focusout${Un}`,er=`hide${Un}`,tr=`hidden${Un}`,ir=`show${Un}`,sr=`shown${Un}`,nr="hide",rr="show",or="showing",ar={animation:"boolean",autohide:"boolean",delay:"number"},lr={animation:!0,autohide:!0,delay:5e3};class cr extends j{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return lr}static get DefaultType(){return ar}static get NAME(){return"toast"}show(){if(z.trigger(this._element,ir).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(nr),u(this._element),this._element.classList.add(rr,or),this._queueCallback((()=>{this._element.classList.remove(or),z.trigger(this._element,sr),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(z.trigger(this._element,er).defaultPrevented)return;this._element.classList.add(or),this._queueCallback((()=>{this._element.classList.add(nr),this._element.classList.remove(or,rr),z.trigger(this._element,tr)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rr),super.dispose()}isShown(){return this._element.classList.contains(rr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){z.on(this._element,Qn,(e=>this._onInteraction(e,!0))),z.on(this._element,Zn,(e=>this._onInteraction(e,!1))),z.on(this._element,Kn,(e=>this._onInteraction(e,!0))),z.on(this._element,Jn,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=cr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}W(cr),m(cr);return{Alert:V,Button:U,Carousel:Me,Collapse:Ne,Dropdown:Yi,Modal:Cs,Offcanvas:qs,Popover:fn,ScrollSpy:En,Tab:Gn,Toast:cr,Tooltip:un}})),
  21. /*!
  22. GSAP
  23. Version: 3.13.0
  24. Plugin URL: https://gsap.com
  25. License: Copyright 2025, GreenSock. All rights reserved. | Subject to the terms at https://gsap.com/standard-license or for Club GreenSock members, the agreement issued with that membership. | author: Jack Doyle, jack@greensock.com
  26. !*/
  27. function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,(function(e){"use strict";function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
  28. /*!
  29. * GSAP 3.13.0
  30. * https://gsap.com
  31. *
  32. * @license Copyright 2008-2025, GreenSock. All rights reserved.
  33. * Subject to the terms at https://gsap.com/standard-license
  34. * @author: Jack Doyle, jack@greensock.com
  35. */var s,n,r,o,a,l,c,d,u,h,p,f,m,g,v,y={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},b={duration:.5,overwrite:!1,delay:0},_=1e8,w=1e-8,x=2*Math.PI,T=x/4,S=0,E=Math.sqrt,C=Math.cos,M=Math.sin,k=function(e){return"string"==typeof e},A=function(e){return"function"==typeof e},I=function(e){return"number"==typeof e},O=function(e){return void 0===e},L=function(e){return"object"==typeof e},P=function(e){return!1!==e},z=function(){return"undefined"!=typeof window},D=function(e){return A(e)||k(e)},$="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},B=Array.isArray,R=/(?:-?\.?\d|\.)+/gi,F=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,j=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,N=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,H=/[+-]=-?[.\d]+/,W=/[^,'"\[\]\s]+/gi,q=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Y={},X={},V=function(e){return(X=Te(e,Y))&&Si},G=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},U=function(e,t){return!t&&console.warn(e)},Q=function(e,t){return e&&(Y[e]=t)&&X&&(X[e]=t)||Y},Z=function(){return 0},K={suppressEvents:!0,isStart:!0,kill:!1},J={suppressEvents:!0,kill:!1},ee={suppressEvents:!0},te={},ie=[],se={},ne={},re={},oe=30,ae=[],le="",ce=function(e){var t,i,s=e[0];if(L(s)||A(s)||(e=[e]),!(t=(s._gsap||{}).harness)){for(i=ae.length;i--&&!ae[i].targetTest(s););t=ae[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Rt(e[i],t)))||e.splice(i,1);return e},de=function(e){return e._gsap||ce(tt(e))[0]._gsap},ue=function(e,t,i){return(i=e[t])&&A(i)?e[t]():O(i)&&e.getAttribute&&e.getAttribute(t)||i},he=function(e,t){return(e=e.split(",")).forEach(t)||e},pe=function(e){return Math.round(1e5*e)/1e5||0},fe=function(e){return Math.round(1e7*e)/1e7||0},me=function(e,t){var i=t.charAt(0),s=parseFloat(t.substr(2));return e=parseFloat(e),"+"===i?e+s:"-"===i?e-s:"*"===i?e*s:e/s},ge=function(e,t){for(var i=t.length,s=0;e.indexOf(t[s])<0&&++s<i;);return s<i},ve=function(){var e,t,i=ie.length,s=ie.slice(0);for(se={},ie.length=0,e=0;e<i;e++)(t=s[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},ye=function(e){return!!(e._initted||e._startAt||e.add)},be=function(e,t,i,s){ie.length&&!n&&ve(),e.render(t,i,s||!!(n&&t<0&&ye(e))),ie.length&&!n&&ve()},_e=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(W).length<2?t:k(e)?e.trim():e},we=function(e){return e},xe=function(e,t){for(var i in t)i in e||(e[i]=t[i]);return e},Te=function(e,t){for(var i in t)e[i]=t[i];return e},Se=function e(t,i){for(var s in i)"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&(t[s]=L(i[s])?e(t[s]||(t[s]={}),i[s]):i[s]);return t},Ee=function(e,t){var i,s={};for(i in e)i in t||(s[i]=e[i]);return s},Ce=function(e){var t,i=e.parent||o,s=e.keyframes?(t=B(e.keyframes),function(e,i){for(var s in i)s in e||"duration"===s&&t||"ease"===s||(e[s]=i[s])}):xe;if(P(e.inherit))for(;i;)s(e,i.vars.defaults),i=i.parent||i._dp;return e},Me=function(e,t,i,s,n){void 0===i&&(i="_first"),void 0===s&&(s="_last");var r,o=e[s];if(n)for(r=t[n];o&&o[n]>r;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[i],e[i]=t),t._next?t._next._prev=t:e[s]=t,t._prev=o,t.parent=t._dp=e,t},ke=function(e,t,i,s){void 0===i&&(i="_first"),void 0===s&&(s="_last");var n=t._prev,r=t._next;n?n._next=r:e[i]===t&&(e[i]=r),r?r._prev=n:e[s]===t&&(e[s]=n),t._next=t._prev=t.parent=null},Ae=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ie=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},Oe=function(e,t,i,s){return e._startAt&&(n?e._startAt.revert(J):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,s))},Le=function e(t){return!t||t._ts&&e(t.parent)},Pe=function(e){return e._repeat?ze(e._tTime,e=e.duration()+e._rDelay)*e:0},ze=function(e,t){var i=Math.floor(e=fe(e/t));return e&&i===e?i-1:i},De=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},$e=function(e){return e._end=fe(e._start+(e._tDur/Math.abs(e._ts||e._rts||w)||0))},Be=function(e,t){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=fe(i._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),$e(e),i._dirty||Ie(i,e)),e},Re=function(e,t){var i;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(i=De(e.rawTime(),t),(!t._dur||Qe(0,t.totalDuration(),i)-t._tTime>w)&&t.render(i,!0)),Ie(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(i=e;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;e._zTime=-1e-8}},Fe=function(e,t,i,s){return t.parent&&Ae(t),t._start=fe((I(i)?i:i||e!==o?Ve(e,i,t):e._time)+t._delay),t._end=fe(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Me(e,t,"_first","_last",e._sort?"_start":0),We(t)||(e._recent=t),s||Re(e,t),e._ts<0&&Be(e,e._tTime),e},je=function(e,t){return(Y.ScrollTrigger||G("scrollTrigger",t))&&Y.ScrollTrigger.create(t,e)},Ne=function(e,t,i,s,r){return Xt(e,t,r),e._initted?!i&&e._pt&&!n&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&u!==Et.frame?(ie.push(e),e._lazy=[r,s],1):void 0:1},He=function e(t){var i=t.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||e(i))},We=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},qe=function(e,t,i,s){var n=e._repeat,r=fe(t)||0,o=e._tTime/e._tDur;return o&&!s&&(e._time*=r/e._dur),e._dur=r,e._tDur=n?n<0?1e10:fe(r*(n+1)+e._rDelay*n):r,o>0&&!s&&Be(e,e._tTime=e._tDur*o),e.parent&&$e(e),i||Ie(e.parent,e),e},Ye=function(e){return e instanceof jt?Ie(e):qe(e,e._dur)},Xe={_start:0,endTime:Z,totalDuration:Z},Ve=function e(t,i,s){var n,r,o,a=t.labels,l=t._recent||Xe,c=t.duration()>=_?l.endTime(!1):t._dur;return k(i)&&(isNaN(i)||i in a)?(r=i.charAt(0),o="%"===i.substr(-1),n=i.indexOf("="),"<"===r||">"===r?(n>=0&&(i=i.replace(/=/,"")),("<"===r?l._start:l.endTime(l._repeat>=0))+(parseFloat(i.substr(1))||0)*(o?(n<0?l:s).totalDuration()/100:1)):n<0?(i in a||(a[i]=c),a[i]):(r=parseFloat(i.charAt(n-1)+i.substr(n+1)),o&&s&&(r=r/100*(B(s)?s[0]:s).totalDuration()),n>1?e(t,i.substr(0,n-1),s)+r:c+r)):null==i?c:+i},Ge=function(e,t,i){var s,n,r=I(t[1]),o=(r?2:1)+(e<2?0:1),a=t[o];if(r&&(a.duration=t[1]),a.parent=i,e){for(s=a,n=i;n&&!("immediateRender"in s);)s=n.vars.defaults||{},n=P(n.vars.inherit)&&n.parent;a.immediateRender=P(s.immediateRender),e<2?a.runBackwards=1:a.startAt=t[o-1]}return new Zt(t[0],a,t[o+1])},Ue=function(e,t){return e||0===e?t(e):t},Qe=function(e,t,i){return i<e?e:i>t?t:i},Ze=function(e,t){return k(e)&&(t=q.exec(e))?t[1]:""},Ke=[].slice,Je=function(e,t){return e&&L(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&L(e[0]))&&!e.nodeType&&e!==a},et=function(e,t,i){return void 0===i&&(i=[]),e.forEach((function(e){var s;return k(e)&&!t||Je(e,1)?(s=i).push.apply(s,tt(e)):i.push(e)}))||i},tt=function(e,t,i){return r&&!t&&r.selector?r.selector(e):!k(e)||i||!l&&Ct()?B(e)?et(e,i):Je(e)?Ke.call(e,0):e?[e]:[]:Ke.call((t||c).querySelectorAll(e),0)},it=function(e){return e=tt(e)[0]||U("Invalid scope")||{},function(t){var i=e.current||e.nativeElement||e;return tt(t,i.querySelectorAll?i:i===e?U("Invalid scope")||c.createElement("div"):e)}},st=function(e){return e.sort((function(){return.5-Math.random()}))},nt=function(e){if(A(e))return e;var t=L(e)?e:{each:e},i=Pt(t.ease),s=t.from||0,n=parseFloat(t.base)||0,r={},o=s>0&&s<1,a=isNaN(s)||o,l=t.axis,c=s,d=s;return k(s)?c=d={center:.5,edges:.5,end:1}[s]||0:!o&&a&&(c=s[0],d=s[1]),function(e,o,u){var h,p,f,m,g,v,y,b,w,x=(u||t).length,T=r[x];if(!T){if(!(w="auto"===t.grid?0:(t.grid||[1,_])[1])){for(y=-_;y<(y=u[w++].getBoundingClientRect().left)&&w<x;);w<x&&w--}for(T=r[x]=[],h=a?Math.min(w,x)*c-.5:s%w,p=w===_?0:a?x*d/w-.5:s/w|0,y=0,b=_,v=0;v<x;v++)f=v%w-h,m=p-(v/w|0),T[v]=g=l?Math.abs("y"===l?m:f):E(f*f+m*m),g>y&&(y=g),g<b&&(b=g);"random"===s&&st(T),T.max=y-b,T.min=b,T.v=x=(parseFloat(t.amount)||parseFloat(t.each)*(w>x?x-1:l?"y"===l?x/w:w:Math.max(w,x/w))||0)*("edges"===s?-1:1),T.b=x<0?n-x:n,T.u=Ze(t.amount||t.each)||0,i=i&&x<0?Ot(i):i}return x=(T[e]-T.min)/T.max||0,fe(T.b+(i?i(x):x)*T.v)+T.u}},rt=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var s=fe(Math.round(parseFloat(i)/e)*e*t);return(s-s%1)/t+(I(i)?0:Ze(i))}},ot=function(e,t){var i,s,n=B(e);return!n&&L(e)&&(i=n=e.radius||_,e.values?(e=tt(e.values),(s=!I(e[0]))&&(i*=i)):e=rt(e.increment)),Ue(t,n?A(e)?function(t){return s=e(t),Math.abs(s-t)<=i?s:t}:function(t){for(var n,r,o=parseFloat(s?t.x:t),a=parseFloat(s?t.y:0),l=_,c=0,d=e.length;d--;)(n=s?(n=e[d].x-o)*n+(r=e[d].y-a)*r:Math.abs(e[d]-o))<l&&(l=n,c=d);return c=!i||l<=i?e[c]:t,s||c===t||I(t)?c:c+Ze(t)}:rt(e))},at=function(e,t,i,s){return Ue(B(e)?!t:!0===i?!!(i=0):!s,(function(){return B(e)?e[~~(Math.random()*e.length)]:(i=i||1e-5)&&(s=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((e-i/2+Math.random()*(t-e+.99*i))/i)*i*s)/s}))},lt=function(e,t,i){return Ue(i,(function(i){return e[~~t(i)]}))},ct=function(e){for(var t,i,s,n,r=0,o="";~(t=e.indexOf("random(",r));)s=e.indexOf(")",t),n="["===e.charAt(t+7),i=e.substr(t+7,s-t-7).match(n?W:R),o+=e.substr(r,t-r)+at(n?i:+i[0],n?0:+i[1],+i[2]||1e-5),r=s+1;return o+e.substr(r,e.length-r)},dt=function(e,t,i,s,n){var r=t-e,o=s-i;return Ue(n,(function(t){return i+((t-e)/r*o||0)}))},ut=function(e,t,i){var s,n,r,o=e.labels,a=_;for(s in o)(n=o[s]-t)<0==!!i&&n&&a>(n=Math.abs(n))&&(r=s,a=n);return r},ht=function(e,t,i){var s,n,o,a=e.vars,l=a[t],c=r,d=e._ctx;if(l)return s=a[t+"Params"],n=a.callbackScope||e,i&&ie.length&&ve(),d&&(r=d),o=s?l.apply(n,s):l.call(n),r=c,o},pt=function(e){return Ae(e),e.scrollTrigger&&e.scrollTrigger.kill(!!n),e.progress()<1&&ht(e,"onInterrupt"),e},ft=[],mt=function(e){if(e)if(e=!e.name&&e.default||e,z()||e.headless){var t=e.name,i=A(e),s=t&&!i&&e.init?function(){this._props=[]}:e,n={init:Z,render:oi,add:qt,kill:li,modifier:ai,rawVars:0},r={targetTest:0,get:0,getSetter:ii,aliases:{},register:0};if(Ct(),e!==s){if(ne[t])return;xe(s,xe(Ee(e,n),r)),Te(s.prototype,Te(n,Ee(e,r))),ne[s.prop=t]=s,e.targetTest&&(ae.push(s),te[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Q(t,s),e.register&&e.register(Si,s,ui)}else ft.push(e)},gt=255,vt={aqua:[0,gt,gt],lime:[0,gt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,gt],navy:[0,0,128],white:[gt,gt,gt],olive:[128,128,0],yellow:[gt,gt,0],orange:[gt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[gt,0,0],pink:[gt,192,203],cyan:[0,gt,gt],transparent:[gt,gt,gt,0]},yt=function(e,t,i){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(i-t)*e*6:e<.5?i:3*e<2?t+(i-t)*(2/3-e)*6:t)*gt+.5|0},bt=function(e,t,i){var s,n,r,o,a,l,c,d,u,h,p=e?I(e)?[e>>16,e>>8&gt,e&gt]:0:vt.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),vt[e])p=vt[e];else if("#"===e.charAt(0)){if(e.length<6&&(s=e.charAt(1),n=e.charAt(2),r=e.charAt(3),e="#"+s+s+n+n+r+r+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&gt,p&gt,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&gt,e&gt]}else if("hsl"===e.substr(0,3))if(p=h=e.match(R),t){if(~e.indexOf("="))return p=e.match(F),i&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,a=+p[1]/100,s=2*(l=+p[2]/100)-(n=l<=.5?l*(a+1):l+a-l*a),p.length>3&&(p[3]*=1),p[0]=yt(o+1/3,s,n),p[1]=yt(o,s,n),p[2]=yt(o-1/3,s,n);else p=e.match(R)||vt.transparent;p=p.map(Number)}return t&&!h&&(s=p[0]/gt,n=p[1]/gt,r=p[2]/gt,l=((c=Math.max(s,n,r))+(d=Math.min(s,n,r)))/2,c===d?o=a=0:(u=c-d,a=l>.5?u/(2-c-d):u/(c+d),o=c===s?(n-r)/u+(n<r?6:0):c===n?(r-s)/u+2:(s-n)/u+4,o*=60),p[0]=~~(o+.5),p[1]=~~(100*a+.5),p[2]=~~(100*l+.5)),i&&p.length<4&&(p[3]=1),p},_t=function(e){var t=[],i=[],s=-1;return e.split(xt).forEach((function(e){var n=e.match(j)||[];t.push.apply(t,n),i.push(s+=n.length+1)})),t.c=i,t},wt=function(e,t,i){var s,n,r,o,a="",l=(e+a).match(xt),c=t?"hsla(":"rgba(",d=0;if(!l)return e;if(l=l.map((function(e){return(e=bt(e,t,1))&&c+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"})),i&&(r=_t(e),(s=i.c).join(a)!==r.c.join(a)))for(o=(n=e.replace(xt,"1").split(j)).length-1;d<o;d++)a+=n[d]+(~s.indexOf(d)?l.shift()||c+"0,0,0,0)":(r.length?r:l.length?l:i).shift());if(!n)for(o=(n=e.split(xt)).length-1;d<o;d++)a+=n[d]+l[d];return a+n[o]},xt=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in vt)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),Tt=/hsl[a]?\(/,St=function(e){var t,i=e.join(" ");if(xt.lastIndex=0,xt.test(i))return t=Tt.test(i),e[1]=wt(e[1],t),e[0]=wt(e[0],t,_t(e[1])),!0},Et=function(){var e,t,i,s,n,r,o=Date.now,u=500,h=33,f=o(),m=f,g=1e3/240,v=g,y=[],b=function i(a){var l,c,d,p,b=o()-m,_=!0===a;if((b>u||b<0)&&(f+=b-h),((l=(d=(m+=b)-f)-v)>0||_)&&(p=++s.frame,n=d-1e3*s.time,s.time=d/=1e3,v+=l+(l>=g?4:g-l),c=1),_||(e=t(i)),c)for(r=0;r<y.length;r++)y[r](d,n,p,a)};return s={time:0,frame:0,tick:function(){b(!0)},deltaRatio:function(e){return n/(1e3/(e||60))},wake:function(){d&&(!l&&z()&&(a=l=window,c=a.document||{},Y.gsap=Si,(a.gsapVersions||(a.gsapVersions=[])).push(Si.version),V(X||a.GreenSockGlobals||!a.gsap&&a||{}),ft.forEach(mt)),i="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,e&&s.sleep(),t=i||function(e){return setTimeout(e,v-1e3*s.time+1|0)},p=1,b(2))},sleep:function(){(i?cancelAnimationFrame:clearTimeout)(e),p=0,t=Z},lagSmoothing:function(e,t){u=e||1/0,h=Math.min(t||33,u)},fps:function(e){g=1e3/(e||240),v=1e3*s.time+g},add:function(e,t,i){var n=t?function(t,i,r,o){e(t,i,r,o),s.remove(n)}:e;return s.remove(e),y[i?"unshift":"push"](n),Ct(),n},remove:function(e,t){~(t=y.indexOf(e))&&y.splice(t,1)&&r>=t&&r--},_listeners:y}}(),Ct=function(){return!p&&Et.wake()},Mt={},kt=/^[\d.\-M][\d.\-,\s]/,At=/["']/g,It=function(e){for(var t,i,s,n={},r=e.substr(1,e.length-3).split(":"),o=r[0],a=1,l=r.length;a<l;a++)i=r[a],t=a!==l-1?i.lastIndexOf(","):i.length,s=i.substr(0,t),n[o]=isNaN(s)?s.replace(At,"").trim():+s,o=i.substr(t+1).trim();return n},Ot=function(e){return function(t){return 1-e(1-t)}},Lt=function e(t,i){for(var s,n=t._first;n;)n instanceof jt?e(n,i):!n.vars.yoyoEase||n._yoyo&&n._repeat||n._yoyo===i||(n.timeline?e(n.timeline,i):(s=n._ease,n._ease=n._yEase,n._yEase=s,n._yoyo=i)),n=n._next},Pt=function(e,t){return e&&(A(e)?e:Mt[e]||function(e){var t,i,s,n,r=(e+"").split("("),o=Mt[r[0]];return o&&r.length>1&&o.config?o.config.apply(null,~e.indexOf("{")?[It(r[1])]:(t=e,i=t.indexOf("(")+1,s=t.indexOf(")"),n=t.indexOf("(",i),t.substring(i,~n&&n<s?t.indexOf(")",s+1):s)).split(",").map(_e)):Mt._CE&&kt.test(e)?Mt._CE("",e):o}(e))||t},zt=function(e,t,i,s){void 0===i&&(i=function(e){return 1-t(1-e)}),void 0===s&&(s=function(e){return e<.5?t(2*e)/2:1-t(2*(1-e))/2});var n,r={easeIn:t,easeOut:i,easeInOut:s};return he(e,(function(e){for(var t in Mt[e]=Y[e]=r,Mt[n=e.toLowerCase()]=i,r)Mt[n+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=Mt[e+"."+t]=r[t]})),r},Dt=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}},$t=function e(t,i,s){var n=i>=1?i:1,r=(s||(t?.3:.45))/(i<1?i:1),o=r/x*(Math.asin(1/n)||0),a=function(e){return 1===e?1:n*Math.pow(2,-10*e)*M((e-o)*r)+1},l="out"===t?a:"in"===t?function(e){return 1-a(1-e)}:Dt(a);return r=x/r,l.config=function(i,s){return e(t,i,s)},l},Bt=function e(t,i){void 0===i&&(i=1.70158);var s=function(e){return e?--e*e*((i+1)*e+i)+1:0},n="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:Dt(s);return n.config=function(i){return e(t,i)},n};he("Linear,Quad,Cubic,Quart,Quint,Strong",(function(e,t){var i=t<5?t+1:t;zt(e+",Power"+(i-1),t?function(e){return Math.pow(e,i)}:function(e){return e},(function(e){return 1-Math.pow(1-e,i)}),(function(e){return e<.5?Math.pow(2*e,i)/2:1-Math.pow(2*(1-e),i)/2}))})),Mt.Linear.easeNone=Mt.none=Mt.Linear.easeIn,zt("Elastic",$t("in"),$t("out"),$t()),f=7.5625,g=1/(m=2.75),zt("Bounce",(function(e){return 1-v(1-e)}),v=function(e){return e<g?f*e*e:e<.7272727272727273?f*Math.pow(e-1.5/m,2)+.75:e<.9090909090909092?f*(e-=2.25/m)*e+.9375:f*Math.pow(e-2.625/m,2)+.984375}),zt("Expo",(function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)})),zt("Circ",(function(e){return-(E(1-e*e)-1)})),zt("Sine",(function(e){return 1===e?1:1-C(e*T)})),zt("Back",Bt("in"),Bt("out"),Bt()),Mt.SteppedEase=Mt.steps=Y.SteppedEase={config:function(e,t){void 0===e&&(e=1);var i=1/e,s=e+(t?0:1),n=t?1:0;return function(e){return((s*Qe(0,.99999999,e)|0)+n)*i}}},b.ease=Mt["quad.out"],he("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(e){return le+=e+","+e+"Params,"}));var Rt=function(e,t){this.id=S++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:ue,this.set=t?t.getSetter:ii},Ft=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,qe(this,+e.duration,1,1),this.data=e.data,r&&(this._ctx=r,r.data.push(this)),p||Et.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,qe(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Ct(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Be(this,e),!i._dp||i.parent||Re(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Fe(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===w||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),be(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Pe(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+Pe(this),t):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,t){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*i,t):this._repeat?ze(this._tTime,i)+1:1},t.timeScale=function(e,t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var i=this.parent&&this._ts?De(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(Qe(-Math.abs(this._delay),this.totalDuration(),i),!1!==t),$e(this),function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e}(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ct(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==w&&(this._tTime-=w)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Fe(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(P(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?De(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=ee);var t=n;return n=e,ye(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),n=t,this},t.globalTime=function(e){for(var t=this,i=arguments.length?e:t.rawTime();t;)i=t._start+i/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):i},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Ye(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Ye(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Ve(this,e),P(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,P(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,i=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=i&&e<this.endTime(!0)-w))},t.eventCallback=function(e,t,i){var s=this.vars;return arguments.length>1?(t?(s[e]=t,i&&(s[e+"Params"]=i),"onUpdate"===e&&(this._onUpdate=t)):delete s[e],this):s[e]},t.then=function(e){var t=this;return new Promise((function(i){var s=A(e)?e:we,n=function(){var e=t.then;t.then=null,A(s)&&(s=s(t))&&(s.then||s===t)&&(t.then=e),i(s),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?n():t._prom=n}))},t.kill=function(){pt(this)},e}();xe(Ft.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var jt=function(e){function s(t,s){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=P(t.sortChildren),o&&Fe(t.parent||o,i(n),s),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&je(i(n),t.scrollTrigger),n}t(s,e);var r=s.prototype;return r.to=function(e,t,i){return Ge(0,arguments,this),this},r.from=function(e,t,i){return Ge(1,arguments,this),this},r.fromTo=function(e,t,i,s){return Ge(2,arguments,this),this},r.set=function(e,t,i){return t.duration=0,t.parent=this,Ce(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Zt(e,t,Ve(this,i),1),this},r.call=function(e,t,i){return Fe(this,Zt.delayedCall(0,e,t),i)},r.staggerTo=function(e,t,i,s,n,r,o){return i.duration=t,i.stagger=i.stagger||s,i.onComplete=r,i.onCompleteParams=o,i.parent=this,new Zt(e,i,Ve(this,n)),this},r.staggerFrom=function(e,t,i,s,n,r,o){return i.runBackwards=1,Ce(i).immediateRender=P(i.immediateRender),this.staggerTo(e,t,i,s,n,r,o)},r.staggerFromTo=function(e,t,i,s,n,r,o,a){return s.startAt=i,Ce(s).immediateRender=P(s.immediateRender),this.staggerTo(e,t,s,n,r,o,a)},r.render=function(e,t,i){var s,r,a,l,c,d,u,h,p,f,m,g,v=this._time,y=this._dirty?this.totalDuration():this._tDur,b=this._dur,_=e<=0?0:fe(e),x=this._zTime<0!=e<0&&(this._initted||!b);if(this!==o&&_>y&&e>=0&&(_=y),_!==this._tTime||i||x){if(v!==this._time&&b&&(_+=this._time-v,e+=this._time-v),s=_,p=this._start,d=!(h=this._ts),x&&(b||(v=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(m=this._yoyo,c=b+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*c+e,t,i);if(s=fe(_%c),_===y?(l=this._repeat,s=b):((l=~~(f=fe(_/c)))&&l===f&&(s=b,l--),s>b&&(s=b)),f=ze(this._tTime,c),!v&&this._tTime&&f!==l&&this._tTime-f*c-this._dur<=0&&(f=l),m&&1&l&&(s=b-s,g=1),l!==f&&!this._lock){var T=m&&1&f,S=T===(m&&1&l);if(l<f&&(T=!T),v=T?0:_%b?b:_,this._lock=1,this.render(v||(g?0:fe(l*c)),t,!b)._lock=0,this._tTime=_,!t&&this.parent&&ht(this,"onRepeat"),this.vars.repeatRefresh&&!g&&(this.invalidate()._lock=1),v&&v!==this._time||d!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(b=this._dur,y=this._tDur,S&&(this._lock=2,v=T?b:-1e-4,this.render(v,!0),this.vars.repeatRefresh&&!g&&this.invalidate()),this._lock=0,!this._ts&&!d)return this;Lt(this,g)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=function(e,t,i){var s;if(i>t)for(s=e._first;s&&s._start<=i;){if("isPause"===s.data&&s._start>t)return s;s=s._next}else for(s=e._last;s&&s._start>=i;){if("isPause"===s.data&&s._start<t)return s;s=s._prev}}(this,fe(v),fe(s)),u&&(_-=s-(s=u._start))),this._tTime=_,this._time=s,this._act=!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,v=0),!v&&_&&!t&&!f&&(ht(this,"onStart"),this._tTime!==_))return this;if(s>=v&&e>=0)for(r=this._first;r;){if(a=r._next,(r._act||s>=r._start)&&r._ts&&u!==r){if(r.parent!==this)return this.render(e,t,i);if(r.render(r._ts>0?(s-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(s-r._start)*r._ts,t,i),s!==this._time||!this._ts&&!d){u=0,a&&(_+=this._zTime=-1e-8);break}}r=a}else{r=this._last;for(var E=e<0?e:s;r;){if(a=r._prev,(r._act||E<=r._end)&&r._ts&&u!==r){if(r.parent!==this)return this.render(e,t,i);if(r.render(r._ts>0?(E-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(E-r._start)*r._ts,t,i||n&&ye(r)),s!==this._time||!this._ts&&!d){u=0,a&&(_+=this._zTime=E?-1e-8:w);break}}r=a}}if(u&&!t&&(this.pause(),u.render(s>=v?0:-1e-8)._zTime=s>=v?1:-1,this._ts))return this._start=p,$e(this),this.render(e,t,i);this._onUpdate&&!t&&ht(this,"onUpdate",!0),(_===y&&this._tTime>=this.totalDuration()||!_&&v)&&(p!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((e||!b)&&(_===y&&this._ts>0||!_&&this._ts<0)&&Ae(this,1),t||e<0&&!v||!_&&!v&&y||(ht(this,_===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(_<y&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(e,t){var i=this;if(I(t)||(t=Ve(this,t,e)),!(e instanceof Ft)){if(B(e))return e.forEach((function(e){return i.add(e,t)})),this;if(k(e))return this.addLabel(e,t);if(!A(e))return this;e=Zt.delayedCall(0,e)}return this!==e?Fe(this,e,t):this},r.getChildren=function(e,t,i,s){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===i&&(i=!0),void 0===s&&(s=-_);for(var n=[],r=this._first;r;)r._start>=s&&(r instanceof Zt?t&&n.push(r):(i&&n.push(r),e&&n.push.apply(n,r.getChildren(!0,t,i)))),r=r._next;return n},r.getById=function(e){for(var t=this.getChildren(1,1,1),i=t.length;i--;)if(t[i].vars.id===e)return t[i]},r.remove=function(e){return k(e)?this.removeLabel(e):A(e)?this.killTweensOf(e):(e.parent===this&&ke(this,e),e===this._recent&&(this._recent=this._last),Ie(this))},r.totalTime=function(t,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=fe(Et.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,i),this._forcing=0,this):this._tTime},r.addLabel=function(e,t){return this.labels[e]=Ve(this,t),this},r.removeLabel=function(e){return delete this.labels[e],this},r.addPause=function(e,t,i){var s=Zt.delayedCall(0,t||Z,i);return s.data="isPause",this._hasPause=1,Fe(this,s,Ve(this,e))},r.removePause=function(e){var t=this._first;for(e=Ve(this,e);t;)t._start===e&&"isPause"===t.data&&Ae(t),t=t._next},r.killTweensOf=function(e,t,i){for(var s=this.getTweensOf(e,i),n=s.length;n--;)Nt!==s[n]&&s[n].kill(e,t);return this},r.getTweensOf=function(e,t){for(var i,s=[],n=tt(e),r=this._first,o=I(t);r;)r instanceof Zt?ge(r._targets,n)&&(o?(!Nt||r._initted&&r._ts)&&r.globalTime(0)<=t&&r.globalTime(r.totalDuration())>t:!t||r.isActive())&&s.push(r):(i=r.getTweensOf(n,t)).length&&s.push.apply(s,i),r=r._next;return s},r.tweenTo=function(e,t){t=t||{};var i,s=this,n=Ve(s,e),r=t,o=r.startAt,a=r.onStart,l=r.onStartParams,c=r.immediateRender,d=Zt.to(s,xe({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:t.duration||Math.abs((n-(o&&"time"in o?o.time:s._time))/s.timeScale())||w,onStart:function(){if(s.pause(),!i){var e=t.duration||Math.abs((n-(o&&"time"in o?o.time:s._time))/s.timeScale());d._dur!==e&&qe(d,e,0,1).render(d._time,!0,!0),i=1}a&&a.apply(d,l||[])}},t));return c?d.render(0):d},r.tweenFromTo=function(e,t,i){return this.tweenTo(t,xe({startAt:{time:Ve(this,e)}},i))},r.recent=function(){return this._recent},r.nextLabel=function(e){return void 0===e&&(e=this._time),ut(this,Ve(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),ut(this,Ve(this,e),1)},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+w)},r.shiftChildren=function(e,t,i){void 0===i&&(i=0);for(var s,n=this._first,r=this.labels;n;)n._start>=i&&(n._start+=e,n._end+=e),n=n._next;if(t)for(s in r)r[s]>=i&&(r[s]+=e);return Ie(this)},r.invalidate=function(t){var i=this._first;for(this._lock=0;i;)i.invalidate(t),i=i._next;return e.prototype.invalidate.call(this,t)},r.clear=function(e){void 0===e&&(e=!0);for(var t,i=this._first;i;)t=i._next,this.remove(i),i=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Ie(this)},r.totalDuration=function(e){var t,i,s,n=0,r=this,a=r._last,l=_;if(arguments.length)return r.timeScale((r._repeat<0?r.duration():r.totalDuration())/(r.reversed()?-e:e));if(r._dirty){for(s=r.parent;a;)t=a._prev,a._dirty&&a.totalDuration(),(i=a._start)>l&&r._sort&&a._ts&&!r._lock?(r._lock=1,Fe(r,a,i-a._delay,1)._lock=0):l=i,i<0&&a._ts&&(n-=i,(!s&&!r._dp||s&&s.smoothChildTiming)&&(r._start+=i/r._ts,r._time-=i,r._tTime-=i),r.shiftChildren(-i,!1,-Infinity),l=0),a._end>n&&a._ts&&(n=a._end),a=t;qe(r,r===o&&r._time>n?r._time:n,1,1),r._dirty=0}return r._tDur},s.updateRoot=function(e){if(o._ts&&(be(o,De(e,o)),u=Et.frame),Et.frame>=oe){oe+=y.autoSleep||120;var t=o._first;if((!t||!t._ts)&&y.autoSleep&&Et._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Et.sleep()}}},s}(Ft);xe(jt.prototype,{_lock:0,_hasPause:0,_forcing:0});var Nt,Ht,Wt=function(e,t,i,s,n,r,o){var a,l,c,d,u,h,p,f,m=new ui(this._pt,e,t,0,1,ri,null,n),g=0,v=0;for(m.b=i,m.e=s,i+="",(p=~(s+="").indexOf("random("))&&(s=ct(s)),r&&(r(f=[i,s],e,t),i=f[0],s=f[1]),l=i.match(N)||[];a=N.exec(s);)d=a[0],u=s.substring(g,a.index),c?c=(c+1)%5:"rgba("===u.substr(-5)&&(c=1),d!==l[v++]&&(h=parseFloat(l[v-1])||0,m._pt={_next:m._pt,p:u||1===v?u:",",s:h,c:"="===d.charAt(1)?me(h,d)-h:parseFloat(d)-h,m:c&&c<4?Math.round:0},g=N.lastIndex);return m.c=g<s.length?s.substring(g,s.length):"",m.fp=o,(H.test(s)||p)&&(m.e=0),this._pt=m,m},qt=function(e,t,i,s,n,r,o,a,l,c){A(s)&&(s=s(n||0,e,r));var d,u=e[t],h="get"!==i?i:A(u)?l?e[t.indexOf("set")||!A(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():u,p=A(u)?l?ei:Jt:Kt;if(k(s)&&(~s.indexOf("random(")&&(s=ct(s)),"="===s.charAt(1)&&((d=me(h,s)+(Ze(h)||0))||0===d)&&(s=d)),!c||h!==s||Ht)return isNaN(h*s)||""===s?(!u&&!(t in e)&&G(t,s),Wt.call(this,e,t,h,s,p,a||y.stringFilter,l)):(d=new ui(this._pt,e,t,+h||0,s-(h||0),"boolean"==typeof u?ni:si,0,p),l&&(d.fp=l),o&&d.modifier(o,this,e),this._pt=d)},Yt=function(e,t,i,s,n,r){var o,a,l,c;if(ne[e]&&!1!==(o=new ne[e]).init(n,o.rawVars?t[e]:function(e,t,i,s,n){if(A(e)&&(e=Gt(e,n,t,i,s)),!L(e)||e.style&&e.nodeType||B(e)||$(e))return k(e)?Gt(e,n,t,i,s):e;var r,o={};for(r in e)o[r]=Gt(e[r],n,t,i,s);return o}(t[e],s,n,r,i),i,s,r)&&(i._pt=a=new ui(i._pt,n,e,0,1,o.render,o,0,o.priority),i!==h))for(l=i._ptLookup[i._targets.indexOf(n)],c=o._props.length;c--;)l[o._props[c]]=a;return o},Xt=function e(t,i,r){var a,l,c,d,u,h,p,f,m,g,v,y,x,T=t.vars,S=T.ease,E=T.startAt,C=T.immediateRender,M=T.lazy,k=T.onUpdate,A=T.runBackwards,I=T.yoyoEase,O=T.keyframes,L=T.autoRevert,z=t._dur,D=t._startAt,$=t._targets,B=t.parent,R=B&&"nested"===B.data?B.vars.targets:$,F="auto"===t._overwrite&&!s,j=t.timeline;if(j&&(!O||!S)&&(S="none"),t._ease=Pt(S,b.ease),t._yEase=I?Ot(Pt(!0===I?S:I,b.ease)):0,I&&t._yoyo&&!t._repeat&&(I=t._yEase,t._yEase=t._ease,t._ease=I),t._from=!j&&!!T.runBackwards,!j||O&&!T.stagger){if(y=(f=$[0]?de($[0]).harness:0)&&T[f.prop],a=Ee(T,te),D&&(D._zTime<0&&D.progress(1),i<0&&A&&C&&!L?D.render(-1,!0):D.revert(A&&z?J:K),D._lazy=0),E){if(Ae(t._startAt=Zt.set($,xe({data:"isStart",overwrite:!1,parent:B,immediateRender:!0,lazy:!D&&P(M),startAt:null,delay:0,onUpdate:k&&function(){return ht(t,"onUpdate")},stagger:0},E))),t._startAt._dp=0,t._startAt._sat=t,i<0&&(n||!C&&!L)&&t._startAt.revert(J),C&&z&&i<=0&&r<=0)return void(i&&(t._zTime=i))}else if(A&&z&&!D)if(i&&(C=!1),c=xe({overwrite:!1,data:"isFromStart",lazy:C&&!D&&P(M),immediateRender:C,stagger:0,parent:B},a),y&&(c[f.prop]=y),Ae(t._startAt=Zt.set($,c)),t._startAt._dp=0,t._startAt._sat=t,i<0&&(n?t._startAt.revert(J):t._startAt.render(-1,!0)),t._zTime=i,C){if(!i)return}else e(t._startAt,w,w);for(t._pt=t._ptCache=0,M=z&&P(M)||M&&!z,l=0;l<$.length;l++){if(p=(u=$[l])._gsap||ce($)[l]._gsap,t._ptLookup[l]=g={},se[p.id]&&ie.length&&ve(),v=R===$?l:R.indexOf(u),f&&!1!==(m=new f).init(u,y||a,t,v,R)&&(t._pt=d=new ui(t._pt,u,m.name,0,1,m.render,m,0,m.priority),m._props.forEach((function(e){g[e]=d})),m.priority&&(h=1)),!f||y)for(c in a)ne[c]&&(m=Yt(c,a,t,v,u,R))?m.priority&&(h=1):g[c]=d=qt.call(t,u,c,"get",a[c],v,R,0,T.stringFilter);t._op&&t._op[l]&&t.kill(u,t._op[l]),F&&t._pt&&(Nt=t,o.killTweensOf(u,g,t.globalTime(i)),x=!t.parent,Nt=0),t._pt&&M&&(se[p.id]=1)}h&&di(t),t._onInit&&t._onInit(t)}t._onUpdate=k,t._initted=(!t._op||t._pt)&&!x,O&&i<=0&&j.render(_,!0,!0)},Vt=function(e,t,i,s){var n,r,o=t.ease||s||"power1.inOut";if(B(t))r=i[e]||(i[e]=[]),t.forEach((function(e,i){return r.push({t:i/(t.length-1)*100,v:e,e:o})}));else for(n in t)r=i[n]||(i[n]=[]),"ease"===n||r.push({t:parseFloat(e),v:t[n],e:o})},Gt=function(e,t,i,s,n){return A(e)?e.call(t,i,s,n):k(e)&&~e.indexOf("random(")?ct(e):e},Ut=le+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Qt={};he(Ut+",id,stagger,delay,duration,paused,scrollTrigger",(function(e){return Qt[e]=1}));var Zt=function(e){function r(t,n,r,a){var l;"number"==typeof n&&(r.duration=n,n=r,r=null);var c,d,u,h,p,f,m,g,v=(l=e.call(this,a?n:Ce(n))||this).vars,b=v.duration,_=v.delay,w=v.immediateRender,x=v.stagger,T=v.overwrite,S=v.keyframes,E=v.defaults,C=v.scrollTrigger,M=v.yoyoEase,k=n.parent||o,A=(B(t)||$(t)?I(t[0]):"length"in n)?[t]:tt(t);if(l._targets=A.length?ce(A):U("GSAP target "+t+" not found. https://gsap.com",!y.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=T,S||x||D(b)||D(_)){if(n=l.vars,(c=l.timeline=new jt({data:"nested",defaults:E||{},targets:k&&"nested"===k.data?k.vars.targets:A})).kill(),c.parent=c._dp=i(l),c._start=0,x||D(b)||D(_)){if(h=A.length,m=x&&nt(x),L(x))for(p in x)~Ut.indexOf(p)&&(g||(g={}),g[p]=x[p]);for(d=0;d<h;d++)(u=Ee(n,Qt)).stagger=0,M&&(u.yoyoEase=M),g&&Te(u,g),f=A[d],u.duration=+Gt(b,i(l),d,f,A),u.delay=(+Gt(_,i(l),d,f,A)||0)-l._delay,!x&&1===h&&u.delay&&(l._delay=_=u.delay,l._start+=_,u.delay=0),c.to(f,u,m?m(d,f,A):0),c._ease=Mt.none;c.duration()?b=_=0:l.timeline=0}else if(S){Ce(xe(c.vars.defaults,{ease:"none"})),c._ease=Pt(S.ease||n.ease||"none");var O,z,R,F=0;if(B(S))S.forEach((function(e){return c.to(A,e,">")})),c.duration();else{for(p in u={},S)"ease"===p||"easeEach"===p||Vt(p,S[p],u,S.easeEach);for(p in u)for(O=u[p].sort((function(e,t){return e.t-t.t})),F=0,d=0;d<O.length;d++)(R={ease:(z=O[d]).e,duration:(z.t-(d?O[d-1].t:0))/100*b})[p]=z.v,c.to(A,R,F),F+=R.duration;c.duration()<b&&c.to({},{duration:b-c.duration()})}}b||l.duration(b=c.duration())}else l.timeline=0;return!0!==T||s||(Nt=i(l),o.killTweensOf(A),Nt=0),Fe(k,i(l),r),n.reversed&&l.reverse(),n.paused&&l.paused(!0),(w||!b&&!S&&l._start===fe(k._time)&&P(w)&&Le(i(l))&&"nested"!==k.data)&&(l._tTime=-1e-8,l.render(Math.max(0,-_)||0)),C&&je(i(l),C),l}t(r,e);var a=r.prototype;return a.render=function(e,t,i){var s,r,o,a,l,c,d,u,h,p=this._time,f=this._tDur,m=this._dur,g=e<0,v=e>f-w&&!g?f:e<w?0:e;if(m){if(v!==this._tTime||!e||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g||this._lazy){if(s=v,u=this.timeline,this._repeat){if(a=m+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*a+e,t,i);if(s=fe(v%a),v===f?(o=this._repeat,s=m):(o=~~(l=fe(v/a)))&&o===l?(s=m,o--):s>m&&(s=m),(c=this._yoyo&&1&o)&&(h=this._yEase,s=m-s),l=ze(this._tTime,a),s===p&&!i&&this._initted&&o===l)return this._tTime=v,this;o!==l&&(u&&this._yEase&&Lt(u,c),this.vars.repeatRefresh&&!c&&!this._lock&&s!==a&&this._initted&&(this._lock=i=1,this.render(fe(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(Ne(this,g?e:s,i,t,v))return this._tTime=0,this;if(!(p===this._time||i&&this.vars.repeatRefresh&&o!==l))return this;if(m!==this._dur)return this.render(e,t,i)}if(this._tTime=v,this._time=s,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=d=(h||this._ease)(s/m),this._from&&(this.ratio=d=1-d),!p&&v&&!t&&!l&&(ht(this,"onStart"),this._tTime!==v))return this;for(r=this._pt;r;)r.r(d,r.d),r=r._next;u&&u.render(e<0?e:u._dur*u._ease(s/this._dur),t,i)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(g&&Oe(this,e,0,i),ht(this,"onUpdate")),this._repeat&&o!==l&&this.vars.onRepeat&&!t&&this.parent&&ht(this,"onRepeat"),v!==this._tDur&&v||this._tTime!==v||(g&&!this._onUpdate&&Oe(this,e,0,!0),(e||!m)&&(v===this._tDur&&this._ts>0||!v&&this._ts<0)&&Ae(this,1),t||g&&!p||!(v||p||c)||(ht(this,v===f?"onComplete":"onReverseComplete",!0),this._prom&&!(v<f&&this.timeScale()>0)&&this._prom()))}}else!function(e,t,i,s){var r,o,a,l=e.ratio,c=t<0||!t&&(!e._start&&He(e)&&(e._initted||!We(e))||(e._ts<0||e._dp._ts<0)&&!We(e))?0:1,d=e._rDelay,u=0;if(d&&e._repeat&&(u=Qe(0,e._tDur,t),o=ze(u,d),e._yoyo&&1&o&&(c=1-c),o!==ze(e._tTime,d)&&(l=1-c,e.vars.repeatRefresh&&e._initted&&e.invalidate())),c!==l||n||s||e._zTime===w||!t&&e._zTime){if(!e._initted&&Ne(e,t,s,i,u))return;for(a=e._zTime,e._zTime=t||(i?w:0),i||(i=t&&!a),e.ratio=c,e._from&&(c=1-c),e._time=0,e._tTime=u,r=e._pt;r;)r.r(c,r.d),r=r._next;t<0&&Oe(e,t,0,!0),e._onUpdate&&!i&&ht(e,"onUpdate"),u&&e._repeat&&!i&&e.parent&&ht(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===c&&(c&&Ae(e,1),i||n||(ht(e,c?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,i);return this},a.targets=function(){return this._targets},a.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},a.resetTo=function(e,t,i,s,n){p||Et.wake(),this._ts||this.play();var r=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Xt(this,r),function(e,t,i,s,n,r,o,a){var l,c,d,u,h=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!h)for(h=e._ptCache[t]=[],d=e._ptLookup,u=e._targets.length;u--;){if((l=d[u][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Ht=1,e.vars[t]="+=0",Xt(e,o),Ht=0,a?U(t+" not eligible for reset"):1;h.push(l)}for(u=h.length;u--;)(l=(c=h[u])._pt||c).s=!s&&0!==s||n?l.s+(s||0)+r*l.c:s,l.c=i-l.s,c.e&&(c.e=pe(i)+Ze(c.e)),c.b&&(c.b=l.s+Ze(c.b))}(this,e,t,i,s,this._ease(r/this._dur),r,n)?this.resetTo(e,t,i,s,1):(Be(this,0),this.parent||Me(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},a.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t))return this._lazy=this._pt=0,this.parent?pt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!n),this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Nt&&!0!==Nt.vars.overwrite)._first||pt(this),this.parent&&i!==this.timeline.totalDuration()&&qe(this,this._dur*this.timeline._tDur/i,0,1),this}var s,r,o,a,l,c,d,u=this._targets,h=e?tt(e):u,p=this._ptLookup,f=this._pt;if((!t||"all"===t)&&function(e,t){for(var i=e.length,s=i===t.length;s&&i--&&e[i]===t[i];);return i<0}(u,h))return"all"===t&&(this._pt=0),pt(this);for(s=this._op=this._op||[],"all"!==t&&(k(t)&&(l={},he(t,(function(e){return l[e]=1})),t=l),t=function(e,t){var i,s,n,r,o=e[0]?de(e[0]).harness:0,a=o&&o.aliases;if(!a)return t;for(s in i=Te({},t),a)if(s in i)for(n=(r=a[s].split(",")).length;n--;)i[r[n]]=i[s];return i}(u,t)),d=u.length;d--;)if(~h.indexOf(u[d]))for(l in r=p[d],"all"===t?(s[d]=t,a=r,o={}):(o=s[d]=s[d]||{},a=t),a)(c=r&&r[l])&&("kill"in c.d&&!0!==c.d.kill(l)||ke(this,c,"_pt"),delete r[l]),"all"!==o&&(o[l]=1);return this._initted&&!this._pt&&f&&pt(this),this},r.to=function(e,t){return new r(e,t,arguments[2])},r.from=function(e,t){return Ge(1,arguments)},r.delayedCall=function(e,t,i,s){return new r(t,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:t,onReverseComplete:t,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:s})},r.fromTo=function(e,t,i){return Ge(2,arguments)},r.set=function(e,t){return t.duration=0,t.repeatDelay||(t.repeat=0),new r(e,t)},r.killTweensOf=function(e,t,i){return o.killTweensOf(e,t,i)},r}(Ft);xe(Zt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),he("staggerTo,staggerFrom,staggerFromTo",(function(e){Zt[e]=function(){var t=new jt,i=Ke.call(arguments,0);return i.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,i)}}));var Kt=function(e,t,i){return e[t]=i},Jt=function(e,t,i){return e[t](i)},ei=function(e,t,i,s){return e[t](s.fp,i)},ti=function(e,t,i){return e.setAttribute(t,i)},ii=function(e,t){return A(e[t])?Jt:O(e[t])&&e.setAttribute?ti:Kt},si=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},ni=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ri=function(e,t){var i=t._pt,s="";if(!e&&t.b)s=t.b;else if(1===e&&t.e)s=t.e;else{for(;i;)s=i.p+(i.m?i.m(i.s+i.c*e):Math.round(1e4*(i.s+i.c*e))/1e4)+s,i=i._next;s+=t.c}t.set(t.t,t.p,s,t)},oi=function(e,t){for(var i=t._pt;i;)i.r(e,i.d),i=i._next},ai=function(e,t,i,s){for(var n,r=this._pt;r;)n=r._next,r.p===s&&r.modifier(e,t,i),r=n},li=function(e){for(var t,i,s=this._pt;s;)i=s._next,s.p===e&&!s.op||s.op===e?ke(this,s,"_pt"):s.dep||(t=1),s=i;return!t},ci=function(e,t,i,s){s.mSet(e,t,s.m.call(s.tween,i,s.mt),s)},di=function(e){for(var t,i,s,n,r=e._pt;r;){for(t=r._next,i=s;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:n)?r._prev._next=r:s=r,(r._next=i)?i._prev=r:n=r,r=t}e._pt=s},ui=function(){function e(e,t,i,s,n,r,o,a,l){this.t=t,this.s=s,this.c=n,this.p=i,this.r=r||si,this.d=o||this,this.set=a||Kt,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,i){this.mSet=this.mSet||this.set,this.set=ci,this.m=e,this.mt=i,this.tween=t},e}();he(le+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(e){return te[e]=1})),Y.TweenMax=Y.TweenLite=Zt,Y.TimelineLite=Y.TimelineMax=jt,o=new jt({sortChildren:!1,defaults:b,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),y.stringFilter=St;var hi=[],pi={},fi=[],mi=0,gi=0,vi=function(e){return(pi[e]||fi).map((function(e){return e()}))},yi=function(){var e=Date.now(),t=[];e-mi>2&&(vi("matchMediaInit"),hi.forEach((function(e){var i,s,n,r,o=e.queries,l=e.conditions;for(s in o)(i=a.matchMedia(o[s]).matches)&&(n=1),i!==l[s]&&(l[s]=i,r=1);r&&(e.revert(),n&&t.push(e))})),vi("matchMediaRevert"),t.forEach((function(e){return e.onMatch(e,(function(t){return e.add(null,t)}))})),mi=e,vi("matchMedia"))},bi=function(){function e(e,t){this.selector=t&&it(t),this.data=[],this._r=[],this.isReverted=!1,this.id=gi++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,i){A(e)&&(i=t,t=e,e=A);var s=this,n=function(){var e,n=r,o=s.selector;return n&&n!==s&&n.data.push(s),i&&(s.selector=it(i)),r=s,e=t.apply(s,arguments),A(e)&&s._r.push(e),r=n,s.selector=o,s.isReverted=!1,e};return s.last=n,e===A?n(s,(function(e){return s.add(null,e)})):e?s[e]=n:n},t.ignore=function(e){var t=r;r=null,e(this),r=t},t.getTweens=function(){var t=[];return this.data.forEach((function(i){return i instanceof e?t.push.apply(t,i.getTweens()):i instanceof Zt&&!(i.parent&&"nested"===i.parent.data)&&t.push(i)})),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var i=this;if(e?function(){for(var t,s=i.getTweens(),n=i.data.length;n--;)"isFlip"===(t=i.data[n]).data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(e){return s.splice(s.indexOf(e),1)})));for(s.map((function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}})).sort((function(e,t){return t.g-e.g||-1/0})).forEach((function(t){return t.t.revert(e)})),n=i.data.length;n--;)(t=i.data[n])instanceof jt?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof Zt)&&t.revert&&t.revert(e);i._r.forEach((function(t){return t(e,i)})),i.isReverted=!0}():this.data.forEach((function(e){return e.kill&&e.kill()})),this.clear(),t)for(var s=hi.length;s--;)hi[s].id===this.id&&hi.splice(s,1)},t.revert=function(e){this.kill(e||{})},e}(),_i=function(){function e(e){this.contexts=[],this.scope=e,r&&r.data.push(this)}var t=e.prototype;return t.add=function(e,t,i){L(e)||(e={matches:e});var s,n,o,l=new bi(0,i||this.scope),c=l.conditions={};for(n in r&&!l.selector&&(l.selector=r.selector),this.contexts.push(l),t=l.add("onMatch",t),l.queries=e,e)"all"===n?o=1:(s=a.matchMedia(e[n]))&&(hi.indexOf(l)<0&&hi.push(l),(c[n]=s.matches)&&(o=1),s.addListener?s.addListener(yi):s.addEventListener("change",yi));return o&&t(l,(function(e){return l.add(null,e)})),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach((function(t){return t.kill(e,!0)}))},e}(),wi={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t.forEach((function(e){return mt(e)}))},timeline:function(e){return new jt(e)},getTweensOf:function(e,t){return o.getTweensOf(e,t)},getProperty:function(e,t,i,s){k(e)&&(e=tt(e)[0]);var n=de(e||{}).get,r=i?we:_e;return"native"===i&&(i=""),e?t?r((ne[t]&&ne[t].get||n)(e,t,i,s)):function(t,i,s){return r((ne[t]&&ne[t].get||n)(e,t,i,s))}:e},quickSetter:function(e,t,i){if((e=tt(e)).length>1){var s=e.map((function(e){return Si.quickSetter(e,t,i)})),n=s.length;return function(e){for(var t=n;t--;)s[t](e)}}e=e[0]||{};var r=ne[t],o=de(e),a=o.harness&&(o.harness.aliases||{})[t]||t,l=r?function(t){var s=new r;h._pt=0,s.init(e,i?t+i:t,h,0,[e]),s.render(1,s),h._pt&&oi(1,h)}:o.set(e,a);return r?l:function(t){return l(e,a,i?t+i:t,o,1)}},quickTo:function(e,t,i){var s,n=Si.to(e,xe(((s={})[t]="+=0.1",s.paused=!0,s.stagger=0,s),i||{})),r=function(e,i,s){return n.resetTo(t,e,i,s)};return r.tween=n,r},isTweening:function(e){return o.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Pt(e.ease,b.ease)),Se(b,e||{})},config:function(e){return Se(y,e||{})},registerEffect:function(e){var t=e.name,i=e.effect,s=e.plugins,n=e.defaults,r=e.extendTimeline;(s||"").split(",").forEach((function(e){return e&&!ne[e]&&!Y[e]&&U(t+" effect requires "+e+" plugin.")})),re[t]=function(e,t,s){return i(tt(e),xe(t||{},n),s)},r&&(jt.prototype[t]=function(e,i,s){return this.add(re[t](e,L(i)?i:(s=i)&&{},this),s)})},registerEase:function(e,t){Mt[e]=Pt(t)},parseEase:function(e,t){return arguments.length?Pt(e,t):Mt},getById:function(e){return o.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var i,s,n=new jt(e);for(n.smoothChildTiming=P(e.smoothChildTiming),o.remove(n),n._dp=0,n._time=n._tTime=o._time,i=o._first;i;)s=i._next,!t&&!i._dur&&i instanceof Zt&&i.vars.onComplete===i._targets[0]||Fe(n,i,i._start-i._delay),i=s;return Fe(o,n,0),n},context:function(e,t){return e?new bi(e,t):r},matchMedia:function(e){return new _i(e)},matchMediaRefresh:function(){return hi.forEach((function(e){var t,i,s=e.conditions;for(i in s)s[i]&&(s[i]=!1,t=1);t&&e.revert()}))||yi()},addEventListener:function(e,t){var i=pi[e]||(pi[e]=[]);~i.indexOf(t)||i.push(t)},removeEventListener:function(e,t){var i=pi[e],s=i&&i.indexOf(t);s>=0&&i.splice(s,1)},utils:{wrap:function e(t,i,s){var n=i-t;return B(t)?lt(t,e(0,t.length),i):Ue(s,(function(e){return(n+(e-t)%n)%n+t}))},wrapYoyo:function e(t,i,s){var n=i-t,r=2*n;return B(t)?lt(t,e(0,t.length-1),i):Ue(s,(function(e){return t+((e=(r+(e-t)%r)%r||0)>n?r-e:e)}))},distribute:nt,random:at,snap:ot,normalize:function(e,t,i){return dt(e,t,0,1,i)},getUnit:Ze,clamp:function(e,t,i){return Ue(i,(function(i){return Qe(e,t,i)}))},splitColor:bt,toArray:tt,selector:it,mapRange:dt,pipe:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return t.reduce((function(e,t){return t(e)}),e)}},unitize:function(e,t){return function(i){return e(parseFloat(i))+(t||Ze(i))}},interpolate:function e(t,i,s,n){var r=isNaN(t+i)?0:function(e){return(1-e)*t+e*i};if(!r){var o,a,l,c,d,u=k(t),h={};if(!0===s&&(n=1)&&(s=null),u)t={p:t},i={p:i};else if(B(t)&&!B(i)){for(l=[],c=t.length,d=c-2,a=1;a<c;a++)l.push(e(t[a-1],t[a]));c--,r=function(e){e*=c;var t=Math.min(d,~~e);return l[t](e-t)},s=i}else n||(t=Te(B(t)?[]:{},t));if(!l){for(o in i)qt.call(h,t,o,"get",i[o]);r=function(e){return oi(e,h)||(u?t.p:t)}}}return Ue(s,r)},shuffle:st},install:V,effects:re,ticker:Et,updateRoot:jt.updateRoot,plugins:ne,globalTimeline:o,core:{PropTween:ui,globals:Q,Tween:Zt,Timeline:jt,Animation:Ft,getCache:de,_removeLinkedListItem:ke,reverting:function(){return n},context:function(e){return e&&r&&(r.data.push(e),e._ctx=r),r},suppressOverwrites:function(e){return s=e}}};he("to,from,fromTo,delayedCall,set,killTweensOf",(function(e){return wi[e]=Zt[e]})),Et.add(jt.updateRoot),h=wi.to({},{duration:0});var xi=function(e,t){for(var i=e._pt;i&&i.p!==t&&i.op!==t&&i.fp!==t;)i=i._next;return i},Ti=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,i,s){s._onInit=function(e){var s,n;if(k(i)&&(s={},he(i,(function(e){return s[e]=1})),i=s),t){for(n in s={},i)s[n]=t(i[n]);i=s}!function(e,t){var i,s,n,r=e._targets;for(i in t)for(s=r.length;s--;)(n=e._ptLookup[s][i])&&(n=n.d)&&(n._pt&&(n=xi(n,i)),n&&n.modifier&&n.modifier(t[i],e,r[s],i))}(e,i)}}}},Si=wi.registerPlugin({name:"attr",init:function(e,t,i,s,n){var r,o,a;for(r in this.tween=i,t)a=e.getAttribute(r)||"",(o=this.add(e,"setAttribute",(a||0)+"",t[r],s,n,0,0,r)).op=r,o.b=a,this._props.push(r)},render:function(e,t){for(var i=t._pt;i;)n?i.set(i.t,i.p,i.b,i):i.r(e,i.d),i=i._next}},{name:"endArray",headless:1,init:function(e,t){for(var i=t.length;i--;)this.add(e,i,e[i]||0,t[i],0,0,0,0,0,1)}},Ti("roundProps",rt),Ti("modifiers"),Ti("snap",ot))||wi;Zt.version=jt.version=Si.version="3.13.0",d=1,z()&&Ct();var Ei,Ci,Mi,ki,Ai,Ii,Oi,Li,Pi=Mt.Power0,zi=Mt.Power1,Di=Mt.Power2,$i=Mt.Power3,Bi=Mt.Power4,Ri=Mt.Linear,Fi=Mt.Quad,ji=Mt.Cubic,Ni=Mt.Quart,Hi=Mt.Quint,Wi=Mt.Strong,qi=Mt.Elastic,Yi=Mt.Back,Xi=Mt.SteppedEase,Vi=Mt.Bounce,Gi=Mt.Sine,Ui=Mt.Expo,Qi=Mt.Circ,Zi={},Ki=180/Math.PI,Ji=Math.PI/180,es=Math.atan2,ts=/([A-Z])/g,is=/(left|right|width|margin|padding|x)/i,ss=/[\s,\(]\S/,ns={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},rs=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},os=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},as=function(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},ls=function(e,t){var i=t.s+t.c*e;t.set(t.t,t.p,~~(i+(i<0?-.5:.5))+t.u,t)},cs=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},ds=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},us=function(e,t,i){return e.style[t]=i},hs=function(e,t,i){return e.style.setProperty(t,i)},ps=function(e,t,i){return e._gsap[t]=i},fs=function(e,t,i){return e._gsap.scaleX=e._gsap.scaleY=i},ms=function(e,t,i,s,n){var r=e._gsap;r.scaleX=r.scaleY=i,r.renderTransform(n,r)},gs=function(e,t,i,s,n){var r=e._gsap;r[t]=i,r.renderTransform(n,r)},vs="transform",ys=vs+"Origin",bs=function e(t,i){var s=this,n=this.target,r=n.style,o=n._gsap;if(t in Zi&&r){if(this.tfm=this.tfm||{},"transform"===t)return ns.transform.split(",").forEach((function(t){return e.call(s,t,i)}));if(~(t=ns[t]||t).indexOf(",")?t.split(",").forEach((function(e){return s.tfm[e]=Bs(n,e)})):this.tfm[t]=o.x?o[t]:Bs(n,t),t===ys&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(vs)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(ys,i,"")),t=vs}(r||i)&&this.props.push(t,i,r[t])},_s=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ws=function(){var e,t,i=this.props,s=this.target,n=s.style,r=s._gsap;for(e=0;e<i.length;e+=3)i[e+1]?2===i[e+1]?s[i[e]](i[e+2]):s[i[e]]=i[e+2]:i[e+2]?n[i[e]]=i[e+2]:n.removeProperty("--"===i[e].substr(0,2)?i[e]:i[e].replace(ts,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)r[t]=this.tfm[t];r.svg&&(r.renderTransform(),s.setAttribute("data-svg-origin",this.svgo||"")),(e=Oi())&&e.isStart||n[vs]||(_s(n),r.zOrigin&&n[ys]&&(n[ys]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},xs=function(e,t){var i={target:e,props:[],revert:ws,save:bs};return e._gsap||Si.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach((function(e){return i.save(e)})),i},Ts=function(e,t){var i=Ci.createElementNS?Ci.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ci.createElement(e);return i&&i.style?i:Ci.createElement(e)},Ss=function e(t,i,s){var n=getComputedStyle(t);return n[i]||n.getPropertyValue(i.replace(ts,"-$1").toLowerCase())||n.getPropertyValue(i)||!s&&e(t,Cs(i)||i,1)||""},Es="O,Moz,ms,Ms,Webkit".split(","),Cs=function(e,t,i){var s=(t||Ai).style,n=5;if(e in s&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);n--&&!(Es[n]+e in s););return n<0?null:(3===n?"ms":n>=0?Es[n]:"")+e},Ms=function(){"undefined"!=typeof window&&window.document&&(Ei=window,Ci=Ei.document,Mi=Ci.documentElement,Ai=Ts("div")||{style:{}},Ts("div"),vs=Cs(vs),ys=vs+"Origin",Ai.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Li=!!Cs("perspective"),Oi=Si.core.reverting,ki=1)},ks=function(e){var t,i=e.ownerSVGElement,s=Ts("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0);n.style.display="block",s.appendChild(n),Mi.appendChild(s);try{t=n.getBBox()}catch(e){}return s.removeChild(n),Mi.removeChild(s),t},As=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},Is=function(e){var t,i;try{t=e.getBBox()}catch(s){t=ks(e),i=1}return t&&(t.width||t.height)||i||(t=ks(e)),!t||t.width||t.x||t.y?t:{x:+As(e,["x","cx","x1"])||0,y:+As(e,["y","cy","y1"])||0,width:0,height:0}},Os=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!Is(e))},Ls=function(e,t){if(t){var i,s=e.style;t in Zi&&t!==ys&&(t=vs),s.removeProperty?("ms"!==(i=t.substr(0,2))&&"webkit"!==t.substr(0,6)||(t="-"+t),s.removeProperty("--"===i?t:t.replace(ts,"-$1").toLowerCase())):s.removeAttribute(t)}},Ps=function(e,t,i,s,n,r){var o=new ui(e._pt,t,i,0,1,r?ds:cs);return e._pt=o,o.b=s,o.e=n,e._props.push(i),o},zs={deg:1,rad:1,turn:1},Ds={grid:1,flex:1},$s=function e(t,i,s,n){var r,o,a,l,c=parseFloat(s)||0,d=(s+"").trim().substr((c+"").length)||"px",u=Ai.style,h=is.test(i),p="svg"===t.tagName.toLowerCase(),f=(p?"client":"offset")+(h?"Width":"Height"),m=100,g="px"===n,v="%"===n;if(n===d||!c||zs[n]||zs[d])return c;if("px"!==d&&!g&&(c=e(t,i,s,"px")),l=t.getCTM&&Os(t),(v||"%"===d)&&(Zi[i]||~i.indexOf("adius")))return r=l?t.getBBox()[h?"width":"height"]:t[f],pe(v?c/r*m:c/100*r);if(u[h?"width":"height"]=m+(g?d:n),o="rem"!==n&&~i.indexOf("adius")||"em"===n&&t.appendChild&&!p?t:t.parentNode,l&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==Ci&&o.appendChild||(o=Ci.body),(a=o._gsap)&&v&&a.width&&h&&a.time===Et.time&&!a.uncache)return pe(c/a.width*m);if(!v||"height"!==i&&"width"!==i)(v||"%"===d)&&!Ds[Ss(o,"display")]&&(u.position=Ss(t,"position")),o===t&&(u.position="static"),o.appendChild(Ai),r=Ai[f],o.removeChild(Ai),u.position="absolute";else{var y=t.style[i];t.style[i]=m+n,r=t[f],y?t.style[i]=y:Ls(t,i)}return h&&v&&((a=de(o)).time=Et.time,a.width=o[f]),pe(g?r*c/m:r&&c?m/r*c:0)},Bs=function(e,t,i,s){var n;return ki||Ms(),t in ns&&"transform"!==t&&~(t=ns[t]).indexOf(",")&&(t=t.split(",")[0]),Zi[t]&&"transform"!==t?(n=Gs(e,s),n="transformOrigin"!==t?n[t]:n.svg?n.origin:Us(Ss(e,ys))+" "+n.zOrigin+"px"):(!(n=e.style[t])||"auto"===n||s||~(n+"").indexOf("calc("))&&(n=Ns[t]&&Ns[t](e,t,i)||Ss(e,t)||ue(e,t)||("opacity"===t?1:0)),i&&!~(n+"").trim().indexOf(" ")?$s(e,t,n,i)+i:n},Rs=function(e,t,i,s){if(!i||"none"===i){var n=Cs(t,e,1),r=n&&Ss(e,n,1);r&&r!==i?(t=n,i=r):"borderColor"===t&&(i=Ss(e,"borderTopColor"))}var o,a,l,c,d,u,h,p,f,m,g,v=new ui(this._pt,e.style,t,0,1,ri),b=0,_=0;if(v.b=i,v.e=s,i+="","var(--"===(s+="").substring(0,6)&&(s=Ss(e,s.substring(4,s.indexOf(")")))),"auto"===s&&(u=e.style[t],e.style[t]=s,s=Ss(e,t)||s,u?e.style[t]=u:Ls(e,t)),St(o=[i,s]),s=o[1],l=(i=o[0]).match(j)||[],(s.match(j)||[]).length){for(;a=j.exec(s);)h=a[0],f=s.substring(b,a.index),d?d=(d+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(d=1),h!==(u=l[_++]||"")&&(c=parseFloat(u)||0,g=u.substr((c+"").length),"="===h.charAt(1)&&(h=me(c,h)+g),p=parseFloat(h),m=h.substr((p+"").length),b=j.lastIndex-m.length,m||(m=m||y.units[t]||g,b===s.length&&(s+=m,v.e+=m)),g!==m&&(c=$s(e,t,u,m)||0),v._pt={_next:v._pt,p:f||1===_?f:",",s:c,c:p-c,m:d&&d<4||"zIndex"===t?Math.round:0});v.c=b<s.length?s.substring(b,s.length):""}else v.r="display"===t&&"none"===s?ds:cs;return H.test(s)&&(v.e=0),this._pt=v,v},Fs={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},js=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var i,s,n,r=t.t,o=r.style,a=t.u,l=r._gsap;if("all"===a||!0===a)o.cssText="",s=1;else for(n=(a=a.split(",")).length;--n>-1;)i=a[n],Zi[i]&&(s=1,i="transformOrigin"===i?ys:vs),Ls(r,i);s&&(Ls(r,vs),l&&(l.svg&&r.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",Gs(r,1),l.uncache=1,_s(o)))}},Ns={clearProps:function(e,t,i,s,n){if("isFromStart"!==n.data){var r=e._pt=new ui(e._pt,t,i,0,0,js);return r.u=s,r.pr=-10,r.tween=n,e._props.push(i),1}}},Hs=[1,0,0,1,0,0],Ws={},qs=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},Ys=function(e){var t=Ss(e,vs);return qs(t)?Hs:t.substr(7).match(F).map(pe)},Xs=function(e,t){var i,s,n,r,o=e._gsap||de(e),a=e.style,l=Ys(e);return o.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(n=e.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?Hs:l:(l!==Hs||e.offsetParent||e===Mi||o.svg||(n=a.display,a.display="block",(i=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(r=1,s=e.nextElementSibling,Mi.appendChild(e)),l=Ys(e),n?a.display=n:Ls(e,"display"),r&&(s?i.insertBefore(e,s):i?i.appendChild(e):Mi.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Vs=function(e,t,i,s,n,r){var o,a,l,c=e._gsap,d=n||Xs(e,!0),u=c.xOrigin||0,h=c.yOrigin||0,p=c.xOffset||0,f=c.yOffset||0,m=d[0],g=d[1],v=d[2],y=d[3],b=d[4],_=d[5],w=t.split(" "),x=parseFloat(w[0])||0,T=parseFloat(w[1])||0;i?d!==Hs&&(a=m*y-g*v)&&(l=x*(-g/a)+T*(m/a)-(m*_-g*b)/a,x=x*(y/a)+T*(-v/a)+(v*_-y*b)/a,T=l):(x=(o=Is(e)).x+(~w[0].indexOf("%")?x/100*o.width:x),T=o.y+(~(w[1]||w[0]).indexOf("%")?T/100*o.height:T)),s||!1!==s&&c.smooth?(b=x-u,_=T-h,c.xOffset=p+(b*m+_*v)-b,c.yOffset=f+(b*g+_*y)-_):c.xOffset=c.yOffset=0,c.xOrigin=x,c.yOrigin=T,c.smooth=!!s,c.origin=t,c.originIsAbsolute=!!i,e.style[ys]="0px 0px",r&&(Ps(r,c,"xOrigin",u,x),Ps(r,c,"yOrigin",h,T),Ps(r,c,"xOffset",p,c.xOffset),Ps(r,c,"yOffset",f,c.yOffset)),e.setAttribute("data-svg-origin",x+" "+T)},Gs=function(e,t){var i=e._gsap||new Rt(e);if("x"in i&&!t&&!i.uncache)return i;var s,n,r,o,a,l,c,d,u,h,p,f,m,g,v,b,_,w,x,T,S,E,C,M,k,A,I,O,L,P,z,D,$=e.style,B=i.scaleX<0,R="px",F="deg",j=getComputedStyle(e),N=Ss(e,ys)||"0";return s=n=r=l=c=d=u=h=p=0,o=a=1,i.svg=!(!e.getCTM||!Os(e)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||($[vs]=("none"!==j.translate?"translate3d("+(j.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==j.rotate?"rotate("+j.rotate+") ":"")+("none"!==j.scale?"scale("+j.scale.split(" ").join(",")+") ":"")+("none"!==j[vs]?j[vs]:"")),$.scale=$.rotate=$.translate="none"),g=Xs(e,i.svg),i.svg&&(i.uncache?(k=e.getBBox(),N=i.xOrigin-k.x+"px "+(i.yOrigin-k.y)+"px",M=""):M=!t&&e.getAttribute("data-svg-origin"),Vs(e,M||N,!!M||i.originIsAbsolute,!1!==i.smooth,g)),f=i.xOrigin||0,m=i.yOrigin||0,g!==Hs&&(w=g[0],x=g[1],T=g[2],S=g[3],s=E=g[4],n=C=g[5],6===g.length?(o=Math.sqrt(w*w+x*x),a=Math.sqrt(S*S+T*T),l=w||x?es(x,w)*Ki:0,(u=T||S?es(T,S)*Ki+l:0)&&(a*=Math.abs(Math.cos(u*Ji))),i.svg&&(s-=f-(f*w+m*T),n-=m-(f*x+m*S))):(D=g[6],P=g[7],I=g[8],O=g[9],L=g[10],z=g[11],s=g[12],n=g[13],r=g[14],c=(v=es(D,L))*Ki,v&&(M=E*(b=Math.cos(-v))+I*(_=Math.sin(-v)),k=C*b+O*_,A=D*b+L*_,I=E*-_+I*b,O=C*-_+O*b,L=D*-_+L*b,z=P*-_+z*b,E=M,C=k,D=A),d=(v=es(-T,L))*Ki,v&&(b=Math.cos(-v),z=S*(_=Math.sin(-v))+z*b,w=M=w*b-I*_,x=k=x*b-O*_,T=A=T*b-L*_),l=(v=es(x,w))*Ki,v&&(M=w*(b=Math.cos(v))+x*(_=Math.sin(v)),k=E*b+C*_,x=x*b-w*_,C=C*b-E*_,w=M,E=k),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,d=180-d),o=pe(Math.sqrt(w*w+x*x+T*T)),a=pe(Math.sqrt(C*C+D*D)),v=es(E,C),u=Math.abs(v)>2e-4?v*Ki:0,p=z?1/(z<0?-z:z):0),i.svg&&(M=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!qs(Ss(e,vs)),M&&e.setAttribute("transform",M))),Math.abs(u)>90&&Math.abs(u)<270&&(B?(o*=-1,u+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,u+=u<=0?180:-180)),t=t||i.uncache,i.x=s-((i.xPercent=s&&(!t&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-s)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+R,i.y=n-((i.yPercent=n&&(!t&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-n)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+R,i.z=r+R,i.scaleX=pe(o),i.scaleY=pe(a),i.rotation=pe(l)+F,i.rotationX=pe(c)+F,i.rotationY=pe(d)+F,i.skewX=u+F,i.skewY=h+F,i.transformPerspective=p+R,(i.zOrigin=parseFloat(N.split(" ")[2])||!t&&i.zOrigin||0)&&($[ys]=Us(N)),i.xOffset=i.yOffset=0,i.force3D=y.force3D,i.renderTransform=i.svg?sn:Li?tn:Zs,i.uncache=0,i},Us=function(e){return(e=e.split(" "))[0]+" "+e[1]},Qs=function(e,t,i){var s=Ze(t);return pe(parseFloat(t)+parseFloat($s(e,"x",i+"px",s)))+s},Zs=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,tn(e,t)},Ks="0deg",Js="0px",en=") ",tn=function(e,t){var i=t||this,s=i.xPercent,n=i.yPercent,r=i.x,o=i.y,a=i.z,l=i.rotation,c=i.rotationY,d=i.rotationX,u=i.skewX,h=i.skewY,p=i.scaleX,f=i.scaleY,m=i.transformPerspective,g=i.force3D,v=i.target,y=i.zOrigin,b="",_="auto"===g&&e&&1!==e||!0===g;if(y&&(d!==Ks||c!==Ks)){var w,x=parseFloat(c)*Ji,T=Math.sin(x),S=Math.cos(x);x=parseFloat(d)*Ji,w=Math.cos(x),r=Qs(v,r,T*w*-y),o=Qs(v,o,-Math.sin(x)*-y),a=Qs(v,a,S*w*-y+y)}m!==Js&&(b+="perspective("+m+en),(s||n)&&(b+="translate("+s+"%, "+n+"%) "),(_||r!==Js||o!==Js||a!==Js)&&(b+=a!==Js||_?"translate3d("+r+", "+o+", "+a+") ":"translate("+r+", "+o+en),l!==Ks&&(b+="rotate("+l+en),c!==Ks&&(b+="rotateY("+c+en),d!==Ks&&(b+="rotateX("+d+en),u===Ks&&h===Ks||(b+="skew("+u+", "+h+en),1===p&&1===f||(b+="scale("+p+", "+f+en),v.style[vs]=b||"translate(0, 0)"},sn=function(e,t){var i,s,n,r,o,a=t||this,l=a.xPercent,c=a.yPercent,d=a.x,u=a.y,h=a.rotation,p=a.skewX,f=a.skewY,m=a.scaleX,g=a.scaleY,v=a.target,y=a.xOrigin,b=a.yOrigin,_=a.xOffset,w=a.yOffset,x=a.forceCSS,T=parseFloat(d),S=parseFloat(u);h=parseFloat(h),p=parseFloat(p),(f=parseFloat(f))&&(p+=f=parseFloat(f),h+=f),h||p?(h*=Ji,p*=Ji,i=Math.cos(h)*m,s=Math.sin(h)*m,n=Math.sin(h-p)*-g,r=Math.cos(h-p)*g,p&&(f*=Ji,o=Math.tan(p-f),n*=o=Math.sqrt(1+o*o),r*=o,f&&(o=Math.tan(f),i*=o=Math.sqrt(1+o*o),s*=o)),i=pe(i),s=pe(s),n=pe(n),r=pe(r)):(i=m,r=g,s=n=0),(T&&!~(d+"").indexOf("px")||S&&!~(u+"").indexOf("px"))&&(T=$s(v,"x",d,"px"),S=$s(v,"y",u,"px")),(y||b||_||w)&&(T=pe(T+y-(y*i+b*n)+_),S=pe(S+b-(y*s+b*r)+w)),(l||c)&&(o=v.getBBox(),T=pe(T+l/100*o.width),S=pe(S+c/100*o.height)),o="matrix("+i+","+s+","+n+","+r+","+T+","+S+")",v.setAttribute("transform",o),x&&(v.style[vs]=o)},nn=function(e,t,i,s,n){var r,o,a=360,l=k(n),c=parseFloat(n)*(l&&~n.indexOf("rad")?Ki:1)-s,d=s+c+"deg";return l&&("short"===(r=n.split("_")[1])&&(c%=a)!==c%180&&(c+=c<0?a:-360),"cw"===r&&c<0?c=(c+36e9)%a-~~(c/a)*a:"ccw"===r&&c>0&&(c=(c-36e9)%a-~~(c/a)*a)),e._pt=o=new ui(e._pt,t,i,s,c,os),o.e=d,o.u="deg",e._props.push(i),o},rn=function(e,t){for(var i in t)e[i]=t[i];return e},on=function(e,t,i){var s,n,r,o,a,l,c,d=rn({},i._gsap),u=i.style;for(n in d.svg?(r=i.getAttribute("transform"),i.setAttribute("transform",""),u[vs]=t,s=Gs(i,1),Ls(i,vs),i.setAttribute("transform",r)):(r=getComputedStyle(i)[vs],u[vs]=t,s=Gs(i,1),u[vs]=r),Zi)(r=d[n])!==(o=s[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(a=Ze(r)!==(c=Ze(o))?$s(i,n,r,c):parseFloat(r),l=parseFloat(o),e._pt=new ui(e._pt,s,n,a,l-a,rs),e._pt.u=c||0,e._props.push(n));rn(s,d)};he("padding,margin,Width,Radius",(function(e,t){var i="Top",s="Right",n="Bottom",r="Left",o=(t<3?[i,s,n,r]:[i+r,i+s,n+s,n+r]).map((function(i){return t<2?e+i:"border"+i+e}));Ns[t>1?"border"+e:e]=function(e,t,i,s,n){var r,a;if(arguments.length<4)return r=o.map((function(t){return Bs(e,t,i)})),5===(a=r.join(" ")).split(r[0]).length?r[0]:a;r=(s+"").split(" "),a={},o.forEach((function(e,t){return a[e]=r[t]=r[t]||r[(t-1)/2|0]})),e.init(t,a,n)}}));var an,ln,cn,dn={name:"css",register:Ms,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,s,n){var r,o,a,l,c,d,u,h,p,f,m,g,v,b,_,w,x,T,S,E,C=this._props,M=e.style,A=i.vars.startAt;for(u in ki||Ms(),this.styles=this.styles||xs(e),w=this.styles.props,this.tween=i,t)if("autoRound"!==u&&(o=t[u],!ne[u]||!Yt(u,t,i,s,e,n)))if(c=typeof o,d=Ns[u],"function"===c&&(c=typeof(o=o.call(i,s,e,n))),"string"===c&&~o.indexOf("random(")&&(o=ct(o)),d)d(this,e,u,o,i)&&(_=1);else if("--"===u.substr(0,2))r=(getComputedStyle(e).getPropertyValue(u)+"").trim(),o+="",xt.lastIndex=0,xt.test(r)||(h=Ze(r),p=Ze(o)),p?h!==p&&(r=$s(e,u,r,p)+p):h&&(o+=h),this.add(M,"setProperty",r,o,s,n,0,0,u),C.push(u),w.push(u,0,M[u]);else if("undefined"!==c){if(A&&u in A?(r="function"==typeof A[u]?A[u].call(i,s,e,n):A[u],k(r)&&~r.indexOf("random(")&&(r=ct(r)),Ze(r+"")||"auto"===r||(r+=y.units[u]||Ze(Bs(e,u))||""),"="===(r+"").charAt(1)&&(r=Bs(e,u))):r=Bs(e,u),l=parseFloat(r),(f="string"===c&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),u in ns&&("autoAlpha"===u&&(1===l&&"hidden"===Bs(e,"visibility")&&a&&(l=0),w.push("visibility",0,M.visibility),Ps(this,M,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==u&&"transform"!==u&&~(u=ns[u]).indexOf(",")&&(u=u.split(",")[0])),m=u in Zi)if(this.styles.save(u),"string"===c&&"var(--"===o.substring(0,6)&&(o=Ss(e,o.substring(4,o.indexOf(")"))),a=parseFloat(o)),g||((v=e._gsap).renderTransform&&!t.parseTransform||Gs(e,t.parseTransform),b=!1!==t.smoothOrigin&&v.smooth,(g=this._pt=new ui(this._pt,M,vs,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===u)this._pt=new ui(this._pt,v,"scaleY",v.scaleY,(f?me(v.scaleY,f+a):a)-v.scaleY||0,rs),this._pt.u=0,C.push("scaleY",u),u+="X";else{if("transformOrigin"===u){w.push(ys,0,M[ys]),T=void 0,S=void 0,E=void 0,T=(x=o).split(" "),S=T[0],E=T[1]||"50%","top"!==S&&"bottom"!==S&&"left"!==E&&"right"!==E||(x=S,S=E,E=x),T[0]=Fs[S]||S,T[1]=Fs[E]||E,o=T.join(" "),v.svg?Vs(e,o,0,b,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Ps(this,v,"zOrigin",v.zOrigin,p),Ps(this,M,u,Us(r),Us(o)));continue}if("svgOrigin"===u){Vs(e,o,1,b,0,this);continue}if(u in Ws){nn(this,v,u,l,f?me(l,f+o):o);continue}if("smoothOrigin"===u){Ps(this,v,"smooth",v.smooth,o);continue}if("force3D"===u){v[u]=o;continue}if("transform"===u){on(this,o,e);continue}}else u in M||(u=Cs(u)||u);if(m||(a||0===a)&&(l||0===l)&&!ss.test(o)&&u in M)a||(a=0),(h=(r+"").substr((l+"").length))!==(p=Ze(o)||(u in y.units?y.units[u]:h))&&(l=$s(e,u,r,p)),this._pt=new ui(this._pt,m?v:M,u,l,(f?me(l,f+a):a)-l,m||"px"!==p&&"zIndex"!==u||!1===t.autoRound?rs:ls),this._pt.u=p||0,h!==p&&"%"!==p&&(this._pt.b=r,this._pt.r=as);else if(u in M)Rs.call(this,e,u,r,f?f+o:o);else if(u in e)this.add(e,u,r||e[u],f?f+o:o,s,n);else if("parseTransform"!==u){G(u,o);continue}m||(u in M?w.push(u,0,M[u]):"function"==typeof e[u]?w.push(u,2,e[u]()):w.push(u,1,r||e[u])),C.push(u)}_&&di(this)},render:function(e,t){if(t.tween._time||!Oi())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:Bs,aliases:ns,getSetter:function(e,t,i){var s=ns[t];return s&&s.indexOf(",")<0&&(t=s),t in Zi&&t!==ys&&(e._gsap.x||Bs(e,"x"))?i&&Ii===i?"scale"===t?fs:ps:(Ii=i||{})&&("scale"===t?ms:gs):e.style&&!O(e.style[t])?us:~t.indexOf("-")?hs:ii(e,t)},core:{_removeProperty:Ls,_getMatrix:Xs}};Si.utils.checkPrefix=Cs,Si.core.getStyleSaver=xs,cn=he((an="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ln="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(e){Zi[e]=1})),he(ln,(function(e){y.units[e]="deg",Ws[e]=1})),ns[cn[13]]=an+","+ln,he("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(e){var t=e.split(":");ns[t[1]]=cn[t[0]]})),he("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(e){y.units[e]="px"})),Si.registerPlugin(dn);var un=Si.registerPlugin(dn)||Si,hn=un.core.Tween;e.Back=Yi,e.Bounce=Vi,e.CSSPlugin=dn,e.Circ=Qi,e.Cubic=ji,e.Elastic=qi,e.Expo=Ui,e.Linear=Ri,e.Power0=Pi,e.Power1=zi,e.Power2=Di,e.Power3=$i,e.Power4=Bi,e.Quad=Fi,e.Quart=Ni,e.Quint=Hi,e.Sine=Gi,e.SteppedEase=Xi,e.Strong=Wi,e.TimelineLite=jt,e.TimelineMax=jt,e.TweenLite=Zt,e.TweenMax=hn,e.default=un,e.gsap=un,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete window.default})),
  36. /*!
  37. Images Loaded Packaged
  38. Version: v5.0.0
  39. Plugin URL: https://imagesloaded.desandro.com/
  40. License: Copyright 2021-2024 | Released under the MIT License
  41. !*/
  42. function(e,t){"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,(function(){function e(){}let t=e.prototype;return t.on=function(e,t){if(!e||!t)return this;let i=this._events=this._events||{},s=i[e]=i[e]||[];return s.includes(t)||s.push(t),this},t.once=function(e,t){if(!e||!t)return this;this.on(e,t);let i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this},t.off=function(e,t){let i=this._events&&this._events[e];if(!i||!i.length)return this;let s=i.indexOf(t);return-1!=s&&i.splice(s,1),this},t.emitEvent=function(e,t){let i=this._events&&this._events[e];if(!i||!i.length)return this;i=i.slice(0),t=t||[];let s=this._onceEvents&&this._onceEvents[e];for(let n of i){s&&s[n]&&(this.off(e,n),delete s[n]),n.apply(this,t)}return this},t.allOff=function(){return delete this._events,delete this._onceEvents,this},e})),
  43. /*!
  44. * imagesLoaded v5.0.0
  45. * JavaScript is all like "You images are done yet or what?"
  46. * MIT License
  47. */
  48. function(e,t){"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,(function(e,t){let i=e.jQuery,s=e.console;function n(e,t,r){if(!(this instanceof n))return new n(e,t,r);let o=e;var a;("string"==typeof e&&(o=document.querySelectorAll(e)),o)?(this.elements=(a=o,Array.isArray(a)?a:"object"==typeof a&&"number"==typeof a.length?[...a]:[a]),this.options={},"function"==typeof t?r=t:Object.assign(this.options,t),r&&this.on("always",r),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${o||e}`)}n.prototype=Object.create(t.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const r=[1,9,11];n.prototype.addElementImages=function(e){"IMG"===e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);let{nodeType:t}=e;if(!t||!r.includes(t))return;let i=e.querySelectorAll("img");for(let e of i)this.addImage(e);if("string"==typeof this.options.background){let t=e.querySelectorAll(this.options.background);for(let e of t)this.addElementBackgroundImages(e)}};const o=/url\((['"])?(.*?)\1\)/gi;function a(e){this.img=e}function l(e,t){this.url=e,this.element=t,this.img=new Image}return n.prototype.addElementBackgroundImages=function(e){let t=getComputedStyle(e);if(!t)return;let i=o.exec(t.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,e),i=o.exec(t.backgroundImage)}},n.prototype.addImage=function(e){let t=new a(e);this.images.push(t)},n.prototype.addBackground=function(e,t){let i=new l(e,t);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let e=(e,t,i)=>{setTimeout((()=>{this.progress(e,t,i)}))};this.images.forEach((function(t){t.once("progress",e),t.check()}))},n.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,e,t)},n.prototype.complete=function(){let e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){let e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},a.prototype=Object.create(t.prototype),a.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},a.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},a.prototype.confirm=function(e,t){this.isLoaded=e;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,t])},a.prototype.handleEvent=function(e){let t="on"+e.type;this[t]&&this[t](e)},a.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},a.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},a.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(a.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},n.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&(i=t,i.fn.imagesLoaded=function(e,t){return new n(this,e,t).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n})),
  49. /*!
  50. Carto - Interactive portfolio
  51. Created by ThemeZaa
  52. !*/
  53. $((function(){"use strict";const e=document.getElementById("stickyImgContainer");if(void 0!==e&&null!=e){const t=document.querySelector(".slides").querySelectorAll(".slide"),i=Array.from(t).map((e=>({image:"",title:"title1",meta:""})));class s{constructor(e){this.data=document.querySelectorAll(".slide"),this.container=document.querySelector(".slides"),this.currentIdx=0,this.slides=document.querySelectorAll(".slide")}mount(e){e.appendChild(this.container);for(let e=0;e<this.slides.length;e++)0===e?(this.slides[e].classList.remove("next"),this.slides[e].classList.remove("prev"),this.slides[e].classList.add("show-meta"),document.querySelector(".bg-overlay").style.backgroundImage=`url("${this.slides[e].dataset.bg}")`):0>e?(this.slides[e].classList.remove("next"),this.slides[e].classList.add("prev")):(this.slides[e].classList.add("next"),this.slides[e].classList.remove("prev"))}onActiveIndexChange(e){this.currentIdx=e;for(let t=0;t<this.slides.length;t++)e===t?(this.slides[t].classList.remove("next"),this.slides[t].classList.remove("prev"),document.querySelector(".bg-overlay").style.backgroundImage=`url("${this.slides[t].dataset.bg}")`):e>t?(this.slides[t].classList.remove("next"),this.slides[t].classList.add("prev")):(this.slides[t].classList.add("next"),this.slides[t].classList.remove("prev"))}onMove(e){this.container.style.transform=`translateY(${100*e/this.slides.length}%)`}appear(){this.container.classList.add("scrolling"),e.classList.add("scrolling"),this.slides[this.currentIdx].classList.remove("show-meta")}disperse(t){this.currentIdx=t,this.slides[this.currentIdx].classList.add("show-meta"),this.container.classList.remove("scrolling"),e.classList.remove("scrolling");for(let e=0;e<this.data.length;e++)e>t?(this.slides[e].classList.add("next"),this.slides[e].classList.remove("prev")):e<t?(this.slides[e].classList.remove("next"),this.slides[e].classList.add("prev")):(this.slides[e].classList.remove("next"),this.slides[e].classList.remove("prev"))}}class n{constructor({indexSize:e,onIndexChange:t,onGrabStart:i,onGrabMove:s,onGrabEnd:n}){this.onGrabEnd=n,this.onGrabStart=i,this.onGrabMove=s,this.scroll={start:0,current:0,initial:0},this.listen("mousedown",this.onMouseDown.bind(this)),this.listen("mousemove",this.onMouseMove.bind(this)),this.listen("mouseup",this.onMouseUp.bind(this)),this.listen("touchstart",this.onMouseDown.bind(this),!0),this.listen("touchmove",this.onMouseMove.bind(this),!0),this.listen(["touchend","touchcancel"],this.onMouseUp.bind(this),!0)}listen(t,i,s){const n=this;let r=function(e){"mouseout"===e.type&&null!=e.relatedTarget||i({y:e.clientY})};if(s&&(r=function(e){i({y:e.targetTouches[0]?e.targetTouches[0].clientY:null})}),Array.isArray(t))for(let e=0;e<t.length;e++)window.addEventListener(t[e],r,!1);else window.addEventListener(t,(function(t){t.target.closest(".stickyImageContainer")===e?r(t):n.onMouseUp()}),!1)}onMouseDown(e){this.scroll.inital=this.scroll.current,this.scroll.start=e.y,this.scroll.current=e.y,this.scroll.delta=this.scroll.current-this.scroll.start,this.onGrabStart({delta:this.scroll.delta,direction:Math.abs(this.scroll.delta),current:this.scroll.current,start:this.scroll.start})}onMouseMove(e){this.scroll.start&&(this.scroll.current=e.y,this.scroll.delta=this.scroll.current-this.scroll.start,this.onGrabMove({delta:this.scroll.delta,direction:Math.abs(this.scroll.delta),current:this.scroll.current,start:this.scroll.start}))}onMouseUp(){this.scroll.start&&(this.onGrabEnd({delta:this.scroll.delta,direction:Math.abs(this.scroll.delta),current:this.scroll.current,start:this.scroll.start}),this.scroll.start=null,this.scroll.current=null,this.scroll.delta=null)}}const r=function({from:e,to:t,restDelta:i=.01}){let s=Object.assign({},e),n=Object.keys(e),r={current:null},o=function(e,a){if(0===n.length)return cancelAnimationFrame(r.current),r.current=null,void a(s);n.slice();for(var l,c,d=n.length;d>=0;d--)c=n[d],l=s[c]+.1*(t[c]-s[c]),Math.abs(t[c]-l)<i?(s[c]=t[c],n.splice(d,1),d--):s[c]=l;e(s),r.current=requestAnimationFrame(o)};return{start:function({update:e,complete:t}){return o=o.bind(null,e,t),r.current=requestAnimationFrame(o),{stop:function(){cancelAnimationFrame(r.current),r.current=null}}}}};function o(e,t={}){this.data=e,this.progress=0,this.direction=1,this.waveIntensity=0,this.options=t,this.index={target:0,current:0,initial:0,scrollSize:window.innerHeight/6,active:0},this.follower={x:0,y:0},this.followerSpring=null,this.slidesSpring=null,this.grab=new n({onGrabStart:this.onGrabStart.bind(this),onGrabMove:this.onGrabMove.bind(this),onGrabEnd:this.onGrabEnd.bind(this)})}function a(e,t,i){return Math.max(t,Math.min(e,i))}o.prototype.onGrabMove=function(e){this.index.target=a(this.index.initial+e.delta/this.index.scrollSize,.51-this.data.length,.49);const t=a(Math.round(-this.index.target),0,this.data.length-1);this.index.active!==t&&(this.index.active=t,this.options.onActiveIndexChange&&this.options.onActiveIndexChange(this.index.active)),this.slidesPop&&this.slidesPop.stop(),this.slidesPop=r({from:{index:this.index.current},to:{index:this.index.target},restDelta:.001}).start({update:e=>{this.options.onIndexChange&&this.options.onIndexChange(e.index),this.index.current=e.index},complete:e=>{this.options.onIndexChange&&this.options.onIndexChange(e.index),this.index.current=e.index}})},o.prototype.onGrabStart=function(){this.options.onZoomOutStart&&this.options.onZoomOutStart({activeIndex:this.index.active}),this.index.initial=this.index.current},o.prototype.snapCurrentToActiveIndex=function(){this.slidesPop&&this.slidesPop.stop(),this.slidesPop=r({from:{index:this.index.current},to:{index:Math.round(this.index.target)},restDelta:.001}).start({complete:()=>{},update:e=>{this.options.onIndexChange&&this.options.onIndexChange(e.index),this.index.current=e.index}})},o.prototype.onGrabEnd=function(){this.options.onFullscreenStart&&(this.options.onFullscreenStart({activeIndex:this.index.active}),this.snapCurrentToActiveIndex())},o.prototype.onResize=function(){};const l=new s;new o(i,{onActiveIndexChange:e=>{l.onActiveIndexChange(e)},onIndexChange:e=>{l.onMove(e)},onZoomOutStart:({activeIndex:e})=>{l.appear()},onZoomOutFinish:({activeIndex:e})=>{},onFullscreenStart:({activeIndex:e})=>{l.disperse(e)},onFullscreenFinish:({activeIndex:e})=>{}});l.mount(e)}})),
  54. /*!
  55. Isotope
  56. Version: v3.0.6
  57. Plugin URL: https://isotope.metafizzy.co
  58. License: Copyright 2010-2018 Metafizzy | Licensed GPLv3 for open source use or Isotope Commercial License for commercial use
  59. !*/
  60. function(e,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],(function(i){return t(e,i)})):"object"==typeof module&&module.exports?module.exports=t(e,require("jquery")):e.jQueryBridget=t(e,e.jQuery)}(window,(function(e,t){"use strict";var i=Array.prototype.slice,s=e.console,n=void 0===s?function(){}:function(e){s.error(e)};function r(s,r,a){(a=a||t||e.jQuery)&&(r.prototype.option||(r.prototype.option=function(e){a.isPlainObject(e)&&(this.options=a.extend(!0,this.options,e))}),a.fn[s]=function(e){var t;return"string"==typeof e?function(e,t,i){var r,o="$()."+s+'("'+t+'")';return e.each((function(e,l){var c=a.data(l,s);if(c){var d=c[t];if(d&&"_"!=t.charAt(0)){var u=d.apply(c,i);r=void 0===r?u:r}else n(o+" is not a valid method")}else n(s+" not initialized. Cannot call methods, i.e. "+o)})),void 0!==r?r:e}(this,e,i.call(arguments,1)):(t=e,this.each((function(e,i){var n=a.data(i,s);n?(n.option(t),n._init()):(n=new r(i,t),a.data(i,s,n))})),this)},o(a))}function o(e){!e||e&&e.bridget||(e.bridget=r)}return o(t||e.jQuery),r})),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,(function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},s=i[e]=i[e]||[];return-1==s.indexOf(t)&&s.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var s=i.indexOf(t);return-1!=s&&i.splice(s,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var s=this._onceEvents&&this._onceEvents[e],n=0;n<i.length;n++){var r=i[n];s&&s[r]&&(this.off(e,r),delete s[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})),
  61. /*!
  62. * getSize v2.0.3
  63. * measure size of elements
  64. * MIT license
  65. */
  66. function(e,t){"function"==typeof define&&define.amd?define("get-size/get-size",t):"object"==typeof module&&module.exports?module.exports=t():e.getSize=t()}(window,(function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],s=i.length;function n(e){var i=getComputedStyle(e);return i||t("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}var r,o=!1;function a(t){if(function(){if(!o){o=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(t);var s=n(t);r=200==Math.round(e(s.width)),a.isBoxSizeOuter=r,i.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var l=n(t);if("none"==l.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<s;t++)e[i[t]]=0;return e}();var c={};c.width=t.offsetWidth,c.height=t.offsetHeight;for(var d=c.isBorderBox="border-box"==l.boxSizing,u=0;u<s;u++){var h=i[u],p=l[h],f=parseFloat(p);c[h]=isNaN(f)?0:f}var m=c.paddingLeft+c.paddingRight,g=c.paddingTop+c.paddingBottom,v=c.marginLeft+c.marginRight,y=c.marginTop+c.marginBottom,b=c.borderLeftWidth+c.borderRightWidth,_=c.borderTopWidth+c.borderBottomWidth,w=d&&r,x=e(l.width);!1!==x&&(c.width=x+(w?0:m+b));var T=e(l.height);return!1!==T&&(c.height=T+(w?0:g+_)),c.innerWidth=c.width-(m+b),c.innerHeight=c.height-(g+_),c.outerWidth=c.width+v,c.outerHeight=c.height+y,c}}return a})),function(e,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,(function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var s=t[i]+"MatchesSelector";if(e[s])return s}}();return function(t,i){return t[e](i)}})),function(e,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],(function(i){return t(e,i)})):"object"==typeof module&&module.exports?module.exports=t(e,require("desandro-matches-selector")):e.fizzyUIUtils=t(e,e.matchesSelector)}(window,(function(e,t){var i={extend:function(e,t){for(var i in t)e[i]=t[i];return e},modulo:function(e,t){return(e%t+t)%t}},s=Array.prototype.slice;i.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?s.call(e):[e]},i.removeFrom=function(e,t){var i=e.indexOf(t);-1!=i&&e.splice(i,1)},i.getParent=function(e,i){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,i))return e},i.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},i.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.filterFindElements=function(e,s){e=i.makeArray(e);var n=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(s){t(e,s)&&n.push(e);for(var i=e.querySelectorAll(s),r=0;r<i.length;r++)n.push(i[r])}else n.push(e)})),n},i.debounceMethod=function(e,t,i){i=i||100;var s=e.prototype[t],n=t+"Timeout";e.prototype[t]=function(){var e=this[n];clearTimeout(e);var t=arguments,r=this;this[n]=setTimeout((function(){s.apply(r,t),delete r[n]}),i)}},i.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},i.toDashed=function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,i){return t+"-"+i})).toLowerCase()};var n=e.console;return i.htmlInit=function(t,s){i.docReady((function(){var r=i.toDashed(s),o="data-"+r,a=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+r),c=i.makeArray(a).concat(i.makeArray(l)),d=o+"-options",u=e.jQuery;c.forEach((function(e){var i,r=e.getAttribute(o)||e.getAttribute(d);try{i=r&&JSON.parse(r)}catch(t){return void(n&&n.error("Error parsing "+o+" on "+e.className+": "+t))}var a=new t(e,i);u&&u.data(e,s,a)}))}))},i})),function(e,t){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("ev-emitter"),require("get-size")):(e.Outlayer={},e.Outlayer.Item=t(e.EvEmitter,e.getSize))}(window,(function(e,t){"use strict";var i=document.documentElement.style,s="string"==typeof i.transition?"transition":"WebkitTransition",n="string"==typeof i.transform?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],o={transform:n,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"};function a(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var l=a.prototype=Object.create(e.prototype);l.constructor=a,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.getSize=function(){this.size=t(this.element)},l.css=function(e){var t=this.element.style;for(var i in e){t[o[i]||i]=e[i]}},l.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),s=e[t?"left":"right"],n=e[i?"top":"bottom"],r=parseFloat(s),o=parseFloat(n),a=this.layout.size;-1!=s.indexOf("%")&&(r=r/100*a.width),-1!=n.indexOf("%")&&(o=o/100*a.height),r=isNaN(r)?0:r,o=isNaN(o)?0:o,r-=t?a.paddingLeft:a.paddingRight,o-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=o},l.layoutPosition=function(){var e=this.layout.size,t={},i=this.layout._getOption("originLeft"),s=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",r=i?"left":"right",o=i?"right":"left",a=this.position.x+e[n];t[r]=this.getXValue(a),t[o]="";var l=s?"paddingTop":"paddingBottom",c=s?"top":"bottom",d=s?"bottom":"top",u=this.position.y+e[l];t[c]=this.getYValue(u),t[d]="",this.css(t),this.emitEvent("layout",[this])},l.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},l.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},l._transitionTo=function(e,t){this.getPosition();var i=this.position.x,s=this.position.y,n=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!n||this.isTransitioning){var r=e-i,o=t-s,a={};a.transform=this.getTranslate(r,o),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},l.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},l._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},l.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var i in e.onTransitionEnd)t.onEnd[i]=e.onTransitionEnd[i];for(i in e.to)t.ingProperties[i]=!0,e.isCleaning&&(t.clean[i]=!0);if(e.from){this.css(e.from);this.element.offsetHeight;null}this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var c="opacity,"+n.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}));l.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:c,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(r,this,!1)}},l.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},l.onotransitionend=function(e){this.ontransitionend(e)};var d={"-webkit-transform":"transform"};l.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,i=d[e.propertyName]||e.propertyName;if(delete t.ingProperties[i],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[i]),i in t.onEnd)t.onEnd[i].call(this),delete t.onEnd[i];this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1},l._removeStyles=function(e){var t={};for(var i in e)t[i]="";this.css(t)};var u={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(u)},l.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},l.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var i in t)return i},l.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a})),
  67. /*!
  68. * Outlayer v2.1.1
  69. * the brains and guts of a layout library
  70. * MIT license
  71. */
  72. function(e,t){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],(function(i,s,n,r){return t(e,i,s,n,r)})):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):e.Outlayer=t(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,e.Outlayer.Item)}(window,(function(e,t,i,s,n){"use strict";var r=e.console,o=e.jQuery,a=function(){},l=0,c={};function d(e,t){var i=s.getQueryElement(e);if(i){this.element=i,o&&(this.$element=o(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(t);var n=++l;this.element.outlayerGUID=n,c[n]=this,this._create(),this._getOption("initLayout")&&this.layout()}else r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||e))}d.namespace="outlayer",d.Item=n,d.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var u=d.prototype;function h(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}s.extend(u,t.prototype),u.option=function(e){s.extend(this.options,e)},u._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},d.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},u._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},u.reloadItems=function(){this.items=this._itemize(this.element.children)},u._itemize=function(e){for(var t=this._filterFindItemElements(e),i=this.constructor.Item,s=[],n=0;n<t.length;n++){var r=new i(t[n],this);s.push(r)}return s},u._filterFindItemElements=function(e){return s.filterFindElements(e,this.options.itemSelector)},u.getItemElements=function(){return this.items.map((function(e){return e.element}))},u.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},u._init=u.layout,u._resetLayout=function(){this.getSize()},u.getSize=function(){this.size=i(this.element)},u._getMeasurement=function(e,t){var s,n=this.options[e];n?("string"==typeof n?s=this.element.querySelector(n):n instanceof HTMLElement&&(s=n),this[e]=s?i(s)[t]:n):this[e]=0},u.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},u._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},u._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var i=[];e.forEach((function(e){var s=this._getItemLayoutPosition(e);s.item=e,s.isInstant=t||e.isLayoutInstant,i.push(s)}),this),this._processLayoutQueue(i)}},u._getItemLayoutPosition=function(){return{x:0,y:0}},u._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},u.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),i=t&&t[1],s=t&&t[2];if(!i.length)return 0;i=parseFloat(i);var n=p[s]||1;return i*n}(e),this.stagger;this.stagger=0},u._positionItem=function(e,t,i,s,n){s?e.goTo(t,i):(e.stagger(n*this.stagger),e.moveTo(t,i))},u._postLayout=function(){this.resizeContainer()},u.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},u._getContainerSize=a,u._setContainerMeasure=function(e,t){if(void 0!==e){var i=this.size;i.isBorderBox&&(e+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},u._emitCompleteOnItems=function(e,t){var i=this;function s(){i.dispatchEvent(e+"Complete",null,[t])}var n=t.length;if(t&&n){var r=0;t.forEach((function(t){t.once(e,o)}))}else s();function o(){++r==n&&s()}},u.dispatchEvent=function(e,t,i){var s=t?[t].concat(i):i;if(this.emitEvent(e,s),o)if(this.$element=this.$element||o(this.element),t){var n=o.Event(t);n.type=e,this.$element.trigger(n,i)}else this.$element.trigger(e,i)},u.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},u.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},u.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},u.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){s.removeFrom(this.stamps,e),this.unignore(e)}),this)},u._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=s.makeArray(e)},u._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},u._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},u._manageStamp=a,u._getElementOffset=function(e){var t=e.getBoundingClientRect(),s=this._boundingRect,n=i(e);return{left:t.left-s.left-n.marginLeft,top:t.top-s.top-n.marginTop,right:s.right-t.right-n.marginRight,bottom:s.bottom-t.bottom-n.marginBottom}},u.handleEvent=s.handleEvent,u.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},u.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},u.onresize=function(){this.resize()},s.debounceMethod(d,"onresize",100),u.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},u.needsResizeLayout=function(){var e=i(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},u.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},u.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},u.prepended=function(e){var t=this._itemize(e);if(t.length){var i=this.items.slice(0);this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i)}},u.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,i){e.stagger(i*t),e.reveal()}))}},u.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,i){e.stagger(i*t),e.hide()}))}},u.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},u.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},u.getItem=function(e){for(var t=0;t<this.items.length;t++){var i=this.items[t];if(i.element==e)return i}},u.getItems=function(e){e=s.makeArray(e);var t=[];return e.forEach((function(e){var i=this.getItem(e);i&&t.push(i)}),this),t},u.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),s.removeFrom(this.items,e)}),this)},u.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete c[t],delete this.element.outlayerGUID,o&&o.removeData(this.element,this.constructor.namespace)},d.data=function(e){var t=(e=s.getQueryElement(e))&&e.outlayerGUID;return t&&c[t]},d.create=function(e,t){var i=h(d);return i.defaults=s.extend({},d.defaults),s.extend(i.defaults,t),i.compatOptions=s.extend({},d.compatOptions),i.namespace=e,i.data=d.data,i.Item=h(n),s.htmlInit(i,e),o&&o.bridget&&o.bridget(e,i),i};var p={ms:1,s:1e3};return d.Item=n,d})),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.Item=t(e.Outlayer))}(window,(function(e){"use strict";function t(){e.Item.apply(this,arguments)}var i=t.prototype=Object.create(e.Item.prototype),s=i._create;i._create=function(){this.id=this.layout.itemGUID++,s.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var e=this.layout.options.getSortData,t=this.layout._sorters;for(var i in e){var s=t[i];this.sortData[i]=s(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},t})),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("get-size"),require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.LayoutMode=t(e.getSize,e.Outlayer))}(window,(function(e,t){"use strict";function i(e){this.isotope=e,e&&(this.options=e.options[this.namespace],this.element=e.element,this.items=e.filteredItems,this.size=e.size)}var s=i.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach((function(e){s[e]=function(){return t.prototype[e].apply(this.isotope,arguments)}})),s.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},s._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},s.getColumnWidth=function(){this.getSegmentSize("column","Width")},s.getRowHeight=function(){this.getSegmentSize("row","Height")},s.getSegmentSize=function(e,t){var i=e+t,s="outer"+t;if(this._getMeasurement(i,s),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[s]||this.isotope.size["inner"+t]}},s.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},s.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},s.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(e,t){function n(){i.apply(this,arguments)}return n.prototype=Object.create(s),n.prototype.constructor=n,t&&(n.options=t),n.prototype.namespace=e,i.modes[e]=n,n},i})),
  73. /*!
  74. * Masonry v4.2.1
  75. * Cascading grid layout library
  76. * https://masonry.desandro.com
  77. * MIT License
  78. * by David DeSandro
  79. */
  80. function(e,t){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer"),require("get-size")):e.Masonry=t(e.Outlayer,e.getSize)}(window,(function(e,t){var i=e.create("masonry");i.compatOptions.fitWidth="isFitWidth";var s=i.prototype;return s._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},s.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],i=e&&e.element;this.columnWidth=i&&t(i).outerWidth||this.containerWidth}var s=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,r=n/s,o=s-n%s;r=Math[o&&o<1?"round":"floor"](r),this.cols=Math.max(r,1)},s.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,i=t(e);this.containerWidth=i&&i.innerWidth},s._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,i=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var s=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,e),n={x:this.columnWidth*s.col,y:s.y},r=s.y+e.size.outerHeight,o=i+s.col,a=s.col;a<o;a++)this.colYs[a]=r;return n},s._getTopColPosition=function(e){var t=this._getTopColGroup(e),i=Math.min.apply(Math,t);return{col:t.indexOf(i),y:i}},s._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],i=this.cols+1-e,s=0;s<i;s++)t[s]=this._getColGroupY(s,e);return t},s._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var i=this.colYs.slice(e,e+t);return Math.max.apply(Math,i)},s._getHorizontalColPosition=function(e,t){var i=this.horizontalColIndex%this.cols;i=e>1&&i+e>this.cols?0:i;var s=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=s?i+e:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,e)}},s._manageStamp=function(e){var i=t(e),s=this._getElementOffset(e),n=this._getOption("originLeft")?s.left:s.right,r=n+i.outerWidth,o=Math.floor(n/this.columnWidth);o=Math.max(0,o);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this._getOption("originTop")?s.top:s.bottom)+i.outerHeight,c=o;c<=a;c++)this.colYs[c]=Math.max(l,this.colYs[c])},s._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},s._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},s.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},i})),
  81. /*!
  82. * Masonry layout mode
  83. * sub-classes Masonry
  84. * https://masonry.desandro.com
  85. */
  86. function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(e.Isotope.LayoutMode,e.Masonry)}(window,(function(e,t){"use strict";var i=e.create("masonry"),s=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var r in t.prototype)n[r]||(s[r]=t.prototype[r]);var o=s.measureColumns;s.measureColumns=function(){this.items=this.isotope.filteredItems,o.call(this)};var a=s._getOption;return s._getOption=function(e){return"fitWidth"==e?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i})),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],t):"object"==typeof exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,(function(e){"use strict";var t=e.create("fitRows"),i=t.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&t+this.x>i&&(this.x=0,this.y=this.maxY);var s={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+e.size.outerHeight),this.x+=t,s},i._getContainerSize=function(){return{height:this.maxY}},t})),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,(function(e){"use strict";var t=e.create("vertical",{horizontalAlignment:0}),i=t.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(e){e.getSize();var t=(this.isotope.size.innerWidth-e.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=e.size.outerHeight,{x:t,y:i}},i._getContainerSize=function(){return{height:this.y}},t})),
  87. /*!
  88. * Isotope v3.0.6
  89. *
  90. * Licensed GPLv3 for open source use
  91. * or Isotope Commercial License for commercial use
  92. *
  93. * https://isotope.metafizzy.co
  94. * Copyright 2010-2018 Metafizzy
  95. */
  96. function(e,t){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],(function(i,s,n,r,o,a){return t(e,i,s,n,r,o,a)})):"object"==typeof module&&module.exports?module.exports=t(e,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):e.Isotope=t(e,e.Outlayer,e.getSize,e.matchesSelector,e.fizzyUIUtils,e.Isotope.Item,e.Isotope.LayoutMode)}(window,(function(e,t,i,s,n,r,o){var a=e.jQuery,l=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s+|\s+$/g,"")},c=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=r,c.LayoutMode=o;var d=c.prototype;d._create=function(){for(var e in this.itemGUID=0,this._sorters={},this._getSorters(),t.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],o.modes)this._initLayoutMode(e)},d.reloadItems=function(){this.itemGUID=0,t.prototype.reloadItems.call(this)},d._itemize=function(){for(var e=t.prototype._itemize.apply(this,arguments),i=0;i<e.length;i++){e[i].id=this.itemGUID++}return this._updateItemsSortData(e),e},d._initLayoutMode=function(e){var t=o.modes[e],i=this.options[e]||{};this.options[e]=t.options?n.extend(t.options,i):i,this.modes[e]=new t(this)},d.layout=function(){this._isLayoutInited||!this._getOption("initLayout")?this._layout():this.arrange()},d._layout=function(){var e=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,e),this._isLayoutInited=!0},d.arrange=function(e){this.option(e),this._getIsInstant();var t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},d._init=d.arrange,d._hideReveal=function(e){this.reveal(e.needReveal),this.hide(e.needHide)},d._getIsInstant=function(){var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;return this._isInstant=t,t},d._bindArrangeComplete=function(){var e,t,i,s=this;function n(){e&&t&&i&&s.dispatchEvent("arrangeComplete",null,[s.filteredItems])}this.once("layoutComplete",(function(){e=!0,n()})),this.once("hideComplete",(function(){t=!0,n()})),this.once("revealComplete",(function(){i=!0,n()}))},d._filter=function(e){var t=this.options.filter;t=t||"*";for(var i=[],s=[],n=[],r=this._getFilterTest(t),o=0;o<e.length;o++){var a=e[o];if(!a.isIgnored){var l=r(a);l&&i.push(a),l&&a.isHidden?s.push(a):l||a.isHidden||n.push(a)}}return{matches:i,needReveal:s,needHide:n}},d._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return s(t.element,e)}},d.updateSortData=function(e){var t;e?(e=n.makeArray(e),t=this.getItems(e)):t=this.items,this._getSorters(),this._updateItemsSortData(t)},d._getSorters=function(){var e=this.options.getSortData;for(var t in e){var i=e[t];this._sorters[t]=u(i)}},d._updateItemsSortData=function(e){for(var t=e&&e.length,i=0;t&&i<t;i++){e[i].updateSortData()}};var u=function(e){if("string"!=typeof e)return e;var t=l(e).split(" "),i=t[0],s=i.match(/^\[(.+)\]$/),n=function(e,t){return e?function(t){return t.getAttribute(e)}:function(e){var i=e.querySelector(t);return i&&i.textContent}}(s&&s[1],i),r=c.sortDataParsers[t[1]];return e=r?function(e){return e&&r(n(e))}:function(e){return e&&n(e)}};c.sortDataParsers={parseInt:function(e){return parseInt(e,10)},parseFloat:function(e){return parseFloat(e)}},d._sort=function(){if(this.options.sortBy){var e=n.makeArray(this.options.sortBy);this._getIsSameSortBy(e)||(this.sortHistory=e.concat(this.sortHistory));var t=function(e,t){return function(i,s){for(var n=0;n<e.length;n++){var r=e[n],o=i.sortData[r],a=s.sortData[r];if(o>a||o<a)return(o>a?1:-1)*((void 0!==t[r]?t[r]:t)?1:-1)}return 0}}(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(t)}},d._getIsSameSortBy=function(e){for(var t=0;t<e.length;t++)if(e[t]!=this.sortHistory[t])return!1;return!0},d._mode=function(){var e=this.options.layoutMode,t=this.modes[e];if(!t)throw new Error("No layout mode: "+e);return t.options=this.options[e],t},d._resetLayout=function(){t.prototype._resetLayout.call(this),this._mode()._resetLayout()},d._getItemLayoutPosition=function(e){return this._mode()._getItemLayoutPosition(e)},d._manageStamp=function(e){this._mode()._manageStamp(e)},d._getContainerSize=function(){return this._mode()._getContainerSize()},d.needsResizeLayout=function(){return this._mode().needsResizeLayout()},d.appended=function(e){var t=this.addItems(e);if(t.length){var i=this._filterRevealAdded(t);this.filteredItems=this.filteredItems.concat(i)}},d.prepended=function(e){var t=this._itemize(e);if(t.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(t);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=t.concat(this.items)}},d._filterRevealAdded=function(e){var t=this._filter(e);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},d.insert=function(e){var t=this.addItems(e);if(t.length){var i,s,n=t.length;for(i=0;i<n;i++)s=t[i],this.element.appendChild(s.element);var r=this._filter(t).matches;for(i=0;i<n;i++)t[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<n;i++)delete t[i].isLayoutInstant;this.reveal(r)}};var h=d.remove;return d.remove=function(e){e=n.makeArray(e);var t=this.getItems(e);h.call(this,e);for(var i=t&&t.length,s=0;i&&s<i;s++){var r=t[s];n.removeFrom(this.filteredItems,r)}},d.shuffle=function(){for(var e=0;e<this.items.length;e++){this.items[e].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},d._noTransition=function(e,t){var i=this.options.transitionDuration;this.options.transitionDuration=0;var s=e.apply(this,t);return this.options.transitionDuration=i,s},d.getFilteredItemElements=function(){return this.filteredItems.map((function(e){return e.element}))},c})),
  97. /*!
  98. jQuery Cookie Plugin
  99. Version: v1.4.1
  100. Plugin URL: https://github.com/carhartl/jquery-cookie
  101. License: Copyright 2006, 2014 Klaus Hartl | Released under the MIT license
  102. !*/
  103. function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}((function(e){var t=/\+/g;function i(e){return r.raw?e:encodeURIComponent(e)}function s(e){return i(r.json?JSON.stringify(e):String(e))}function n(i,s){var n=r.raw?i:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),r.json?JSON.parse(e):e}catch(e){}}(i);return e.isFunction(s)?s(n):n}var r=e.cookie=function(t,o,a){if(arguments.length>1&&!e.isFunction(o)){if("number"==typeof(a=e.extend({},r.defaults,a)).expires){var l=a.expires,c=a.expires=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*l)}return document.cookie=[i(t),"=",s(o),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}for(var d,u=t?void 0:{},h=document.cookie?document.cookie.split("; "):[],p=0,f=h.length;p<f;p++){var m=h[p].split("="),g=(d=m.shift(),r.raw?d:decodeURIComponent(d)),v=m.join("=");if(t===g){u=n(v,o);break}t||void 0===(v=n(v))||(u[g]=v)}return u};r.defaults={},e.removeCookie=function(t,i){return e.cookie(t,"",e.extend({},i,{expires:-1})),!e.cookie(t)}})),
  104. /*!
  105. jQuery appear plugin
  106. Version: 0.4
  107. Plugin URL: https://github.com/morr/jquery.appear/
  108. License: Copyright (c) 2012 Andrey Sidorov | Released under the MIT license
  109. !*/
  110. function(e){var t=[],i=!1,s=!1,n={interval:250,force_process:!1},r=e(window),o=[];function a(){s=!1;for(var i=0,n=t.length;i<n;i++){var r=(l=t[i],e(l).filter((function(){return e(this).is(":appeared")})));if(r.trigger("appear",[r]),o[i]){var a=o[i].not(r);a.trigger("disappear",[a])}o[i]=r}var l}e.expr.pseudos.appeared=e.expr.createPseudo((function(t){return function(t){var i=e(t);if(!i.is(":visible"))return!1;var s=r.scrollLeft(),n=r.scrollTop(),o=i.offset(),a=o.left,l=o.top;return l+i.height()>=n&&l-(i.data("appear-top-offset")||0)<=n+r.height()&&a+i.width()>=s&&a-(i.data("appear-left-offset")||0)<=s+r.width()}})),e.fn.extend({appear:function(t,i){return e.appear(this,i),this}}),e.extend({appear:function(r,l){var c=e.extend({},n,l||{});if(!i){var d=function(){s||(s=!0,setTimeout(a,c.interval))};e(window).scroll(d).resize(d),i=!0}c.force_process&&setTimeout(a,c.interval),function(e){t.push(e),o.push()}(r)},force_appear:function(){return!!i&&(a(),!0)}})}("undefined"!=typeof module?require("jquery"):jQuery),
  111. /*!
  112. jQuery countTo Plugin
  113. Version: v1.2.0
  114. Plugin URL: https://github.com/mhuggins/jquery-countTo
  115. License: Copyright (c) Matt Huggins | Released under the MIT license
  116. !*/
  117. function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}((function(e){var t=function(i,s){this.$element=e(i),this.options=e.extend({},t.DEFAULTS,this.dataOptions(),s),this.init()};t.DEFAULTS={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:function(e,t){return e.toFixed(t.decimals)},onUpdate:null,onComplete:null},t.prototype.init=function(){this.value=this.options.from,this.loops=Math.ceil(this.options.speed/this.options.refreshInterval),this.loopCount=0,this.increment=(this.options.to-this.options.from)/this.loops},t.prototype.dataOptions=function(){var e={from:this.$element.data("from"),to:this.$element.data("to"),speed:this.$element.data("speed"),refreshInterval:this.$element.data("refresh-interval"),decimals:this.$element.data("decimals")},t=Object.keys(e);for(var i in t){var s=t[i];void 0===e[s]&&delete e[s]}return e},t.prototype.update=function(){this.value+=this.increment,this.loopCount++,this.render(),"function"==typeof this.options.onUpdate&&this.options.onUpdate.call(this.$element,this.value),this.loopCount>=this.loops&&(clearInterval(this.interval),this.value=this.options.to,"function"==typeof this.options.onComplete&&this.options.onComplete.call(this.$element,this.value))},t.prototype.render=function(){var e=this.options.formatter.call(this.$element,this.value,this.options);this.$element.text(e)},t.prototype.restart=function(){this.stop(),this.init(),this.start()},t.prototype.start=function(){this.stop(),this.render(),this.interval=setInterval(this.update.bind(this),this.options.refreshInterval)},t.prototype.stop=function(){this.interval&&clearInterval(this.interval)},t.prototype.toggle=function(){this.interval?this.stop():this.start()},e.fn.countTo=function(i){return this.each((function(){var s=e(this),n=s.data("countTo"),r="object"==typeof i?i:{},o="string"==typeof i?i:"start";(!n||"object"==typeof i)&&(n&&n.stop(),s.data("countTo",n=new t(this,r))),n[o].call(n)}))}})),
  118. /*!
  119. The Final Countdown
  120. Version: 2.2.0
  121. Plugin URL: http://hilios.github.io/jQuery.countdown/
  122. License: Copyright (c) 2016 Edson Hilios
  123. !*/
  124. function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}((function(e){"use strict";var t=[],i=[],s={precision:100,elapse:!1,defer:!1};i.push(/^[0-9]*$/.source),i.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),i.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),i=new RegExp(i.join("|"));var n={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"};function r(e,t){var i="s",s="";return e&&(1===(e=e.replace(/(:|;|\s)/gi,"").split(/\,/)).length?i=e[0]:(s=e[0],i=e[1])),Math.abs(t)>1?i:s}var o=function(i,n,r){this.el=i,this.$el=e(i),this.interval=null,this.offset={},this.options=e.extend({},s),this.instanceNumber=t.length,t.push(this),this.$el.data("countdown-instance",this.instanceNumber),r&&("function"==typeof r?(this.$el.on("update.countdown",r),this.$el.on("stoped.countdown",r),this.$el.on("finish.countdown",r)):this.options=e.extend({},s,r)),this.setFinalDate(n),!1===this.options.defer&&this.start()};e.extend(o.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var e=this;this.update(),this.interval=setInterval((function(){e.update.call(e)}),this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),t[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(e){this.finalDate=function(e){if(e instanceof Date)return e;if(String(e).match(i))return String(e).match(/^[0-9]*$/)&&(e=Number(e)),String(e).match(/\-/)&&(e=String(e).replace(/\-/g,"/")),new Date(e);throw new Error("Couldn't cast `"+e+"` to a date object.")}(e)},update:function(){if(0!==this.$el.closest("html").length){var t,i=void 0!==e._data(this.el,"events"),s=new Date;t=this.finalDate.getTime()-s.getTime(),t=Math.ceil(t/1e3),t=!this.options.elapse&&t<0?0:Math.abs(t),this.totalSecsLeft!==t&&i&&(this.totalSecsLeft=t,this.elapsed=s>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-s.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))}else this.remove()},dispatchEvent:function(t){var i,s=e.Event(t+".countdown");s.finalDate=this.finalDate,s.elapsed=this.elapsed,s.offset=e.extend({},this.offset),s.strftime=(i=this.offset,function(e){var t,s=e.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(s)for(var o=0,a=s.length;o<a;++o){var l=s[o].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),c=(t=void 0,t=l[0].toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),new RegExp(t)),d=l[1]||"",u=l[3]||"",h=null;l=l[2],n.hasOwnProperty(l)&&(h=n[l],h=Number(i[h])),null!==h&&("!"===d&&(h=r(u,h)),""===d&&h<10&&(h="0"+h.toString()),e=e.replace(c,h.toString()))}return e.replace(/%%/,"%")}),this.$el.trigger(s)}}),e.fn.countdown=function(){var i=Array.prototype.slice.call(arguments,0);return this.each((function(){var s=e(this).data("countdown-instance");if(void 0!==s){var n=t[s],r=i[0];o.prototype.hasOwnProperty(r)?n[r].apply(n,i.slice(1)):null===String(r).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(n.setFinalDate.call(n,r),n.start()):e.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,r))}else new o(this,i[0],i[1])}))}})),
  125. /*!
  126. Easy pie chart
  127. Version: 2.1.7
  128. Plugin URL: https://github.com/rendro/easy-pie-chart
  129. License: Copyright | Robert Fleischmann
  130. !*/
  131. function(e,t){"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e)})):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,(function(e){var t=function(e,t){var i,s=document.createElement("canvas");e.appendChild(s),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(s);var n=s.getContext("2d");s.width=s.height=t.size;var r=1;window.devicePixelRatio>1&&(r=window.devicePixelRatio,s.style.width=s.style.height=[t.size,"px"].join(""),s.width=s.height=t.size*r,n.scale(r,r)),n.translate(t.size/2,t.size/2),n.rotate((t.rotate/180-.5)*Math.PI);var o=(t.size-t.lineWidth)/2;t.scaleColor&&t.scaleLength&&(o-=t.scaleLength+2),Date.now=Date.now||function(){return+new Date};var a=function(e,t,i){var s=(i=Math.min(Math.max(-1,i||0),1))<=0;n.beginPath(),n.arc(0,0,o,0,2*Math.PI*i,s),n.strokeStyle=e,n.lineWidth=t,n.stroke()},l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},c=function(){t.scaleColor&&function(){var e,i;n.lineWidth=1,n.fillStyle=t.scaleColor,n.save();for(var s=24;s>0;--s)s%6==0?(i=t.scaleLength,e=0):(i=.6*t.scaleLength,e=t.scaleLength-i),n.fillRect(-t.size/2+e,0,i,1),n.rotate(Math.PI/12);n.restore()}(),t.trackColor&&a(t.trackColor,t.trackWidth||t.lineWidth,1)};this.getCanvas=function(){return s},this.getCtx=function(){return n},this.clear=function(){n.clearRect(t.size/-2,t.size/-2,t.size,t.size)},this.draw=function(e){var s;t.scaleColor||t.trackColor?n.getImageData&&n.putImageData?i?n.putImageData(i,0,0):(c(),i=n.getImageData(0,0,t.size*r,t.size*r)):(this.clear(),c()):this.clear(),n.lineCap=t.lineCap,s="function"==typeof t.barColor?t.barColor(e):t.barColor,a(s,t.lineWidth,e/100)}.bind(this),this.animate=function(e,i){var s=Date.now();t.onStart(e,i);var n=function(){var r=Math.min(Date.now()-s,t.animate.duration),o=t.easing(this,r,e,i-e,t.animate.duration);this.draw(o),t.onStep(e,i,o),r>=t.animate.duration?t.onStop(e,i):l(n)}.bind(this);l(n)}.bind(this)},i=function(e,i){var s={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(e,t,i,s,n){return(t/=n/2)<1?s/2*t*t+i:-s/2*(--t*(t-2)-1)+i},onStart:function(e,t){},onStep:function(e,t,i){},onStop:function(e,t){}};if(void 0!==t)s.renderer=t;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");s.renderer=SVGRenderer}var n={},r=0,o=function(){for(var t in this.el=e,this.options=n,s)s.hasOwnProperty(t)&&(n[t]=i&&void 0!==i[t]?i[t]:s[t],"function"==typeof n[t]&&(n[t]=n[t].bind(this)));"string"==typeof n.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[n.easing])?n.easing=jQuery.easing[n.easing]:n.easing=s.easing,"number"==typeof n.animate&&(n.animate={duration:n.animate,enabled:!0}),"boolean"!=typeof n.animate||n.animate||(n.animate={duration:1e3,enabled:n.animate}),this.renderer=new n.renderer(e,n),this.renderer.draw(r),e.dataset&&e.dataset.percent?this.update(parseFloat(e.dataset.percent)):e.getAttribute&&e.getAttribute("data-percent")&&this.update(parseFloat(e.getAttribute("data-percent")))}.bind(this);this.update=function(e){return e=parseFloat(e),n.animate.enabled?this.renderer.animate(r,e):this.renderer.draw(e),r=e,this}.bind(this),this.disableAnimation=function(){return n.animate.enabled=!1,this},this.enableAnimation=function(){return n.animate.enabled=!0,this},o()};e.fn.easyPieChart=function(t){return this.each((function(){var s;e.data(this,"easyPieChart")||(s=e.extend({},t,e(this).data()),e.data(this,"easyPieChart",new i(this,s)))}))}})),
  132. /*!
  133. FitVids
  134. Version: 1.1
  135. Plugin URI: http://fitvidsjs.com/
  136. License: Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com | Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ | Released under the WTFPL license - http://sam.zoy.org/wtfpl/
  137. !*/
  138. function(e){"use strict";e.fn.fitVids=function(t){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var s=document.head||document.getElementsByTagName("head")[0],n=document.createElement("div");n.innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',s.appendChild(n.childNodes[1])}return t&&e.extend(i,t),this.each((function(){var t=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&t.push(i.customSelector);var s=".fitvidsignore";i.ignore&&(s=s+", "+i.ignore);var n=e(this).find(t.join(","));(n=(n=n.not("object object")).not(s)).each((function(){var t=e(this);if(!(t.parents(s).length>0||"embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)){t.css("height")||t.css("width")||!isNaN(t.attr("height"))&&!isNaN(t.attr("width"))||(t.attr("height",9),t.attr("width",16));var i=("object"===this.tagName.toLowerCase()||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height())/(isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10));if(!t.attr("name")){var n="fitvid"+e.fn.fitVids._count;t.attr("name",n),e.fn.fitVids._count++}t.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%"),t.removeAttr("height").removeAttr("width")}}))}))},e.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}((function(e){var t,i,s,n,r,o,a="Close",l="BeforeClose",c="MarkupParse",d="Open",u="Change",h="mfp",p="."+h,f="mfp-ready",m="mfp-removing",g="mfp-prevent-close",v=function(){},y=!!window.jQuery,b=e(window),_=function(e,i){t.ev.on(h+e+p,i)},w=function(t,i,s,n){var r=document.createElement("div");return r.className="mfp-"+t,s&&(r.innerHTML=s),n?i&&i.appendChild(r):(r=e(r),i&&r.appendTo(i)),r},x=function(e,i){t.ev.triggerHandler(h+e,i),t.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),t.st.callbacks[e]&&t.st.callbacks[e].apply(t,Array.isArray(i)?i:[i]))},T=function(i){return i===o&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),o=i),t.currTemplate.closeBtn},S=function(){e.magnificPopup.instance||((t=new v).init(),e.magnificPopup.instance=t)};v.prototype={constructor:v,init:function(){var i=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),s=e(document),t.popupsCache={}},open:function(i){var n;if(!1===i.isObj){t.items=i.items.toArray(),t.index=0;var o,a=i.items;for(n=0;n<a.length;n++)if((o=a[n]).parsed&&(o=o.el[0]),o===i.el[0]){t.index=n;break}}else t.items=Array.isArray(i.items)?i.items:[i.items],t.index=i.index||0;if(!t.isOpen){t.types=[],r="",i.mainEl&&i.mainEl.length?t.ev=i.mainEl.eq(0):t.ev=s,i.key?(t.popupsCache[i.key]||(t.popupsCache[i.key]={}),t.currTemplate=t.popupsCache[i.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,i),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=w("bg").on("click"+p,(function(){t.close()})),t.wrap=w("wrap").attr("tabindex",-1).on("click"+p,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=w("container",t.wrap)),t.contentContainer=w("content"),t.st.preloader&&(t.preloader=w("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(n=0;n<l.length;n++){var u=l[n];u=u.charAt(0).toUpperCase()+u.slice(1),t["init"+u].call(t)}x("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(_(c,(function(e,t,i,s){i.close_replaceWith=T(s.type)})),r+=" mfp-close-btn-in"):t.wrap.append(T())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:b.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:s.height(),position:"absolute"}),t.st.enableEscapeKey&&s.on("keyup"+p,(function(e){27===e.keyCode&&t.close()})),b.on("resize"+p,(function(){t.updateSize()})),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var h=t.wH=b.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(h)){var g=t._getScrollbarSize();g&&(m.marginRight=g)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),x("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(f),t._setFocus()):t.bgOverlay.addClass(f),s.on("focusin"+p,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(h),x(d),i}t.updateItemHTML()},close:function(){t.isOpen&&(x(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(m),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){x(a);var i=m+" "+f+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var n={marginRight:""};t.isIE7?e("body, html").css("overflow",""):n.overflow="",e("html").css(n)}s.off("keyup.mfp focusin"+p),t.ev.off(p),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).trigger("focus"),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,x("AfterClose")},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,s=window.innerHeight*i;t.wrap.css("height",s),t.wH=s}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),x("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var s=i.type;if(x("BeforeChange",[t.currItem?t.currItem.type:"",s]),t.currItem=i,!t.currTemplate[s]){var r=!!t.st[s]&&t.st[s].markup;x("FirstMarkupParse",r),t.currTemplate[s]=!r||e(r)}n&&n!==i.type&&t.container.removeClass("mfp-"+n+"-holder");var o=t["get"+s.charAt(0).toUpperCase()+s.slice(1)](i,t.currTemplate[s]);t.appendContent(o,s),i.preloaded=!0,x(u,i),n=i.type,t.container.prepend(t.contentContainer),x("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[i]?t.content.find(".mfp-close").length||t.content.append(T()):t.content=e:t.content="",x("BeforeAppend"),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var s,n=t.items[i];if(n.tagName?n={el:e(n)}:(s=n.type,n={data:n,src:n.src}),n.el){for(var r=t.types,o=0;o<r.length;o++)if(n.el.hasClass("mfp-"+r[o])){s=r[o];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=s||t.st.type||"inline",n.index=i,n.parsed=!0,t.items[i]=n,x("ElementParse",n),t.items[i]},addGroup:function(e,i){var s=function(s){s.mfpEl=this,t._openClick(s,e,i)};i||(i={});var n="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(n).on(n,s)):(i.isObj=!1,i.delegate?e.off(n).on(n,i.delegate,s):(i.items=e,e.off(n).on(n,s)))},_openClick:function(i,s,n){if((void 0!==n.midClick?n.midClick:e.magnificPopup.defaults.midClick)||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var r=void 0!==n.disableOn?n.disableOn:e.magnificPopup.defaults.disableOn;if(r)if("function"==typeof r){if(!r.call(t))return!0}else if(b.width()<r)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),n.el=e(i.mfpEl),n.delegate&&(n.items=s.find(n.delegate)),t.open(n)}},updateStatus:function(e,s){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),s||"loading"!==e||(s=t.st.tLoading);var n={status:e,text:s};x("UpdateStatus",n),e=n.status,s=n.text,t.st.allowHTMLInStatusIndicator?t.preloader.html(s):t.preloader.text(s),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).closest("."+g).length){var s=t.st.closeOnContentClick,n=t.st.closeOnBgClick;if(s&&n)return!0;if(!t.content||e(i).closest(".mfp-close").length||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(s)return!0}else if(n&&e.contains(document,i))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?s.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).trigger("focus")},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!e.contains(t.wrap[0],i.target))return t._setFocus(),!1},_parseMarkup:function(i,s,n){var r;n.data&&(s=e.extend(n.data,s)),x(c,[i,s,n]),e.each(s,(function(s,n){if(void 0===n||!1===n)return!0;if((r=s.split("_")).length>1){var o=i.find(p+"-"+r[0]);if(o.length>0){var a=r[1];"replaceWith"===a?o[0]!==n[0]&&o.replaceWith(n):"img"===a?o.is("img")?o.attr("src",n):o.replaceWith(e("<img>").attr("src",n).attr("class",o.attr("class"))):o.attr(r[1],n)}}else t.st.allowHTMLInTemplate?i.find(p+"-"+s).html(n):i.find(p+"-"+s).text(n)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:v.prototype,modules:[],open:function(t,i){return S(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0,allowHTMLInStatusIndicator:!1,allowHTMLInTemplate:!1}},e.fn.magnificPopup=function(i){S();var s=e(this);if("string"==typeof i)if("open"===i){var n,r=y?s.data("magnificPopup"):s[0].magnificPopup,o=parseInt(arguments[1],10)||0;r.items?n=r.items[o]:(n=s,r.delegate&&(n=n.find(r.delegate)),n=n.eq(o)),t._openClick({mfpEl:n},s,r)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1));else i=e.extend(!0,{},i),y?s.data("magnificPopup",i):s[0].magnificPopup=i,t.addGroup(s,i);return s};var E,C,M,k="inline",A=function(){M&&(C.after(M.addClass(E)).detach(),M=null)};e.magnificPopup.registerModule(k,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(k),_(a+"."+k,(function(){A()}))},getInline:function(i,s){if(A(),i.src){var n=t.st.inline,r=e(i.src);if(r.length){var o=r[0].parentNode;o&&o.tagName&&(C||(E=n.hiddenClass,C=w(E),E="mfp-"+E),M=r.after(C).detach().removeClass(E)),t.updateStatus("ready")}else t.updateStatus("error",n.tNotFound),r=e("<div>");return i.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(s,{},i),s}}});var I,O="ajax",L=function(){I&&e(document.body).removeClass(I)},P=function(){L(),t.req&&t.req.abort()};e.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:"The content could not be loaded."},proto:{initAjax:function(){t.types.push(O),I=t.st.ajax.cursor,_(a+"."+O,P),_("BeforeChange."+O,P)},getAjax:function(i){I&&e(document.body).addClass(I),t.updateStatus("loading");var s=e.extend({url:i.src,success:function(s,n,r){var o={data:s,xhr:r};x("ParseAjax",o),t.appendContent(e(o.data),O),i.finished=!0,L(),t._setFocus(),setTimeout((function(){t.wrap.addClass(f)}),16),t.updateStatus("ready"),x("AjaxContentAdded")},error:function(){L(),i.finished=i.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",i.src))}},t.st.ajax.settings);return t.req=e.ajax(s),""}}});var z,D=function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var i=t.st.image.titleSrc;if(i){if("function"==typeof i)return i.call(t,e);if(e.el)return e.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:"The image could not be loaded."},proto:{initImage:function(){var i=t.st.image,s=".image";t.types.push("image"),_(d+s,(function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)})),_(a+s,(function(){i.cursor&&e(document.body).removeClass(i.cursor),b.off("resize"+p)})),_("Resize"+s,t.resizeImage),t.isLowIE&&_("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,z&&clearInterval(z),e.isCheckingImgSize=!1,x("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,s=e.img[0],n=function(r){z&&clearInterval(z),z=setInterval((function(){s.naturalWidth>0?t._onImageHasSize(e):(i>200&&clearInterval(z),3===++i?n(10):40===i?n(50):100===i&&n(500))}),r)};n(1)},getImage:function(i,s){var n=0,r=t.st.image,o=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",r.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,x("ImageLoadComplete")):++n<200?setTimeout(a,100):o())},l=s.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=e(c).on("load.mfploader",a).on("error.mfploader",o),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),(c=i.img[0]).naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(s,{title:D(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(z&&clearInterval(z),i.loadError?(s.addClass("mfp-loading"),t.updateStatus("error",r.tError.replace("%url%",i.src))):(s.removeClass("mfp-loading"),t.updateStatus("ready")),s):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,s.addClass("mfp-loading"),t.findImageSize(i)),s)}}});var $;e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,s=".zoom";if(i.enabled&&t.supportsTransition){var n,r,o=i.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),s="all "+i.duration/1e3+"s "+i.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return n["-webkit-"+r]=n["-moz-"+r]=n["-o-"+r]=n[r]=s,t.css(n),t},d=function(){t.content.css("visibility","visible")};_("BuildControls"+s,(function(){if(t._allowZoom()){if(clearTimeout(n),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void d();(r=c(e)).css(t._getOffset()),t.wrap.append(r),n=setTimeout((function(){r.css(t._getOffset(!0)),n=setTimeout((function(){d(),setTimeout((function(){r.remove(),e=r=null,x("ZoomAnimationEnded")}),16)}),o)}),16)}})),_(l+s,(function(){if(t._allowZoom()){if(clearTimeout(n),t.st.removalDelay=o,!e){if(!(e=t._getItemToZoom()))return;r=c(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout((function(){r.css(t._getOffset())}),16)}})),_(a+s,(function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(i){var s,n=(s=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(s.css("padding-top"),10),o=parseInt(s.css("padding-bottom"),10);n.top-=e(window).scrollTop()-r;var a={width:s.width(),height:(y?s.innerHeight():s[0].offsetHeight)-o-r};return void 0===$&&($=void 0!==document.createElement("p").style.MozTransform),$?a["-moz-transform"]=a.transform="translate("+n.left+"px,"+n.top+"px)":(a.left=n.left,a.top=n.top),a}}});var B="iframe",R=function(e){if(t.currTemplate[B]){var i=t.currTemplate[B].find("iframe");i.length&&(e||(i[0].src="//about:blank"),t.isIE8&&i.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(B,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(B),_("BeforeChange",(function(e,t,i){t!==i&&(t===B?R():i===B&&R(!0))})),_(a+"."+B,(function(){R()}))},getIframe:function(i,s){var n=i.src,r=t.st.iframe;e.each(r.patterns,(function(){if(n.indexOf(this.index)>-1)return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1}));var o={};return r.srcAction&&(o[r.srcAction]=n),t._parseMarkup(s,o,i),t.updateStatus("ready"),s}}});var F=function(e){var i=t.items.length;return e>i-1?e-i:e<0?i+e:e},j=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%",langDir:null,loop:!0},proto:{initGallery:function(){var i=t.st.gallery,n=".mfp-gallery";if(t.direction=!0,!i||!i.enabled)return!1;i.langDir||(i.langDir=document.dir||"ltr"),r+=" mfp-gallery",_(d+n,(function(){i.navigateByImgClick&&t.wrap.on("click"+n,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),s.on("keydown"+n,(function(e){37===e.keyCode?"rtl"===i.langDir?t.next():t.prev():39===e.keyCode&&("rtl"===i.langDir?t.prev():t.next())})),t.updateGalleryButtons()})),_("UpdateStatus"+n,(function(){t.updateGalleryButtons()})),_("UpdateStatus"+n,(function(e,i){i.text&&(i.text=j(i.text,t.currItem.index,t.items.length))})),_(c+n,(function(e,s,n,r){var o=t.items.length;n.counter=o>1?j(i.tCounter,r.index,o):""})),_("BuildControls"+n,(function(){if(t.items.length>1&&i.arrows&&!t.arrowLeft){var s,n,r,o;"rtl"===i.langDir?(s=i.tNext,n=i.tPrev,r="next",o="prev"):(s=i.tPrev,n=i.tNext,r="prev",o="next");var a=i.arrowMarkup,l=t.arrowLeft=e(a.replace(/%title%/gi,s).replace(/%action%/gi,r).replace(/%dir%/gi,"left")).addClass(g),c=t.arrowRight=e(a.replace(/%title%/gi,n).replace(/%action%/gi,o).replace(/%dir%/gi,"right")).addClass(g);"rtl"===i.langDir?(t.arrowNext=l,t.arrowPrev=c):(t.arrowNext=c,t.arrowPrev=l),l.on("click",(function(){"rtl"===i.langDir?t.next():t.prev()})),c.on("click",(function(){"rtl"===i.langDir?t.prev():t.next()})),t.container.append(l.add(c))}})),_(u+n,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),_(a+n,(function(){s.off(n),t.wrap.off("click"+n),t.arrowRight=t.arrowLeft=null}))},next:function(){var e=F(t.index+1);if(!t.st.gallery.loop&&0===e)return!1;t.direction=!0,t.index=e,t.updateItemHTML()},prev:function(){var e=t.index-1;if(!t.st.gallery.loop&&e<0)return!1;t.direction=!1,t.index=F(e),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,i=t.st.gallery.preload,s=Math.min(i[0],t.items.length),n=Math.min(i[1],t.items.length);for(e=1;e<=(t.direction?n:s);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?s:n);e++)t._preloadItem(t.index-e)},_preloadItem:function(i){if(i=F(i),!t.items[i].preloaded){var s=t.items[i];s.parsed||(s=t.parseEl(i)),x("LazyLoad",s),"image"===s.type&&(s.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){s.hasSize=!0})).on("error.mfploader",(function(){s.hasSize=!0,s.loadError=!0,x("LazyLoadError",s)})).attr("src",s.src)),s.preloaded=!0}},updateGalleryButtons:function(){t.st.gallery.loop||"object"!=typeof t.arrowPrev||null===t.arrowPrev||(0===t.index?t.arrowPrev.hide():t.arrowPrev.show(),t.index===t.items.length-1?t.arrowNext.hide():t.arrowNext.show())}}});var N="retina";e.magnificPopup.registerModule(N,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;(i=isNaN(i)?i():i)>1&&(_("ImageHasSize."+N,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})})),_("ElementParse."+N,(function(t,s){s.src=e.replaceSrc(s,i)})))}}}}),S()})),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}((function(e){function t(t){var o=t||window.event,a=l.call(arguments,1),c=0,u=0,h=0,p=0,f=0,m=0;if((t=e.event.fix(o)).type="mousewheel","detail"in o&&(h=-1*o.detail),"wheelDelta"in o&&(h=o.wheelDelta),"wheelDeltaY"in o&&(h=o.wheelDeltaY),"wheelDeltaX"in o&&(u=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(u=-1*h,h=0),c=0===h?u:h,"deltaY"in o&&(c=h=-1*o.deltaY),"deltaX"in o&&(u=o.deltaX,0===h&&(c=-1*u)),0!==h||0!==u){if(1===o.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,h*=g,u*=g}else if(2===o.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,h*=v,u*=v}if(p=Math.max(Math.abs(h),Math.abs(u)),(!r||r>p)&&(r=p,s(o,p)&&(r/=40)),s(o,p)&&(c/=40,u/=40,h/=40),c=Math[c>=1?"floor":"ceil"](c/r),u=Math[u>=1?"floor":"ceil"](u/r),h=Math[h>=1?"floor":"ceil"](h/r),d.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=t.clientX-y.left,m=t.clientY-y.top}return t.deltaX=u,t.deltaY=h,t.deltaFactor=r,t.offsetX=f,t.offsetY=m,t.deltaMode=0,a.unshift(t,c,u,h),n&&clearTimeout(n),n=setTimeout(i,200),(e.event.dispatch||e.event.handle).apply(this,a)}}function i(){r=null}function s(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var n,r,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=o.length;c;)e.event.fixHooks[o[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=a.length;i;)this.addEventListener(a[--i],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=a.length;i;)this.removeEventListener(a[--i],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),s=i["offsetParent"in e.fn?"offsetParent":"parent"]();return s.length||(s=e("body")),parseInt(s.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})})),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}((function(e){function t(t){var o=t||window.event,a=l.call(arguments,1),c=0,u=0,h=0,p=0,f=0,m=0;if((t=e.event.fix(o)).type="mousewheel","detail"in o&&(h=-1*o.detail),"wheelDelta"in o&&(h=o.wheelDelta),"wheelDeltaY"in o&&(h=o.wheelDeltaY),"wheelDeltaX"in o&&(u=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(u=-1*h,h=0),c=0===h?u:h,"deltaY"in o&&(c=h=-1*o.deltaY),"deltaX"in o&&(u=o.deltaX,0===h&&(c=-1*u)),0!==h||0!==u){if(1===o.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,h*=g,u*=g}else if(2===o.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,h*=v,u*=v}if(p=Math.max(Math.abs(h),Math.abs(u)),(!r||r>p)&&(r=p,s(o,p)&&(r/=40)),s(o,p)&&(c/=40,u/=40,h/=40),c=Math[c>=1?"floor":"ceil"](c/r),u=Math[u>=1?"floor":"ceil"](u/r),h=Math[h>=1?"floor":"ceil"](h/r),d.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=t.clientX-y.left,m=t.clientY-y.top}return t.deltaX=u,t.deltaY=h,t.deltaFactor=r,t.offsetX=f,t.offsetY=m,t.deltaMode=0,a.unshift(t,c,u,h),n&&clearTimeout(n),n=setTimeout(i,200),(e.event.dispatch||e.event.handle).apply(this,a)}}function i(){r=null}function s(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var n,r,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=o.length;c;)e.event.fixHooks[o[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=a.length;i;)this.addEventListener(a[--i],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=a.length;i;)this.removeEventListener(a[--i],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),s=i["offsetParent"in e.fn?"offsetParent":"parent"]();return s.length||(s=e("body")),parseInt(s.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})})),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}((function(e){var t,i,s;t="function"==typeof define&&define.amd,i="undefined"!=typeof module&&module.exports,s="https:"==document.location.protocol?"https:":"http:",t||(i?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+s+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),function(){var t,i="mCustomScrollbar",s="mCS",n=".mCustomScrollbar",r={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},o=0,a={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){t=e.extend(!0,{},r,t);var i=h.call(this);if(t.live){var l=t.liveSelector||this.selector||n,c=e(l);if("off"===t.live)return void f(l);a[l]=setTimeout((function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&f(l)}),500)}else f(l);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":m(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),p(t),e(i).each((function(){var i=e(this);if(!i.data(s)){i.data(s,{idx:++o,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:i.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=i.data(s),r=n.opt,a=i.data("mcs-axis"),l=i.data("mcs-scrollbar-position"),c=i.data("mcs-theme");a&&(r.axis=a),l&&(r.scrollbarPosition=l),c&&(r.theme=c,p(r)),v.call(this),n&&r.callbacks.onCreate&&"function"==typeof r.callbacks.onCreate&&r.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,i)}}))},update:function(t,i){var n=t||h.call(this);return e(n).each((function(){var t=e(this);if(t.data(s)){var n=t.data(s),r=n.opt,o=e("#mCSB_"+n.idx+"_container"),a=e("#mCSB_"+n.idx),l=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!o.length)return;n.tweenRunning&&G(t),i&&n&&r.callbacks.onBeforeUpdate&&"function"==typeof r.callbacks.onBeforeUpdate&&r.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),a.css("max-height","none"),a.height()!==t.height()&&a.css("max-height",t.height()),b.call(this),"y"===r.axis||r.advanced.autoExpandHorizontalScroll||o.css("width",y(o)),n.overflowed=S.call(this),k.call(this),r.autoDraggerLength&&w.call(this),x.call(this),C.call(this);var c=[Math.abs(o[0].offsetTop),Math.abs(o[0].offsetLeft)];"x"!==r.axis&&(n.overflowed[0]?l[0].height()>l[0].parent().height()?E.call(this):(U(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(E.call(this),"y"===r.axis?M.call(this):"yx"===r.axis&&n.overflowed[1]&&U(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==r.axis&&(n.overflowed[1]?l[1].width()>l[1].parent().width()?E.call(this):(U(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(E.call(this),"x"===r.axis?M.call(this):"yx"===r.axis&&n.overflowed[0]&&U(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),i&&n&&(2===i&&r.callbacks.onImageLoad&&"function"==typeof r.callbacks.onImageLoad?r.callbacks.onImageLoad.call(this):3===i&&r.callbacks.onSelectorChange&&"function"==typeof r.callbacks.onSelectorChange?r.callbacks.onSelectorChange.call(this):r.callbacks.onUpdate&&"function"==typeof r.callbacks.onUpdate&&r.callbacks.onUpdate.call(this)),X.call(this)}}))},scrollTo:function(t,i){if(void 0!==t&&null!=t){var n=h.call(this);return e(n).each((function(){var n=e(this);if(n.data(s)){var r=n.data(s),o=r.opt,a={trigger:"external",scrollInertia:o.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},a,i),c=q.call(this,t),d=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=Y.call(this,c[0],"y"),c[1]=Y.call(this,c[1],"x"),l.moveDragger&&(c[0]*=r.scrollRatio.y,c[1]*=r.scrollRatio.x),l.dur=ne()?0:d,setTimeout((function(){null!==c[0]&&void 0!==c[0]&&"x"!==o.axis&&r.overflowed[0]&&(l.dir="y",l.overwrite="all",U(n,c[0].toString(),l)),null!==c[1]&&void 0!==c[1]&&"y"!==o.axis&&r.overflowed[1]&&(l.dir="x",l.overwrite="none",U(n,c[1].toString(),l))}),l.timeout)}}))}},stop:function(){var t=h.call(this);return e(t).each((function(){var t=e(this);t.data(s)&&G(t)}))},disable:function(t){var i=h.call(this);return e(i).each((function(){var i=e(this);i.data(s)&&(i.data(s),X.call(this,"remove"),M.call(this),t&&E.call(this),k.call(this,!0),i.addClass(d[3]))}))},destroy:function(){var t=h.call(this);return e(t).each((function(){var n=e(this);if(n.data(s)){var r=n.data(s),o=r.opt,a=e("#mCSB_"+r.idx),l=e("#mCSB_"+r.idx+"_container"),c=e(".mCSB_"+r.idx+"_scrollbar");o.live&&f(o.liveSelector||e(t).selector),X.call(this,"remove"),M.call(this),E.call(this),n.removeData(s),J(this,"mcs"),c.remove(),l.find("img."+d[2]).removeClass(d[2]),a.replaceWith(l.contents()),n.removeClass(i+" _"+s+"_"+r.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}}))}},h=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},p=function(t){var i=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],s=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],r=["minimal","minimal-dark"],o=["minimal","minimal-dark"];t.autoDraggerLength=!(e.inArray(t.theme,i)>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,s)>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,n)>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,r)>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,o)>-1?"outside":t.scrollbarPosition},f=function(e){a[e]&&(clearTimeout(a[e]),J(a,e))},m=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(s),r=n.opt,o=r.autoExpandScrollbar?" "+d[1]+"_expand":"",a=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_vertical"+o+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div></div><div class='mCSB_draggerRail' /></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_horizontal"+o+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div></div><div class='mCSB_draggerRail' /></div>"],l="yx"===r.axis?"mCSB_vertical_horizontal":"x"===r.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===r.axis?a[0]+a[1]:"x"===r.axis?a[1]:a[0],u="yx"===r.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",h=r.autoHideScrollbar?" "+d[6]:"",p="x"!==r.axis&&"rtl"===n.langDir?" "+d[7]:"";r.setWidth&&t.css("width",r.setWidth),r.setHeight&&t.css("height",r.setHeight),r.setLeft="y"!==r.axis&&"rtl"===n.langDir?"989999px":r.setLeft,t.addClass(i+" _"+s+"_"+n.idx+h+p).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+r.theme+" "+l+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+r.setTop+"; left:"+r.setLeft+";' dir='"+n.langDir+"' /></div>");var f=e("#mCSB_"+n.idx),m=e("#mCSB_"+n.idx+"_container");"y"===r.axis||r.advanced.autoExpandHorizontalScroll||m.css("width",y(m)),"outside"===r.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),f.addClass("mCSB_outside").after(c)):(f.addClass("mCSB_inside").append(c),m.wrap(u)),_.call(this);var g=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},y=function(t){var i=[t[0].scrollWidth,Math.max.apply(Math,t.children().map((function(){return e(this).outerWidth(!0)})).get())],s=t.parent().width();return i[0]>s?i[0]:i[1]>s?i[1]:"100%"},b=function(){var t=e(this).data(s),i=t.opt,n=e("#mCSB_"+t.idx+"_container");if(i.advanced.autoExpandHorizontalScroll&&"y"!==i.axis){n.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(n[0].scrollWidth);3===i.advanced.autoExpandHorizontalScroll||2!==i.advanced.autoExpandHorizontalScroll&&r>n.parent().width()?n.css({width:r,"min-width":"100%","overflow-x":"inherit"}):n.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},_=function(){var t=e(this).data(s),i=t.opt,n=e(".mCSB_"+t.idx+"_scrollbar:first"),r=ie(i.scrollButtons.tabindex)?"tabindex='"+i.scrollButtons.tabindex+"'":"",o=["<a href='#' class='"+d[13]+"' "+r+" />","<a href='#' class='"+d[14]+"' "+r+" />","<a href='#' class='"+d[15]+"' "+r+" />","<a href='#' class='"+d[16]+"' "+r+" />"],a=["x"===i.axis?o[2]:o[0],"x"===i.axis?o[3]:o[1],o[2],o[3]];i.scrollButtons.enable&&n.prepend(a[0]).append(a[1]).next(".mCSB_scrollTools").prepend(a[2]).append(a[3])},w=function(){var t=e(this).data(s),i=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),r=[e("#mCSB_"+t.idx+"_dragger_vertical"),e("#mCSB_"+t.idx+"_dragger_horizontal")],o=[i.height()/n.outerHeight(!1),i.width()/n.outerWidth(!1)],a=[parseInt(r[0].css("min-height")),Math.round(o[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(o[1]*r[1].parent().width())],c=l&&a[1]<a[0]?a[0]:a[1],d=l&&a[3]<a[2]?a[2]:a[3];r[0].css({height:c,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":a[0]+"px"}),r[1].css({width:d,"max-width":r[1].parent().width()-10})},x=function(){var t=e(this).data(s),i=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),r=[e("#mCSB_"+t.idx+"_dragger_vertical"),e("#mCSB_"+t.idx+"_dragger_horizontal")],o=[n.outerHeight(!1)-i.height(),n.outerWidth(!1)-i.width()],a=[o[0]/(r[0].parent().height()-r[0].height()),o[1]/(r[1].parent().width()-r[1].width())];t.scrollRatio={y:a[0],x:a[1]}},T=function(e,t,i){var s=i?d[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+s),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])))},S=function(){var t=e(this).data(s),i=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),r=null==t.overflowed?n.height():n.outerHeight(!1),o=null==t.overflowed?n.width():n.outerWidth(!1),a=n[0].scrollHeight,l=n[0].scrollWidth;return a>r&&(r=a),l>o&&(o=l),[r>i.height(),o>i.width()]},E=function(){var t=e(this),i=t.data(s),n=i.opt,r=e("#mCSB_"+i.idx),o=e("#mCSB_"+i.idx+"_container"),a=[e("#mCSB_"+i.idx+"_dragger_vertical"),e("#mCSB_"+i.idx+"_dragger_horizontal")];if(G(t),("x"!==n.axis&&!i.overflowed[0]||"y"===n.axis&&i.overflowed[0])&&(a[0].add(o).css("top",0),U(t,"_resetY")),"y"!==n.axis&&!i.overflowed[1]||"x"===n.axis&&i.overflowed[1]){var l=dx=0;"rtl"===i.langDir&&(l=r.width()-o.outerWidth(!1),dx=Math.abs(l/i.scrollRatio.x)),o.css("left",l),a[1].css("left",dx),U(t,"_resetX")}},C=function(){function t(){i=setTimeout((function(){e.event.special.mousewheel?(clearTimeout(i),P.call(n[0])):t()}),100)}var i,n=e(this),r=n.data(s),o=r.opt;r.bindEvents||(I.call(this),o.contentTouchScroll&&O.call(this),L.call(this),o.mouseWheel.enable&&t(),R.call(this),j.call(this),o.advanced.autoScrollOnFocus&&F.call(this),o.scrollButtons.enable&&N.call(this),o.keyboard.enable&&H.call(this),r.bindEvents=!0)},M=function(){var t=e(this),i=t.data(s),n=i.opt,r=s+"_"+i.idx,o=".mCSB_"+i.idx+"_scrollbar",a=e("#mCSB_"+i.idx+",#mCSB_"+i.idx+"_container,#mCSB_"+i.idx+"_container_wrapper,"+o+" ."+d[12]+",#mCSB_"+i.idx+"_dragger_vertical,#mCSB_"+i.idx+"_dragger_horizontal,"+o+">a"),l=e("#mCSB_"+i.idx+"_container");n.advanced.releaseDraggableSelectors&&a.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&a.add(e(n.advanced.extraDraggableSelectors)),i.bindEvents&&(e(document).add(e(!D()||top.document)).unbind("."+r),a.each((function(){e(this).unbind("."+r)})),clearTimeout(t[0]._focusTimeout),J(t[0],"_focusTimeout"),clearTimeout(i.sequential.step),J(i.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),J(l[0],"onCompleteTimeout"),i.bindEvents=!1)},k=function(t){var i=e(this),n=i.data(s),r=n.opt,o=e("#mCSB_"+n.idx+"_container_wrapper"),a=o.length?o:e("#mCSB_"+n.idx+"_container"),l=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==r.axis&&(n.overflowed[0]&&!t?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),a.removeClass(d[8]+" "+d[10])):(r.alwaysShowScrollbar?(2!==r.alwaysShowScrollbar&&c[0].css("display","none"),a.removeClass(d[10])):(l[0].css("display","none"),a.addClass(d[10])),a.addClass(d[8]))),"y"!==r.axis&&(n.overflowed[1]&&!t?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),a.removeClass(d[9]+" "+d[11])):(r.alwaysShowScrollbar?(2!==r.alwaysShowScrollbar&&c[1].css("display","none"),a.removeClass(d[11])):(l[1].css("display","none"),a.addClass(d[11])),a.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?i.removeClass(d[5]):i.addClass(d[5])},A=function(t){var i=t.type,s=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=D()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(i){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return s?[t.originalEvent.pageY-s[0]+n[0],t.originalEvent.pageX-s[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var r=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],o=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[r.screenY,r.screenX,o>1]:[r.pageY,r.pageX,o>1];default:return s?[t.pageY-s[0]+n[0],t.pageX-s[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){function t(e,t,s,n){if(p[0].idleTimer=d.scrollInertia<233?250:0,i.attr("id")===h[1])var r="x",l=(i[0].offsetLeft-t+n)*a.scrollRatio.x;else r="y",l=(i[0].offsetTop-e+s)*a.scrollRatio.y;U(o,l.toString(),{dir:r,drag:!0})}var i,n,r,o=e(this),a=o.data(s),d=a.opt,u=s+"_"+a.idx,h=["mCSB_"+a.idx+"_dragger_vertical","mCSB_"+a.idx+"_dragger_horizontal"],p=e("#mCSB_"+a.idx+"_container"),f=e("#"+h[0]+",#"+h[1]),m=d.advanced.releaseDraggableSelectors?f.add(e(d.advanced.releaseDraggableSelectors)):f,g=d.advanced.extraDraggableSelectors?e(!D()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!D()||top.document);f.bind("contextmenu."+u,(function(e){e.preventDefault()})).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,(function(t){if(t.stopImmediatePropagation(),t.preventDefault(),ee(t)){c=!0,l&&(document.onselectstart=function(){return!1}),$.call(p,!1),G(o);var s=(i=e(this)).offset(),a=A(t)[0]-s.top,u=A(t)[1]-s.left,h=i.height()+s.top,f=i.width()+s.left;h>a&&a>0&&f>u&&u>0&&(n=a,r=u),T(i,"active",d.autoExpandScrollbar)}})).bind("touchmove."+u,(function(e){e.stopImmediatePropagation(),e.preventDefault();var s=i.offset(),o=A(e)[0]-s.top,a=A(e)[1]-s.left;t(n,r,o,a)})),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,(function(e){if(i){var s=i.offset(),o=A(e)[0]-s.top,a=A(e)[1]-s.left;if(n===o&&r===a)return;t(n,r,o,a)}})).add(m).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,(function(){i&&(T(i,"active",d.autoExpandScrollbar),i=null),c=!1,l&&(document.onselectstart=null),$.call(p,!0)}))},O=function(){function i(e){if(!te(e)||c||A(e)[2])t=0;else{t=1,x=0,T=0,d=1,S.removeClass("mCS_touch_action");var i=I.offset();u=A(e)[0]-i.top,h=A(e)[1]-i.left,B=[A(e)[0],A(e)[1]]}}function n(e){if(te(e)&&!c&&!A(e)[2]&&(C.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!T||x)&&d)){g=Z();var t=k.offset(),i=A(e)[0]-t.top,s=A(e)[1]-t.left,n="mcsLinearOut";if(L.push(i),P.push(s),B[2]=Math.abs(A(e)[0]-B[0]),B[3]=Math.abs(A(e)[1]-B[1]),E.overflowed[0])var r=O[0].parent().height()-O[0].height(),o=u-i>0&&i-u>-r*E.scrollRatio.y&&(2*B[3]<B[2]||"yx"===C.axis);if(E.overflowed[1])var a=O[1].parent().width()-O[1].width(),p=h-s>0&&s-h>-a*E.scrollRatio.x&&(2*B[2]<B[3]||"yx"===C.axis);o||p?(j||e.preventDefault(),x=1):(T=1,S.addClass("mCS_touch_action")),j&&e.preventDefault(),_="yx"===C.axis?[u-i,h-s]:"x"===C.axis?[null,h-s]:[u-i,null],I[0].idleTimer=250,E.overflowed[0]&&l(_[0],z,n,"y","all",!0),E.overflowed[1]&&l(_[1],z,n,"x",$,!0)}}function r(e){if(!te(e)||c||A(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),G(S),m=Z();var i=k.offset();p=A(e)[0]-i.top,f=A(e)[1]-i.left,L=[],P=[]}}function o(e){if(te(e)&&!c&&!A(e)[2]){d=0,e.stopImmediatePropagation(),x=0,T=0,v=Z();var t=k.offset(),i=A(e)[0]-t.top,s=A(e)[1]-t.left;if(!(v-g>30)){var n="mcsEaseOut",r=2.5>(b=1e3/(v-m)),o=r?[L[L.length-2],P[P.length-2]]:[0,0];y=r?[i-o[0],s-o[1]]:[i-p,s-f];var u=[Math.abs(y[0]),Math.abs(y[1])];b=r?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[b,b];var h=[Math.abs(I[0].offsetTop)-y[0]*a(u[0]/b[0],b[0]),Math.abs(I[0].offsetLeft)-y[1]*a(u[1]/b[1],b[1])];_="yx"===C.axis?[h[0],h[1]]:"x"===C.axis?[null,h[1]]:[h[0],null],w=[4*u[0]+C.scrollInertia,4*u[1]+C.scrollInertia];var S=parseInt(C.contentTouchScroll)||0;_[0]=u[0]>S?_[0]:0,_[1]=u[1]>S?_[1]:0,E.overflowed[0]&&l(_[0],w[0],n,"y",$,!1),E.overflowed[1]&&l(_[1],w[1],n,"x",$,!1)}}}function a(e,t){var i=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?i[0]:i[3]:e>60?t>3?i[3]:i[2]:e>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function l(e,t,i,s,n,r){e&&U(S,e.toString(),{dur:t,scrollEasing:i,dir:s,overwrite:n,drag:r})}var d,u,h,p,f,m,g,v,y,b,_,w,x,T,S=e(this),E=S.data(s),C=E.opt,M=s+"_"+E.idx,k=e("#mCSB_"+E.idx),I=e("#mCSB_"+E.idx+"_container"),O=[e("#mCSB_"+E.idx+"_dragger_vertical"),e("#mCSB_"+E.idx+"_dragger_horizontal")],L=[],P=[],z=0,$="yx"===C.axis?"none":"all",B=[],R=I.find("iframe"),F=["touchstart."+M+" pointerdown."+M+" MSPointerDown."+M,"touchmove."+M+" pointermove."+M+" MSPointerMove."+M,"touchend."+M+" pointerup."+M+" MSPointerUp."+M],j=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;I.bind(F[0],(function(e){i(e)})).bind(F[1],(function(e){n(e)})),k.bind(F[0],(function(e){r(e)})).bind(F[2],(function(e){o(e)})),R.length&&R.each((function(){e(this).bind("load",(function(){D(this)&&e(this.contentDocument||this.contentWindow.document).bind(F[0],(function(e){i(e),r(e)})).bind(F[1],(function(e){n(e)})).bind(F[2],(function(e){o(e)}))}))}))},L=function(){function i(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function n(e,t,i){d.type=i&&r?"stepped":"stepless",d.scrollAmount=10,W(o,e,t,"mcsLinearOut",i?60:null)}var r,o=e(this),a=o.data(s),l=a.opt,d=a.sequential,u=s+"_"+a.idx,h=e("#mCSB_"+a.idx+"_container"),p=h.parent();h.bind("mousedown."+u,(function(){t||r||(r=1,c=!0)})).add(document).bind("mousemove."+u,(function(e){if(!t&&r&&i()){var s=h.offset(),o=A(e)[0]-s.top+h[0].offsetTop,c=A(e)[1]-s.left+h[0].offsetLeft;o>0&&o<p.height()&&c>0&&c<p.width()?d.step&&n("off",null,"stepped"):("x"!==l.axis&&a.overflowed[0]&&(0>o?n("on",38):o>p.height()&&n("on",40)),"y"!==l.axis&&a.overflowed[1]&&(0>c?n("on",37):c>p.width()&&n("on",39)))}})).bind("mouseup."+u+" dragend."+u,(function(){t||(r&&(r=0,n("off",null)),c=!1)}))},P=function(){function t(t,s){if(G(i),!B(i,t.target)){var o="auto"!==r.mouseWheel.deltaFactor?parseInt(r.mouseWheel.deltaFactor):l&&t.deltaFactor<100?100:t.deltaFactor||100,d=r.scrollInertia;if("x"===r.axis||"x"===r.mouseWheel.axis)var u="x",h=[Math.round(o*n.scrollRatio.x),parseInt(r.mouseWheel.scrollAmount)],p="auto"!==r.mouseWheel.scrollAmount?h[1]:h[0]>=a.width()?.9*a.width():h[0],f=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetLeft),m=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v="y"===r.mouseWheel.axis?t.deltaY||s:t.deltaX;else u="y",h=[Math.round(o*n.scrollRatio.y),parseInt(r.mouseWheel.scrollAmount)],p="auto"!==r.mouseWheel.scrollAmount?h[1]:h[0]>=a.height()?.9*a.height():h[0],f=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetTop),m=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||s;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((r.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),r.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==m||0>v&&m!==g||r.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!r.mouseWheel.normalizeDelta&&(p=t.deltaFactor,d=17),U(i,(f-v*p).toString(),{dir:u,dur:d}))}}if(e(this).data(s)){var i=e(this),n=i.data(s),r=n.opt,o=s+"_"+n.idx,a=e("#mCSB_"+n.idx),c=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")],d=e("#mCSB_"+n.idx+"_container").find("iframe");d.length&&d.each((function(){e(this).bind("load",(function(){D(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+o,(function(e,i){t(e,i)}))}))})),a.bind("mousewheel."+o,(function(e,i){t(e,i)}))}},z=new Object,D=function(t){var i=!1,s=!1,n=null;if(void 0===t?s="#empty":void 0!==e(t).attr("id")&&(s=e(t).attr("id")),!1!==s&&void 0!==z[s])return z[s];if(t){try{n=(t.contentDocument||t.contentWindow.document).body.innerHTML}catch(e){}i=null!==n}else{try{n=top.document.body.innerHTML}catch(e){}i=null!==n}return!1!==s&&(z[s]=i),i},$=function(e){var t=this.find("iframe");if(t.length){var i=e?"auto":"none";t.css("pointer-events",i)}},B=function(t,i){var n=i.nodeName.toLowerCase(),r=t.data(s).opt.mouseWheel.disableOver,o=["select","textarea"];return e.inArray(n,r)>-1&&!(e.inArray(n,o)>-1&&!e(i).is(":focus"))},R=function(){var t,i=e(this),n=i.data(s),r=s+"_"+n.idx,o=e("#mCSB_"+n.idx+"_container"),a=o.parent();e(".mCSB_"+n.idx+"_scrollbar ."+d[12]).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,(function(i){c=!0,e(i.target).hasClass("mCSB_dragger")||(t=1)})).bind("touchend."+r+" pointerup."+r+" MSPointerUp."+r,(function(){c=!1})).bind("click."+r,(function(s){if(t&&(t=0,e(s.target).hasClass(d[12])||e(s.target).hasClass("mCSB_draggerRail"))){G(i);var r=e(this),l=r.find(".mCSB_dragger");if(r.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=s.pageX>l.offset().left?-1:1,h=Math.abs(o[0].offsetLeft)-u*(.9*a.width())}else{if(!n.overflowed[0])return;c="y",u=s.pageY>l.offset().top?-1:1,h=Math.abs(o[0].offsetTop)-u*(.9*a.height())}U(i,h.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}}))},F=function(){var t=e(this),i=t.data(s),n=i.opt,r=s+"_"+i.idx,o=e("#mCSB_"+i.idx+"_container"),a=o.parent();o.bind("focusin."+r,(function(){var i=e(document.activeElement),s=o.find(".mCustomScrollBox").length,r=0;i.is(n.advanced.autoScrollOnFocus)&&(G(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=s?(r+17)*s:0,t[0]._focusTimeout=setTimeout((function(){var e=[se(i)[0],se(i)[1]],s=[o[0].offsetTop,o[0].offsetLeft],l=[s[0]+e[0]>=0&&s[0]+e[0]<a.height()-i.outerHeight(!1),s[1]+e[1]>=0&&s[0]+e[1]<a.width()-i.outerWidth(!1)],c="yx"!==n.axis||l[0]||l[1]?"all":"none";"x"===n.axis||l[0]||U(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:r}),"y"===n.axis||l[1]||U(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:r})}),t[0]._focusTimer))}))},j=function(){var t=e(this).data(s),i=s+"_"+t.idx,n=e("#mCSB_"+t.idx+"_container").parent();n.bind("scroll."+i,(function(){0===n.scrollTop()&&0===n.scrollLeft()||e(".mCSB_"+t.idx+"_scrollbar").css("visibility","hidden")}))},N=function(){var t=e(this),i=t.data(s),n=i.opt,r=i.sequential,o=s+"_"+i.idx,a=".mCSB_"+i.idx+"_scrollbar";e(a+">a").bind("contextmenu."+o,(function(e){e.preventDefault()})).bind("mousedown."+o+" touchstart."+o+" pointerdown."+o+" MSPointerDown."+o+" mouseup."+o+" touchend."+o+" pointerup."+o+" MSPointerUp."+o+" mouseout."+o+" pointerout."+o+" MSPointerOut."+o+" click."+o,(function(s){function o(e,i){r.scrollAmount=n.scrollButtons.scrollAmount,W(t,e,i)}if(s.preventDefault(),ee(s)){var a=e(this).attr("class");switch(r.type=n.scrollButtons.scrollType,s.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===r.type)return;c=!0,i.tweenRunning=!1,o("on",a);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===r.type)return;c=!1,r.dir&&o("off",a);break;case"click":if("stepped"!==r.type||i.tweenRunning)return;o("on",a)}}}))},H=function(){function t(t){function s(e,t){o.type=r.keyboard.scrollType,o.scrollAmount=r.keyboard.scrollAmount,"stepped"===o.type&&n.tweenRunning||W(i,e,t)}switch(t.type){case"blur":n.tweenRunning&&o.dir&&s("off",null);break;case"keydown":case"keyup":var a=t.keyCode?t.keyCode:t.which,l="on";if("x"!==r.axis&&(38===a||40===a)||"y"!==r.axis&&(37===a||39===a)){if((38===a||40===a)&&!n.overflowed[0]||(37===a||39===a)&&!n.overflowed[1])return;"keyup"===t.type&&(l="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),s(l,a))}else if(33===a||34===a){if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){G(i);var h=34===a?-1:1;if("x"===r.axis||"yx"===r.axis&&n.overflowed[1]&&!n.overflowed[0])var p="x",f=Math.abs(c[0].offsetLeft)-h*(.9*d.width());else p="y",f=Math.abs(c[0].offsetTop)-h*(.9*d.height());U(i,f.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}else 35!==a&&36!==a||e(document.activeElement).is(u)||((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"!==t.type)||("x"===r.axis||"yx"===r.axis&&n.overflowed[1]&&!n.overflowed[0]?(p="x",f=35===a?Math.abs(d.width()-c.outerWidth(!1)):0):(p="y",f=35===a?Math.abs(d.height()-c.outerHeight(!1)):0),U(i,f.toString(),{dir:p,scrollEasing:"mcsEaseInOut"}))}}var i=e(this),n=i.data(s),r=n.opt,o=n.sequential,a=s+"_"+n.idx,l=e("#mCSB_"+n.idx),c=e("#mCSB_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",h=c.find("iframe"),p=["blur."+a+" keydown."+a+" keyup."+a];h.length&&h.each((function(){e(this).bind("load",(function(){D(this)&&e(this.contentDocument||this.contentWindow.document).bind(p[0],(function(e){t(e)}))}))})),l.attr("tabindex","0").bind(p[0],(function(e){t(e)}))},W=function(t,i,n,r,o){function a(e){u.snapAmount&&(h.scrollAmount=u.snapAmount instanceof Array?"x"===h.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var i="stepped"!==h.type,s=o||(e?i?m/1.5:g:1e3/60),n=e?i?7.5:40:2.5,l=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],f="x"===h.dir[0]?l[1]+h.dir[1]*(d[1]*n):l[0]+h.dir[1]*(d[0]*n),v="x"===h.dir[0]?l[1]+h.dir[1]*parseInt(h.scrollAmount):l[0]+h.dir[1]*parseInt(h.scrollAmount),y="auto"!==h.scrollAmount?v:f,b=r||(e?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),_=!!e;return e&&17>s&&(y="x"===h.dir[0]?l[1]:l[0]),U(t,y.toString(),{dir:h.dir[0],scrollEasing:b,dur:s,onComplete:_}),e?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout((function(){a()}),s)))}function l(){clearTimeout(h.step),J(h,"step"),G(t)}var c=t.data(s),u=c.opt,h=c.sequential,p=e("#mCSB_"+c.idx+"_container"),f="stepped"===h.type,m=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(i){case"on":if(h.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],G(t),ie(n)&&"stepped"===h.type)return;a(f);break;case"off":l(),(f||c.tweenRunning&&h.dir)&&a(!0)}},q=function(t){var i=e(this).data(s).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===i.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===i.axis?null:t,n[1]=t.x?t.x:t.y||"y"===i.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},Y=function(t,i){if(null!=t&&void 0!==t){var n=e(this),r=n.data(s),o=r.opt,a=e("#mCSB_"+r.idx+"_container"),l=a.parent(),c=typeof t;i||(i="x"===o.axis?"x":"y");var d="x"===i?a.outerWidth(!1)-l.width():a.outerHeight(!1)-l.height(),h="x"===i?a[0].offsetLeft:a[0].offsetTop,p="x"===i?"left":"top";switch(c){case"function":return t();case"object":if(!(m=t.jquery?t:e(t)).length)return;return"x"===i?se(m)[1]:se(m)[0];case"string":case"number":if(ie(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(h-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var f=h+parseInt(t.split("+=")[1]);return f>=0?0:Math.abs(f)}if(-1!==t.indexOf("px")&&ie(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-a.outerHeight(!1));if("right"===t)return Math.abs(l.width()-a.outerWidth(!1));if("first"===t||"last"===t){var m=a.find(":"+t);return"x"===i?se(m)[1]:se(m)[0]}return e(t).length?"x"===i?se(e(t))[1]:se(e(t))[0]:(a.css(p,t),void u.update.call(null,n[0]))}}},X=function(t){function i(){return clearTimeout(h[0].autoUpdate),0===a.parents("html").length?void(a=null):void(h[0].autoUpdate=setTimeout((function(){return c.advanced.updateOnSelectorChange&&(l.poll.change.n=r(),l.poll.change.n!==l.poll.change.o)?(l.poll.change.o=l.poll.change.n,void o(3)):c.advanced.updateOnContentResize&&(l.poll.size.n=a[0].scrollHeight+a[0].scrollWidth+h[0].offsetHeight+a[0].offsetHeight+a[0].offsetWidth,l.poll.size.n!==l.poll.size.o)?(l.poll.size.o=l.poll.size.n,void o(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(l.poll.img.n=h.find("img").length,l.poll.img.n===l.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&i()):(l.poll.img.o=l.poll.img.n,void h.find("img").each((function(){n(this)})))}),c.advanced.autoUpdateTimeout))}function n(t){function i(e,t){return function(){return t.apply(e,arguments)}}function s(){this.onload=null,e(t).addClass(d[2]),o(2)}if(e(t).hasClass(d[2]))o();else{var n=new Image;n.onload=i(n,s),n.src=t.src}}function r(){!0===c.advanced.updateOnSelectorChange&&(c.advanced.updateOnSelectorChange="*");var e=0,t=h.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&t.length>0&&t.each((function(){e+=this.offsetHeight+this.offsetWidth})),e}function o(e){clearTimeout(h[0].autoUpdate),u.update.call(null,a[0],e)}var a=e(this),l=a.data(s),c=l.opt,h=e("#mCSB_"+l.idx+"_container");return t?(clearTimeout(h[0].autoUpdate),void J(h[0],"autoUpdate")):void i()},V=function(e,t,i){return Math.round(e/t)*t-i},G=function(t){var i=t.data(s);e("#mCSB_"+i.idx+"_container,#mCSB_"+i.idx+"_container_wrapper,#mCSB_"+i.idx+"_dragger_vertical,#mCSB_"+i.idx+"_dragger_horizontal").each((function(){K.call(this)}))},U=function(t,i,n){function r(e){return l&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function o(){return[c.callbacks.alwaysTriggerOffsets||_>=w[0]+S,c.callbacks.alwaysTriggerOffsets||-E>=_]}function a(){var e=[p[0].offsetTop,p[0].offsetLeft],i=[y[0].offsetTop,y[0].offsetLeft],s=[p.outerHeight(!1),p.outerWidth(!1)],r=[h.height(),h.width()];t[0].mcs={content:p,top:e[0],left:e[1],draggerTop:i[0],draggerLeft:i[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(s[0])-r[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(s[1])-r[1])),direction:n.dir}}var l=t.data(s),c=l.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},u=[(n=e.extend(d,n)).dur,n.drag?0:n.dur],h=e("#mCSB_"+l.idx),p=e("#mCSB_"+l.idx+"_container"),f=p.parent(),m=c.callbacks.onTotalScrollOffset?q.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?q.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=n.trigger,0===f.scrollTop()&&0===f.scrollLeft()||(e(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),f.scrollTop(0).scrollLeft(0)),"_resetY"!==i||l.contentReset.y||(r("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),l.contentReset.y=1),"_resetX"!==i||l.contentReset.x||(r("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),l.contentReset.x=1),"_resetY"!==i&&"_resetX"!==i){if(!l.contentReset.y&&t[0].mcs||!l.overflowed[0]||(r("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),l.contentReset.x=null),!l.contentReset.x&&t[0].mcs||!l.overflowed[1]||(r("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),l.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===n.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;i=V(i,v,c.snapOffset)}switch(n.dir){case"x":var y=e("#mCSB_"+l.idx+"_dragger_horizontal"),b="left",_=p[0].offsetLeft,w=[h.width()-p.outerWidth(!1),y.parent().width()-y.width()],x=[i,0===i?0:i/l.scrollRatio.x],S=m[1],E=g[1],C=S>0?S/l.scrollRatio.x:0,M=E>0?E/l.scrollRatio.x:0;break;case"y":y=e("#mCSB_"+l.idx+"_dragger_vertical"),b="top",_=p[0].offsetTop,w=[h.height()-p.outerHeight(!1),y.parent().height()-y.height()],x=[i,0===i?0:i/l.scrollRatio.y],S=m[0],E=g[0],C=S>0?S/l.scrollRatio.y:0,M=E>0?E/l.scrollRatio.y:0}x[1]<0||0===x[0]&&0===x[1]?x=[0,0]:x[1]>=w[1]?x=[w[0],w[1]]:x[0]=-x[0],t[0].mcs||(a(),r("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(p[0].onCompleteTimeout),Q(y[0],b,Math.round(x[1]),u[1],n.scrollEasing),!l.tweenRunning&&(0===_&&x[0]>=0||_===w[0]&&x[0]<=w[0])||Q(p[0],b,Math.round(x[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!l.tweenRunning&&(r("onScrollStart")&&(a(),c.callbacks.onScrollStart.call(t[0])),l.tweenRunning=!0,T(y),l.cbOffsets=o())},onUpdate:function(){n.callbacks&&n.onUpdate&&r("whileScrolling")&&(a(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===c.axis&&clearTimeout(p[0].onCompleteTimeout);var e=p[0].idleTimer||0;p[0].onCompleteTimeout=setTimeout((function(){r("onScroll")&&(a(),c.callbacks.onScroll.call(t[0])),r("onTotalScroll")&&x[1]>=w[1]-C&&l.cbOffsets[0]&&(a(),c.callbacks.onTotalScroll.call(t[0])),r("onTotalScrollBack")&&x[1]<=M&&l.cbOffsets[1]&&(a(),c.callbacks.onTotalScrollBack.call(t[0])),l.tweenRunning=!1,p[0].idleTimer=0,T(y,"hide")}),e)}}})}},Q=function(e,t,i,s,n,r,o){function a(){w.stop||(y||f.call(),y=Z()-v,l(),y>=w.time&&(w.time=y>w.time?y+h-(y-w.time):y+h-1,w.time<y+1&&(w.time=y+1)),w.time<s?w.id=p(a):g.call())}function l(){s>0?(w.currVal=u(w.time,b,x,s,n),_[t]=Math.round(w.currVal)+"px"):_[t]=i+"px",m.call()}function c(){h=1e3/60,w.time=y+h,p=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return l(),setTimeout(e,.01)},w.id=p(a)}function d(){null!=w.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(w.id):clearTimeout(w.id),w.id=null)}function u(e,t,i,s,n){switch(n){case"linear":case"mcsLinear":return i*e/s+t;case"mcsLinearOut":return e/=s,e--,i*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return 1>(e/=s/2)?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return 1>(e/=s/2)?i/2*Math.pow(2,10*(e-1))+t:(e--,i/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return 1>(e/=s/2)?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=s,-i*(--e*e*e*e-1)+t;case"easeOutStrong":return i*(1-Math.pow(2,-10*e/s))+t;default:var r=(e/=s)*e,o=r*e;return t+i*(.499999999999997*o*r+-2.5*r*r+5.5*o+-6.5*r+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var h,p,f=(o=o||{}).onStart||function(){},m=o.onUpdate||function(){},g=o.onComplete||function(){},v=Z(),y=0,b=e.offsetTop,_=e.style,w=e._mTween[t];"left"===t&&(b=e.offsetLeft);var x=i-b;w.stop=0,"none"!==r&&d(),c()},Z=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},K=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],i=0;i<t.length;i++){var s=t[i];e._mTween[s].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[s].id):clearTimeout(e._mTween[s].id),e._mTween[s].id=null,e._mTween[s].stop=1)}},J=function(e,t){try{delete e[t]}catch(i){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},ie=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},se=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}var t=e();return!!t&&document[t]};e.fn[i]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[i]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[i].defaults=r,window[i]=!0,e(window).bind("load",(function(){e(n)[i](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var i,s,n=e(t),r=n.parents(".mCSB_container");if(r.length)return i=r.parent(),(s=[r[0].offsetTop,r[0].offsetLeft])[0]+se(n)[0]>=0&&s[0]+se(n)[0]<i.height()-n.outerHeight(!1)&&s[1]+se(n)[1]>=0&&s[1]+se(n)[1]<i.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,i,s){var n,r,o,a,l=e(t),c=l.parents(".mCSB_container"),d="exact"===s[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[l.outerHeight(!1),l.outerWidth(!1)],o=[c[0].offsetTop+se(l)[0],c[0].offsetLeft+se(l)[1]],r=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],a=[n[0]<r[0]?d[0]:d[1],n[1]<r[1]?d[0]:d[1]],o[0]-r[0]*a[0][0]<0&&o[0]+n[0]-r[0]*a[0][1]>=0&&o[1]-r[1]*a[1][0]<0&&o[1]+n[1]-r[1]*a[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var i=e(t).data(s);if(i)return i.overflowed[0]||i.overflowed[1]}})}))}()})),
  139. /*!
  140. Justified Gallery
  141. Version: 3.8.1
  142. Plugin URL: http://miromannino.github.io/Justified-Gallery/
  143. License: Copyright (c) 2020 Miro Mannino | Released under the MIT License
  144. !*/
  145. function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}((function(e){var t=function(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=i.border>=0?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:e('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t};t.prototype.getSuffix=function(e,t){var i,s;for(i=e>t?e:t,s=0;s<this.suffixRanges.length;s++)if(i<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},t.prototype.removeSuffix=function(e,t){return e.substring(0,e.length-t.length)},t.prototype.endsWith=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},t.prototype.getUsedSuffix=function(e){for(var t in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(t)){if(0===this.settings.sizeRangeSuffixes[t].length)continue;if(this.endsWith(e,this.settings.sizeRangeSuffixes[t]))return this.settings.sizeRangeSuffixes[t]}return""},t.prototype.newSrc=function(e,t,i,s){var n;if(this.settings.thumbnailPath)n=this.settings.thumbnailPath(e,t,i,s);else{var r=e.match(this.settings.extension),o=null!==r?r[0]:"";n=e.replace(this.settings.extension,""),n=this.removeSuffix(n,this.getUsedSuffix(n)),n+=this.getSuffix(t,i)+o}return n},t.prototype.showImg=function(e,t){this.settings.cssAnimation?(e.addClass("jg-entry-visible"),t&&t()):(e.stop().fadeTo(this.settings.imagesAnimationDuration,1,t),e.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,t))},t.prototype.extractImgSrcFromImage=function(e){var t=e.data("safe-src"),i="data-safe-src";return void 0===t&&(t=e.attr("src"),i="src"),e.data("jg.originalSrc",t),e.data("jg.src",t),e.data("jg.originalSrcLoc",i),t},t.prototype.imgFromEntry=function(e){var t=e.find(this.settings.imgSelector);return 0===t.length?null:t},t.prototype.captionFromEntry=function(e){var t=e.find("> .jg-caption");return 0===t.length?null:t},t.prototype.displayEntry=function(e,t,i,s,n,r){e.width(s),e.height(r),e.css("top",i),e.css("left",t);var o=this.imgFromEntry(e);if(null!==o){o.css("width",s),o.css("height",n),o.css("margin-left",-s/2),o.css("margin-top",-n/2);var a=o.data("jg.src");if(a){a=this.newSrc(a,s,n,o[0]),o.one("error",(function(){this.resetImgSrc(o)}));var l=function(){o.attr("src",a)};"skipped"===e.data("jg.loaded")&&a?this.onImageEvent(a,function(){this.showImg(e,l),e.data("jg.loaded",!0)}.bind(this)):this.showImg(e,l)}}else this.showImg(e);this.displayEntryCaption(e)},t.prototype.displayEntryCaption=function(t){var i=this.imgFromEntry(t);if(null!==i&&this.settings.captions){var s=this.captionFromEntry(t);if(null===s){var n=i.attr("alt");this.isValidCaption(n)||(n=t.attr("title")),this.isValidCaption(n)&&(s=e('<div class="jg-caption">'+n+"</div>"),t.append(s),t.data("jg.createdCaption",!0))}null!==s&&(this.settings.cssAnimation||s.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))}else this.removeCaptionEventsHandlers(t)},t.prototype.isValidCaption=function(e){return void 0!==e&&e.length>0},t.prototype.onEntryMouseEnterForCaption=function(t){var i=this.captionFromEntry(e(t.currentTarget));this.settings.cssAnimation?i.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},t.prototype.onEntryMouseLeaveForCaption=function(t){var i=this.captionFromEntry(e(t.currentTarget));this.settings.cssAnimation?i.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):i.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},t.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:e.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:e.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},t.prototype.removeCaptionEventsHandlers=function(e){var t=e.data("jg.captionMouseEvents");void 0!==t&&(e.off("mouseenter",void 0,t.mouseenter),e.off("mouseleave",void 0,t.mouseleave),e.removeData("jg.captionMouseEvents"))},t.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},t.prototype.prepareBuildingRow=function(e,t){var i,s,n,r,o,a=!0,l=0,c=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,d=c/this.buildingRow.aspectRatio,u=this.settings.rowHeight,h=this.buildingRow.width/c>this.settings.justifyThreshold;if(t||e&&"hide"===this.settings.lastRow&&!h){for(i=0;i<this.buildingRow.entriesBuff.length;i++)s=this.buildingRow.entriesBuff[i],this.settings.cssAnimation?s.removeClass("jg-entry-visible"):(s.stop().fadeTo(0,.1),s.find("> img, > a > img").fadeTo(0,0));return-1}for(e&&!h&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(a=!1,this.rows>0&&(a=(u=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/c>this.settings.justifyThreshold)),i=0;i<this.buildingRow.entriesBuff.length;i++)n=(s=this.buildingRow.entriesBuff[i]).data("jg.width")/s.data("jg.height"),a?(r=i===this.buildingRow.entriesBuff.length-1?c:d*n,o=d):(r=u*n,o=u),c-=Math.round(r),s.data("jg.jwidth",Math.round(r)),s.data("jg.jheight",Math.ceil(o)),(0===i||l>o)&&(l=o);return this.buildingRow.height=l,a},t.prototype.flushRow=function(e,t){var i,s,n,r=this.settings,o=this.border;if(s=this.prepareBuildingRow(e,t),t||e&&"hide"===r.lastRow&&-1===s)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),e&&("center"===r.lastRow||"right"===r.lastRow)){var a=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*r.margins;for(n=0;n<this.buildingRow.entriesBuff.length;n++)a-=(i=this.buildingRow.entriesBuff[n]).data("jg.jwidth");"center"===r.lastRow?o+=Math.round(a/2):"right"===r.lastRow&&(o+=a)}var l=this.buildingRow.entriesBuff.length-1;for(n=0;n<=l;n++)i=this.buildingRow.entriesBuff[this.settings.rtl?l-n:n],this.displayEntry(i,o,this.offY,i.data("jg.jwidth"),i.data("jg.jheight"),this.buildingRow.height),o+=i.data("jg.jwidth")+r.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!e||this.buildingRow.height<=r.rowHeight&&s)&&(this.offY+=this.buildingRow.height+r.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;t.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},t.prototype.setGalleryTempHeight=function(e){i=Math.max(e,i),this.$gallery.height(i)},t.prototype.setGalleryFinalHeight=function(e){i=e,this.$gallery.height(e)},t.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(e.proxy((function(){if(this.$gallery.is(":visible")){var e=parseFloat(this.$gallery.width());Math.abs(e-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=e,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0))}}),this),this.settings.refreshTime)},t.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},t.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},t.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},t.prototype.startLoadingSpinnerAnimation=function(){var e=this.spinner,t=e.$el.find("span");clearInterval(e.intervalId),this.$gallery.append(e.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),e.intervalId=setInterval((function(){e.phase<t.length?t.eq(e.phase).fadeTo(e.timeSlot,1):t.eq(e.phase-t.length).fadeTo(e.timeSlot,0),e.phase=(e.phase+1)%(2*t.length)}),e.timeSlot)},t.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},t.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},t.prototype.getAllEntries=function(){var e=this.getSelectorWithoutSpinner();return this.$gallery.children(e).toArray()},t.prototype.updateEntries=function(t){var i;if(t&&null!=this.lastFetchedEntry){var s=this.getSelectorWithoutSpinner();i=e(this.lastFetchedEntry).nextAll(s).toArray()}else this.entries=[],i=this.getAllEntries();return i.length>0&&(e.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},t.prototype.insertToGallery=function(t){var i=this;e.each(t,(function(){e(this).appendTo(i.$gallery)}))},t.prototype.shuffleArray=function(e){var t,i,s;for(t=e.length-1;t>0;t--)i=Math.floor(Math.random()*(t+1)),s=e[t],e[t]=e[i],e[i]=s;return this.insertToGallery(e),e},t.prototype.sortArray=function(e){return e.sort(this.settings.sort),this.insertToGallery(e),e},t.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)e(t[i]).removeClass("jg-filtered")},t.prototype.filterArray=function(t){var i=this.settings;if("string"===e.type(i.filter))return t.filter((function(t){var s=e(t);return s.is(i.filter)?(s.removeClass("jg-filtered"),!0):(s.addClass("jg-filtered").removeClass("jg-visible"),!1)}));if(e.isFunction(i.filter)){for(var s=t.filter(i.filter),n=0;n<t.length;n++)-1===s.indexOf(t[n])?e(t[n]).addClass("jg-filtered").removeClass("jg-visible"):e(t[n]).removeClass("jg-filtered");return s}},t.prototype.resetImgSrc=function(e){"src"===e.data("jg.originalSrcLoc")?e.attr("src",e.data("jg.originalSrc")):e.attr("src","")},t.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),e.each(this.getAllEntries(),e.proxy((function(t,i){var s=e(i);s.css("width",""),s.css("height",""),s.css("top",""),s.css("left",""),s.data("jg.loaded",void 0),s.removeClass("jg-entry jg-filtered jg-entry-visible");var n=this.imgFromEntry(s);n&&(n.css("width",""),n.css("height",""),n.css("margin-left",""),n.css("margin-top",""),this.resetImgSrc(n),n.data("jg.originalSrc",void 0),n.data("jg.originalSrcLoc",void 0),n.data("jg.src",void 0)),this.removeCaptionEventsHandlers(s);var r=this.captionFromEntry(s);s.data("jg.createdCaption")?(s.data("jg.createdCaption",void 0),null!==r&&r.remove()):null!==r&&r.fadeTo(0,1)}),this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},t.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var s=e(this.entries[i]);if(!0===s.data("jg.loaded")||"skipped"===s.data("jg.loaded")){var n=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,r=s.data("jg.width")/s.data("jg.height");if(this.buildingRow.entriesBuff.push(s),this.buildingRow.aspectRatio+=r,this.buildingRow.width+=r*this.settings.rowHeight,this.lastAnalyzedIndex=i,n/(this.buildingRow.aspectRatio+r)<this.settings.rowHeight&&(this.flushRow(!1,this.settings.maxRowsCount>0&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==s.data("jg.loaded"))return}this.buildingRow.entriesBuff.length>0&&this.flushRow(!0,this.settings.maxRowsCount>0&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},t.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},t.prototype.startImgAnalyzer=function(e){var t=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout((function(){t.analyzeImages(e)}),.001)},t.prototype.onImageEvent=function(t,i,s){if(i||s){var n=new Image,r=e(n);i&&r.one("load",(function(){r.off("load error"),i(n)})),s&&r.one("error",(function(){r.off("load error"),s(n)})),n.src=t}},t.prototype.init=function(){var t=!1,i=!1,s=this;e.each(this.entries,(function(n,r){var o=e(r),a=s.imgFromEntry(o);if(o.addClass("jg-entry"),!0!==o.data("jg.loaded")&&"skipped"!==o.data("jg.loaded"))if(null!==s.settings.rel&&o.attr("rel",s.settings.rel),null!==s.settings.target&&o.attr("target",s.settings.target),null!==a){var l=s.extractImgSrcFromImage(a);if(!1===s.settings.waitThumbnailsLoad||!l){var c=parseFloat(a.attr("width")),d=parseFloat(a.attr("height"));if("svg"===a.prop("tagName")&&(c=parseFloat(a[0].getBBox().width),d=parseFloat(a[0].getBBox().height)),!isNaN(c)&&!isNaN(d))return o.data("jg.width",c),o.data("jg.height",d),o.data("jg.loaded","skipped"),i=!0,s.startImgAnalyzer(!1),!0}o.data("jg.loaded",!1),t=!0,s.isSpinnerActive()||s.startLoadingSpinnerAnimation(),s.onImageEvent(l,(function(e){o.data("jg.width",e.width),o.data("jg.height",e.height),o.data("jg.loaded",!0),s.startImgAnalyzer(!1)}),(function(){o.data("jg.loaded","error"),s.startImgAnalyzer(!1)}))}else o.data("jg.loaded",!0),o.data("jg.width",o.width()|parseFloat(o.css("width"))|1),o.data("jg.height",o.height()|parseFloat(o.css("height"))|1)})),t||i||this.startImgAnalyzer(!1),this.checkWidth()},t.prototype.checkOrConvertNumber=function(t,i){if("string"===e.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==e.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},t.prototype.checkSizeRangesSuffixes=function(){if("object"!==e.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var i in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&t.push(i);for(var s={0:""},n=0;n<t.length;n++)if("string"===e.type(t[n]))try{s[parseInt(t[n].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[n]]}catch(e){throw"sizeRangeSuffixes keys must contains correct numbers ("+e+")"}else s[t[n]]=this.settings.sizeRangeSuffixes[t[n]];this.settings.sizeRangeSuffixes=s},t.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===e.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==e.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},t.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||this.settings.justifyThreshold>1)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==e.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==e.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||this.settings.captionSettings.visibleOpacity>1)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||this.settings.captionSettings.nonVisibleOpacity>1)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==e.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==e.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!e.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!e.isFunction(this.settings.filter)&&"string"!==e.type(this.settings.filter))throw"filter must be false, a string or a filter function"},t.prototype.retrieveSuffixRanges=function(){var e=[];for(var t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&e.push(parseInt(t,10));return e.sort((function(e,t){return e>t?1:e<t?-1:0})),e},t.prototype.updateSettings=function(t){this.settings=e.extend({},this.settings,t),this.checkSettings(),this.border=this.settings.border>=0?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},t.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(e){this.$gallery.trigger(e)}},e.fn.justifiedGallery=function(i){return this.each((function(s,n){var r=e(n);r.addClass("justified-gallery");var o=r.data("jg.controller");if(void 0===o){if(null!=i&&"object"!==e.type(i)){if("destroy"===i)return;throw"The argument must be an object"}o=new t(r,e.extend({},t.prototype.defaults,i)),r.data("jg.controller",o)}else if("norewind"===i);else{if("destroy"===i)return void o.destroy();o.updateSettings(i),o.rewind()}o.updateEntries("norewind"===i)&&o.init()}))}}));
  146. /*!
  147. Google Map Style
  148. !*/
  149. const Retro=[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],Standard=[],Silver=[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],Dark=[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"},{visibility:"off"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],Night=[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],Aubergine=[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]
  150. /*!
  151. Crafto - Parallax
  152. Created by ThemeZaa
  153. !*/;!function(e){var t=e(window),i=t.height();t.resize((function(){i=t.height()})),e.fn.parallax=function(s,n,r){var o,a=e(this);function l(){var r=t.scrollTop();a.each((function(){var t=e(this),l=t.offset().top;l+o(t)<r||l>r+i||(e(window).width()>1050?a.css("backgroundPosition",s+" "+(l-r)*n+"px"):a.css("backgroundPosition",""))}))}a.each((function(e){a.offset().top})),(arguments.length<1||null===s)&&(s="50%"),(arguments.length<2||null===n)&&(n=.5),(arguments.length<3||null===r)&&(r=!0),(arguments.length<4||null===pos)&&(pos=0),o=r?function(e){return e.outerHeight(!0)}:function(e){return e.height()},t.bind("scroll",l).resize(l),l()},e.fn.parallaxImg=function(s,n){var r,o=e(this);function a(){var n=t.scrollTop();o.each((function(){var t=e(this),a=t.offset().top;a+r(t)<n||a>n+i||(e(window).width()>1050?o.css("bottom",s/10*-(a-n)+"px"):o.css("bottom",""))}))}(arguments.length<1||null===s)&&(s=1),(arguments.length<2||null===n)&&(n=!0),r=n?function(e){return e.outerHeight(!0)}:function(e){return e.height()},t.bind("scroll",a).resize(a),a()}}(jQuery),function(e){var t=e(window),i=t.height();t.resize((function(){i=t.height()})),e.fn.parallaxLiquidImg=function(s,n,r,o,a){var l,c=e(this),d=n?1:0,u=(n=n||1.2,r=r||.001,0),h="";const{animate:p}=anime;function f(){var a=t.scrollTop();c.each((function(){var t=e(this),f=t.offset().top,m=f+t.outerHeight();h=a>u?"forward":"reverse",u=a,f<e(window).height()+a&&m>a&&("forward"==h?n+=r:n-=r),o?t.attr("data-parallax-scale")?f+l(t)<a||f>a+i||(e(window).width()>1050?p(c[0],{translateY:s/6*(f-a)+"px",scale:d?n:1}):c.css("transform","translateY(0px)")):f+l(t)<a||f>a+i||(e(window).width()>1050?p(c[0],{translateY:s/20*-(f-a)+"px",scale:d?n:1}):c.css("transform","translateY(0px)")):t.attr("data-parallax-scale")?f+l(t)<a||f>a+i||(e(window).width()>1050?p(c[0],{translateY:s/6*-(f-a)+"px",scale:d?n:1}):c.css("transform","translateY(0px)")):f+l(t)<a||f>a+i||(e(window).width()>1050?p(c[0],{translateY:s/20*(f-a)+"px",scale:d?n:1}):c.css("transform","translateY(0px)"))}))}(arguments.length<1||null===s)&&(s=1),(arguments.length<2||null===a)&&(a=!0),l=a?function(e){return e.outerHeight(!0)}:function(e){return e.height()},t.bind("scroll",f).resize(f),f()}}(jQuery);
  154. /*!
  155. Particles
  156. Version: 2.0.0
  157. Plugin URL: https://vincentgarreau.com/particles.js/
  158. License: Copyright Vincent Garreau - vincentgarreau.com | Licensed under MIT
  159. !*/
  160. var pJS=function(e,t){var i=document.querySelector("#"+e+" > .particles-js-canvas-el");this.pJS={canvas:{el:i,w:i.offsetWidth,h:i.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var s=this.pJS;t&&Object.deepExtend(s,t),s.tmp.obj={size_value:s.particles.size.value,size_anim_speed:s.particles.size.anim.speed,move_speed:s.particles.move.speed,line_linked_distance:s.particles.line_linked.distance,line_linked_width:s.particles.line_linked.width,mode_grab_distance:s.interactivity.modes.grab.distance,mode_bubble_distance:s.interactivity.modes.bubble.distance,mode_bubble_size:s.interactivity.modes.bubble.size,mode_repulse_distance:s.interactivity.modes.repulse.distance},s.fn.retinaInit=function(){s.retina_detect&&window.devicePixelRatio>1?(s.canvas.pxratio=window.devicePixelRatio,s.tmp.retina=!0):(s.canvas.pxratio=1,s.tmp.retina=!1),s.canvas.w=s.canvas.el.offsetWidth*s.canvas.pxratio,s.canvas.h=s.canvas.el.offsetHeight*s.canvas.pxratio,s.particles.size.value=s.tmp.obj.size_value*s.canvas.pxratio,s.particles.size.anim.speed=s.tmp.obj.size_anim_speed*s.canvas.pxratio,s.particles.move.speed=s.tmp.obj.move_speed*s.canvas.pxratio,s.particles.line_linked.distance=s.tmp.obj.line_linked_distance*s.canvas.pxratio,s.interactivity.modes.grab.distance=s.tmp.obj.mode_grab_distance*s.canvas.pxratio,s.interactivity.modes.bubble.distance=s.tmp.obj.mode_bubble_distance*s.canvas.pxratio,s.particles.line_linked.width=s.tmp.obj.line_linked_width*s.canvas.pxratio,s.interactivity.modes.bubble.size=s.tmp.obj.mode_bubble_size*s.canvas.pxratio,s.interactivity.modes.repulse.distance=s.tmp.obj.mode_repulse_distance*s.canvas.pxratio},s.fn.canvasInit=function(){s.canvas.ctx=s.canvas.el.getContext("2d")},s.fn.canvasSize=function(){s.canvas.el.width=s.canvas.w,s.canvas.el.height=s.canvas.h,s&&s.interactivity.events.resize&&window.addEventListener("resize",(function(){s.canvas.w=s.canvas.el.offsetWidth,s.canvas.h=s.canvas.el.offsetHeight,s.tmp.retina&&(s.canvas.w*=s.canvas.pxratio,s.canvas.h*=s.canvas.pxratio),s.canvas.el.width=s.canvas.w,s.canvas.el.height=s.canvas.h,s.particles.move.enable||(s.fn.particlesEmpty(),s.fn.particlesCreate(),s.fn.particlesDraw(),s.fn.vendors.densityAutoParticles()),s.fn.vendors.densityAutoParticles()}))},s.fn.canvasPaint=function(){s.canvas.ctx.fillRect(0,0,s.canvas.w,s.canvas.h)},s.fn.canvasClear=function(){s.canvas.ctx.clearRect(0,0,s.canvas.w,s.canvas.h)},s.fn.particle=function(e,t,i){if(this.radius=(s.particles.size.random?Math.random():1)*s.particles.size.value,s.particles.size.anim.enable&&(this.size_status=!1,this.vs=s.particles.size.anim.speed/100,s.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=i?i.x:Math.random()*s.canvas.w,this.y=i?i.y:Math.random()*s.canvas.h,this.x>s.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>s.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),s.particles.move.bounce&&s.fn.vendors.checkOverlap(this,i),this.color={},"object"==typeof e.value)if(e.value instanceof Array){var n=e.value[Math.floor(Math.random()*s.particles.color.value.length)];this.color.rgb=hexToRgb(n)}else null!=e.value.r&&null!=e.value.g&&null!=e.value.b&&(this.color.rgb={r:e.value.r,g:e.value.g,b:e.value.b}),null!=e.value.h&&null!=e.value.s&&null!=e.value.l&&(this.color.hsl={h:e.value.h,s:e.value.s,l:e.value.l});else"random"==e.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:"string"==typeof e.value&&(this.color=e,this.color.rgb=hexToRgb(this.color.value));this.opacity=(s.particles.opacity.random?Math.random():1)*s.particles.opacity.value,s.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=s.particles.opacity.anim.speed/100,s.particles.opacity.anim.sync||(this.vo=this.vo*Math.random()));var r={};switch(s.particles.move.direction){case"top":r={x:0,y:-1};break;case"top-right":r={x:.5,y:-.5};break;case"right":r={x:1,y:-0};break;case"bottom-right":r={x:.5,y:.5};break;case"bottom":r={x:0,y:1};break;case"bottom-left":r={x:-.5,y:1};break;case"left":r={x:-1,y:0};break;case"top-left":r={x:-.5,y:-.5};break;default:r={x:0,y:0}}s.particles.move.straight?(this.vx=r.x,this.vy=r.y,s.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=r.x+Math.random()-.5,this.vy=r.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var o=s.particles.shape.type;if("object"==typeof o){if(o instanceof Array){var a=o[Math.floor(Math.random()*o.length)];this.shape=a}}else this.shape=o;if("image"==this.shape){var l=s.particles.shape;this.img={src:l.image.src,ratio:l.image.width/l.image.height},this.img.ratio||(this.img.ratio=1),"svg"==s.tmp.img_type&&null!=s.tmp.source_svg&&(s.fn.vendors.createSvgImg(this),s.tmp.pushing&&(this.img.loaded=!1))}},s.fn.particle.prototype.draw=function(){var e=this;if(null!=e.radius_bubble)var t=e.radius_bubble;else t=e.radius;if(null!=e.opacity_bubble)var i=e.opacity_bubble;else i=e.opacity;if(e.color.rgb)var n="rgba("+e.color.rgb.r+","+e.color.rgb.g+","+e.color.rgb.b+","+i+")";else n="hsla("+e.color.hsl.h+","+e.color.hsl.s+"%,"+e.color.hsl.l+"%,"+i+")";switch(s.canvas.ctx.fillStyle=n,s.canvas.ctx.beginPath(),e.shape){case"circle":s.canvas.ctx.arc(e.x,e.y,t,0,2*Math.PI,!1);break;case"edge":s.canvas.ctx.rect(e.x-t,e.y-t,2*t,2*t);break;case"triangle":s.fn.vendors.drawShape(s.canvas.ctx,e.x-t,e.y+t/1.66,2*t,3,2);break;case"polygon":s.fn.vendors.drawShape(s.canvas.ctx,e.x-t/(s.particles.shape.polygon.nb_sides/3.5),e.y-t/.76,2.66*t/(s.particles.shape.polygon.nb_sides/3),s.particles.shape.polygon.nb_sides,1);break;case"star":s.fn.vendors.drawShape(s.canvas.ctx,e.x-2*t/(s.particles.shape.polygon.nb_sides/4),e.y-t/1.52,2*t*2.66/(s.particles.shape.polygon.nb_sides/3),s.particles.shape.polygon.nb_sides,2);break;case"image":if("svg"==s.tmp.img_type)var r=e.img.obj;else r=s.tmp.img_obj;r&&s.canvas.ctx.drawImage(r,e.x-t,e.y-t,2*t,2*t/e.img.ratio)}s.canvas.ctx.closePath(),s.particles.shape.stroke.width>0&&(s.canvas.ctx.strokeStyle=s.particles.shape.stroke.color,s.canvas.ctx.lineWidth=s.particles.shape.stroke.width,s.canvas.ctx.stroke()),s.canvas.ctx.fill()},s.fn.particlesCreate=function(){for(var e=0;e<s.particles.number.value;e++)s.particles.array.push(new s.fn.particle(s.particles.color,s.particles.opacity.value))},s.fn.particlesUpdate=function(){for(var e=0;e<s.particles.array.length;e++){var t=s.particles.array[e];if(s.particles.move.enable){var i=s.particles.move.speed/2;t.x+=t.vx*i,t.y+=t.vy*i}if(s.particles.opacity.anim.enable&&(1==t.opacity_status?(t.opacity>=s.particles.opacity.value&&(t.opacity_status=!1),t.opacity+=t.vo):(t.opacity<=s.particles.opacity.anim.opacity_min&&(t.opacity_status=!0),t.opacity-=t.vo),t.opacity<0&&(t.opacity=0)),s.particles.size.anim.enable&&(1==t.size_status?(t.radius>=s.particles.size.value&&(t.size_status=!1),t.radius+=t.vs):(t.radius<=s.particles.size.anim.size_min&&(t.size_status=!0),t.radius-=t.vs),t.radius<0&&(t.radius=0)),"bounce"==s.particles.move.out_mode)var n={x_left:t.radius,x_right:s.canvas.w,y_top:t.radius,y_bottom:s.canvas.h};else n={x_left:-t.radius,x_right:s.canvas.w+t.radius,y_top:-t.radius,y_bottom:s.canvas.h+t.radius};if(t.x-t.radius>s.canvas.w?(t.x=n.x_left,t.y=Math.random()*s.canvas.h):t.x+t.radius<0&&(t.x=n.x_right,t.y=Math.random()*s.canvas.h),t.y-t.radius>s.canvas.h?(t.y=n.y_top,t.x=Math.random()*s.canvas.w):t.y+t.radius<0&&(t.y=n.y_bottom,t.x=Math.random()*s.canvas.w),"bounce"===s.particles.move.out_mode)(t.x+t.radius>s.canvas.w||t.x-t.radius<0)&&(t.vx=-t.vx),(t.y+t.radius>s.canvas.h||t.y-t.radius<0)&&(t.vy=-t.vy);if(isInArray("grab",s.interactivity.events.onhover.mode)&&s.fn.modes.grabParticle(t),(isInArray("bubble",s.interactivity.events.onhover.mode)||isInArray("bubble",s.interactivity.events.onclick.mode))&&s.fn.modes.bubbleParticle(t),(isInArray("repulse",s.interactivity.events.onhover.mode)||isInArray("repulse",s.interactivity.events.onclick.mode))&&s.fn.modes.repulseParticle(t),s.particles.line_linked.enable||s.particles.move.attract.enable)for(var r=e+1;r<s.particles.array.length;r++){var o=s.particles.array[r];s.particles.line_linked.enable&&s.fn.interact.linkParticles(t,o),s.particles.move.attract.enable&&s.fn.interact.attractParticles(t,o),s.particles.move.bounce&&s.fn.interact.bounceParticles(t,o)}}},s.fn.particlesDraw=function(){s.canvas.ctx.clearRect(0,0,s.canvas.w,s.canvas.h),s.fn.particlesUpdate();for(var e=0;e<s.particles.array.length;e++){s.particles.array[e].draw()}},s.fn.particlesEmpty=function(){s.particles.array=[]},s.fn.particlesRefresh=function(){cancelRequestAnimFrame(s.fn.checkAnimFrame),cancelRequestAnimFrame(s.fn.drawAnimFrame),s.tmp.source_svg=void 0,s.tmp.img_obj=void 0,s.tmp.count_svg=0,s.fn.particlesEmpty(),s.fn.canvasClear(),s.fn.vendors.start()},s.fn.interact.linkParticles=function(e,t){var i=e.x-t.x,n=e.y-t.y,r=Math.sqrt(i*i+n*n);if(r<=s.particles.line_linked.distance){var o=s.particles.line_linked.opacity-r/(1/s.particles.line_linked.opacity)/s.particles.line_linked.distance;if(o>0){var a=s.particles.line_linked.color_rgb_line;s.canvas.ctx.strokeStyle="rgba("+a.r+","+a.g+","+a.b+","+o+")",s.canvas.ctx.lineWidth=s.particles.line_linked.width,s.canvas.ctx.beginPath(),s.canvas.ctx.moveTo(e.x,e.y),s.canvas.ctx.lineTo(t.x,t.y),s.canvas.ctx.stroke(),s.canvas.ctx.closePath()}}},s.fn.interact.attractParticles=function(e,t){var i=e.x-t.x,n=e.y-t.y;if(Math.sqrt(i*i+n*n)<=s.particles.line_linked.distance){var r=i/(1e3*s.particles.move.attract.rotateX),o=n/(1e3*s.particles.move.attract.rotateY);e.vx-=r,e.vy-=o,t.vx+=r,t.vy+=o}},s.fn.interact.bounceParticles=function(e,t){var i=e.x-t.x,s=e.y-t.y;Math.sqrt(i*i+s*s)<=e.radius+t.radius&&(e.vx=-e.vx,e.vy=-e.vy,t.vx=-t.vx,t.vy=-t.vy)},s.fn.modes.pushParticles=function(e,t){s.tmp.pushing=!0;for(var i=0;i<e;i++)s.particles.array.push(new s.fn.particle(s.particles.color,s.particles.opacity.value,{x:t?t.pos_x:Math.random()*s.canvas.w,y:t?t.pos_y:Math.random()*s.canvas.h})),i==e-1&&(s.particles.move.enable||s.fn.particlesDraw(),s.tmp.pushing=!1)},s.fn.modes.removeParticles=function(e){s.particles.array.splice(0,e),s.particles.move.enable||s.fn.particlesDraw()},s.fn.modes.bubbleParticle=function(e){if(s.interactivity.events.onhover.enable&&isInArray("bubble",s.interactivity.events.onhover.mode)){var t=e.x-s.interactivity.mouse.pos_x,i=e.y-s.interactivity.mouse.pos_y,n=1-(c=Math.sqrt(t*t+i*i))/s.interactivity.modes.bubble.distance;function r(){e.opacity_bubble=e.opacity,e.radius_bubble=e.radius}if(c<=s.interactivity.modes.bubble.distance){if(n>=0&&"mousemove"==s.interactivity.status){if(s.interactivity.modes.bubble.size!=s.particles.size.value)if(s.interactivity.modes.bubble.size>s.particles.size.value){(a=e.radius+s.interactivity.modes.bubble.size*n)>=0&&(e.radius_bubble=a)}else{var o=e.radius-s.interactivity.modes.bubble.size,a=e.radius-o*n;e.radius_bubble=a>0?a:0}var l;if(s.interactivity.modes.bubble.opacity!=s.particles.opacity.value)if(s.interactivity.modes.bubble.opacity>s.particles.opacity.value)(l=s.interactivity.modes.bubble.opacity*n)>e.opacity&&l<=s.interactivity.modes.bubble.opacity&&(e.opacity_bubble=l);else(l=e.opacity-(s.particles.opacity.value-s.interactivity.modes.bubble.opacity)*n)<e.opacity&&l>=s.interactivity.modes.bubble.opacity&&(e.opacity_bubble=l)}}else r();"mouseleave"==s.interactivity.status&&r()}else if(s.interactivity.events.onclick.enable&&isInArray("bubble",s.interactivity.events.onclick.mode)){if(s.tmp.bubble_clicking){t=e.x-s.interactivity.mouse.click_pos_x,i=e.y-s.interactivity.mouse.click_pos_y;var c=Math.sqrt(t*t+i*i),d=((new Date).getTime()-s.interactivity.mouse.click_time)/1e3;d>s.interactivity.modes.bubble.duration&&(s.tmp.bubble_duration_end=!0),d>2*s.interactivity.modes.bubble.duration&&(s.tmp.bubble_clicking=!1,s.tmp.bubble_duration_end=!1)}function u(t,i,n,r,o){if(t!=i)if(s.tmp.bubble_duration_end)null!=n&&(l=t+(t-(r-d*(r-t)/s.interactivity.modes.bubble.duration)),"size"==o&&(e.radius_bubble=l),"opacity"==o&&(e.opacity_bubble=l));else if(c<=s.interactivity.modes.bubble.distance){if(null!=n)var a=n;else a=r;if(a!=t){var l=r-d*(r-t)/s.interactivity.modes.bubble.duration;"size"==o&&(e.radius_bubble=l),"opacity"==o&&(e.opacity_bubble=l)}}else"size"==o&&(e.radius_bubble=void 0),"opacity"==o&&(e.opacity_bubble=void 0)}s.tmp.bubble_clicking&&(u(s.interactivity.modes.bubble.size,s.particles.size.value,e.radius_bubble,e.radius,"size"),u(s.interactivity.modes.bubble.opacity,s.particles.opacity.value,e.opacity_bubble,e.opacity,"opacity"))}},s.fn.modes.repulseParticle=function(e){if(s.interactivity.events.onhover.enable&&isInArray("repulse",s.interactivity.events.onhover.mode)&&"mousemove"==s.interactivity.status){var t=e.x-s.interactivity.mouse.pos_x,i=e.y-s.interactivity.mouse.pos_y,n=Math.sqrt(t*t+i*i),r={x:t/n,y:i/n},o=clamp(1/(l=s.interactivity.modes.repulse.distance)*(-1*Math.pow(n/l,2)+1)*l*100,0,50),a={x:e.x+r.x*o,y:e.y+r.y*o};"bounce"==s.particles.move.out_mode?(a.x-e.radius>0&&a.x+e.radius<s.canvas.w&&(e.x=a.x),a.y-e.radius>0&&a.y+e.radius<s.canvas.h&&(e.y=a.y)):(e.x=a.x,e.y=a.y)}else if(s.interactivity.events.onclick.enable&&isInArray("repulse",s.interactivity.events.onclick.mode))if(s.tmp.repulse_finish||(s.tmp.repulse_count++,s.tmp.repulse_count==s.particles.array.length&&(s.tmp.repulse_finish=!0)),s.tmp.repulse_clicking){var l=Math.pow(s.interactivity.modes.repulse.distance/6,3),c=s.interactivity.mouse.click_pos_x-e.x,d=s.interactivity.mouse.click_pos_y-e.y,u=c*c+d*d,h=-l/u*1;u<=l&&function(){var t=Math.atan2(d,c);if(e.vx=h*Math.cos(t),e.vy=h*Math.sin(t),"bounce"==s.particles.move.out_mode){var i={x:e.x+e.vx,y:e.y+e.vy};(i.x+e.radius>s.canvas.w||i.x-e.radius<0)&&(e.vx=-e.vx),(i.y+e.radius>s.canvas.h||i.y-e.radius<0)&&(e.vy=-e.vy)}}()}else 0==s.tmp.repulse_clicking&&(e.vx=e.vx_i,e.vy=e.vy_i)},s.fn.modes.grabParticle=function(e){if(s.interactivity.events.onhover.enable&&"mousemove"==s.interactivity.status){var t=e.x-s.interactivity.mouse.pos_x,i=e.y-s.interactivity.mouse.pos_y,n=Math.sqrt(t*t+i*i);if(n<=s.interactivity.modes.grab.distance){var r=s.interactivity.modes.grab.line_linked.opacity-n/(1/s.interactivity.modes.grab.line_linked.opacity)/s.interactivity.modes.grab.distance;if(r>0){var o=s.particles.line_linked.color_rgb_line;s.canvas.ctx.strokeStyle="rgba("+o.r+","+o.g+","+o.b+","+r+")",s.canvas.ctx.lineWidth=s.particles.line_linked.width,s.canvas.ctx.beginPath(),s.canvas.ctx.moveTo(e.x,e.y),s.canvas.ctx.lineTo(s.interactivity.mouse.pos_x,s.interactivity.mouse.pos_y),s.canvas.ctx.stroke(),s.canvas.ctx.closePath()}}}},s.fn.vendors.eventsListeners=function(){"window"==s.interactivity.detect_on?s.interactivity.el=window:s.interactivity.el=s.canvas.el,(s.interactivity.events.onhover.enable||s.interactivity.events.onclick.enable)&&(s.interactivity.el.addEventListener("mousemove",(function(e){if(s.interactivity.el==window)var t=e.clientX,i=e.clientY;else t=e.offsetX||e.clientX,i=e.offsetY||e.clientY;s.interactivity.mouse.pos_x=t,s.interactivity.mouse.pos_y=i,s.tmp.retina&&(s.interactivity.mouse.pos_x*=s.canvas.pxratio,s.interactivity.mouse.pos_y*=s.canvas.pxratio),s.interactivity.status="mousemove"})),s.interactivity.el.addEventListener("mouseleave",(function(e){s.interactivity.mouse.pos_x=null,s.interactivity.mouse.pos_y=null,s.interactivity.status="mouseleave"}))),s.interactivity.events.onclick.enable&&s.interactivity.el.addEventListener("click",(function(){if(s.interactivity.mouse.click_pos_x=s.interactivity.mouse.pos_x,s.interactivity.mouse.click_pos_y=s.interactivity.mouse.pos_y,s.interactivity.mouse.click_time=(new Date).getTime(),s.interactivity.events.onclick.enable)switch(s.interactivity.events.onclick.mode){case"push":s.particles.move.enable||1==s.interactivity.modes.push.particles_nb?s.fn.modes.pushParticles(s.interactivity.modes.push.particles_nb,s.interactivity.mouse):s.interactivity.modes.push.particles_nb>1&&s.fn.modes.pushParticles(s.interactivity.modes.push.particles_nb);break;case"remove":s.fn.modes.removeParticles(s.interactivity.modes.remove.particles_nb);break;case"bubble":s.tmp.bubble_clicking=!0;break;case"repulse":s.tmp.repulse_clicking=!0,s.tmp.repulse_count=0,s.tmp.repulse_finish=!1,setTimeout((function(){s.tmp.repulse_clicking=!1}),1e3*s.interactivity.modes.repulse.duration)}}))},s.fn.vendors.densityAutoParticles=function(){if(s.particles.number.density.enable){var e=s.canvas.el.width*s.canvas.el.height/1e3;s.tmp.retina&&(e/=2*s.canvas.pxratio);var t=e*s.particles.number.value/s.particles.number.density.value_area,i=s.particles.array.length-t;i<0?s.fn.modes.pushParticles(Math.abs(i)):s.fn.modes.removeParticles(i)}},s.fn.vendors.checkOverlap=function(e,t){for(var i=0;i<s.particles.array.length;i++){var n=s.particles.array[i],r=e.x-n.x,o=e.y-n.y;Math.sqrt(r*r+o*o)<=e.radius+n.radius&&(e.x=t?t.x:Math.random()*s.canvas.w,e.y=t?t.y:Math.random()*s.canvas.h,s.fn.vendors.checkOverlap(e))}},s.fn.vendors.createSvgImg=function(e){var t=s.tmp.source_svg.replace(/#([0-9A-F]{3,6})/gi,(function(t,i,s,n){if(e.color.rgb)var r="rgba("+e.color.rgb.r+","+e.color.rgb.g+","+e.color.rgb.b+","+e.opacity+")";else r="hsla("+e.color.hsl.h+","+e.color.hsl.s+"%,"+e.color.hsl.l+"%,"+e.opacity+")";return r})),i=new Blob([t],{type:"image/svg+xml;charset=utf-8"}),n=window.URL||window.webkitURL||window,r=n.createObjectURL(i),o=new Image;o.addEventListener("load",(function(){e.img.obj=o,e.img.loaded=!0,n.revokeObjectURL(r),s.tmp.count_svg++})),o.src=r},s.fn.vendors.destroypJS=function(){cancelAnimationFrame(s.fn.drawAnimFrame),i.remove(),pJSDom=null},s.fn.vendors.drawShape=function(e,t,i,s,n,r){var o=n*r,a=n/r,l=180*(a-2)/a,c=Math.PI-Math.PI*l/180;e.save(),e.beginPath(),e.translate(t,i),e.moveTo(0,0);for(var d=0;d<o;d++)e.lineTo(s,0),e.translate(s,0),e.rotate(c);e.fill(),e.restore()},s.fn.vendors.exportImg=function(){window.open(s.canvas.el.toDataURL("image/png"),"_blank")},s.fn.vendors.loadImg=function(e){if(s.tmp.img_error=void 0,""!=s.particles.shape.image.src)if("svg"==e){var t=new XMLHttpRequest;t.open("GET",s.particles.shape.image.src),t.onreadystatechange=function(e){4==t.readyState&&(200==t.status?(s.tmp.source_svg=e.currentTarget.response,s.fn.vendors.checkBeforeDraw()):(console.log("Error pJS - Image not found"),s.tmp.img_error=!0))},t.send()}else{var i=new Image;i.addEventListener("load",(function(){s.tmp.img_obj=i,s.fn.vendors.checkBeforeDraw()})),i.src=s.particles.shape.image.src}else console.log("Error pJS - No image.src"),s.tmp.img_error=!0},s.fn.vendors.draw=function(){"image"==s.particles.shape.type?"svg"==s.tmp.img_type?s.tmp.count_svg>=s.particles.number.value?(s.fn.particlesDraw(),s.particles.move.enable?s.fn.drawAnimFrame=requestAnimFrame(s.fn.vendors.draw):cancelRequestAnimFrame(s.fn.drawAnimFrame)):s.tmp.img_error||(s.fn.drawAnimFrame=requestAnimFrame(s.fn.vendors.draw)):null!=s.tmp.img_obj?(s.fn.particlesDraw(),s.particles.move.enable?s.fn.drawAnimFrame=requestAnimFrame(s.fn.vendors.draw):cancelRequestAnimFrame(s.fn.drawAnimFrame)):s.tmp.img_error||(s.fn.drawAnimFrame=requestAnimFrame(s.fn.vendors.draw)):(s.fn.particlesDraw(),s.particles.move.enable?s.fn.drawAnimFrame=requestAnimFrame(s.fn.vendors.draw):cancelRequestAnimFrame(s.fn.drawAnimFrame))},s.fn.vendors.checkBeforeDraw=function(){"image"==s.particles.shape.type?"svg"==s.tmp.img_type&&null==s.tmp.source_svg?s.tmp.checkAnimFrame=requestAnimFrame(check):(cancelRequestAnimFrame(s.tmp.checkAnimFrame),s.tmp.img_error||(s.fn.vendors.init(),s.fn.vendors.draw())):(s.fn.vendors.init(),s.fn.vendors.draw())},s.fn.vendors.init=function(){s.fn.retinaInit(),s.fn.canvasInit(),s.fn.canvasSize(),s.fn.canvasPaint(),s.fn.particlesCreate(),s.fn.vendors.densityAutoParticles(),s.particles.line_linked.color_rgb_line=hexToRgb(s.particles.line_linked.color)},s.fn.vendors.start=function(){isInArray("image",s.particles.shape.type)?(s.tmp.img_type=s.particles.shape.image.src.substr(s.particles.shape.image.src.length-3),s.fn.vendors.loadImg(s.tmp.img_type)):s.fn.vendors.checkBeforeDraw()},s.fn.vendors.eventsListeners(),s.fn.vendors.start()};function hexToRgb(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,i,s){return t+t+i+i+s+s}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function clamp(e,t,i){return Math.min(Math.max(e,t),i)}function isInArray(e,t){return t.indexOf(e)>-1}Object.deepExtend=function(e,t){for(var i in t)t[i]&&t[i].constructor&&t[i].constructor===Object?(e[i]=e[i]||{},arguments.callee(e[i],t[i])):e[i]=t[i];return e},window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},window.cancelRequestAnimFrame=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout,window.pJSDom=[],window.particlesJS=function(e,t){"string"!=typeof e&&(t=e,e="particles-js"),e||(e="particles-js");var i=document.getElementById(e),s="particles-js-canvas-el",n=i.getElementsByClassName(s);if(n.length)for(;n.length>0;)i.removeChild(n[0]);var r=document.createElement("canvas");r.className=s,r.style.width="100%",r.style.height="100%",null!=document.getElementById(e).appendChild(r)&&pJSDom.push(new pJS(e,t))},window.particlesJS.load=function(e,t,i){var s=new XMLHttpRequest;s.open("GET",t),s.onreadystatechange=function(t){if(4==s.readyState)if(200==s.status){var n=JSON.parse(t.currentTarget.response);window.particlesJS(e,n),i&&i()}else console.log("Error pJS - XMLHttpRequest status: "+s.status),console.log("Error pJS - File config not found")},s.send()},function(){function e(){}function t(e){return r.retinaImageSuffix+e}function i(e,i){if(this.path=e||"",null!=i)this.at_2x_path=i,this.perform_check=!1;else{if(void 0!==document.createElement){var s=document.createElement("a");s.href=this.path,s.pathname=s.pathname.replace(o,t),this.at_2x_path=s.href}else{var n=this.path.split("?");n[0]=n[0].replace(o,t),this.at_2x_path=n.join("?")}this.perform_check=!0}}function s(e){this.el=e,this.path=new i(this.el.getAttribute("src"),this.el.getAttribute("data-at2x"));var t=this;this.path.check_2x_variant((function(e){e&&t.swap()}))}var n="undefined"==typeof exports?window:exports,r={retinaImageSuffix:"@2x",check_mime_type:!0,force_original_dimensions:!0};n.Retina=e,e.configure=function(e){for(var t in null===e&&(e={}),e)e.hasOwnProperty(t)&&(r[t]=e[t])},e.init=function(e){null===e&&(e=n);var t=e.onload||function(){};e.onload=function(){var e,i,n=document.getElementsByTagName("img"),r=[];for(e=0;e<n.length;e+=1)(i=n[e]).getAttributeNode("data-no-retina")||r.push(new s(i));t()}},e.isRetina=function(){return n.devicePixelRatio>1||!(!n.matchMedia||!n.matchMedia("(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)").matches)};var o=/\.\w+$/;n.RetinaImagePath=i,i.confirmed_paths=[],i.prototype.is_external=function(){return!(!this.path.match(/^https?\:/i)||this.path.match("//"+document.domain))},i.prototype.check_2x_variant=function(e){var t,s=this;return this.is_external()?e(!1):this.perform_check||void 0===this.at_2x_path||null===this.at_2x_path?this.at_2x_path in i.confirmed_paths?e(!0):((t=new XMLHttpRequest).open("HEAD",this.at_2x_path),t.onreadystatechange=function(){if(4!==t.readyState)return e(!1);if(t.status>=200&&t.status<=399){if(r.check_mime_type){var n=t.getResponseHeader("Content-Type");if(null===n||!n.match(/^image/i))return e(!1)}return i.confirmed_paths.push(s.at_2x_path),e(!0)}return e(!1)},void t.send()):e(!0)},n.RetinaImage=s,s.prototype.swap=function(e){void 0===e&&(e=this.path.at_2x_path);var t=this;!function i(){t.el.complete?(r.force_original_dimensions&&(t.el.setAttribute("width",t.el.offsetWidth),t.el.setAttribute("height",t.el.offsetHeight)),t.el.setAttribute("src",e)):setTimeout(i,5)}()},e.isRetina()&&e.init(n)}(),
  161. /*!
  162. Skrollr
  163. Plugin URL: https://github.com/Prinzhorn/skrollr
  164. License: Copyright Alexander Prinzhorn | Free to use under terms of MIT license
  165. !*/
  166. function(e,t,i){"use strict";var s,n,r={get:function(){return te},init:function(e){return te||new q(e)},VERSION:"0.6.30"},o=Object.prototype.hasOwnProperty,a=e.Math,l=e.getComputedStyle,c="touchstart",d="touchmove",u="touchcancel",h="touchend",p="skrollable",f=p+"-before",m=p+"-between",g=p+"-after",v="skrollr",y="no-"+v,b=v+"-desktop",_=v+"-mobile",w="linear",x=.004,T="skrollr-body",S=200,E="center",C="bottom",M="___skrollable_id",k=/^(?:input|textarea|button|select)$/i,A=/^\s+|\s+$/g,I=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,O=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,L=/^(@?[a-z\-]+)\[(\w+)\]$/,P=/-([a-z0-9_])/g,z=function(e,t){return t.toUpperCase()},D=/[\-+]?[\d]*\.?[\d]+/g,$=/\{\?\}/g,B=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,R=/[a-z\-]+-gradient/g,F="",j="",N=function(){var e=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(l){var t=l(n,null);for(var i in t)if(F=i.match(e)||+i==i&&t[i].match(e))break;F?"-"===(F=F[0]).slice(0,1)?(j=F,F={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[F]):j="-"+F.toLowerCase()+"-":F=j=""}},H=function(){var t=e.requestAnimationFrame||e[F.toLowerCase()+"RequestAnimationFrame"],i=Me();return!Re&&t||(t=function(t){var s=Me()-i,n=a.max(0,1e3/60-s);return e.setTimeout((function(){i=Me(),t()}),n)}),t},W={begin:function(){return 0},end:function(){return 1},linear:function(e){return e},quadratic:function(e){return e*e},cubic:function(e){return e*e*e},swing:function(e){return-a.cos(e*a.PI)/2+.5},sqrt:function(e){return a.sqrt(e)},outCubic:function(e){return a.pow(e-1,3)+1},bounce:function(e){var t;if(e<=.5083)t=3;else if(e<=.8489)t=9;else if(e<=.96208)t=27;else{if(!(e<=.99981))return 1;t=91}return 1-a.abs(3*a.cos(e*t*1.028)/t)}};function q(i){if(s=t.documentElement,n=t.body,N(),te=this,oe=(i=i||{}).constants||{},i.easing)for(var r in i.easing)W[r]=i.easing[r];pe=i.edgeStrategy||"set",ne={beforerender:i.beforerender,render:i.render,keyframe:i.keyframe},(re=!1!==i.forceHeight)&&(Ie=i.scale||1),ae=i.mobileDeceleration||x,ce=!1!==i.smoothScrolling,de=i.smoothScrollingDuration||S,ue={targetTop:te.getScrollTop()},(Re=(i.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||e.opera)})())?((se=t.getElementById(i.skrollrBody||T))&&ee(),Y(),Se(s,[v,_],[y])):Se(s,[v,b],[y]),te.refresh(),ge(e,"resize orientationchange",(function(){var e=s.clientWidth,t=s.clientHeight;t===De&&e===ze||(De=t,ze=e,$e=!0)}));var o=H();return function e(){X(),me=o(e)}(),te}q.prototype.refresh=function(e){var s,n,r=!1;for(e===i?(r=!0,ie=[],Be=0,e=t.getElementsByTagName("*")):e.length===i&&(e=[e]),s=0,n=e.length;s<n;s++){var o=e[s],a=o,l=[],c=ce,d=pe,u=!1;if(r&&M in o&&delete o[M],o.attributes){for(var h,f,m,g=0,v=o.attributes.length;g<v;g++){var y=o.attributes[g];if("data-anchor-target"!==y.name)if("data-smooth-scrolling"!==y.name)if("data-edge-strategy"!==y.name)if("data-emit-events"!==y.name){var b=y.name.match(I);if(null!==b){var _={props:y.value,element:o,eventType:y.name.replace(P,z)};l.push(_);var w=b[1];w&&(_.constant=w.substr(1));var x=b[2];/p$/.test(x)?(_.isPercentage=!0,_.offset=(0|x.slice(0,-1))/100):_.offset=0|x;var T=b[3],S=b[4]||T;T&&"start"!==T&&"end"!==T?(_.mode="relative",_.anchors=[T,S]):(_.mode="absolute","end"===T?_.isEnd=!0:_.isPercentage||(_.offset=_.offset*Ie))}}else u=!0;else d=y.value;else c="off"!==y.value;else if(null===(a=t.querySelector(y.value)))throw'Unable to find anchor target "'+y.value+'"'}if(l.length)!r&&M in o?(m=o[M],h=ie[m].styleAttr,f=ie[m].classAttr):(m=o[M]=Be++,h=o.style.cssText,f=Te(o)),ie[m]={element:o,styleAttr:h,classAttr:f,anchorTarget:a,keyFrames:l,smoothScrolling:c,edgeStrategy:d,emitEvents:u,lastFrameIndex:-1},Se(o,[p],[])}}for(_e(),s=0,n=e.length;s<n;s++){var E=ie[e[s][M]];E!==i&&(V(E),U(E))}return te},q.prototype.relativeToAbsolute=function(e,t,i){var n=s.clientHeight,r=e.getBoundingClientRect(),o=r.top,a=r.bottom-r.top;return t===C?o-=n:t===E&&(o-=n/2),i===C?o+=a:i===E&&(o+=a/2),(o+=te.getScrollTop())+.5|0},q.prototype.animateTo=function(e,t){t=t||{};var s=Me(),n=te.getScrollTop(),r=t.duration===i?1e3:t.duration;return(le={startTop:n,topDiff:e-n,targetTop:e,duration:r,startTime:s,endTime:s+r,easing:W[t.easing||w],done:t.done}).topDiff||(le.done&&le.done.call(te,!1),le=i),te},q.prototype.stopAnimateTo=function(){le&&le.done&&le.done.call(te,!0),le=i},q.prototype.isAnimatingTo=function(){return!!le},q.prototype.isMobile=function(){return Re},q.prototype.setScrollTop=function(t,i){return he=!0===i,Re?Fe=a.min(a.max(t,0),Ae):e.scrollTo(0,t),te},q.prototype.getScrollTop=function(){return Re?Fe:e.pageYOffset||s.scrollTop||n.scrollTop||0},q.prototype.getMaxScrollTop=function(){return Ae},q.prototype.on=function(e,t){return ne[e]=t,te},q.prototype.off=function(e){return delete ne[e],te},q.prototype.destroy=function(){(function(){var t=e.cancelAnimationFrame||e[F.toLowerCase()+"CancelAnimationFrame"];return!Re&&t||(t=function(t){return e.clearTimeout(t)}),t})()(me),ye(),Se(s,[y],[v,b,_]);for(var t=0,o=ie.length;t<o;t++)J(ie[t].element);s.style.overflow=n.style.overflow="",s.style.height=n.style.height="",se&&r.setStyle(se,"transform","none"),te=i,se=i,ne=i,re=i,Ae=0,Ie=1,oe=i,ae=i,Oe="down",Le=-1,ze=0,De=0,$e=!1,le=i,ce=i,de=i,ue=i,he=i,Be=0,pe=i,Re=!1,Fe=0,fe=i};var Y=function(){var r,o,l,p,f,m,g,v,y,b,_;ge(s,[c,d,u,h].join(" "),(function(e){var s=e.changedTouches[0];for(p=e.target;3===p.nodeType;)p=p.parentNode;switch(f=s.clientY,m=s.clientX,y=e.timeStamp,k.test(p.tagName)||e.preventDefault(),e.type){case c:r&&r.blur(),te.stopAnimateTo(),r=p,o=g=f,l=m,y;break;case d:k.test(p.tagName)&&t.activeElement!==p&&e.preventDefault(),v=f-g,_=y-b,te.setScrollTop(Fe-v,!0),g=f,b=y;break;default:var n=o-f,u=l-m;if(u*u+n*n<49){if(!k.test(r.tagName)){r.focus();var h=t.createEvent("MouseEvents");h.initMouseEvent("click",!0,!0,e.view,1,s.screenX,s.screenY,s.clientX,s.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null),r.dispatchEvent(h)}return}r=i;var w=v/_;w=a.max(a.min(w,3),-3);var x=a.abs(w/ae),T=w*x+.5*ae*x*x,S=te.getScrollTop()-T,E=0;S>Ae?(E=(Ae-S)/T,S=Ae):S<0&&(E=-S/T,S=0),x*=1-E,te.animateTo(S+.5|0,{easing:"outCubic",duration:x})}})),e.scrollTo(0,0),s.style.overflow=n.style.overflow="hidden"},X=function(){$e&&($e=!1,_e());var e,t,s=te.getScrollTop(),n=Me();if(le)n>=le.endTime?(s=le.targetTop,e=le.done,le=i):(t=le.easing((n-le.startTime)/le.duration),s=le.startTop+t*le.topDiff|0),te.setScrollTop(s,!0);else if(!he){ue.targetTop-s&&(ue={startTop:Le,topDiff:s-Le,targetTop:s,startTime:Pe,endTime:Pe+de}),n<=ue.endTime&&(t=W.sqrt((n-ue.startTime)/de),s=ue.startTop+t*ue.topDiff|0)}if(he||Le!==s){he=!1;var a={curTop:s,lastTop:Le,maxTop:Ae,direction:Oe=s>Le?"down":s<Le?"up":Oe};!1!==(ne.beforerender&&ne.beforerender.call(te,a))&&(!function(e,t){for(var i=0,s=ie.length;i<s;i++){var n,a,l=ie[i],c=l.element,d=l.smoothScrolling?e:t,u=l.keyFrames,h=u.length,v=u[0],y=u[u.length-1],b=d<v.frame,_=d>y.frame,w=b?v:y,x=l.emitEvents,T=l.lastFrameIndex;if(b||_){if(b&&-1===l.edge||_&&1===l.edge)continue;switch(b?(Se(c,[f],[g,m]),x&&T>-1&&(be(c,v.eventType,Oe),l.lastFrameIndex=-1)):(Se(c,[g],[f,m]),x&&T<h&&(be(c,y.eventType,Oe),l.lastFrameIndex=h)),l.edge=b?-1:1,l.edgeStrategy){case"reset":J(c);continue;case"ease":d=w.frame;break;default:var S=w.props;for(n in S)o.call(S,n)&&(a=K(S[n].value),0===n.indexOf("@")?c.setAttribute(n.substr(1),a):r.setStyle(c,n,a));continue}}else 0!==l.edge&&(Se(c,[p,m],[f,g]),l.edge=0);for(var E=0;E<h-1;E++)if(d>=u[E].frame&&d<=u[E+1].frame){var C=u[E],M=u[E+1];for(n in C.props)if(o.call(C.props,n)){var k=(d-C.frame)/(M.frame-C.frame);k=C.props[n].easing(k),a=Z(C.props[n].value,M.props[n].value,k),a=K(a),0===n.indexOf("@")?c.setAttribute(n.substr(1),a):r.setStyle(c,n,a)}x&&T!==E&&(be(c,"down"===Oe?C.eventType:M.eventType,Oe),l.lastFrameIndex=E);break}}}(s,te.getScrollTop()),Re&&se&&r.setStyle(se,"transform","translate(0, "+-Fe+"px) "+fe),Le=s,ne.render&&ne.render.call(te,a)),e&&e.call(te,!1)}Pe=n},V=function(e){for(var t=0,i=e.keyFrames.length;t<i;t++){for(var s,n,r,o,a=e.keyFrames[t],l={};null!==(o=O.exec(a.props));)r=o[1],n=o[2],null!==(s=r.match(L))?(r=s[1],s=s[2]):s=w,n=n.indexOf("!")?G(n):[n.slice(1)],l[r]={value:n,easing:W[s]};a.props=l}},G=function(e){var t=[];return B.lastIndex=0,e=e.replace(B,(function(e){return e.replace(D,(function(e){return e/255*100+"%"}))})),j&&(R.lastIndex=0,e=e.replace(R,(function(e){return j+e}))),e=e.replace(D,(function(e){return t.push(+e),"{?}"})),t.unshift(e),t},U=function(e){var t,i,s={};for(t=0,i=e.keyFrames.length;t<i;t++)Q(e.keyFrames[t],s);for(s={},t=e.keyFrames.length-1;t>=0;t--)Q(e.keyFrames[t],s)},Q=function(e,t){var i;for(i in t)o.call(e.props,i)||(e.props[i]=t[i]);for(i in e.props)t[i]=e.props[i]},Z=function(e,t,i){var s,n=e.length;if(n!==t.length)throw"Can't interpolate between \""+e[0]+'" and "'+t[0]+'"';var r=[e[0]];for(s=1;s<n;s++)r[s]=e[s]+(t[s]-e[s])*i;return r},K=function(e){var t=1;return $.lastIndex=0,e[0].replace($,(function(){return e[t++]}))},J=function(e,t){for(var i,s,n=0,r=(e=[].concat(e)).length;n<r;n++)s=e[n],(i=ie[s[M]])&&(t?(s.style.cssText=i.dirtyStyleAttr,Se(s,i.dirtyClassAttr)):(i.dirtyStyleAttr=s.style.cssText,i.dirtyClassAttr=Te(s),s.style.cssText=i.styleAttr,Se(s,i.classAttr)))},ee=function(){fe="translateZ(0)",r.setStyle(se,"transform",fe);var e=l(se),t=e.getPropertyValue("transform"),i=e.getPropertyValue(j+"transform");t&&"none"!==t||i&&"none"!==i||(fe="")};r.setStyle=function(e,t,i){var s=e.style;if("zIndex"===(t=t.replace(P,z).replace("-","")))isNaN(i)?s[t]=i:s[t]=""+(0|i);else if("float"===t)s.styleFloat=s.cssFloat=i;else try{F&&(s[F+t.slice(0,1).toUpperCase()+t.slice(1)]=i),s[t]=i}catch(e){}};var te,ie,se,ne,re,oe,ae,le,ce,de,ue,he,pe,fe,me,ge=r.addEvent=function(t,i,s){for(var n,r=function(t){return(t=t||e.event).target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1,t.defaultPrevented=!0}),s.call(this,t)},o=0,a=(i=i.split(" ")).length;o<a;o++)n=i[o],t.addEventListener?t.addEventListener(n,s,!1):t.attachEvent("on"+n,r),je.push({element:t,name:n,listener:s})},ve=r.removeEvent=function(e,t,i){for(var s=0,n=(t=t.split(" ")).length;s<n;s++)e.removeEventListener?e.removeEventListener(t[s],i,!1):e.detachEvent("on"+t[s],i)},ye=function(){for(var e,t=0,i=je.length;t<i;t++)e=je[t],ve(e.element,e.name,e.listener);je=[]},be=function(e,t,i){ne.keyframe&&ne.keyframe.call(te,e,t,i)},_e=function(){var e=te.getScrollTop();Ae=0,re&&!Re&&(n.style.height=""),function(){var e,t,i,n,r,o,l,c,d,u,h,p=s.clientHeight,f=we();for(c=0,d=ie.length;c<d;c++)for(t=(e=ie[c]).element,i=e.anchorTarget,r=0,o=(n=e.keyFrames).length;r<o;r++)u=(l=n[r]).offset,h=f[l.constant]||0,l.frame=u,l.isPercentage&&(u*=p,l.frame=u),"relative"===l.mode&&(J(t),l.frame=te.relativeToAbsolute(i,l.anchors[0],l.anchors[1])-u,J(t,!0)),l.frame+=h,re&&!l.isEnd&&l.frame>Ae&&(Ae=l.frame);for(Ae=a.max(Ae,xe()),c=0,d=ie.length;c<d;c++){for(r=0,o=(n=(e=ie[c]).keyFrames).length;r<o;r++)h=f[(l=n[r]).constant]||0,l.isEnd&&(l.frame=Ae-l.offset+h);e.keyFrames.sort(ke)}}(),re&&!Re&&(n.style.height=Ae+s.clientHeight+"px"),Re?te.setScrollTop(a.min(te.getScrollTop(),Ae)):te.setScrollTop(e,!0),he=!0},we=function(){var e,t,i=s.clientHeight,n={};for(e in oe)"function"==typeof(t=oe[e])?t=t.call(te):/p$/.test(t)&&(t=t.slice(0,-1)/100*i),n[e]=t;return n},xe=function(){var e=0;return se&&(e=a.max(se.offsetHeight,se.scrollHeight)),a.max(e,n.scrollHeight,n.offsetHeight,s.scrollHeight,s.offsetHeight,s.clientHeight)-s.clientHeight},Te=function(t){var i="className";return e.SVGElement&&t instanceof e.SVGElement&&(t=t[i],i="baseVal"),t[i]},Se=function(t,s,n){var r="className";if(e.SVGElement&&t instanceof e.SVGElement&&(t=t[r],r="baseVal"),n!==i){for(var o=t[r],a=0,l=n.length;a<l;a++)o=Ce(o).replace(Ce(n[a])," ");o=Ee(o);for(var c=0,d=s.length;c<d;c++)-1===Ce(o).indexOf(Ce(s[c]))&&(o+=" "+s[c]);t[r]=Ee(o)}else t[r]=s},Ee=function(e){return e.replace(A,"")},Ce=function(e){return" "+e+" "},Me=Date.now||function(){return+new Date},ke=function(e,t){return e.frame-t.frame},Ae=0,Ie=1,Oe="down",Le=-1,Pe=Me(),ze=0,De=0,$e=!1,Be=0,Re=!1,Fe=0,je=[];"function"==typeof define&&define.amd?define([],(function(){return r})):"undefined"!=typeof module&&module.exports?module.exports=r:e.skrollr=r}(window,document),
  167. /*!
  168. jQuery Smooth Scroll
  169. Version: 2.2.0
  170. Plugin URL: https://github.com/kswedberg/jquery-smooth-scroll
  171. License: Copyright (c) 2017 Karl Swedberg | Licensed under MIT
  172. !*/
  173. function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?e(require("jquery")):e(jQuery)}((function(e){var t={},i=function(t){var i=[],s=t.dir&&"left"===t.dir?"scrollLeft":"scrollTop";return this.each((function(){var t=e(this);if(this!==document&&this!==window)return!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(t[s]()>0?i.push(this):(t[s](1),t[s]()>0&&i.push(this),t[s](0))):(i.push(document.scrollingElement),!1)})),i.length||this.each((function(){this===document.documentElement&&"smooth"===e(this).css("scrollBehavior")&&(i=[this]),i.length||"BODY"!==this.nodeName||(i=[this])})),"first"===t.el&&i.length>1&&(i=[i[0]]),i},s=/^([\-\+]=)(\d+)/;e.fn.extend({scrollable:function(e){var t=i.call(this,{dir:e});return this.pushStack(t)},firstScrollable:function(e){var t=i.call(this,{el:"first",dir:e});return this.pushStack(t)},smoothScroll:function(t,i){if("options"===(t=t||{}))return i?this.each((function(){var t=e(this),s=e.extend(t.data("ssOpts")||{},i);e(this).data("ssOpts",s)})):this.first().data("ssOpts");var s=e.extend({},e.fn.smoothScroll.defaults,t),n=function(t){var i=function(e){return e.replace(/(:|\.|\/)/g,"\\$1")},n=this,r=e(this),o=e.extend({},s,r.data("ssOpts")||{}),a=s.exclude,l=o.excludeWithin,c=0,d=0,u=!0,h={},p=e.smoothScroll.filterPath(location.pathname),f=e.smoothScroll.filterPath(n.pathname),m=location.hostname===n.hostname||!n.hostname,g=o.scrollTarget||f===p,v=i(n.hash);if(v&&!e(v).length&&(u=!1),o.scrollTarget||m&&g&&v){for(;u&&c<a.length;)r.is(i(a[c++]))&&(u=!1);for(;u&&d<l.length;)r.closest(l[d++]).length&&(u=!1)}else u=!1;u&&(o.preventDefault&&t.preventDefault(),e.extend(h,o,{scrollTarget:o.scrollTarget||v,link:n}),e.smoothScroll(h))};return null!==t.delegateSelector?this.off("click.smoothscroll",t.delegateSelector).on("click.smoothscroll",t.delegateSelector,n):this.off("click.smoothscroll").on("click.smoothscroll",n),this}});var n=function(e){var t={relative:""},i="string"==typeof e&&s.exec(e);return"number"==typeof e?t.px=e:i&&(t.relative=i[1],t.px=parseFloat(i[2])||0),t},r=function(t){var i=e(t.scrollTarget);t.autoFocus&&i.length&&(i[0].focus(),i.is(document.activeElement)||(i.prop({tabIndex:-1}),i[0].focus())),t.afterScroll.call(t.link,t)};e.smoothScroll=function(i,s){if("options"===i&&"object"==typeof s)return e.extend(t,s);var o,a,l,c,d=n(i),u=0,h="offset",p="scrollTop",f={},m={};d.px?o=e.extend({link:null},e.fn.smoothScroll.defaults,t):((o=e.extend({link:null},e.fn.smoothScroll.defaults,i||{},t)).scrollElement&&(h="position","static"===o.scrollElement.css("position")&&o.scrollElement.css("position","relative")),s&&(d=n(s))),p="left"===o.direction?"scrollLeft":p,o.scrollElement?(a=o.scrollElement,d.px||/^(?:HTML|BODY)$/.test(a[0].nodeName)||(u=a[p]())):a=e("html, body").firstScrollable(o.direction),o.beforeScroll.call(a,o),c=d.px?d:{relative:"",px:e(o.scrollTarget)[h]()&&e(o.scrollTarget)[h]()[o.direction]||0},f[p]=c.relative+(c.px+u+o.offset),"auto"===(l=o.speed)&&(l=Math.abs(f[p]-a[p]())/o.autoCoefficient),m={duration:l,easing:o.easing,complete:function(){r(o)}},o.step&&(m.step=o.step),a.length?a.stop().animate(f,m):r(o)},e.smoothScroll.version="2.2.0",e.smoothScroll.filterPath=function(e){return(e=e||"").replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},e.fn.smoothScroll.defaults={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,autoFocus:!1,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0}})),
  174. /*!
  175. Splitting
  176. Version: 1.0.5
  177. Plugin URL: https://splitting.js.org/
  178. License: Copyright © 2018-present Stephen Shaw | Licensed under the MIT license
  179. !*/
  180. function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Splitting=t()}(this,(function(){"use strict";var e=document,t=e.createTextNode.bind(e);function i(e,t,i){e.style.setProperty(t,i)}function s(e,t){return e.appendChild(t)}function n(t,i,n,r){var o=e.createElement("span");return i&&(o.className=i),n&&(!r&&o.setAttribute("data-"+i,n),o.textContent=n),t&&s(t,o)||o}function r(e,t){return e.getAttribute("data-"+t)}function o(t,i){return t&&0!=t.length?t.nodeName?[t]:[].slice.call(t[0].nodeName?t:(i||e).querySelectorAll(t)):[]}function a(e){for(var t=[];e--;)t[e]=[];return t}function l(e,t){e&&e.some(t)}function c(e){return function(t){return e[t]}}var d={};function u(e,t,i){var s=i.indexOf(e);if(-1==s){i.unshift(e);var n=d[e];if(!n)throw new Error("plugin not loaded: "+e);l(n.depends,(function(t){u(t,e,i)}))}else{var r=i.indexOf(t);i.splice(s,1),i.splice(r,0,e)}return i}function h(e,t,i,s){return{by:e,depends:t,key:i,split:s}}function p(e){return u(e,0,[]).map(c(d))}function f(e){d[e.by]=e}function m(e,i,r,a,c){e.normalize();var d=[],u=document.createDocumentFragment();a&&d.push(e.previousSibling);var h=[];return o(e.childNodes).some((function(e){if(!e.tagName||e.hasChildNodes()){if(e.childNodes&&e.childNodes.length)return h.push(e),void d.push.apply(d,m(e,i,r,a,c));var s=e.wholeText||"",o=s.trim();o.length&&(" "===s[0]&&h.push(t(" ")),l(o.split(r),(function(e,t){t&&c&&h.push(n(u,"whitespace"," ",c));var s=n(u,i,e);d.push(s),h.push(s)}))," "===s[s.length-1]&&h.push(t(" ")))}else h.push(e)})),l(h,(function(e){s(u,e)})),e.innerHTML="",s(e,u),d}var g="words",v=h(g,0,"word",(function(e){return m(e,"word",/\s+/,0,1)})),y="chars",b=h(y,[g],"char",(function(e,t,i){var s=[];return l(i[g],(function(e,i){s.push.apply(s,m(e,"char","",t.whitespace&&i))})),s}));function _(e){var t=(e=e||{}).key;return o(e.target||"[data-splitting]").map((function(s){var n=s["🍌"];if(!e.force&&n)return n;n=s["🍌"]={el:s};var o=e.by||r(s,"splitting");o&&"true"!=o||(o=y);var a=p(o),c=function(e,t){for(var i in t)e[i]=t[i];return e}({},e);return l(a,(function(e){if(e.split){var r=e.by,o=(t?"-"+t:"")+e.key,a=e.split(s,c,n);o&&function(e,t,s){var n="--"+t,r=n+"-index";l(s,(function(e,t){Array.isArray(e)?l(e,(function(e){i(e,r,t)})):i(e,r,t)})),i(e,n+"-total",s.length)}(s,o,a),n[r]=a,s.classList.add(r)}})),s.classList.add("splitting"),n}))}function w(e,t,i){var s=o(t.matching||e.children,e),n={};return l(s,(function(e){var t=Math.round(e[i]);(n[t]||(n[t]=[])).push(e)})),Object.keys(n).map(Number).sort(x).map(c(n))}function x(e,t){return e-t}_.html=function(e){var t=(e=e||{}).target=n();return t.innerHTML=e.content,_(e),t.outerHTML},_.add=f;var T=h("lines",[g],"line",(function(e,t,i){return w(e,{matching:i[g]},"offsetTop")})),S=h("items",0,"item",(function(e,t){return o(t.matching||e.children,e)})),E=h("rows",0,"row",(function(e,t){return w(e,t,"offsetTop")})),C=h("cols",0,"col",(function(e,t){return w(e,t,"offsetLeft")})),M=h("grid",["rows","cols"]),k="layout",A=h(k,0,0,(function(e,t){var a=t.rows=+(t.rows||r(e,"rows")||1),l=t.columns=+(t.columns||r(e,"columns")||1);if(t.image=t.image||r(e,"image")||e.currentSrc||e.src,t.image){var c=o("img",e)[0];t.image=c&&(c.currentSrc||c.src)}t.image&&i(e,"background-image","url("+t.image+")");for(var d=a*l,u=[],h=n(0,"cell-grid");d--;){var p=n(h,"cell");n(p,"cell-inner"),u.push(p)}return s(e,h),u})),I=h("cellRows",[k],"row",(function(e,t,i){var s=t.rows,n=a(s);return l(i[k],(function(e,t,i){n[Math.floor(t/(i.length/s))].push(e)})),n})),O=h("cellColumns",[k],"col",(function(e,t,i){var s=t.columns,n=a(s);return l(i[k],(function(e,t){n[t%s].push(e)})),n})),L=h("cells",["cellRows","cellColumns"],"cell",(function(e,t,i){return i[k]}));return f(v),f(b),f(T),f(S),f(E),f(C),f(M),f(A),f(I),f(O),f(L),_})),
  181. /*!
  182. Sticky-kit
  183. Version: 1.1.3
  184. Plugin URL: https://github.com/leafo/sticky-kit
  185. License: Leaf Corcoran 2015 | Licensed under MIT
  186. !*/
  187. function(){var e,t;e=window.jQuery,t=e(window),e.fn.stick_in_parent=function(i){var s,n,r,o,a,l,c,d,u,h,p,f,m;for(null==i&&(i={}),m=i.sticky_class,l=i.inner_scrolling,f=i.recalc_every,p=i.parent,u=i.offset_top,d=i.spacer,r=i.bottoming,null==u&&(u=0),null==p&&(p=void 0),null==l&&(l=!0),null==m&&(m="is_stuck"),s=e(document),null==r&&(r=!0),h=function(e){var t,i;return window.getComputedStyle?(e[0],t=window.getComputedStyle(e[0]),i=parseFloat(t.getPropertyValue("width"))+parseFloat(t.getPropertyValue("margin-left"))+parseFloat(t.getPropertyValue("margin-right")),"border-box"!==t.getPropertyValue("box-sizing")&&(i+=parseFloat(t.getPropertyValue("border-left-width"))+parseFloat(t.getPropertyValue("border-right-width"))+parseFloat(t.getPropertyValue("padding-left"))+parseFloat(t.getPropertyValue("padding-right"))),i):e.outerWidth(!0)},o=function(i,n,o,a,c,g,v,y){var b,_,w,x,T,S,E,C,M,k,A,I;if(!i.data("sticky_kit")){if(i.data("sticky_kit",!0),T=s.height(),E=i.parent(),null!=p&&(E=E.closest(p)),!E.length)throw"failed to find stick parent";if(w=!1,b=!1,(A=null!=d?d&&i.closest(d):e("<div />"))&&A.css("position",i.css("position")),(C=function(){var e,t,r;if(!y)return T=s.height(),e=parseInt(E.css("border-top-width"),10),t=parseInt(E.css("padding-top"),10),n=parseInt(E.css("padding-bottom"),10),o=E.offset().top+e+t,a=E.height(),w&&(w=!1,b=!1,null==d&&(i.insertAfter(A),A.detach()),i.css({position:"",top:"",width:"",bottom:""}).removeClass(m),r=!0),c=i.offset().top-(parseInt(i.css("margin-top"),10)||0)-u,g=i.outerHeight(!0),v=i.css("float"),A&&A.css({width:h(i),height:g,display:i.css("display"),"vertical-align":i.css("vertical-align"),float:v}),r?I():void 0})(),g!==a)return x=void 0,S=u,k=f,I=function(){var e,h,p,_,M,I;if(!y)return p=!1,null!=k&&(k-=1)<=0&&(k=f,C(),p=!0),p||s.height()===T||(C(),p=!0),_=t.scrollTop(),null!=x&&(h=_-x),x=_,w?(r&&(M=_+g+S>a+o,b&&!M&&(b=!1,i.css({position:"fixed",bottom:"",top:S}).trigger("sticky_kit:unbottom"))),_<c&&(w=!1,S=u,null==d&&("left"!==v&&"right"!==v||i.insertAfter(A),A.detach()),e={position:"",width:"",top:""},i.css(e).removeClass(m).trigger("sticky_kit:unstick")),l&&(I=t.height(),g+u>I&&(b||(S-=h,S=Math.max(I-g,S),S=Math.min(u,S),w&&i.css({top:S+"px"}))))):_>c&&(w=!0,(e={position:"fixed",top:S}).width="border-box"===i.css("box-sizing")?i.outerWidth()+"px":i.width()+"px",i.css(e).addClass(m),null==d&&(i.after(A),"left"!==v&&"right"!==v||A.append(i)),i.trigger("sticky_kit:stick")),w&&r&&(null==M&&(M=_+g+S>a+o),!b&&M)?(b=!0,"static"===E.css("position")&&E.css({position:"relative"}),i.css({position:"absolute",bottom:n,top:"auto"}).trigger("sticky_kit:bottom")):void 0},M=function(){return C(),I()},_=function(){if(y=!0,t.off("touchmove",I),t.off("scroll",I),t.off("resize",M),e(document.body).off("sticky_kit:recalc",M),i.off("sticky_kit:detach",_),i.removeData("sticky_kit"),i.css({position:"",bottom:"",top:"",width:""}),E.position("position",""),w)return null==d&&("left"!==v&&"right"!==v||i.insertAfter(A),A.remove()),i.removeClass(m)},t.on("touchmove",I),t.on("scroll",I),t.on("resize",M),e(document.body).on("sticky_kit:recalc",M),i.on("sticky_kit:detach",_),setTimeout(I,0)}},a=0,c=this.length;a<c;a++)n=this[a],o(e(n));return this}}.call(this);
  188. /*!
  189. Swiper
  190. Version: 11.2.10
  191. Plugin URL: https://swiperjs.com
  192. License: Copyright 2014-2025 Vladimir Kharlampidi | Released under the MIT License
  193. !*/
  194. var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(i,s){void 0===i&&(i={}),void 0===s&&(s={});const n=["__proto__","constructor","prototype"];Object.keys(s).filter((e=>n.indexOf(e)<0)).forEach((n=>{void 0===i[n]?i[n]=s[n]:e(s[n])&&e(i[n])&&Object.keys(s[n]).length>0&&t(i[n],s[n])}))}const i={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function s(){const e="undefined"!=typeof document?document:{};return t(e,i),e}const n={document:i,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,n),e}function o(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function a(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function l(){return Date.now()}function c(e,t){void 0===t&&(t="x");const i=r();let s,n,o;const a=function(e){const t=r();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new i.WebKitCSSMatrix("none"===n?"":n)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=o.toString().split(",")),"x"===t&&(n=i.WebKitCSSMatrix?o.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(n=i.WebKitCSSMatrix?o.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}function d(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let s=1;s<arguments.length;s+=1){const n=s<0||arguments.length<=s?void 0:arguments[s];if(null!=n&&(i=n,!("undefined"!=typeof window&&void 0!==window.HTMLElement?i instanceof HTMLElement:i&&(1===i.nodeType||11===i.nodeType)))){const i=Object.keys(Object(n)).filter((e=>t.indexOf(e)<0));for(let t=0,s=i.length;t<s;t+=1){const s=i[t],r=Object.getOwnPropertyDescriptor(n,s);void 0!==r&&r.enumerable&&(d(e[s])&&d(n[s])?n[s].__swiper__?e[s]=n[s]:u(e[s],n[s]):!d(e[s])&&d(n[s])?(e[s]={},n[s].__swiper__?e[s]=n[s]:u(e[s],n[s])):e[s]=n[s])}}}var i;return e}function h(e,t,i){e.style.setProperty(t,i)}function p(e){let{swiper:t,targetPosition:i,side:s}=e;const n=r(),o=-t.translate;let a,l=null;const c=t.params.speed;t.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(t.cssModeFrameID);const d=i>o?"next":"prev",u=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,h=()=>{a=(new Date).getTime(),null===l&&(l=a);const e=Math.max(Math.min((a-l)/c,1),0),r=.5-Math.cos(e*Math.PI)/2;let d=o+r*(i-o);if(u(d,i)&&(d=i),t.wrapperEl.scrollTo({[s]:d}),u(d,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[s]:d})})),void n.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=n.requestAnimationFrame(h)};h()}function f(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function m(e,t){void 0===t&&(t="");const i=r(),s=[...e.children];return i.HTMLSlotElement&&e instanceof HTMLSlotElement&&s.push(...e.assignedElements()),t?s.filter((e=>e.matches(t))):s}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:o(t)),i}function y(e){const t=r(),i=s(),n=e.getBoundingClientRect(),o=i.body,a=e.clientTop||o.clientTop||0,l=e.clientLeft||o.clientLeft||0,c=e===t?t.scrollY:e.scrollTop,d=e===t?t.scrollX:e.scrollLeft;return{top:n.top+c-a,left:n.left+d-l}}function b(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function _(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function w(e,t){const i=[];let s=e.parentElement;for(;s;)t?s.matches(t)&&i.push(s):i.push(s),s=s.parentElement;return i}function x(e,t){t&&e.addEventListener("transitionend",(function i(s){s.target===e&&(t.call(e,s),e.removeEventListener("transitionend",i))}))}function T(e,t,i){const s=r();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function S(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}function E(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}function C(e,t){void 0===t&&(t=""),"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let M,k,A;function I(){return M||(M=function(){const e=r(),t=s();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),M}function O(e){return void 0===e&&(e={}),k||(k=function(e){let{userAgent:t}=void 0===e?{}:e;const i=I(),s=r(),n=s.navigator.platform,o=t||s.navigator.userAgent,a={ios:!1,android:!1},l=s.screen.width,c=s.screen.height,d=o.match(/(Android);?[\s\/]+([\d.]+)?/);let u=o.match(/(iPad).*OS\s([\d_]+)/);const h=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===n;let m="MacIntel"===n;return!u&&m&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${c}`)>=0&&(u=o.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),m=!1),d&&!f&&(a.os="android",a.android=!0),(u||p||h)&&(a.os="ios",a.ios=!0),a}(e)),k}function L(){return A||(A=function(){const e=r(),t=O();let i=!1;function s(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(s()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,s]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));i=e<16||16===e&&s<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=s();return{isSafari:i||o,needPerspectiveFix:i,need3dFix:o||n&&t.ios,isWebView:n}}()),A}var P={on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach((e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)})),s},once(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;function n(){s.off(e,n),n.__emitterProxy&&delete n.__emitterProxy;for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];t.apply(s,r)}return n.__emitterProxy=t,s.on(e,n,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const s=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[s](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((s,n)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(n,1)}))})),i):i},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,s;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],i=r.slice(1,r.length),s=e):(t=r[0].events,i=r[0].data,s=r[0].context||e),i.unshift(s);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(s,[t,...i])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(s,i)}))})),e}};const z=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};const D=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};const $=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},B=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},R=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const s="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=n,r=[i-t];return r.push(...Array.from({length:t}).map(((e,t)=>i+s+t))),void e.slides.forEach(((t,i)=>{r.includes(t.column)&&B(e,i)}))}const r=n+s-1;if(e.params.rewind||e.params.loop)for(let s=n-t;s<=r+t;s+=1){const t=(s%i+i)%i;(t<n||t>r)&&B(e,t)}else for(let s=Math.max(n-t,0);s<=Math.min(r+t,i-1);s+=1)s!==n&&(s>r||s<n)&&B(e,s)};var F={updateSize:function(){const e=this;let t,i;const s=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s.clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s.clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(b(s,"padding-left")||0,10)-parseInt(b(s,"padding-right")||0,10),i=i-parseInt(b(s,"padding-top")||0,10)-parseInt(b(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t,i){return parseFloat(t.getPropertyValue(e.getDirectionLabel(i))||0)}const i=e.params,{wrapperEl:s,slidesEl:n,size:r,rtlTranslate:o,wrongRTL:a}=e,l=e.virtual&&i.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=m(n,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let p=[];const f=[],g=[];let v=i.slidesOffsetBefore;"function"==typeof v&&(v=i.slidesOffsetBefore.call(e));let y=i.slidesOffsetAfter;"function"==typeof y&&(y=i.slidesOffsetAfter.call(e));const _=e.snapGrid.length,w=e.slidesGrid.length;let x=i.spaceBetween,S=-v,E=0,C=0;if(void 0===r)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*r:"string"==typeof x&&(x=parseFloat(x)),e.virtualSize=-x,d.forEach((e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),i.centeredSlides&&i.cssMode&&(h(s,"--swiper-centered-offset-before",""),h(s,"--swiper-centered-offset-after",""));const M=i.grid&&i.grid.rows>1&&e.grid;let k;M?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const A="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter((e=>void 0!==i.breakpoints[e].slidesPerView)).length>0;for(let s=0;s<u;s+=1){let n;if(k=0,d[s]&&(n=d[s]),M&&e.grid.updateSlide(s,n,d),!d[s]||"none"!==b(n,"display")){if("auto"===i.slidesPerView){A&&(d[s].style[e.getDirectionLabel("width")]="");const r=getComputedStyle(n),o=n.style.transform,a=n.style.webkitTransform;if(o&&(n.style.transform="none"),a&&(n.style.webkitTransform="none"),i.roundLengths)k=e.isHorizontal()?T(n,"width",!0):T(n,"height",!0);else{const e=t(r,"width"),i=t(r,"padding-left"),s=t(r,"padding-right"),o=t(r,"margin-left"),a=t(r,"margin-right"),l=r.getPropertyValue("box-sizing");if(l&&"border-box"===l)k=e+o+a;else{const{clientWidth:t,offsetWidth:r}=n;k=e+i+s+o+a+(r-t)}}o&&(n.style.transform=o),a&&(n.style.webkitTransform=a),i.roundLengths&&(k=Math.floor(k))}else k=(r-(i.slidesPerView-1)*x)/i.slidesPerView,i.roundLengths&&(k=Math.floor(k)),d[s]&&(d[s].style[e.getDirectionLabel("width")]=`${k}px`);d[s]&&(d[s].swiperSlideSize=k),g.push(k),i.centeredSlides?(S=S+k/2+E/2+x,0===E&&0!==s&&(S=S-r/2-x),0===s&&(S=S-r/2-x),Math.abs(S)<.001&&(S=0),i.roundLengths&&(S=Math.floor(S)),C%i.slidesPerGroup==0&&p.push(S),f.push(S)):(i.roundLengths&&(S=Math.floor(S)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup==0&&p.push(S),f.push(S),S=S+k+x),e.virtualSize+=k+x,E=k,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+y,o&&a&&("slide"===i.effect||"coverflow"===i.effect)&&(s.style.width=`${e.virtualSize+x}px`),i.setWrapperSize&&(s.style[e.getDirectionLabel("width")]=`${e.virtualSize+x}px`),M&&e.grid.updateWrapperSize(k,p),!i.centeredSlides){const t=[];for(let s=0;s<p.length;s+=1){let n=p[s];i.roundLengths&&(n=Math.floor(n)),p[s]<=e.virtualSize-r&&t.push(n)}p=t,Math.floor(e.virtualSize-r)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-r)}if(l&&i.loop){const t=g[0]+x;if(i.slidesPerGroup>1){const s=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),n=t*i.slidesPerGroup;for(let e=0;e<s;e+=1)p.push(p[p.length-1]+n)}for(let s=0;s<e.virtual.slidesBefore+e.virtual.slidesAfter;s+=1)1===i.slidesPerGroup&&p.push(p[p.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==x){const t=e.isHorizontal()&&o?"marginLeft":e.getDirectionLabel("marginRight");d.filter(((e,t)=>!(i.cssMode&&!i.loop)||t!==d.length-1)).forEach((e=>{e.style[t]=`${x}px`}))}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;g.forEach((t=>{e+=t+(x||0)})),e-=x;const t=e>r?e-r:0;p=p.map((e=>e<=0?-v:e>t?t+y:e))}if(i.centerInsufficientSlides){let e=0;g.forEach((t=>{e+=t+(x||0)})),e-=x;const t=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(e+t<r){const i=(r-e-t)/2;p.forEach(((e,t)=>{p[t]=e-i})),f.forEach(((e,t)=>{f[t]=e+i}))}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:f,slidesSizesGrid:g}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){h(s,"--swiper-centered-offset-before",-p[0]+"px"),h(s,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(u!==c&&e.emit("slidesLengthChange"),p.length!==_&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==w&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=`${i.containerModifierClass}backface-hidden`,s=e.el.classList.contains(t);u<=i.maxBackfaceHiddenSlides?s||e.el.classList.add(t):s&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>s?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{i.push(e)}));else for(n=0;n<Math.ceil(t.params.slidesPerView);n+=1){const e=t.activeIndex+n;if(e>t.slides.length&&!s)break;i.push(o(e))}else i.push(o(t.activeIndex));for(n=0;n<i.length;n+=1)if(void 0!==i[n]){const e=i[n].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=(e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop)-i-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,i=t.params,{slides:s,rtlTranslate:n,snapGrid:r}=t;if(0===s.length)return;void 0===s[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;n&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=i.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<s.length;e+=1){const l=s[e];let c=l.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=s[0].swiperSlideOffset);const d=(o+(i.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),u=(o-r[0]+(i.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),h=-(o-c),p=h+t.slidesSizesGrid[e],f=h>=0&&h<=t.size-t.slidesSizesGrid[e],m=h>=0&&h<t.size-1||p>1&&p<=t.size||h<=0&&p>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),z(l,m,i.slideVisibleClass),z(l,f,i.slideFullyVisibleClass),l.progress=n?-d:d,l.originalProgress=n?-u:u}},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:r,isEnd:o,progressLoop:a}=t;const l=r,c=o;if(0===s)n=0,r=!0,o=!0;else{n=(e-t.minTranslate())/s;const i=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;r=i||n<=0,o=a||n>=1,i&&(n=0),a&&(n=1)}if(i.loop){const i=t.getSlideIndexByData(0),s=t.getSlideIndexByData(t.slides.length-1),n=t.slidesGrid[i],r=t.slidesGrid[s],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=n?(l-n)/o:(l+o-r)/o,a>1&&(a-=1)}Object.assign(t,{progress:n,progressLoop:a,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,slidesEl:s,activeIndex:n}=e,r=e.virtual&&i.virtual.enabled,o=e.grid&&i.grid&&i.grid.rows>1,a=e=>m(s,`.${i.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(i.loop){let t=n-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${t}"]`)}else l=a(`[data-swiper-slide-index="${n}"]`);else o?(l=t.find((e=>e.column===n)),d=t.find((e=>e.column===n+1)),c=t.find((e=>e.column===n-1))):l=t[n];l&&(o||(d=function(e,t){const i=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=t[0]),c=function(e,t){const i=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!c&&(c=t[t.length-1]))),t.forEach((e=>{D(e,e===l,i.slideActiveClass),D(e,e===d,i.slideNextClass),D(e,e===c,i.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:o,snapIndex:a}=t;let l,c=e;const d=e=>{let i=e-t.virtual.slidesBefore;return i<0&&(i=t.virtual.slides.length+i),i>=t.virtual.slides.length&&(i-=t.virtual.slides.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:i}=e,s=e.rtlTranslate?e.translate:-e.translate;let n;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?s>=t[e]&&s<t[e+1]-(t[e+1]-t[e])/2?n=e:s>=t[e]&&s<t[e+1]&&(n=e+1):s>=t[e]&&(n=e);return i.normalizeSlideIndex&&(n<0||void 0===n)&&(n=0),n}(t)),s.indexOf(i)>=0)l=s.indexOf(i);else{const e=Math.min(n.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/n.slidesPerGroup)}if(l>=s.length&&(l=s.length-1),c===r&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=d(c));const u=t.grid&&n.grid&&n.grid.rows>1;let h;if(t.virtual&&n.virtual.enabled&&n.loop)h=d(c);else if(u){const e=t.slides.find((e=>e.column===c));let i=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(i)&&(i=Math.max(t.slides.indexOf(e),0)),h=Math.floor(i/n.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:o,realIndex:h,previousIndex:r,activeIndex:c}),t.initialized&&R(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const i=this,s=i.params;let n=e.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!n&&e.matches&&e.matches(`.${s.slideClass}, swiper-slide`)&&(n=e)}));let r,o=!1;if(n)for(let e=0;e<i.slides.length;e+=1)if(i.slides[e]===n){o=!0,r=e;break}if(!n||!o)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=n,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=r,s.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}};var j={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:i,translate:s,wrapperEl:n}=this;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let r=c(n,e);return r+=this.cssOverflowAdjustment(),i&&(r=-r),r||0},setTranslate:function(e,t){const i=this,{rtlTranslate:s,params:n,wrapperEl:r,progress:o}=i;let a,l=0,c=0;i.isHorizontal()?l=s?-e:e:c=e,n.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c,n.cssMode?r[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:n.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():c-=i.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=i.maxTranslate()-i.minTranslate();a=0===d?0:(e-i.minTranslate())/d,a!==o&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,s,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);const r=this,{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let d;if(d=s&&e>l?l:s&&e<c?c:e,r.updateProgress(d),o.cssMode){const e=r.isHorizontal();if(0===t)a[e?"scrollLeft":"scrollTop"]=-d;else{if(!r.support.smoothScroll)return p({swiper:r,targetPosition:-d,side:e?"left":"top"}),!0;a.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(d),i&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(d),i&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,i&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};function N(e){let{swiper:t,runCallbacks:i,direction:s,step:n}=e;const{activeIndex:r,previousIndex:o}=t;let a=s;a||(a=r>o?"next":r<o?"prev":"reset"),t.emit(`transition${n}`),i&&"reset"===a?t.emit(`slideResetTransition${n}`):i&&r!==o&&(t.emit(`slideChangeTransition${n}`),"next"===a?t.emit(`slideNextTransition${n}`):t.emit(`slidePrevTransition${n}`))}var H={slideTo:function(e,t,i,s,n){void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;let o=e;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:f,enabled:m}=r;if(!m&&!s&&!n||r.destroyed||r.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const g=Math.min(r.params.slidesPerGroupSkip,o);let v=g+Math.floor((o-g)/r.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const y=-l[v];if(a.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*y),i=Math.floor(100*c[e]),s=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=i&&t<s-(s-i)/2?o=e:t>=i&&t<s&&(o=e+1):t>=i&&(o=e)}if(r.initialized&&o!==u){if(!r.allowSlideNext&&(h?y>r.translate&&y>r.minTranslate():y<r.translate&&y<r.minTranslate()))return!1;if(!r.allowSlidePrev&&y>r.translate&&y>r.maxTranslate()&&(u||0)!==o)return!1}let b;o!==(d||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(y),b=o>u?"next":o<u?"prev":"reset";const _=r.virtual&&r.params.virtual.enabled;if(!(_&&n)&&(h&&-y===r.translate||!h&&y===r.translate))return r.updateActiveIndex(o),a.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==a.effect&&r.setTranslate(y),"reset"!==b&&(r.transitionStart(i,b),r.transitionEnd(i,b)),!1;if(a.cssMode){const e=r.isHorizontal(),i=h?y:-y;if(0===t)_&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),_&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{f[e?"scrollLeft":"scrollTop"]=i}))):f[e?"scrollLeft":"scrollTop"]=i,_&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}));else{if(!r.support.smoothScroll)return p({swiper:r,targetPosition:i,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}const w=L().isSafari;return _&&!n&&w&&r.isElement&&r.virtual.update(!1,!1,o),r.setTransition(t),r.setTranslate(y),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(i,b),0===t?r.transitionEnd(i,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,s){if(void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e){e=parseInt(e,10)}const n=this;if(n.destroyed)return;void 0===t&&(t=n.params.speed);const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let o=e;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)o+=n.virtual.slidesBefore;else{let e;if(r){const t=o*n.params.grid.rows;e=n.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else e=n.getSlideIndexByData(o);const t=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:i}=n.params;let a=n.params.slidesPerView;"auto"===a?a=n.slidesPerViewDynamic():(a=Math.ceil(parseFloat(n.params.slidesPerView,10)),i&&a%2==0&&(a+=1));let l=t-e<a;if(i&&(l=l||e<Math.ceil(a/2)),s&&i&&"auto"!==n.params.slidesPerView&&!r&&(l=!1),l){const s=i?e<n.activeIndex?"prev":"next":e-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:s,slideTo:!0,activeSlideIndex:"next"===s?e+1:e-t+1,slideRealIndex:"next"===s?n.realIndex:void 0})}if(r){const e=o*n.params.grid.rows;o=n.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else o=n.getSlideIndexByData(o)}return requestAnimationFrame((()=>{n.slideTo(o,t,i,s)})),n},slideNext:function(e,t,i){void 0===t&&(t=!0);const s=this,{enabled:n,params:r,animating:o}=s;if(!n||s.destroyed)return s;void 0===e&&(e=s.params.speed);let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<r.slidesPerGroupSkip?1:a,c=s.virtual&&r.virtual.enabled;if(r.loop){if(o&&!c&&r.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&r.cssMode)return requestAnimationFrame((()=>{s.slideTo(s.activeIndex+l,e,t,i)})),!0}return r.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===t&&(t=!0);const s=this,{params:n,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;void 0===e&&(e=s.params.speed);const d=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(a?s.translate:-s.translate),p=r.map((e=>u(e))),f=n.freeMode&&n.freeMode.enabled;let m=r[p.indexOf(h)-1];if(void 0===m&&(n.cssMode||f)){let e;r.forEach(((t,i)=>{h>=t&&(e=i)})),void 0!==e&&(m=f?r[e]:r[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=o.indexOf(m),g<0&&(g=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(g=g-s.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return n.loop&&0===s.activeIndex&&n.cssMode?(requestAnimationFrame((()=>{s.slideTo(g,e,t,i)})),!0):s.slideTo(g,e,t,i)},slideReset:function(e,t,i){void 0===t&&(t=!0);const s=this;if(!s.destroyed)return void 0===e&&(e=s.params.speed),s.slideTo(s.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){void 0===t&&(t=!0),void 0===s&&(s=.5);const n=this;if(n.destroyed)return;void 0===e&&(e=n.params.speed);let r=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const e=n.snapGrid[a];l-e>(n.snapGrid[a+1]-e)*s&&(r+=n.params.slidesPerGroup)}else{const e=n.snapGrid[a-1];l-e<=(n.snapGrid[a]-e)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,e,t,i)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let n,r=e.getSlideIndexWhenGrid(e.clickedIndex);const o=e.isElement?"swiper-slide":`.${t.slideClass}`,l=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;n=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(n):r>(l?(e.slides.length-s)/2-(e.params.grid.rows-1):e.slides.length-s)?(e.loopFix(),r=e.getSlideIndex(m(i,`${o}[data-swiper-slide-index="${n}"]`)[0]),a((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var W={loopCreate:function(e,t){const i=this,{params:s,slidesEl:n}=i;if(!s.loop||i.virtual&&i.params.virtual.enabled)return;const r=()=>{m(n,`.${s.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},o=i.grid&&s.grid&&s.grid.rows>1;s.loopAddBlankSlides&&(s.slidesPerGroup>1||o)&&(()=>{const e=m(n,`.${s.slideBlankClass}`);e.forEach((e=>{e.remove()})),e.length>0&&(i.recalcSlides(),i.updateSlides())})();const a=s.slidesPerGroup*(o?s.grid.rows:1),l=i.slides.length%a!=0,c=o&&i.slides.length%s.grid.rows!=0,d=e=>{for(let t=0;t<e;t+=1){const e=i.isElement?v("swiper-slide",[s.slideBlankClass]):v("div",[s.slideClass,s.slideBlankClass]);i.slidesEl.append(e)}};if(l){if(s.loopAddBlankSlides){d(a-i.slides.length%a),i.recalcSlides(),i.updateSlides()}else g("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(c){if(s.loopAddBlankSlides){d(s.grid.rows-i.slides.length%s.grid.rows),i.recalcSlides(),i.updateSlides()}else g("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();i.loopFix({slideRealIndex:e,direction:s.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:i=!0,direction:s,setTranslate:n,activeSlideIndex:r,initial:o,byController:a,byMousewheel:l}=void 0===e?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:u,allowSlideNext:h,slidesEl:p,params:f}=c,{centeredSlides:m,initialSlide:v}=f;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&f.virtual.enabled)return i&&(f.centeredSlides||0!==c.snapIndex?f.centeredSlides&&c.snapIndex<f.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=h,void c.emit("loopFix");let y=f.slidesPerView;"auto"===y?y=c.slidesPerViewDynamic():(y=Math.ceil(parseFloat(f.slidesPerView,10)),m&&y%2==0&&(y+=1));const b=f.slidesPerGroupAuto?y:f.slidesPerGroup;let _=m?Math.max(b,Math.ceil(y/2)):b;_%b!=0&&(_+=b-_%b),_+=f.loopAdditionalSlides,c.loopedSlides=_;const w=c.grid&&f.grid&&f.grid.rows>1;d.length<y+_||"cards"===c.params.effect&&d.length<y+2*_?g("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):w&&"row"===f.grid.fill&&g("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const x=[],T=[],S=w?Math.ceil(d.length/f.grid.rows):d.length,E=o&&S-v<y&&!m;let C=E?v:c.activeIndex;void 0===r?r=c.getSlideIndex(d.find((e=>e.classList.contains(f.slideActiveClass)))):C=r;const M="next"===s||!s,k="prev"===s||!s;let A=0,I=0;const O=(w?d[r].column:r)+(m&&void 0===n?-y/2+.5:0);if(O<_){A=Math.max(_-O,b);for(let e=0;e<_-O;e+=1){const t=e-Math.floor(e/S)*S;if(w){const e=S-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&x.push(t)}else x.push(S-t-1)}}else if(O+y>S-_){I=Math.max(O-(S-2*_),b),E&&(I=Math.max(I,y-S+v+1));for(let e=0;e<I;e+=1){const t=e-Math.floor(e/S)*S;w?d.forEach(((e,i)=>{e.column===t&&T.push(i)})):T.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame((()=>{c.__preventObserver__=!1})),"cards"===c.params.effect&&d.length<y+2*_&&(T.includes(r)&&T.splice(T.indexOf(r),1),x.includes(r)&&x.splice(x.indexOf(r),1)),k&&x.forEach((e=>{d[e].swiperLoopMoveDOM=!0,p.prepend(d[e]),d[e].swiperLoopMoveDOM=!1})),M&&T.forEach((e=>{d[e].swiperLoopMoveDOM=!0,p.append(d[e]),d[e].swiperLoopMoveDOM=!1})),c.recalcSlides(),"auto"===f.slidesPerView?c.updateSlides():w&&(x.length>0&&k||T.length>0&&M)&&c.slides.forEach(((e,t)=>{c.grid.updateSlide(t,e,c.slides)})),f.watchSlidesProgress&&c.updateSlidesOffset(),i)if(x.length>0&&k){if(void 0===t){const e=c.slidesGrid[C],t=c.slidesGrid[C+A]-e;l?c.setTranslate(c.translate-t):(c.slideTo(C+Math.ceil(A),0,!1,!0),n&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(n){const e=w?x.length/f.grid.rows:x.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(T.length>0&&M)if(void 0===t){const e=c.slidesGrid[C],t=c.slidesGrid[C-I]-e;l?c.setTranslate(c.translate-t):(c.slideTo(C-I,0,!1,!0),n&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{const e=w?T.length/f.grid.rows:T.length;c.slideTo(c.activeIndex-e,0,!1,!0)}if(c.allowSlidePrev=u,c.allowSlideNext=h,c.controller&&c.controller.control&&!a){const e={slideRealIndex:t,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&i})})):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===f.slidesPerView&&i})}c.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||!i||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const s=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;s[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),s.forEach((e=>{i.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function q(e,t,i){const s=r(),{params:n}=e,o=n.edgeSwipeDetection,a=n.edgeSwipeThreshold;return!o||!(i<=a||i>=s.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function Y(e){const t=this,i=s();let n=e;n.originalEvent&&(n=n.originalEvent);const o=t.touchEventsData;if("pointerdown"===n.type){if(null!==o.pointerId&&o.pointerId!==n.pointerId)return;o.pointerId=n.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(o.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void q(t,n,n.targetTouches[0].pageX);const{params:a,touches:c,enabled:d}=t;if(!d)return;if(!a.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let u=n.target;if("wrapper"===a.touchEventsTarget&&!function(e,t){const i=r();let s=t.contains(e);!s&&i.HTMLSlotElement&&t instanceof HTMLSlotElement&&(s=[...t.assignedElements()].includes(e),s||(s=function(e,t){const i=[t];for(;i.length>0;){const t=i.shift();if(e===t)return!0;i.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t)));return s}(u,t.wrapperEl))return;if("which"in n&&3===n.which)return;if("button"in n&&n.button>0)return;if(o.isTouched&&o.isMoved)return;const h=!!a.noSwipingClass&&""!==a.noSwipingClass,p=n.composedPath?n.composedPath():n.path;h&&n.target&&n.target.shadowRoot&&p&&(u=p[0]);const f=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,m=!(!n.target||!n.target.shadowRoot);if(a.noSwiping&&(m?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===s()||i===r())return null;i.assignedSlot&&(i=i.assignedSlot);const n=i.closest(e);return n||i.getRootNode?n||t(i.getRootNode().host):null}(t)}(f,u):u.closest(f)))return void(t.allowClick=!0);if(a.swipeHandler&&!u.closest(a.swipeHandler))return;c.currentX=n.pageX,c.currentY=n.pageY;const g=c.currentX,v=c.currentY;if(!q(t,n,g))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=g,c.startY=v,o.touchStartTime=l(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(o.allowThresholdMove=!1);let y=!0;u.matches(o.focusableElements)&&(y=!1,"SELECT"===u.nodeName&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==u&&("mouse"===n.pointerType||"mouse"!==n.pointerType&&!u.matches(o.focusableElements))&&i.activeElement.blur();const b=y&&t.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!b||u.isContentEditable||n.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}function X(e){const t=s(),i=this,n=i.touchEventsData,{params:r,touches:o,rtlTranslate:a,enabled:c}=i;if(!c)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let d,u=e;if(u.originalEvent&&(u=u.originalEvent),"pointermove"===u.type){if(null!==n.touchId)return;if(u.pointerId!==n.pointerId)return}if("touchmove"===u.type){if(d=[...u.changedTouches].find((e=>e.identifier===n.touchId)),!d||d.identifier!==n.touchId)return}else d=u;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",u));const h=d.pageX,p=d.pageY;if(u.preventedByNestedSwiper)return o.startX=h,void(o.startY=p);if(!i.allowTouchMove)return u.target.matches(n.focusableElements)||(i.allowClick=!1),void(n.isTouched&&(Object.assign(o,{startX:h,startY:p,currentX:h,currentY:p}),n.touchStartTime=l()));if(r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(p<o.startY&&i.translate<=i.maxTranslate()||p>o.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else{if(a&&(h>o.startX&&-i.translate<=i.maxTranslate()||h<o.startX&&-i.translate>=i.minTranslate()))return;if(!a&&(h<o.startX&&i.translate<=i.maxTranslate()||h>o.startX&&i.translate>=i.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(n.focusableElements)&&t.activeElement!==u.target&&"mouse"!==u.pointerType&&t.activeElement.blur(),t.activeElement&&u.target===t.activeElement&&u.target.matches(n.focusableElements))return n.isMoved=!0,void(i.allowClick=!1);n.allowTouchCallbacks&&i.emit("touchMove",u),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=h,o.currentY=p;const f=o.currentX-o.startX,m=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(void 0===n.isScrolling){let e;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:f*f+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(f))/Math.PI,n.isScrolling=i.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",u),void 0===n.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===u.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;i.allowClick=!1,!r.cssMode&&u.cancelable&&u.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&u.stopPropagation();let g=i.isHorizontal()?f:m,v=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;r.oneWayMovement&&(g=Math.abs(g)*(a?1:-1),v=Math.abs(v)*(a?1:-1)),o.diff=g,g*=r.touchRatio,a&&(g=-g,v=-v);const y=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=v>0?"prev":"next";const b=i.params.loop&&!r.cssMode,_="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!n.isMoved){if(b&&_&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!r.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",u)}if((new Date).getTime(),!1!==r._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&y!==i.touchesDirection&&b&&_&&Math.abs(g)>=1)return Object.assign(o,{startX:h,startY:p,currentX:h,currentY:p,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);i.emit("sliderMove",u),n.isMoved=!0,n.currentTranslate=g+n.startTranslate;let w=!0,x=r.resistanceRatio;if(r.touchReleaseOnEdges&&(x=0),g>0?(b&&_&&n.allowThresholdMove&&n.currentTranslate>(r.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-("auto"!==r.slidesPerView&&i.slides.length-r.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(w=!1,r.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+g)**x))):g<0&&(b&&_&&n.allowThresholdMove&&n.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+("auto"!==r.slidesPerView&&i.slides.length-r.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===r.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(w=!1,r.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-g)**x))),w&&(u.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),i.allowSlidePrev||i.allowSlideNext||(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(g)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,void(o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function V(e){const t=this,i=t.touchEventsData;let s,n=e;n.originalEvent&&(n=n.originalEvent);if("touchend"===n.type||"touchcancel"===n.type){if(s=[...n.changedTouches].find((e=>e.identifier===i.touchId)),!s||s.identifier!==i.touchId)return}else{if(null!==i.touchId)return;if(n.pointerId!==i.pointerId)return;s=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)){if(!(["pointercancel","contextmenu"].includes(n.type)&&(t.browser.isSafari||t.browser.isWebView)))return}i.pointerId=null,i.touchId=null;const{params:r,touches:o,rtlTranslate:c,slidesGrid:d,enabled:u}=t;if(!u)return;if(!r.simulateTouch&&"mouse"===n.pointerType)return;if(i.allowTouchCallbacks&&t.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&r.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);r.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const h=l(),p=h-i.touchStartTime;if(t.allowClick){const e=n.path||n.composedPath&&n.composedPath();t.updateClickedSlide(e&&e[0]||n.target,e),t.emit("tap click",n),p<300&&h-i.lastClickTime<300&&t.emit("doubleTap doubleClick",n)}if(i.lastClickTime=l(),a((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===o.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let f;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,f=r.followFinger?c?t.translate:-t.translate:-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:f});const m=f>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e<d.length;e+=e<r.slidesPerGroupSkip?1:r.slidesPerGroup){const t=e<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==d[e+t]?(m||f>=d[e]&&f<d[e+t])&&(g=e,v=d[e+t]-d[e]):(m||f>=d[e])&&(g=e,v=d[d.length-1]-d[d.length-2])}let y=null,b=null;r.rewind&&(t.isBeginning?b=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(y=0));const _=(f-d[g])/v,w=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(p>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(_>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?y:g+w):t.slideTo(g)),"prev"===t.swipeDirection&&(_>1-r.longSwipesRatio?t.slideTo(g+w):null!==b&&_<0&&Math.abs(_)>r.longSwipesRatio?t.slideTo(b):t.slideTo(g))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(n.target===t.navigation.nextEl||n.target===t.navigation.prevEl)?n.target===t.navigation.nextEl?t.slideTo(g+w):t.slideTo(g):("next"===t.swipeDirection&&t.slideTo(null!==y?y:g+w),"prev"===t.swipeDirection&&t.slideTo(null!==b?b:g))}}function G(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function U(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Q(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;let n;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();n=0===r?0:(e.translate-e.minTranslate())/r,n!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Z(e){const t=this;$(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function K(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const J=(e,t)=>{const i=s(),{params:n,el:r,wrapperEl:o,device:a}=e,l=!!n.nested,c="on"===t?"addEventListener":"removeEventListener",d=t;r&&"string"!=typeof r&&(i[c]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),r[c]("touchstart",e.onTouchStart,{passive:!1}),r[c]("pointerdown",e.onTouchStart,{passive:!1}),i[c]("touchmove",e.onTouchMove,{passive:!1,capture:l}),i[c]("pointermove",e.onTouchMove,{passive:!1,capture:l}),i[c]("touchend",e.onTouchEnd,{passive:!0}),i[c]("pointerup",e.onTouchEnd,{passive:!0}),i[c]("pointercancel",e.onTouchEnd,{passive:!0}),i[c]("touchcancel",e.onTouchEnd,{passive:!0}),i[c]("pointerout",e.onTouchEnd,{passive:!0}),i[c]("pointerleave",e.onTouchEnd,{passive:!0}),i[c]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&r[c]("click",e.onClick,!0),n.cssMode&&o[c]("scroll",e.onScroll),n.updateOnWindowResize?e[d](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",G,!0):e[d]("observerUpdate",G,!0),r[c]("load",e.onLoad,{capture:!0}))};const ee=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var te={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function ie(e,t){return function(i){void 0===i&&(i={});const s=Object.keys(i)[0],n=i[s];"object"==typeof n&&null!==n?(!0===e[s]&&(e[s]={enabled:!0}),"navigation"===s&&e[s]&&e[s].enabled&&!e[s].prevEl&&!e[s].nextEl&&(e[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&e[s]&&e[s].enabled&&!e[s].el&&(e[s].auto=!0),s in e&&"enabled"in n?("object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),u(t,i)):u(t,i)):u(t,i)}}const se={eventsEmitter:P,update:F,translate:j,transition:{setTransition:function(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`,i.wrapperEl.style.transitionDelay=0===e?"0ms":""),i.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),N({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const i=this,{params:s}=i;i.animating=!1,s.cssMode||(i.setTransition(0),N({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:H,loop:W,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=Y.bind(e),e.onTouchMove=X.bind(e),e.onTouchEnd=V.bind(e),e.onDocumentTouchStart=K.bind(e),t.cssMode&&(e.onScroll=Q.bind(e)),e.onClick=U.bind(e),e.onLoad=Z.bind(e),J(e,"on")},detachEvents:function(){J(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:i,params:n,el:r}=e,o=n.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=s(),l="window"!==n.breakpointsBase&&n.breakpointsBase?"container":n.breakpointsBase,c=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?e.el:a.querySelector(n.breakpointsBase),d=e.getBreakpoint(o,l,c);if(!d||e.currentBreakpoint===d)return;const h=(d in o?o[d]:void 0)||e.originalParams,p=ee(e,n),f=ee(e,h),m=e.params.grabCursor,g=h.grabCursor,v=n.enabled;p&&!f?(r.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!p&&f&&(r.classList.add(`${n.containerModifierClass}grid`),(h.grid.fill&&"column"===h.grid.fill||!h.grid.fill&&"column"===n.grid.fill)&&r.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),m&&!g?e.unsetGrabCursor():!m&&g&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===h[t])return;const i=n[t]&&n[t].enabled,s=h[t]&&h[t].enabled;i&&!s&&e[t].disable(),!i&&s&&e[t].enable()}));const y=h.direction&&h.direction!==n.direction,b=n.loop&&(h.slidesPerView!==n.slidesPerView||y),_=n.loop;y&&i&&e.changeDirection(),u(e.params,h);const w=e.params.enabled,x=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),v&&!w?e.disable():!v&&w&&e.enable(),e.currentBreakpoint=d,e.emit("_beforeBreakpoint",h),i&&(b?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!_&&x?(e.loopCreate(t),e.updateSlides()):_&&!x&&e.loopDestroy()),e.emit("breakpoint",h)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let s=!1;const n=r(),o="window"===t?n.innerHeight:i.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<a.length;e+=1){const{point:r,value:o}=a[e];"window"===t?n.matchMedia(`(min-width: ${o}px)`).matches&&(s=r):o<=i.clientWidth&&(s=r)}return s||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:s}=i;if(s){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*s;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:i,rtl:s,el:n,device:r}=e,o=function(e,t){const i=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((s=>{e[s]&&i.push(t+s)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...o),n.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},ne={};class re{constructor(){let e,t;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];1===n.length&&n[0].constructor&&"Object"===Object.prototype.toString.call(n[0]).slice(8,-1)?t=n[0]:[e,t]=n,t||(t={}),t=u({},t),e&&!t.el&&(t.el=e);const o=s();if(t.el&&"string"==typeof t.el&&o.querySelectorAll(t.el).length>1){const e=[];return o.querySelectorAll(t.el).forEach((i=>{const s=u({},t,{el:i});e.push(new re(s))})),e}const a=this;a.__swiper__=!0,a.support=I(),a.device=O({userAgent:t.userAgent}),a.browser=L(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],t.modules&&Array.isArray(t.modules)&&a.modules.push(...t.modules);const l={};a.modules.forEach((e=>{e({params:t,swiper:a,extendParams:ie(t,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})}));const c=u({},te,l);return a.params=u({},c,ne,t),a.originalParams=u({},a.params),a.passedParams=u({},t),a.params&&a.params.on&&Object.keys(a.params.on).forEach((e=>{a.on(e,a.params.on[e])})),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===a.params.direction,isVertical:()=>"vertical"===a.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:i}=this,s=_(m(t,`.${i.slideClass}, swiper-slide`)[0]);return _(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=m(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const s=i.minTranslate(),n=(i.maxTranslate()-s)*e+s;i.translateTo(n,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((i=>{const s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:s,slidesGrid:n,slidesSizesGrid:r,size:o,activeIndex:a}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=s[a]?Math.ceil(s[a].swiperSlideSize):0;for(let i=a+1;i<s.length;i+=1)s[i]&&!e&&(t+=Math.ceil(s[i].swiperSlideSize),l+=1,t>o&&(e=!0));for(let i=a-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>o&&(e=!0))}else if("current"===e)for(let e=a+1;e<s.length;e+=1){(t?n[e]+r[e]-n[a]<o:n[e]-n[a]<o)&&(l+=1)}else for(let e=a-1;e>=0;e-=1){n[a]-n[e]<o&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;function s(){const t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}let n;if(i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&$(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)s(),i.autoHeight&&e.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const t=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(t.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||s()}i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=(()=>{if(i&&i.shadowRoot&&i.shadowRoot.querySelector){return i.shadowRoot.querySelector(s())}return m(i,s())[0]})();return!n&&t.params.createElements&&(n=v("div",t.params.wrapperClass),i.append(n),m(i,`.${t.params.slideClass}`).forEach((e=>{n.append(e)}))),Object.assign(t,{el:i,wrapperEl:n,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:n,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===b(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===b(i,"direction")),wrongRTL:"-webkit-box"===b(n,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach((e=>{e.complete?$(t,e):e.addEventListener("load",(e=>{$(t,e.target)}))})),R(t),t.initialized=!0,R(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:s,el:n,wrapperEl:r,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n&&"string"!=typeof n&&n.removeAttribute("style"),r&&r.removeAttribute("style"),o&&o.length&&o.forEach((e=>{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){u(ne,e)}static get extendedDefaults(){return ne}static get defaults(){return te}static installModule(e){re.prototype.__modules__||(re.prototype.__modules__=[]);const t=re.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>re.installModule(e))),re):(re.installModule(e),re)}}function oe(e,t,i,s){return e.params.createElements&&Object.keys(s).forEach((n=>{if(!i[n]&&!0===i.auto){let r=m(e.el,`.${s[n]}`)[0];r||(r=v("div",s[n]),r.className=s[n],e.el.append(r)),i[n]=r,t[n]=r}})),i}function ae(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function le(e){const t=this,{params:i,slidesEl:s}=t;i.loop&&t.loopDestroy();const n=e=>{if("string"==typeof e){const t=document.createElement("div");C(t,e),s.append(t.children[0]),C(t,"")}else s.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&n(e[t]);else n(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update()}function ce(e){const t=this,{params:i,activeIndex:s,slidesEl:n}=t;i.loop&&t.loopDestroy();let r=s+1;const o=e=>{if("string"==typeof e){const t=document.createElement("div");C(t,e),n.prepend(t.children[0]),C(t,"")}else n.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&o(e[t]);r=s+e.length}else o(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(),t.slideTo(r,0,!1)}function de(e,t){const i=this,{params:s,activeIndex:n,slidesEl:r}=i;let o=n;s.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.recalcSlides());const a=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=a)return void i.appendSlide(t);let l=o>e?o+1:o;const c=[];for(let t=a-1;t>=e;t-=1){const e=i.slides[t];e.remove(),c.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&r.append(t[e]);l=o>e?o+t.length:o}else r.append(t);for(let e=0;e<c.length;e+=1)r.append(c[e]);i.recalcSlides(),s.loop&&i.loopCreate(),s.observer&&!i.isElement||i.update(),s.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function ue(e){const t=this,{params:i,activeIndex:s}=t;let n=s;i.loop&&(n-=t.loopedSlides,t.loopDestroy());let r,o=n;if("object"==typeof e&&"length"in e){for(let i=0;i<e.length;i+=1)r=e[i],t.slides[r]&&t.slides[r].remove(),r<o&&(o-=1);o=Math.max(o,0)}else r=e,t.slides[r]&&t.slides[r].remove(),r<o&&(o-=1),o=Math.max(o,0);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(),i.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)}function he(){const e=this,t=[];for(let i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function pe(e){const{effect:t,swiper:i,on:s,setTranslate:n,setTransition:r,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:c}=e;let d;s("beforeInit",(()=>{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),a&&a()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=o?o():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)})),s("setTranslate _virtualUpdated",(()=>{i.params.effect===t&&n()})),s("setTransition",((e,s)=>{i.params.effect===t&&r(s)})),s("transitionEnd",(()=>{if(i.params.effect===t&&l){if(!c||!c().slideShadows)return;i.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),l()}})),s("virtualUpdate",(()=>{i.params.effect===t&&(i.slides.length||(d=!0),requestAnimationFrame((()=>{d&&i.slides&&i.slides.length&&(n(),d=!1)})))}))}function fe(e,t){const i=f(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function me(e){let{swiper:t,duration:i,transformElements:s,allSlides:n}=e;const{activeIndex:r}=t;if(t.params.virtualTranslate&&0!==i){let e,i=!1;e=n?s:s.filter((e=>{const i=e.classList.contains("swiper-slide-transform")?(e=>{if(!e.parentElement)return t.slides.find((t=>t.shadowRoot&&t.shadowRoot===e.parentNode));return e.parentElement})(e):e;return t.getSlideIndex(i)===r})),e.forEach((e=>{x(e,(()=>{if(i)return;if(!t||t.destroyed)return;i=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function ge(e,t,i){const s=`swiper-slide-shadow${i?`-${i}`:""}${e?` swiper-slide-shadow-${e}`:""}`,n=f(t);let r=n.querySelector(`.${s.split(" ").join(".")}`);return r||(r=v("div",s.split(" ")),n.append(r)),r}Object.keys(se).forEach((e=>{Object.keys(se[e]).forEach((t=>{re.prototype[t]=se[e][t]}))})),re.use([function(e){let{swiper:t,on:i,emit:s}=e;const n=r();let o=null,a=null;const l=()=>{t&&!t.destroyed&&t.initialized&&(s("beforeResize"),s("resize"))},c=()=>{t&&!t.destroyed&&t.initialized&&s("orientationchange")};i("init",(()=>{t.params.resizeObserver&&void 0!==n.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((e=>{a=n.requestAnimationFrame((()=>{const{width:i,height:s}=t;let n=i,r=s;e.forEach((e=>{let{contentBoxSize:i,contentRect:s,target:o}=e;o&&o!==t.el||(n=s?s.width:(i[0]||i).inlineSize,r=s?s.height:(i[0]||i).blockSize)})),n===i&&r===s||l()}))})),o.observe(t.el)):(n.addEventListener("resize",l),n.addEventListener("orientationchange",c))})),i("destroy",(()=>{a&&n.cancelAnimationFrame(a),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),n.removeEventListener("resize",l),n.removeEventListener("orientationchange",c)}))},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const o=[],a=r(),l=function(e,i){void 0===i&&(i={});const s=new(a.MutationObserver||a.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void n("observerUpdate",e[0]);const i=function(){n("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(i):a.setTimeout(i,0)}));s.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:t.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),o.push(s)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=w(t.hostEl);for(let t=0;t<e.length;t+=1)l(e[t])}l(t.hostEl,{childList:t.params.observeSlideChildren}),l(t.wrapperEl,{attributes:!1})}})),s("destroy",(()=>{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);const ve=[function(e){let t,{swiper:i,extendParams:n,on:r,emit:o}=e;n({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const a=s();i.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const l=a.createElement("div");function c(e,t){const s=i.params.virtual;if(s.cache&&i.virtual.cache[t])return i.virtual.cache[t];let n;return s.renderSlide?(n=s.renderSlide.call(i,e,t),"string"==typeof n&&(C(l,n),n=l.children[0])):n=i.isElement?v("swiper-slide"):v("div",i.params.slideClass),n.setAttribute("data-swiper-slide-index",t),s.renderSlide||C(n,e),s.cache&&(i.virtual.cache[t]=n),n}function d(e,t,s){const{slidesPerView:n,slidesPerGroup:r,centeredSlides:a,loop:l,initialSlide:d}=i.params;if(t&&!l&&d>0)return;const{addSlidesBefore:u,addSlidesAfter:h}=i.params.virtual,{from:p,to:f,slides:g,slidesGrid:v,offset:y}=i.virtual;i.params.cssMode||i.updateActiveIndex();const b=void 0===s?i.activeIndex||0:s;let _,w,x;_=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",a?(w=Math.floor(n/2)+r+h,x=Math.floor(n/2)+r+u):(w=n+(r-1)+h,x=(l?n:r)+u);let T=b-x,S=b+w;l||(T=Math.max(T,0),S=Math.min(S,g.length-1));let E=(i.slidesGrid[T]||0)-(i.slidesGrid[0]||0);function C(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),o("virtualUpdate")}if(l&&b>=x?(T-=x,a||(E+=i.slidesGrid[0])):l&&b<x&&(T=-x,a&&(E+=i.slidesGrid[0])),Object.assign(i.virtual,{from:T,to:S,offset:E,slidesGrid:i.slidesGrid,slidesBefore:x,slidesAfter:w}),p===T&&f===S&&!e)return i.slidesGrid!==v&&E!==y&&i.slides.forEach((e=>{e.style[_]=E-Math.abs(i.cssOverflowAdjustment())+"px"})),i.updateProgress(),void o("virtualUpdate");if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:E,from:T,to:S,slides:function(){const e=[];for(let t=T;t<=S;t+=1)e.push(g[t]);return e}()}),void(i.params.virtual.renderExternalUpdate?C():o("virtualUpdate"));const M=[],k=[],A=e=>{let t=e;return e<0?t=g.length+e:t>=g.length&&(t-=g.length),t};if(e)i.slides.filter((e=>e.matches(`.${i.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=p;e<=f;e+=1)if(e<T||e>S){const t=A(e);i.slides.filter((e=>e.matches(`.${i.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`))).forEach((e=>{e.remove()}))}const I=l?-g.length:0,O=l?2*g.length:g.length;for(let t=I;t<O;t+=1)if(t>=T&&t<=S){const i=A(t);void 0===f||e?k.push(i):(t>f&&k.push(i),t<p&&M.push(i))}if(k.forEach((e=>{i.slidesEl.append(c(g[e],e))})),l)for(let e=M.length-1;e>=0;e-=1){const t=M[e];i.slidesEl.prepend(c(g[t],t))}else M.sort(((e,t)=>t-e)),M.forEach((e=>{i.slidesEl.prepend(c(g[e],e))}));m(i.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[_]=E-Math.abs(i.cssOverflowAdjustment())+"px"})),C()}r("beforeInit",(()=>{if(!i.params.virtual.enabled)return;let e;if(void 0===i.passedParams.virtual.slides){const t=[...i.slidesEl.children].filter((e=>e.matches(`.${i.params.slideClass}, swiper-slide`)));t&&t.length&&(i.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t),i.virtual.cache[t]=e,e.remove()})))}e||(i.virtual.slides=i.params.virtual.slides),i.classNames.push(`${i.params.containerModifierClass}virtual`),i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0,d(!1,!0)})),r("setTranslate",(()=>{i.params.virtual.enabled&&(i.params.cssMode&&!i._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{d()}),100)):d())})),r("init update resize",(()=>{i.params.virtual.enabled&&i.params.cssMode&&h(i.wrapperEl,"--swiper-virtual-size",`${i.virtualSize}px`)})),Object.assign(i.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i.virtual.slides.push(e[t]);else i.virtual.slides.push(e);d(!0)},prependSlide:function(e){const t=i.activeIndex;let s=t+1,n=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&i.virtual.slides.unshift(e[t]);s=t+e.length,n=e.length}else i.virtual.slides.unshift(e);if(i.params.virtual.cache){const e=i.virtual.cache,t={};Object.keys(e).forEach((i=>{const s=e[i],r=s.getAttribute("data-swiper-slide-index");r&&s.setAttribute("data-swiper-slide-index",parseInt(r,10)+n),t[parseInt(i,10)+n]=s})),i.virtual.cache=t}d(!0),i.slideTo(s,0)},removeSlide:function(e){if(null==e)return;let t=i.activeIndex;if(Array.isArray(e))for(let s=e.length-1;s>=0;s-=1)i.params.virtual.cache&&(delete i.virtual.cache[e[s]],Object.keys(i.virtual.cache).forEach((t=>{t>e&&(i.virtual.cache[t-1]=i.virtual.cache[t],i.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete i.virtual.cache[t])}))),i.virtual.slides.splice(e[s],1),e[s]<t&&(t-=1),t=Math.max(t,0);else i.params.virtual.cache&&(delete i.virtual.cache[e],Object.keys(i.virtual.cache).forEach((t=>{t>e&&(i.virtual.cache[t-1]=i.virtual.cache[t],i.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete i.virtual.cache[t])}))),i.virtual.slides.splice(e,1),e<t&&(t-=1),t=Math.max(t,0);d(!0),i.slideTo(t,0)},removeAllSlides:function(){i.virtual.slides=[],i.params.virtual.cache&&(i.virtual.cache={}),d(!0),i.slideTo(0,0)},update:d})},function(e){let{swiper:t,extendParams:i,on:n,emit:o}=e;const a=s(),l=r();function c(e){if(!t.enabled)return;const{rtlTranslate:i}=t;let s=e;s.originalEvent&&(s=s.originalEvent);const n=s.keyCode||s.charCode,r=t.params.keyboard.pageUpDown,c=r&&33===n,d=r&&34===n,u=37===n,h=39===n,p=38===n,f=40===n;if(!t.allowSlideNext&&(t.isHorizontal()&&h||t.isVertical()&&f||d))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&p||c))return!1;if(!(s.shiftKey||s.altKey||s.ctrlKey||s.metaKey||a.activeElement&&(a.activeElement.isContentEditable||a.activeElement.nodeName&&("input"===a.activeElement.nodeName.toLowerCase()||"textarea"===a.activeElement.nodeName.toLowerCase())))){if(t.params.keyboard.onlyInViewport&&(c||d||u||h||p||f)){let e=!1;if(w(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===w(t.el,`.${t.params.slideActiveClass}`).length)return;const s=t.el,n=s.clientWidth,r=s.clientHeight,o=l.innerWidth,a=l.innerHeight,c=y(s);i&&(c.left-=s.scrollLeft);const d=[[c.left,c.top],[c.left+n,c.top],[c.left,c.top+r],[c.left+n,c.top+r]];for(let t=0;t<d.length;t+=1){const i=d[t];if(i[0]>=0&&i[0]<=o&&i[1]>=0&&i[1]<=a){if(0===i[0]&&0===i[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||d||u||h)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),((d||h)&&!i||(c||u)&&i)&&t.slideNext(),((c||u)&&!i||(d||h)&&i)&&t.slidePrev()):((c||d||p||f)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),(d||f)&&t.slideNext(),(c||p)&&t.slidePrev()),o("keyPress",n)}}function d(){t.keyboard.enabled||(a.addEventListener("keydown",c),t.keyboard.enabled=!0)}function u(){t.keyboard.enabled&&(a.removeEventListener("keydown",c),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),n("init",(()=>{t.params.keyboard.enabled&&d()})),n("destroy",(()=>{t.keyboard.enabled&&u()})),Object.assign(t.keyboard,{enable:d,disable:u})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const o=r();let c;i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let d,u=l();const h=[];function p(){t.enabled&&(t.mouseEntered=!0)}function f(){t.enabled&&(t.mouseEntered=!1)}function m(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta)&&(!(t.params.mousewheel.thresholdTime&&l()-u<t.params.mousewheel.thresholdTime)&&(e.delta>=6&&l()-u<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),n("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),n("scroll",e.raw)),u=(new o.Date).getTime(),!1)))}function g(e){let i=e,s=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const r=t.params.mousewheel;t.params.cssMode&&i.preventDefault();let o=t.el;"container"!==t.params.mousewheel.eventsTarget&&(o=document.querySelector(t.params.mousewheel.eventsTarget));const u=o&&o.contains(i.target);if(!t.mouseEntered&&!u&&!r.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let p=0;const f=t.rtlTranslate?-1:1,g=function(e){let t=0,i=0,s=0,n=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,n=10*i,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=n,n=0),(s||n)&&e.deltaMode&&(1===e.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!t&&(t=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:n}}(i);if(r.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;r.invert&&(p=-p);let v=t.getTranslate()+p*r.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),s=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),s&&t.params.nested&&i.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:l(),delta:Math.abs(p),direction:Math.sign(p)},s=d&&e.time<d.time+500&&e.delta<=d.delta&&e.direction===d.direction;if(!s){d=void 0;let o=t.getTranslate()+p*r.sensitivity;const l=t.isBeginning,u=t.isEnd;if(o>=t.minTranslate()&&(o=t.minTranslate()),o<=t.maxTranslate()&&(o=t.maxTranslate()),t.setTransition(0),t.setTranslate(o),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!l&&t.isBeginning||!u&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(c),c=void 0,h.length>=15&&h.shift();const i=h.length?h[h.length-1]:void 0,s=h[0];if(h.push(e),i&&(e.delta>i.delta||e.direction!==i.direction))h.splice(0);else if(h.length>=15&&e.time-s.time<500&&s.delta-e.delta>=1&&e.delta<=6){const i=p>0?.8:.2;d=e,h.splice(0),c=a((()=>{!t.destroyed&&t.params&&t.slideToClosest(t.params.speed,!0,void 0,i)}),0)}c||(c=a((()=>{if(t.destroyed||!t.params)return;d=e,h.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(s||n("scroll",i),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),r.releaseOnEdges&&(o===t.minTranslate()||o===t.maxTranslate()))return!0}}else{const i={time:l(),delta:Math.abs(p),direction:Math.sign(p),raw:e};h.length>=2&&h.shift();const s=h.length?h[h.length-1]:void 0;if(h.push(i),s?(i.direction!==s.direction||i.delta>s.delta||i.time>s.time+150)&&m(i):m(i),function(e){const i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function v(e){let i=t.el;"container"!==t.params.mousewheel.eventsTarget&&(i=document.querySelector(t.params.mousewheel.eventsTarget)),i[e]("mouseenter",p),i[e]("mouseleave",f),i[e]("wheel",g)}function y(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",g),!0):!t.mousewheel.enabled&&(v("addEventListener"),t.mousewheel.enabled=!0,!0)}function b(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,g),!0):!!t.mousewheel.enabled&&(v("removeEventListener"),t.mousewheel.enabled=!1,!0)}s("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&b(),t.params.mousewheel.enabled&&y()})),s("destroy",(()=>{t.params.cssMode&&y(),t.mousewheel.enabled&&b()})),Object.assign(t.mousewheel,{enable:y,disable:b})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;function r(e){let i;return e&&"string"==typeof e&&t.isElement&&(i=t.el.querySelector(e)||t.hostEl.querySelector(e),i)?i:(e&&("string"==typeof e&&(i=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&i&&i.length>1&&1===t.el.querySelectorAll(e).length?i=t.el.querySelector(e):i&&1===i.length&&(i=i[0])),e&&!i?e:i)}function o(e,i){const s=t.params.navigation;(e=S(e)).forEach((e=>{e&&(e.classList[i?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=i),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](s.lockClass))}))}function a(){const{nextEl:e,prevEl:i}=t.navigation;if(t.params.loop)return o(i,!1),void o(e,!1);o(i,t.isBeginning&&!t.params.rewind),o(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),n("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),n("navigationNext"))}function d(){const e=t.params.navigation;if(t.params.navigation=oe(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let i=r(e.nextEl),s=r(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:s}),i=S(i),s=S(s);const n=(i,s)=>{i&&i.addEventListener("click","next"===s?c:l),!t.enabled&&i&&i.classList.add(...e.lockClass.split(" "))};i.forEach((e=>n(e,"next"))),s.forEach((e=>n(e,"prev")))}function u(){let{nextEl:e,prevEl:i}=t.navigation;e=S(e),i=S(i);const s=(e,i)=>{e.removeEventListener("click","next"===i?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>s(e,"next"))),i.forEach((e=>s(e,"prev")))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},s("init",(()=>{!1===t.params.navigation.enabled?h():(d(),a())})),s("toEdge fromEdge lock unlock",(()=>{a()})),s("destroy",(()=>{u()})),s("enable disable",(()=>{let{nextEl:e,prevEl:i}=t.navigation;e=S(e),i=S(i),t.enabled?a():[...e,...i].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),s("click",((e,i)=>{let{nextEl:s,prevEl:r}=t.navigation;s=S(s),r=S(r);const o=i.target;let a=r.includes(o)||s.includes(o);if(t.isElement&&!a){const e=i.path||i.composedPath&&i.composedPath();e&&(a=e.find((e=>s.includes(e)||r.includes(e))))}if(t.params.navigation.hideOnClick&&!a){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===o||t.pagination.el.contains(o)))return;let e;s.length?e=s[0].classList.contains(t.params.navigation.hiddenClass):r.length&&(e=r[0].classList.contains(t.params.navigation.hiddenClass)),n(!0===e?"navigationShow":"navigationHide"),[...s,...r].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const h=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),a()},disable:h,update:a,init:d,destroy:u})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const r="swiper-pagination";let o;i({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:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let a=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,i){const{bulletActiveClass:s}=t.params.pagination;e&&(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${s}-${i}`),(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&e.classList.add(`${s}-${i}-${i}`))}function d(e){const i=e.target.closest(ae(t.params.pagination.bulletClass));if(!i)return;e.preventDefault();const s=_(i)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===s)return;const e=(n=t.realIndex,r=s,o=t.slides.length,(r%=o)==1+(n%=o)?"next":r===n-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(s)}else t.slideTo(s);var n,r,o}function u(){const e=t.rtl,i=t.params.pagination;if(l())return;let s,r,d=t.pagination.el;d=S(d);const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,h=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=t.previousRealIndex||0,s=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(s=t.snapIndex,r=t.previousSnapIndex):(r=t.previousIndex||0,s=t.activeIndex||0),"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const n=t.pagination.bullets;let l,u,h;if(i.dynamicBullets&&(o=T(n[0],t.isHorizontal()?"width":"height",!0),d.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=o*(i.dynamicMainBullets+4)+"px"})),i.dynamicMainBullets>1&&void 0!==r&&(a+=s-(r||0),a>i.dynamicMainBullets-1?a=i.dynamicMainBullets-1:a<0&&(a=0)),l=Math.max(s-a,0),u=l+(Math.min(n.length,i.dynamicMainBullets)-1),h=(u+l)/2),n.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${i.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),d.length>1)n.forEach((e=>{const n=_(e);n===s?e.classList.add(...i.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),i.dynamicBullets&&(n>=l&&n<=u&&e.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),n===l&&c(e,"prev"),n===u&&c(e,"next"))}));else{const e=n[s];if(e&&e.classList.add(...i.bulletActiveClass.split(" ")),t.isElement&&n.forEach(((e,t)=>{e.setAttribute("part",t===s?"bullet-active":"bullet")})),i.dynamicBullets){const e=n[l],t=n[u];for(let e=l;e<=u;e+=1)n[e]&&n[e].classList.add(...`${i.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(i.dynamicBullets){const s=Math.min(n.length,i.dynamicMainBullets+4),r=(o*s-o)/2-h*o,a=e?"right":"left";n.forEach((e=>{e.style[t.isHorizontal()?a:"top"]=`${r}px`}))}}d.forEach(((e,r)=>{if("fraction"===i.type&&(e.querySelectorAll(ae(i.currentClass)).forEach((e=>{e.textContent=i.formatFractionCurrent(s+1)})),e.querySelectorAll(ae(i.totalClass)).forEach((e=>{e.textContent=i.formatFractionTotal(h)}))),"progressbar"===i.type){let n;n=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(s+1)/h;let o=1,a=1;"horizontal"===n?o=r:a=r,e.querySelectorAll(ae(i.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${a})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===i.type&&i.renderCustom?(C(e,i.renderCustom(t,s+1,h)),0===r&&n("paginationRender",e)):(0===r&&n("paginationRender",e),n("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass)}))}function h(){const e=t.params.pagination;if(l())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let s=t.pagination.el;s=S(s);let r="";if("bullets"===e.type){let s=t.params.loop?Math.ceil(i/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&s>i&&(s=i);for(let i=0;i<s;i+=1)e.renderBullet?r+=e.renderBullet.call(t,i,e.bulletClass):r+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],s.forEach((i=>{"custom"!==e.type&&C(i,r||""),"bullets"===e.type&&t.pagination.bullets.push(...i.querySelectorAll(ae(e.bulletClass)))})),"custom"!==e.type&&n("paginationRender",s[0])}function p(){t.params.pagination=oe(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i;"string"==typeof e.el&&t.isElement&&(i=t.el.querySelector(e.el)),i||"string"!=typeof e.el||(i=[...document.querySelectorAll(e.el)]),i||(i=e.el),i&&0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(i)&&i.length>1&&(i=[...t.el.querySelectorAll(e.el)],i.length>1&&(i=i.find((e=>w(e,".swiper")[0]===t.el)))),Array.isArray(i)&&1===i.length&&(i=i[0]),Object.assign(t.pagination,{el:i}),i=S(i),i.forEach((i=>{"bullets"===e.type&&e.clickable&&i.classList.add(...(e.clickableClass||"").split(" ")),i.classList.add(e.modifierClass+e.type),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.classList.add(`${e.modifierClass}${e.type}-dynamic`),a=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.classList.add(e.progressbarOppositeClass),e.clickable&&i.addEventListener("click",d),t.enabled||i.classList.add(e.lockClass)})))}function f(){const e=t.params.pagination;if(l())return;let i=t.pagination.el;i&&(i=S(i),i.forEach((i=>{i.classList.remove(e.hiddenClass),i.classList.remove(e.modifierClass+e.type),i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(i.classList.remove(...(e.clickableClass||"").split(" ")),i.removeEventListener("click",d))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}s("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:i}=t.pagination;i=S(i),i.forEach((i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),s("init",(()=>{!1===t.params.pagination.enabled?m():(p(),h(),u())})),s("activeIndexChange",(()=>{void 0===t.snapIndex&&u()})),s("snapIndexChange",(()=>{u()})),s("snapGridLengthChange",(()=>{h(),u()})),s("destroy",(()=>{f()})),s("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=S(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),s("lock unlock",(()=>{u()})),s("click",((e,i)=>{const s=i.target,r=S(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!s.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&s===t.navigation.nextEl||t.navigation.prevEl&&s===t.navigation.prevEl))return;const e=r[0].classList.contains(t.params.pagination.hiddenClass);n(!0===e?"paginationShow":"paginationHide"),r.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=S(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=S(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),p(),h(),u()},disable:m,render:h,update:u,init:p,destroy:f})},function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const l=s();let c,d,u,h,p=!1,f=null,m=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:i}=t,{dragEl:s,el:n}=e,r=t.params.scrollbar,o=t.params.loop?t.progressLoop:t.progress;let a=d,l=(u-d)*o;i?(l=-l,l>0?(a=d-l,l=0):-l+d>u&&(a=u+l)):l<0?(a=d+l,l=0):l+d>u&&(a=u-l),t.isHorizontal()?(s.style.transform=`translate3d(${l}px, 0, 0)`,s.style.width=`${a}px`):(s.style.transform=`translate3d(0px, ${l}px, 0)`,s.style.height=`${a}px`),r.hide&&(clearTimeout(f),n.style.opacity=1,f=setTimeout((()=>{n.style.opacity=0,n.style.transitionDuration="400ms"}),1e3))}function b(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:i,el:s}=e;i.style.width="",i.style.height="",u=t.isHorizontal()?s.offsetWidth:s.offsetHeight,h=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),d="auto"===t.params.scrollbar.dragSize?u*h:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i.style.width=`${d}px`:i.style.height=`${d}px`,s.style.display=h>=1?"none":"",t.params.scrollbar.hide&&(s.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function _(e){return t.isHorizontal()?e.clientX:e.clientY}function w(e){const{scrollbar:i,rtlTranslate:s}=t,{el:n}=i;let r;r=(_(e)-y(n)[t.isHorizontal()?"left":"top"]-(null!==c?c:d/2))/(u-d),r=Math.max(Math.min(r,1),0),s&&(r=1-r);const o=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*r;t.updateProgress(o),t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const i=t.params.scrollbar,{scrollbar:s,wrapperEl:n}=t,{el:o,dragEl:a}=s;p=!0,c=e.target===a?_(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),n.style.transitionDuration="100ms",a.style.transitionDuration="100ms",w(e),clearTimeout(m),o.style.transitionDuration="0ms",i.hide&&(o.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",e)}function T(e){const{scrollbar:i,wrapperEl:s}=t,{el:n,dragEl:o}=i;p&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,w(e),s.style.transitionDuration="0ms",n.style.transitionDuration="0ms",o.style.transitionDuration="0ms",r("scrollbarDragMove",e))}function E(e){const i=t.params.scrollbar,{scrollbar:s,wrapperEl:n}=t,{el:o}=s;p&&(p=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",n.style.transitionDuration=""),i.hide&&(clearTimeout(m),m=a((()=>{o.style.opacity=0,o.style.transitionDuration="400ms"}),1e3)),r("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())}function C(e){const{scrollbar:i,params:s}=t,n=i.el;if(!n)return;const r=n,o=!!s.passiveListeners&&{passive:!1,capture:!1},a=!!s.passiveListeners&&{passive:!0,capture:!1};if(!r)return;const c="on"===e?"addEventListener":"removeEventListener";r[c]("pointerdown",x,o),l[c]("pointermove",T,o),l[c]("pointerup",E,a)}function M(){const{scrollbar:e,el:i}=t;t.params.scrollbar=oe(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const s=t.params.scrollbar;if(!s.el)return;let n,r;if("string"==typeof s.el&&t.isElement&&(n=t.el.querySelector(s.el)),n||"string"!=typeof s.el)n||(n=s.el);else if(n=l.querySelectorAll(s.el),!n.length)return;t.params.uniqueNavElements&&"string"==typeof s.el&&n.length>1&&1===i.querySelectorAll(s.el).length&&(n=i.querySelector(s.el)),n.length>0&&(n=n[0]),n.classList.add(t.isHorizontal()?s.horizontalClass:s.verticalClass),n&&(r=n.querySelector(ae(t.params.scrollbar.dragClass)),r||(r=v("div",t.params.scrollbar.dragClass),n.append(r))),Object.assign(e,{el:n,dragEl:r}),s.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&C("on"),n&&n.classList[t.enabled?"remove":"add"](...o(t.params.scrollbar.lockClass))}function k(){const e=t.params.scrollbar,i=t.scrollbar.el;i&&i.classList.remove(...o(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&C("off")}i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},n("changeDirection",(()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:i}=t.scrollbar;i=S(i),i.forEach((i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),n("init",(()=>{!1===t.params.scrollbar.enabled?A():(M(),b(),g())})),n("update resize observerUpdate lock unlock changeDirection",(()=>{b()})),n("setTranslate",(()=>{g()})),n("setTransition",((e,i)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(i)})),n("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...o(t.params.scrollbar.lockClass))})),n("destroy",(()=>{k()}));const A=()=>{t.el.classList.add(...o(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...o(t.params.scrollbar.scrollbarDisabledClass)),k()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...o(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...o(t.params.scrollbar.scrollbarDisabledClass)),M(),b(),g()},disable:A,updateSize:b,setTranslate:g,init:M,destroy:k})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({parallax:{enabled:!1}});const n="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(e,i)=>{const{rtl:s}=t,n=s?-1:1,r=e.getAttribute("data-swiper-parallax")||"0";let o=e.getAttribute("data-swiper-parallax-x"),a=e.getAttribute("data-swiper-parallax-y");const l=e.getAttribute("data-swiper-parallax-scale"),c=e.getAttribute("data-swiper-parallax-opacity"),d=e.getAttribute("data-swiper-parallax-rotate");if(o||a?(o=o||"0",a=a||"0"):t.isHorizontal()?(o=r,a="0"):(a=r,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*i*n+"%":o*i*n+"px",a=a.indexOf("%")>=0?parseInt(a,10)*i+"%":a*i+"px",null!=c){const t=c-(c-1)*(1-Math.abs(i));e.style.opacity=t}let u=`translate3d(${o}, ${a}, 0px)`;if(null!=l){u+=` scale(${l-(l-1)*(1-Math.abs(i))})`}if(d&&null!=d){u+=` rotate(${d*i*-1}deg)`}e.style.transform=u},o=()=>{const{el:e,slides:i,progress:s,snapGrid:o,isElement:a}=t,l=m(e,n);t.isElement&&l.push(...m(t.hostEl,n)),l.forEach((e=>{r(e,s)})),i.forEach(((e,i)=>{let a=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(a+=Math.ceil(i/2)-s*(o.length-1)),a=Math.min(Math.max(a,-1),1),e.querySelectorAll(`${n}, [data-swiper-parallax-rotate]`).forEach((e=>{r(e,a)}))}))};s("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),s("init",(()=>{t.params.parallax.enabled&&o()})),s("setTranslate",(()=>{t.params.parallax.enabled&&o()})),s("setTransition",((e,i)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:i,hostEl:s}=t,r=[...i.querySelectorAll(n)];t.isElement&&r.push(...s.querySelectorAll(n)),r.forEach((t=>{let i=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),t.style.transitionDuration=`${i}ms`}))}(i)}))},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const o=r();i({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let a=1,l=!1,d=!1,u={x:0,y:0};const h=-3;let p,f;const g=[],v={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},b={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:{}},_={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let x,T=1;function S(){if(g.length<2)return 1;const e=g[0].pageX,t=g[0].pageY,i=g[1].pageX,s=g[1].pageY;return Math.sqrt((i-e)**2+(s-t)**2)}function E(){const e=t.params.zoom,i=v.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&v.imageEl&&v.imageEl.naturalWidth){const e=v.imageEl.naturalWidth/v.imageEl.offsetWidth;return Math.min(e,i)}return i}function C(e){const i=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(i)||t.slides.filter((t=>t.contains(e.target))).length>0}function M(e){const i=`.${t.params.zoom.containerClass}`;return!!e.target.matches(i)||[...t.hostEl.querySelectorAll(i)].filter((t=>t.contains(e.target))).length>0}function k(e){if("mouse"===e.pointerType&&g.splice(0,g.length),!C(e))return;const i=t.params.zoom;if(p=!1,f=!1,g.push(e),!(g.length<2)){if(p=!0,v.scaleStart=S(),!v.slideEl){v.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),v.slideEl||(v.slideEl=t.slides[t.activeIndex]);let s=v.slideEl.querySelector(`.${i.containerClass}`);if(s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),v.imageEl=s,v.imageWrapEl=s?w(v.imageEl,`.${i.containerClass}`)[0]:void 0,!v.imageWrapEl)return void(v.imageEl=void 0);v.maxRatio=E()}if(v.imageEl){const[e,t]=function(){if(g.length<2)return{x:null,y:null};const e=v.imageEl.getBoundingClientRect();return[(g[0].pageX+(g[1].pageX-g[0].pageX)/2-e.x-o.scrollX)/a,(g[0].pageY+(g[1].pageY-g[0].pageY)/2-e.y-o.scrollY)/a]}();v.originX=e,v.originY=t,v.imageEl.style.transitionDuration="0ms"}l=!0}}function A(e){if(!C(e))return;const i=t.params.zoom,s=t.zoom,n=g.findIndex((t=>t.pointerId===e.pointerId));n>=0&&(g[n]=e),g.length<2||(f=!0,v.scaleMove=S(),v.imageEl&&(s.scale=v.scaleMove/v.scaleStart*a,s.scale>v.maxRatio&&(s.scale=v.maxRatio-1+(s.scale-v.maxRatio+1)**.5),s.scale<i.minRatio&&(s.scale=i.minRatio+1-(i.minRatio-s.scale+1)**.5),v.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`))}function I(e){if(!C(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const i=t.params.zoom,s=t.zoom,n=g.findIndex((t=>t.pointerId===e.pointerId));n>=0&&g.splice(n,1),p&&f&&(p=!1,f=!1,v.imageEl&&(s.scale=Math.max(Math.min(s.scale,v.maxRatio),i.minRatio),v.imageEl.style.transitionDuration=`${t.params.speed}ms`,v.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`,a=s.scale,l=!1,s.scale>1&&v.slideEl?v.slideEl.classList.add(`${i.zoomedSlideClass}`):s.scale<=1&&v.slideEl&&v.slideEl.classList.remove(`${i.zoomedSlideClass}`),1===s.scale&&(v.originX=0,v.originY=0,v.slideEl=void 0)))}function O(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function L(e){const i="mouse"===e.pointerType&&t.params.zoom.panOnMouseMove;if(!C(e)||!M(e))return;const s=t.zoom;if(!v.imageEl)return;if(!b.isTouched||!v.slideEl)return void(i&&z(e));if(i)return void z(e);b.isMoved||(b.width=v.imageEl.offsetWidth||v.imageEl.clientWidth,b.height=v.imageEl.offsetHeight||v.imageEl.clientHeight,b.startX=c(v.imageWrapEl,"x")||0,b.startY=c(v.imageWrapEl,"y")||0,v.slideWidth=v.slideEl.offsetWidth,v.slideHeight=v.slideEl.offsetHeight,v.imageWrapEl.style.transitionDuration="0ms");const n=b.width*s.scale,r=b.height*s.scale;b.minX=Math.min(v.slideWidth/2-n/2,0),b.maxX=-b.minX,b.minY=Math.min(v.slideHeight/2-r/2,0),b.maxY=-b.minY,b.touchesCurrent.x=g.length>0?g[0].pageX:e.pageX,b.touchesCurrent.y=g.length>0?g[0].pageY:e.pageY;if(Math.max(Math.abs(b.touchesCurrent.x-b.touchesStart.x),Math.abs(b.touchesCurrent.y-b.touchesStart.y))>5&&(t.allowClick=!1),!b.isMoved&&!l){if(t.isHorizontal()&&(Math.floor(b.minX)===Math.floor(b.startX)&&b.touchesCurrent.x<b.touchesStart.x||Math.floor(b.maxX)===Math.floor(b.startX)&&b.touchesCurrent.x>b.touchesStart.x))return b.isTouched=!1,void O();if(!t.isHorizontal()&&(Math.floor(b.minY)===Math.floor(b.startY)&&b.touchesCurrent.y<b.touchesStart.y||Math.floor(b.maxY)===Math.floor(b.startY)&&b.touchesCurrent.y>b.touchesStart.y))return b.isTouched=!1,void O()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(x),t.touchEventsData.preventTouchMoveFromPointerMove=!0,x=setTimeout((()=>{t.destroyed||O()})),b.isMoved=!0;const o=(s.scale-a)/(v.maxRatio-t.params.zoom.minRatio),{originX:d,originY:u}=v;b.currentX=b.touchesCurrent.x-b.touchesStart.x+b.startX+o*(b.width-2*d),b.currentY=b.touchesCurrent.y-b.touchesStart.y+b.startY+o*(b.height-2*u),b.currentX<b.minX&&(b.currentX=b.minX+1-(b.minX-b.currentX+1)**.8),b.currentX>b.maxX&&(b.currentX=b.maxX-1+(b.currentX-b.maxX+1)**.8),b.currentY<b.minY&&(b.currentY=b.minY+1-(b.minY-b.currentY+1)**.8),b.currentY>b.maxY&&(b.currentY=b.maxY-1+(b.currentY-b.maxY+1)**.8),_.prevPositionX||(_.prevPositionX=b.touchesCurrent.x),_.prevPositionY||(_.prevPositionY=b.touchesCurrent.y),_.prevTime||(_.prevTime=Date.now()),_.x=(b.touchesCurrent.x-_.prevPositionX)/(Date.now()-_.prevTime)/2,_.y=(b.touchesCurrent.y-_.prevPositionY)/(Date.now()-_.prevTime)/2,Math.abs(b.touchesCurrent.x-_.prevPositionX)<2&&(_.x=0),Math.abs(b.touchesCurrent.y-_.prevPositionY)<2&&(_.y=0),_.prevPositionX=b.touchesCurrent.x,_.prevPositionY=b.touchesCurrent.y,_.prevTime=Date.now(),v.imageWrapEl.style.transform=`translate3d(${b.currentX}px, ${b.currentY}px,0)`}function P(){const e=t.zoom;v.slideEl&&t.activeIndex!==t.slides.indexOf(v.slideEl)&&(v.imageEl&&(v.imageEl.style.transform="translate3d(0,0,0) scale(1)"),v.imageWrapEl&&(v.imageWrapEl.style.transform="translate3d(0,0,0)"),v.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,a=1,v.slideEl=void 0,v.imageEl=void 0,v.imageWrapEl=void 0,v.originX=0,v.originY=0)}function z(e){if(a<=1||!v.imageWrapEl)return;if(!C(e)||!M(e))return;const t=o.getComputedStyle(v.imageWrapEl).transform,i=new o.DOMMatrix(t);if(!d)return d=!0,u.x=e.clientX,u.y=e.clientY,b.startX=i.e,b.startY=i.f,b.width=v.imageEl.offsetWidth||v.imageEl.clientWidth,b.height=v.imageEl.offsetHeight||v.imageEl.clientHeight,v.slideWidth=v.slideEl.offsetWidth,void(v.slideHeight=v.slideEl.offsetHeight);const s=(e.clientX-u.x)*h,n=(e.clientY-u.y)*h,r=b.width*a,l=b.height*a,c=v.slideWidth,p=v.slideHeight,f=Math.min(c/2-r/2,0),m=-f,g=Math.min(p/2-l/2,0),y=-g,_=Math.max(Math.min(b.startX+s,m),f),w=Math.max(Math.min(b.startY+n,y),g);v.imageWrapEl.style.transitionDuration="0ms",v.imageWrapEl.style.transform=`translate3d(${_}px, ${w}px, 0)`,u.x=e.clientX,u.y=e.clientY,b.startX=_,b.startY=w,b.currentX=_,b.currentY=w}function D(e){const i=t.zoom,s=t.params.zoom;if(!v.slideEl){e&&e.target&&(v.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),v.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?v.slideEl=m(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:v.slideEl=t.slides[t.activeIndex]);let i=v.slideEl.querySelector(`.${s.containerClass}`);i&&(i=i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),v.imageEl=i,v.imageWrapEl=i?w(v.imageEl,`.${s.containerClass}`)[0]:void 0}if(!v.imageEl||!v.imageWrapEl)return;let n,r,l,c,d,u,h,p,f,g,_,x,T,S,C,M,k,A;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),v.slideEl.classList.add(`${s.zoomedSlideClass}`),void 0===b.touchesStart.x&&e?(n=e.pageX,r=e.pageY):(n=b.touchesStart.x,r=b.touchesStart.y);const I=a,O="number"==typeof e?e:null;1===a&&O&&(n=void 0,r=void 0,b.touchesStart.x=void 0,b.touchesStart.y=void 0);const L=E();i.scale=O||L,a=O||L,!e||1===a&&O?(h=0,p=0):(k=v.slideEl.offsetWidth,A=v.slideEl.offsetHeight,l=y(v.slideEl).left+o.scrollX,c=y(v.slideEl).top+o.scrollY,d=l+k/2-n,u=c+A/2-r,f=v.imageEl.offsetWidth||v.imageEl.clientWidth,g=v.imageEl.offsetHeight||v.imageEl.clientHeight,_=f*i.scale,x=g*i.scale,T=Math.min(k/2-_/2,0),S=Math.min(A/2-x/2,0),C=-T,M=-S,I>0&&O&&"number"==typeof b.currentX&&"number"==typeof b.currentY?(h=b.currentX*i.scale/I,p=b.currentY*i.scale/I):(h=d*i.scale,p=u*i.scale),h<T&&(h=T),h>C&&(h=C),p<S&&(p=S),p>M&&(p=M)),O&&1===i.scale&&(v.originX=0,v.originY=0),b.currentX=h,b.currentY=p,v.imageWrapEl.style.transitionDuration="300ms",v.imageWrapEl.style.transform=`translate3d(${h}px, ${p}px,0)`,v.imageEl.style.transitionDuration="300ms",v.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`}function $(){const e=t.zoom,i=t.params.zoom;if(!v.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?v.slideEl=m(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:v.slideEl=t.slides[t.activeIndex];let e=v.slideEl.querySelector(`.${i.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),v.imageEl=e,v.imageWrapEl=e?w(v.imageEl,`.${i.containerClass}`)[0]:void 0}v.imageEl&&v.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,a=1,b.currentX=void 0,b.currentY=void 0,b.touchesStart.x=void 0,b.touchesStart.y=void 0,v.imageWrapEl.style.transitionDuration="300ms",v.imageWrapEl.style.transform="translate3d(0,0,0)",v.imageEl.style.transitionDuration="300ms",v.imageEl.style.transform="translate3d(0,0,0) scale(1)",v.slideEl.classList.remove(`${i.zoomedSlideClass}`),v.slideEl=void 0,v.originX=0,v.originY=0,t.params.zoom.panOnMouseMove&&(u={x:0,y:0},d&&(d=!1,b.startX=0,b.startY=0)))}function B(e){const i=t.zoom;i.scale&&1!==i.scale?$():D(e)}function R(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function F(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:i,activeListenerWithCapture:s}=R();t.wrapperEl.addEventListener("pointerdown",k,i),t.wrapperEl.addEventListener("pointermove",A,s),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,I,i)})),t.wrapperEl.addEventListener("pointermove",L,s)}function j(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:i,activeListenerWithCapture:s}=R();t.wrapperEl.removeEventListener("pointerdown",k,i),t.wrapperEl.removeEventListener("pointermove",A,s),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,I,i)})),t.wrapperEl.removeEventListener("pointermove",L,s)}Object.defineProperty(t.zoom,"scale",{get:()=>T,set(e){if(T!==e){const t=v.imageEl,i=v.slideEl;n("zoomChange",e,t,i)}T=e}}),s("init",(()=>{t.params.zoom.enabled&&F()})),s("destroy",(()=>{j()})),s("touchStart",((e,i)=>{t.zoom.enabled&&function(e){const i=t.device;if(!v.imageEl)return;if(b.isTouched)return;i.android&&e.cancelable&&e.preventDefault(),b.isTouched=!0;const s=g.length>0?g[0]:e;b.touchesStart.x=s.pageX,b.touchesStart.y=s.pageY}(i)})),s("touchEnd",((e,i)=>{t.zoom.enabled&&function(){const e=t.zoom;if(g.length=0,!v.imageEl)return;if(!b.isTouched||!b.isMoved)return b.isTouched=!1,void(b.isMoved=!1);b.isTouched=!1,b.isMoved=!1;let i=300,s=300;const n=_.x*i,r=b.currentX+n,o=_.y*s,a=b.currentY+o;0!==_.x&&(i=Math.abs((r-b.currentX)/_.x)),0!==_.y&&(s=Math.abs((a-b.currentY)/_.y));const l=Math.max(i,s);b.currentX=r,b.currentY=a;const c=b.width*e.scale,d=b.height*e.scale;b.minX=Math.min(v.slideWidth/2-c/2,0),b.maxX=-b.minX,b.minY=Math.min(v.slideHeight/2-d/2,0),b.maxY=-b.minY,b.currentX=Math.max(Math.min(b.currentX,b.maxX),b.minX),b.currentY=Math.max(Math.min(b.currentY,b.maxY),b.minY),v.imageWrapEl.style.transitionDuration=`${l}ms`,v.imageWrapEl.style.transform=`translate3d(${b.currentX}px, ${b.currentY}px,0)`}()})),s("doubleTap",((e,i)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&B(i)})),s("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&P()})),s("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&P()})),Object.assign(t.zoom,{enable:F,disable:j,in:D,out:$,toggle:B})},function(e){let{swiper:t,extendParams:i,on:s}=e;function n(e,t){const i=function(){let e,t,i;return(s,n)=>{for(t=-1,e=s.length;e-t>1;)i=e+t>>1,s[i]<=n?t=i:e=i;return e}}();let s,n;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=i(this.x,e),s=n-1,(e-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}i({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},s("beforeInit",(()=>{if("undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)){("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach((e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const i=`${t.params.eventsPrefix}init`,s=n=>{t.controller.control.push(n.detail[0]),t.update(),e.removeEventListener(i,s)};e.addEventListener(i,s)}}))}else t.controller.control=t.params.controller.control})),s("update",(()=>{r()})),s("resize",(()=>{r()})),s("observerUpdate",(()=>{r()})),s("setTranslate",((e,i,s)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(i,s)})),s("setTransition",((e,i,s)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(i,s)})),Object.assign(t.controller,{setTranslate:function(e,i){const s=t.controller.control;let r,o;const a=t.constructor;function l(e){if(e.destroyed)return;const i=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline=t.params.loop?new n(t.slidesGrid,e.slidesGrid):new n(t.snapGrid,e.snapGrid)}(e),o=-t.controller.spline.interpolate(-i)),o&&"container"!==t.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(r)&&Number.isFinite(r)||(r=1),o=(i-t.minTranslate())*r+e.minTranslate()),t.params.controller.inverse&&(o=e.maxTranslate()-o),e.updateProgress(o),e.setTranslate(o,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(s))for(let e=0;e<s.length;e+=1)s[e]!==i&&s[e]instanceof a&&l(s[e]);else s instanceof a&&i!==s&&l(s)},setTransition:function(e,i){const s=t.constructor,n=t.controller.control;let r;function o(i){i.destroyed||(i.setTransition(e,t),0!==e&&(i.transitionStart(),i.params.autoHeight&&a((()=>{i.updateAutoHeight()})),x(i.wrapperEl,(()=>{n&&i.transitionEnd()}))))}if(Array.isArray(n))for(r=0;r<n.length;r+=1)n[r]!==i&&n[r]instanceof s&&o(n[r]);else n instanceof s&&i!==n&&o(n)}})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let r,o,a=null,l=(new Date).getTime();function c(e){const t=a;0!==t.length&&C(t,e)}function d(e){(e=S(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function u(e){(e=S(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function h(e,t){(e=S(e)).forEach((e=>{e.setAttribute("role",t)}))}function p(e,t){(e=S(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function f(e,t){(e=S(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function m(e){(e=S(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function g(e){(e=S(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function y(e){if(13!==e.keyCode&&32!==e.keyCode)return;const i=t.params.a11y,s=e.target;if(!t.pagination||!t.pagination.el||s!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(ae(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=S(t.navigation.prevEl);S(t.navigation.nextEl).includes(s)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?c(i.lastSlideMessage):c(i.nextSlideMessage)),e.includes(s)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?c(i.firstSlideMessage):c(i.prevSlideMessage))}t.pagination&&s.matches(ae(t.params.pagination.bulletClass))&&s.click()}}function b(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function w(){return b()&&t.params.pagination.clickable}const x=(e,t,i)=>{d(e),"BUTTON"!==e.tagName&&(h(e,"button"),e.addEventListener("keydown",y)),f(e,i),function(e,t){(e=S(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},T=e=>{o&&o!==e.target&&!o.contains(e.target)&&(r=!0),t.a11y.clicked=!0},E=()=>{r=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},M=e=>{l=(new Date).getTime()},k=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-l<100)return;const i=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!i||!t.slides.includes(i))return;o=i;const s=t.slides.indexOf(i)===t.activeIndex,n=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(i);s||n||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{r||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(i.getAttribute("data-swiper-slide-index"))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(i)),0),r=!1)})))},A=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&p(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&h(t.slides,e.slideRole);const i=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((s,n)=>{const r=t.params.loop?parseInt(s.getAttribute("data-swiper-slide-index"),10):n;f(s,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,i))}))},I=()=>{const e=t.params.a11y;t.el.append(a);const i=t.el;e.containerRoleDescriptionMessage&&p(i,e.containerRoleDescriptionMessage),e.containerMessage&&f(i,e.containerMessage),e.containerRole&&h(i,e.containerRole);const n=t.wrapperEl,r=e.id||n.getAttribute("id")||`swiper-wrapper-${o=16,void 0===o&&(o=16),"x".repeat(o).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var o;const l=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var c;c=r,S(n).forEach((e=>{e.setAttribute("id",c)})),function(e,t){(e=S(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(n,l),A();let{nextEl:d,prevEl:u}=t.navigation?t.navigation:{};if(d=S(d),u=S(u),d&&d.forEach((t=>x(t,r,e.nextSlideMessage))),u&&u.forEach((t=>x(t,r,e.prevSlideMessage))),w()){S(t.pagination.el).forEach((e=>{e.addEventListener("keydown",y)}))}s().addEventListener("visibilitychange",M),t.el.addEventListener("focus",k,!0),t.el.addEventListener("focus",k,!0),t.el.addEventListener("pointerdown",T,!0),t.el.addEventListener("pointerup",E,!0)};n("beforeInit",(()=>{a=v("span",t.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")})),n("afterInit",(()=>{t.params.a11y.enabled&&I()})),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&A()})),n("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:i}=t.navigation;i&&(t.isBeginning?(m(i),u(i)):(g(i),d(i))),e&&(t.isEnd?(m(e),u(e)):(g(e),d(e)))}()})),n("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;b()&&t.pagination.bullets.forEach((i=>{t.params.pagination.clickable&&(d(i),t.params.pagination.renderBullet||(h(i,"button"),f(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,_(i)+1)))),i.matches(ae(t.params.pagination.bulletActiveClass))?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")}))}()})),n("destroy",(()=>{t.params.a11y.enabled&&function(){a&&a.remove();let{nextEl:e,prevEl:i}=t.navigation?t.navigation:{};e=S(e),i=S(i),e&&e.forEach((e=>e.removeEventListener("keydown",y))),i&&i.forEach((e=>e.removeEventListener("keydown",y))),w()&&S(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",y)}));s().removeEventListener("visibilitychange",M),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",k,!0),t.el.removeEventListener("pointerdown",T,!0),t.el.removeEventListener("pointerup",E,!0))}()}))},function(e){let{swiper:t,extendParams:i,on:s}=e;i({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let n=!1,o={};const a=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=e=>{const t=r();let i;i=e?new URL(e):t.location;const s=i.pathname.slice(1).split("/").filter((e=>""!==e)),n=s.length;return{key:s[n-2],value:s[n-1]}},c=(e,i)=>{const s=r();if(!n||!t.params.history.enabled)return;let o;o=t.params.url?new URL(t.params.url):s.location;const l=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${i}"]`):t.slides[i];let c=a(l.getAttribute("data-history"));if(t.params.history.root.length>0){let i=t.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),c=`${i}/${e?`${e}/`:""}${c}`}else o.pathname.includes(e)||(c=`${e?`${e}/`:""}${c}`);t.params.history.keepQuery&&(c+=o.search);const d=s.history.state;d&&d.value===c||(t.params.history.replaceState?s.history.replaceState({value:c},null,c):s.history.pushState({value:c},null,c))},d=(e,i,s)=>{if(i)for(let n=0,r=t.slides.length;n<r;n+=1){const r=t.slides[n];if(a(r.getAttribute("data-history"))===i){const i=t.getSlideIndex(r);t.slideTo(i,e,s)}}else t.slideTo(0,e,s)},u=()=>{o=l(t.params.url),d(t.params.speed,o.value,!1)};s("init",(()=>{t.params.history.enabled&&(()=>{const e=r();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);n=!0,o=l(t.params.url),o.key||o.value?(d(0,o.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",u)):t.params.history.replaceState||e.addEventListener("popstate",u)}})()})),s("destroy",(()=>{t.params.history.enabled&&(()=>{const e=r();t.params.history.replaceState||e.removeEventListener("popstate",u)})()})),s("transitionEnd _freeModeNoMomentumRelease",(()=>{n&&c(t.params.history.key,t.activeIndex)})),s("slideChange",(()=>{n&&t.params.cssMode&&c(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:i,emit:n,on:o}=e,a=!1;const l=s(),c=r();i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,i){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.find((e=>e.getAttribute("data-hash")===i));if(!e)return 0;return parseInt(e.getAttribute("data-swiper-slide-index"),10)}return t.getSlideIndex(m(t.slidesEl,`.${t.params.slideClass}[data-hash="${i}"], swiper-slide[data-hash="${i}"]`)[0])}}});const d=()=>{n("hashChange");const e=l.location.hash.replace("#",""),i=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(i?i.getAttribute("data-hash"):"")){const i=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===i||Number.isNaN(i))return;t.slideTo(i)}},u=()=>{if(!a||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],i=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&c.history&&c.history.replaceState?(c.history.replaceState(null,null,`#${i}`||""),n("hashSet")):(l.location.hash=i||"",n("hashSet"))};o("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;a=!0;const e=l.location.hash.replace("#","");if(e){const i=0,s=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(s||0,i,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&c.addEventListener("hashchange",d)})()})),o("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&c.removeEventListener("hashchange",d)})),o("transitionEnd _freeModeNoMomentumRelease",(()=>{a&&u()})),o("slideChange",(()=>{a&&t.params.cssMode&&u()}))},function(e){let t,i,{swiper:n,extendParams:r,on:o,emit:a,params:l}=e;n.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let c,d,u,h,p,f,m,g,v=l&&l.autoplay?l.autoplay.delay:3e3,y=l&&l.autoplay?l.autoplay.delay:3e3,b=(new Date).getTime();function _(e){n&&!n.destroyed&&n.wrapperEl&&e.target===n.wrapperEl&&(n.wrapperEl.removeEventListener("transitionend",_),g||e.detail&&e.detail.bySwiperTouchMove||C())}const w=()=>{if(n.destroyed||!n.autoplay.running)return;n.autoplay.paused?d=!0:d&&(y=c,d=!1);const e=n.autoplay.paused?c:b+y-(new Date).getTime();n.autoplay.timeLeft=e,a("autoplayTimeLeft",e,e/v),i=requestAnimationFrame((()=>{w()}))},x=e=>{if(n.destroyed||!n.autoplay.running)return;cancelAnimationFrame(i),w();let s=void 0===e?n.params.autoplay.delay:e;v=n.params.autoplay.delay,y=n.params.autoplay.delay;const r=(()=>{let e;if(e=n.virtual&&n.params.virtual.enabled?n.slides.find((e=>e.classList.contains("swiper-slide-active"))):n.slides[n.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===e&&(s=r,v=r,y=r),c=s;const o=n.params.speed,l=()=>{n&&!n.destroyed&&(n.params.autoplay.reverseDirection?!n.isBeginning||n.params.loop||n.params.rewind?(n.slidePrev(o,!0,!0),a("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(n.slides.length-1,o,!0,!0),a("autoplay")):!n.isEnd||n.params.loop||n.params.rewind?(n.slideNext(o,!0,!0),a("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(0,o,!0,!0),a("autoplay")),n.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{x()}))))};return s>0?(clearTimeout(t),t=setTimeout((()=>{l()}),s)):requestAnimationFrame((()=>{l()})),s},T=()=>{b=(new Date).getTime(),n.autoplay.running=!0,x(),a("autoplayStart")},S=()=>{n.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(i),a("autoplayStop")},E=(e,i)=>{if(n.destroyed||!n.autoplay.running)return;clearTimeout(t),e||(m=!0);const s=()=>{a("autoplayPause"),n.params.autoplay.waitForTransition?n.wrapperEl.addEventListener("transitionend",_):C()};if(n.autoplay.paused=!0,i)return f&&(c=n.params.autoplay.delay),f=!1,void s();const r=c||n.params.autoplay.delay;c=r-((new Date).getTime()-b),n.isEnd&&c<0&&!n.params.loop||(c<0&&(c=0),s())},C=()=>{n.isEnd&&c<0&&!n.params.loop||n.destroyed||!n.autoplay.running||(b=(new Date).getTime(),m?(m=!1,x(c)):x(),n.autoplay.paused=!1,a("autoplayResume"))},M=()=>{if(n.destroyed||!n.autoplay.running)return;const e=s();"hidden"===e.visibilityState&&(m=!0,E(!0)),"visible"===e.visibilityState&&C()},k=e=>{"mouse"===e.pointerType&&(m=!0,g=!0,n.animating||n.autoplay.paused||E(!0))},A=e=>{"mouse"===e.pointerType&&(g=!1,n.autoplay.paused&&C())};o("init",(()=>{n.params.autoplay.enabled&&(n.params.autoplay.pauseOnMouseEnter&&(n.el.addEventListener("pointerenter",k),n.el.addEventListener("pointerleave",A)),s().addEventListener("visibilitychange",M),T())})),o("destroy",(()=>{n.el&&"string"!=typeof n.el&&(n.el.removeEventListener("pointerenter",k),n.el.removeEventListener("pointerleave",A)),s().removeEventListener("visibilitychange",M),n.autoplay.running&&S()})),o("_freeModeStaticRelease",(()=>{(h||m)&&C()})),o("_freeModeNoMomentumRelease",(()=>{n.params.autoplay.disableOnInteraction?S():E(!0,!0)})),o("beforeTransitionStart",((e,t,i)=>{!n.destroyed&&n.autoplay.running&&(i||!n.params.autoplay.disableOnInteraction?E(!0,!0):S())})),o("sliderFirstMove",(()=>{!n.destroyed&&n.autoplay.running&&(n.params.autoplay.disableOnInteraction?S():(u=!0,h=!1,m=!1,p=setTimeout((()=>{m=!0,h=!0,E(!0)}),200)))})),o("touchEnd",(()=>{if(!n.destroyed&&n.autoplay.running&&u){if(clearTimeout(p),clearTimeout(t),n.params.autoplay.disableOnInteraction)return h=!1,void(u=!1);h&&n.params.cssMode&&C(),h=!1,u=!1}})),o("slideChange",(()=>{!n.destroyed&&n.autoplay.running&&(f=!0)})),Object.assign(n.autoplay,{start:T,stop:S,pause:E,resume:C})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,o=!1;function a(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const i=e.clickedIndex,s=e.clickedSlide;if(s&&s.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let n;n=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,t.params.loop?t.slideToLoop(n):t.slideTo(n)}function l(){const{thumbs:e}=t.params;if(r)return!1;r=!0;const i=t.constructor;if(e.swiper instanceof i){if(e.swiper.destroyed)return r=!1,!1;t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update()}else if(d(e.swiper)){const s=Object.assign({},e.swiper);Object.assign(s,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new i(s),o=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",a),!0}function c(e){const i=t.thumbs.swiper;if(!i||i.destroyed)return;const s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;let n=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(n=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(n=1),n=Math.floor(n),i.slides.forEach((e=>e.classList.remove(r))),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let e=0;e<n;e+=1)m(i.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((e=>{e.classList.add(r)}));else for(let e=0;e<n;e+=1)i.slides[t.realIndex+e]&&i.slides[t.realIndex+e].classList.add(r);const o=t.params.thumbs.autoScrollOffset,a=o&&!i.params.loop;if(t.realIndex!==i.realIndex||a){const n=i.activeIndex;let r,l;if(i.params.loop){const e=i.slides.find((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`));r=i.slides.indexOf(e),l=t.activeIndex>t.previousIndex?"next":"prev"}else r=t.realIndex,l=r>t.previousIndex?"next":"prev";a&&(r+="next"===l?o:-1*o),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(r)<0&&(i.params.centeredSlides?r=r>n?r-Math.floor(s/2)+1:r+Math.floor(s/2)-1:r>n&&i.params.slidesPerGroup,i.slideTo(r,e?0:void 0))}}t.thumbs={swiper:null},n("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const i=s(),n=()=>{const s="string"==typeof e.swiper?i.querySelector(e.swiper):e.swiper;if(s&&s.swiper)e.swiper=s.swiper,l(),c(!0);else if(s){const i=`${t.params.eventsPrefix}init`,n=r=>{e.swiper=r.detail[0],s.removeEventListener(i,n),l(),c(!0),e.swiper.update(),t.update()};s.addEventListener(i,n)}return s},r=()=>{if(t.destroyed)return;n()||requestAnimationFrame(r)};requestAnimationFrame(r)}else l(),c(!0)})),n("slideChange update resize observerUpdate",(()=>{c()})),n("setTransition",((e,i)=>{const s=t.thumbs.swiper;s&&!s.destroyed&&s.setTransition(i)})),n("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&o&&e.destroy()})),Object.assign(t.thumbs,{init:l,update:c})},function(e){let{swiper:t,extendParams:i,emit:s,once:n}=e;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:i}=t;0===e.velocities.length&&e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:l()})},onTouchEnd:function(e){let{currentPos:i}=e;if(t.params.cssMode)return;const{params:r,wrapperEl:o,rtlTranslate:a,snapGrid:c,touchEventsData:d}=t,u=l()-d.touchStartTime;if(i<-t.minTranslate())t.slideTo(t.activeIndex);else if(i>-t.maxTranslate())t.slides.length<c.length?t.slideTo(c.length-1):t.slideTo(t.slides.length-1);else{if(r.freeMode.momentum){if(d.velocities.length>1){const e=d.velocities.pop(),i=d.velocities.pop(),s=e.position-i.position,n=e.time-i.time;t.velocity=s/n,t.velocity/=2,Math.abs(t.velocity)<r.freeMode.minimumVelocity&&(t.velocity=0),(n>150||l()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,d.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const i=t.velocity*e;let u=t.translate+i;a&&(u=-u);let h,p=!1;const f=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let m;if(u<t.maxTranslate())r.freeMode.momentumBounce?(u+t.maxTranslate()<-f&&(u=t.maxTranslate()-f),h=t.maxTranslate(),p=!0,d.allowMomentumBounce=!0):u=t.maxTranslate(),r.loop&&r.centeredSlides&&(m=!0);else if(u>t.minTranslate())r.freeMode.momentumBounce?(u-t.minTranslate()>f&&(u=t.minTranslate()+f),h=t.minTranslate(),p=!0,d.allowMomentumBounce=!0):u=t.minTranslate(),r.loop&&r.centeredSlides&&(m=!0);else if(r.freeMode.sticky){let e;for(let t=0;t<c.length;t+=1)if(c[t]>-u){e=t;break}u=Math.abs(c[e]-u)<Math.abs(c[e-1]-u)||"next"===t.swipeDirection?c[e]:c[e-1],u=-u}if(m&&n("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=a?Math.abs((-u-t.translate)/t.velocity):Math.abs((u-t.translate)/t.velocity),r.freeMode.sticky){const i=Math.abs((a?-u:u)-t.translate),s=t.slidesSizesGrid[t.activeIndex];e=i<s?r.speed:i<2*s?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode.momentumBounce&&p?(t.updateProgress(h),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating=!0,x(o,(()=>{t&&!t.destroyed&&d.allowMomentumBounce&&(s("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(h),x(o,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(s("_freeModeNoMomentumRelease"),t.updateProgress(u),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,x(o,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(u),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&s("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||u>=r.longSwipesMs)&&(s("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,i,s,n,{swiper:r,extendParams:o,on:a}=e;o({grid:{rows:1,fill:"column"}});const l=()=>{let e=r.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*r.size:"string"==typeof e&&(e=parseFloat(e)),e};a("init",(()=>{n=r.params.grid&&r.params.grid.rows>1})),a("update",(()=>{const{params:e,el:t}=r,i=e.grid&&e.grid.rows>1;n&&!i?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),s=1,r.emitContainerClasses()):!n&&i&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),r.emitContainerClasses()),n=i})),r.grid={initSlides:e=>{const{slidesPerView:n}=r.params,{rows:o,fill:a}=r.params.grid,l=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:e.length;s=Math.floor(l/o),t=Math.floor(l/o)===l/o?l:Math.ceil(l/o)*o,"auto"!==n&&"row"===a&&(t=Math.max(t,n*o)),i=t/o},unsetSlides:()=>{r.slides&&r.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[r.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,n,o)=>{const{slidesPerGroup:a}=r.params,c=l(),{rows:d,fill:u}=r.params.grid,h=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:o.length;let p,f,m;if("row"===u&&a>1){const i=Math.floor(e/(a*d)),s=e-d*a*i,r=0===i?a:Math.min(Math.ceil((h-i*d*a)/d),a);m=Math.floor(s/r),f=s-m*r+i*a,p=f+m*t/d,n.style.order=p}else"column"===u?(f=Math.floor(e/d),m=e-f*d,(f>s||f===s&&m===d-1)&&(m+=1,m>=d&&(m=0,f+=1))):(m=Math.floor(e/i),f=e-m*i);n.row=m,n.column=f,n.style.height=`calc((100% - ${(d-1)*c}px) / ${d})`,n.style[r.getDirectionLabel("margin-top")]=0!==m?c&&`${c}px`:"",n.swiperSlideGridSet=!0},updateWrapperSize:(e,i)=>{const{centeredSlides:s,roundLengths:n}=r.params,o=l(),{rows:a}=r.params.grid;if(r.virtualSize=(e+o)*t,r.virtualSize=Math.ceil(r.virtualSize/a)-o,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+o}px`),s){const e=[];for(let t=0;t<i.length;t+=1){let s=i[t];n&&(s=Math.floor(s)),i[t]<r.virtualSize+i[0]&&e.push(s)}i.splice(0,i.length),i.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:le.bind(t),prependSlide:ce.bind(t),addSlide:de.bind(t),removeSlide:ue.bind(t),removeAllSlides:he.bind(t)})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({fadeEffect:{crossFade:!1}}),pe({effect:"fade",swiper:t,on:s,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let i=0;i<e.length;i+=1){const e=t.slides[i];let s=-e.swiperSlideOffset;t.params.virtualTranslate||(s-=t.translate);let n=0;t.isHorizontal()||(n=s,s=0);const r=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),o=fe(0,e);o.style.opacity=r,o.style.transform=`translate3d(${s}px, ${n}px, 0px)`}},setTransition:e=>{const i=t.slides.map((e=>f(e)));i.forEach((t=>{t.style.transitionDuration=`${e}ms`})),me({swiper:t,duration:e,transformElements:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const n=(e,t,i)=>{let s=i?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=i?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"left":"top")).split(" ")),e.append(s)),n||(n=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"right":"bottom")).split(" ")),e.append(n)),s&&(s.style.opacity=Math.max(-t,0)),n&&(n.style.opacity=Math.max(t,0))};pe({effect:"cube",swiper:t,on:s,setTranslate:()=>{const{el:e,wrapperEl:i,slides:s,width:r,height:o,rtlTranslate:a,size:l,browser:c}=t,d=E(t),u=t.params.cubeEffect,h=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled;let f,m=0;u.shadow&&(h?(f=t.wrapperEl.querySelector(".swiper-cube-shadow"),f||(f=v("div","swiper-cube-shadow"),t.wrapperEl.append(f)),f.style.height=`${r}px`):(f=e.querySelector(".swiper-cube-shadow"),f||(f=v("div","swiper-cube-shadow"),e.append(f))));for(let e=0;e<s.length;e+=1){const t=s[e];let i=e;p&&(i=parseInt(t.getAttribute("data-swiper-slide-index"),10));let r=90*i,o=Math.floor(r/360);a&&(r=-r,o=Math.floor(-r/360));const c=Math.max(Math.min(t.progress,1),-1);let f=0,g=0,v=0;i%4==0?(f=4*-o*l,v=0):(i-1)%4==0?(f=0,v=4*-o*l):(i-2)%4==0?(f=l+4*o*l,v=l):(i-3)%4==0&&(f=-l,v=3*l+4*l*o),a&&(f=-f),h||(g=f,f=0);const y=`rotateX(${d(h?0:-r)}deg) rotateY(${d(h?r:0)}deg) translate3d(${f}px, ${g}px, ${v}px)`;c<=1&&c>-1&&(m=90*i+90*c,a&&(m=90*-i-90*c)),t.style.transform=y,u.slideShadows&&n(t,c,h)}if(i.style.transformOrigin=`50% 50% -${l/2}px`,i.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,u.shadow)if(h)f.style.transform=`translate3d(0px, ${r/2+u.shadowOffset}px, ${-r/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${u.shadowScale})`;else{const e=Math.abs(m)-90*Math.floor(Math.abs(m)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),i=u.shadowScale,s=u.shadowScale/t,n=u.shadowOffset;f.style.transform=`scale3d(${i}, 1, ${s}) translate3d(0px, ${o/2+n}px, ${-o/2/s}px) rotateX(-89.99deg)`}const g=(c.isSafari||c.isWebView)&&c.needPerspectiveFix?-l/2:0;i.style.transform=`translate3d(0px,0,${g}px) rotateX(${d(t.isHorizontal()?0:m)}deg) rotateY(${d(t.isHorizontal()?-m:0)}deg)`,i.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:i,slides:s}=t;if(s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=i.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const i=Math.max(Math.min(t.progress,1),-1);n(t,i,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({flipEffect:{slideShadows:!0,limitRotation:!0}});const n=(e,i)=>{let s=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=ge("flip",e,t.isHorizontal()?"left":"top")),n||(n=ge("flip",e,t.isHorizontal()?"right":"bottom")),s&&(s.style.opacity=Math.max(-i,0)),n&&(n.style.opacity=Math.max(i,0))};pe({effect:"flip",swiper:t,on:s,setTranslate:()=>{const{slides:e,rtlTranslate:i}=t,s=t.params.flipEffect,r=E(t);for(let o=0;o<e.length;o+=1){const a=e[o];let l=a.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(a.progress,1),-1));const c=a.swiperSlideOffset;let d=-180*l,u=0,h=t.params.cssMode?-c-t.translate:-c,p=0;t.isHorizontal()?i&&(d=-d):(p=h,h=0,u=-d,d=0),a.style.zIndex=-Math.abs(Math.round(l))+e.length,s.slideShadows&&n(a,l);const f=`translate3d(${h}px, ${p}px, 0px) rotateX(${r(u)}deg) rotateY(${r(d)}deg)`;fe(0,a).style.transform=f}},setTransition:e=>{const i=t.slides.map((e=>f(e)));i.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),me({swiper:t,duration:e,transformElements:i})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let i=e.progress;t.params.flipEffect.limitRotation&&(i=Math.max(Math.min(e.progress,1),-1)),n(e,i)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),pe({effect:"coverflow",swiper:t,on:s,setTranslate:()=>{const{width:e,height:i,slides:s,slidesSizesGrid:n}=t,r=t.params.coverflowEffect,o=t.isHorizontal(),a=t.translate,l=o?e/2-a:i/2-a,c=o?r.rotate:-r.rotate,d=r.depth,u=E(t);for(let e=0,t=s.length;e<t;e+=1){const t=s[e],i=n[e],a=(l-t.swiperSlideOffset-i/2)/i,h="function"==typeof r.modifier?r.modifier(a):a*r.modifier;let p=o?c*h:0,f=o?0:c*h,m=-d*Math.abs(h),g=r.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(r.stretch)/100*i);let v=o?0:g*h,y=o?g*h:0,b=1-(1-r.scale)*Math.abs(h);Math.abs(y)<.001&&(y=0),Math.abs(v)<.001&&(v=0),Math.abs(m)<.001&&(m=0),Math.abs(p)<.001&&(p=0),Math.abs(f)<.001&&(f=0),Math.abs(b)<.001&&(b=0);const _=`translate3d(${y}px,${v}px,${m}px) rotateX(${u(f)}deg) rotateY(${u(p)}deg) scale(${b})`;if(fe(0,t).style.transform=_,t.style.zIndex=1-Math.abs(Math.round(h)),r.slideShadows){let e=o?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),i=o?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=ge("coverflow",t,o?"left":"top")),i||(i=ge("coverflow",t,o?"right":"bottom")),e&&(e.style.opacity=h>0?h:0),i&&(i.style.opacity=-h>0?-h:0)}}},setTransition:e=>{t.slides.map((e=>f(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({creativeEffect:{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 n=e=>"string"==typeof e?e:`${e}px`;pe({effect:"creative",swiper:t,on:s,setTranslate:()=>{const{slides:e,wrapperEl:i,slidesSizesGrid:s}=t,r=t.params.creativeEffect,{progressMultiplier:o}=r,a=t.params.centeredSlides,l=E(t);if(a){const e=s[0]/2-t.params.slidesOffsetBefore||0;i.style.transform=`translateX(calc(50% - ${e}px))`}for(let i=0;i<e.length;i+=1){const s=e[i],c=s.progress,d=Math.min(Math.max(s.progress,-r.limitProgress),r.limitProgress);let u=d;a||(u=Math.min(Math.max(s.originalProgress,-r.limitProgress),r.limitProgress));const h=s.swiperSlideOffset,p=[t.params.cssMode?-h-t.translate:-h,0,0],f=[0,0,0];let m=!1;t.isHorizontal()||(p[1]=p[0],p[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};d<0?(g=r.next,m=!0):d>0&&(g=r.prev,m=!0),p.forEach(((e,t)=>{p[t]=`calc(${e}px + (${n(g.translate[t])} * ${Math.abs(d*o)}))`})),f.forEach(((e,t)=>{let i=g.rotate[t]*Math.abs(d*o);f[t]=i})),s.style.zIndex=-Math.abs(Math.round(c))+e.length;const v=p.join(", "),y=`rotateX(${l(f[0])}deg) rotateY(${l(f[1])}deg) rotateZ(${l(f[2])}deg)`,b=u<0?`scale(${1+(1-g.scale)*u*o})`:`scale(${1-(1-g.scale)*u*o})`,_=u<0?1+(1-g.opacity)*u*o:1-(1-g.opacity)*u*o,w=`translate3d(${v}) ${y} ${b}`;if(m&&g.shadow||!m){let e=s.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=ge("creative",s)),e){const t=r.shadowPerProgress?d*(1/r.limitProgress):d;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const x=fe(0,s);x.style.transform=w,x.style.opacity=_,g.origin&&(x.style.transformOrigin=g.origin)}},setTransition:e=>{const i=t.slides.map((e=>f(e)));i.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),me({swiper:t,duration:e,transformElements:i,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),pe({effect:"cards",swiper:t,on:s,setTranslate:()=>{const{slides:e,activeIndex:i,rtlTranslate:s}=t,n=t.params.cardsEffect,{startTranslate:r,isTouched:o}=t.touchEventsData,a=s?-t.translate:t.translate;for(let l=0;l<e.length;l+=1){const c=e[l],d=c.progress,u=Math.min(Math.max(d,-4),4);let h=c.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(h-=e[0].swiperSlideOffset);let p=t.params.cssMode?-h-t.translate:-h,f=0;const m=-100*Math.abs(u);let g=1,v=-n.perSlideRotate*u,y=n.perSlideOffset-.75*Math.abs(u);const b=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,_=(b===i||b===i-1)&&u>0&&u<1&&(o||t.params.cssMode)&&a<r,w=(b===i||b===i+1)&&u<0&&u>-1&&(o||t.params.cssMode)&&a>r;if(_||w){const e=(1-Math.abs((Math.abs(u)-.5)/.5))**.5;v+=-28*u*e,g+=-.5*e,y+=96*e,f=-25*e*Math.abs(u)+"%"}if(p=u<0?`calc(${p}px ${s?"-":"+"} (${y*Math.abs(u)}%))`:u>0?`calc(${p}px ${s?"-":"+"} (-${y*Math.abs(u)}%))`:`${p}px`,!t.isHorizontal()){const e=f;f=p,p=e}const x=u<0?""+(1+(1-g)*u):""+(1-(1-g)*u),T=`\n translate3d(${p}, ${f}, ${m}px)\n rotateZ(${n.rotate?s?-v:v:0}deg)\n scale(${x})\n `;if(n.slideShadows){let e=c.querySelector(".swiper-slide-shadow");e||(e=ge("cards",c)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(u)-.5)/.5,0),1))}c.style.zIndex=-Math.abs(Math.round(d))+e.length;fe(0,c).style.transform=T}},setTransition:e=>{const i=t.slides.map((e=>f(e)));i.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),me({swiper:t,duration:e,transformElements:i})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}];return re.use(ve),re}();