Файловый менеджер - Редактировать - /home/freeclou/optimyar/wp-content/plugins/elementor-extras/assets/lib/custom-ease/custom-ease.min.js
Назад
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.CustomEase",["easing.Ease"],function(e){var t=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,i=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,n=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,s=/[cLlsS]/g,o="CustomEase only accepts Cubic Bezier data.",a=function(e,t,i,n,s,o,r,h,u,c,l){var f,g=(e+i)/2,p=(t+n)/2,x=(i+s)/2,d=(n+o)/2,y=(s+r)/2,m=(o+h)/2,S=(g+x)/2,_=(p+d)/2,v=(x+y)/2,w=(d+m)/2,M=(S+v)/2,b=(_+w)/2,k=r-e,C=h-t,z=Math.abs((i-r)*C-(n-h)*k),D=Math.abs((s-r)*C-(o-h)*k);return c||(c=[{x:e,y:t},{x:r,y:h}],l=1),c.splice(l||c.length-1,0,{x:M,y:b}),(z+D)*(z+D)>u*(k*k+C*C)&&(f=c.length,a(e,t,g,p,S,_,M,b,u,c,l),a(M,b,v,w,y,m,r,h,u,c,l+1+(c.length-f))),c},r=function(e){var t,s,a,r,h,u,c,l,f,g,p,x=(e+"").replace(n,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(i)||[],d=[],y=0,m=0,S=x.length,_=2;for(t=0;t<S;t++)if(f=r,isNaN(x[t])?(r=x[t].toUpperCase(),h=r!==x[t]):t--,s=+x[t+1],a=+x[t+2],h&&(s+=y,a+=m),t||(c=s,l=a),"M"===r)u&&u.length<8&&(d.length-=1,_=0),y=c=s,m=l=a,u=[s,a],_=2,d.push(u),t+=2,r="L";else if("C"===r)u||(u=[0,0]),u[_++]=s,u[_++]=a,h||(y=m=0),u[_++]=y+1*x[t+3],u[_++]=m+1*x[t+4],u[_++]=y+=1*x[t+5],u[_++]=m+=1*x[t+6],t+=6;else if("S"===r)"C"===f||"S"===f?(g=y-u[_-4],p=m-u[_-3],u[_++]=y+g,u[_++]=m+p):(u[_++]=y,u[_++]=m),u[_++]=s,u[_++]=a,h||(y=m=0),u[_++]=y+=1*x[t+3],u[_++]=m+=1*x[t+4],t+=4;else{if("L"!==r&&"Z"!==r)throw o;"Z"===r&&(s=c,a=l,u.closed=!0),("L"===r||Math.abs(y-s)>.5||Math.abs(m-a)>.5)&&(u[_++]=y+(s-y)/3,u[_++]=m+(a-m)/3,u[_++]=y+2*(s-y)/3,u[_++]=m+2*(a-m)/3,u[_++]=s,u[_++]=a,"L"===r&&(t+=2)),y=s,m=a}return d[0]},h=function(e){var t,i=e.length,n=999999999999;for(t=1;t<i;t+=6)+e[t]<n&&(n=+e[t]);return n},u=function(e,t,i){i||0===i||(i=Math.max(+e[e.length-1],+e[1]));var n,s=-1*+e[0],o=-i,a=e.length,r=1/(+e[a-2]+s),u=-t||(Math.abs(+e[a-1]-+e[1])<.01*(+e[a-2]-+e[0])?h(e)+o:+e[a-1]+o);for(u=u?1/u:-r,n=0;n<a;n+=2)e[n]=(+e[n]+s)*r,e[n+1]=(+e[n+1]+o)*u},c=function(e){var t=this.lookup[e*this.l|0]||this.lookup[this.l-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},l=function(t,i,n){this._calcEnd=!0,this.id=t,t&&(e.map[t]=this),this.getRatio=c,this.setData(i,n)},f=l.prototype=new e;return f.constructor=l,f.setData=function(e,i){e=e||"0,0,1,1";var n,h,c,l,f,g,p,x,d,y,m=e.match(t),S=1,_=[];if(i=i||{},y=i.precision||1,this.data=e,this.lookup=[],this.points=_,this.fast=y<=1,(s.test(e)||-1!==e.indexOf("M")&&-1===e.indexOf("C"))&&(m=r(e)),4===(n=m.length))m.unshift(0,0),m.push(1,1),n=8;else if((n-2)%6)throw o;for(0==+m[0]&&1==+m[n-2]||u(m,i.height,i.originY),this.rawBezier=m,l=2;l<n;l+=6)h={x:+m[l-2],y:+m[l-1]},c={x:+m[l+4],y:+m[l+5]},_.push(h,c),a(h.x,h.y,+m[l],+m[l+1],+m[l+2],+m[l+3],c.x,c.y,1/(2e5*y),_,_.length-1);for(n=_.length,l=0;l<n;l++)p=_[l],x=_[l-1]||p,p.x>x.x||x.y!==p.y&&x.x===p.x||p===x?(x.cx=p.x-x.x,x.cy=p.y-x.y,x.n=p,x.nx=p.x,this.fast&&l>1&&Math.abs(x.cy/x.cx-_[l-2].cy/_[l-2].cx)>2&&(this.fast=!1),x.cx<S&&(x.cx?S=x.cx:(x.cx=.001,l===n-1&&(x.x-=.001,S=Math.min(S,.001),this.fast=!1)))):(_.splice(l--,1),n--);if(n=1/S+1|0,this.l=n,f=1/n,g=0,p=_[0],this.fast){for(l=0;l<n;l++)d=l*f,p.nx<d&&(p=_[++g]),h=p.y+(d-p.x)/p.cx*p.cy,this.lookup[l]={x:d,cx:f,y:h,cy:0,nx:9},l&&(this.lookup[l-1].cy=h-this.lookup[l-1].y);this.lookup[n-1].cy=_[_.length-1].y-h}else{for(l=0;l<n;l++)p.nx<l*f&&(p=_[++g]),this.lookup[l]=p;g<_.length-1&&(this.lookup[l-1]=_[_.length-2])}return this._calcEnd=1!==_[_.length-1].y||0!==_[0].y,this},f.getRatio=c,f.getSVGData=function(e){return l.getSVGData(this,e)},l.create=function(e,t,i){return new l(e,t,i)},l.version="0.2.2",l.bezierToPoints=a,l.get=function(t){return e.map[t]},l.getSVGData=function(t,i){i=i||{};var n,s,o,a,r,h,u,c,l,f,g=i.width||100,p=i.height||100,x=i.x||0,d=(i.y||0)+p,y=i.path;if(i.invert&&(p=-p,d=0),t=t.getRatio?t:e.map[t]||console.log("No ease found: ",t),t.rawBezier){for(n=[],u=t.rawBezier.length,o=0;o<u;o+=2)n.push((1e3*(x+t.rawBezier[o]*g)|0)/1e3+","+(1e3*(d+t.rawBezier[o+1]*-p)|0)/1e3);n[0]="M"+n[0],n[1]="C"+n[1]}else for(n=["M"+x+","+d],u=Math.max(5,200*(i.precision||1)),a=1/u,u+=2,c=5/u,l=(1e3*(x+a*g)|0)/1e3,f=(1e3*(d+t.getRatio(a)*-p)|0)/1e3,s=(f-d)/(l-x),o=2;o<u;o++)r=(1e3*(x+o*a*g)|0)/1e3,h=(1e3*(d+t.getRatio(o*a)*-p)|0)/1e3,(Math.abs((h-f)/(r-l)-s)>c||o===u-1)&&(n.push(l+","+f),s=(h-f)/(r-l)),l=r,f=h;return y&&("string"==typeof y?document.querySelector(y):y).setAttribute("d",n.join(" ")),n.join(" ")},l},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).CustomEase};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка