nemesischart 0.1.20 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +254 -35
- package/dist/nemesischart.js +3485 -0
- package/dist/nemesischart.umd.cjs +15 -0
- package/dist/style.css +1 -0
- package/package.json +78 -53
- package/dist/nemesischart.css +0 -1
- package/dist/nemesischart.es.js +0 -9136
- package/dist/nemesischart.umd.js +0 -3
- package/types/index.d.ts +0 -354
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
(function(et,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("chart.js")):typeof define=="function"&&define.amd?define(["exports","vue","chart.js"],a):(et=typeof globalThis<"u"?globalThis:et||self,a(et.NemesisChart={},et.Vue,et.Chart))})(this,function(et,a,L){"use strict";function Tt(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function Br(l,t){l.prototype=Object.create(t.prototype),l.prototype.constructor=l,l.__proto__=t}/*!
|
|
2
|
+
* GSAP 3.14.2
|
|
3
|
+
* https://gsap.com
|
|
4
|
+
*
|
|
5
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
6
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
7
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
8
|
+
*/var ct={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},jt={duration:.5,overwrite:!1,delay:0},qe,Z,$,gt=1e8,q=1/gt,Ie=Math.PI*2,Qn=Ie/4,Hn=0,Pr=Math.sqrt,Zn=Math.cos,Kn=Math.sin,H=function(t){return typeof t=="string"},Y=function(t){return typeof t=="function"},Et=function(t){return typeof t=="number"},$e=function(t){return typeof t>"u"},kt=function(t){return typeof t=="object"},it=function(t){return t!==!1},Xe=function(){return typeof window<"u"},Ee=function(t){return Y(t)||H(t)},Dr=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},K=Array.isArray,Jn=/random\([^)]+\)/g,jn=/,\s*/g,Rr=/(?:-?\.?\d|\.)+/gi,Or=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,te=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ue=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Mr=/[+-]=-?[.\d]+/,ti=/[^,'"\[\]\s]+/gi,ei=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,X,Ct,We,Ye,ut={},Be={},Vr,zr=function(t){return(Be=re(t,ut))&&st},Ge=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},fe=function(t,e){return!e&&console.warn(t)},Nr=function(t,e){return t&&(ut[t]=e)&&Be&&(Be[t]=e)||ut},de=function(){return 0},ri={suppressEvents:!0,isStart:!0,kill:!1},Pe={suppressEvents:!0,kill:!1},ni={suppressEvents:!0},Qe={},Dt=[],He={},Ar,ft={},Ze={},vr=30,De=[],Ke="",Je=function(t){var e=t[0],r,n;if(kt(e)||Y(e)||(t=[t]),!(r=(e._gsap||{}).harness)){for(n=De.length;n--&&!De[n].targetTest(e););r=De[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new hn(t[n],r)))||t.splice(n,1);return t},qt=function(t){return t._gsap||Je(bt(t))[0]._gsap},Fr=function(t,e,r){return(r=t[e])&&Y(r)?t[e]():$e(r)&&t.getAttribute&&t.getAttribute(e)||r},at=function(t,e){return(t=t.split(",")).forEach(e)||t},G=function(t){return Math.round(t*1e5)/1e5||0},U=function(t){return Math.round(t*1e7)/1e7||0},ee=function(t,e){var r=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),r==="+"?t+n:r==="-"?t-n:r==="*"?t*n:t/n},ii=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},Re=function(){var t=Dt.length,e=Dt.slice(0),r,n;for(He={},Dt.length=0,r=0;r<t;r++)n=e[r],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},je=function(t){return!!(t._initted||t._startAt||t.add)},Lr=function(t,e,r,n){Dt.length&&!Z&&Re(),t.render(e,r,!!(Z&&e<0&&je(t))),Dt.length&&!Z&&Re()},qr=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(ti).length<2?e:H(t)?t.trim():t},Ir=function(t){return t},dt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},ai=function(t){return function(e,r){for(var n in r)n in e||n==="duration"&&t||n==="ease"||(e[n]=r[n])}},re=function(t,e){for(var r in e)t[r]=e[r];return t},$r=function l(t,e){for(var r in e)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(t[r]=kt(e[r])?l(t[r]||(t[r]={}),e[r]):e[r]);return t},Oe=function(t,e){var r={},n;for(n in t)n in e||(r[n]=t[n]);return r},he=function(t){var e=t.parent||X,r=t.keyframes?ai(K(t.keyframes)):dt;if(it(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t},oi=function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0},Xr=function(t,e,r,n,i){var o=t[n],s;if(i)for(s=e[i];o&&o[i]>s;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Me=function(t,e,r,n){r===void 0&&(r="_first"),n===void 0&&(n="_last");var i=e._prev,o=e._next;i?i._next=o:t[r]===e&&(t[r]=o),o?o._prev=i:t[n]===e&&(t[n]=i),e._next=e._prev=e.parent=null},Rt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},It=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},si=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},tr=function(t,e,r,n){return t._startAt&&(Z?t._startAt.revert(Pe):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},li=function l(t){return!t||t._ts&&l(t.parent)},Ur=function(t){return t._repeat?ne(t._tTime,t=t.duration()+t._rDelay)*t:0},ne=function(t,e){var r=Math.floor(t=U(t/e));return t&&r===t?r-1:r},Ve=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ze=function(t){return t._end=U(t._start+(t._tDur/Math.abs(t._ts||t._rts||q)||0))},Ne=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=U(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ze(t),r._dirty||It(r,t)),t},Wr=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Ve(t.rawTime(),e),(!e._dur||pe(0,e.totalDuration(),r)-e._tTime>q)&&e.render(r,!0)),It(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-q}},St=function(t,e,r,n){return e.parent&&Rt(e),e._start=U((Et(r)?r:r||t!==X?yt(t,r,e):t._time)+e._delay),e._end=U(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Xr(t,e,"_first","_last",t._sort?"_start":0),er(e)||(t._recent=e),n||Wr(t,e),t._ts<0&&Ne(t,t._tTime),t},Yr=function(t,e){return(ut.ScrollTrigger||Ge("scrollTrigger",e))&&ut.ScrollTrigger.create(e,t)},Gr=function(t,e,r,n,i){if(ur(t,e,i),!t._initted)return 1;if(!r&&t._pt&&!Z&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Ar!==_t.frame)return Dt.push(t),t._lazy=[i,n],1},ci=function l(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||l(e))},er=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},ui=function(t,e,r,n){var i=t.ratio,o=e<0||!e&&(!t._start&&ci(t)&&!(!t._initted&&er(t))||(t._ts<0||t._dp._ts<0)&&!er(t))?0:1,s=t._rDelay,u=0,f,c,h;if(s&&t._repeat&&(u=pe(0,t._tDur,e),c=ne(u,s),t._yoyo&&c&1&&(o=1-o),c!==ne(t._tTime,s)&&(i=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==i||Z||n||t._zTime===q||!e&&t._zTime){if(!t._initted&&Gr(t,e,n,r,u))return;for(h=t._zTime,t._zTime=e||(r?q:0),r||(r=e&&!h),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=u,f=t._pt;f;)f.r(o,f.d),f=f._next;e<0&&tr(t,e,r,!0),t._onUpdate&&!r&&ht(t,"onUpdate"),u&&t._repeat&&!r&&t.parent&&ht(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&Rt(t,1),!r&&!Z&&(ht(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},fi=function(t,e,r){var n;if(r>e)for(n=t._first;n&&n._start<=r;){if(n.data==="isPause"&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if(n.data==="isPause"&&n._start<e)return n;n=n._prev}},ie=function(t,e,r,n){var i=t._repeat,o=U(e)||0,s=t._tTime/t._tDur;return s&&!n&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:U(o*(i+1)+t._rDelay*i):o,s>0&&!n&&Ne(t,t._tTime=t._tDur*s),t.parent&&ze(t),r||It(t.parent,t),t},Qr=function(t){return t instanceof rt?It(t):ie(t,t._dur)},di={_start:0,endTime:de,totalDuration:de},yt=function l(t,e,r){var n=t.labels,i=t._recent||di,o=t.duration()>=gt?i.endTime(!1):t._dur,s,u,f;return H(e)&&(isNaN(e)||e in n)?(u=e.charAt(0),f=e.substr(-1)==="%",s=e.indexOf("="),u==="<"||u===">"?(s>=0&&(e=e.replace(/=/,"")),(u==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(e.substr(1))||0)*(f?(s<0?i:r).totalDuration()/100:1)):s<0?(e in n||(n[e]=o),n[e]):(u=parseFloat(e.charAt(s-1)+e.substr(s+1)),f&&r&&(u=u/100*(K(r)?r[0]:r).totalDuration()),s>1?l(t,e.substr(0,s-1),r)+u:o+u)):e==null?o:+e},_e=function(t,e,r){var n=Et(e[1]),i=(n?2:1)+(t<2?0:1),o=e[i],s,u;if(n&&(o.duration=e[1]),o.parent=r,t){for(s=o,u=r;u&&!("immediateRender"in s);)s=u.vars.defaults||{},u=it(u.vars.inherit)&&u.parent;o.immediateRender=it(s.immediateRender),t<2?o.runBackwards=1:o.startAt=e[i-1]}return new Q(e[0],o,e[i+1])},Ot=function(t,e){return t||t===0?e(t):e},pe=function(t,e,r){return r<t?t:r>e?e:r},J=function(t,e){return!H(t)||!(e=ei.exec(t))?"":e[1]},hi=function(t,e,r){return Ot(r,function(n){return pe(t,e,n)})},rr=[].slice,Hr=function(t,e){return t&&kt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&kt(t[0]))&&!t.nodeType&&t!==Ct},_i=function(t,e,r){return r===void 0&&(r=[]),t.forEach(function(n){var i;return H(n)&&!e||Hr(n,1)?(i=r).push.apply(i,bt(n)):r.push(n)})||r},bt=function(t,e,r){return $&&!e&&$.selector?$.selector(t):H(t)&&!r&&(We||!oe())?rr.call((e||Ye).querySelectorAll(t),0):K(t)?_i(t,r):Hr(t)?rr.call(t,0):t?[t]:[]},nr=function(t){return t=bt(t)[0]||fe("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return bt(e,r.querySelectorAll?r:r===t?fe("Invalid scope")||Ye.createElement("div"):t)}},Zr=function(t){return t.sort(function(){return .5-Math.random()})},Kr=function(t){if(Y(t))return t;var e=kt(t)?t:{each:t},r=$t(e.ease),n=e.from||0,i=parseFloat(e.base)||0,o={},s=n>0&&n<1,u=isNaN(n)||s,f=e.axis,c=n,h=n;return H(n)?c=h={center:.5,edges:.5,end:1}[n]||0:!s&&u&&(c=n[0],h=n[1]),function(p,_,g){var d=(g||e).length,m=o[d],y,k,x,C,b,w,E,B,S;if(!m){if(S=e.grid==="auto"?0:(e.grid||[1,gt])[1],!S){for(E=-gt;E<(E=g[S++].getBoundingClientRect().left)&&S<d;);S<d&&S--}for(m=o[d]=[],y=u?Math.min(S,d)*c-.5:n%S,k=S===gt?0:u?d*h/S-.5:n/S|0,E=0,B=gt,w=0;w<d;w++)x=w%S-y,C=k-(w/S|0),m[w]=b=f?Math.abs(f==="y"?C:x):Pr(x*x+C*C),b>E&&(E=b),b<B&&(B=b);n==="random"&&Zr(m),m.max=E-B,m.min=B,m.v=d=(parseFloat(e.amount)||parseFloat(e.each)*(S>d?d-1:f?f==="y"?d/S:S:Math.max(S,d/S))||0)*(n==="edges"?-1:1),m.b=d<0?i-d:i,m.u=J(e.amount||e.each)||0,r=r&&d<0?un(r):r}return d=(m[p]-m.min)/m.max||0,U(m.b+(r?r(d):d)*m.v)+m.u}},ir=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=U(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(Et(r)?0:J(r))}},Jr=function(t,e){var r=K(t),n,i;return!r&&kt(t)&&(n=r=t.radius||gt,t.values?(t=bt(t.values),(i=!Et(t[0]))&&(n*=n)):t=ir(t.increment)),Ot(e,r?Y(t)?function(o){return i=t(o),Math.abs(i-o)<=n?i:o}:function(o){for(var s=parseFloat(i?o.x:o),u=parseFloat(i?o.y:0),f=gt,c=0,h=t.length,p,_;h--;)i?(p=t[h].x-s,_=t[h].y-u,p=p*p+_*_):p=Math.abs(t[h]-s),p<f&&(f=p,c=h);return c=!n||f<=n?t[c]:o,i||c===o||Et(o)?c:c+J(o)}:ir(t))},jr=function(t,e,r,n){return Ot(K(t)?!e:r===!0?!!(r=0):!n,function(){return K(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+r*.99))/r)*r*n)/n})},pi=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return e.reduce(function(i,o){return o(i)},n)}},mi=function(t,e){return function(r){return t(parseFloat(r))+(e||J(r))}},gi=function(t,e,r){return en(t,e,0,1,r)},tn=function(t,e,r){return Ot(r,function(n){return t[~~e(n)]})},yi=function l(t,e,r){var n=e-t;return K(t)?tn(t,l(0,t.length),e):Ot(r,function(i){return(n+(i-t)%n)%n+t})},bi=function l(t,e,r){var n=e-t,i=n*2;return K(t)?tn(t,l(0,t.length-1),e):Ot(r,function(o){return o=(i+(o-t)%i)%i||0,t+(o>n?i-o:o)})},me=function(t){return t.replace(Jn,function(e){var r=e.indexOf("[")+1,n=e.substring(r||7,r?e.indexOf("]"):e.length-1).split(jn);return jr(r?n:+n[0],r?0:+n[1],+n[2]||1e-5)})},en=function(t,e,r,n,i){var o=e-t,s=n-r;return Ot(i,function(u){return r+((u-t)/o*s||0)})},xi=function l(t,e,r,n){var i=isNaN(t+e)?0:function(_){return(1-_)*t+_*e};if(!i){var o=H(t),s={},u,f,c,h,p;if(r===!0&&(n=1)&&(r=null),o)t={p:t},e={p:e};else if(K(t)&&!K(e)){for(c=[],h=t.length,p=h-2,f=1;f<h;f++)c.push(l(t[f-1],t[f]));h--,i=function(g){g*=h;var d=Math.min(p,~~g);return c[d](g-d)},r=e}else n||(t=re(K(t)?[]:{},t));if(!c){for(u in e)lr.call(s,t,u,"get",e[u]);i=function(g){return hr(g,s)||(o?t.p:t)}}}return Ot(r,i)},rn=function(t,e,r){var n=t.labels,i=gt,o,s,u;for(o in n)s=n[o]-e,s<0==!!r&&s&&i>(s=Math.abs(s))&&(u=o,i=s);return u},ht=function(t,e,r){var n=t.vars,i=n[e],o=$,s=t._ctx,u,f,c;if(i)return u=n[e+"Params"],f=n.callbackScope||t,r&&Dt.length&&Re(),s&&($=s),c=u?i.apply(f,u):i.call(f),$=o,c},ge=function(t){return Rt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Z),t.progress()<1&&ht(t,"onInterrupt"),t},ae,nn=[],an=function(t){if(t)if(t=!t.name&&t.default||t,Xe()||t.headless){var e=t.name,r=Y(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:de,render:hr,add:lr,kill:Ai,modifier:Ni,rawVars:0},o={targetTest:0,get:0,getSetter:dr,aliases:{},register:0};if(oe(),t!==n){if(ft[e])return;dt(n,dt(Oe(t,i),o)),re(n.prototype,re(i,Oe(t,o))),ft[n.prop=e]=n,t.targetTest&&(De.push(n),Qe[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Nr(e,n),t.register&&t.register(st,n,ot)}else nn.push(t)},I=255,ye={aqua:[0,I,I],lime:[0,I,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,I],navy:[0,0,128],white:[I,I,I],olive:[128,128,0],yellow:[I,I,0],orange:[I,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[I,0,0],pink:[I,192,203],cyan:[0,I,I],transparent:[I,I,I,0]},ar=function(t,e,r){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(r-e)*t*6:t<.5?r:t*3<2?e+(r-e)*(2/3-t)*6:e)*I+.5|0},on=function(t,e,r){var n=t?Et(t)?[t>>16,t>>8&I,t&I]:0:ye.black,i,o,s,u,f,c,h,p,_,g;if(!n){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ye[t])n=ye[t];else if(t.charAt(0)==="#"){if(t.length<6&&(i=t.charAt(1),o=t.charAt(2),s=t.charAt(3),t="#"+i+i+o+o+s+s+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return n=parseInt(t.substr(1,6),16),[n>>16,n>>8&I,n&I,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),n=[t>>16,t>>8&I,t&I]}else if(t.substr(0,3)==="hsl"){if(n=g=t.match(Rr),!e)u=+n[0]%360/360,f=+n[1]/100,c=+n[2]/100,o=c<=.5?c*(f+1):c+f-c*f,i=c*2-o,n.length>3&&(n[3]*=1),n[0]=ar(u+1/3,i,o),n[1]=ar(u,i,o),n[2]=ar(u-1/3,i,o);else if(~t.indexOf("="))return n=t.match(Or),r&&n.length<4&&(n[3]=1),n}else n=t.match(Rr)||ye.transparent;n=n.map(Number)}return e&&!g&&(i=n[0]/I,o=n[1]/I,s=n[2]/I,h=Math.max(i,o,s),p=Math.min(i,o,s),c=(h+p)/2,h===p?u=f=0:(_=h-p,f=c>.5?_/(2-h-p):_/(h+p),u=h===i?(o-s)/_+(o<s?6:0):h===o?(s-i)/_+2:(i-o)/_+4,u*=60),n[0]=~~(u+.5),n[1]=~~(f*100+.5),n[2]=~~(c*100+.5)),r&&n.length<4&&(n[3]=1),n},sn=function(t){var e=[],r=[],n=-1;return t.split(Mt).forEach(function(i){var o=i.match(te)||[];e.push.apply(e,o),r.push(n+=o.length+1)}),e.c=r,e},ln=function(t,e,r){var n="",i=(t+n).match(Mt),o=e?"hsla(":"rgba(",s=0,u,f,c,h;if(!i)return t;if(i=i.map(function(p){return(p=on(p,e,1))&&o+(e?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),r&&(c=sn(t),u=r.c,u.join(n)!==c.c.join(n)))for(f=t.replace(Mt,"1").split(te),h=f.length-1;s<h;s++)n+=f[s]+(~u.indexOf(s)?i.shift()||o+"0,0,0,0)":(c.length?c:i.length?i:r).shift());if(!f)for(f=t.split(Mt),h=f.length-1;s<h;s++)n+=f[s]+i[s];return n+f[h]},Mt=function(){var l="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ye)l+="|"+t+"\\b";return new RegExp(l+")","gi")}(),ki=/hsl[a]?\(/,cn=function(t){var e=t.join(" "),r;if(Mt.lastIndex=0,Mt.test(e))return r=ki.test(e),t[1]=ln(t[1],r),t[0]=ln(t[0],r,sn(t[1])),!0},be,_t=function(){var l=Date.now,t=500,e=33,r=l(),n=r,i=1e3/240,o=i,s=[],u,f,c,h,p,_,g=function d(m){var y=l()-n,k=m===!0,x,C,b,w;if((y>t||y<0)&&(r+=y-e),n+=y,b=n-r,x=b-o,(x>0||k)&&(w=++h.frame,p=b-h.time*1e3,h.time=b=b/1e3,o+=x+(x>=i?4:i-x),C=1),k||(u=f(d)),C)for(_=0;_<s.length;_++)s[_](b,p,w,m)};return h={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(m){return p/(1e3/(m||60))},wake:function(){Vr&&(!We&&Xe()&&(Ct=We=window,Ye=Ct.document||{},ut.gsap=st,(Ct.gsapVersions||(Ct.gsapVersions=[])).push(st.version),zr(Be||Ct.GreenSockGlobals||!Ct.gsap&&Ct||{}),nn.forEach(an)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&h.sleep(),f=c||function(m){return setTimeout(m,o-h.time*1e3+1|0)},be=1,g(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(u),be=0,f=de},lagSmoothing:function(m,y){t=m||1/0,e=Math.min(y||33,t)},fps:function(m){i=1e3/(m||240),o=h.time*1e3+i},add:function(m,y,k){var x=y?function(C,b,w,E){m(C,b,w,E),h.remove(x)}:m;return h.remove(m),s[k?"unshift":"push"](x),oe(),x},remove:function(m,y){~(y=s.indexOf(m))&&s.splice(y,1)&&_>=y&&_--},_listeners:s},h}(),oe=function(){return!be&&_t.wake()},v={},Ci=/^[\d.\-M][\d.\-,\s]/,Si=/["']/g,wi=function(t){for(var e={},r=t.substr(1,t.length-3).split(":"),n=r[0],i=1,o=r.length,s,u,f;i<o;i++)u=r[i],s=i!==o-1?u.lastIndexOf(","):u.length,f=u.substr(0,s),e[n]=isNaN(f)?f.replace(Si,"").trim():+f,n=u.substr(s+1).trim();return e},Ti=function(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),n=t.indexOf("(",e);return t.substring(e,~n&&n<r?t.indexOf(")",r+1):r)},Ei=function(t){var e=(t+"").split("("),r=v[e[0]];return r&&e.length>1&&r.config?r.config.apply(null,~t.indexOf("{")?[wi(e[1])]:Ti(t).split(",").map(qr)):v._CE&&Ci.test(t)?v._CE("",t):r},un=function(t){return function(e){return 1-t(1-e)}},fn=function l(t,e){for(var r=t._first,n;r;)r instanceof rt?l(r,e):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==e&&(r.timeline?l(r.timeline,e):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=e)),r=r._next},$t=function(t,e){return t&&(Y(t)?t:v[t]||Ei(t))||e},Xt=function(t,e,r,n){r===void 0&&(r=function(u){return 1-e(1-u)}),n===void 0&&(n=function(u){return u<.5?e(u*2)/2:1-e((1-u)*2)/2});var i={easeIn:e,easeOut:r,easeInOut:n},o;return at(t,function(s){v[s]=ut[s]=i,v[o=s.toLowerCase()]=r;for(var u in i)v[o+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=v[s+"."+u]=i[u]}),i},dn=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},or=function l(t,e,r){var n=e>=1?e:1,i=(r||(t?.3:.45))/(e<1?e:1),o=i/Ie*(Math.asin(1/n)||0),s=function(c){return c===1?1:n*Math.pow(2,-10*c)*Kn((c-o)*i)+1},u=t==="out"?s:t==="in"?function(f){return 1-s(1-f)}:dn(s);return i=Ie/i,u.config=function(f,c){return l(t,f,c)},u},sr=function l(t,e){e===void 0&&(e=1.70158);var r=function(o){return o?--o*o*((e+1)*o+e)+1:0},n=t==="out"?r:t==="in"?function(i){return 1-r(1-i)}:dn(r);return n.config=function(i){return l(t,i)},n};at("Linear,Quad,Cubic,Quart,Quint,Strong",function(l,t){var e=t<5?t+1:t;Xt(l+",Power"+(e-1),t?function(r){return Math.pow(r,e)}:function(r){return r},function(r){return 1-Math.pow(1-r,e)},function(r){return r<.5?Math.pow(r*2,e)/2:1-Math.pow((1-r)*2,e)/2})}),v.Linear.easeNone=v.none=v.Linear.easeIn,Xt("Elastic",or("in"),or("out"),or()),function(l,t){var e=1/t,r=2*e,n=2.5*e,i=function(s){return s<e?l*s*s:s<r?l*Math.pow(s-1.5/t,2)+.75:s<n?l*(s-=2.25/t)*s+.9375:l*Math.pow(s-2.625/t,2)+.984375};Xt("Bounce",function(o){return 1-i(1-o)},i)}(7.5625,2.75),Xt("Expo",function(l){return Math.pow(2,10*(l-1))*l+l*l*l*l*l*l*(1-l)}),Xt("Circ",function(l){return-(Pr(1-l*l)-1)}),Xt("Sine",function(l){return l===1?1:-Zn(l*Qn)+1}),Xt("Back",sr("in"),sr("out"),sr()),v.SteppedEase=v.steps=ut.SteppedEase={config:function(t,e){t===void 0&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0,o=1-q;return function(s){return((n*pe(0,o,s)|0)+i)*r}}},jt.ease=v["quad.out"],at("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(l){return Ke+=l+","+l+"Params,"});var hn=function(t,e){this.id=Hn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Fr,this.set=e?e.getSetter:dr},xe=function(){function l(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,ie(this,+e.duration,1,1),this.data=e.data,$&&(this._ctx=$,$.data.push(this)),be||_t.wake()}var t=l.prototype;return t.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},t.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},t.totalDuration=function(r){return arguments.length?(this._dirty=0,ie(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(r,n){if(oe(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Ne(this,r),!i._dp||i.parent||Wr(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&St(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===q||!this._initted&&this._dur&&r||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Lr(this,r,n)),this},t.time=function(r,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Ur(this))%(this._dur+this._rDelay)||(r?this._dur:0),n):this._time},t.totalProgress=function(r,n){return arguments.length?this.totalTime(this.totalDuration()*r,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(r,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Ur(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(r,n){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*i,n):this._repeat?ne(this._tTime,i)+1:1},t.timeScale=function(r,n){if(!arguments.length)return this._rts===-q?0:this._rts;if(this._rts===r)return this;var i=this.parent&&this._ts?Ve(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-q?0:this._rts,this.totalTime(pe(-Math.abs(this._delay),this.totalDuration(),i),n!==!1),ze(this),si(this)},t.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(oe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==q&&(this._tTime-=q)))),this):this._ps},t.startTime=function(r){if(arguments.length){this._start=U(r);var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&St(n,this,this._start-this._delay),this}return this._start},t.endTime=function(r){return this._start+(it(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(r){var n=this.parent||this._dp;return n?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ve(n.rawTime(r),this):this._tTime:this._tTime},t.revert=function(r){r===void 0&&(r=ni);var n=Z;return Z=r,je(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),Z=n,this},t.globalTime=function(r){for(var n=this,i=arguments.length?r:n.rawTime();n;)i=n._start+i/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(r):i},t.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Qr(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(r){if(arguments.length){var n=this._time;return this._rDelay=r,Qr(this),n?this.time(n):this}return this._rDelay},t.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},t.seek=function(r,n){return this.totalTime(yt(this,r),it(n))},t.restart=function(r,n){return this.play().totalTime(r?-this._delay:0,it(n)),this._dur||(this._zTime=-q),this},t.play=function(r,n){return r!=null&&this.seek(r,n),this.reversed(!1).paused(!1)},t.reverse=function(r,n){return r!=null&&this.seek(r||this.totalDuration(),n),this.reversed(!0).paused(!1)},t.pause=function(r,n){return r!=null&&this.seek(r,n),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-q:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-q,this},t.isActive=function(){var r=this.parent||this._dp,n=this._start,i;return!!(!r||this._ts&&this._initted&&r.isActive()&&(i=r.rawTime(!0))>=n&&i<this.endTime(!0)-q)},t.eventCallback=function(r,n,i){var o=this.vars;return arguments.length>1?(n?(o[r]=n,i&&(o[r+"Params"]=i),r==="onUpdate"&&(this._onUpdate=n)):delete o[r],this):o[r]},t.then=function(r){var n=this,i=n._prom;return new Promise(function(o){var s=Y(r)?r:Ir,u=function(){var c=n.then;n.then=null,i&&i(),Y(s)&&(s=s(n))&&(s.then||s===n)&&(n.then=c),o(s),n.then=c};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?u():n._prom=u})},t.kill=function(){ge(this)},l}();dt(xe.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:-q,_prom:0,_ps:!1,_rts:1});var rt=function(l){Br(t,l);function t(r,n){var i;return r===void 0&&(r={}),i=l.call(this,r)||this,i.labels={},i.smoothChildTiming=!!r.smoothChildTiming,i.autoRemoveChildren=!!r.autoRemoveChildren,i._sort=it(r.sortChildren),X&&St(r.parent||X,Tt(i),n),r.reversed&&i.reverse(),r.paused&&i.paused(!0),r.scrollTrigger&&Yr(Tt(i),r.scrollTrigger),i}var e=t.prototype;return e.to=function(n,i,o){return _e(0,arguments,this),this},e.from=function(n,i,o){return _e(1,arguments,this),this},e.fromTo=function(n,i,o,s){return _e(2,arguments,this),this},e.set=function(n,i,o){return i.duration=0,i.parent=this,he(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new Q(n,i,yt(this,o),1),this},e.call=function(n,i,o){return St(this,Q.delayedCall(0,n,i),o)},e.staggerTo=function(n,i,o,s,u,f,c){return o.duration=i,o.stagger=o.stagger||s,o.onComplete=f,o.onCompleteParams=c,o.parent=this,new Q(n,o,yt(this,u)),this},e.staggerFrom=function(n,i,o,s,u,f,c){return o.runBackwards=1,he(o).immediateRender=it(o.immediateRender),this.staggerTo(n,i,o,s,u,f,c)},e.staggerFromTo=function(n,i,o,s,u,f,c,h){return s.startAt=o,he(s).immediateRender=it(s.immediateRender),this.staggerTo(n,i,s,u,f,c,h)},e.render=function(n,i,o){var s=this._time,u=this._dirty?this.totalDuration():this._tDur,f=this._dur,c=n<=0?0:U(n),h=this._zTime<0!=n<0&&(this._initted||!f),p,_,g,d,m,y,k,x,C,b,w,E;if(this!==X&&c>u&&n>=0&&(c=u),c!==this._tTime||o||h){if(s!==this._time&&f&&(c+=this._time-s,n+=this._time-s),p=c,C=this._start,x=this._ts,y=!x,h&&(f||(s=this._zTime),(n||!i)&&(this._zTime=n)),this._repeat){if(w=this._yoyo,m=f+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(m*100+n,i,o);if(p=U(c%m),c===u?(d=this._repeat,p=f):(b=U(c/m),d=~~b,d&&d===b&&(p=f,d--),p>f&&(p=f)),b=ne(this._tTime,m),!s&&this._tTime&&b!==d&&this._tTime-b*m-this._dur<=0&&(b=d),w&&d&1&&(p=f-p,E=1),d!==b&&!this._lock){var B=w&&b&1,S=B===(w&&d&1);if(d<b&&(B=!B),s=B?0:c%f?f:c,this._lock=1,this.render(s||(E?0:U(d*m)),i,!f)._lock=0,this._tTime=c,!i&&this.parent&&ht(this,"onRepeat"),this.vars.repeatRefresh&&!E&&(this.invalidate()._lock=1,b=d),s&&s!==this._time||y!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(f=this._dur,u=this._tDur,S&&(this._lock=2,s=B?f:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!E&&this.invalidate()),this._lock=0,!this._ts&&!y)return this;fn(this,E)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(k=fi(this,U(s),U(p)),k&&(c-=p-(p=k._start))),this._tTime=c,this._time=p,this._act=!x,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,s=0),!s&&c&&f&&!i&&!b&&(ht(this,"onStart"),this._tTime!==c))return this;if(p>=s&&n>=0)for(_=this._first;_;){if(g=_._next,(_._act||p>=_._start)&&_._ts&&k!==_){if(_.parent!==this)return this.render(n,i,o);if(_.render(_._ts>0?(p-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(p-_._start)*_._ts,i,o),p!==this._time||!this._ts&&!y){k=0,g&&(c+=this._zTime=-q);break}}_=g}else{_=this._last;for(var M=n<0?n:p;_;){if(g=_._prev,(_._act||M<=_._end)&&_._ts&&k!==_){if(_.parent!==this)return this.render(n,i,o);if(_.render(_._ts>0?(M-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(M-_._start)*_._ts,i,o||Z&&je(_)),p!==this._time||!this._ts&&!y){k=0,g&&(c+=this._zTime=M?-q:q);break}}_=g}}if(k&&!i&&(this.pause(),k.render(p>=s?0:-q)._zTime=p>=s?1:-1,this._ts))return this._start=C,ze(this),this.render(n,i,o);this._onUpdate&&!i&&ht(this,"onUpdate",!0),(c===u&&this._tTime>=this.totalDuration()||!c&&s)&&(C===this._start||Math.abs(x)!==Math.abs(this._ts))&&(this._lock||((n||!f)&&(c===u&&this._ts>0||!c&&this._ts<0)&&Rt(this,1),!i&&!(n<0&&!s)&&(c||s||!u)&&(ht(this,c===u&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<u&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(n,i){var o=this;if(Et(i)||(i=yt(this,i,n)),!(n instanceof xe)){if(K(n))return n.forEach(function(s){return o.add(s,i)}),this;if(H(n))return this.addLabel(n,i);if(Y(n))n=Q.delayedCall(0,n);else return this}return this!==n?St(this,n,i):this},e.getChildren=function(n,i,o,s){n===void 0&&(n=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),s===void 0&&(s=-gt);for(var u=[],f=this._first;f;)f._start>=s&&(f instanceof Q?i&&u.push(f):(o&&u.push(f),n&&u.push.apply(u,f.getChildren(!0,i,o)))),f=f._next;return u},e.getById=function(n){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===n)return i[o]},e.remove=function(n){return H(n)?this.removeLabel(n):Y(n)?this.killTweensOf(n):(n.parent===this&&Me(this,n),n===this._recent&&(this._recent=this._last),It(this))},e.totalTime=function(n,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=U(_t.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),l.prototype.totalTime.call(this,n,i),this._forcing=0,this):this._tTime},e.addLabel=function(n,i){return this.labels[n]=yt(this,i),this},e.removeLabel=function(n){return delete this.labels[n],this},e.addPause=function(n,i,o){var s=Q.delayedCall(0,i||de,o);return s.data="isPause",this._hasPause=1,St(this,s,yt(this,n))},e.removePause=function(n){var i=this._first;for(n=yt(this,n);i;)i._start===n&&i.data==="isPause"&&Rt(i),i=i._next},e.killTweensOf=function(n,i,o){for(var s=this.getTweensOf(n,o),u=s.length;u--;)Vt!==s[u]&&s[u].kill(n,i);return this},e.getTweensOf=function(n,i){for(var o=[],s=bt(n),u=this._first,f=Et(i),c;u;)u instanceof Q?ii(u._targets,s)&&(f?(!Vt||u._initted&&u._ts)&&u.globalTime(0)<=i&&u.globalTime(u.totalDuration())>i:!i||u.isActive())&&o.push(u):(c=u.getTweensOf(s,i)).length&&o.push.apply(o,c),u=u._next;return o},e.tweenTo=function(n,i){i=i||{};var o=this,s=yt(o,n),u=i,f=u.startAt,c=u.onStart,h=u.onStartParams,p=u.immediateRender,_,g=Q.to(o,dt({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:i.duration||Math.abs((s-(f&&"time"in f?f.time:o._time))/o.timeScale())||q,onStart:function(){if(o.pause(),!_){var m=i.duration||Math.abs((s-(f&&"time"in f?f.time:o._time))/o.timeScale());g._dur!==m&&ie(g,m,0,1).render(g._time,!0,!0),_=1}c&&c.apply(g,h||[])}},i));return p?g.render(0):g},e.tweenFromTo=function(n,i,o){return this.tweenTo(i,dt({startAt:{time:yt(this,n)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(n){return n===void 0&&(n=this._time),rn(this,yt(this,n))},e.previousLabel=function(n){return n===void 0&&(n=this._time),rn(this,yt(this,n),1)},e.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+q)},e.shiftChildren=function(n,i,o){o===void 0&&(o=0);var s=this._first,u=this.labels,f;for(n=U(n);s;)s._start>=o&&(s._start+=n,s._end+=n),s=s._next;if(i)for(f in u)u[f]>=o&&(u[f]+=n);return It(this)},e.invalidate=function(n){var i=this._first;for(this._lock=0;i;)i.invalidate(n),i=i._next;return l.prototype.invalidate.call(this,n)},e.clear=function(n){n===void 0&&(n=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),It(this)},e.totalDuration=function(n){var i=0,o=this,s=o._last,u=gt,f,c,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-n:n));if(o._dirty){for(h=o.parent;s;)f=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>u&&o._sort&&s._ts&&!o._lock?(o._lock=1,St(o,s,c-s._delay,1)._lock=0):u=c,c<0&&s._ts&&(i-=c,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=U(c/o._ts),o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),u=0),s._end>i&&s._ts&&(i=s._end),s=f;ie(o,o===X&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(n){if(X._ts&&(Lr(X,Ve(n,X)),Ar=_t.frame),_t.frame>=vr){vr+=ct.autoSleep||120;var i=X._first;if((!i||!i._ts)&&ct.autoSleep&&_t._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||_t.sleep()}}},t}(xe);dt(rt.prototype,{_lock:0,_hasPause:0,_forcing:0});var Bi=function(t,e,r,n,i,o,s){var u=new ot(this._pt,t,e,0,1,bn,null,i),f=0,c=0,h,p,_,g,d,m,y,k;for(u.b=r,u.e=n,r+="",n+="",(y=~n.indexOf("random("))&&(n=me(n)),o&&(k=[r,n],o(k,t,e),r=k[0],n=k[1]),p=r.match(Ue)||[];h=Ue.exec(n);)g=h[0],d=n.substring(f,h.index),_?_=(_+1)%5:d.substr(-5)==="rgba("&&(_=1),g!==p[c++]&&(m=parseFloat(p[c-1])||0,u._pt={_next:u._pt,p:d||c===1?d:",",s:m,c:g.charAt(1)==="="?ee(m,g)-m:parseFloat(g)-m,m:_&&_<4?Math.round:0},f=Ue.lastIndex);return u.c=f<n.length?n.substring(f,n.length):"",u.fp=s,(Mr.test(n)||y)&&(u.e=0),this._pt=u,u},lr=function(t,e,r,n,i,o,s,u,f,c){Y(n)&&(n=n(i||0,t,o));var h=t[e],p=r!=="get"?r:Y(h)?f?t[e.indexOf("set")||!Y(t["get"+e.substr(3)])?e:"get"+e.substr(3)](f):t[e]():h,_=Y(h)?f?Mi:gn:fr,g;if(H(n)&&(~n.indexOf("random(")&&(n=me(n)),n.charAt(1)==="="&&(g=ee(p,n)+(J(p)||0),(g||g===0)&&(n=g))),!c||p!==n||cr)return!isNaN(p*n)&&n!==""?(g=new ot(this._pt,t,e,+p||0,n-(p||0),typeof h=="boolean"?zi:yn,0,_),f&&(g.fp=f),s&&g.modifier(s,this,t),this._pt=g):(!h&&!(e in t)&&Ge(e,n),Bi.call(this,t,e,p,n,_,u||ct.stringFilter,f))},Pi=function(t,e,r,n,i){if(Y(t)&&(t=ke(t,i,e,r,n)),!kt(t)||t.style&&t.nodeType||K(t)||Dr(t))return H(t)?ke(t,i,e,r,n):t;var o={},s;for(s in t)o[s]=ke(t[s],i,e,r,n);return o},_n=function(t,e,r,n,i,o){var s,u,f,c;if(ft[t]&&(s=new ft[t]).init(i,s.rawVars?e[t]:Pi(e[t],n,i,o,r),r,n,o)!==!1&&(r._pt=u=new ot(r._pt,i,t,0,1,s.render,s,0,s.priority),r!==ae))for(f=r._ptLookup[r._targets.indexOf(i)],c=s._props.length;c--;)f[s._props[c]]=u;return s},Vt,cr,ur=function l(t,e,r){var n=t.vars,i=n.ease,o=n.startAt,s=n.immediateRender,u=n.lazy,f=n.onUpdate,c=n.runBackwards,h=n.yoyoEase,p=n.keyframes,_=n.autoRevert,g=t._dur,d=t._startAt,m=t._targets,y=t.parent,k=y&&y.data==="nested"?y.vars.targets:m,x=t._overwrite==="auto"&&!qe,C=t.timeline,b,w,E,B,S,M,F,V,A,R,O,T,P;if(C&&(!p||!i)&&(i="none"),t._ease=$t(i,jt.ease),t._yEase=h?un($t(h===!0?i:h,jt.ease)):0,h&&t._yoyo&&!t._repeat&&(h=t._yEase,t._yEase=t._ease,t._ease=h),t._from=!C&&!!n.runBackwards,!C||p&&!n.stagger){if(V=m[0]?qt(m[0]).harness:0,T=V&&n[V.prop],b=Oe(n,Qe),d&&(d._zTime<0&&d.progress(1),e<0&&c&&s&&!_?d.render(-1,!0):d.revert(c&&g?Pe:ri),d._lazy=0),o){if(Rt(t._startAt=Q.set(m,dt({data:"isStart",overwrite:!1,parent:y,immediateRender:!0,lazy:!d&&it(u),startAt:null,delay:0,onUpdate:f&&function(){return ht(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(Z||!s&&!_)&&t._startAt.revert(Pe),s&&g&&e<=0&&r<=0){e&&(t._zTime=e);return}}else if(c&&g&&!d){if(e&&(s=!1),E=dt({overwrite:!1,data:"isFromStart",lazy:s&&!d&&it(u),immediateRender:s,stagger:0,parent:y},b),T&&(E[V.prop]=T),Rt(t._startAt=Q.set(m,E)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(Z?t._startAt.revert(Pe):t._startAt.render(-1,!0)),t._zTime=e,!s)l(t._startAt,q,q);else if(!e)return}for(t._pt=t._ptCache=0,u=g&&it(u)||u&&!g,w=0;w<m.length;w++){if(S=m[w],F=S._gsap||Je(m)[w]._gsap,t._ptLookup[w]=R={},He[F.id]&&Dt.length&&Re(),O=k===m?w:k.indexOf(S),V&&(A=new V).init(S,T||b,t,O,k)!==!1&&(t._pt=B=new ot(t._pt,S,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(D){R[D]=B}),A.priority&&(M=1)),!V||T)for(E in b)ft[E]&&(A=_n(E,b,t,O,S,k))?A.priority&&(M=1):R[E]=B=lr.call(t,S,E,"get",b[E],O,k,0,n.stringFilter);t._op&&t._op[w]&&t.kill(S,t._op[w]),x&&t._pt&&(Vt=t,X.killTweensOf(S,R,t.globalTime(e)),P=!t.parent,Vt=0),t._pt&&u&&(He[F.id]=1)}M&&xn(t),t._onInit&&t._onInit(t)}t._onUpdate=f,t._initted=(!t._op||t._pt)&&!P,p&&e<=0&&C.render(gt,!0,!0)},Di=function(t,e,r,n,i,o,s,u){var f=(t._pt&&t._ptCache||(t._ptCache={}))[e],c,h,p,_;if(!f)for(f=t._ptCache[e]=[],p=t._ptLookup,_=t._targets.length;_--;){if(c=p[_][e],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==e&&c.fp!==e;)c=c._next;if(!c)return cr=1,t.vars[e]="+=0",ur(t,s),cr=0,u?fe(e+" not eligible for reset"):1;f.push(c)}for(_=f.length;_--;)h=f[_],c=h._pt||h,c.s=(n||n===0)&&!i?n:c.s+(n||0)+o*c.c,c.c=r-c.s,h.e&&(h.e=G(r)+J(h.e)),h.b&&(h.b=c.s+J(h.b))},Ri=function(t,e){var r=t[0]?qt(t[0]).harness:0,n=r&&r.aliases,i,o,s,u;if(!n)return e;i=re({},e);for(o in n)if(o in i)for(u=n[o].split(","),s=u.length;s--;)i[u[s]]=i[o];return i},Oi=function(t,e,r,n){var i=e.ease||n||"power1.inOut",o,s;if(K(e))s=r[t]||(r[t]=[]),e.forEach(function(u,f){return s.push({t:f/(e.length-1)*100,v:u,e:i})});else for(o in e)s=r[o]||(r[o]=[]),o==="ease"||s.push({t:parseFloat(t),v:e[o],e:i})},ke=function(t,e,r,n,i){return Y(t)?t.call(e,r,n,i):H(t)&&~t.indexOf("random(")?me(t):t},pn=Ke+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",mn={};at(pn+",id,stagger,delay,duration,paused,scrollTrigger",function(l){return mn[l]=1});var Q=function(l){Br(t,l);function t(r,n,i,o){var s;typeof n=="number"&&(i.duration=n,n=i,i=null),s=l.call(this,o?n:he(n))||this;var u=s.vars,f=u.duration,c=u.delay,h=u.immediateRender,p=u.stagger,_=u.overwrite,g=u.keyframes,d=u.defaults,m=u.scrollTrigger,y=u.yoyoEase,k=n.parent||X,x=(K(r)||Dr(r)?Et(r[0]):"length"in n)?[r]:bt(r),C,b,w,E,B,S,M,F;if(s._targets=x.length?Je(x):fe("GSAP target "+r+" not found. https://gsap.com",!ct.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=_,g||p||Ee(f)||Ee(c)){if(n=s.vars,C=s.timeline=new rt({data:"nested",defaults:d||{},targets:k&&k.data==="nested"?k.vars.targets:x}),C.kill(),C.parent=C._dp=Tt(s),C._start=0,p||Ee(f)||Ee(c)){if(E=x.length,M=p&&Kr(p),kt(p))for(B in p)~pn.indexOf(B)&&(F||(F={}),F[B]=p[B]);for(b=0;b<E;b++)w=Oe(n,mn),w.stagger=0,y&&(w.yoyoEase=y),F&&re(w,F),S=x[b],w.duration=+ke(f,Tt(s),b,S,x),w.delay=(+ke(c,Tt(s),b,S,x)||0)-s._delay,!p&&E===1&&w.delay&&(s._delay=c=w.delay,s._start+=c,w.delay=0),C.to(S,w,M?M(b,S,x):0),C._ease=v.none;C.duration()?f=c=0:s.timeline=0}else if(g){he(dt(C.vars.defaults,{ease:"none"})),C._ease=$t(g.ease||n.ease||"none");var V=0,A,R,O;if(K(g))g.forEach(function(T){return C.to(x,T,">")}),C.duration();else{w={};for(B in g)B==="ease"||B==="easeEach"||Oi(B,g[B],w,g.easeEach);for(B in w)for(A=w[B].sort(function(T,P){return T.t-P.t}),V=0,b=0;b<A.length;b++)R=A[b],O={ease:R.e,duration:(R.t-(b?A[b-1].t:0))/100*f},O[B]=R.v,C.to(x,O,V),V+=O.duration;C.duration()<f&&C.to({},{duration:f-C.duration()})}}f||s.duration(f=C.duration())}else s.timeline=0;return _===!0&&!qe&&(Vt=Tt(s),X.killTweensOf(x),Vt=0),St(k,Tt(s),i),n.reversed&&s.reverse(),n.paused&&s.paused(!0),(h||!f&&!g&&s._start===U(k._time)&&it(h)&&li(Tt(s))&&k.data!=="nested")&&(s._tTime=-q,s.render(Math.max(0,-c)||0)),m&&Yr(Tt(s),m),s}var e=t.prototype;return e.render=function(n,i,o){var s=this._time,u=this._tDur,f=this._dur,c=n<0,h=n>u-q&&!c?u:n<q?0:n,p,_,g,d,m,y,k,x,C;if(!f)ui(this,n,i,o);else if(h!==this._tTime||!n||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(p=h,x=this.timeline,this._repeat){if(d=f+this._rDelay,this._repeat<-1&&c)return this.totalTime(d*100+n,i,o);if(p=U(h%d),h===u?(g=this._repeat,p=f):(m=U(h/d),g=~~m,g&&g===m?(p=f,g--):p>f&&(p=f)),y=this._yoyo&&g&1,y&&(C=this._yEase,p=f-p),m=ne(this._tTime,d),p===s&&!o&&this._initted&&g===m)return this._tTime=h,this;g!==m&&(x&&this._yEase&&fn(x,y),this.vars.repeatRefresh&&!y&&!this._lock&&p!==d&&this._initted&&(this._lock=o=1,this.render(U(d*g),!0).invalidate()._lock=0))}if(!this._initted){if(Gr(this,c?n:p,o,i,h))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&g!==m))return this;if(f!==this._dur)return this.render(n,i,o)}if(this._tTime=h,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=k=(C||this._ease)(p/f),this._from&&(this.ratio=k=1-k),!s&&h&&!i&&!m&&(ht(this,"onStart"),this._tTime!==h))return this;for(_=this._pt;_;)_.r(k,_.d),_=_._next;x&&x.render(n<0?n:x._dur*x._ease(p/this._dur),i,o)||this._startAt&&(this._zTime=n),this._onUpdate&&!i&&(c&&tr(this,n,i,o),ht(this,"onUpdate")),this._repeat&&g!==m&&this.vars.onRepeat&&!i&&this.parent&&ht(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(c&&!this._onUpdate&&tr(this,n,!0,!0),(n||!f)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Rt(this,1),!i&&!(c&&!s)&&(h||s||y)&&(ht(this,h===u?"onComplete":"onReverseComplete",!0),this._prom&&!(h<u&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),l.prototype.invalidate.call(this,n)},e.resetTo=function(n,i,o,s,u){be||_t.wake(),this._ts||this.play();var f=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||ur(this,f),c=this._ease(f/this._dur),Di(this,n,i,o,s,c,f,u)?this.resetTo(n,i,o,s,1):(Ne(this,0),this.parent||Xr(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(n,i){if(i===void 0&&(i="all"),!n&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?ge(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Z),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(n,i,Vt&&Vt.vars.overwrite!==!0)._first||ge(this),this.parent&&o!==this.timeline.totalDuration()&&ie(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,u=n?bt(n):s,f=this._ptLookup,c=this._pt,h,p,_,g,d,m,y;if((!i||i==="all")&&oi(s,u))return i==="all"&&(this._pt=0),ge(this);for(h=this._op=this._op||[],i!=="all"&&(H(i)&&(d={},at(i,function(k){return d[k]=1}),i=d),i=Ri(s,i)),y=s.length;y--;)if(~u.indexOf(s[y])){p=f[y],i==="all"?(h[y]=i,g=p,_={}):(_=h[y]=h[y]||{},g=i);for(d in g)m=p&&p[d],m&&((!("kill"in m.d)||m.d.kill(d)===!0)&&Me(this,m,"_pt"),delete p[d]),_!=="all"&&(_[d]=1)}return this._initted&&!this._pt&&c&&ge(this),this},t.to=function(n,i){return new t(n,i,arguments[2])},t.from=function(n,i){return _e(1,arguments)},t.delayedCall=function(n,i,o,s){return new t(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},t.fromTo=function(n,i,o){return _e(2,arguments)},t.set=function(n,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new t(n,i)},t.killTweensOf=function(n,i,o){return X.killTweensOf(n,i,o)},t}(xe);dt(Q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),at("staggerTo,staggerFrom,staggerFromTo",function(l){Q[l]=function(){var t=new rt,e=rr.call(arguments,0);return e.splice(l==="staggerFromTo"?5:4,0,0),t[l].apply(t,e)}});var fr=function(t,e,r){return t[e]=r},gn=function(t,e,r){return t[e](r)},Mi=function(t,e,r,n){return t[e](n.fp,r)},Vi=function(t,e,r){return t.setAttribute(e,r)},dr=function(t,e){return Y(t[e])?gn:$e(t[e])&&t.setAttribute?Vi:fr},yn=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},zi=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},bn=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(t===1&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round((r.s+r.c*t)*1e4)/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},hr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},Ni=function(t,e,r,n){for(var i=this._pt,o;i;)o=i._next,i.p===n&&i.modifier(t,e,r),i=o},Ai=function(t){for(var e=this._pt,r,n;e;)n=e._next,e.p===t&&!e.op||e.op===t?Me(this,e,"_pt"):e.dep||(r=1),e=n;return!r},vi=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},xn=function(t){for(var e=t._pt,r,n,i,o;e;){for(r=e._next,n=i;n&&n.pr>e.pr;)n=n._next;(e._prev=n?n._prev:o)?e._prev._next=e:i=e,(e._next=n)?n._prev=e:o=e,e=r}t._pt=i},ot=function(){function l(e,r,n,i,o,s,u,f,c){this.t=r,this.s=i,this.c=o,this.p=n,this.r=s||yn,this.d=u||this,this.set=f||fr,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=l.prototype;return t.modifier=function(r,n,i){this.mSet=this.mSet||this.set,this.set=vi,this.m=r,this.mt=i,this.tween=n},l}();at(Ke+"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(l){return Qe[l]=1}),ut.TweenMax=ut.TweenLite=Q,ut.TimelineLite=ut.TimelineMax=rt,X=new rt({sortChildren:!1,defaults:jt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),ct.stringFilter=cn;var Ut=[],Ae={},Fi=[],kn=0,Li=0,_r=function(t){return(Ae[t]||Fi).map(function(e){return e()})},pr=function(){var t=Date.now(),e=[];t-kn>2&&(_r("matchMediaInit"),Ut.forEach(function(r){var n=r.queries,i=r.conditions,o,s,u,f;for(s in n)o=Ct.matchMedia(n[s]).matches,o&&(u=1),o!==i[s]&&(i[s]=o,f=1);f&&(r.revert(),u&&e.push(r))}),_r("matchMediaRevert"),e.forEach(function(r){return r.onMatch(r,function(n){return r.add(null,n)})}),kn=t,_r("matchMedia"))},Cn=function(){function l(e,r){this.selector=r&&nr(r),this.data=[],this._r=[],this.isReverted=!1,this.id=Li++,e&&this.add(e)}var t=l.prototype;return t.add=function(r,n,i){Y(r)&&(i=n,n=r,r=Y);var o=this,s=function(){var f=$,c=o.selector,h;return f&&f!==o&&f.data.push(o),i&&(o.selector=nr(i)),$=o,h=n.apply(o,arguments),Y(h)&&o._r.push(h),$=f,o.selector=c,o.isReverted=!1,h};return o.last=s,r===Y?s(o,function(u){return o.add(null,u)}):r?o[r]=s:s},t.ignore=function(r){var n=$;$=null,r(this),$=n},t.getTweens=function(){var r=[];return this.data.forEach(function(n){return n instanceof l?r.push.apply(r,n.getTweens()):n instanceof Q&&!(n.parent&&n.parent.data==="nested")&&r.push(n)}),r},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(r,n){var i=this;if(r?function(){for(var s=i.getTweens(),u=i.data.length,f;u--;)f=i.data[u],f.data==="isFlip"&&(f.revert(),f.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,h){return h.g-c.g||-1/0}).forEach(function(c){return c.t.revert(r)}),u=i.data.length;u--;)f=i.data[u],f instanceof rt?f.data!=="nested"&&(f.scrollTrigger&&f.scrollTrigger.revert(),f.kill()):!(f instanceof Q)&&f.revert&&f.revert(r);i._r.forEach(function(c){return c(r,i)}),i.isReverted=!0}():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),n)for(var o=Ut.length;o--;)Ut[o].id===this.id&&Ut.splice(o,1)},t.revert=function(r){this.kill(r||{})},l}(),qi=function(){function l(e){this.contexts=[],this.scope=e,$&&$.data.push(this)}var t=l.prototype;return t.add=function(r,n,i){kt(r)||(r={matches:r});var o=new Cn(0,i||this.scope),s=o.conditions={},u,f,c;$&&!o.selector&&(o.selector=$.selector),this.contexts.push(o),n=o.add("onMatch",n),o.queries=r;for(f in r)f==="all"?c=1:(u=Ct.matchMedia(r[f]),u&&(Ut.indexOf(o)<0&&Ut.push(o),(s[f]=u.matches)&&(c=1),u.addListener?u.addListener(pr):u.addEventListener("change",pr)));return c&&n(o,function(h){return o.add(null,h)}),this},t.revert=function(r){this.kill(r||{})},t.kill=function(r){this.contexts.forEach(function(n){return n.kill(r,!0)})},l}(),ve={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(n){return an(n)})},timeline:function(t){return new rt(t)},getTweensOf:function(t,e){return X.getTweensOf(t,e)},getProperty:function(t,e,r,n){H(t)&&(t=bt(t)[0]);var i=qt(t||{}).get,o=r?Ir:qr;return r==="native"&&(r=""),t&&(e?o((ft[e]&&ft[e].get||i)(t,e,r,n)):function(s,u,f){return o((ft[s]&&ft[s].get||i)(t,s,u,f))})},quickSetter:function(t,e,r){if(t=bt(t),t.length>1){var n=t.map(function(c){return st.quickSetter(c,e,r)}),i=n.length;return function(c){for(var h=i;h--;)n[h](c)}}t=t[0]||{};var o=ft[e],s=qt(t),u=s.harness&&(s.harness.aliases||{})[e]||e,f=o?function(c){var h=new o;ae._pt=0,h.init(t,r?c+r:c,ae,0,[t]),h.render(1,h),ae._pt&&hr(1,ae)}:s.set(t,u);return o?f:function(c){return f(t,u,r?c+r:c,s,1)}},quickTo:function(t,e,r){var n,i=st.to(t,dt((n={},n[e]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),o=function(u,f,c){return i.resetTo(e,u,f,c)};return o.tween=i,o},isTweening:function(t){return X.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=$t(t.ease,jt.ease)),$r(jt,t||{})},config:function(t){return $r(ct,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach(function(s){return s&&!ft[s]&&!ut[s]&&fe(e+" effect requires "+s+" plugin.")}),Ze[e]=function(s,u,f){return r(bt(s),dt(u||{},i),f)},o&&(rt.prototype[e]=function(s,u,f){return this.add(Ze[e](s,kt(u)?u:(f=u)&&{},this),f)})},registerEase:function(t,e){v[t]=$t(e)},parseEase:function(t,e){return arguments.length?$t(t,e):v},getById:function(t){return X.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var r=new rt(t),n,i;for(r.smoothChildTiming=it(t.smoothChildTiming),X.remove(r),r._dp=0,r._time=r._tTime=X._time,n=X._first;n;)i=n._next,(e||!(!n._dur&&n instanceof Q&&n.vars.onComplete===n._targets[0]))&&St(r,n,n._start-n._delay),n=i;return St(X,r,0),r},context:function(t,e){return t?new Cn(t,e):$},matchMedia:function(t){return new qi(t)},matchMediaRefresh:function(){return Ut.forEach(function(t){var e=t.conditions,r,n;for(n in e)e[n]&&(e[n]=!1,r=1);r&&t.revert()})||pr()},addEventListener:function(t,e){var r=Ae[t]||(Ae[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Ae[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:yi,wrapYoyo:bi,distribute:Kr,random:jr,snap:Jr,normalize:gi,getUnit:J,clamp:hi,splitColor:on,toArray:bt,selector:nr,mapRange:en,pipe:pi,unitize:mi,interpolate:xi,shuffle:Zr},install:zr,effects:Ze,ticker:_t,updateRoot:rt.updateRoot,plugins:ft,globalTimeline:X,core:{PropTween:ot,globals:Nr,Tween:Q,Timeline:rt,Animation:xe,getCache:qt,_removeLinkedListItem:Me,reverting:function(){return Z},context:function(t){return t&&$&&($.data.push(t),t._ctx=$),$},suppressOverwrites:function(t){return qe=t}}};at("to,from,fromTo,delayedCall,set,killTweensOf",function(l){return ve[l]=Q[l]}),_t.add(rt.updateRoot),ae=ve.to({},{duration:0});var Ii=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},$i=function(t,e){var r=t._targets,n,i,o;for(n in e)for(i=r.length;i--;)o=t._ptLookup[i][n],o&&(o=o.d)&&(o._pt&&(o=Ii(o,n)),o&&o.modifier&&o.modifier(e[n],t,r[i],n))},mr=function(t,e){return{name:t,headless:1,rawVars:1,init:function(n,i,o){o._onInit=function(s){var u,f;if(H(i)&&(u={},at(i,function(c){return u[c]=1}),i=u),e){u={};for(f in i)u[f]=e(i[f]);i=u}$i(s,i)}}}},st=ve.registerPlugin({name:"attr",init:function(t,e,r,n,i){var o,s,u;this.tween=r;for(o in e)u=t.getAttribute(o)||"",s=this.add(t,"setAttribute",(u||0)+"",e[o],n,i,0,0,o),s.op=o,s.b=u,this._props.push(o)},render:function(t,e){for(var r=e._pt;r;)Z?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},mr("roundProps",ir),mr("modifiers"),mr("snap",Jr))||ve;Q.version=rt.version=st.version="3.14.2",Vr=1,Xe()&&oe(),v.Power0,v.Power1,v.Power2,v.Power3,v.Power4,v.Linear,v.Quad,v.Cubic,v.Quart,v.Quint,v.Strong,v.Elastic,v.Back,v.SteppedEase,v.Bounce,v.Sine,v.Expo,v.Circ;/*!
|
|
9
|
+
* CSSPlugin 3.14.2
|
|
10
|
+
* https://gsap.com
|
|
11
|
+
*
|
|
12
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
13
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
14
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
15
|
+
*/var Sn,zt,se,gr,Wt,wn,yr,Xi=function(){return typeof window<"u"},Bt={},Yt=180/Math.PI,le=Math.PI/180,ce=Math.atan2,Tn=1e8,br=/([A-Z])/g,Ui=/(left|right|width|margin|padding|x)/i,Wi=/[\s,\(]\S/,wt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},xr=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Yi=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Gi=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Qi=function(t,e){return e.set(e.t,e.p,t===1?e.e:t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Hi=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},En=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Bn=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Zi=function(t,e,r){return t.style[e]=r},Ki=function(t,e,r){return t.style.setProperty(e,r)},Ji=function(t,e,r){return t._gsap[e]=r},ji=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},ta=function(t,e,r,n,i){var o=t._gsap;o.scaleX=o.scaleY=r,o.renderTransform(i,o)},ea=function(t,e,r,n,i){var o=t._gsap;o[e]=r,o.renderTransform(i,o)},W="transform",lt=W+"Origin",ra=function l(t,e){var r=this,n=this.target,i=n.style,o=n._gsap;if(t in Bt&&i){if(this.tfm=this.tfm||{},t!=="transform")t=wt[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return r.tfm[s]=Pt(n,s)}):this.tfm[t]=o.x?o[t]:Pt(n,t),t===lt&&(this.tfm.zOrigin=o.zOrigin);else return wt.transform.split(",").forEach(function(s){return l.call(r,s,e)});if(this.props.indexOf(W)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(lt,e,"")),t=W}(i||e)&&this.props.push(t,e,i[t])},Pn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},na=function(){var t=this.props,e=this.target,r=e.style,n=e._gsap,i,o;for(i=0;i<t.length;i+=3)t[i+1]?t[i+1]===2?e[t[i]](t[i+2]):e[t[i]]=t[i+2]:t[i+2]?r[t[i]]=t[i+2]:r.removeProperty(t[i].substr(0,2)==="--"?t[i]:t[i].replace(br,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)n[o]=this.tfm[o];n.svg&&(n.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),i=yr(),(!i||!i.isStart)&&!r[W]&&(Pn(r),n.zOrigin&&r[lt]&&(r[lt]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},Dn=function(t,e){var r={target:t,props:[],revert:na,save:ra};return t._gsap||st.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(n){return r.save(n)}),r},Rn,kr=function(t,e){var r=zt.createElementNS?zt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):zt.createElement(t);return r&&r.style?r:zt.createElement(t)},pt=function l(t,e,r){var n=getComputedStyle(t);return n[e]||n.getPropertyValue(e.replace(br,"-$1").toLowerCase())||n.getPropertyValue(e)||!r&&l(t,ue(e)||e,1)||""},On="O,Moz,ms,Ms,Webkit".split(","),ue=function(t,e,r){var n=e||Wt,i=n.style,o=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(On[o]+t in i););return o<0?null:(o===3?"ms":o>=0?On[o]:"")+t},Cr=function(){Xi()&&window.document&&(Sn=window,zt=Sn.document,se=zt.documentElement,Wt=kr("div")||{style:{}},kr("div"),W=ue(W),lt=W+"Origin",Wt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Rn=!!ue("perspective"),yr=st.core.reverting,gr=1)},Mn=function(t){var e=t.ownerSVGElement,r=kr("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=t.cloneNode(!0),i;n.style.display="block",r.appendChild(n),se.appendChild(r);try{i=n.getBBox()}catch{}return r.removeChild(n),se.removeChild(r),i},Vn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},zn=function(t){var e,r;try{e=t.getBBox()}catch{e=Mn(t),r=1}return e&&(e.width||e.height)||r||(e=Mn(t)),e&&!e.width&&!e.x&&!e.y?{x:+Vn(t,["x","cx","x1"])||0,y:+Vn(t,["y","cy","y1"])||0,width:0,height:0}:e},Nn=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&zn(t))},Nt=function(t,e){if(e){var r=t.style,n;e in Bt&&e!==lt&&(e=W),r.removeProperty?(n=e.substr(0,2),(n==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),r.removeProperty(n==="--"?e:e.replace(br,"-$1").toLowerCase())):r.removeAttribute(e)}},At=function(t,e,r,n,i,o){var s=new ot(t._pt,e,r,0,1,o?Bn:En);return t._pt=s,s.b=n,s.e=i,t._props.push(r),s},An={deg:1,rad:1,turn:1},ia={grid:1,flex:1},vt=function l(t,e,r,n){var i=parseFloat(r)||0,o=(r+"").trim().substr((i+"").length)||"px",s=Wt.style,u=Ui.test(e),f=t.tagName.toLowerCase()==="svg",c=(f?"client":"offset")+(u?"Width":"Height"),h=100,p=n==="px",_=n==="%",g,d,m,y;if(n===o||!i||An[n]||An[o])return i;if(o!=="px"&&!p&&(i=l(t,e,r,"px")),y=t.getCTM&&Nn(t),(_||o==="%")&&(Bt[e]||~e.indexOf("adius")))return g=y?t.getBBox()[u?"width":"height"]:t[c],G(_?i/g*h:i/100*g);if(s[u?"width":"height"]=h+(p?o:n),d=n!=="rem"&&~e.indexOf("adius")||n==="em"&&t.appendChild&&!f?t:t.parentNode,y&&(d=(t.ownerSVGElement||{}).parentNode),(!d||d===zt||!d.appendChild)&&(d=zt.body),m=d._gsap,m&&_&&m.width&&u&&m.time===_t.time&&!m.uncache)return G(i/m.width*h);if(_&&(e==="height"||e==="width")){var k=t.style[e];t.style[e]=h+n,g=t[c],k?t.style[e]=k:Nt(t,e)}else(_||o==="%")&&!ia[pt(d,"display")]&&(s.position=pt(t,"position")),d===t&&(s.position="static"),d.appendChild(Wt),g=Wt[c],d.removeChild(Wt),s.position="absolute";return u&&_&&(m=qt(d),m.time=_t.time,m.width=d[c]),G(p?g*i/h:g&&i?h/g*i:0)},Pt=function(t,e,r,n){var i;return gr||Cr(),e in wt&&e!=="transform"&&(e=wt[e],~e.indexOf(",")&&(e=e.split(",")[0])),Bt[e]&&e!=="transform"?(i=Se(t,n),i=e!=="transformOrigin"?i[e]:i.svg?i.origin:Le(pt(t,lt))+" "+i.zOrigin+"px"):(i=t.style[e],(!i||i==="auto"||n||~(i+"").indexOf("calc("))&&(i=Fe[e]&&Fe[e](t,e,r)||pt(t,e)||Fr(t,e)||(e==="opacity"?1:0))),r&&!~(i+"").trim().indexOf(" ")?vt(t,e,i,r)+r:i},aa=function(t,e,r,n){if(!r||r==="none"){var i=ue(e,t,1),o=i&&pt(t,i,1);o&&o!==r?(e=i,r=o):e==="borderColor"&&(r=pt(t,"borderTopColor"))}var s=new ot(this._pt,t.style,e,0,1,bn),u=0,f=0,c,h,p,_,g,d,m,y,k,x,C,b;if(s.b=r,s.e=n,r+="",n+="",n.substring(0,6)==="var(--"&&(n=pt(t,n.substring(4,n.indexOf(")")))),n==="auto"&&(d=t.style[e],t.style[e]=n,n=pt(t,e)||n,d?t.style[e]=d:Nt(t,e)),c=[r,n],cn(c),r=c[0],n=c[1],p=r.match(te)||[],b=n.match(te)||[],b.length){for(;h=te.exec(n);)m=h[0],k=n.substring(u,h.index),g?g=(g+1)%5:(k.substr(-5)==="rgba("||k.substr(-5)==="hsla(")&&(g=1),m!==(d=p[f++]||"")&&(_=parseFloat(d)||0,C=d.substr((_+"").length),m.charAt(1)==="="&&(m=ee(_,m)+C),y=parseFloat(m),x=m.substr((y+"").length),u=te.lastIndex-x.length,x||(x=x||ct.units[e]||C,u===n.length&&(n+=x,s.e+=x)),C!==x&&(_=vt(t,e,d,x)||0),s._pt={_next:s._pt,p:k||f===1?k:",",s:_,c:y-_,m:g&&g<4||e==="zIndex"?Math.round:0});s.c=u<n.length?n.substring(u,n.length):""}else s.r=e==="display"&&n==="none"?Bn:En;return Mr.test(n)&&(s.e=0),this._pt=s,s},vn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},oa=function(t){var e=t.split(" "),r=e[0],n=e[1]||"50%";return(r==="top"||r==="bottom"||n==="left"||n==="right")&&(t=r,r=n,n=t),e[0]=vn[r]||r,e[1]=vn[n]||n,e.join(" ")},sa=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r=e.t,n=r.style,i=e.u,o=r._gsap,s,u,f;if(i==="all"||i===!0)n.cssText="",u=1;else for(i=i.split(","),f=i.length;--f>-1;)s=i[f],Bt[s]&&(u=1,s=s==="transformOrigin"?lt:W),Nt(r,s);u&&(Nt(r,W),o&&(o.svg&&r.removeAttribute("transform"),n.scale=n.rotate=n.translate="none",Se(r,1),o.uncache=1,Pn(n)))}},Fe={clearProps:function(t,e,r,n,i){if(i.data!=="isFromStart"){var o=t._pt=new ot(t._pt,e,r,0,0,sa);return o.u=n,o.pr=-10,o.tween=i,t._props.push(r),1}}},Ce=[1,0,0,1,0,0],Fn={},Ln=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},qn=function(t){var e=pt(t,W);return Ln(e)?Ce:e.substr(7).match(Or).map(G)},Sr=function(t,e){var r=t._gsap||qt(t),n=t.style,i=qn(t),o,s,u,f;return r.svg&&t.getAttribute("transform")?(u=t.transform.baseVal.consolidate().matrix,i=[u.a,u.b,u.c,u.d,u.e,u.f],i.join(",")==="1,0,0,1,0,0"?Ce:i):(i===Ce&&!t.offsetParent&&t!==se&&!r.svg&&(u=n.display,n.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(f=1,s=t.nextElementSibling,se.appendChild(t)),i=qn(t),u?n.display=u:Nt(t,"display"),f&&(s?o.insertBefore(t,s):o?o.appendChild(t):se.removeChild(t))),e&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},wr=function(t,e,r,n,i,o){var s=t._gsap,u=i||Sr(t,!0),f=s.xOrigin||0,c=s.yOrigin||0,h=s.xOffset||0,p=s.yOffset||0,_=u[0],g=u[1],d=u[2],m=u[3],y=u[4],k=u[5],x=e.split(" "),C=parseFloat(x[0])||0,b=parseFloat(x[1])||0,w,E,B,S;r?u!==Ce&&(E=_*m-g*d)&&(B=C*(m/E)+b*(-d/E)+(d*k-m*y)/E,S=C*(-g/E)+b*(_/E)-(_*k-g*y)/E,C=B,b=S):(w=zn(t),C=w.x+(~x[0].indexOf("%")?C/100*w.width:C),b=w.y+(~(x[1]||x[0]).indexOf("%")?b/100*w.height:b)),n||n!==!1&&s.smooth?(y=C-f,k=b-c,s.xOffset=h+(y*_+k*d)-y,s.yOffset=p+(y*g+k*m)-k):s.xOffset=s.yOffset=0,s.xOrigin=C,s.yOrigin=b,s.smooth=!!n,s.origin=e,s.originIsAbsolute=!!r,t.style[lt]="0px 0px",o&&(At(o,s,"xOrigin",f,C),At(o,s,"yOrigin",c,b),At(o,s,"xOffset",h,s.xOffset),At(o,s,"yOffset",p,s.yOffset)),t.setAttribute("data-svg-origin",C+" "+b)},Se=function(t,e){var r=t._gsap||new hn(t);if("x"in r&&!e&&!r.uncache)return r;var n=t.style,i=r.scaleX<0,o="px",s="deg",u=getComputedStyle(t),f=pt(t,lt)||"0",c,h,p,_,g,d,m,y,k,x,C,b,w,E,B,S,M,F,V,A,R,O,T,P,D,z,N,nt,j,xt,tt,mt;return c=h=p=d=m=y=k=x=C=0,_=g=1,r.svg=!!(t.getCTM&&Nn(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(n[W]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[W]!=="none"?u[W]:"")),n.scale=n.rotate=n.translate="none"),E=Sr(t,r.svg),r.svg&&(r.uncache?(D=t.getBBox(),f=r.xOrigin-D.x+"px "+(r.yOrigin-D.y)+"px",P=""):P=!e&&t.getAttribute("data-svg-origin"),wr(t,P||f,!!P||r.originIsAbsolute,r.smooth!==!1,E)),b=r.xOrigin||0,w=r.yOrigin||0,E!==Ce&&(F=E[0],V=E[1],A=E[2],R=E[3],c=O=E[4],h=T=E[5],E.length===6?(_=Math.sqrt(F*F+V*V),g=Math.sqrt(R*R+A*A),d=F||V?ce(V,F)*Yt:0,k=A||R?ce(A,R)*Yt+d:0,k&&(g*=Math.abs(Math.cos(k*le))),r.svg&&(c-=b-(b*F+w*A),h-=w-(b*V+w*R))):(mt=E[6],xt=E[7],N=E[8],nt=E[9],j=E[10],tt=E[11],c=E[12],h=E[13],p=E[14],B=ce(mt,j),m=B*Yt,B&&(S=Math.cos(-B),M=Math.sin(-B),P=O*S+N*M,D=T*S+nt*M,z=mt*S+j*M,N=O*-M+N*S,nt=T*-M+nt*S,j=mt*-M+j*S,tt=xt*-M+tt*S,O=P,T=D,mt=z),B=ce(-A,j),y=B*Yt,B&&(S=Math.cos(-B),M=Math.sin(-B),P=F*S-N*M,D=V*S-nt*M,z=A*S-j*M,tt=R*M+tt*S,F=P,V=D,A=z),B=ce(V,F),d=B*Yt,B&&(S=Math.cos(B),M=Math.sin(B),P=F*S+V*M,D=O*S+T*M,V=V*S-F*M,T=T*S-O*M,F=P,O=D),m&&Math.abs(m)+Math.abs(d)>359.9&&(m=d=0,y=180-y),_=G(Math.sqrt(F*F+V*V+A*A)),g=G(Math.sqrt(T*T+mt*mt)),B=ce(O,T),k=Math.abs(B)>2e-4?B*Yt:0,C=tt?1/(tt<0?-tt:tt):0),r.svg&&(P=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Ln(pt(t,W)),P&&t.setAttribute("transform",P))),Math.abs(k)>90&&Math.abs(k)<270&&(i?(_*=-1,k+=d<=0?180:-180,d+=d<=0?180:-180):(g*=-1,k+=k<=0?180:-180)),e=e||r.uncache,r.x=c-((r.xPercent=c&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+o,r.y=h-((r.yPercent=h&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+o,r.z=p+o,r.scaleX=G(_),r.scaleY=G(g),r.rotation=G(d)+s,r.rotationX=G(m)+s,r.rotationY=G(y)+s,r.skewX=k+s,r.skewY=x+s,r.transformPerspective=C+o,(r.zOrigin=parseFloat(f.split(" ")[2])||!e&&r.zOrigin||0)&&(n[lt]=Le(f)),r.xOffset=r.yOffset=0,r.force3D=ct.force3D,r.renderTransform=r.svg?ca:Rn?In:la,r.uncache=0,r},Le=function(t){return(t=t.split(" "))[0]+" "+t[1]},Tr=function(t,e,r){var n=J(e);return G(parseFloat(e)+parseFloat(vt(t,"x",r+"px",n)))+n},la=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,In(t,e)},Gt="0deg",we="0px",Qt=") ",In=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,o=r.x,s=r.y,u=r.z,f=r.rotation,c=r.rotationY,h=r.rotationX,p=r.skewX,_=r.skewY,g=r.scaleX,d=r.scaleY,m=r.transformPerspective,y=r.force3D,k=r.target,x=r.zOrigin,C="",b=y==="auto"&&t&&t!==1||y===!0;if(x&&(h!==Gt||c!==Gt)){var w=parseFloat(c)*le,E=Math.sin(w),B=Math.cos(w),S;w=parseFloat(h)*le,S=Math.cos(w),o=Tr(k,o,E*S*-x),s=Tr(k,s,-Math.sin(w)*-x),u=Tr(k,u,B*S*-x+x)}m!==we&&(C+="perspective("+m+Qt),(n||i)&&(C+="translate("+n+"%, "+i+"%) "),(b||o!==we||s!==we||u!==we)&&(C+=u!==we||b?"translate3d("+o+", "+s+", "+u+") ":"translate("+o+", "+s+Qt),f!==Gt&&(C+="rotate("+f+Qt),c!==Gt&&(C+="rotateY("+c+Qt),h!==Gt&&(C+="rotateX("+h+Qt),(p!==Gt||_!==Gt)&&(C+="skew("+p+", "+_+Qt),(g!==1||d!==1)&&(C+="scale("+g+", "+d+Qt),k.style[W]=C||"translate(0, 0)"},ca=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,o=r.x,s=r.y,u=r.rotation,f=r.skewX,c=r.skewY,h=r.scaleX,p=r.scaleY,_=r.target,g=r.xOrigin,d=r.yOrigin,m=r.xOffset,y=r.yOffset,k=r.forceCSS,x=parseFloat(o),C=parseFloat(s),b,w,E,B,S;u=parseFloat(u),f=parseFloat(f),c=parseFloat(c),c&&(c=parseFloat(c),f+=c,u+=c),u||f?(u*=le,f*=le,b=Math.cos(u)*h,w=Math.sin(u)*h,E=Math.sin(u-f)*-p,B=Math.cos(u-f)*p,f&&(c*=le,S=Math.tan(f-c),S=Math.sqrt(1+S*S),E*=S,B*=S,c&&(S=Math.tan(c),S=Math.sqrt(1+S*S),b*=S,w*=S)),b=G(b),w=G(w),E=G(E),B=G(B)):(b=h,B=p,w=E=0),(x&&!~(o+"").indexOf("px")||C&&!~(s+"").indexOf("px"))&&(x=vt(_,"x",o,"px"),C=vt(_,"y",s,"px")),(g||d||m||y)&&(x=G(x+g-(g*b+d*E)+m),C=G(C+d-(g*w+d*B)+y)),(n||i)&&(S=_.getBBox(),x=G(x+n/100*S.width),C=G(C+i/100*S.height)),S="matrix("+b+","+w+","+E+","+B+","+x+","+C+")",_.setAttribute("transform",S),k&&(_.style[W]=S)},ua=function(t,e,r,n,i){var o=360,s=H(i),u=parseFloat(i)*(s&&~i.indexOf("rad")?Yt:1),f=u-n,c=n+f+"deg",h,p;return s&&(h=i.split("_")[1],h==="short"&&(f%=o,f!==f%(o/2)&&(f+=f<0?o:-o)),h==="cw"&&f<0?f=(f+o*Tn)%o-~~(f/o)*o:h==="ccw"&&f>0&&(f=(f-o*Tn)%o-~~(f/o)*o)),t._pt=p=new ot(t._pt,e,r,n,f,Yi),p.e=c,p.u="deg",t._props.push(r),p},$n=function(t,e){for(var r in e)t[r]=e[r];return t},fa=function(t,e,r){var n=$n({},r._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=r.style,s,u,f,c,h,p,_,g;n.svg?(f=r.getAttribute("transform"),r.setAttribute("transform",""),o[W]=e,s=Se(r,1),Nt(r,W),r.setAttribute("transform",f)):(f=getComputedStyle(r)[W],o[W]=e,s=Se(r,1),o[W]=f);for(u in Bt)f=n[u],c=s[u],f!==c&&i.indexOf(u)<0&&(_=J(f),g=J(c),h=_!==g?vt(r,u,f,g):parseFloat(f),p=parseFloat(c),t._pt=new ot(t._pt,s,u,h,p-h,xr),t._pt.u=g||0,t._props.push(u));$n(s,n)};at("padding,margin,Width,Radius",function(l,t){var e="Top",r="Right",n="Bottom",i="Left",o=(t<3?[e,r,n,i]:[e+i,e+r,n+r,n+i]).map(function(s){return t<2?l+s:"border"+s+l});Fe[t>1?"border"+l:l]=function(s,u,f,c,h){var p,_;if(arguments.length<4)return p=o.map(function(g){return Pt(s,g,f)}),_=p.join(" "),_.split(p[0]).length===5?p[0]:_;p=(c+"").split(" "),_={},o.forEach(function(g,d){return _[g]=p[d]=p[d]||p[(d-1)/2|0]}),s.init(u,_,h)}});var Xn={name:"css",register:Cr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var o=this._props,s=t.style,u=r.vars.startAt,f,c,h,p,_,g,d,m,y,k,x,C,b,w,E,B,S;gr||Cr(),this.styles=this.styles||Dn(t),B=this.styles.props,this.tween=r;for(d in e)if(d!=="autoRound"&&(c=e[d],!(ft[d]&&_n(d,e,r,n,t,i)))){if(_=typeof c,g=Fe[d],_==="function"&&(c=c.call(r,n,t,i),_=typeof c),_==="string"&&~c.indexOf("random(")&&(c=me(c)),g)g(this,t,d,c,r)&&(E=1);else if(d.substr(0,2)==="--")f=(getComputedStyle(t).getPropertyValue(d)+"").trim(),c+="",Mt.lastIndex=0,Mt.test(f)||(m=J(f),y=J(c),y?m!==y&&(f=vt(t,d,f,y)+y):m&&(c+=m)),this.add(s,"setProperty",f,c,n,i,0,0,d),o.push(d),B.push(d,0,s[d]);else if(_!=="undefined"){if(u&&d in u?(f=typeof u[d]=="function"?u[d].call(r,n,t,i):u[d],H(f)&&~f.indexOf("random(")&&(f=me(f)),J(f+"")||f==="auto"||(f+=ct.units[d]||J(Pt(t,d))||""),(f+"").charAt(1)==="="&&(f=Pt(t,d))):f=Pt(t,d),p=parseFloat(f),k=_==="string"&&c.charAt(1)==="="&&c.substr(0,2),k&&(c=c.substr(2)),h=parseFloat(c),d in wt&&(d==="autoAlpha"&&(p===1&&Pt(t,"visibility")==="hidden"&&h&&(p=0),B.push("visibility",0,s.visibility),At(this,s,"visibility",p?"inherit":"hidden",h?"inherit":"hidden",!h)),d!=="scale"&&d!=="transform"&&(d=wt[d],~d.indexOf(",")&&(d=d.split(",")[0]))),x=d in Bt,x){if(this.styles.save(d),S=c,_==="string"&&c.substring(0,6)==="var(--"){if(c=pt(t,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var M=t.style.perspective;t.style.perspective=c,c=pt(t,"perspective"),M?t.style.perspective=M:Nt(t,"perspective")}h=parseFloat(c)}if(C||(b=t._gsap,b.renderTransform&&!e.parseTransform||Se(t,e.parseTransform),w=e.smoothOrigin!==!1&&b.smooth,C=this._pt=new ot(this._pt,s,W,0,1,b.renderTransform,b,0,-1),C.dep=1),d==="scale")this._pt=new ot(this._pt,b,"scaleY",b.scaleY,(k?ee(b.scaleY,k+h):h)-b.scaleY||0,xr),this._pt.u=0,o.push("scaleY",d),d+="X";else if(d==="transformOrigin"){B.push(lt,0,s[lt]),c=oa(c),b.svg?wr(t,c,0,w,0,this):(y=parseFloat(c.split(" ")[2])||0,y!==b.zOrigin&&At(this,b,"zOrigin",b.zOrigin,y),At(this,s,d,Le(f),Le(c)));continue}else if(d==="svgOrigin"){wr(t,c,1,w,0,this);continue}else if(d in Fn){ua(this,b,d,p,k?ee(p,k+c):c);continue}else if(d==="smoothOrigin"){At(this,b,"smooth",b.smooth,c);continue}else if(d==="force3D"){b[d]=c;continue}else if(d==="transform"){fa(this,c,t);continue}}else d in s||(d=ue(d)||d);if(x||(h||h===0)&&(p||p===0)&&!Wi.test(c)&&d in s)m=(f+"").substr((p+"").length),h||(h=0),y=J(c)||(d in ct.units?ct.units[d]:m),m!==y&&(p=vt(t,d,f,y)),this._pt=new ot(this._pt,x?b:s,d,p,(k?ee(p,k+h):h)-p,!x&&(y==="px"||d==="zIndex")&&e.autoRound!==!1?Hi:xr),this._pt.u=y||0,x&&S!==c?(this._pt.b=f,this._pt.e=S,this._pt.r=Qi):m!==y&&y!=="%"&&(this._pt.b=f,this._pt.r=Gi);else if(d in s)aa.call(this,t,d,f,k?k+c:c);else if(d in t)this.add(t,d,f||t[d],k?k+c:c,n,i);else if(d!=="parseTransform"){Ge(d,c);continue}x||(d in s?B.push(d,0,s[d]):typeof t[d]=="function"?B.push(d,2,t[d]()):B.push(d,1,f||t[d])),o.push(d)}}E&&xn(this)},render:function(t,e){if(e.tween._time||!yr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Pt,aliases:wt,getSetter:function(t,e,r){var n=wt[e];return n&&n.indexOf(",")<0&&(e=n),e in Bt&&e!==lt&&(t._gsap.x||Pt(t,"x"))?r&&wn===r?e==="scale"?ji:Ji:(wn=r||{})&&(e==="scale"?ta:ea):t.style&&!$e(t.style[e])?Zi:~e.indexOf("-")?Ki:dr(t,e)},core:{_removeProperty:Nt,_getMatrix:Sr}};st.utils.checkPrefix=ue,st.core.getStyleSaver=Dn,function(l,t,e,r){var n=at(l+","+t+","+e,function(i){Bt[i]=1});at(t,function(i){ct.units[i]="deg",Fn[i]=1}),wt[n[13]]=l+","+t,at(r,function(i){var o=i.split(":");wt[o[1]]=n[o[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),at("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(l){ct.units[l]="px"}),st.registerPlugin(Xn);var Un=st.registerPlugin(Xn)||st;Un.core.Tween;const Ft=(l,t)=>{const e=l.__vccOpts||l;for(const[r,n]of t)e[r]=n;return e},da={class:"anim-item"},ha={class:"anim-item"},_a={class:"anim-item"},Lt=Ft({__name:"CardBase",props:{tema:{type:String,default:"Light",validator:l=>["Light","Dark","Transparent"].includes(l)},corFundo:{type:String},legenda:{type:String},sublegenda:{type:String},tituloVisivel:{type:Boolean,default:!0},titulo:{type:String,default:""},descricao:{type:String,default:""},botaoVisivel:{type:Boolean,default:!1},textoBotao:{type:String,default:"Ver Todos"},direcao:{type:String,default:"vertical",validator:l=>["vertical","horizontal"].includes(l)},carregamento:{type:Boolean,default:!1},minHeight:{type:String,default:"0px"}},emits:["botao-click","anim-complete"],setup(l,{emit:t}){const e=l,r=t,n=a.useSlots();function i(){r("botao-click")}function o(){e.botaoVisivel&&!n["slot-content"]&&i()}const s=a.computed(()=>e.botaoVisivel&&!n["slot-content"]),u=a.ref(null);a.onMounted(()=>{Un.timeline({defaults:{ease:"power3.out"}}).from(u.value,{duration:.4,opacity:0,y:16,clearProps:"all"}).from(u.value.querySelectorAll(".anim-item"),{duration:.35,opacity:0,y:8,stagger:.07,clearProps:"all"},"-=0.15").call(()=>r("anim-complete"))});function f(){const c={};return e.corFundo&&(c.backgroundColor=e.corFundo),s.value&&e.corFundo&&(c["--hover-brightness"]="0.93"),c}return(c,h)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"cardRef",ref:u,class:a.normalizeClass(["card-root border-1 surface-border border-round-lg select-none",[e.direcao!=="vertical"?"p-3":"",s.value?`cursor-pointer ${e.corFundo?"":e.tema==="Dark"?"hover:bg-black-alpha-90":"hover:bg-gray-50"}`:"",e.corFundo?"":e.tema==="Dark"?"bg-black text-white":e.tema==="Transparent"?"bg-transparent":"bg-white"]]),style:a.normalizeStyle(f()),onClick:o},[a.createElementVNode("div",{class:a.normalizeClass(["flex flex-column justify-content-between md:flex-row gap-3",e.direcao==="vertical"?"p-3 pb-0":""])},[a.createElementVNode("div",da,[a.createElementVNode("p",{class:a.normalizeClass(["text-xs font-medium m-0",e.tema==="Dark"?"text-white":""])},a.toDisplayString(e.legenda),3),e.legenda?a.createCommentVNode("",!0):a.renderSlot(c.$slots,"slot-legenda",{key:0},void 0,!0),a.createElementVNode("p",{class:a.normalizeClass(["text-xs font-light m-0",e.tema==="Dark"?"text-gray-400":"text-gray-500"])},a.toDisplayString(e.sublegenda),3),e.sublegenda?a.createCommentVNode("",!0):a.renderSlot(c.$slots,"slot-sublegenda",{key:1},void 0,!0)]),a.createElementVNode("div",ha,[a.renderSlot(c.$slots,"slot-actions",{},void 0,!0)])],2),a.createElementVNode("div",{class:a.normalizeClass(e.direcao==="horizontal"?"mt-3 flex flex-row gap-3 justify-content-between align-items-center":"mt-3 flex flex-column gap-3")},[e.tituloVisivel?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["flex flex-column gap-3",e.direcao==="vertical"?"px-3":""]),style:a.normalizeStyle([e.direcao==="vertical"?"":"min-width: 150px;"])},[a.createElementVNode("div",_a,[a.createElementVNode("p",{class:a.normalizeClass(["m-0 text-3xl font-medium",e.tema==="Dark"?"text-white":""]),style:{"line-break":"anywhere"}},a.toDisplayString(e.titulo),3),a.createElementVNode("p",{class:a.normalizeClass(["m-0 text-sm",e.tema==="Dark"?"text-gray-400":"text-gray-500"])},a.toDisplayString(e.descricao),3)]),e.botaoVisivel?(a.openBlock(),a.createElementBlock("p",{key:0,class:a.normalizeClass(["anim-item m-0 text-xs cursor-pointer font-medium w-max",e.tema=="Dark"?"text-white hover:text-gray-200":"hover:text-gray-800"]),onClick:a.withModifiers(i,["stop"])},a.toDisplayString(e.textoBotao),3)):a.createCommentVNode("",!0)],6)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(e.direcao==="vertical"?"slot-content-fill":"w-full anim-item max-w-full flex align-items-center"),style:a.normalizeStyle({minHeight:e.minHeight})},[a.renderSlot(c.$slots,"slot-content",{},void 0,!0)],6)],2)],6))}},[["__scopeId","data-v-d7afbfb4"]]);function pa(l,t=7){const e=l.replace("#","");let r=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16);r/=255,n/=255,i/=255;const o=Math.max(r,n,i),s=Math.min(r,n,i);let u,f,c=(o+s)/2;if(o===s)u=f=0;else{const d=o-s;switch(f=c>.5?d/(2-o-s):d/(o+s),o){case r:u=((n-i)/d+(n<i?6:0))/6;break;case n:u=((i-r)/d+2)/6;break;case i:u=((r-n)/d+4)/6;break}}const h=Math.max(.2,c-.3),p=Math.min(.92,c+.35),_=t>1?(p-h)/(t-1):0;function g(d,m,y){const k=m*Math.min(y,1-y),x=C=>{const b=(C+d*12)%12,w=y-k*Math.max(-1,Math.min(b-3,9-b,1));return Math.round(255*w).toString(16).padStart(2,"0")};return`#${x(0)}${x(8)}${x(4)}`}return Array.from({length:t},(d,m)=>g(u,f,h+_*m))}function Te(l,t){return{cores:a.computed(()=>pa(l.value,t.value))}}function Ht(l){const t=a.computed(()=>l.value==="Dark"),e=a.computed(()=>({"--tt-bg":t.value?"rgba(15,15,20,0.92)":"rgba(255,255,255,0.95)","--tt-border":t.value?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)","--tt-label":t.value?"#9ca3af":"#6b7280","--tt-shadow":t.value?"0 4px 20px rgba(0,0,0,0.4)":"0 4px 20px rgba(0,0,0,0.12)"})),r=a.computed(()=>({bg:t.value?"#1f2937":"#ffffff",border:t.value?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)",titleColor:t.value?"#f9fafb":"#111827",bodyColor:t.value?"#d1d5db":"#374151"}));return{isDark:t,tooltipCssVars:e,chartTooltipColors:r}}function Wn(l,t){let e=null;a.onMounted(()=>{l.value&&(e=new ResizeObserver(([r])=>t(r)),e.observe(l.value))}),a.onBeforeUnmount(()=>{e&&e.disconnect()})}function Zt(l,t=320){const e=a.ref(!1);return Wn(l,r=>{e.value=r.contentRect.width<t}),{estreito:e}}function Er(l,t,e={threshold:.1}){let r=null;a.onMounted(()=>{l.value&&(r=new IntersectionObserver(([n])=>{n.isIntersecting&&(t(),r.disconnect())},e),r.observe(l.value))}),a.onBeforeUnmount(()=>{r&&r.disconnect()})}function Yn(l,t){const e=a.ref({visible:!1,x:0,y:0,label:"",value:"",acima:!0,translateX:"-50%"});function r(o){a.nextTick(()=>{if(!t.value||!l.value)return;const s=t.value.offsetWidth,u=l.value.offsetWidth,f=s/2;let c=-f;o-f<0?c=-o:o+f>u&&(c=u-o-s),e.value.translateX=c+"px"})}function n({x:o,y:s,label:u,value:f,acima:c=!0}){e.value={visible:!0,x:o,y:s,label:u,value:f,acima:c,translateX:"-50%"},r(o)}function i(){e.value.visible=!1}return{tooltip:e,mostrar:n,esconder:i}}const Kt={tema:{type:String,default:"Light",validator:l=>["Light","Dark","Transparent"].includes(l)},corFundo:{type:String},legenda:{type:String},sublegenda:{type:String},tituloVisivel:{type:Boolean,default:!0},titulo:{type:String,default:""},descricao:{type:String,default:""},botaoVisivel:{type:Boolean,default:!1},textoBotao:{type:String,default:"Ver Todos"},direcao:{type:String,default:"vertical",validator:l=>["vertical","horizontal"].includes(l)},carregamento:{type:Boolean,default:!1}};function Jt(l){return a.computed(()=>({tema:l.tema,corFundo:l.corFundo,legenda:l.legenda,sublegenda:l.sublegenda,tituloVisivel:l.tituloVisivel,titulo:l.titulo,descricao:l.descricao,botaoVisivel:l.botaoVisivel,textoBotao:l.textoBotao,direcao:l.direcao,carregamento:l.carregamento}))}const ma={class:"nc-barra-tt-label"},ga={class:"nc-barra-tt-label"},ya={class:"nc-barra-tt-line-label"},ba={class:"nc-barra-tt-line-value"},xa={key:0,class:"flex flex-column gap-2 w-full"},ka=["onMouseenter","onMousemove"],Ca={key:1,class:"flex flex-column gap-2 w-full"},Sa=["onMouseenter","onMousemove"],wa={class:"nc-barra-track-dual"},Ta={__name:"CardBarra",props:{...Kt,dados:{type:Array,default:()=>[{rotulo:"Categoria A",quantidade:80},{rotulo:"Categoria B",quantidade:65},{rotulo:"Categoria C",quantidade:50},{rotulo:"Categoria D",quantidade:35},{rotulo:"Categoria E",quantidade:20}]},corPaleta:{type:String,default:"#1D4ED8"},moeda:{type:Boolean,default:!1},modo:{type:String,default:"simples",validator:l=>["simples","dual"].includes(l)},segmentos:{type:Array,default:()=>[{key:"total_previsto",label:"Previsto"},{key:"total_recebido",label:"Recebido"}]},segmentoTooltip:{type:Object,default:null}},emits:["botao-click"],setup(l,{emit:t}){const e=l,{isDark:r,tooltipCssVars:n}=Ht(a.computed(()=>e.tema)),{cores:i}=Te(a.computed(()=>e.corPaleta),a.computed(()=>e.dados.length)),o=a.computed(()=>r.value?"#252525":"#E9E9E9"),s=a.ref(null),u=a.ref(null),f=a.ref(null),c=a.ref(null),{estreito:h}=Zt(f),p=Jt(e),_=a.computed(()=>({...p.value,direcao:h.value?"vertical":e.direcao}));function g(R){return e.moeda?Number(R).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):`${R}`}const d=a.ref(null),{tooltip:m,esconder:y}=Yn(s,c);function k(){a.nextTick(()=>{if(!c.value||!s.value)return;const R=c.value.offsetWidth,O=s.value.offsetWidth,T=m.value.x,P=R/2;let D=-P;T-P<0?D=-T:T+P>O&&(D=O-T-R),m.value.translateX=D+"px"})}function x(R,O){const T=e.dados[R],P=s.value.getBoundingClientRect(),D=O.currentTarget.getBoundingClientRect(),z=O.currentTarget.querySelector(".nc-barra-bar"),N=z?z.getBoundingClientRect():D,nt=N.left-P.left+N.width/2,j=D.top-P.top;m.value={visible:!0,x:nt,y:j,label:T.rotulo,value:g(T.quantidade),lines:null,acima:!0,translateX:"-50%"},k()}function C(R,O){const T=e.dados[R],P=s.value.getBoundingClientRect(),D=O.currentTarget.getBoundingClientRect(),z=O.currentTarget.querySelector(".nc-barra-track-dual"),N=z?z.getBoundingClientRect():D,nt=z?z.querySelector(".nc-barra-seg"):null,j=nt?nt.getBoundingClientRect():N,xt=j.left-P.left+j.width/2,tt=D.top-P.top,mt=e.segmentos.map(Gn=>({label:Gn.label,valor:g(Number(T[Gn.key])||0),cor:o.value}));mt.length>0&&(mt[mt.length-1].cor=i.value[R]??e.corPaleta),e.segmentoTooltip&&mt.push({label:e.segmentoTooltip.label,valor:g(Number(T[e.segmentoTooltip.key])||0),cor:r.value?"#666":"#bbb"}),m.value={visible:!0,x:xt,y:tt,label:T.rotulo,value:null,lines:mt,acima:!0,translateX:"-50%"},k()}function b(R,O){d.value=R,e.modo==="dual"?C(R,O):x(R,O)}function w(R,O){e.modo==="dual"?C(R,O):x(R,O)}function E(){d.value=null,y()}const B=a.computed(()=>Math.max(1,...e.dados.map(R=>{var O;return Number(R[(O=e.segmentos[0])==null?void 0:O.key])||0})));function S(R){return e.segmentos.map((O,T)=>({key:O.key,valor:Number(R[O.key])||0,cor:T===e.segmentos.length-1?i.value[e.dados.indexOf(R)]??e.corPaleta:o.value}))}const M=a.computed(()=>Math.max(...e.dados.map(R=>R.quantidade),1)),F=a.ref([]);function V(){F.value=e.dados.map(R=>R.quantidade/M.value*100)}function A(){F.value=e.dados.map(()=>0),a.nextTick(()=>{setTimeout(()=>V(),30)})}return V(),Er(u,A),a.watch(()=>e.dados,()=>{A()},{deep:!0}),a.watch(()=>e.corPaleta,()=>{V()}),(R,O)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"rootRef",ref:f},[a.createVNode(Lt,a.mergeProps(_.value,{onBotaoClick:O[0]||(O[0]=T=>R.$emit("botao-click"))}),{"slot-content":a.withCtx(()=>[a.createElementVNode("div",{ref_key:"wrapperRef",ref:u,class:a.normalizeClass(["px-3 py-4 nc-barra-wrapper",_.value.direcao==="horizontal"?"nc-barra-horizontal":"nc-barra-vertical"]),style:a.normalizeStyle({...a.unref(n)})},[a.createElementVNode("div",{ref_key:"chartRef",ref:s,class:"nc-barra-chart-container"},[a.createVNode(a.Transition,{name:"nc-barra-tt"},{default:a.withCtx(()=>[a.unref(m).visible?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:c,class:a.normalizeClass(["nc-barra-tooltip",a.unref(m).acima?"nc-barra-tt--acima":"nc-barra-tt--abaixo"]),style:a.normalizeStyle({left:a.unref(m).x+"px",top:a.unref(m).y+"px","--tx":a.unref(m).translateX})},[a.unref(m).lines?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("span",ga,a.toDisplayString(a.unref(m).label),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(m).lines,T=>(a.openBlock(),a.createElementBlock("div",{key:T.label,class:"nc-barra-tt-line"},[a.createElementVNode("span",{class:"nc-barra-tt-dot",style:a.normalizeStyle({backgroundColor:T.cor})},null,4),a.createElementVNode("span",ya,a.toDisplayString(T.label)+":",1),a.createElementVNode("span",ba,a.toDisplayString(T.valor),1)]))),128))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("span",ma,a.toDisplayString(a.unref(m).label),1),a.createElementVNode("span",{class:"nc-barra-tt-value",style:a.normalizeStyle({color:e.corPaleta})},a.toDisplayString(a.unref(m).value),5)],64))],6)):a.createCommentVNode("",!0)]),_:1}),e.modo==="simples"?(a.openBlock(),a.createElementBlock("div",xa,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.dados,(T,P)=>(a.openBlock(),a.createElementBlock("div",{key:P,class:"nc-barra-row",onMouseenter:D=>b(P,D),onMousemove:D=>w(P,D),onMouseleave:E},[a.createElementVNode("span",{class:"nc-barra-rotulo",style:a.normalizeStyle({color:a.unref(r)?"#9ca3af":"#6b7280"})},a.toDisplayString(T.rotulo),5),a.createElementVNode("div",{class:"nc-barra-track",style:a.normalizeStyle({backgroundColor:o.value})},[a.createElementVNode("div",{class:"nc-barra-bar",style:a.normalizeStyle({width:(F.value[P]??0)+"%",backgroundColor:a.unref(i)[P],opacity:d.value===null||d.value===P?1:.4})},null,4)],4)],40,ka))),128))])):(a.openBlock(),a.createElementBlock("div",Ca,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.dados,(T,P)=>(a.openBlock(),a.createElementBlock("div",{key:P,class:"nc-barra-row",onMouseenter:D=>b(P,D),onMousemove:D=>w(P,D),onMouseleave:E},[a.createElementVNode("span",{class:"nc-barra-rotulo",style:a.normalizeStyle({color:a.unref(r)?"#9ca3af":"#6b7280"})},a.toDisplayString(T.rotulo),5),a.createElementVNode("div",wa,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S(T),D=>(a.openBlock(),a.createElementBlock("div",{key:D.key,class:"nc-barra-seg",style:a.normalizeStyle({width:D.valor/B.value*100+"%",backgroundColor:D.cor})},null,4))),128))])],40,Sa))),128))]))],512)],6)]),_:1},16)],512))}},Ea=Ft(Ta,[["__scopeId","data-v-039f1af9"]]),Ba={class:"nc-barra-tt-label"},Pa={class:"nc-barra-tt-label"},Da={class:"nc-barra-tt-line-label"},Ra={class:"nc-barra-tt-line-value"},Oa=["onMouseenter","onMousemove"],Ma=["onMouseenter","onMousemove"],Va={class:"flex gap-1 w-full mt-1"},za={__name:"CardColuna",props:{...Kt,dados:{type:Array,default:()=>[{rotulo:"Jan",quantidade:40},{rotulo:"Fev",quantidade:65},{rotulo:"Mar",quantidade:30},{rotulo:"Abr",quantidade:80},{rotulo:"Mai",quantidade:55},{rotulo:"Jun",quantidade:70}]},corPaleta:{type:String,default:"#1D4ED8"},moeda:{type:Boolean,default:!1},modo:{type:String,default:"simples",validator:l=>["simples","dual"].includes(l)},segmentos:{type:Array,default:()=>[{key:"total_previsto",label:"Previsto"},{key:"total_recebido",label:"Recebido"}]},segmentoTooltip:{type:Object,default:null}},emits:["botao-click"],setup(l,{emit:t}){const e=l,{isDark:r,tooltipCssVars:n}=Ht(a.computed(()=>e.tema)),{cores:i}=Te(a.computed(()=>e.corPaleta),a.computed(()=>e.dados.length)),o=a.computed(()=>r.value?"#252525":"#E9E9E9"),s=a.ref(null),u=a.ref(null),f=a.ref(null),c=a.ref(120),h=a.ref(null),{estreito:p}=Zt(f),_=Jt(e),g=a.computed(()=>({..._.value,direcao:p.value?"vertical":e.direcao}));Wn(s,T=>{c.value=T.contentRect.height||120});const d=a.computed(()=>Math.max(...e.dados.map(T=>T.quantidade),1)),m=a.ref(null),{tooltip:y,esconder:k}=Yn(s,h);function x(T){return e.moeda?Number(T).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):`${T}`}function C(){a.nextTick(()=>{if(!h.value||!s.value)return;const T=h.value.offsetWidth,P=s.value.offsetWidth,D=y.value.x,z=T/2;let N=-z;D-z<0?N=-D:D+z>P&&(N=P-D-T),y.value.translateX=N+"px"})}function b(T,P){const D=e.dados[T],z=s.value.getBoundingClientRect(),N=P.currentTarget.getBoundingClientRect(),nt=P.currentTarget.querySelector(".nc-barra-bar"),j=nt?nt.getBoundingClientRect():N,xt=N.left-z.left+N.width/2,tt=j.top-z.top;y.value={visible:!0,x:xt,y:tt,label:D.rotulo,value:x(D.quantidade),lines:null,acima:!0,translateX:"-50%"},C()}function w(T,P){const D=e.dados[T],z=s.value.getBoundingClientRect(),N=P.currentTarget.getBoundingClientRect(),nt=N.left-z.left+N.width/2,j=N.top-z.top,xt=e.segmentos.map(tt=>({label:tt.label,valor:x(Number(D[tt.key])||0),cor:o.value}));xt.length>0&&(xt[xt.length-1].cor=i.value[T]??e.corPaleta),e.segmentoTooltip&&xt.push({label:e.segmentoTooltip.label,valor:x(Number(D[e.segmentoTooltip.key])||0),cor:r.value?"#666":"#bbb"}),y.value={visible:!0,x:nt,y:j,label:D.rotulo,value:null,lines:xt,acima:!0,translateX:"-50%"},C()}function E(T,P){m.value=T,e.modo==="dual"?w(T,P):b(T,P)}function B(T,P){e.modo==="dual"?w(T,P):b(T,P)}function S(){m.value=null,k()}const M=a.computed(()=>Math.max(1,...e.dados.map(T=>{var P;return Number(T[(P=e.segmentos[0])==null?void 0:P.key])||0})));function F(T){return e.segmentos.map((P,D)=>({key:P.key,valor:Number(T[P.key])||0,cor:D===e.segmentos.length-1?i.value[e.dados.indexOf(T)]??e.corPaleta:o.value}))}const V=a.ref(!1),A=a.ref([]);function R(){A.value=e.dados.map(T=>T.quantidade/d.value*100)}function O(){A.value=e.dados.map(()=>0),a.nextTick(()=>{V.value=!0,setTimeout(()=>R(),30)})}return R(),Er(u,O),a.watch(()=>e.dados,()=>{O()},{deep:!0}),a.watch(()=>e.corPaleta,()=>{R()}),(T,P)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"rootRef",ref:f},[a.createVNode(Lt,a.mergeProps(g.value,{onBotaoClick:P[0]||(P[0]=D=>T.$emit("botao-click"))}),{"slot-content":a.withCtx(()=>[a.createElementVNode("div",{ref_key:"wrapperRef",ref:u,class:"px-3 py-4 nc-coluna-wrapper",style:a.normalizeStyle(a.unref(n))},[a.createElementVNode("div",{ref_key:"chartRef",ref:s,class:"nc-barra-chart-container"},[a.createVNode(a.Transition,{name:"nc-barra-tt"},{default:a.withCtx(()=>[a.unref(y).visible?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:h,class:a.normalizeClass(["nc-barra-tooltip","nc-barra-tt--acima"]),style:a.normalizeStyle({left:a.unref(y).x+"px",top:a.unref(y).y+"px","--tx":a.unref(y).translateX})},[a.unref(y).lines?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("span",Pa,a.toDisplayString(a.unref(y).label),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(y).lines,D=>(a.openBlock(),a.createElementBlock("div",{key:D.label,class:"nc-barra-tt-line"},[a.createElementVNode("span",{class:"nc-barra-tt-dot",style:a.normalizeStyle({backgroundColor:D.cor})},null,4),a.createElementVNode("span",Da,a.toDisplayString(D.label)+":",1),a.createElementVNode("span",Ra,a.toDisplayString(D.valor),1)]))),128))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("span",Ba,a.toDisplayString(a.unref(y).label),1),a.createElementVNode("span",{class:"nc-barra-tt-value",style:a.normalizeStyle({color:l.corPaleta})},a.toDisplayString(a.unref(y).value),5)],64))],4)):a.createCommentVNode("",!0)]),_:1}),l.modo==="simples"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"flex align-items-end gap-1 w-full",style:a.normalizeStyle({height:c.value-20+"px"})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.dados,(D,z)=>(a.openBlock(),a.createElementBlock("div",{key:z,class:"flex-1 nc-barra-col",onMouseenter:N=>E(z,N),onMousemove:N=>B(z,N),onMouseleave:S},[a.createElementVNode("div",{class:"nc-barra-bar",style:a.normalizeStyle({height:(A.value[z]??0)+"%",backgroundColor:m.value===z?a.unref(i)[z]:o.value})},null,4)],40,Oa))),128))],4)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"flex align-items-end gap-1 w-full",style:a.normalizeStyle({height:c.value-20+"px"})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.dados,(D,z)=>(a.openBlock(),a.createElementBlock("div",{key:z,class:"flex-1 nc-barra-col-dual",onMouseenter:N=>E(z,N),onMousemove:N=>B(z,N),onMouseleave:S},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F(D),N=>(a.openBlock(),a.createElementBlock("div",{key:N.key,class:"nc-barra-seg",style:a.normalizeStyle({height:N.valor/M.value*(c.value-20)+"px",backgroundColor:N.cor})},null,4))),128))],40,Ma))),128))],4)),a.createElementVNode("div",Va,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.dados,(D,z)=>(a.openBlock(),a.createElementBlock("div",{key:z,class:"flex-1 text-center nc-barra-rotulo",style:a.normalizeStyle({color:a.unref(r)?"#888":"#aaa"})},a.toDisplayString(D.rotulo),5))),128))])],512)],4)]),_:1},16)],512))}},Na=Ft(za,[["__scopeId","data-v-b5e11a34"]]),Aa={class:"nc-tooltip-label"},va={key:1,style:{position:"absolute",bottom:"8px",left:"0",right:"0",display:"flex","justify-content":"space-between",padding:"0 4px","pointer-events":"none"}},Fa={__name:"CardLinhas",props:{...Kt,corDetalhe:{type:String},dados:{type:Array,default:()=>[{rotulo:"Jan",quantidade:30},{rotulo:"Fev",quantidade:55},{rotulo:"Mar",quantidade:40},{rotulo:"Abr",quantidade:70},{rotulo:"Mai",quantidade:50},{rotulo:"Jun",quantidade:90}]},legendaGraficoVisivel:{type:Boolean,default:!1},moeda:{type:Boolean,default:!1},opcoes:{type:Object,default:()=>({})},minHeight:{type:String,default:"250px"}},setup(l){L.Chart.register(L.LineController,L.LineElement,L.PointElement,L.LinearScale,L.CategoryScale,L.Tooltip,L.Legend,L.Filler);const t=l,{tooltipCssVars:e}=Ht(a.computed(()=>t.tema)),r=Jt(t),n=a.ref(null),i=a.ref(null),o=a.ref(null),{estreito:s}=Zt(o,480),u=a.computed(()=>s.value?"vertical":t.direcao),f=a.ref(!1);let c=null;const h=a.ref({visible:!1,x:0,y:0,label:"",value:"",acima:!0,translateX:"-50%"}),p=a.ref(0),_=a.ref(null);function g(x,C){const b=t.corDetalhe||"#0400FF",w=x.createLinearGradient(0,C.top,0,C.bottom);return w.addColorStop(.16,b+"33"),w.addColorStop(1,"#7C7C7C00"),w}const d=a.computed(()=>({labels:t.dados.map(x=>x.rotulo),datasets:[{label:t.titulo||"Série 1",data:t.dados.map(x=>x.quantidade),borderColor:t.corDetalhe||"#1D4ED8",backgroundColor:x=>{const C=x.chart,{ctx:b,chartArea:w}=C;return w?g(b,w):"transparent"},fill:!0,tension:.4}]})),m=a.computed(()=>({responsive:!0,maintainAspectRatio:!1,clip:!1,layout:{padding:0},plugins:{legend:{display:!1},tooltip:{enabled:!1,external({chart:x,tooltip:C}){var O,T;if(C.opacity===0){h.value.visible=!1;return}const b=(O=C.dataPoints)==null?void 0:O[0];if(!b)return;const w=b.raw,E=t.moeda?Number(w).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):b.formattedValue,B=x.canvas.getBoundingClientRect(),S=(T=i.value)==null?void 0:T.getBoundingClientRect();if(!S)return;const M=B.left+b.element.x,F=B.top+b.element.y,V=M-S.left,A=F-S.top,R=A>56;p.value=V,h.value={visible:!0,x:V,y:A,label:b.label,value:E,acima:R,translateX:"-50%"},a.nextTick(()=>{if(!_.value||!i.value)return;const P=_.value.offsetWidth,D=i.value.offsetWidth,z=P/2;let N=-z;V-z<0?N=-V:V+z>D&&(N=D-V-P),h.value.translateX=N+"px"})}}},scales:{x:{display:!1},y:{beginAtZero:!0,display:!1}},animation:{duration:600,easing:"easeInOutQuart"}}));function y(){n.value&&(c&&c.destroy(),c=new L.Chart(n.value,{type:"line",data:d.value,options:{...m.value,...t.opcoes}}))}function k(){if(!c){y();return}const x=d.value;c.data.labels=x.labels,c.data.datasets[0].data=x.datasets[0].data,c.data.datasets[0].borderColor=x.datasets[0].borderColor,c.update("active")}return Er(i,()=>{f.value=!0,y()}),a.onBeforeUnmount(()=>{c&&(c.destroy(),c=null)}),a.watch(()=>t.dados,()=>k(),{deep:!0}),a.watch(()=>t.legendaGraficoVisivel,()=>y()),(x,C)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"containerRef",ref:o,style:{width:"100%"}},[a.createVNode(Lt,a.mergeProps(a.unref(r),{direcao:u.value,minHeight:l.minHeight}),{"slot-content":a.withCtx(()=>[a.createElementVNode("div",{ref_key:"wrapperRef",ref:i,class:a.normalizeClass(["nc-chart-wrapper",{"nc-chart-visible":f.value}]),style:a.normalizeStyle({position:u.value==="horizontal"?"relative":"absolute",inset:u.value==="horizontal"?"unset":"0px -5px 0px -5px",width:u.value==="horizontal"?"100%":void 0,height:u.value==="horizontal"?"160px":void 0,...a.unref(e)})},[a.createElementVNode("canvas",{ref_key:"canvasRef",ref:n,style:{width:"100%",height:"100%"}},null,512),h.value.visible?(a.openBlock(),a.createElementBlock("div",{key:0,class:"nc-tooltip-line",style:a.normalizeStyle({left:p.value+"px"})},null,4)):a.createCommentVNode("",!0),a.createVNode(a.Transition,{name:"nc-tooltip"},{default:a.withCtx(()=>[h.value.visible?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:_,class:a.normalizeClass(["nc-tooltip",h.value.acima?"nc-tooltip--acima":"nc-tooltip--abaixo"]),style:a.normalizeStyle({left:h.value.x+"px",top:h.value.y+"px","--tx":h.value.translateX})},[a.createElementVNode("span",Aa,a.toDisplayString(h.value.label),1),a.createElementVNode("span",{class:"nc-tooltip-value",style:a.normalizeStyle({color:l.corDetalhe||"#1D4ED8"})},a.toDisplayString(h.value.value),5)],6)):a.createCommentVNode("",!0)]),_:1}),l.legendaGraficoVisivel?(a.openBlock(),a.createElementBlock("div",va,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.dados,b=>(a.openBlock(),a.createElementBlock("span",{key:b.rotulo,style:{"font-size":"10px",color:"#9ca3af"}},a.toDisplayString(b.rotulo),1))),128))])):a.createCommentVNode("",!0)],6)]),_:1},16,["direcao","minHeight"])],512))}},La=Ft(Fa,[["__scopeId","data-v-894401e8"]]),qa={class:"nc-polar-chart"},Ia={key:0,class:"flex flex-column gap-2 w-full"},$a={class:"flex align-items-center gap-2"},Xa={__name:"CardPolar",props:{...Kt,dados:{type:Array,default:()=>[{rotulo:"Vendas",quantidade:30},{rotulo:"Marketing",quantidade:20},{rotulo:"Suporte",quantidade:15},{rotulo:"TI",quantidade:25},{rotulo:"RH",quantidade:10}]},corPaleta:{type:String,default:"#1D4ED8"},labelRotulo:{type:String,default:"Rótulo"},labelQuantidade:{type:String,default:"Qtd."},legendaGraficoVisivel:{type:Boolean,default:!0},opcoes:{type:Object,default:()=>({})}},emits:["botao-click"],setup(l,{emit:t}){L.Chart.register(L.PolarAreaController,L.RadialLinearScale,L.ArcElement,L.Tooltip,L.Legend);const e=l,{isDark:r,chartTooltipColors:n}=Ht(a.computed(()=>e.tema)),i=Jt(e),{cores:o}=Te(a.computed(()=>e.corPaleta),a.computed(()=>e.dados.length)),s=a.ref(null),u=a.ref(null),{estreito:f}=Zt(u);let c=null;const h=a.computed(()=>({labels:e.dados.map(g=>g.rotulo),datasets:[{data:e.dados.map(g=>g.quantidade),backgroundColor:o.value,borderWidth:0,borderColor:"transparent"}]})),p=a.computed(()=>{const{bg:g,border:d,titleColor:m,bodyColor:y}=n.value,k=r.value?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.05)";return{responsive:!0,maintainAspectRatio:!1,animation:{duration:800,easing:"easeOutQuart"},plugins:{legend:{display:!1},tooltip:{enabled:!0,backgroundColor:g,titleColor:m,bodyColor:y,borderColor:d,borderWidth:1,padding:{x:12,y:8},cornerRadius:8,boxPadding:4,titleFont:{size:12,weight:"bold"},bodyFont:{size:12},callbacks:{label:x=>` ${x.formattedValue}`}}},scales:{r:{ticks:{display:!1},grid:{color:k},pointLabels:{display:!1}}},...e.opcoes}});function _(){if(!s.value)return;c&&c.destroy();const g={labels:h.value.labels,datasets:[{...h.value.datasets[0],data:h.value.datasets[0].data.map(()=>0)}]};c=new L.Chart(s.value,{type:"polarArea",data:g,options:{...p.value,animation:!1}}),requestAnimationFrame(()=>{c&&(c.options.animation=p.value.animation,c.data=h.value,c.update())})}return a.onBeforeUnmount(()=>{c&&(c.destroy(),c=null)}),a.watch(()=>e.dados,()=>_(),{deep:!0}),a.watch(()=>e.corPaleta,()=>_()),a.watch(()=>e.tema,()=>_()),(g,d)=>(a.openBlock(),a.createBlock(Lt,a.mergeProps(a.unref(i),{onAnimComplete:_,onBotaoClick:d[0]||(d[0]=m=>g.$emit("botao-click"))}),{"slot-content":a.withCtx(()=>[a.createElementVNode("div",{ref_key:"wrapperRef",ref:u,class:a.normalizeClass(["px-3 py-5 nc-polar-wrapper",!a.unref(f)&&e.direcao==="horizontal"?"nc-polar-horizontal":"nc-polar-vertical"])},[a.createElementVNode("div",qa,[a.createElementVNode("canvas",{ref_key:"canvasRef",ref:s},null,512)]),l.legendaGraficoVisivel?(a.openBlock(),a.createElementBlock("div",Ia,[a.createElementVNode("div",{class:"flex justify-content-between pb-2 border-bottom-1",style:a.normalizeStyle({borderColor:a.unref(r)?"rgba(255,255,255,0.1)":"#e5e7eb"})},[a.createElementVNode("span",{class:"nc-polar-legenda-label",style:a.normalizeStyle({color:a.unref(r)?"#9ca3af":"#6b7280"})},a.toDisplayString(l.labelRotulo),5),a.createElementVNode("span",{class:"nc-polar-legenda-label",style:a.normalizeStyle({color:a.unref(r)?"#9ca3af":"#6b7280"})},a.toDisplayString(l.labelQuantidade),5)],4),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.dados,(m,y)=>(a.openBlock(),a.createElementBlock("div",{key:m.rotulo,class:"flex align-items-center justify-content-between"},[a.createElementVNode("div",$a,[a.createElementVNode("span",{class:"nc-polar-dot",style:a.normalizeStyle({backgroundColor:a.unref(o)[y]})},null,4),a.createElementVNode("span",{class:"nc-polar-legenda-text",style:a.normalizeStyle({color:a.unref(r)?"#e5e7eb":"#374151"})},a.toDisplayString(m.rotulo),5)]),a.createElementVNode("span",{class:"nc-polar-legenda-qtd",style:a.normalizeStyle({color:a.unref(r)?"#fff":"#111"})},a.toDisplayString(m.quantidade),5)]))),128))])):a.createCommentVNode("",!0)],2)]),_:1},16))}},Ua=Ft(Xa,[["__scopeId","data-v-feaf2b5f"]]),Wa={key:1,class:"flex justify-content-between align-items-baseline mt-1"},Ya={class:"flex align-items-center gap-1"},Ga={key:0,class:"nc-progresso-badge text-xs font-semibold"},Qa={__name:"CardProgresso",props:{...Kt,total:{type:Number,default:100},executado:{type:Number,default:0},rotulo:{type:String,default:""},exibirValores:{type:Boolean,default:!0},animado:{type:Boolean,default:!0},moeda:{type:Boolean,default:!1}},emits:["botao-click"],setup(l,{emit:t}){const e=l,{isDark:r}=Ht(a.computed(()=>e.tema)),n=Jt(e),i=a.ref(null);Zt(i);const o=a.ref(!1),s=a.computed(()=>!e.total||e.total<=0?0:e.executado/e.total*100),u=a.computed(()=>s.value>100),f=a.computed(()=>Math.min(100,Math.max(0,s.value))),c=a.computed(()=>{if(u.value)return"#ef4444";const g=s.value;return g<75?"#22c55e":g<90?"#eab308":"#ef4444"}),h=g=>e.moeda?g.toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):g.toLocaleString("pt-BR"),p=a.computed(()=>`${Math.round(s.value)}%`);function _(){e.animado?(o.value=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{o.value=!0})})):o.value=!0}return(g,d)=>(a.openBlock(),a.createBlock(Lt,a.mergeProps(a.unref(n),{onAnimComplete:_,onBotaoClick:d[0]||(d[0]=m=>g.$emit("botao-click"))}),{"slot-content":a.withCtx(()=>[a.createElementVNode("div",{ref_key:"wrapperRef",ref:i,class:"flex flex-column gap-2 px-3 py-4"},[l.rotulo?(a.openBlock(),a.createElementBlock("div",{key:0,class:"nc-progresso-rotulo uppercase font-medium",style:a.normalizeStyle({color:a.unref(r)?"#9ca3af":"#6b7280"})},a.toDisplayString(l.rotulo),5)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"nc-progresso-trilha w-full overflow-hidden border-round-xl",style:a.normalizeStyle({backgroundColor:a.unref(r)?"rgba(255,255,255,0.1)":"#e5e7eb"})},[a.createElementVNode("div",{class:a.normalizeClass(["nc-progresso-barra border-round-xl",{"nc-progresso-barra--animado":o.value}]),style:a.normalizeStyle({backgroundColor:c.value,width:o.value?f.value+"%":"0%"})},null,6)],4),l.exibirValores?(a.openBlock(),a.createElementBlock("div",Wa,[a.createElementVNode("span",{class:"text-xl font-bold",style:a.normalizeStyle({color:c.value})},[a.createTextVNode(a.toDisplayString(h(l.executado))+" ",1),a.createElementVNode("span",{class:"text-xs font-medium",style:a.normalizeStyle({color:a.unref(r)?"#6b7280":"#9ca3af"})}," de "+a.toDisplayString(h(l.total)),5)],4),a.createElementVNode("span",Ya,[u.value?(a.openBlock(),a.createElementBlock("span",Ga," Limite ultrapassado ")):a.createCommentVNode("",!0),a.createElementVNode("span",{class:"text-xs font-medium opacity-80",style:a.normalizeStyle({color:c.value})},a.toDisplayString(p.value),5)])])):a.createCommentVNode("",!0)],512)]),_:1},16))}},Ha=Ft(Qa,[["__scopeId","data-v-54c93bd4"]]),Za={class:"nc-rosquinha-chart"},Ka={key:0,class:"nc-rosquinha-center"},Ja={key:0,class:"nc-rosquinha-valor-desc"},ja={key:0,class:"flex flex-column gap-2 w-full"},to={class:"flex align-items-center gap-2"},eo={__name:"CardRosquinha",props:{...Kt,dados:{type:Array,default:()=>[{rotulo:"Categoria A",quantidade:40},{rotulo:"Categoria B",quantidade:25},{rotulo:"Categoria C",quantidade:20},{rotulo:"Categoria D",quantidade:15}]},corPaleta:{type:String,default:"#1D4ED8"},valor:{type:String,default:""},valorDescricao:{type:String,default:""},labelRotulo:{type:String,default:"Rótulo"},labelQuantidade:{type:String,default:"Qtd."},legendaGraficoVisivel:{type:Boolean,default:!0},opcoes:{type:Object,default:()=>({})}},setup(l){L.Chart.register(L.DoughnutController,L.ArcElement,L.Tooltip,L.Legend);const t=l,{isDark:e,chartTooltipColors:r}=Ht(a.computed(()=>t.tema)),n=Jt(t),{cores:i}=Te(a.computed(()=>t.corPaleta),a.computed(()=>t.dados.length)),o=a.ref(null),s=a.ref(null),{estreito:u}=Zt(s);let f=null;const c=a.computed(()=>({labels:t.dados.map(_=>_.rotulo),datasets:[{data:t.dados.map(_=>_.quantidade),backgroundColor:i.value,borderWidth:0,borderColor:"transparent"}]})),h=a.computed(()=>{const{bg:_,border:g,titleColor:d,bodyColor:m}=r.value;return{responsive:!0,maintainAspectRatio:!1,cutout:t.valor?"68%":"55%",animation:{duration:800,easing:"easeOutQuart",animateRotate:!0,animateScale:!1},plugins:{legend:{display:!1},tooltip:{enabled:!0,backgroundColor:_,titleColor:d,bodyColor:m,borderColor:g,borderWidth:1,padding:{x:12,y:8},cornerRadius:8,boxPadding:4,titleFont:{size:12,weight:"bold"},bodyFont:{size:12},callbacks:{label:y=>` ${y.formattedValue}`}}},...t.opcoes}});function p(){if(!o.value)return;f&&f.destroy();const _={labels:c.value.labels,datasets:[{...c.value.datasets[0],data:c.value.datasets[0].data.map(()=>0)}]};f=new L.Chart(o.value,{type:"doughnut",data:_,options:{...h.value,animation:!1}}),requestAnimationFrame(()=>{f&&(f.options.animation=h.value.animation,f.data=c.value,f.update())})}return a.onBeforeUnmount(()=>{f&&(f.destroy(),f=null)}),a.watch(()=>t.dados,()=>p(),{deep:!0}),a.watch(()=>t.corPaleta,()=>p()),a.watch(()=>t.valor,()=>p()),(_,g)=>(a.openBlock(),a.createBlock(Lt,a.mergeProps(a.unref(n),{onAnimComplete:p}),{"slot-content":a.withCtx(()=>[a.createElementVNode("div",{ref_key:"wrapperRef",ref:s,class:a.normalizeClass(["px-3 py-5 nc-rosquinha-wrapper",!a.unref(u)&&t.direcao==="horizontal"?"nc-rosquinha-horizontal":"nc-rosquinha-vertical"])},[a.createElementVNode("div",Za,[a.createElementVNode("canvas",{ref_key:"canvasRef",ref:o},null,512),l.valor?(a.openBlock(),a.createElementBlock("div",Ka,[a.createElementVNode("span",{class:"nc-rosquinha-valor",style:a.normalizeStyle({color:a.unref(e)?"#fff":"#111"})},a.toDisplayString(l.valor),5),l.valorDescricao?(a.openBlock(),a.createElementBlock("span",Ja,a.toDisplayString(l.valorDescricao),1)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]),l.legendaGraficoVisivel?(a.openBlock(),a.createElementBlock("div",ja,[a.createElementVNode("div",{class:"flex justify-content-between pb-2 border-bottom-1",style:a.normalizeStyle({borderColor:a.unref(e)?"rgba(255,255,255,0.1)":"#e5e7eb"})},[a.createElementVNode("span",{class:"nc-rosquinha-legenda-label",style:a.normalizeStyle({color:a.unref(e)?"#9ca3af":"#6b7280"})},a.toDisplayString(l.labelRotulo),5),a.createElementVNode("span",{class:"nc-rosquinha-legenda-label",style:a.normalizeStyle({color:a.unref(e)?"#9ca3af":"#6b7280"})},a.toDisplayString(l.labelQuantidade),5)],4),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.dados,(d,m)=>(a.openBlock(),a.createElementBlock("div",{key:d.rotulo,class:"nc-rosquinha-legenda-item flex align-items-center justify-content-between"},[a.createElementVNode("div",to,[a.createElementVNode("span",{class:"nc-rosquinha-dot",style:a.normalizeStyle({backgroundColor:a.unref(i)[m]})},null,4),a.createElementVNode("span",{class:"nc-rosquinha-legenda-text",style:a.normalizeStyle({color:a.unref(e)?"#e5e7eb":"#374151"})},a.toDisplayString(d.rotulo),5)]),a.createElementVNode("span",{class:"nc-rosquinha-legenda-qtd",style:a.normalizeStyle({color:a.unref(e)?"#fff":"#111"})},a.toDisplayString(d.quantidade),5)]))),128))])):a.createCommentVNode("",!0)],2)]),_:1},16))}},ro=Ft(eo,[["__scopeId","data-v-cc18903b"]]),no={class:"nc-semicirculo-chart flex-shrink-0"},io={key:0,class:"nc-semicirculo-center"},ao={key:0,class:"nc-semicirculo-valor-desc"},oo={key:0,class:"flex flex-column gap-2 w-full"},so={class:"flex align-items-center gap-2"},lo={__name:"CardSemiCirculo",props:{...Kt,dados:{type:Array,default:()=>[{rotulo:"Categoria A",quantidade:40},{rotulo:"Categoria B",quantidade:25},{rotulo:"Categoria C",quantidade:20},{rotulo:"Categoria D",quantidade:15}]},corPaleta:{type:String,default:"#1D4ED8"},labelRotulo:{type:String,default:"Rótulo"},labelQuantidade:{type:String,default:"Qtd."},legendaGraficoVisivel:{type:Boolean,default:!0},opcoes:{type:Object,default:()=>({})},valor:{type:String,default:""},valorDescricao:{type:String,default:""}},emits:["botao-click"],setup(l,{emit:t}){L.Chart.register(L.DoughnutController,L.ArcElement,L.Tooltip,L.Legend);const e=l,{isDark:r,chartTooltipColors:n}=Ht(a.computed(()=>e.tema)),i=Jt(e),{cores:o}=Te(a.computed(()=>e.corPaleta),a.computed(()=>e.dados.length)),s=a.ref(null),u=a.ref(null),{estreito:f}=Zt(u);let c=null;const h=a.computed(()=>({labels:e.dados.map(g=>g.rotulo),datasets:[{data:e.dados.map(g=>g.quantidade),backgroundColor:o.value,borderWidth:0,borderColor:"transparent"}]})),p=a.computed(()=>{const{bg:g,border:d,titleColor:m,bodyColor:y}=n.value;return{responsive:!0,maintainAspectRatio:!1,rotation:-90,circumference:180,cutout:"60%",animation:{duration:800,easing:"easeOutQuart",animateRotate:!0,animateScale:!1},plugins:{legend:{display:!1},tooltip:{enabled:!0,backgroundColor:g,titleColor:m,bodyColor:y,borderColor:d,borderWidth:1,padding:{x:12,y:8},cornerRadius:8,boxPadding:4,titleFont:{size:12,weight:"bold"},bodyFont:{size:12},callbacks:{label:k=>` ${k.formattedValue}`}}},...e.opcoes}});function _(){if(!s.value)return;c&&c.destroy();const g={labels:h.value.labels,datasets:[{...h.value.datasets[0],data:h.value.datasets[0].data.map(()=>0)}]};c=new L.Chart(s.value,{type:"doughnut",data:g,options:{...p.value,animation:!1}}),requestAnimationFrame(()=>{c&&(c.options.animation=p.value.animation,c.data=h.value,c.update())})}return a.onBeforeUnmount(()=>{c&&(c.destroy(),c=null)}),a.watch(()=>e.dados,()=>_(),{deep:!0}),a.watch(()=>e.corPaleta,()=>_()),a.watch(()=>e.tema,()=>_()),(g,d)=>(a.openBlock(),a.createBlock(Lt,a.mergeProps(a.unref(i),{onAnimComplete:_,onBotaoClick:d[0]||(d[0]=m=>g.$emit("botao-click"))}),{"slot-content":a.withCtx(()=>[a.createElementVNode("div",{ref_key:"wrapperRef",ref:u,class:a.normalizeClass(["px-3 py-4 flex align-items-center nc-semicirculo-wrapper",!a.unref(f)&&e.direcao==="horizontal"?"nc-semicirculo-horizontal":"nc-semicirculo-vertical"])},[a.createElementVNode("div",no,[a.createElementVNode("canvas",{ref_key:"canvasRef",ref:s},null,512),l.valor?(a.openBlock(),a.createElementBlock("div",io,[a.createElementVNode("span",{class:"font-bold",style:a.normalizeStyle({color:a.unref(r)?"#fff":"#111"})},a.toDisplayString(l.valor),5),l.valorDescricao?(a.openBlock(),a.createElementBlock("span",ao,a.toDisplayString(l.valorDescricao),1)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]),l.legendaGraficoVisivel?(a.openBlock(),a.createElementBlock("div",oo,[a.createElementVNode("div",{class:"flex justify-content-between pb-2 border-bottom-1",style:a.normalizeStyle({borderColor:a.unref(r)?"rgba(255,255,255,0.1)":"#e5e7eb"})},[a.createElementVNode("span",{class:"nc-semicirculo-legenda-label",style:a.normalizeStyle({color:a.unref(r)?"#9ca3af":"#6b7280"})},a.toDisplayString(l.labelRotulo),5),a.createElementVNode("span",{class:"nc-semicirculo-legenda-label",style:a.normalizeStyle({color:a.unref(r)?"#9ca3af":"#6b7280"})},a.toDisplayString(l.labelQuantidade),5)],4),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.dados,(m,y)=>(a.openBlock(),a.createElementBlock("div",{key:m.rotulo,class:"flex align-items-center justify-content-between"},[a.createElementVNode("div",so,[a.createElementVNode("span",{class:"nc-semicirculo-dot",style:a.normalizeStyle({backgroundColor:a.unref(o)[y]})},null,4),a.createElementVNode("span",{class:"nc-semicirculo-legenda-text",style:a.normalizeStyle({color:a.unref(r)?"#e5e7eb":"#374151"})},a.toDisplayString(m.rotulo),5)]),a.createElementVNode("span",{class:"nc-semicirculo-legenda-qtd font-semibold",style:a.normalizeStyle({color:a.unref(r)?"#fff":"#111"})},a.toDisplayString(m.quantidade),5)]))),128))])):a.createCommentVNode("",!0)],2)]),_:1},16))}},co=Ft(lo,[["__scopeId","data-v-5fa4b01e"]]);et.CardBarra=Ea,et.CardBase=Lt,et.CardColuna=Na,et.CardLinhas=La,et.CardPolar=Ua,et.CardProgresso=Ha,et.CardRosquinha=ro,et.CardSemiCirculo=co,Object.defineProperty(et,Symbol.toStringTag,{value:"Module"})});
|