/*! Anime.js - IIFE Version: v4.1.3 Plugin URL: https://animejs.com License: (c) 2025 Julian Garnier | Released under the MIT license !*/ 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)=>ei?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)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{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=_&&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=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{const t=de((l-e._offset)*e._speed,12),r=e._fps=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._fpse.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{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{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=p,n=getComputedStyle(e),r=n.strokeLinecap,o="non-scaling-stroke"===n.vectorEffect?e:null;let a=r;const l=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(" "),n=+i[0],l=+i[1],c=(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})(o),d=-1e3*n*c,u=l*s*c+d,h=s*c+(0===n&&1===l||1===n&&0===l?0:10*c)-u;if("butt"!==r){const t=n===l?"butt":r;a!==t&&(e.style.strokeLinecap=`${t}`,a=t)}e.setAttribute("stroke-dashoffset",`${d}`),e.setAttribute("stroke-dasharray",`${u} ${h}`)}return Reflect.apply(i,e,t)}:j(i)?(...t)=>Reflect.apply(i,e,t):i}});return"1000"!==e.getAttribute("pathLength")&&(e.setAttribute("pathLength","1000"),l.setAttribute("draw",`${t} ${i}`)),l})(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{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{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{const i=[0],s=e-1;for(let e=1;et=>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{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=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;e2&&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;b1?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)||vP)&&(P=y),3===o&&(p=D-b,f=D)}if(!isNaN(p)){let e=0;be(this,t=>{e>=p&&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{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?"":i?"":n?"":"*";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),ee.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{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(...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;i0===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(;fnew 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&&tn,d=!l&&ir;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:di?i+(u-i)*f:u{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:pd?d+(f-d)/h:f_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:Mh?h+(k-h)*C:ku?-1:1:wF&&(F=D)}if(!t){const t=P===h?x>h?-1:1:xF&&(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=th?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()=>{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(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=tg&&!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+=``),i+=``,n?(i+="{value}",i+=`{value}`):i+="{value}",i+="",r&&(i+=""),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,``).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[...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;ej(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.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{const t=e.parentElement;t&&i.add(t),e.remove()}),a.push(s)}i.forEach(Gi);for(let t=0,i=a.length;tthis.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;el(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=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}}(); /*! Atropos Version: 2.0.2 Plugin URL: https://atroposjs.com License: Copyright 2021-2024 | Released under the MIT License !*/ /*! Bootstrap Version: v5.3.7 Plugin URL: https://getbootstrap.com/ License: Copyright 2011-2025 The Bootstrap Authors | Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) !*/ !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=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),r=e=>{e.dispatchEvent(new Event(i))},o=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),a=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(s(e)):null,l=e=>{if(!o(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},c=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),d=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?d(e.parentNode):null},u=()=>{},h=e=>{e.offsetHeight},p=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,f=[],m=()=>"rtl"===document.documentElement.dir,g=e=>{var t;t=()=>{const t=p();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?(f.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of f)e()}),f.push(t)):t()},v=(e,t=[],i=e)=>"function"==typeof e?e.call(...t):i,y=(e,t,s=!0)=>{if(!s)return void v(e);const n=(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),v(e))};t.addEventListener(i,a),setTimeout(()=>{o||r(t)},n)},b=(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))])},_=/[^.]*(?=\..*)\.|.*/,w=/\..*/,x=/::\d+$/,T={};let S=1;const E={mouseenter:"mouseover",mouseleave:"mouseout"},C=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 M(e,t){return t&&`${t}::${S++}`||e.uidEvent||S++}function k(e){const t=M(e);return e.uidEvent=t,T[t]=T[t]||{},T[t]}function A(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function I(e,t,i){const s="string"==typeof t,n=s?i:t||i;let r=z(e);return C.has(r)||(r=e),[s,n,r]}function O(e,t,i,s,n){if("string"!=typeof t||!e)return;let[r,o,a]=I(t,i,s);if(t in E){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=k(e),c=l[a]||(l[a]={}),d=A(c,o,r?i:null);if(d)return void(d.oneOff=d.oneOff&&n);const u=M(o,t.replace(_,"")),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 $(n,{delegateTarget:o}),s.oneOff&&D.off(e,n.type,t,i),i.apply(o,[n])}}(e,i,o):function(e,t){return function i(s){return $(s,{delegateTarget:e}),i.oneOff&&D.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 L(e,t,i,s,n){const r=A(t[i],s,n);r&&(e.removeEventListener(i,r,Boolean(n)),delete t[i][r.uidEvent])}function P(e,t,i,s){const n=t[i]||{};for(const[r,o]of Object.entries(n))r.includes(s)&&L(e,t,i,o.callable,o.delegationSelector)}function z(e){return e=e.replace(w,""),E[e]||e}const D={on(e,t,i,s){O(e,t,i,s,!1)},one(e,t,i,s){O(e,t,i,s,!0)},off(e,t,i,s){if("string"!=typeof t||!e)return;const[n,r,o]=I(t,i,s),a=o!==t,l=k(e),c=l[o]||{},d=t.startsWith(".");if(void 0===r){if(d)for(const i of Object.keys(l))P(e,l,i,t.slice(1));for(const[i,s]of Object.entries(c)){const n=i.replace(x,"");a&&!t.includes(n)||L(e,l,o,s.callable,s.delegationSelector)}}else{if(!Object.keys(c).length)return;L(e,l,o,r,n?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const s=p();let n=null,r=!0,o=!0,a=!1;t!==z(t)&&s&&(n=s.Event(t,i),s(e).trigger(n),r=!n.isPropagationStopped(),o=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=$(new Event(t,{bubbles:r,cancelable:!0}),i);return a&&l.preventDefault(),o&&e.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function $(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 B(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 R(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const F={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${R(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${R(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]=B(e.dataset[s])}return t},getDataAttribute:(e,t)=>B(e.getAttribute(`data-bs-${R(t)}`))};class j{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=o(t)?F.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...o(t)?F.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,s]of Object.entries(t)){const t=e[i],r=o(t)?"element":n(t);if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${s}".`)}}}class N extends j{constructor(e,i){super(),(e=a(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),D.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){y(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(a(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 H=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},W={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=>!c(e)&&l(e))},getSelectorFromElement(e){const t=H(e);return t&&W.findOne(t)?t:null},getElementFromSelector(e){const t=H(e);return t?W.findOne(t):null},getMultipleElementsFromSelector(e){const t=H(e);return t?W.find(t):[]}},q=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;D.on(document,i,`[data-bs-dismiss="${s}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),c(this))return;const n=W.getElementFromSelector(this)||this.closest(`.${s}`);e.getOrCreateInstance(n)[t]()})},Y=".bs.alert",X=`close${Y}`,V=`closed${Y}`;class G extends N{static get NAME(){return"alert"}close(){if(D.trigger(this._element,X).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(),D.trigger(this._element,V),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=G.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)}})}}q(G,"close"),g(G);const U='[data-bs-toggle="button"]';class Q extends N{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=Q.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}D.on(document,"click.bs.button.data-api",U,e=>{e.preventDefault();const t=e.target.closest(U);Q.getOrCreateInstance(t).toggle()}),g(Q);const Z=".bs.swipe",K=`touchstart${Z}`,J=`touchmove${Z}`,ee=`touchend${Z}`,te=`pointerdown${Z}`,ie=`pointerup${Z}`,se={endCallback:null,leftCallback:null,rightCallback:null},ne={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class re extends j{constructor(e,t){super(),this._element=e,e&&re.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return se}static get DefaultType(){return ne}static get NAME(){return"swipe"}dispose(){D.off(this._element,Z)}_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(),v(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&&v(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(D.on(this._element,te,e=>this._start(e)),D.on(this._element,ie,e=>this._end(e)),this._element.classList.add("pointer-event")):(D.on(this._element,K,e=>this._start(e)),D.on(this._element,J,e=>this._move(e)),D.on(this._element,ee,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 oe=".bs.carousel",ae=".data-api",le="ArrowLeft",ce="ArrowRight",de="next",ue="prev",he="left",pe="right",fe=`slide${oe}`,me=`slid${oe}`,ge=`keydown${oe}`,ve=`mouseenter${oe}`,ye=`mouseleave${oe}`,be=`dragstart${oe}`,_e=`load${oe}${ae}`,we=`click${oe}${ae}`,xe="carousel",Te="active",Se=".active",Ee=".carousel-item",Ce=Se+Ee,Me={[le]:pe,[ce]:he},ke={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ae={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ie extends N{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=W.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===xe&&this.cycle()}static get Default(){return ke}static get DefaultType(){return Ae}static get NAME(){return"carousel"}next(){this._slide(de)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(ue)}pause(){this._isSliding&&r(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?D.one(this._element,me,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void D.one(this._element,me,()=>this.to(e));const i=this._getItemIndex(this._getActive());if(i===e)return;const s=e>i?de:ue;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&&D.on(this._element,ge,e=>this._keydown(e)),"hover"===this._config.pause&&(D.on(this._element,ve,()=>this.pause()),D.on(this._element,ye,()=>this._maybeEnableCycle())),this._config.touch&&re.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of W.find(".carousel-item img",this._element))D.on(e,be,e=>e.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(he)),rightCallback:()=>this._slide(this._directionToOrder(pe)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new re(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Me[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=W.findOne(Se,this._indicatorsElement);t.classList.remove(Te),t.removeAttribute("aria-current");const i=W.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(Te),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===de,n=t||b(this._getItems(),i,s,this._config.wrap);if(n===i)return;const r=this._getItemIndex(n),o=t=>D.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:r});if(o(fe).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),h(n),i.classList.add(l),n.classList.add(l);this._queueCallback(()=>{n.classList.remove(l,c),n.classList.add(Te),i.classList.remove(Te,c,l),this._isSliding=!1,o(me)},i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return W.findOne(Ce,this._element)}_getItems(){return W.find(Ee,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return m()?e===he?ue:de:e===he?de:ue}_orderToDirection(e){return m()?e===ue?he:pe:e===ue?pe:he}static jQueryInterface(e){return this.each(function(){const t=Ie.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)})}}D.on(document,we,"[data-bs-slide], [data-bs-slide-to]",function(e){const t=W.getElementFromSelector(this);if(!t||!t.classList.contains(xe))return;e.preventDefault();const i=Ie.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===F.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),D.on(window,_e,()=>{const e=W.find('[data-bs-ride="carousel"]');for(const t of e)Ie.getOrCreateInstance(t)}),g(Ie);const Oe=".bs.collapse",Le=`show${Oe}`,Pe=`shown${Oe}`,ze=`hide${Oe}`,De=`hidden${Oe}`,$e=`click${Oe}.data-api`,Be="show",Re="collapse",Fe="collapsing",je=`:scope .${Re} .${Re}`,Ne='[data-bs-toggle="collapse"]',He={parent:null,toggle:!0},We={parent:"(null|element)",toggle:"boolean"};class qe extends N{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=W.find(Ne);for(const e of i){const t=W.getSelectorFromElement(e),i=W.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 He}static get DefaultType(){return We}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=>qe.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(D.trigger(this._element,Le).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(Re),this._element.classList.add(Fe),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(Fe),this._element.classList.add(Re,Be),this._element.style[t]="",D.trigger(this._element,Pe)},this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(D.trigger(this._element,ze).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,h(this._element),this._element.classList.add(Fe),this._element.classList.remove(Re,Be);for(const e of this._triggerArray){const t=W.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(Fe),this._element.classList.add(Re),D.trigger(this._element,De)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(Be)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=a(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Ne);for(const t of e){const e=W.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=W.find(je,this._config.parent);return W.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=qe.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}}D.on(document,$e,Ne,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of W.getMultipleElementsFromSelector(this))qe.getOrCreateInstance(e,{toggle:!1}).toggle()}),g(qe);var Ye="top",Xe="bottom",Ve="right",Ge="left",Ue="auto",Qe=[Ye,Xe,Ve,Ge],Ze="start",Ke="end",Je="clippingParents",et="viewport",tt="popper",it="reference",st=Qe.reduce(function(e,t){return e.concat([t+"-"+Ze,t+"-"+Ke])},[]),nt=[].concat(Qe,[Ue]).reduce(function(e,t){return e.concat([t,t+"-"+Ze,t+"-"+Ke])},[]),rt="beforeRead",ot="read",at="afterRead",lt="beforeMain",ct="main",dt="afterMain",ut="beforeWrite",ht="write",pt="afterWrite",ft=[rt,ot,at,lt,ct,dt,ut,ht,pt];function mt(e){return e?(e.nodeName||"").toLowerCase():null}function gt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vt(e){return e instanceof gt(e).Element||e instanceof Element}function yt(e){return e instanceof gt(e).HTMLElement||e instanceof HTMLElement}function bt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof gt(e).ShadowRoot||e instanceof ShadowRoot)}const _t={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];yt(n)&&mt(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},{});yt(s)&&mt(s)&&(Object.assign(s.style,r),Object.keys(n).forEach(function(e){s.removeAttribute(e)}))})}},requires:["computeStyles"]};function wt(e){return e.split("-")[0]}var xt=Math.max,Tt=Math.min,St=Math.round;function Et(){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 Ct(){return!/^((?!chrome|android).)*safari/i.test(Et())}function Mt(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var s=e.getBoundingClientRect(),n=1,r=1;t&&yt(e)&&(n=e.offsetWidth>0&&St(s.width)/e.offsetWidth||1,r=e.offsetHeight>0&&St(s.height)/e.offsetHeight||1);var o=(vt(e)?gt(e):window).visualViewport,a=!Ct()&&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 kt(e){var t=Mt(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 At(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&bt(i)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function It(e){return gt(e).getComputedStyle(e)}function Ot(e){return["table","td","th"].indexOf(mt(e))>=0}function Lt(e){return((vt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pt(e){return"html"===mt(e)?e:e.assignedSlot||e.parentNode||(bt(e)?e.host:null)||Lt(e)}function zt(e){return yt(e)&&"fixed"!==It(e).position?e.offsetParent:null}function Dt(e){for(var t=gt(e),i=zt(e);i&&Ot(i)&&"static"===It(i).position;)i=zt(i);return i&&("html"===mt(i)||"body"===mt(i)&&"static"===It(i).position)?t:i||function(e){var t=/firefox/i.test(Et());if(/Trident/i.test(Et())&&yt(e)&&"fixed"===It(e).position)return null;var i=Pt(e);for(bt(i)&&(i=i.host);yt(i)&&["html","body"].indexOf(mt(i))<0;){var s=It(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 $t(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bt(e,t,i){return xt(e,Tt(t,i))}function Rt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ft(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}const jt={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=wt(i.placement),l=$t(a),c=[Ge,Ve].indexOf(a)>=0?"height":"width";if(r&&o){var d=function(e,t){return Rt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ft(e,Qe))}(n.padding,i),u=kt(r),h="y"===l?Ye:Ge,p="y"===l?Xe:Ve,f=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],m=o[l]-i.rects.reference[l],g=Dt(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=Bt(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)))&&At(t.elements.popper,s)&&(t.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nt(e){return e.split("-")[1]}var Ht={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wt(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=Ge,_=Ye,w=window;if(c){var x=Dt(i),T="clientHeight",S="clientWidth";if(x===gt(i)&&"static"!==It(x=Lt(i)).position&&"absolute"===a&&(T="scrollHeight",S="scrollWidth"),n===Ye||(n===Ge||n===Ve)&&r===Ke)_=Xe,m-=(u&&x===w&&w.visualViewport?w.visualViewport.height:x[T])-s.height,m*=l?1:-1;if(n===Ge||(n===Ye||n===Xe)&&r===Ke)b=Ve,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&&Ht),M=!0===d?function(e,t){var i=e.x,s=e.y,n=t.devicePixelRatio||1;return{x:St(i*n)/n||0,y:St(s*n)/n||0}}({x:p,y:m},gt(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 qt={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:wt(t.placement),variation:Nt(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,Wt(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,Wt(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 Yt={passive:!0};const Xt={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=gt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",i.update,Yt)}),a&&l.addEventListener("resize",i.update,Yt),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",i.update,Yt)}),a&&l.removeEventListener("resize",i.update,Yt)}},data:{}};var Vt={left:"right",right:"left",bottom:"top",top:"bottom"};function Gt(e){return e.replace(/left|right|bottom|top/g,function(e){return Vt[e]})}var Ut={start:"end",end:"start"};function Qt(e){return e.replace(/start|end/g,function(e){return Ut[e]})}function Zt(e){var t=gt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kt(e){return Mt(Lt(e)).left+Zt(e).scrollLeft}function Jt(e){var t=It(e),i=t.overflow,s=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function ei(e){return["html","body","#document"].indexOf(mt(e))>=0?e.ownerDocument.body:yt(e)&&Jt(e)?e:ei(Pt(e))}function ti(e,t){var i;void 0===t&&(t=[]);var s=ei(e),n=s===(null==(i=e.ownerDocument)?void 0:i.body),r=gt(s),o=n?[r].concat(r.visualViewport||[],Jt(s)?s:[]):s,a=t.concat(o);return n?a:a.concat(ti(Pt(o)))}function ii(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function si(e,t,i){return t===et?ii(function(e,t){var i=gt(e),s=Lt(e),n=i.visualViewport,r=s.clientWidth,o=s.clientHeight,a=0,l=0;if(n){r=n.width,o=n.height;var c=Ct();(c||!c&&"fixed"===t)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:r,height:o,x:a+Kt(e),y:l}}(e,i)):vt(t)?function(e,t){var i=Mt(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):ii(function(e){var t,i=Lt(e),s=Zt(e),n=null==(t=e.ownerDocument)?void 0:t.body,r=xt(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=xt(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-s.scrollLeft+Kt(e),l=-s.scrollTop;return"rtl"===It(n||i).direction&&(a+=xt(i.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(Lt(e)))}function ni(e,t,i,s){var n="clippingParents"===t?function(e){var t=ti(Pt(e)),i=["absolute","fixed"].indexOf(It(e).position)>=0&&yt(e)?Dt(e):e;return vt(i)?t.filter(function(e){return vt(e)&&At(e,i)&&"body"!==mt(e)}):[]}(e):[].concat(t),r=[].concat(n,[i]),o=r[0],a=r.reduce(function(t,i){var n=si(e,i,s);return t.top=xt(n.top,t.top),t.right=Tt(n.right,t.right),t.bottom=Tt(n.bottom,t.bottom),t.left=xt(n.left,t.left),t},si(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 ri(e){var t,i=e.reference,s=e.element,n=e.placement,r=n?wt(n):null,o=n?Nt(n):null,a=i.x+i.width/2-s.width/2,l=i.y+i.height/2-s.height/2;switch(r){case Ye:t={x:a,y:i.y-s.height};break;case Xe:t={x:a,y:i.y+i.height};break;case Ve:t={x:i.x+i.width,y:l};break;case Ge:t={x:i.x-s.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?$t(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case Ze:t[c]=t[c]-(i[d]/2-s[d]/2);break;case Ke:t[c]=t[c]+(i[d]/2-s[d]/2)}}return t}function oi(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?Je:a,c=i.rootBoundary,d=void 0===c?et:c,u=i.elementContext,h=void 0===u?tt:u,p=i.altBoundary,f=void 0!==p&&p,m=i.padding,g=void 0===m?0:m,v=Rt("number"!=typeof g?g:Ft(g,Qe)),y=h===tt?it:tt,b=e.rects.popper,_=e.elements[f?y:h],w=ni(vt(_)?_:_.contextElement||Lt(e.elements.popper),l,d,o),x=Mt(e.elements.reference),T=ri({reference:x,element:b,placement:n}),S=ii(Object.assign({},b,T)),E=h===tt?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===tt&&M){var k=M[n];Object.keys(C).forEach(function(e){var t=[Ve,Xe].indexOf(e)>=0?1:-1,i=[Ye,Xe].indexOf(e)>=0?"y":"x";C[e]+=k[i]*t})}return C}function ai(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?nt:l,d=Nt(s),u=d?a?st:st.filter(function(e){return Nt(e)===d}):Qe,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]=oi(e,{placement:i,boundary:n,rootBoundary:r,padding:o})[wt(i)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}const li={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=wt(g),y=l||(v===g||!f?[Gt(g)]:function(e){if(wt(e)===Ue)return[];var t=Gt(e);return[Qt(e),t,Qt(t)]}(g)),b=[g].concat(y).reduce(function(e,i){return e.concat(wt(i)===Ue?ai(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=0,I=A?"width":"height",O=oi(t,{placement:C,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),L=A?k?Ve:Ge:k?Xe:Ye;_[I]>w[I]&&(L=Gt(L));var P=Gt(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 ci(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 di(e){return[Ye,Ve,Xe,Ge].some(function(t){return e[t]>=0})}const ui={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=oi(t,{elementContext:"reference"}),a=oi(t,{altBoundary:!0}),l=ci(o,s),c=ci(a,n,r),d=di(l),u=di(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 hi={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=nt.reduce(function(e,i){return e[i]=function(e,t,i){var s=wt(e),n=[Ge,Ye].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,[Ge,Ve].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 pi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=ri({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};const fi={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=oi(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=wt(t.placement),y=Nt(t.placement),b=!y,_=$t(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"===_?Ye:Ge,O="y"===_?Xe:Ve,L="y"===_?"height":"width",P=x[_],z=P+g[I],D=P-g[O],$=p?-S[L]/2:0,B=y===Ze?T[L]:S[L],R=y===Ze?-S[L]:-T[L],F=t.elements.arrow,j=p&&F?kt(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=Bt(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&&Dt(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=Bt(p?Tt(z,P+Y-U-G):z,P,p?xt(D,Q):D);x[_]=Z,k[_]=Z-P}if(a){var K,J="x"===_?Ye:Ge,ee="x"===_?Xe:Ve,te=x[w],ie="y"===w?"height":"width",se=te+g[J],ne=te-g[ee],re=-1!==[Ye,Ge].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=Bt(e,t,i);return s>i?i:s}(ae,te,le):Bt(p?ae:se,te,p?le:ne);x[w]=ce,k[w]=ce-te}t.modifiersData[s]=k}},requiresIfExists:["offset"]};function mi(e,t,i){void 0===i&&(i=!1);var s,n,r=yt(t),o=yt(t)&&function(e){var t=e.getBoundingClientRect(),i=St(t.width)/e.offsetWidth||1,s=St(t.height)/e.offsetHeight||1;return 1!==i||1!==s}(t),a=Lt(t),l=Mt(e,o,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!i)&&(("body"!==mt(t)||Jt(a))&&(c=(s=t)!==gt(s)&&yt(s)?{scrollLeft:(n=s).scrollLeft,scrollTop:n.scrollTop}:Zt(s)),yt(t)?((d=Mt(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Kt(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function gi(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 vi={placement:"bottom",modifiers:[],strategy:"absolute"};function yi(){for(var e=arguments.length,t=new Array(e),i=0;iNumber.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)&&(F.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...v(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const i=W.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>l(e));i.length&&b(i,t,e===ki,!i.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Gi.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=W.find(Ri);for(const i of t){const t=Gi.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=[Mi,ki].includes(e.key);if(!s&&!i)return;if(t&&!i)return;e.preventDefault();const n=this.matches(Bi)?this:W.prev(this,Bi)[0]||W.next(this,Bi)[0]||W.findOne(Bi,e.delegateTarget.parentNode),r=Gi.getOrCreateInstance(n);if(s)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),n.focus())}}D.on(document,zi,Bi,Gi.dataApiKeydownHandler),D.on(document,zi,Fi,Gi.dataApiKeydownHandler),D.on(document,Pi,Gi.clearMenus),D.on(document,Di,Gi.clearMenus),D.on(document,Pi,Bi,function(e){e.preventDefault(),Gi.getOrCreateInstance(this).toggle()}),g(Gi);const Ui="backdrop",Qi="show",Zi=`mousedown.bs.${Ui}`,Ki={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ji={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class es extends j{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Ki}static get DefaultType(){return Ji}static get NAME(){return Ui}show(e){if(!this._config.isVisible)return void v(e);this._append();const t=this._getElement();this._config.isAnimated&&h(t),t.classList.add(Qi),this._emulateAnimation(()=>{v(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(Qi),this._emulateAnimation(()=>{this.dispose(),v(e)})):v(e)}dispose(){this._isAppended&&(D.off(this._element,Zi),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=a(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),D.on(e,Zi,()=>{v(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){y(e,this._getElement(),this._config.isAnimated)}}const ts=".bs.focustrap",is=`focusin${ts}`,ss=`keydown.tab${ts}`,ns="backward",rs={autofocus:!0,trapElement:null},os={autofocus:"boolean",trapElement:"element"};class as extends j{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return rs}static get DefaultType(){return os}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),D.off(document,ts),D.on(document,is,e=>this._handleFocusin(e)),D.on(document,ss,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,D.off(document,ts))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=W.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===ns?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ns:"forward")}}const ls=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",cs=".sticky-top",ds="padding-right",us="margin-right";class hs{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,ds,t=>t+e),this._setElementAttributes(ls,ds,t=>t+e),this._setElementAttributes(cs,us,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ds),this._resetElementAttributes(ls,ds),this._resetElementAttributes(cs,us)}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&&F.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{const i=F.getDataAttribute(e,t);null!==i?(F.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(o(e))t(e);else for(const i of W.find(e,this._element))t(i)}}const ps=".bs.modal",fs=`hide${ps}`,ms=`hidePrevented${ps}`,gs=`hidden${ps}`,vs=`show${ps}`,ys=`shown${ps}`,bs=`resize${ps}`,_s=`click.dismiss${ps}`,ws=`mousedown.dismiss${ps}`,xs=`keydown.dismiss${ps}`,Ts=`click${ps}.data-api`,Ss="modal-open",Es="show",Cs="modal-static",Ms={backdrop:!0,focus:!0,keyboard:!0},ks={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class As extends N{constructor(e,t){super(e,t),this._dialog=W.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new hs,this._addEventListeners()}static get Default(){return Ms}static get DefaultType(){return ks}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;D.trigger(this._element,vs,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ss),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){if(!this._isShown||this._isTransitioning)return;D.trigger(this._element,fs).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Es),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){D.off(window,ps),D.off(this._dialog,ps),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new es({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new as({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=W.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),h(this._element),this._element.classList.add(Es);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,D.trigger(this._element,ys,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){D.on(this._element,xs,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),D.on(window,bs,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),D.on(this._element,ws,e=>{D.one(this._element,_s,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(Ss),this._resetAdjustments(),this._scrollBar.reset(),D.trigger(this._element,gs)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(D.trigger(this._element,ms).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Cs)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Cs),this._queueCallback(()=>{this._element.classList.remove(Cs),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=m()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=m()?"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=As.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}})}}D.on(document,Ts,'[data-bs-toggle="modal"]',function(e){const t=W.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),D.one(t,vs,e=>{e.defaultPrevented||D.one(t,gs,()=>{l(this)&&this.focus()})});const i=W.findOne(".modal.show");i&&As.getInstance(i).hide();As.getOrCreateInstance(t).toggle(this)}),q(As),g(As);const Is=".bs.offcanvas",Os=".data-api",Ls=`load${Is}${Os}`,Ps="show",zs="showing",Ds="hiding",$s=".offcanvas.show",Bs=`show${Is}`,Rs=`shown${Is}`,Fs=`hide${Is}`,js=`hidePrevented${Is}`,Ns=`hidden${Is}`,Hs=`resize${Is}`,Ws=`click${Is}${Os}`,qs=`keydown.dismiss${Is}`,Ys={backdrop:!0,keyboard:!0,scroll:!1},Xs={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Vs extends N{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ys}static get DefaultType(){return Xs}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(D.trigger(this._element,Bs,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new hs).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(zs);this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ps),this._element.classList.remove(zs),D.trigger(this._element,Rs,{relatedTarget:e})},this._element,!0)}hide(){if(!this._isShown)return;if(D.trigger(this._element,Fs).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ds),this._backdrop.hide();this._queueCallback(()=>{this._element.classList.remove(Ps,Ds),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new hs).reset(),D.trigger(this._element,Ns)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new es({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():D.trigger(this._element,js)}:null})}_initializeFocusTrap(){return new as({trapElement:this._element})}_addEventListeners(){D.on(this._element,qs,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():D.trigger(this._element,js))})}static jQueryInterface(e){return this.each(function(){const t=Vs.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)}})}}D.on(document,Ws,'[data-bs-toggle="offcanvas"]',function(e){const t=W.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this))return;D.one(t,Ns,()=>{l(this)&&this.focus()});const i=W.findOne($s);i&&i!==t&&Vs.getInstance(i).hide();Vs.getOrCreateInstance(t).toggle(this)}),D.on(window,Ls,()=>{for(const e of W.find($s))Vs.getOrCreateInstance(e).show()}),D.on(window,Hs,()=>{for(const e of W.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Vs.getOrCreateInstance(e).hide()}),q(Vs),g(Vs);const Gs={"*":["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:[]},Us=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Qs=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Zs=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Us.has(i)||Boolean(Qs.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(i))};const Ks={allowList:Gs,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Js={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},en={entry:"(string|element|function|null)",selector:"(string|element)"};class tn extends j{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ks}static get DefaultType(){return Js}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},en)}_setContent(e,t,i){const s=W.findOne(i,e);s&&((t=this._resolvePossibleFunction(t))?o(t)?this._putElementInTemplate(a(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)Zs(t,n)||e.removeAttribute(t.nodeName)}return s.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return v(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const sn=new Set(["sanitize","allowList","sanitizeFn"]),nn="fade",rn="show",on=".tooltip-inner",an=".modal",ln="hide.bs.modal",cn="hover",dn="focus",un="click",hn={AUTO:"auto",TOP:"top",RIGHT:m()?"left":"right",BOTTOM:"bottom",LEFT:m()?"right":"left"},pn={allowList:Gs,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:'',title:"",trigger:"hover focus"},fn={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 mn extends N{constructor(e,t){if(void 0===Ti)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 pn}static get DefaultType(){return fn}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),D.off(this._element.closest(an),ln,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=D.trigger(this._element,this.constructor.eventName("show")),t=(d(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),D.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(rn),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))D.on(e,"mouseover",u);this._queueCallback(()=>{D.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(D.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(rn),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))D.off(e,"mouseover",u);this._activeTrigger[un]=!1,this._activeTrigger[dn]=!1,this._activeTrigger[cn]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),D.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(nn,rn),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(nn),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new tn({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[on]: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(nn)}_isShown(){return this.tip&&this.tip.classList.contains(rn)}_createPopper(e){const t=v(this._config.placement,[this,e,this._element]),i=hn[t.toUpperCase()];return xi(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 v(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,...v(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)D.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[un]=!(t._isShown()&&t._activeTrigger[un]),t.toggle()});else if("manual"!==t){const e=t===cn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===cn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");D.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?dn:cn]=!0,t._enter()}),D.on(this._element,i,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?dn:cn]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},D.on(this._element.closest(an),ln,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=F.getDataAttributes(this._element);for(const e of Object.keys(t))sn.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:a(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=mn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}g(mn);const gn=".popover-header",vn=".popover-body",yn={...mn.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},bn={...mn.DefaultType,content:"(null|string|element|function)"};class _n extends mn{static get Default(){return yn}static get DefaultType(){return bn}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[gn]:this._getTitle(),[vn]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=_n.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}g(_n);const wn=".bs.scrollspy",xn=`activate${wn}`,Tn=`click${wn}`,Sn=`load${wn}.data-api`,En="active",Cn="[href]",Mn=".nav-link",kn=`${Mn}, .nav-item > ${Mn}, .list-group-item`,An={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},In={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class On extends N{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 An}static get DefaultType(){return In}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=a(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&&(D.off(this._config.target,Tn),D.on(this._config.target,Tn,Cn,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=W.find(Cn,this._config.target);for(const t of e){if(!t.hash||c(t))continue;const e=W.findOne(decodeURI(t.hash),this._element);l(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(En),this._activateParents(e),D.trigger(this._element,xn,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))W.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(En);else for(const t of W.parents(e,".nav, .list-group"))for(const e of W.prev(t,kn))e.classList.add(En)}_clearActiveClass(e){e.classList.remove(En);const t=W.find(`${Cn}.${En}`,e);for(const e of t)e.classList.remove(En)}static jQueryInterface(e){return this.each(function(){const t=On.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]()}})}}D.on(window,Sn,()=>{for(const e of W.find('[data-bs-spy="scroll"]'))On.getOrCreateInstance(e)}),g(On);const Ln=".bs.tab",Pn=`hide${Ln}`,zn=`hidden${Ln}`,Dn=`show${Ln}`,$n=`shown${Ln}`,Bn=`click${Ln}`,Rn=`keydown${Ln}`,Fn=`load${Ln}`,jn="ArrowLeft",Nn="ArrowRight",Hn="ArrowUp",Wn="ArrowDown",qn="Home",Yn="End",Xn="active",Vn="fade",Gn="show",Un=".dropdown-toggle",Qn=`:not(${Un})`,Zn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Kn=`${`.nav-link${Qn}, .list-group-item${Qn}, [role="tab"]${Qn}`}, ${Zn}`,Jn=`.${Xn}[data-bs-toggle="tab"], .${Xn}[data-bs-toggle="pill"], .${Xn}[data-bs-toggle="list"]`;class er extends N{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),D.on(this._element,Rn,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?D.trigger(t,Pn,{relatedTarget:e}):null;D.trigger(e,Dn,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Xn),this._activate(W.getElementFromSelector(e));this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),D.trigger(e,$n,{relatedTarget:t})):e.classList.add(Gn)},e,e.classList.contains(Vn))}_deactivate(e,t){if(!e)return;e.classList.remove(Xn),e.blur(),this._deactivate(W.getElementFromSelector(e));this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),D.trigger(e,zn,{relatedTarget:t})):e.classList.remove(Gn)},e,e.classList.contains(Vn))}_keydown(e){if(![jn,Nn,Hn,Wn,qn,Yn].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(e=>!c(e));let i;if([qn,Yn].includes(e.key))i=t[e.key===qn?0:t.length-1];else{const s=[Nn,Wn].includes(e.key);i=b(t,e.target,s,!0)}i&&(i.focus({preventScroll:!0}),er.getOrCreateInstance(i).show())}_getChildren(){return W.find(Kn,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=W.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=W.findOne(e,i);n&&n.classList.toggle(s,t)};s(Un,Xn),s(".dropdown-menu",Gn),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(Xn)}_getInnerElement(e){return e.matches(Kn)?e:W.findOne(Kn,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=er.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}D.on(document,Bn,Zn,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this)||er.getOrCreateInstance(this).show()}),D.on(window,Fn,()=>{for(const e of W.find(Jn))er.getOrCreateInstance(e)}),g(er);const tr=".bs.toast",ir=`mouseover${tr}`,sr=`mouseout${tr}`,nr=`focusin${tr}`,rr=`focusout${tr}`,or=`hide${tr}`,ar=`hidden${tr}`,lr=`show${tr}`,cr=`shown${tr}`,dr="hide",ur="show",hr="showing",pr={animation:"boolean",autohide:"boolean",delay:"number"},fr={animation:!0,autohide:!0,delay:5e3};class mr extends N{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return fr}static get DefaultType(){return pr}static get NAME(){return"toast"}show(){if(D.trigger(this._element,lr).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(dr),h(this._element),this._element.classList.add(ur,hr),this._queueCallback(()=>{this._element.classList.remove(hr),D.trigger(this._element,cr),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown())return;if(D.trigger(this._element,or).defaultPrevented)return;this._element.classList.add(hr),this._queueCallback(()=>{this._element.classList.add(dr),this._element.classList.remove(hr,ur),D.trigger(this._element,ar)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ur),super.dispose()}isShown(){return this._element.classList.contains(ur)}_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(){D.on(this._element,ir,e=>this._onInteraction(e,!0)),D.on(this._element,sr,e=>this._onInteraction(e,!1)),D.on(this._element,nr,e=>this._onInteraction(e,!0)),D.on(this._element,rr,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=mr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}q(mr),g(mr);return{Alert:G,Button:Q,Carousel:Ie,Collapse:qe,Dropdown:Gi,Modal:As,Offcanvas:Vs,Popover:_n,ScrollSpy:On,Tab:er,Toast:mr,Tooltip:mn}}), /*! GSAP Version: 3.13.0 Plugin URL: https://gsap.com 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 !*/ 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} /*! * GSAP 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var s,n,r,o,a,l,c,d,u,h,p,f,m,g,v,y,b,_={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},w={duration:.5,overwrite:!1,delay:0},x=1e8,T=1e-8,S=2*Math.PI,E=S/4,C=0,M=Math.sqrt,k=Math.cos,A=Math.sin,I=function(e){return"string"==typeof e},O=function(e){return"function"==typeof e},L=function(e){return"number"==typeof e},P=function(e){return void 0===e},z=function(e){return"object"==typeof e},D=function(e){return!1!==e},$=function(){return"undefined"!=typeof window},B=function(e){return O(e)||I(e)},R="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},F=Array.isArray,j=/(?:-?\.?\d|\.)+/gi,N=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,H=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,W=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,q=/[+-]=-?[.\d]+/,Y=/[^,'"\[\]\s]+/gi,X=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,V={},G={},U=function(e){return(G=Ee(e,V))&&Ci},Q=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},Z=function(e,t){return!t&&console.warn(e)},K=function(e,t){return e&&(V[e]=t)&&G&&(G[e]=t)||V},J=function(){return 0},ee={suppressEvents:!0,isStart:!0,kill:!1},te={suppressEvents:!0,kill:!1},ie={suppressEvents:!0},se={},ne=[],re={},oe={},ae={},le=30,ce=[],de="",ue=function(e){var t,i,s=e[0];if(z(s)||O(s)||(e=[e]),!(t=(s._gsap||{}).harness)){for(i=ce.length;i--&&!ce[i].targetTest(s););t=ce[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new jt(e[i],t)))||e.splice(i,1);return e},he=function(e){return e._gsap||ue(st(e))[0]._gsap},pe=function(e,t,i){return(i=e[t])&&O(i)?e[t]():P(i)&&e.getAttribute&&e.getAttribute(t)||i},fe=function(e,t){return(e=e.split(",")).forEach(t)||e},me=function(e){return Math.round(1e5*e)/1e5||0},ge=function(e){return Math.round(1e7*e)/1e7||0},ve=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},ye=function(e,t){for(var i=t.length,s=0;e.indexOf(t[s])<0&&++sr;)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},Ie=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},Oe=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Le=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},Pe=function(e,t,i,s){return e._startAt&&(n?e._startAt.revert(te):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,s))},ze=function e(t){return!t||t._ts&&e(t.parent)},De=function(e){return e._repeat?$e(e._tTime,e=e.duration()+e._rDelay)*e:0},$e=function(e,t){var i=Math.floor(e=ge(e/t));return e&&i===e?i-1:i},Be=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Re=function(e){return e._end=ge(e._start+(e._tDur/Math.abs(e._ts||e._rts||T)||0))},Fe=function(e,t){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=ge(i._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Re(e),i._dirty||Le(i,e)),e},je=function(e,t){var i;if((t._time||!t._dur&&t._initted||t._startT)&&t.render(i,!0)),Le(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&i.totalTime(i._tTime),i=i._dp;e._zTime=-1e-8}},Ne=function(e,t,i,s){return t.parent&&Oe(t),t._start=ge((L(i)?i:i||e!==o?Ue(e,i,t):e._time)+t._delay),t._end=ge(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ae(e,t,"_first","_last",e._sort?"_start":0),Ye(t)||(e._recent=t),s||je(e,t),e._ts<0&&Fe(e,e._tTime),e},He=function(e,t){return(V.ScrollTrigger||Q("scrollTrigger",t))&&V.ScrollTrigger.create(t,e)},We=function(e,t,i,s,r){return Gt(e,t,r),e._initted?!i&&e._pt&&!n&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&u!==Mt.frame?(ne.push(e),e._lazy=[r,s],1):void 0:1},qe=function e(t){var i=t.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||e(i))},Ye=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},Xe=function(e,t,i,s){var n=e._repeat,r=ge(t)||0,o=e._tTime/e._tDur;return o&&!s&&(e._time*=r/e._dur),e._dur=r,e._tDur=n?n<0?1e10:ge(r*(n+1)+e._rDelay*n):r,o>0&&!s&&Fe(e,e._tTime=e._tDur*o),e.parent&&Re(e),i||Le(e.parent,e),e},Ve=function(e){return e instanceof Ht?Le(e):Xe(e,e._dur)},Ge={_start:0,endTime:J,totalDuration:J},Ue=function e(t,i,s){var n,r,o,a=t.labels,l=t._recent||Ge,c=t.duration()>=x?l.endTime(!1):t._dur;return I(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*(F(s)?s[0]:s).totalDuration()),n>1?e(t,i.substr(0,n-1),s)+r:c+r)):null==i?c:+i},Qe=function(e,t,i){var s,n,r=L(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=D(n.vars.inherit)&&n.parent;a.immediateRender=D(s.immediateRender),e<2?a.runBackwards=1:a.startAt=t[o-1]}return new Jt(t[0],a,t[o+1])},Ze=function(e,t){return e||0===e?t(e):t},Ke=function(e,t,i){return it?t:i},Je=function(e,t){return I(e)&&(t=X.exec(e))?t[1]:""},et=[].slice,tt=function(e,t){return e&&z(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&z(e[0]))&&!e.nodeType&&e!==a},it=function(e,t,i){return void 0===i&&(i=[]),e.forEach(function(e){var s;return I(e)&&!t||tt(e,1)?(s=i).push.apply(s,st(e)):i.push(e)})||i},st=function(e,t,i){return r&&!t&&r.selector?r.selector(e):!I(e)||i||!l&&kt()?F(e)?it(e,i):tt(e)?et.call(e,0):e?[e]:[]:et.call((t||c).querySelectorAll(e),0)},nt=function(e){return e=st(e)[0]||Z("Invalid scope")||{},function(t){var i=e.current||e.nativeElement||e;return st(t,i.querySelectorAll?i:i===e?Z("Invalid scope")||c.createElement("div"):e)}},rt=function(e){return e.sort(function(){return.5-Math.random()})},ot=function(e){if(O(e))return e;var t=z(e)?e:{each:e},i=Dt(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 I(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=(u||t).length,T=r[w];if(!T){if(!(_="auto"===t.grid?0:(t.grid||[1,x])[1])){for(y=-x;y<(y=u[_++].getBoundingClientRect().left)&&_y&&(y=g),gw?w-1:l?"y"===l?w/_:_:Math.max(_,w/_))||0)*("edges"===s?-1:1),T.b=w<0?n-w:n,T.u=Je(t.amount||t.each)||0,i=i&&w<0?Pt(i):i}return w=(T[e]-T.min)/T.max||0,ge(T.b+(i?i(w):w)*T.v)+T.u}},at=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var s=ge(Math.round(parseFloat(i)/e)*e*t);return(s-s%1)/t+(L(i)?0:Je(i))}},lt=function(e,t){var i,s,n=F(e);return!n&&z(e)&&(i=n=e.radius||x,e.values?(e=st(e.values),(s=!L(e[0]))&&(i*=i)):e=at(e.increment)),Ze(t,n?O(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=x,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))(n=Math.abs(n))&&(r=s,a=n);return r},ft=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&&ne.length&&be(),d&&(r=d),o=s?l.apply(n,s):l.call(n),r=c,o},mt=function(e){return Oe(e),e.scrollTrigger&&e.scrollTrigger.kill(!!n),e.progress()<1&&ft(e,"onInterrupt"),e},gt=[],vt=function(e){if(e)if(e=!e.name&&e.default||e,$()||e.headless){var t=e.name,i=O(e),s=t&&!i&&e.init?function(){this._props=[]}:e,n={init:J,render:li,add:Xt,kill:di,modifier:ci,rawVars:0},r={targetTest:0,get:0,getSetter:ni,aliases:{},register:0};if(kt(),e!==s){if(oe[t])return;Se(s,Se(Me(e,n),r)),Ee(s.prototype,Ee(n,Me(e,r))),oe[s.prop=t]=s,e.targetTest&&(ce.push(s),se[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}K(t,s),e.register&&e.register(Ci,s,pi)}else gt.push(e)},yt=255,bt={aqua:[0,yt,yt],lime:[0,yt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,yt],navy:[0,0,128],white:[yt,yt,yt],olive:[128,128,0],yellow:[yt,yt,0],orange:[yt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[yt,0,0],pink:[yt,192,203],cyan:[0,yt,yt],transparent:[yt,yt,yt,0]},_t=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)*yt+.5|0},wt=function(e,t,i){var s,n,r,o,a,l,c,d,u,h,p=e?L(e)?[e>>16,e>>8&yt,e&yt]:0:bt.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),bt[e])p=bt[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&yt,p&yt,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&yt,e&yt]}else if("hsl"===e.substr(0,3))if(p=h=e.match(j),t){if(~e.indexOf("="))return p=e.match(N),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]=_t(o+1/3,s,n),p[1]=_t(o,s,n),p[2]=_t(o-1/3,s,n);else p=e.match(j)||bt.transparent;p=p.map(Number)}return t&&!h&&(s=p[0]/yt,n=p[1]/yt,r=p[2]/yt,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+(nu||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=t&&r--},_listeners:y}}(),kt=function(){return!p&&Mt.wake()},At={},It=/^[\d.\-M][\d.\-,\s]/,Ot=/["']/g,Lt=function(e){for(var t,i,s,n={},r=e.substr(1,e.length-3).split(":"),o=r[0],a=1,l=r.length;a1&&o.config?o.config.apply(null,~e.indexOf("{")?[Lt(r[1])]:(t=e,i=t.indexOf("(")+1,s=t.indexOf(")"),n=t.indexOf("(",i),t.substring(i,~n&&n=1?i:1,r=(s||(t?.3:.45))/(i<1?i:1),o=r/S*(Math.asin(1/n)||0),a=function(e){return 1===e?1:n*Math.pow(2,-10*e)*A((e-o)*r)+1},l="out"===t?a:"in"===t?function(e){return 1-a(1-e)}:Bt(a);return r=S/r,l.config=function(i,s){return e(t,i,s)},l},Ft=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)}:Bt(s);return n.config=function(i){return e(t,i)},n};fe("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var i=t<5?t+1:t;$t(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})}),At.Linear.easeNone=At.none=At.Linear.easeIn,$t("Elastic",Rt("in"),Rt("out"),Rt()),f=7.5625,v=2*(g=1/(m=2.75)),y=2.5*g,$t("Bounce",function(e){return 1-b(1-e)},b=function(e){return e0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Xe(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(kt(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Fe(this,e),!i._dp||i.parent||je(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&&e0||!this._tDur&&!e)&&Ne(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===T||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),we(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+De(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)+De(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?$e(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?Be(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(Ke(-Math.abs(this._delay),this.totalDuration(),i),!1!==t),Re(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):(kt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==T&&(this._tTime-=T)))),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)&&Ne(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(D(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?Be(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=ie);var t=n;return n=e,_e(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,Ve(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Ve(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(Ue(this,e),D(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,D(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&&e1?(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=O(e)?e:Te,n=function(){var e=t.then;t.then=null,O(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(){mt(this)},e}();Se(Nt.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 Ht=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=D(t.sortChildren),o&&Ne(t.parent||o,i(n),s),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&He(i(n),t.scrollTrigger),n}t(s,e);var r=s.prototype;return r.to=function(e,t,i){return Qe(0,arguments,this),this},r.from=function(e,t,i){return Qe(1,arguments,this),this},r.fromTo=function(e,t,i,s){return Qe(2,arguments,this),this},r.set=function(e,t,i){return t.duration=0,t.parent=this,ke(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Jt(e,t,Ue(this,i),1),this},r.call=function(e,t,i){return Ne(this,Jt.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 Jt(e,i,Ue(this,n)),this},r.staggerFrom=function(e,t,i,s,n,r,o){return i.runBackwards=1,ke(i).immediateRender=D(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,ke(s).immediateRender=D(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:ge(e),w=this._zTime<0!=e<0&&(this._initted||!b);if(this!==o&&_>y&&e>=0&&(_=y),_!==this._tTime||i||w){if(v!==this._time&&b&&(_+=this._time-v,e+=this._time-v),s=_,p=this._start,d=!(h=this._ts),w&&(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=ge(_%c),_===y?(l=this._repeat,s=b):((l=~~(f=ge(_/c)))&&l===f&&(s=b,l--),s>b&&(s=b)),f=$e(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 x=m&&1&f,S=x===(m&&1&l);if(lt)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=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&&_e(r)),s!==this._time||!this._ts&&!d){u=0,a&&(_+=this._zTime=E?-1e-8:T);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,Re(this),this.render(e,t,i);this._onUpdate&&!t&&ft(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)&&Oe(this,1),t||e<0&&!v||!_&&!v&&y||(ft(this,_===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(_0)&&this._prom())))}return this},r.add=function(e,t){var i=this;if(L(t)||(t=Ue(this,t,e)),!(e instanceof Nt)){if(F(e))return e.forEach(function(e){return i.add(e,t)}),this;if(I(e))return this.addLabel(e,t);if(!O(e))return this;e=Jt.delayedCall(0,e)}return this!==e?Ne(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=-x);for(var n=[],r=this._first;r;)r._start>=s&&(r instanceof Jt?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 I(e)?this.removeLabel(e):O(e)?this.killTweensOf(e):(e.parent===this&&Ie(this,e),e===this._recent&&(this._recent=this._last),Le(this))},r.totalTime=function(t,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ge(Mt.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]=Ue(this,t),this},r.removeLabel=function(e){return delete this.labels[e],this},r.addPause=function(e,t,i){var s=Jt.delayedCall(0,t||J,i);return s.data="isPause",this._hasPause=1,Ne(this,s,Ue(this,e))},r.removePause=function(e){var t=this._first;for(e=Ue(this,e);t;)t._start===e&&"isPause"===t.data&&Oe(t),t=t._next},r.killTweensOf=function(e,t,i){for(var s=this.getTweensOf(e,i),n=s.length;n--;)Wt!==s[n]&&s[n].kill(e,t);return this},r.getTweensOf=function(e,t){for(var i,s=[],n=st(e),r=this._first,o=L(t);r;)r instanceof Jt?ye(r._targets,n)&&(o?(!Wt||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=Ue(s,e),r=t,o=r.startAt,a=r.onStart,l=r.onStartParams,c=r.immediateRender,d=Jt.to(s,Se({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())||T,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&&Xe(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,Se({startAt:{time:Ue(this,e)}},i))},r.recent=function(){return this._recent},r.nextLabel=function(e){return void 0===e&&(e=this._time),pt(this,Ue(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),pt(this,Ue(this,e),1)},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+T)},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 Le(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={}),Le(this)},r.totalDuration=function(e){var t,i,s,n=0,r=this,a=r._last,l=x;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,Ne(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;Xe(r,r===o&&r._time>n?r._time:n,1,1),r._dirty=0}return r._tDur},s.updateRoot=function(e){if(o._ts&&(we(o,Be(e,o)),u=Mt.frame),Mt.frame>=le){le+=_.autoSleep||120;var t=o._first;if((!t||!t._ts)&&_.autoSleep&&Mt._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Mt.sleep()}}},s}(Nt);Se(Ht.prototype,{_lock:0,_hasPause:0,_forcing:0});var Wt,qt,Yt=function(e,t,i,s,n,r,o){var a,l,c,d,u,h,p,f,m=new pi(this._pt,e,t,0,1,ai,null,n),g=0,v=0;for(m.b=i,m.e=s,i+="",(p=~(s+="").indexOf("random("))&&(s=ut(s)),r&&(r(f=[i,s],e,t),i=f[0],s=f[1]),l=i.match(W)||[];a=W.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)?ve(h,d)-h:parseFloat(d)-h,m:c&&c<4?Math.round:0},g=W.lastIndex);return m.c=g")}),c.duration();else{for(p in u={},S)"ease"===p||"easeEach"===p||Ut(p,S[p],u,S.easeEach);for(p in u)for(I=u[p].sort(function(e,t){return e.t-t.t}),$=0,d=0;df-T&&!g?f:em&&(s=m),(c=this._yoyo&&1&o)&&(h=this._yEase,s=m-s),l=$e(this._tTime,a),s===p&&!i&&this._initted&&o===l)return this._tTime=v,this;o!==l&&(u&&this._yEase&&zt(u,c),this.vars.repeatRefresh&&!c&&!this._lock&&s!==a&&this._initted&&(this._lock=i=1,this.render(ge(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(We(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&&(ft(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&&Pe(this,e,0,i),ft(this,"onUpdate")),this._repeat&&o!==l&&this.vars.onRepeat&&!t&&this.parent&&ft(this,"onRepeat"),v!==this._tDur&&v||this._tTime!==v||(g&&!this._onUpdate&&Pe(this,e,0,!0),(e||!m)&&(v===this._tDur&&this._ts>0||!v&&this._ts<0)&&Oe(this,1),t||g&&!p||!(v||p||c)||(ft(this,v===f?"onComplete":"onReverseComplete",!0),this._prom&&!(v0)&&this._prom()))}}else!function(e,t,i,s){var r,o,a,l=e.ratio,c=t<0||!t&&(!e._start&&qe(e)&&(e._initted||!Ye(e))||(e._ts<0||e._dp._ts<0)&&!Ye(e))?0:1,d=e._rDelay,u=0;if(d&&e._repeat&&(u=Ke(0,e._tDur,t),o=$e(u,d),e._yoyo&&1&o&&(c=1-c),o!==$e(e._tTime,d)&&(l=1-c,e.vars.repeatRefresh&&e._initted&&e.invalidate())),c!==l||n||s||e._zTime===T||!t&&e._zTime){if(!e._initted&&We(e,t,s,i,u))return;for(a=e._zTime,e._zTime=t||(i?T: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&&Pe(e,t,0,!0),e._onUpdate&&!i&&ft(e,"onUpdate"),u&&e._repeat&&!i&&e.parent&&ft(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===c&&(c&&Oe(e,1),i||n||(ft(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||Mt.wake(),this._ts||this.play();var r=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Gt(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 qt=1,e.vars[t]="+=0",Gt(e,o),qt=0,a?Z(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=me(i)+Je(c.e)),c.b&&(c.b=l.s+Je(c.b))}(this,e,t,i,s,this._ease(r/this._dur),r,n)?this.resetTo(e,t,i,s,1):(Fe(this,0),this.parent||Ae(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?mt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!n),this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Wt&&!0!==Wt.vars.overwrite)._first||mt(this),this.parent&&i!==this.timeline.totalDuration()&&Xe(this,this._dur*this.timeline._tDur/i,0,1),this}var s,r,o,a,l,c,d,u=this._targets,h=e?st(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),mt(this);for(s=this._op=this._op||[],"all"!==t&&(I(t)&&(l={},fe(t,function(e){return l[e]=1}),t=l),t=function(e,t){var i,s,n,r,o=e[0]?he(e[0]).harness:0,a=o&&o.aliases;if(!a)return t;for(s in i=Ee({},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)||Ie(this,c,"_pt"),delete r[l]),"all"!==o&&(o[l]=1);return this._initted&&!this._pt&&f&&mt(this),this},r.to=function(e,t){return new r(e,t,arguments[2])},r.from=function(e,t){return Qe(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 Qe(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}(Nt);Se(Jt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),fe("staggerTo,staggerFrom,staggerFromTo",function(e){Jt[e]=function(){var t=new Ht,i=et.call(arguments,0);return i.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,i)}});var ei=function(e,t,i){return e[t]=i},ti=function(e,t,i){return e[t](i)},ii=function(e,t,i,s){return e[t](s.fp,i)},si=function(e,t,i){return e.setAttribute(t,i)},ni=function(e,t){return O(e[t])?ti:P(e[t])&&e.setAttribute?si:ei},ri=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},oi=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ai=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)},li=function(e,t){for(var i=t._pt;i;)i.r(e,i.d),i=i._next},ci=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},di=function(e){for(var t,i,s=this._pt;s;)i=s._next,s.p===e&&!s.op||s.op===e?Ie(this,s,"_pt"):s.dep||(t=1),s=i;return!t},ui=function(e,t,i,s){s.mSet(e,t,s.m.call(s.tween,i,s.mt),s)},hi=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},pi=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||ri,this.d=o||this,this.set=a||ei,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=ui,this.m=e,this.mt=i,this.tween=t},e}();fe(de+"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 se[e]=1}),V.TweenMax=V.TweenLite=Jt,V.TimelineLite=V.TimelineMax=Ht,o=new Ht({sortChildren:!1,defaults:w,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),_.stringFilter=Ct;var fi=[],mi={},gi=[],vi=0,yi=0,bi=function(e){return(mi[e]||gi).map(function(e){return e()})},_i=function(){var e=Date.now(),t=[];e-vi>2&&(bi("matchMediaInit"),fi.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))}),bi("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),vi=e,bi("matchMedia"))},wi=function(){function e(e,t){this.selector=t&&nt(t),this.data=[],this._r=[],this.isReverted=!1,this.id=yi++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,i){O(e)&&(i=t,t=e,e=O);var s=this,n=function(){var e,n=r,o=s.selector;return n&&n!==s&&n.data.push(s),i&&(s.selector=nt(i)),r=s,e=t.apply(s,arguments),O(e)&&s._r.push(e),r=n,s.selector=o,s.isReverted=!1,e};return s.last=n,e===O?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 Jt&&!(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 Ht?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof Jt)&&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=fi.length;s--;)fi[s].id===this.id&&fi.splice(s,1)},t.revert=function(e){this.kill(e||{})},e}(),xi=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){z(e)||(e={matches:e});var s,n,o,l=new wi(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]))&&(fi.indexOf(l)<0&&fi.push(l),(c[n]=s.matches)&&(o=1),s.addListener?s.addListener(_i):s.addEventListener("change",_i));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}(),Ti={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),i=0;i1){var s=e.map(function(e){return Ci.quickSetter(e,t,i)}),n=s.length;return function(e){for(var t=n;t--;)s[t](e)}}e=e[0]||{};var r=oe[t],o=he(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&&li(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=Ci.to(e,Se(((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=Dt(e.ease,w.ease)),Ce(w,e||{})},config:function(e){return Ce(_,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&&!oe[e]&&!V[e]&&Z(t+" effect requires "+e+" plugin.")}),ae[t]=function(e,t,s){return i(st(e),Se(t||{},n),s)},r&&(Ht.prototype[t]=function(e,i,s){return this.add(ae[t](e,z(i)?i:(s=i)&&{},this),s)})},registerEase:function(e,t){At[e]=Dt(t)},parseEase:function(e,t){return arguments.length?Dt(e,t):At},getById:function(e){return o.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var i,s,n=new Ht(e);for(n.smoothChildTiming=D(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 Jt&&i.vars.onComplete===i._targets[0]||Ne(n,i,i._start-i._delay),i=s;return Ne(o,n,0),n},context:function(e,t){return e?new wi(e,t):r},matchMedia:function(e){return new xi(e)},matchMediaRefresh:function(){return fi.forEach(function(e){var t,i,s=e.conditions;for(i in s)s[i]&&(s[i]=!1,t=1);t&&e.revert()})||_i()},addEventListener:function(e,t){var i=mi[e]||(mi[e]=[]);~i.indexOf(t)||i.push(t)},removeEventListener:function(e,t){var i=mi[e],s=i&&i.indexOf(t);s>=0&&i.splice(s,1)},utils:{wrap:function e(t,i,s){var n=i-t;return F(t)?dt(t,e(0,t.length),i):Ze(s,function(e){return(n+(e-t)%n)%n+t})},wrapYoyo:function e(t,i,s){var n=i-t,r=2*n;return F(t)?dt(t,e(0,t.length-1),i):Ze(s,function(e){return t+((e=(r+(e-t)%r)%r||0)>n?r-e:e)})},distribute:ot,random:ct,snap:lt,normalize:function(e,t,i){return ht(e,t,0,1,i)},getUnit:Je,clamp:function(e,t,i){return Ze(i,function(i){return Ke(e,t,i)})},splitColor:wt,toArray:st,selector:nt,mapRange:ht,pipe:function(){for(var e=arguments.length,t=new Array(e),i=0;i=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(_s,i,"")),t=bs}(r||i)&&this.props.push(t,i,r[t])},xs=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Ts=function(){var e,t,i=this.props,s=this.target,n=s.style,r=s._gsap;for(e=0;e=0?Ms[n]:"")+e},As=function(){"undefined"!=typeof window&&window.document&&(Mi=window,ki=Mi.document,Ai=ki.documentElement,Oi=Es("div")||{style:{}},Es("div"),bs=ks(bs),_s=bs+"Origin",Oi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",zi=!!ks("perspective"),Pi=Ci.core.reverting,Ii=1)},Is=function(e){var t,i=e.ownerSVGElement,s=Es("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0);n.style.display="block",s.appendChild(n),Ai.appendChild(s);try{t=n.getBBox()}catch(e){}return s.removeChild(n),Ai.removeChild(s),t},Os=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},Ls=function(e){var t,i;try{t=e.getBBox()}catch(s){t=Is(e),i=1}return t&&(t.width||t.height)||i||(t=Is(e)),!t||t.width||t.x||t.y?t:{x:+Os(e,["x","cx","x1"])||0,y:+Os(e,["y","cy","y1"])||0,width:0,height:0}},Ps=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!Ls(e))},zs=function(e,t){if(t){var i,s=e.style;t in Ji&&t!==_s&&(t=bs),s.removeProperty?("ms"!==(i=t.substr(0,2))&&"webkit"!==t.substr(0,6)||(t="-"+t),s.removeProperty("--"===i?t:t.replace(ss,"-$1").toLowerCase())):s.removeAttribute(t)}},Ds=function(e,t,i,s,n,r){var o=new pi(e._pt,t,i,0,1,r?hs:us);return e._pt=o,o.b=s,o.e=n,e._props.push(i),o},$s={deg:1,rad:1,turn:1},Bs={grid:1,flex:1},Rs=function e(t,i,s,n){var r,o,a,l,c=parseFloat(s)||0,d=(s+"").trim().substr((c+"").length)||"px",u=Oi.style,h=ns.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||$s[n]||$s[d])return c;if("px"!==d&&!g&&(c=e(t,i,s,"px")),l=t.getCTM&&Ps(t),(v||"%"===d)&&(Ji[i]||~i.indexOf("adius")))return r=l?t.getBBox()[h?"width":"height"]:t[f],me(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!==ki&&o.appendChild||(o=ki.body),(a=o._gsap)&&v&&a.width&&h&&a.time===Mt.time&&!a.uncache)return me(c/a.width*m);if(!v||"height"!==i&&"width"!==i)(v||"%"===d)&&!Bs[Cs(o,"display")]&&(u.position=Cs(t,"position")),o===t&&(u.position="static"),o.appendChild(Oi),r=Oi[f],o.removeChild(Oi),u.position="absolute";else{var y=t.style[i];t.style[i]=m+n,r=t[f],y?t.style[i]=y:zs(t,i)}return h&&v&&((a=he(o)).time=Mt.time,a.width=o[f]),me(g?r*c/m:r&&c?m/r*c:0)},Fs=function(e,t,i,s){var n;return Ii||As(),t in os&&"transform"!==t&&~(t=os[t]).indexOf(",")&&(t=t.split(",")[0]),Ji[t]&&"transform"!==t?(n=Zs(e,s),n="transformOrigin"!==t?n[t]:n.svg?n.origin:Ks(Cs(e,_s))+" "+n.zOrigin+"px"):(!(n=e.style[t])||"auto"===n||s||~(n+"").indexOf("calc("))&&(n=qs[t]&&qs[t](e,t,i)||Cs(e,t)||pe(e,t)||("opacity"===t?1:0)),i&&!~(n+"").trim().indexOf(" ")?Rs(e,t,n,i)+i:n},js=function(e,t,i,s){if(!i||"none"===i){var n=ks(t,e,1),r=n&&Cs(e,n,1);r&&r!==i?(t=n,i=r):"borderColor"===t&&(i=Cs(e,"borderTopColor"))}var o,a,l,c,d,u,h,p,f,m,g,v=new pi(this._pt,e.style,t,0,1,ai),y=0,b=0;if(v.b=i,v.e=s,i+="","var(--"===(s+="").substring(0,6)&&(s=Cs(e,s.substring(4,s.indexOf(")")))),"auto"===s&&(u=e.style[t],e.style[t]=s,s=Cs(e,t)||s,u?e.style[t]=u:zs(e,t)),Ct(o=[i,s]),s=o[1],l=(i=o[0]).match(H)||[],(s.match(H)||[]).length){for(;a=H.exec(s);)h=a[0],f=s.substring(y,a.index),d?d=(d+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(d=1),h!==(u=l[b++]||"")&&(c=parseFloat(u)||0,g=u.substr((c+"").length),"="===h.charAt(1)&&(h=ve(c,h)+g),p=parseFloat(h),m=h.substr((p+"").length),y=H.lastIndex-m.length,m||(m=m||_.units[t]||g,y===s.length&&(s+=m,v.e+=m)),g!==m&&(c=Rs(e,t,u,m)||0),v._pt={_next:v._pt,p:f||1===b?f:",",s:c,c:p-c,m:d&&d<4||"zIndex"===t?Math.round:0});v.c=y-1;)i=a[n],Ji[i]&&(s=1,i="transformOrigin"===i?_s:bs),zs(r,i);s&&(zs(r,bs),l&&(l.svg&&r.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",Zs(r,1),l.uncache=1,xs(o)))}},qs={clearProps:function(e,t,i,s,n){if("isFromStart"!==n.data){var r=e._pt=new pi(e._pt,t,i,0,0,Ws);return r.u=s,r.pr=-10,r.tween=n,e._props.push(i),1}}},Ys=[1,0,0,1,0,0],Xs={},Vs=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},Gs=function(e){var t=Cs(e,bs);return Vs(t)?Ys:t.substr(7).match(N).map(me)},Us=function(e,t){var i,s,n,r,o=e._gsap||he(e),a=e.style,l=Gs(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(",")?Ys:l:(l!==Ys||e.offsetParent||e===Ai||o.svg||(n=a.display,a.display="block",(i=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(r=1,s=e.nextElementSibling,Ai.appendChild(e)),l=Gs(e),n?a.display=n:zs(e,"display"),r&&(s?i.insertBefore(e,s):i?i.appendChild(e):Ai.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Qs=function(e,t,i,s,n,r){var o,a,l,c=e._gsap,d=n||Us(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!==Ys&&(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=Ls(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[_s]="0px 0px",r&&(Ds(r,c,"xOrigin",u,x),Ds(r,c,"yOrigin",h,T),Ds(r,c,"xOffset",p,c.xOffset),Ds(r,c,"yOffset",f,c.yOffset)),e.setAttribute("data-svg-origin",x+" "+T)},Zs=function(e,t){var i=e._gsap||new jt(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,y,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=Cs(e,_s)||"0";return s=n=r=l=c=d=u=h=p=0,o=a=1,i.svg=!(!e.getCTM||!Ps(e)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||($[bs]=("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[bs]?j[bs]:"")),$.scale=$.rotate=$.translate="none"),g=Us(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"),Qs(e,M||N,!!M||i.originIsAbsolute,!1!==i.smooth,g)),f=i.xOrigin||0,m=i.yOrigin||0,g!==Ys&&(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?is(x,w)*es:0,(u=T||S?is(T,S)*es+l:0)&&(a*=Math.abs(Math.cos(u*ts))),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=is(D,L))*es,v&&(M=E*(y=Math.cos(-v))+I*(b=Math.sin(-v)),k=C*y+O*b,A=D*y+L*b,I=E*-b+I*y,O=C*-b+O*y,L=D*-b+L*y,z=P*-b+z*y,E=M,C=k,D=A),d=(v=is(-T,L))*es,v&&(y=Math.cos(-v),z=S*(b=Math.sin(-v))+z*y,w=M=w*y-I*b,x=k=x*y-O*b,T=A=T*y-L*b),l=(v=is(x,w))*es,v&&(M=w*(y=Math.cos(v))+x*(b=Math.sin(v)),k=E*y+C*b,x=x*y-w*b,C=C*y-E*b,w=M,E=k),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,d=180-d),o=me(Math.sqrt(w*w+x*x+T*T)),a=me(Math.sqrt(C*C+D*D)),v=is(E,C),u=Math.abs(v)>2e-4?v*es:0,p=z?1/(z<0?-z:z):0),i.svg&&(M=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!Vs(Cs(e,bs)),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=me(o),i.scaleY=me(a),i.rotation=me(l)+F,i.rotationX=me(c)+F,i.rotationY=me(d)+F,i.skewX=u+F,i.skewY=h+F,i.transformPerspective=p+R,(i.zOrigin=parseFloat(N.split(" ")[2])||!t&&i.zOrigin||0)&&($[_s]=Ks(N)),i.xOffset=i.yOffset=0,i.force3D=_.force3D,i.renderTransform=i.svg?on:zi?rn:en,i.uncache=0,i},Ks=function(e){return(e=e.split(" "))[0]+" "+e[1]},Js=function(e,t,i){var s=Je(t);return me(parseFloat(t)+parseFloat(Rs(e,"x",i+"px",s)))+s},en=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,rn(e,t)},tn="0deg",sn="0px",nn=") ",rn=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!==tn||c!==tn)){var w,x=parseFloat(c)*ts,T=Math.sin(x),S=Math.cos(x);x=parseFloat(d)*ts,w=Math.cos(x),r=Js(v,r,T*w*-y),o=Js(v,o,-Math.sin(x)*-y),a=Js(v,a,S*w*-y+y)}m!==sn&&(b+="perspective("+m+nn),(s||n)&&(b+="translate("+s+"%, "+n+"%) "),(_||r!==sn||o!==sn||a!==sn)&&(b+=a!==sn||_?"translate3d("+r+", "+o+", "+a+") ":"translate("+r+", "+o+nn),l!==tn&&(b+="rotate("+l+nn),c!==tn&&(b+="rotateY("+c+nn),d!==tn&&(b+="rotateX("+d+nn),u===tn&&h===tn||(b+="skew("+u+", "+h+nn),1===p&&1===f||(b+="scale("+p+", "+f+nn),v.style[bs]=b||"translate(0, 0)"},on=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*=ts,p*=ts,i=Math.cos(h)*m,s=Math.sin(h)*m,n=Math.sin(h-p)*-g,r=Math.cos(h-p)*g,p&&(f*=ts,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=me(i),s=me(s),n=me(n),r=me(r)):(i=m,r=g,s=n=0),(T&&!~(d+"").indexOf("px")||S&&!~(u+"").indexOf("px"))&&(T=Rs(v,"x",d,"px"),S=Rs(v,"y",u,"px")),(y||b||_||w)&&(T=me(T+y-(y*i+b*n)+_),S=me(S+b-(y*s+b*r)+w)),(l||c)&&(o=v.getBBox(),T=me(T+l/100*o.width),S=me(S+c/100*o.height)),o="matrix("+i+","+s+","+n+","+r+","+T+","+S+")",v.setAttribute("transform",o),x&&(v.style[bs]=o)},an=function(e,t,i,s,n){var r,o,a=360,l=I(n),c=parseFloat(n)*(l&&~n.indexOf("rad")?es: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 pi(e._pt,t,i,s,c,ls),o.e=d,o.u="deg",e._props.push(i),o},ln=function(e,t){for(var i in t)e[i]=t[i];return e},cn=function(e,t,i){var s,n,r,o,a,l,c,d=ln({},i._gsap),u=i.style;for(n in d.svg?(r=i.getAttribute("transform"),i.setAttribute("transform",""),u[bs]=t,s=Zs(i,1),zs(i,bs),i.setAttribute("transform",r)):(r=getComputedStyle(i)[bs],u[bs]=t,s=Zs(i,1),u[bs]=r),Ji)(r=d[n])!==(o=s[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(a=Je(r)!==(c=Je(o))?Rs(i,n,r,c):parseFloat(r),l=parseFloat(o),e._pt=new pi(e._pt,s,n,a,l-a,as),e._pt.u=c||0,e._props.push(n));ln(s,d)};fe("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});qs[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 Fs(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 dn,un,hn,pn={name:"css",register:As,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,y,b,w,x=this._props,T=e.style,S=i.vars.startAt;for(u in Ii||As(),this.styles=this.styles||Ss(e),w=this.styles.props,this.tween=i,t)if("autoRound"!==u&&(o=t[u],!oe[u]||!Vt(u,t,i,s,e,n)))if(c=typeof o,d=qs[u],"function"===c&&(c=typeof(o=o.call(i,s,e,n))),"string"===c&&~o.indexOf("random(")&&(o=ut(o)),d)d(this,e,u,o,i)&&(b=1);else if("--"===u.substr(0,2))r=(getComputedStyle(e).getPropertyValue(u)+"").trim(),o+="",St.lastIndex=0,St.test(r)||(h=Je(r),p=Je(o)),p?h!==p&&(r=Rs(e,u,r,p)+p):h&&(o+=h),this.add(T,"setProperty",r,o,s,n,0,0,u),x.push(u),w.push(u,0,T[u]);else if("undefined"!==c){if(S&&u in S?(r="function"==typeof S[u]?S[u].call(i,s,e,n):S[u],I(r)&&~r.indexOf("random(")&&(r=ut(r)),Je(r+"")||"auto"===r||(r+=_.units[u]||Je(Fs(e,u))||""),"="===(r+"").charAt(1)&&(r=Fs(e,u))):r=Fs(e,u),l=parseFloat(r),(f="string"===c&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),u in os&&("autoAlpha"===u&&(1===l&&"hidden"===Fs(e,"visibility")&&a&&(l=0),w.push("visibility",0,T.visibility),Ds(this,T,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==u&&"transform"!==u&&~(u=os[u]).indexOf(",")&&(u=u.split(",")[0])),m=u in Ji)if(this.styles.save(u),"string"===c&&"var(--"===o.substring(0,6)&&(o=Cs(e,o.substring(4,o.indexOf(")"))),a=parseFloat(o)),g||((v=e._gsap).renderTransform&&!t.parseTransform||Zs(e,t.parseTransform),y=!1!==t.smoothOrigin&&v.smooth,(g=this._pt=new pi(this._pt,T,bs,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===u)this._pt=new pi(this._pt,v,"scaleY",v.scaleY,(f?ve(v.scaleY,f+a):a)-v.scaleY||0,as),this._pt.u=0,x.push("scaleY",u),u+="X";else{if("transformOrigin"===u){w.push(_s,0,T[_s]),o=Hs(o),v.svg?Qs(e,o,0,y,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Ds(this,v,"zOrigin",v.zOrigin,p),Ds(this,T,u,Ks(r),Ks(o)));continue}if("svgOrigin"===u){Qs(e,o,1,y,0,this);continue}if(u in Xs){an(this,v,u,l,f?ve(l,f+o):o);continue}if("smoothOrigin"===u){Ds(this,v,"smooth",v.smooth,o);continue}if("force3D"===u){v[u]=o;continue}if("transform"===u){cn(this,o,e);continue}}else u in T||(u=ks(u)||u);if(m||(a||0===a)&&(l||0===l)&&!rs.test(o)&&u in T)a||(a=0),(h=(r+"").substr((l+"").length))!==(p=Je(o)||(u in _.units?_.units[u]:h))&&(l=Rs(e,u,r,p)),this._pt=new pi(this._pt,m?v:T,u,l,(f?ve(l,f+a):a)-l,m||"px"!==p&&"zIndex"!==u||!1===t.autoRound?as:ds),this._pt.u=p||0,h!==p&&"%"!==p&&(this._pt.b=r,this._pt.r=cs);else if(u in T)js.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){Q(u,o);continue}m||(u in T?w.push(u,0,T[u]):"function"==typeof e[u]?w.push(u,2,e[u]()):w.push(u,1,r||e[u])),x.push(u)}b&&hi(this)},render:function(e,t){if(t.tween._time||!Pi())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:Fs,aliases:os,getSetter:function(e,t,i){var s=os[t];return s&&s.indexOf(",")<0&&(t=s),t in Ji&&t!==_s&&(e._gsap.x||Fs(e,"x"))?i&&Li===i?"scale"===t?gs:ms:(Li=i||{})&&("scale"===t?vs:ys):e.style&&!P(e.style[t])?ps:~t.indexOf("-")?fs:ni(e,t)},core:{_removeProperty:zs,_getMatrix:Us}};Ci.utils.checkPrefix=ks,Ci.core.getStyleSaver=Ss,hn=fe((dn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(un="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){Ji[e]=1}),fe(un,function(e){_.units[e]="deg",Xs[e]=1}),os[hn[13]]=dn+","+un,fe("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");os[t[1]]=hn[t[0]]}),fe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){_.units[e]="px"}),Ci.registerPlugin(pn);var fn=Ci.registerPlugin(pn)||Ci,mn=fn.core.Tween;e.Back=Vi,e.Bounce=Ui,e.CSSPlugin=pn,e.Circ=Ki,e.Cubic=Hi,e.Elastic=Xi,e.Expo=Zi,e.Linear=ji,e.Power0=Di,e.Power1=$i,e.Power2=Bi,e.Power3=Ri,e.Power4=Fi,e.Quad=Ni,e.Quart=Wi,e.Quint=qi,e.Sine=Qi,e.SteppedEase=Gi,e.Strong=Yi,e.TimelineLite=Ht,e.TimelineMax=Ht,e.TweenLite=Jt,e.TweenMax=mn,e.default=fn,e.gsap=fn,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete window.default}), /*! Images Loaded Packaged Version: v5.0.0 Plugin URL: https://imagesloaded.desandro.com/ License: Copyright 2021-2024 | Released under the MIT License !*/ 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}), /*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ 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}), /*! Carto - Interactive portfolio Created by ThemeZaa !*/ $(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;ee?(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;tt?(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;et?(this.slides[e].classList.add("next"),this.slides[e].classList.remove("prev")):e=0;d--)c=n[d],l=s[c]+.1*(t[c]-s[c]),Math.abs(t[c]-l){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)}}), /*! Isotope Version: v3.0.6 Plugin URL: https://isotope.metafizzy.co License: Copyright 2010-2018 Metafizzy | Licensed GPLv3 for open source use or Isotope Commercial License for commercial use !*/ 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