diff --git a/static/js/HzPj1-.js b/static/js/HzPj1-.js new file mode 100644 index 0000000..9e2624d --- /dev/null +++ b/static/js/HzPj1-.js @@ -0,0 +1,20 @@ +function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e} +/*! + * GSAP 3.12.2 + * https://greensock.com + * + * @license Copyright 2008-2023, GreenSock. All rights reserved. + * Subject to the terms at https://greensock.com/standard-license or for + * Club GreenSock members, the agreement issued with that membership. + * @author: Jack Doyle, jack@greensock.com +*/var r,i,n,s,a,o,u,h,f,l,c,p,_,d,m,g={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},v={duration:.5,overwrite:!1,delay:0},y=1e8,T=1e-8,x=2*Math.PI,w=x/4,b=0,M=Math.sqrt,O=Math.cos,k=Math.sin,A=function(t){return"string"==typeof t},C=function(t){return"function"==typeof t},D=function(t){return"number"==typeof t},P=function(t){return void 0===t},E=function(t){return"object"==typeof t},S=function(t){return!1!==t},R=function(){return"undefined"!=typeof window},z=function(t){return C(t)||A(t)},F="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},B=Array.isArray,L=/(?:-?\.?\d|\.)+/gi,I=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Y=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,U=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,X=/[+-]=-?[.\d]+/,N=/[^,'"\[\]\s]+/gi,q=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,V={},j={},G=function(t){return(j=xt(t,V))&&xr},W=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Q=function(t,e){return!e&&console.warn(t)},H=function(t,e){return t&&(V[t]=e)&&j&&(j[t]=e)||V},Z=function(){return 0},$={suppressEvents:!0,isStart:!0,kill:!1},J={suppressEvents:!0,kill:!1},K={suppressEvents:!0},tt={},et=[],rt={},it={},nt={},st=30,at=[],ot="",ut=function(t){var e,r,i=t[0];if(E(i)||C(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=at.length;r--&&!at[r].targetTest(i););e=at[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Fe(t[r],e)))||t.splice(r,1);return t},ht=function(t){return t._gsap||ut(Jt(t))[0]._gsap},ft=function(t,e,r){return(r=t[e])&&C(r)?t[e]():P(r)&&t.getAttribute&&t.getAttribute(e)||r},lt=function(t,e){return(t=t.split(",")).forEach(e)||t},ct=function(t){return Math.round(1e5*t)/1e5||0},pt=function(t){return Math.round(1e7*t)/1e7||0},_t=function(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i},dt=function(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++is;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t,e},kt=function(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null},At=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ct=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Dt=function(t,e,r,n){return t._startAt&&(i?t._startAt.revert(J):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Pt=function t(e){return!e||e._ts&&t(e.parent)},Et=function(t){return t._repeat?St(t._tTime,t=t.duration()+t._rDelay)*t:0},St=function(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},Rt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},zt=function(t){return t._end=pt(t._start+(t._tDur/Math.abs(t._ts||t._rts||T)||0))},Ft=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=pt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),zt(t),r._dirty||Ct(r,t)),t},Bt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._startT)&&e.render(r,!0)),Ct(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},Lt=function(t,e,r,i){return e.parent&&At(e),e._start=pt((D(r)?r:r||t!==s?jt(t,r,e):t._time)+e._delay),e._end=pt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ot(t,e,"_first","_last",t._sort?"_start":0),Xt(e)||(t._recent=e),i||Bt(t,e),t._ts<0&&Ft(t,t._tTime),t},It=function(t,e){return(V.ScrollTrigger||W("scrollTrigger",e))&&V.ScrollTrigger.create(e,t)},Yt=function(t,e,r,n,s){return qe(t,e,s),t._initted?!r&&t._pt&&!i&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==we.frame?(et.push(t),t._lazy=[s,n],1):void 0:1},Ut=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Xt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Nt=function(t,e,r,i){var n=t._repeat,s=pt(e)||0,a=t._tTime/t._tDur;return a&&!i&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:pt(s*(n+1)+t._rDelay*n):s,a>0&&!i&&Ft(t,t._tTime=t._tDur*a),t.parent&&zt(t),r||Ct(t.parent,t),t},qt=function(t){return t instanceof Le?Ct(t):Nt(t,t._dur)},Vt={_start:0,endTime:Z,totalDuration:Z},jt=function t(e,r,i){var n,s,a,o=e.labels,u=e._recent||Vt,h=e.duration()>=y?u.endTime(!1):e._dur;return A(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),n=r.indexOf("="),"<"===s||">"===s?(n>=0&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(n<0?u:i).totalDuration()/100:1)):n<0?(r in o||(o[r]=h),o[r]):(s=parseFloat(r.charAt(n-1)+r.substr(n+1)),a&&i&&(s=s/100*(B(i)?i[0]:i).totalDuration()),n>1?t(e,r.substr(0,n-1),i)+s:h+s)):null==r?h:+r},Gt=function(t,e,r){var i,n,s=D(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(i=o,n=r;n&&!("immediateRender"in i);)i=n.vars.defaults||{},n=S(n.vars.inherit)&&n.parent;o.immediateRender=S(i.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new Qe(e[0],o,e[a+1])},Wt=function(t,e){return t||0===t?e(t):e},Qt=function(t,e,r){return re?e:r},Ht=function(t,e){return A(t)&&(e=q.exec(t))?e[1]:""},Zt=[].slice,$t=function(t,e){return t&&E(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&E(t[0]))&&!t.nodeType&&t!==a},Jt=function(t,e,r){return n&&!e&&n.selector?n.selector(t):!A(t)||r||!o&&be()?B(t)?function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var i;return A(t)&&!e||$t(t,1)?(i=r).push.apply(i,Jt(t)):r.push(t)}))||r}(t,r):$t(t)?Zt.call(t,0):t?[t]:[]:Zt.call((e||u).querySelectorAll(t),0)},Kt=function(t){return t=Jt(t)[0]||Q("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return Jt(e,r.querySelectorAll?r:r===t?Q("Invalid scope")||u.createElement("div"):t)}},te=function(t){return t.sort((function(){return.5-Math.random()}))},ee=function(t){if(C(t))return t;var e=E(t)?t:{each:t},r=Pe(e.ease),i=e.from||0,n=parseFloat(e.base)||0,s={},a=i>0&&i<1,o=isNaN(i)||a,u=e.axis,h=i,f=i;return A(i)?h=f={center:.5,edges:.5,end:1}[i]||0:!a&&o&&(h=i[0],f=i[1]),function(t,a,l){var c,p,_,d,m,g,v,T,x,w=(l||e).length,b=s[w];if(!b){if(!(x="auto"===e.grid?0:(e.grid||[1,y])[1])){for(v=-1e8;v<(v=l[x++].getBoundingClientRect().left)&&xv&&(v=m),mw?w-1:u?"y"===u?w/x:x:Math.max(x,w/x))||0)*("edges"===i?-1:1),b.b=w<0?n-w:n,b.u=Ht(e.amount||e.each)||0,r=r&&w<0?Ce(r):r}return w=(b[t]-b.min)/b.max||0,pt(b.b+(r?r(w):w)*b.v)+b.u}},re=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=pt(Math.round(parseFloat(r)/t)*t*e);return(i-i%1)/e+(D(r)?0:Ht(r))}},ie=function(t,e){var r,i,n=B(t);return!n&&E(t)&&(r=n=t.radius||y,t.values?(t=Jt(t.values),(i=!D(t[0]))&&(r*=r)):t=re(t.increment)),Wt(e,n?C(t)?function(e){return i=t(e),Math.abs(i-e)<=r?i:e}:function(e){for(var n,s,a=parseFloat(i?e.x:e),o=parseFloat(i?e.y:0),u=y,h=0,f=t.length;f--;)(n=i?(n=t[f].x-a)*n+(s=t[f].y-o)*s:Math.abs(t[f]-a))(n=Math.abs(n))&&(s=i,o=n);return s},he=function(t,e,r){var i,s,a,o=t.vars,u=o[e],h=n,f=t._ctx;if(u)return i=o[e+"Params"],s=o.callbackScope||t,r&&et.length&&mt(),f&&(n=f),a=i?u.apply(s,i):u.call(s),n=h,a},fe=function(t){return At(t),t.scrollTrigger&&t.scrollTrigger.kill(!!i),t.progress()<1&&he(t,"onInterrupt"),t},le=[],ce=function(t){if(R()&&t){var e=(t=!t.name&&t.default||t).name,r=C(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:Z,render:ir,add:Xe,kill:sr,modifier:nr,rawVars:0},s={targetTest:0,get:0,getSetter:Ke,aliases:{},register:0};if(be(),t!==i){if(it[e])return;Tt(i,Tt(bt(t,n),s)),xt(i.prototype,xt(n,bt(t,s))),it[i.prop=e]=i,t.targetTest&&(at.push(i),tt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}H(e,i),t.register&&t.register(xr,i,ur)}else t&&le.push(t)},pe=255,_e={aqua:[0,pe,pe],lime:[0,pe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,pe],navy:[0,0,128],white:[pe,pe,pe],olive:[128,128,0],yellow:[pe,pe,0],orange:[pe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[pe,0,0],pink:[pe,192,203],cyan:[0,pe,pe],transparent:[pe,pe,pe,0]},de=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*pe+.5|0},me=function(t,e,r){var i,n,s,a,o,u,h,f,l,c,p=t?D(t)?[t>>16,t>>8&pe,t&pe]:0:_e.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),_e[t])p=_e[t];else if("#"===t.charAt(0)){if(t.length<6&&(i=t.charAt(1),n=t.charAt(2),s=t.charAt(3),t="#"+i+i+n+n+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&pe,p&pe,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&pe,t&pe]}else if("hsl"===t.substr(0,3))if(p=c=t.match(L),e){if(~t.indexOf("="))return p=t.match(I),r&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=+p[1]/100,i=2*(u=+p[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),p.length>3&&(p[3]*=1),p[0]=de(a+1/3,i,n),p[1]=de(a,i,n),p[2]=de(a-1/3,i,n);else p=t.match(L)||_e.transparent;p=p.map(Number)}return e&&!c&&(i=p[0]/pe,n=p[1]/pe,s=p[2]/pe,u=((h=Math.max(i,n,s))+(f=Math.min(i,n,s)))/2,h===f?a=o=0:(l=h-f,o=u>.5?l/(2-h-f):l/(h+f),a=h===i?(n-s)/l+(nl&&(_+=y-p),((o=(h=(d+=y)-_)-g)>0||T)&&(c=++i.frame,n=h-1e3*i.time,i.time=h/=1e3,g+=o+(o>=m?4:m-o),u=1),T||(t=e(r)),u)for(s=0;s=e&&s--},_listeners:v}}(),be=function(){return!c&&we.wake()},Me={},Oe=/^[\d.\-M][\d.\-,\s]/,ke=/["']/g,Ae=function(t){for(var e,r,i,n={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o1&&a.config?a.config.apply(null,~t.indexOf("{")?[Ae(s[1])]:(e=t,r=e.indexOf("(")+1,i=e.indexOf(")"),n=e.indexOf("(",r),e.substring(r,~n&&n=1?r:1,s=(i||(e?.3:.45))/(r<1?r:1),a=s/x*(Math.asin(1/n)||0),o=function(t){return 1===t?1:n*Math.pow(2,-10*t)*k((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Se(o);return s=x/s,u.config=function(r,i){return t(e,r,i)},u},ze=function t(e,r){void 0===r&&(r=1.70158);var i=function(t){return t?--t*t*((r+1)*t+r)+1:0},n="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:Se(i);return n.config=function(r){return t(e,r)},n};lt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;Ee(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},(function(t){return 1-Math.pow(1-t,r)}),(function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2}))})),Me.Linear.easeNone=Me.none=Me.Linear.easeIn,Ee("Elastic",Re("in"),Re("out"),Re()),p=7.5625,d=1/(_=2.75),Ee("Bounce",(function(t){return 1-m(1-t)}),m=function(t){return t0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Nt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(be(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ft(this,t),!r._dp||r.parent||Bt(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&Lt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===T||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),gt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Et(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Et(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?St(this._tTime,r)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Rt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Qt(-Math.abs(this._delay),this._tDur,e),!0),zt(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(be(),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},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Lt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(S(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Rt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=K);var e=i;return i=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),i=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1/0:this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,qt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,qt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(jt(this,t),S(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,S(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t1?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(t){var e=this;return new Promise((function(r){var i=C(t)?t:yt,n=function(){var t=e.then;e.then=null,C(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),r(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?n():e._prom=n}))},e.kill=function(){fe(this)},t}();Tt(Be.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 Le=function(r){function n(e,i){var n;return void 0===e&&(e={}),(n=r.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=S(e.sortChildren),s&&Lt(e.parent||s,t(n),i),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&It(t(n),e.scrollTrigger),n}e(n,r);var a=n.prototype;return a.to=function(t,e,r){return Gt(0,arguments,this),this},a.from=function(t,e,r){return Gt(1,arguments,this),this},a.fromTo=function(t,e,r,i){return Gt(2,arguments,this),this},a.set=function(t,e,r){return e.duration=0,e.parent=this,Mt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Qe(t,e,jt(this,r),1),this},a.call=function(t,e,r){return Lt(this,Qe.delayedCall(0,t,e),r)},a.staggerTo=function(t,e,r,i,n,s,a){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new Qe(t,r,jt(this,n)),this},a.staggerFrom=function(t,e,r,i,n,s,a){return r.runBackwards=1,Mt(r).immediateRender=S(r.immediateRender),this.staggerTo(t,e,r,i,n,s,a)},a.staggerFromTo=function(t,e,r,i,n,s,a,o){return i.startAt=r,Mt(i).immediateRender=S(i.immediateRender),this.staggerTo(t,e,i,n,s,a,o)},a.render=function(t,e,r){var n,a,o,u,h,f,l,c,p,_,d,m,g=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,x=t<=0?0:pt(t),w=this._zTime<0!=t<0&&(this._initted||!y);if(this!==s&&x>v&&t>=0&&(x=v),x!==this._tTime||r||w){if(g!==this._time&&y&&(x+=this._time-g,t+=this._time-g),n=x,p=this._start,f=!(c=this._ts),w&&(y||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,h=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*h+t,e,r);if(n=pt(x%h),x===v?(u=this._repeat,n=y):((u=~~(x/h))&&u===x/h&&(n=y,u--),n>y&&(n=y)),_=St(this._tTime,h),!g&&this._tTime&&_!==u&&this._tTime-_*h-this._dur<=0&&(_=u),d&&1&u&&(n=y-n,m=1),u!==_&&!this._lock){var b=d&&1&_,M=b===(d&&1&u);if(u<_&&(b=!b),g=b?0:x%y?y:x,this._lock=1,this.render(g||(m?0:pt(u*h)),e,!y)._lock=0,this._tTime=x,!e&&this.parent&&he(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1),g&&g!==this._time||f!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,M&&(this._lock=2,g=b?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!f)return this;De(this,m)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(t,e,r){var i;if(r>e)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start=g&&t>=0)for(a=this._first;a;){if(o=a._next,(a._act||n>=a._start)&&a._ts&&l!==a){if(a.parent!==this)return this.render(t,e,r);if(a.render(a._ts>0?(n-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(n-a._start)*a._ts,e,r),n!==this._time||!this._ts&&!f){l=0,o&&(x+=this._zTime=-1e-8);break}}a=o}else{a=this._last;for(var O=t<0?t:n;a;){if(o=a._prev,(a._act||O<=a._end)&&a._ts&&l!==a){if(a.parent!==this)return this.render(t,e,r);if(a.render(a._ts>0?(O-a._start)*a._ts:(a._dirty?a.totalDuration():a._tDur)+(O-a._start)*a._ts,e,r||i&&(a._initted||a._startAt)),n!==this._time||!this._ts&&!f){l=0,o&&(x+=this._zTime=O?-1e-8:T);break}}a=o}}if(l&&!e&&(this.pause(),l.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=p,zt(this),this.render(t,e,r);this._onUpdate&&!e&&he(this,"onUpdate",!0),(x===v&&this._tTime>=this.totalDuration()||!x&&g)&&(p!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!y)&&(x===v&&this._ts>0||!x&&this._ts<0)&&At(this,1),e||t<0&&!g||!x&&!g&&v||(he(this,x===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(x0)&&this._prom())))}return this},a.add=function(t,e){var r=this;if(D(e)||(e=jt(this,e,t)),!(t instanceof Be)){if(B(t))return t.forEach((function(t){return r.add(t,e)})),this;if(A(t))return this.addLabel(t,e);if(!C(t))return this;t=Qe.delayedCall(0,t)}return this!==t?Lt(this,t,e):this},a.getChildren=function(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-1e8);for(var n=[],s=this._first;s;)s._start>=i&&(s instanceof Qe?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},a.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},a.remove=function(t){return A(t)?this.removeLabel(t):C(t)?this.killTweensOf(t):(kt(this,t),t===this._recent&&(this._recent=this._last),Ct(this))},a.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=pt(we.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),r.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},a.addLabel=function(t,e){return this.labels[t]=jt(this,e),this},a.removeLabel=function(t){return delete this.labels[t],this},a.addPause=function(t,e,r){var i=Qe.delayedCall(0,e||Z,r);return i.data="isPause",this._hasPause=1,Lt(this,i,jt(this,t))},a.removePause=function(t){var e=this._first;for(t=jt(this,t);e;)e._start===t&&"isPause"===e.data&&At(e),e=e._next},a.killTweensOf=function(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)Ie!==i[n]&&i[n].kill(t,e);return this},a.getTweensOf=function(t,e){for(var r,i=[],n=Jt(t),s=this._first,a=D(e);s;)s instanceof Qe?dt(s._targets,n)&&(a?(!Ie||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&i.push(s):(r=s.getTweensOf(n,e)).length&&i.push.apply(i,r),s=s._next;return i},a.tweenTo=function(t,e){e=e||{};var r,i=this,n=jt(i,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,h=s.immediateRender,f=Qe.to(i,Tt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||T,onStart:function(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());f._dur!==t&&Nt(f,t,0,1).render(f._time,!0,!0),r=1}o&&o.apply(f,u||[])}},e));return h?f.render(0):f},a.tweenFromTo=function(t,e,r){return this.tweenTo(e,Tt({startAt:{time:jt(this,t)}},r))},a.recent=function(){return this._recent},a.nextLabel=function(t){return void 0===t&&(t=this._time),ue(this,jt(this,t))},a.previousLabel=function(t){return void 0===t&&(t=this._time),ue(this,jt(this,t),1)},a.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+T)},a.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,s=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return Ct(this)},a.invalidate=function(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return r.prototype.invalidate.call(this,t)},a.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Ct(this)},a.totalDuration=function(t){var e,r,i,n=0,a=this,o=a._last,u=y;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>u&&a._sort&&o._ts&&!a._lock?(a._lock=1,Lt(a,o,r-o._delay,1)._lock=0):u=r,r<0&&o._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),u=0),o._end>n&&o._ts&&(n=o._end),o=e;Nt(a,a===s&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},n.updateRoot=function(t){if(s._ts&&(gt(s,Rt(t,s)),f=we.frame),we.frame>=st){st+=g.autoSleep||120;var e=s._first;if((!e||!e._ts)&&g.autoSleep&&we._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||we.sleep()}}},n}(Be);Tt(Le.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ie,Ye,Ue=function(t,e,r,i,n,s,a){var o,u,h,f,l,c,p,_,d=new ur(this._pt,t,e,0,1,rr,null,n),m=0,g=0;for(d.b=r,d.e=i,r+="",(p=~(i+="").indexOf("random("))&&(i=ae(i)),s&&(s(_=[r,i],t,e),r=_[0],i=_[1]),u=r.match(U)||[];o=U.exec(i);)f=o[0],l=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===l.substr(-5)&&(h=1),f!==u[g++]&&(c=parseFloat(u[g-1])||0,d._pt={_next:d._pt,p:l||1===g?l:",",s:c,c:"="===f.charAt(1)?_t(c,f)-c:parseFloat(f)-c,m:h&&h<4?Math.round:0},m=U.lastIndex);return d.c=m")})),h.duration();else{for(p in l={},M)"ease"===p||"easeEach"===p||Ve(p,M[p],l,M.easeEach);for(p in l)for(R=l[p].sort((function(t,e){return t.t-e.t})),Y=0,f=0;f_-T&&!m?_:td&&(n=d)),(h=this._yoyo&&1&a)&&(c=this._yEase,n=d-n),u=St(this._tTime,o),n===p&&!r&&this._initted)return this._tTime=g,this;a!==u&&(l&&this._yEase&&De(l,h),!this.vars.repeatRefresh||h||this._lock||(this._lock=r=1,this.render(pt(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(Yt(this,m?t:n,r,e,g))return this._tTime=0,this;if(p!==this._time)return this;if(d!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=f=(c||this._ease)(n/d),this._from&&(this.ratio=f=1-f),n&&!p&&!e&&!a&&(he(this,"onStart"),this._tTime!==g))return this;for(s=this._pt;s;)s.r(f,s.d),s=s._next;l&&l.render(t<0?t:!n&&h?-1e-8:l._dur*l._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Dt(this,t,0,r),he(this,"onUpdate")),this._repeat&&a!==u&&this.vars.onRepeat&&!e&&this.parent&&he(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Dt(this,t,0,!0),(t||!d)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&At(this,1),e||m&&!p||!(g||p||h)||(he(this,g===_?"onComplete":"onReverseComplete",!0),this._prom&&!(g<_&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var s,a,o,u=t.ratio,h=e<0||!e&&(!t._start&&Ut(t)&&(t._initted||!Xt(t))||(t._ts<0||t._dp._ts<0)&&!Xt(t))?0:1,f=t._rDelay,l=0;if(f&&t._repeat&&(l=Qt(0,t._tDur,e),a=St(l,f),t._yoyo&&1&a&&(h=1-h),a!==St(t._tTime,f)&&(u=1-h,t.vars.repeatRefresh&&t._initted&&t.invalidate())),h!==u||i||n||t._zTime===T||!e&&t._zTime){if(!t._initted&&Yt(t,e,n,r,l))return;for(o=t._zTime,t._zTime=e||(r?T:0),r||(r=e&&!o),t.ratio=h,t._from&&(h=1-h),t._time=0,t._tTime=l,s=t._pt;s;)s.r(h,s.d),s=s._next;e<0&&Dt(t,e,0,!0),t._onUpdate&&!r&&he(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&he(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===h&&(h&&At(t,1),r||i||(he(t,h?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},o.targets=function(){return this._targets},o.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),n.prototype.invalidate.call(this,t)},o.resetTo=function(t,e,r,i){c||we.wake(),this._ts||this.play();var n=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||qe(this,n),function(t,e,r,i,n,s,a){var o,u,h,f,l=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!l)for(l=t._ptCache[e]=[],h=t._ptLookup,f=t._targets.length;f--;){if((o=h[f][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e&&o.fp!==e;)o=o._next;if(!o)return Ye=1,t.vars[e]="+=0",qe(t,a),Ye=0,1;l.push(o)}for(f=l.length;f--;)(o=(u=l[f])._pt||u).s=!i&&0!==i||n?o.s+(i||0)+s*o.c:i,o.c=r-o.s,u.e&&(u.e=ct(r)+Ht(u.e)),u.b&&(u.b=o.s+Ht(u.b))}(this,t,e,r,i,this._ease(n/this._dur),n)?this.resetTo(t,e,r,i):(Ft(this,0),this.parent||Ot(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},o.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?fe(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ie&&!0!==Ie.vars.overwrite)._first||fe(this),this.parent&&r!==this.timeline.totalDuration()&&Nt(this,this._dur*this.timeline._tDur/r,0,1),this}var i,n,s,a,o,u,h,f=this._targets,l=t?Jt(t):f,c=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,l))return"all"===e&&(this._pt=0),fe(this);for(i=this._op=this._op||[],"all"!==e&&(A(e)&&(o={},lt(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var r,i,n,s,a=t[0]?ht(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(i in r=xt({},e),o)if(i in r)for(n=(s=o[i].split(",")).length;n--;)r[s[n]]=r[i];return r}(f,e)),h=f.length;h--;)if(~l.indexOf(f[h]))for(o in n=c[h],"all"===e?(i[h]=e,a=n,s={}):(s=i[h]=i[h]||{},a=e),a)(u=n&&n[o])&&("kill"in u.d&&!0!==u.d.kill(o)||kt(this,u,"_pt"),delete n[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&p&&fe(this),this},a.to=function(t,e){return new a(t,e,arguments[2])},a.from=function(t,e){return Gt(1,arguments)},a.delayedCall=function(t,e,r,i){return new a(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},a.fromTo=function(t,e,r){return Gt(2,arguments)},a.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new a(t,e)},a.killTweensOf=function(t,e,r){return s.killTweensOf(t,e,r)},a}(Be);Tt(Qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),lt("staggerTo,staggerFrom,staggerFromTo",(function(t){Qe[t]=function(){var e=new Le,r=Zt.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var He=function(t,e,r){return t[e]=r},Ze=function(t,e,r){return t[e](r)},$e=function(t,e,r,i){return t[e](i.fp,r)},Je=function(t,e,r){return t.setAttribute(e,r)},Ke=function(t,e){return C(t[e])?Ze:P(t[e])&&t.setAttribute?Je:He},tr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},er=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},rr=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},ir=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},nr=function(t,e,r,i){for(var n,s=this._pt;s;)n=s._next,s.p===i&&s.modifier(t,e,r),s=n},sr=function(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?kt(this,i,"_pt"):i.dep||(e=1),i=r;return!e},ar=function(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)},or=function(t){for(var e,r,i,n,s=t._pt;s;){for(e=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},ur=function(){function t(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||tr,this.d=a||this,this.set=o||He,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=ar,this.m=t,this.mt=r,this.tween=e},t}();lt(ot+"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(t){return tt[t]=1})),V.TweenMax=V.TweenLite=Qe,V.TimelineLite=V.TimelineMax=Le,s=new Le({sortChildren:!1,defaults:v,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),g.stringFilter=xe;var hr=[],fr={},lr=[],cr=0,pr=0,_r=function(t){return(fr[t]||lr).map((function(t){return t()}))},dr=function(){var t=Date.now(),e=[];t-cr>2&&(_r("matchMediaInit"),hr.forEach((function(t){var r,i,n,s,o=t.queries,u=t.conditions;for(i in o)(r=a.matchMedia(o[i]).matches)&&(n=1),r!==u[i]&&(u[i]=r,s=1);s&&(t.revert(),n&&e.push(t))})),_r("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),cr=t,_r("matchMedia"))},mr=function(){function t(t,e){this.selector=e&&Kt(e),this.data=[],this._r=[],this.isReverted=!1,this.id=pr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){C(t)&&(r=e,e=t,t=C);var i=this,s=function(){var t,s=n,a=i.selector;return s&&s!==i&&s.data.push(i),r&&(i.selector=Kt(r)),n=i,t=e.apply(i,arguments),C(t)&&i._r.push(t),n=s,i.selector=a,i.isReverted=!1,t};return i.last=s,t===C?s(i):t?i[t]=s:s},e.ignore=function(t){var e=n;n=null,t(this),n=e},e.getTweens=function(){var e=[];return this.data.forEach((function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof Qe&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t){var i=this.getTweens();this.data.forEach((function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(t){return i.splice(i.indexOf(t),1)})))})),i.map((function(t){return{g:t.globalTime(0),t:t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),this.data.forEach((function(e){return!(e instanceof Qe)&&e.revert&&e.revert(t)})),this._r.forEach((function(e){return e(t,r)})),this.isReverted=!0}else this.data.forEach((function(t){return t.kill&&t.kill()}));if(this.clear(),e)for(var n=hr.length;n--;)hr[n].id===this.id&&hr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),gr=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,r){E(t)||(t={matches:t});var i,s,o,u=new mr(0,r||this.scope),h=u.conditions={};for(s in n&&!u.selector&&(u.selector=n.selector),this.contexts.push(u),e=u.add("onMatch",e),u.queries=t,t)"all"===s?o=1:(i=a.matchMedia(t[s]))&&(hr.indexOf(u)<0&&hr.push(u),(h[s]=i.matches)&&(o=1),i.addListener?i.addListener(dr):i.addEventListener("change",dr));return o&&e(u),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),vr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r1){var i=t.map((function(t){return xr.quickSetter(t,e,r)})),n=i.length;return function(t){for(var e=n;e--;)i[e](t)}}t=t[0]||{};var s=it[e],a=ht(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var i=new s;l._pt=0,i.init(t,r?e+r:e,l,0,[t]),i.render(1,i),l._pt&&ir(1,l)}:a.set(t,o);return s?u:function(e){return u(t,o,r?e+r:e,a,1)}},quickTo:function(t,e,r){var i,n=xr.to(t,xt(((i={})[e]="+=0.1",i.paused=!0,i),r||{})),s=function(t,r,i){return n.resetTo(e,t,r,i)};return s.tween=n,s},isTweening:function(t){return s.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Pe(t.ease,v.ease)),wt(v,t||{})},config:function(t){return wt(g,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,i=t.plugins,n=t.defaults,s=t.extendTimeline;(i||"").split(",").forEach((function(t){return t&&!it[t]&&!V[t]&&Q(e+" effect requires "+t+" plugin.")})),nt[e]=function(t,e,i){return r(Jt(t),Tt(e||{},n),i)},s&&(Le.prototype[e]=function(t,r,i){return this.add(nt[e](t,E(r)?r:(i=r)&&{},this),i)})},registerEase:function(t,e){Me[t]=Pe(e)},parseEase:function(t,e){return arguments.length?Pe(t,e):Me},getById:function(t){return s.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,i,n=new Le(t);for(n.smoothChildTiming=S(t.smoothChildTiming),s.remove(n),n._dp=0,n._time=n._tTime=s._time,r=s._first;r;)i=r._next,!e&&!r._dur&&r instanceof Qe&&r.vars.onComplete===r._targets[0]||Lt(n,r,r._start-r._delay),r=i;return Lt(s,n,0),n},context:function(t,e){return t?new mr(t,e):n},matchMedia:function(t){return new gr(t)},matchMediaRefresh:function(){return hr.forEach((function(t){var e,r,i=t.conditions;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()}))||dr()},addEventListener:function(t,e){var r=fr[t]||(fr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=fr[t],i=r&&r.indexOf(e);i>=0&&r.splice(i,1)},utils:{wrap:function t(e,r,i){var n=r-e;return B(e)?se(e,t(0,e.length),r):Wt(i,(function(t){return(n+(t-e)%n)%n+e}))},wrapYoyo:function t(e,r,i){var n=r-e,s=2*n;return B(e)?se(e,t(0,e.length-1),r):Wt(i,(function(t){return e+((t=(s+(t-e)%s)%s||0)>n?s-t:t)}))},distribute:ee,random:ne,snap:ie,normalize:function(t,e,r){return oe(t,e,0,1,r)},getUnit:Ht,clamp:function(t,e,r){return Wt(r,(function(r){return Qt(t,e,r)}))},splitColor:me,toArray:Jt,selector:Kt,mapRange:oe,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r=0)return;n._gsap.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(Jr,r,"")),e=$r}(s||r)&&this.props.push(e,r,s[e])},ti=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},ei=function(){var t,e,r=this.props,i=this.target,n=i.style,s=i._gsap;for(t=0;t=0?si[n]:"")+t},oi=function(){"undefined"!=typeof window&&window.document&&(br=window,Mr=br.document,Or=Mr.documentElement,Ar=ii("div")||{style:{}},ii("div"),$r=ai($r),Jr=$r+"Origin",Ar.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Pr=!!ai("perspective"),Dr=xr.core.reverting,kr=1)},ui=function t(e){var r,i=ii("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,s=this.nextSibling,a=this.style.cssText;if(Or.appendChild(i),i.appendChild(this),this.style.display="block",e)try{r=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(r=this._gsapBBox());return n&&(s?n.insertBefore(this,s):n.appendChild(this)),Or.removeChild(i),this.style.cssText=a,r},hi=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},fi=function(t){var e;try{e=t.getBBox()}catch(r){e=ui.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===ui||(e=ui.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+hi(t,["x","cx","x1"])||0,y:+hi(t,["y","cy","y1"])||0,width:0,height:0}},li=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!fi(t))},ci=function(t,e){if(e){var r=t.style;e in Er&&e!==Jr&&(e=$r),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(Fr,"-$1").toLowerCase())):r.removeAttribute(e)}},pi=function(t,e,r,i,n,s){var a=new ur(t._pt,e,r,0,1,s?Vr:qr);return t._pt=a,a.b=i,a.e=n,t._props.push(r),a},_i={deg:1,rad:1,turn:1},di={grid:1,flex:1},mi=function t(e,r,i,n){var s,a,o,u,h=parseFloat(i)||0,f=(i+"").trim().substr((h+"").length)||"px",l=Ar.style,c=Br.test(r),p="svg"===e.tagName.toLowerCase(),_=(p?"client":"offset")+(c?"Width":"Height"),d=100,m="px"===n,g="%"===n;return n===f||!h||_i[n]||_i[f]?h:("px"!==f&&!m&&(h=t(e,r,i,"px")),u=e.getCTM&&li(e),!g&&"%"!==f||!Er[r]&&!~r.indexOf("adius")?(l[c?"width":"height"]=d+(m?f:n),a=~r.indexOf("adius")||"em"===n&&e.appendChild&&!p?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Mr&&a.appendChild||(a=Mr.body),(o=a._gsap)&&g&&o.width&&c&&o.time===we.time&&!o.uncache?ct(h/o.width*d):((g||"%"===f)&&!di[ni(a,"display")]&&(l.position=ni(e,"position")),a===e&&(l.position="static"),a.appendChild(Ar),s=Ar[_],a.removeChild(Ar),l.position="absolute",c&&g&&((o=ht(a)).time=we.time,o.width=a[_]),ct(m?s*h/d:s&&h?d/s*h:0))):(s=u?e.getBBox()[c?"width":"height"]:e[_],ct(g?h/s*d:h/100*s)))},gi=function(t,e,r,i){var n;return kr||oi(),e in Ir&&"transform"!==e&&~(e=Ir[e]).indexOf(",")&&(e=e.split(",")[0]),Er[e]&&"transform"!==e?(n=Ci(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:Di(ni(t,Jr))+" "+n.zOrigin+"px"):(!(n=t.style[e])||"auto"===n||i||~(n+"").indexOf("calc("))&&(n=xi[e]&&xi[e](t,e,r)||ni(t,e)||ft(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?mi(t,e,n,r)+r:n},vi=function(t,e,r,i){if(!r||"none"===r){var n=ai(e,t,1),s=n&&ni(t,n,1);s&&s!==r?(e=n,r=s):"borderColor"===e&&(r=ni(t,"borderTopColor"))}var a,o,u,h,f,l,c,p,_,d,m,v=new ur(this._pt,t.style,e,0,1,rr),y=0,T=0;if(v.b=r,v.e=i,r+="","auto"==(i+="")&&(t.style[e]=i,i=ni(t,e)||i,t.style[e]=r),xe(a=[r,i]),i=a[1],u=(r=a[0]).match(Y)||[],(i.match(Y)||[]).length){for(;o=Y.exec(i);)c=o[0],_=i.substring(y,o.index),f?f=(f+1)%5:"rgba("!==_.substr(-5)&&"hsla("!==_.substr(-5)||(f=1),c!==(l=u[T++]||"")&&(h=parseFloat(l)||0,m=l.substr((h+"").length),"="===c.charAt(1)&&(c=_t(h,c)+m),p=parseFloat(c),d=c.substr((p+"").length),y=Y.lastIndex-d.length,d||(d=d||g.units[e]||m,y===i.length&&(i+=d,v.e+=d)),m!==d&&(h=mi(t,e,l,d)||0),v._pt={_next:v._pt,p:_||1===T?_:",",s:h,c:p-h,m:f&&f<4||"zIndex"===e?Math.round:0});v.c=y-1;)r=o[n],Er[r]&&(i=1,r="transformOrigin"===r?Jr:$r),ci(s,r);i&&(ci(s,$r),u&&(u.svg&&s.removeAttribute("transform"),Ci(s,1),u.uncache=1,ti(a)))}},xi={clearProps:function(t,e,r,i,n){if("isFromStart"!==n.data){var s=t._pt=new ur(t._pt,e,r,0,0,Ti);return s.u=i,s.pr=-10,s.tween=n,t._props.push(r),1}}},wi=[1,0,0,1,0,0],bi={},Mi=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Oi=function(t){var e=ni(t,$r);return Mi(e)?wi:e.substr(7).match(I).map(ct)},ki=function(t,e){var r,i,n,s,a=t._gsap||ht(t),o=t.style,u=Oi(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?wi:u:(u!==wi||t.offsetParent||t===Or||a.svg||(n=o.display,o.display="block",(r=t.parentNode)&&t.offsetParent||(s=1,i=t.nextElementSibling,Or.appendChild(t)),u=Oi(t),n?o.display=n:ci(t,"display"),s&&(i?r.insertBefore(t,i):r?r.appendChild(t):Or.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Ai=function(t,e,r,i,n,s){var a,o,u,h=t._gsap,f=n||ki(t,!0),l=h.xOrigin||0,c=h.yOrigin||0,p=h.xOffset||0,_=h.yOffset||0,d=f[0],m=f[1],g=f[2],v=f[3],y=f[4],T=f[5],x=e.split(" "),w=parseFloat(x[0])||0,b=parseFloat(x[1])||0;r?f!==wi&&(o=d*v-m*g)&&(u=w*(-m/o)+b*(d/o)-(d*T-m*y)/o,w=w*(v/o)+b*(-g/o)+(g*T-v*y)/o,b=u):(w=(a=fi(t)).x+(~x[0].indexOf("%")?w/100*a.width:w),b=a.y+(~(x[1]||x[0]).indexOf("%")?b/100*a.height:b)),i||!1!==i&&h.smooth?(y=w-l,T=b-c,h.xOffset=p+(y*d+T*g)-y,h.yOffset=_+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=b,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[Jr]="0px 0px",s&&(pi(s,h,"xOrigin",l,w),pi(s,h,"yOrigin",c,b),pi(s,h,"xOffset",p,h.xOffset),pi(s,h,"yOffset",_,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+b)},Ci=function(t,e){var r=t._gsap||new Fe(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,s,a,o,u,h,f,l,c,p,_,d,m,v,y,T,x,w,b,M,O,k,A,C,D,P,E,S,R,z,F,B=t.style,L=r.scaleX<0,I="px",Y="deg",U=getComputedStyle(t),X=ni(t,Jr)||"0";return i=n=s=u=h=f=l=c=p=0,a=o=1,r.svg=!(!t.getCTM||!li(t)),U.translate&&("none"===U.translate&&"none"===U.scale&&"none"===U.rotate||(B[$r]=("none"!==U.translate?"translate3d("+(U.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==U.rotate?"rotate("+U.rotate+") ":"")+("none"!==U.scale?"scale("+U.scale.split(" ").join(",")+") ":"")+("none"!==U[$r]?U[$r]:"")),B.scale=B.rotate=B.translate="none"),m=ki(t,r.svg),r.svg&&(r.uncache?(C=t.getBBox(),X=r.xOrigin-C.x+"px "+(r.yOrigin-C.y)+"px",A=""):A=!e&&t.getAttribute("data-svg-origin"),Ai(t,A||X,!!A||r.originIsAbsolute,!1!==r.smooth,m)),_=r.xOrigin||0,d=r.yOrigin||0,m!==wi&&(x=m[0],w=m[1],b=m[2],M=m[3],i=O=m[4],n=k=m[5],6===m.length?(a=Math.sqrt(x*x+w*w),o=Math.sqrt(M*M+b*b),u=x||w?zr(w,x)*Sr:0,(l=b||M?zr(b,M)*Sr+u:0)&&(o*=Math.abs(Math.cos(l*Rr))),r.svg&&(i-=_-(_*x+d*b),n-=d-(_*w+d*M))):(F=m[6],R=m[7],P=m[8],E=m[9],S=m[10],z=m[11],i=m[12],n=m[13],s=m[14],h=(v=zr(F,S))*Sr,v&&(A=O*(y=Math.cos(-v))+P*(T=Math.sin(-v)),C=k*y+E*T,D=F*y+S*T,P=O*-T+P*y,E=k*-T+E*y,S=F*-T+S*y,z=R*-T+z*y,O=A,k=C,F=D),f=(v=zr(-b,S))*Sr,v&&(y=Math.cos(-v),z=M*(T=Math.sin(-v))+z*y,x=A=x*y-P*T,w=C=w*y-E*T,b=D=b*y-S*T),u=(v=zr(w,x))*Sr,v&&(A=x*(y=Math.cos(v))+w*(T=Math.sin(v)),C=O*y+k*T,w=w*y-x*T,k=k*y-O*T,x=A,O=C),h&&Math.abs(h)+Math.abs(u)>359.9&&(h=u=0,f=180-f),a=ct(Math.sqrt(x*x+w*w+b*b)),o=ct(Math.sqrt(k*k+F*F)),v=zr(O,k),l=Math.abs(v)>2e-4?v*Sr:0,p=z?1/(z<0?-z:z):0),r.svg&&(A=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Mi(ni(t,$r)),A&&t.setAttribute("transform",A))),Math.abs(l)>90&&Math.abs(l)<270&&(L?(a*=-1,l+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,l+=l<=0?180:-180)),e=e||r.uncache,r.x=i-((r.xPercent=i&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+I,r.y=n-((r.yPercent=n&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+I,r.z=s+I,r.scaleX=ct(a),r.scaleY=ct(o),r.rotation=ct(u)+Y,r.rotationX=ct(h)+Y,r.rotationY=ct(f)+Y,r.skewX=l+Y,r.skewY=c+Y,r.transformPerspective=p+I,(r.zOrigin=parseFloat(X.split(" ")[2])||0)&&(B[Jr]=Di(X)),r.xOffset=r.yOffset=0,r.force3D=g.force3D,r.renderTransform=r.svg?Bi:Pr?Fi:Ei,r.uncache=0,r},Di=function(t){return(t=t.split(" "))[0]+" "+t[1]},Pi=function(t,e,r){var i=Ht(e);return ct(parseFloat(e)+parseFloat(mi(t,"x",r+"px",i)))+i},Ei=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Fi(t,e)},Si="0deg",Ri="0px",zi=") ",Fi=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,a=r.y,o=r.z,u=r.rotation,h=r.rotationY,f=r.rotationX,l=r.skewX,c=r.skewY,p=r.scaleX,_=r.scaleY,d=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",T="auto"===m&&t&&1!==t||!0===m;if(v&&(f!==Si||h!==Si)){var x,w=parseFloat(h)*Rr,b=Math.sin(w),M=Math.cos(w);w=parseFloat(f)*Rr,x=Math.cos(w),s=Pi(g,s,b*x*-v),a=Pi(g,a,-Math.sin(w)*-v),o=Pi(g,o,M*x*-v+v)}d!==Ri&&(y+="perspective("+d+zi),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),(T||s!==Ri||a!==Ri||o!==Ri)&&(y+=o!==Ri||T?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+zi),u!==Si&&(y+="rotate("+u+zi),h!==Si&&(y+="rotateY("+h+zi),f!==Si&&(y+="rotateX("+f+zi),l===Si&&c===Si||(y+="skew("+l+", "+c+zi),1===p&&1===_||(y+="scale("+p+", "+_+zi),g.style[$r]=y||"translate(0, 0)"},Bi=function(t,e){var r,i,n,s,a,o=e||this,u=o.xPercent,h=o.yPercent,f=o.x,l=o.y,c=o.rotation,p=o.skewX,_=o.skewY,d=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,x=o.yOffset,w=o.forceCSS,b=parseFloat(f),M=parseFloat(l);c=parseFloat(c),p=parseFloat(p),(_=parseFloat(_))&&(p+=_=parseFloat(_),c+=_),c||p?(c*=Rr,p*=Rr,r=Math.cos(c)*d,i=Math.sin(c)*d,n=Math.sin(c-p)*-m,s=Math.cos(c-p)*m,p&&(_*=Rr,a=Math.tan(p-_),n*=a=Math.sqrt(1+a*a),s*=a,_&&(a=Math.tan(_),r*=a=Math.sqrt(1+a*a),i*=a)),r=ct(r),i=ct(i),n=ct(n),s=ct(s)):(r=d,s=m,i=n=0),(b&&!~(f+"").indexOf("px")||M&&!~(l+"").indexOf("px"))&&(b=mi(g,"x",f,"px"),M=mi(g,"y",l,"px")),(v||y||T||x)&&(b=ct(b+v-(v*r+y*n)+T),M=ct(M+y-(v*i+y*s)+x)),(u||h)&&(a=g.getBBox(),b=ct(b+u/100*a.width),M=ct(M+h/100*a.height)),a="matrix("+r+","+i+","+n+","+s+","+b+","+M+")",g.setAttribute("transform",a),w&&(g.style[$r]=a)},Li=function(t,e,r,i,n){var s,a,o=360,u=A(n),h=parseFloat(n)*(u&&~n.indexOf("rad")?Sr:1)-i,f=i+h+"deg";return u&&("short"===(s=n.split("_")[1])&&(h%=o)!=h%180&&(h+=h<0?o:-360),"cw"===s&&h<0?h=(h+36e9)%o-~~(h/o)*o:"ccw"===s&&h>0&&(h=(h-36e9)%o-~~(h/o)*o)),t._pt=a=new ur(t._pt,e,r,i,h,Ur),a.e=f,a.u="deg",t._props.push(r),a},Ii=function(t,e){for(var r in e)t[r]=e[r];return t},Yi=function(t,e,r){var i,n,s,a,o,u,h,f=Ii({},r._gsap),l=r.style;for(n in f.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),l[$r]=e,i=Ci(r,1),ci(r,$r),r.setAttribute("transform",s)):(s=getComputedStyle(r)[$r],l[$r]=e,i=Ci(r,1),l[$r]=s),Er)(s=f[n])!==(a=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=Ht(s)!==(h=Ht(a))?mi(r,n,s,h):parseFloat(s),u=parseFloat(a),t._pt=new ur(t._pt,i,n,o,u-o,Yr),t._pt.u=h||0,t._props.push(n));Ii(i,f)};lt("padding,margin,Width,Radius",(function(t,e){var r="Top",i="Right",n="Bottom",s="Left",a=(e<3?[r,i,n,s]:[r+s,r+i,n+i,n+s]).map((function(r){return e<2?t+r:"border"+r+t}));xi[e>1?"border"+t:t]=function(t,e,r,i,n){var s,o;if(arguments.length<4)return s=a.map((function(e){return gi(t,e,r)})),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(i+"").split(" "),o={},a.forEach((function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,o,n)}}));var Ui,Xi,Ni={name:"css",register:oi,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s,a,o,u,h,f,l,c,p,_,d,m,v,y,T,x,w,b,M,O,k=this._props,C=t.style,D=r.vars.startAt;for(l in kr||oi(),this.styles=this.styles||ri(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==l&&(a=e[l],!it[l]||!Ne(l,e,r,i,t,n)))if(h=typeof a,f=xi[l],"function"===h&&(h=typeof(a=a.call(r,i,t,n))),"string"===h&&~a.indexOf("random(")&&(a=ae(a)),f)f(this,t,l,a,r)&&(T=1);else if("--"===l.substr(0,2))s=(getComputedStyle(t).getPropertyValue(l)+"").trim(),a+="",ye.lastIndex=0,ye.test(s)||(c=Ht(s),p=Ht(a)),p?c!==p&&(s=mi(t,l,s,p)+p):c&&(a+=c),this.add(C,"setProperty",s,a,i,n,0,0,l),k.push(l),x.push(l,0,C[l]);else if("undefined"!==h){if(D&&l in D?(s="function"==typeof D[l]?D[l].call(r,i,t,n):D[l],A(s)&&~s.indexOf("random(")&&(s=ae(s)),Ht(s+"")||(s+=g.units[l]||Ht(gi(t,l))||""),"="===(s+"").charAt(1)&&(s=gi(t,l))):s=gi(t,l),u=parseFloat(s),(_="string"===h&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),l in Ir&&("autoAlpha"===l&&(1===u&&"hidden"===gi(t,"visibility")&&o&&(u=0),x.push("visibility",0,C.visibility),pi(this,C,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==l&&"transform"!==l&&~(l=Ir[l]).indexOf(",")&&(l=l.split(",")[0])),d=l in Er)if(this.styles.save(l),m||((v=t._gsap).renderTransform&&!e.parseTransform||Ci(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(m=this._pt=new ur(this._pt,C,$r,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===l)this._pt=new ur(this._pt,v,"scaleY",v.scaleY,(_?_t(v.scaleY,_+o):o)-v.scaleY||0,Yr),this._pt.u=0,k.push("scaleY",l),l+="X";else{if("transformOrigin"===l){x.push(Jr,0,C[Jr]),b=void 0,M=void 0,O=void 0,M=(b=(w=a).split(" "))[0],O=b[1]||"50%","top"!==M&&"bottom"!==M&&"left"!==O&&"right"!==O||(w=M,M=O,O=w),b[0]=yi[M]||M,b[1]=yi[O]||O,a=b.join(" "),v.svg?Ai(t,a,0,y,0,this):((p=parseFloat(a.split(" ")[2])||0)!==v.zOrigin&&pi(this,v,"zOrigin",v.zOrigin,p),pi(this,C,l,Di(s),Di(a)));continue}if("svgOrigin"===l){Ai(t,a,1,y,0,this);continue}if(l in bi){Li(this,v,l,u,_?_t(u,_+a):a);continue}if("smoothOrigin"===l){pi(this,v,"smooth",v.smooth,a);continue}if("force3D"===l){v[l]=a;continue}if("transform"===l){Yi(this,a,t);continue}}else l in C||(l=ai(l)||l);if(d||(o||0===o)&&(u||0===u)&&!Lr.test(a)&&l in C)o||(o=0),(c=(s+"").substr((u+"").length))!==(p=Ht(a)||(l in g.units?g.units[l]:c))&&(u=mi(t,l,s,p)),this._pt=new ur(this._pt,d?v:C,l,u,(_?_t(u,_+o):o)-u,d||"px"!==p&&"zIndex"!==l||!1===e.autoRound?Yr:Nr),this._pt.u=p||0,c!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=Xr);else if(l in C)vi.call(this,t,l,s,_?_+a:a);else if(l in t)this.add(t,l,s||t[l],_?_+a:a,i,n);else if("parseTransform"!==l){W(l,a);continue}d||(l in C?x.push(l,0,C[l]):x.push(l,1,s||t[l])),k.push(l)}T&&or(this)},render:function(t,e){if(e.tween._time||!Dr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:gi,aliases:Ir,getSetter:function(t,e,r){var i=Ir[e];return i&&i.indexOf(",")<0&&(e=i),e in Er&&e!==Jr&&(t._gsap.x||gi(t,"x"))?r&&Cr===r?"scale"===e?Qr:Wr:(Cr=r||{})&&("scale"===e?Hr:Zr):t.style&&!P(t.style[e])?jr:~e.indexOf("-")?Gr:Ke(t,e)},core:{_removeProperty:ci,_getMatrix:ki}};xr.utils.checkPrefix=ai,xr.core.getStyleSaver=ri,Xi=lt("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(Ui="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Er[t]=1})),lt(Ui,(function(t){g.units[t]="deg",bi[t]=1})),Ir[Xi[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Ui,lt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Ir[e[1]]=Xi[e[0]]})),lt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){g.units[t]="px"})),xr.registerPlugin(Ni);var qi=xr.registerPlugin(Ni)||xr;qi.core.Tween;export{wr as P,qi as g}; \ No newline at end of file diff --git a/static/js/IdO1GK.js b/static/js/IdO1GK.js new file mode 100644 index 0000000..4e6f8a2 --- /dev/null +++ b/static/js/IdO1GK.js @@ -0,0 +1 @@ +import{s as e,b as t,e as s,f as i,c as r,W as n,o as a,g as o}from"./main.js";import{g as l,P as d}from"./HzPj1-.js";function c(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function p(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((s=>{void 0===e[s]?e[s]=t[s]:c(t[s])&&c(e[s])&&Object.keys(t[s]).length>0&&p(e[s],t[s])}))}const u={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function m(){const e="undefined"!=typeof document?document:{};return p(e,u),e}const h={document:u,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function f(){const e="undefined"!=typeof window?window:{};return p(e,h),e}function v(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function g(){return Date.now()}function w(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function T(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let i=1;it.indexOf(e)<0));for(let t=0,i=s.length;tn?"next":"prev",c=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,p=()=>{a=(new Date).getTime(),null===o&&(o=a);const e=Math.max(Math.min((a-o)/l,1),0),d=.5-Math.cos(e*Math.PI)/2;let u=n+d*(s-n);if(c(u,s)&&(u=s),t.wrapperEl.scrollTo({[i]:u}),c(u,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:u})})),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(p)};p()}function x(e,t){return void 0===t&&(t=""),[...e.children].filter((e=>e.matches(t)))}function y(e){try{return void console.warn(e)}catch(e){}}function E(e,t){void 0===t&&(t=[]);const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}(t)),s}function M(e,t){return f().getComputedStyle(e,null).getPropertyValue(t)}function C(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function P(e,t,s){const i=f();return s?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}let I,L,k;function O(){return I||(I=function(){const e=f(),t=m();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),I}var A={on(e,t,s){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const r=s?"unshift":"push";return e.split(" ").forEach((e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)})),i},once(e,t,s){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function r(){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var s=arguments.length,n=new Array(s),a=0;a=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach(((i,r)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&s.eventsListeners[e].splice(r,1)}))})),s):s},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,s,i;for(var r=arguments.length,n=new Array(r),a=0;a{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(i,[t,...s])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(i,s)}))})),e}};const z=(e,t)=>{if(!e||e.destroyed||!e.params)return;const s=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(s){let t=s.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(s.shadowRoot?t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{s.shadowRoot&&(t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},G=(e,t)=>{if(!e.slides[t])return;const s=e.slides[t].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},D=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const s=e.slides.length;if(!s||!t||t<0)return;t=Math.min(t,s);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=r,n=[s-t];return n.push(...Array.from({length:t}).map(((e,t)=>s+i+t))),void e.slides.forEach(((t,s)=>{n.includes(t.column)&&G(e,s)}))}const n=r+i-1;if(e.params.rewind||e.params.loop)for(let i=r-t;i<=n+t;i+=1){const t=(i%s+s)%s;(tn)&&G(e,t)}else for(let i=Math.max(r-t,0);i<=Math.min(n+t,s-1);i+=1)i!==r&&(i>n||i=0?T=parseFloat(T.replace("%",""))/100*n:"string"==typeof T&&(T=parseFloat(T)),e.virtualSize=-T,c.forEach((e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),s.centeredSlides&&s.cssMode&&(S(i,"--swiper-centered-offset-before",""),S(i,"--swiper-centered-offset-after",""));const C=s.grid&&s.grid.rows>1&&e.grid;let I;C?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const L="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let i=0;i1&&u.push(e.virtualSize-n)}if(l&&s.loop){const t=h[0]+T;if(s.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),r=t*s.slidesPerGroup;for(let e=0;e!(s.cssMode&&!s.loop)||t!==c.length-1)).forEach((e=>{e.style[t]=`${T}px`}))}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;h.forEach((t=>{e+=t+(T||0)})),e-=T;const t=e-n;u=u.map((e=>e<=0?-f:e>t?t+v:e))}if(s.centerInsufficientSlides){let e=0;if(h.forEach((t=>{e+=t+(T||0)})),e-=T,e{u[s]=e-t})),m.forEach(((e,s)=>{m[s]=e+t}))}}if(Object.assign(e,{slides:c,snapGrid:u,slidesGrid:m,slidesSizesGrid:h}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){S(i,"--swiper-centered-offset-before",-u[0]+"px"),S(i,"--swiper-centered-offset-after",e.size/2-h[h.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+s))}if(p!==d&&e.emit("slidesLengthChange"),u.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==w&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),!(l||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);p<=s.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,s=[],i=t.virtual&&t.params.virtual.enabled;let r,n=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{s.push(e)}));else for(r=0;rt.slides.length&&!i)break;s.push(a(e))}else s.push(a(t.activeIndex));for(r=0;rn?e:n}(n||0===n)&&(t.wrapperEl.style.height=`${n}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=s.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let e=0;e=0&&u<=t.size-t.slidesSizesGrid[e];(u>=0&&u1&&m<=t.size||u<=0&&m>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e),i[e].classList.add(s.slideVisibleClass)),h&&i[e].classList.add(s.slideFullyVisibleClass),l.progress=r?-c:c,l.originalProgress=r?-p:p}},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:n,isEnd:a,progressLoop:o}=t;const l=n,d=a;if(0===i)r=0,n=!0,a=!0;else{r=(e-t.minTranslate())/i;const s=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;n=s||r<=0,a=o||r>=1,s&&(r=0),o&&(r=1)}if(s.loop){const s=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),r=t.slidesGrid[s],n=t.slidesGrid[i],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);o=l>=r?(l-r)/a:(l+a-n)/a,o>1&&(o-=1)}Object.assign(t,{progress:r,progressLoop:o,isBeginning:n,isEnd:a}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),n&&!l&&t.emit("reachBeginning toEdge"),a&&!d&&t.emit("reachEnd toEdge"),(l&&!n||d&&!a)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,slidesEl:i,activeIndex:r}=e,n=e.virtual&&s.virtual.enabled,a=e.grid&&s.grid&&s.grid.rows>1,o=e=>x(i,`.${s.slideClass}${e}, swiper-slide${e}`)[0];let l,d,c;if(t.forEach((e=>{e.classList.remove(s.slideActiveClass,s.slideNextClass,s.slidePrevClass)})),n)if(s.loop){let t=r-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${t}"]`)}else l=o(`[data-swiper-slide-index="${r}"]`);else a?(l=t.filter((e=>e.column===r))[0],c=t.filter((e=>e.column===r+1))[0],d=t.filter((e=>e.column===r-1))[0]):l=t[r];l&&(l.classList.add(s.slideActiveClass),a?(c&&c.classList.add(s.slideNextClass),d&&d.classList.add(s.slidePrevClass)):(c=function(e,t){const s=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&s.push(i):s.push(i),e=i}return s}(l,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!c&&(c=t[0]),c&&c.classList.add(s.slideNextClass),d=function(e,t){const s=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&s.push(i):s.push(i),e=i}return s}(l,`.${s.slideClass}, swiper-slide`)[0],s.loop&&0===!d&&(d=t[t.length-1]),d&&d.classList.add(s.slidePrevClass))),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:r,activeIndex:n,realIndex:a,snapIndex:o}=t;let l,d=e;const c=e=>{let s=e-t.virtual.slidesBefore;return s<0&&(s=t.virtual.slides.length+s),s>=t.virtual.slides.length&&(s-=t.virtual.slides.length),s};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:s}=e,i=e.rtlTranslate?e.translate:-e.translate;let r;for(let e=0;e=t[e]&&i=t[e]&&i=t[e]&&(r=e);return s.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}(t)),i.indexOf(s)>=0)l=i.indexOf(s);else{const e=Math.min(r.slidesPerGroupSkip,d);l=e+Math.floor((d-e)/r.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),d===n&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(d===n&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const p=t.grid&&r.grid&&r.grid.rows>1;let u;if(t.virtual&&r.virtual.enabled&&r.loop)u=c(d);else if(p){const e=t.slides.filter((e=>e.column===d))[0];let s=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(s)&&(s=Math.max(t.slides.indexOf(e),0)),u=Math.floor(s/r.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");u=e?parseInt(e,10):d}else u=d;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:a,realIndex:u,previousIndex:n,activeIndex:d}),t.initialized&&D(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==u&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const s=this,i=s.params;let r=e.closest(`.${i.slideClass}, swiper-slide`);!r&&s.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!r&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(r=e)}));let n,a=!1;if(r)for(let e=0;e6&&(r=r.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===r?"":r)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=n.toString().split(",")),"x"===t&&(r=s.WebKitCSSMatrix?n.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=s.WebKitCSSMatrix?n.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}(r,e);return n+=this.cssOverflowAdjustment(),s&&(n=-n),n||0},setTranslate:function(e,t){const s=this,{rtlTranslate:i,params:r,wrapperEl:n,progress:a}=s;let o,l=0,d=0;s.isHorizontal()?l=i?-e:e:d=e,r.roundLengths&&(l=Math.floor(l),d=Math.floor(d)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?l:d,r.cssMode?n[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-l:-d:r.virtualTranslate||(s.isHorizontal()?l-=s.cssOverflowAdjustment():d-=s.cssOverflowAdjustment(),n.style.transform=`translate3d(${l}px, ${d}px, 0px)`);const c=s.maxTranslate()-s.minTranslate();o=0===c?0:(e-s.minTranslate())/c,o!==a&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,s,i,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),void 0===i&&(i=!0);const n=this,{params:a,wrapperEl:o}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const l=n.minTranslate(),d=n.maxTranslate();let c;if(c=i&&e>l?l:i&&ea?"next":n=l.length&&(v=l.length-1);const g=-l[v];if(o.normalizeSlideIndex)for(let e=0;e=s&&t=s&&t=s&&(a=e)}if(n.initialized&&a!==p){if(!n.allowSlideNext&&(u?g>n.translate&&g>n.minTranslate():gn.translate&&g>n.maxTranslate()&&(p||0)!==a)return!1}let w;if(a!==(c||0)&&s&&n.emit("beforeSlideChangeStart"),n.updateProgress(g),w=a>p?"next":a0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{m[e?"scrollLeft":"scrollTop"]=s}))):m[e?"scrollLeft":"scrollTop"]=s,t&&requestAnimationFrame((()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1}))}else{if(!n.support.smoothScroll)return b({swiper:n,targetPosition:s,side:e?"left":"top"}),!0;m.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return n.setTransition(t),n.setTranslate(g),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,i),n.transitionStart(s,w),0===t?n.transitionEnd(s,w):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(s,w))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this,n=r.grid&&r.params.grid&&r.params.grid.rows>1;let a=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)a+=r.virtual.slidesBefore;else{let e;if(n){const t=a*r.params.grid.rows;e=r.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0].column}else e=r.getSlideIndexByData(a);const t=n?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:s}=r.params;let i=r.params.slidesPerView;"auto"===i?i=r.slidesPerViewDynamic():(i=Math.ceil(parseFloat(r.params.slidesPerView,10)),s&&i%2==0&&(i+=1));let o=t-e1*t.getAttribute("data-swiper-slide-index")===e))[0].column}else a=r.getSlideIndexByData(a)}return requestAnimationFrame((()=>{r.slideTo(a,t,s,i)})),r},slideNext:function(e,t,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const i=this,{enabled:r,params:n,animating:a}=i;if(!r)return i;let o=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex{i.slideTo(i.activeIndex+l,e,t,s)})),!0}return n.rewind&&i.isEnd?i.slideTo(0,e,t,s):i.slideTo(i.activeIndex+l,e,t,s)},slidePrev:function(e,t,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const i=this,{params:r,snapGrid:n,slidesGrid:a,rtlTranslate:o,enabled:l,animating:d}=i;if(!l)return i;const c=i.virtual&&r.virtual.enabled;if(r.loop){if(d&&!c&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function p(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=p(o?i.translate:-i.translate),m=n.map((e=>p(e)));let h=n[m.indexOf(u)-1];if(void 0===h&&r.cssMode){let e;n.forEach(((t,s)=>{u>=t&&(e=s)})),void 0!==e&&(h=n[e>0?e-1:e])}let f=0;if(void 0!==h&&(f=a.indexOf(h),f<0&&(f=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(f=f-i.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),r.rewind&&i.isBeginning){const r=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,e,t,s)}return r.loop&&0===i.activeIndex&&r.cssMode?(requestAnimationFrame((()=>{i.slideTo(f,e,t,s)})),!0):i.slideTo(f,e,t,s)},slideReset:function(e,t,s){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,s)},slideToClosest:function(e,t,s,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===i&&(i=.5);const r=this;let n=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,n),o=a+Math.floor((n-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const e=r.snapGrid[o];l-e>(r.snapGrid[o+1]-e)*i&&(n+=r.params.slidesPerGroup)}else{const e=r.snapGrid[o-1];l-e<=(r.snapGrid[o]-e)*i&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,e,t,s)},slideToClickedSlide:function(){const e=this,{params:t,slidesEl:s}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,n=e.clickedIndex;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ne.slides.length-e.loopedSlides+i/2?(e.loopFix(),n=e.getSlideIndex(x(s,`${a}[data-swiper-slide-index="${r}"]`)[0]),v((()=>{e.slideTo(n)}))):e.slideTo(n):n>e.slides.length-i?(e.loopFix(),n=e.getSlideIndex(x(s,`${a}[data-swiper-slide-index="${r}"]`)[0]),v((()=>{e.slideTo(n)}))):e.slideTo(n)}else e.slideTo(n)}},$={loopCreate:function(e){const t=this,{params:s,slidesEl:i}=t;if(!s.loop||t.virtual&&t.params.virtual.enabled)return;const r=()=>{x(i,`.${s.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},n=t.grid&&s.grid&&s.grid.rows>1,a=s.slidesPerGroup*(n?s.grid.rows:1),o=t.slides.length%a!=0,l=n&&t.slides.length%s.grid.rows!=0,d=e=>{for(let i=0;i1;d.lengthe.classList.contains(m.slideActiveClass)))[0]):b=n;const x="next"===i||!i,E="prev"===i||!i;let M=0,C=0;const P=w?Math.ceil(d.length/m.grid.rows):d.length,I=(w?d[n].column:n)+(h&&void 0===r?-f/2+.5:0);if(I=0;t-=1)d[t].column===e&&T.push(t)}else T.push(P-t-1)}}else if(I+f>P-g){C=Math.max(I-(P-2*g),v);for(let e=0;e{e.column===t&&S.push(s)})):S.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame((()=>{l.__preventObserver__=!1})),E&&T.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.prepend(d[e]),d[e].swiperLoopMoveDOM=!1})),x&&S.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.append(d[e]),d[e].swiperLoopMoveDOM=!1})),l.recalcSlides(),"auto"===m.slidesPerView?l.updateSlides():w&&(T.length>0&&E||S.length>0&&x)&&l.slides.forEach(((e,t)=>{l.grid.updateSlide(t,e,l.slides)})),m.watchSlidesProgress&&l.updateSlidesOffset(),s)if(T.length>0&&E){if(void 0===t){const e=l.slidesGrid[b],t=l.slidesGrid[b+M]-e;o?l.setTranslate(l.translate-t):(l.slideTo(b+M,0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(r){const e=w?T.length/m.grid.rows:T.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(S.length>0&&x)if(void 0===t){const e=l.slidesGrid[b],t=l.slidesGrid[b-C]-e;o?l.setTranslate(l.translate-t):(l.slideTo(b-C,0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=w?S.length/m.grid.rows:S.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=c,l.allowSlideNext=p,l.controller&&l.controller.control&&!a){const e={slideRealIndex:t,direction:i,setTranslate:r,activeSlideIndex:n,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&s})})):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===m.slidesPerView&&s})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),i.forEach((e=>{s.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}},H={setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}};function j(e,t,s){const i=f(),{params:r}=e,n=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return!n||!(s<=a||s>=i.innerWidth-a)||"prevent"===n&&(t.preventDefault(),!0)}function W(e){const t=this,s=m();let i=e;i.originalEvent&&(i=i.originalEvent);const r=t.touchEventsData;if("pointerdown"===i.type){if(null!==r.pointerId&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(r.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void j(t,i,i.targetTouches[0].pageX);const{params:n,touches:a,enabled:o}=t;if(!o)return;if(!n.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&n.preventInteractionOnTransition)return;!t.animating&&n.cssMode&&n.loop&&t.loopFix();let l=i.target;if("wrapper"===n.touchEventsTarget&&!t.wrapperEl.contains(l))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(r.isTouched&&r.isMoved)return;const d=!!n.noSwipingClass&&""!==n.noSwipingClass,c=i.composedPath?i.composedPath():i.path;d&&i.target&&i.target.shadowRoot&&c&&(l=c[0]);const p=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,u=!(!i.target||!i.target.shadowRoot);if(n.noSwiping&&(u?function(e,t){return void 0===t&&(t=this),function t(s){if(!s||s===m()||s===f())return null;s.assignedSlot&&(s=s.assignedSlot);const i=s.closest(e);return i||s.getRootNode?i||t(s.getRootNode().host):null}(t)}(p,l):l.closest(p)))return void(t.allowClick=!0);if(n.swipeHandler&&!l.closest(n.swipeHandler))return;a.currentX=i.pageX,a.currentY=i.pageY;const h=a.currentX,v=a.currentY;if(!j(t,i,h))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=v,r.touchStartTime=g(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let w=!0;l.matches(r.focusableElements)&&(w=!1,"SELECT"===l.nodeName&&(r.isTouched=!1)),s.activeElement&&s.activeElement.matches(r.focusableElements)&&s.activeElement!==l&&s.activeElement.blur();const T=w&&t.allowTouchMove&&n.touchStartPreventDefault;!n.touchStartForcePreventDefault&&!T||l.isContentEditable||i.preventDefault(),n.freeMode&&n.freeMode.enabled&&t.freeMode&&t.animating&&!n.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function R(e){const t=m(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:a,enabled:o}=s;if(!o)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let l,d=e;if(d.originalEvent&&(d=d.originalEvent),"pointermove"===d.type){if(null!==i.touchId)return;if(d.pointerId!==i.pointerId)return}if("touchmove"===d.type){if(l=[...d.changedTouches].filter((e=>e.identifier===i.touchId))[0],!l||l.identifier!==i.touchId)return}else l=d;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",d));const c=l.pageX,p=l.pageY;if(d.preventedByNestedSwiper)return n.startX=c,void(n.startY=p);if(!s.allowTouchMove)return d.target.matches(i.focusableElements)||(s.allowClick=!1),void(i.isTouched&&(Object.assign(n,{startX:c,startY:p,currentX:c,currentY:p}),i.touchStartTime=g()));if(r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(pn.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(cn.startX&&s.translate>=s.minTranslate())return;if(t.activeElement&&d.target===t.activeElement&&d.target.matches(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);i.allowTouchCallbacks&&s.emit("touchMove",d),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=c,n.currentY=p;const u=n.currentX-n.startX,h=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(u**2+h**2)=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(u))/Math.PI,i.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",d),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&d.cancelable&&d.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&d.stopPropagation();let f=s.isHorizontal()?u:h,v=s.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(f=Math.abs(f)*(a?1:-1),v=Math.abs(v)*(a?1:-1)),n.diff=f,f*=r.touchRatio,a&&(f=-f,v=-v);const w=s.touchesDirection;s.swipeDirection=f>0?"prev":"next",s.touchesDirection=v>0?"prev":"next";const T=s.params.loop&&!r.cssMode,S="next"===s.touchesDirection&&s.allowSlideNext||"prev"===s.touchesDirection&&s.allowSlidePrev;if(!i.isMoved){if(T&&S&&s.loopFix({direction:s.swipeDirection}),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});s.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",d)}if((new Date).getTime(),i.isMoved&&i.allowThresholdMove&&w!==s.touchesDirection&&T&&S&&Math.abs(f)>=1)return Object.assign(n,{startX:c,startY:p,currentX:c,currentY:p,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);s.emit("sliderMove",d),i.isMoved=!0,i.currentTranslate=f+i.startTranslate;let b=!0,x=r.resistanceRatio;if(r.touchReleaseOnEdges&&(x=0),f>0?(T&&S&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?s.minTranslate()-s.slidesSizesGrid[s.activeIndex+1]:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>s.minTranslate()&&(b=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+f)**x))):f<0&&(T&&S&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?s.maxTranslate()+s.slidesSizesGrid[s.slidesSizesGrid.length-1]:s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-("auto"===r.slidesPerView?s.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslatei.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(f)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function Y(e){const t=this,s=t.touchEventsData;let i,r=e;if(r.originalEvent&&(r=r.originalEvent),"touchend"===r.type||"touchcancel"===r.type){if(i=[...r.changedTouches].filter((e=>e.identifier===s.touchId))[0],!i||i.identifier!==s.touchId)return}else{if(null!==s.touchId)return;if(r.pointerId!==s.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&(!["pointercancel","contextmenu"].includes(r.type)||!t.browser.isSafari&&!t.browser.isWebView))return;s.pointerId=null,s.touchId=null;const{params:n,touches:a,rtlTranslate:o,slidesGrid:l,enabled:d}=t;if(!d)return;if(!n.simulateTouch&&"mouse"===r.pointerType)return;if(s.allowTouchCallbacks&&t.emit("touchEnd",r),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&n.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);n.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=g(),p=c-s.touchStartTime;if(t.allowClick){const e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit("tap click",r),p<300&&c-s.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(s.lastClickTime=g(),v((()=>{t.destroyed||(t.allowClick=!0)})),!s.isTouched||!s.isMoved||!t.swipeDirection||0===a.diff&&!s.loopSwapReset||s.currentTranslate===s.startTranslate&&!s.loopSwapReset)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let u;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,u=n.followFinger?o?t.translate:-t.translate:-s.currentTranslate,n.cssMode)return;if(n.freeMode&&n.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:u});let m=0,h=t.slidesSizesGrid[0];for(let e=0;e=l[e]&&u=l[e]&&(m=e,h=l[l.length-1]-l[l.length-2])}let f=null,w=null;n.rewind&&(t.isBeginning?w=n.virtual&&n.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const T=(u-l[m])/h,S=mn.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(T>=n.longSwipesRatio?t.slideTo(n.rewind&&t.isEnd?f:m+S):t.slideTo(m)),"prev"===t.swipeDirection&&(T>1-n.longSwipesRatio?t.slideTo(m+S):null!==w&&T<0&&Math.abs(T)>n.longSwipesRatio?t.slideTo(w):t.slideTo(m))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||r.target!==t.navigation.nextEl&&r.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==f?f:m+S),"prev"===t.swipeDirection&&t.slideTo(null!==w?w:m)):r.target===t.navigation.nextEl?t.slideTo(m+S):t.slideTo(m)}}function q(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:n}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function X(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function U(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:i}=e;if(!i)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const n=e.maxTranslate()-e.minTranslate();r=0===n?0:(e.translate-e.minTranslate())/n,r!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function K(e){const t=this;z(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function J(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Q=(e,t)=>{const s=m(),{params:i,el:r,wrapperEl:n,device:a}=e,o=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",d=t;s[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),s[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),s[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),s[l]("touchend",e.onTouchEnd,{passive:!0}),s[l]("pointerup",e.onTouchEnd,{passive:!0}),s[l]("pointercancel",e.onTouchEnd,{passive:!0}),s[l]("touchcancel",e.onTouchEnd,{passive:!0}),s[l]("pointerout",e.onTouchEnd,{passive:!0}),s[l]("pointerleave",e.onTouchEnd,{passive:!0}),s[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",e.onClick,!0),i.cssMode&&n[l]("scroll",e.onScroll),i.updateOnWindowResize?e[d](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",q,!0):e[d]("observerUpdate",q,!0),r[l]("load",e.onLoad,{capture:!0})};var Z={attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=W.bind(e),e.onTouchMove=R.bind(e),e.onTouchEnd=Y.bind(e),e.onDocumentTouchStart=J.bind(e),t.cssMode&&(e.onScroll=U.bind(e)),e.onClick=X.bind(e),e.onLoad=K.bind(e),Q(e,"on")},detachEvents:function(){Q(this,"off")}};const ee=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var te={setBreakpoint:function(){const e=this,{realIndex:t,initialized:s,params:i,el:r}=e,n=i.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const a=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const o=(a in n?n[a]:void 0)||e.originalParams,l=ee(e,i),d=ee(e,o),c=i.enabled;l&&!d?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&d&&(r.classList.add(`${i.containerModifierClass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===o[t])return;const s=i[t]&&i[t].enabled,r=o[t]&&o[t].enabled;s&&!r&&e[t].disable(),!s&&r&&e[t].enable()}));const p=o.direction&&o.direction!==i.direction,u=i.loop&&(o.slidesPerView!==i.slidesPerView||p),m=i.loop;p&&s&&e.changeDirection(),T(e.params,o);const h=e.params.enabled,f=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),c&&!h?e.disable():!c&&h&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",o),s&&(u?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!m&&f?(e.loopCreate(t),e.updateSlides()):m&&!f&&e.loopDestroy()),e.emit("breakpoint",o)},getBreakpoint:function(e,t,s){if(void 0===t&&(t="window"),!e||"container"===t&&!s)return;let i=!1;const r=f(),n="window"===t?r.innerHeight:s.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e{"object"==typeof e?Object.keys(e).forEach((i=>{e[i]&&s.push(t+i)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:i},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:n.android},{ios:n.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...a),r.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}},ie={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function re(e,t){return function(s){void 0===s&&(s={});const i=Object.keys(s)[0],r=s[i];"object"==typeof r&&null!==r?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in r?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),T(t,s)):T(t,s)):T(t,s)}}const ne={eventsEmitter:A,update:_,translate:N,transition:B,slide:F,loop:$,grabCursor:H,events:Z,breakpoints:te,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:i}=s;if(i){const t=e.slides.length-1,s=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>s}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:se},ae={};class oe{constructor(){let e,t;for(var s=arguments.length,i=new Array(s),r=0;r1){const e=[];return n.querySelectorAll(t.el).forEach((s=>{const i=T({},t,{el:s});e.push(new oe(i))})),e}const a=this;var o;a.__swiper__=!0,a.support=O(),a.device=(void 0===(o={userAgent:t.userAgent})&&(o={}),L||(L=function(e){let{userAgent:t}=void 0===e?{}:e;const s=O(),i=f(),r=i.navigator.platform,n=t||i.navigator.userAgent,a={ios:!1,android:!1},o=i.screen.width,l=i.screen.height,d=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);const p=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===r;let h="MacIntel"===r;return!c&&h&&s.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${l}`)>=0&&(c=n.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),d&&!m&&(a.os="android",a.android=!0),(c||u||p)&&(a.os="ios",a.ios=!0),a}(o)),L),a.browser=(k||(k=function(){const e=f();let t=!1;function s(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(s()){const s=String(e.navigator.userAgent);if(s.includes("Version/")){const[e,i]=s.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));t=e<16||16===e&&i<2}}return{isSafari:t||s(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),k),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],t.modules&&Array.isArray(t.modules)&&a.modules.push(...t.modules);const l={};a.modules.forEach((e=>{e({params:t,swiper:a,extendParams:re(t,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})}));const d=T({},ie,l);return a.params=T({},d,ae,t),a.originalParams=T({},a.params),a.passedParams=T({},t),a.params&&a.params.on&&Object.keys(a.params.on).forEach((e=>{a.on(e,a.params.on[e])})),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===a.params.direction,isVertical:()=>"vertical"===a.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:s}=this,i=C(x(t,`.${s.slideClass}, swiper-slide`)[0]);return C(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=x(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const i=s.minTranslate(),r=(s.maxTranslate()-i)*e+i;s.translateTo(r,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((s=>{const i=e.getSlideClasses(s);t.push({slideEl:s,classNames:i}),e.emit("_slideClass",s,i)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:s,slides:i,slidesGrid:r,slidesSizesGrid:n,size:a,activeIndex:o}=this;let l=1;if("number"==typeof s.slidesPerView)return s.slidesPerView;if(s.centeredSlides){let e,t=i[o]?i[o].swiperSlideSize:0;for(let s=o+1;sa&&(e=!0));for(let s=o-1;s>=0;s-=1)i[s]&&!e&&(t+=i[s].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e=0;e-=1)r[o]-r[e]{t.complete&&z(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)i(),s.autoHeight&&e.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const t=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(t.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||i()}s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const s=this,i=s.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(s.el.classList.remove(`${s.params.containerModifierClass}${i}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if("string"==typeof s&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&"SWIPER-CONTAINER"===s.parentNode.host.nodeName&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(i()):x(s,i())[0];return!r&&t.params.createElements&&(r=E("div",t.params.wrapperClass),s.append(r),x(s,`.${t.params.slideClass}`).forEach((e=>{r.append(e)}))),Object.assign(t,{el:s,wrapperEl:r,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:r,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:"rtl"===s.dir.toLowerCase()||"rtl"===M(s,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===M(s,"direction")),wrongRTL:"-webkit-box"===M(r,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const s=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&s.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach((e=>{e.complete?z(t,e):e.addEventListener("load",(e=>{z(t,e.target)}))})),D(t),t.initialized=!0,D(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const s=this,{params:i,el:r,wrapperEl:n,slides:a}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),i.loop&&s.loopDestroy(),t&&(s.removeClasses(),r.removeAttribute("style"),n.removeAttribute("style"),a&&a.length&&a.forEach((e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.el.swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){T(ae,e)}static get extendedDefaults(){return ae}static get defaults(){return ie}static installModule(e){oe.prototype.__modules__||(oe.prototype.__modules__=[]);const t=oe.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>oe.installModule(e))),oe):(oe.installModule(e),oe)}}let le,de,ce,pe;Object.keys(ne).forEach((e=>{Object.keys(ne[e]).forEach((t=>{oe.prototype[t]=ne[e][t]}))})),oe.use([function(e){let{swiper:t,on:s,emit:i}=e;const r=f();let n=null,a=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};s("init",(()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{a=r.requestAnimationFrame((()=>{const{width:s,height:i}=t;let r=s,n=i;e.forEach((e=>{let{contentBoxSize:s,contentRect:i,target:a}=e;a&&a!==t.el||(r=i?i.width:(s[0]||s).inlineSize,n=i?i.height:(s[0]||s).blockSize)})),r===s&&n===i||o()}))})),n.observe(t.el)):(r.addEventListener("resize",o),r.addEventListener("orientationchange",l))})),s("destroy",(()=>{a&&r.cancelAnimationFrame(a),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:s,on:i,emit:r}=e;const n=[],a=f(),o=function(e,s){void 0===s&&(s={});const i=new(a.MutationObserver||a.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void r("observerUpdate",e[0]);const s=function(){r("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(s):a.setTimeout(s,0)}));i.observe(e,{attributes:void 0===s.attributes||s.attributes,childList:void 0===s.childList||s.childList,characterData:void 0===s.characterData||s.characterData}),n.push(i)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=function(e,t){const s=[];let i=e.parentElement;for(;i;)s.push(i),i=i.parentElement;return s}(t.hostEl);for(let t=0;t{n.forEach((e=>{e.disconnect()})),n.splice(0,n.length)}))}]);const ue=new n(!1);let me=-1,he=[],fe=[];function ve(){t.set(!0),we[e.get().index].scrollIntoView({block:"center",behavior:"auto"}),l.to(de,{y:"100%",ease:d.easeInOut,duration:1}),l.to(ce,{opacity:0,duration:1.2,delay:.4})}function ge(){const e=[];e.push(fe[pe.activeIndex]),e.push(fe[Math.min(pe.activeIndex+1,pe.slides.length)]),e.push(fe[Math.max(pe.activeIndex-1,0)]);for(const t of e)t.src=t.dataset.src}let we=[];const Te=new n(!1);function Se(e){s(e),ue.get()||(ue.set(!0),ge(),l.to(ce,{opacity:1,duration:1}),l.to(de,{y:0,ease:d.easeInOut,duration:1,delay:.4}),setTimeout((()=>{t.set(!1),ue.set(!1)}),1200))}function be(n){(function(e){!function(e){const t=document.createElement("div");t.className="collection";for(const[s,i]of e.entries()){const e=0!==s?o(-25,25):0,r=0!==s?o(-30,30):0,n=document.createElement("img");n.dataset.src=i.loUrl,n.height=i.loImgH,n.width=i.loImgW,n.alt="image",n.style.transform=`translate3d(${e}%, ${r-50}%, 0)`,t.append(n)}r.append(t)}(e);const t=document.getElementsByClassName("collection").item(0);Te.addWatcher((()=>{Te.get()?t.classList.remove("hidden"):t.classList.add("hidden")})),we=Array.from(t.getElementsByTagName("img")),we.forEach(((e,t)=>{e.addEventListener("click",(()=>{Se(t)})),e.addEventListener("keydown",(()=>{Se(t)})),a(e,(()=>{for(let e=0;e<5;e++){const s=t+e;s<0||s>we.length-1||(we[s].src=we[s].dataset.src)}}))}))})(n),function(n){!function(e){const t=document.createElement("div");t.className="swiper-wrapper";for(const s of e){const e=document.createElement("div");e.className="swiper-slide";const i=document.createElement("img");i.dataset.src=s.hiUrl,i.height=s.hiImgH,i.width=s.hiImgW,i.alt="image",e.append(i),t.append(e)}const s=document.createElement("div");s.className="galleryInner",s.append(t);const i=document.createElement("div");i.insertAdjacentHTML("afterbegin",'\n /\n ');const n=document.createElement("div");n.innerText="Close",n.addEventListener("click",(()=>{ve()})),n.addEventListener("keydown",(()=>{ve()}));const a=document.createElement("div");a.className="nav",a.append(i,n);const o=document.createElement("div");o.className="gallery",o.append(s),o.append(a);const l=document.createElement("div");l.className="curtain",r.append(o,l)}(n),he=Array.from(document.getElementsByClassName("nav").item(0)?.getElementsByClassName("num")??[]),le=document.getElementsByClassName("galleryInner").item(0),de=document.getElementsByClassName("gallery").item(0),ce=document.getElementsByClassName("curtain").item(0),fe=Array.from(de.getElementsByTagName("img")),e.addWatcher((()=>{const t=e.get();t.index!==me&&(function(e){ge(),pe.slideTo(e,0)}(t.index),function(){const t=i(e.get().index+1),s=i(e.get().length);he.forEach(((e,i)=>{e.innerText=i<4?t[i]:s[i-4]}))}(),me=t.index)})),Te.addWatcher((()=>{Te.get()&&(t.set(!0),pe=new oe(le,{spaceBetween:20}),pe.on("slideChange",(({realIndex:e})=>{s(e)})))})),Te.set(!0),window.addEventListener("touchstart",(()=>{}))}(n)}export{be as initMobile}; \ No newline at end of file diff --git a/static/js/J5O_Vj.js b/static/js/J5O_Vj.js new file mode 100644 index 0000000..ee1732d --- /dev/null +++ b/static/js/J5O_Vj.js @@ -0,0 +1 @@ +import{g as t,P as e}from"./HzPj1-.js";import{W as n,c as a,s,i,a as o,d as g}from"./main.js";let r=[],c={x:0,y:0};const d=new n([]),l=new n(!1),h=new n(!1),m=new n(!1);function u(){return d.get().map((t=>r[t.i]))}function f(){const t=u().slice(-s.get().trailLength);return t.slice(0,t.length-1)}function y(){const t=u();return t[t.length-1]}function I(){const t=s.get(),e=[];for(let n=0;n<5;n++)e.push(r[i(t.index+n,t.length)]);return e}function p(){const t=s.get();return r[i(t.index,t.length)]}function w(){const t=s.get();return r[g(t.index,t.length)]}function x(t){if(l.get()||h.get())return;const e={x:t.clientX,y:t.clientY};if(Math.hypot(e.x-c.x,e.y-c.y)>s.get().threshold){c=e,o();const t={i:s.get().index,...e};d.set([...d.get(),t].slice(-s.get().length))}}function W(){if(h.get())return;l.set(!0),h.set(!0),U([y(),p(),w()]);const n=t.timeline();n.to(f(),{y:"+=20",ease:e.easeIn,stagger:.075,duration:.3,delay:.1,opacity:0}),n.to(y(),{x:0,y:0,ease:e.easeInOut,duration:.7,delay:.3}),n.to(y(),{delay:.1,scale:1,ease:e.easeInOut}),n.then((()=>{h.set(!1)}))}function E(){if(h.get())return;l.set(!1),h.set(!0),v([y()]),v(f());const n=t.timeline();n.to(y(),{scale:.6,duration:.6,ease:e.easeInOut}),n.to(y(),{delay:.3,duration:.7,ease:e.easeInOut,x:d.get()[d.get().length-1].x-window.innerWidth/2,y:d.get()[d.get().length-1].y-window.innerHeight/2}),n.to(f(),{y:"-=20",ease:e.easeOut,stagger:-.1,duration:.3,opacity:1}),n.then((()=>{h.set(!1)}))}function H(e){!function(t){const e=document.createElement("div");e.className="stage";for(const n of t){const t=document.createElement("img");t.height=n.loImgH,t.width=n.loImgW,t.dataset.hiUrl=n.hiUrl,t.dataset.hiImgH=n.hiImgH.toString(),t.dataset.hiImgW=n.hiImgW.toString(),t.dataset.loUrl=n.loUrl,t.dataset.loImgH=n.loImgH.toString(),t.dataset.loImgW=n.loImgW.toString(),t.alt="image",e.append(t)}a.append(e)}(e);const n=document.getElementsByClassName("stage").item(0);r=Array.from(n.getElementsByTagName("img")),n.addEventListener("click",(()=>{W()})),n.addEventListener("keydown",(()=>{W()})),window.addEventListener("mousemove",x),l.addWatcher((()=>{m.set(l.get()&&!h.get())})),h.addWatcher((()=>{m.set(l.get()&&!h.get())})),d.addWatcher((()=>{!function(){const e=u();0!==e.length&&(v(I()),t.set(e,{x:t=>d.get()[t].x-window.innerWidth/2,y:t=>d.get()[t].y-window.innerHeight/2,opacity:t=>t+1+s.get().trailLength<=d.get().length?0:1,zIndex:t=>t,scale:.6}),l.get()&&(v(u()),U([y()]),t.set(r,{opacity:0}),t.set(y(),{opacity:1,x:0,y:0,scale:1})))}()})),v(I())}function U(t){t.forEach((t=>{t.src=t.dataset.hiUrl,t.height=parseInt(t.dataset.hiImgH),t.width=parseInt(t.dataset.hiImgW)}))}function v(t){t.forEach((t=>{t.src=t.dataset.loUrl,t.height=parseInt(t.dataset.loImgH),t.width=parseInt(t.dataset.loImgW)}))}export{m as active,d as cordHist,H as initStage,h as isAnimating,l as isOpen,E as minimizeImage}; \ No newline at end of file diff --git a/static/js/main.js b/static/js/main.js new file mode 100644 index 0000000..5e67df6 --- /dev/null +++ b/static/js/main.js @@ -0,0 +1 @@ +function t(t,e){return(t+1)%e}function e(t,e){return(t+e-1)%e}function n(t){return("0000"+t.toString()).slice(-4)}function s(t,e){return Math.floor(Math.random()*(e-t+1))+t}function r(t,e){new IntersectionObserver(((n,s)=>{n.forEach((n=>{n.intersectionRatio>0&&(e(t),s.disconnect())}))})).observe(t)}class i{constructor(t){this.obj=t,this.watchers=[]}get(){return this.obj}set(t){this.obj=t,this.watchers.forEach((t=>{t()}))}addWatcher(t){this.watchers.push(t)}}const o=new i(!0);let a;const c=[{threshold:20,trailLength:20},{threshold:40,trailLength:10},{threshold:80,trailLength:5},{threshold:140,trailLength:5},{threshold:200,trailLength:5}],l=new i({index:-1,length:0,threshold:c[2].threshold,trailLength:c[2].trailLength});function h(t){const e=l.get();e.index=t,l.set(e)}function d(){const e=l.get();e.index=t(e.index,e.length),l.set(e)}function m(t,e){const n=c.findIndex((e=>t.threshold===e.threshold))+e;if(n<0||n>=c.length)return t;const s=c[n];return{...t,...s}}const g=document.getElementsByClassName("threshold").item(0),u=Array.from(g.getElementsByClassName("num")),f=g.getElementsByClassName("dec").item(0),E=g.getElementsByClassName("inc").item(0),x=document.getElementsByClassName("index").item(0),y=Array.from(x.getElementsByClassName("num")),L=document.getElementsByClassName("links").item(0),B=Array.from(L.getElementsByClassName("link")),b=document.getElementById("main")?.getAttribute("currentMenuItemIndex");for(const[t,e]of B.entries())t===parseInt(b)&&(e.classList.add("current"),0!==t&&(document.title=e.innerText+" | "+document.title));function w(){const t=n(l.get().threshold);u.forEach(((e,n)=>{e.innerText=t[n]}))}function C(){const t=n(l.get().index+1),e=n(l.get().length);y.forEach(((n,s)=>{n.innerText=s<4?t[s]:e[s-4]}))}a=document.getElementsByClassName("container").item(0),o.addWatcher((()=>{o.get()?a.classList.remove("disableScroll"):a.classList.add("disableScroll")}));const N=function(){const t=document.getElementById("imagesSource");return null===t?[]:JSON.parse(t.textContent).sort(((t,e)=>t.index{C(),w()}))})(N.length),w(),C(),f.addEventListener("click",(()=>{!function(){let t=l.get();t=m(t,-1),l.set(t)}()})),E.addEventListener("click",(()=>{!function(){let t=l.get();t=m(t,1),l.set(t)}()})),N.length>0&&(window.matchMedia("(hover: none)").matches?(await import("./IdO1GK.js")).initMobile(N):(await import("./J5O_Vj.js")).initStage(N));export{i as W,d as a,o as b,a as c,e as d,h as e,n as f,s as g,t as i,r as o,l as s}; \ No newline at end of file