This repository has been archived by the owner on Jul 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
jquery.animate.min.js
2 lines (2 loc) · 20.9 KB
/
jquery.animate.min.js
1
2
/*! jQuery Animate v1.8.9 - By CSS3 transition | (c) 2014-2017 BaiJunjie | MIT Licensed | https://github.com/baijunjie/jquery.animate */
!function(t,e){"use strict";"object"==typeof module&&"object"==typeof exports?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery)}(this,function(t){"use strict";function e(t){if(t in _.style)return t;for(var e=t.charAt(0).toUpperCase()+t.substr(1),n=["Webkit","Moz","ms","O"],i=0,s=n.length;i<s;i++){var r=n[i]+e;if(r in _.style)return r}}function n(e){if("string"==typeof e)return 0!==e.indexOf("cubic-bezier")?(e=t.cssEase[e],n(e)):e}function i(t,e){for(var n,i,s=t.split("."),r=e.split("."),a=s.length,o=r.length,u=Math.max(a,o);u>0;u--){if(n=parseInt(s.shift())||0,i=parseInt(r.shift())||0,n>i)return 1;if(n<i)return-1}return 0}function s(e,n){n||(t.cssNumber[e]=!0),C[e]=q.transform,t.cssHooks[e]={get:function(n){return t.css(n,"transform").get(e)},set:function(n,i){var s=t.css(n,"transform");s.setFromString(e,i),t.style(n,"transform",s)}}}function r(t){"string"==typeof t&&this.parse(t)}function a(e,n,i,s){var r={};for(var a in e){var o=t.camelCase(a);o=C[o]||t.cssProps[o]||o,q[o]&&(o=q[o]),o in r||(r[o]=s[a])}var u=m(n),c=[];for(var a in r)c.push(d(a)+" "+u+" "+r[a]);return c.join(",")}function o(t,e,n,i){var s,r={},a="none"===t.css("display"),o=t.data("bjj-toggle");("height"in e||"width"in e)&&"inline"===t.css("display")&&"none"===t.css("float")&&t.css("display","inline-block");for(var u in e){var c=t.css(u),f=e[u],l="toggle"===f;if("show"===f||l&&(!0===s||void 0===s&&(a||!1===o))){r[u]="",l&&t.data("bjj-toggle",!0),a&&t.show();var h=t[0].style[u],p=t.css(u,"").css(u);t.css(u,h),a&&t.hide(),a||!1===o||c!=p?(void 0===s&&(s=!0),f=p,a&&(c=0)):f=void 0}else"hide"!==f&&(!l||!1!==s&&(void 0!==s||a&&!0!==o))||(r[u]="",l&&t.data("bjj-toggle",!1),a&&!0!==o?f=void 0:(void 0===s&&(s=!1),f=0));var d,v,b=g(c),y=g(f);I(c)?c=z(u,c):(d=x(c))||(O(c)?I(c=z(u,c,(f+"").indexOf("inset")>=0))||(c=0):!b&&y&&(c+=y)),I(f)?f=z(u,f):(v=x(f))||(O(f)?!I(f=z(u,f,c.indexOf("inset")>=0))&&f.match(/^[+-]=/)&&(f=w(t,u,c,f,1)):void 0!==f&&!y&&b&&(f+=b)),void 0===f||!!v^!!d?delete e[u]:(e[u]=f,n[u]=c)}var m=i;return!0===s?(("width"in r||"height"in r)&&(void 0===t.data("bjj-overflow")&&t.data("bjj-overflow",t[0].style.overflow),r.overflow=t.data("bjj-overflow"),t.css("overflow","hidden")),t.show()):!1===s&&(("width"in r||"height"in r)&&(void 0===t.data("bjj-overflow")&&t.data("bjj-overflow",t[0].style.overflow),r.overflow="",t.css("overflow","hidden")),r.display="none"),void 0!==s&&(m=function(){s&&t.removeData("bjj-overflow"),t.css(r),"function"==typeof i&&i.call(this)}),m}function u(t,e,n){!0===e?t.queue(n):e?t.queue(e,n):t.each(function(){n.call(this)})}function c(t,e,n){"function"==typeof e&&e.call(t),"function"==typeof n&&n()}function f(e){var n=this,i=t(n),s=i.data("bjj-transitionDelayRunParams");if(s){var r=s.transitionValueList,u=s.queueParams.shift(),f={},l=u.endProps,h=u.duration,p=u.easing,d=u.queue,v=u.specialEasing,g=u.callback=o(i,l,f,u.callback),b=t.isEmptyObject(l);if(0===h||b)return b||i.css(l),void c(n,g,e);i.css(f),n.offsetWidth;var y=function(i){var s=t.inArray(O,t.timers);s>=0&&t.timers.splice(s,1),(s=t.inArray(I,r))>=0&&r.splice(s,1),n.style[q.transition]=r.join(","),c(n,g,e)},m=function(s){window.clearTimeout(k);var a=t.inArray(I,r);if(a>=0&&r.splice(a,1),n.style[q.transition]=r.join(","),s)c(n,g,e);else{var o={};for(var u in l){var p,d=f[u],b=l[u],y=x(b);X(v[u]);var m=B.getY((t.now()-z)/h);p=y?j(d,y,m):w(i,u,d,b,m),o[u]=p}i.css(o)}},O=function(){return!0};O.elem=n,O.queue=d,O.anim={stop:m},t.timers.push(O);var I=a(l,h,p,v);r.push(I);var z=t.now();n.style[q.transition]=r.join(","),i.css(l);var k=window.setTimeout(y,h)}}function l(e,n,i,s,r,a){return n=parseInt(m(n),10),this.each(function(){var o=t(this),u=o.data("bjj-transitionDelayRunParams");u||(u={transitionValueList:[],queueParams:[]}),u.queueParams.push({endProps:t.extend(!0,{},e),duration:n,easing:i,callback:s,queue:r,specialEasing:a}),o.data("bjj-transitionDelayRunParams",u)}),u(this,r,f),this}function h(e,n){var i,s,r,a,o;for(i in e)if(s=t.camelCase(i),r=n[s],a=e[i],t.isArray(a)&&(r=a[1],a=e[i]=a[0]),i!==s&&(e[s]=a,delete e[i]),(o=t.cssHooks[s])&&"expand"in o){a=o.expand(a),delete e[s];for(i in a)i in e||(e[i]=a[i],n[i]=r)}else n[s]=r}function p(e){for(var n=0,i=S.length;n<i;n++){var s=S[n];if(s in e){var r=e[s];delete e[s];var a;if(t.isArray(r)){var o=r[0],u=r[1];(t.isArray(o)||"string"==typeof o&&o.split(",").length>1||u&&isNaN(parseFloat(u)))&&(r=o,a=u)}var c,f=-1!==s.indexOf("3d");t.isArray(r)?c=r:(c="string"==typeof r?r.split(","):[r]).length<2&&(f?c[2]=c[1]=c[0]:c[1]=c[0]),f&&(s=s.slice(0,-2));for(var l="scale"===s?1:0,h=0;h<3;h++)(r=c[h])||0===r?e[s+E[h]]=a?[r,a]:r:""===r&&(e[s+E[h]]=a?[l,a]:l)}}}function d(t){return t.indexOf("webkit")||(t="W"+t.substr(1)),t.indexOf("moz")&&t.indexOf("ms")||(t="M"+t.substr(1)),t.replace(/([A-Z])/g,"-$1").toLowerCase()}function v(t,e){return"string"!=typeof t||t.match(/^[\-0-9\.]+$/)?""+t+e:t}function g(t){if("string"!=typeof t)return"";var e=t.match(/^(?:\-=|\+=)?[\-0-9\.]+/);return e?t.substr(e[0].length)||"":""}function b(t,e,n){for(var i=["x","y","position","origin","radius"],s=["x","width","padding","margin","left","right"],r=!1,a=0,o=0,u=e.toLowerCase(),c=0,f=i.length;c<f;c++){var l=i[c];u.indexOf(l)>=0&&(r=!0)}for(c=0,f=s.length;c<f;c++)u.indexOf(s[c])>=0&&(a=1);return a||(a=u.indexOf("position")>=0||u.indexOf("size")>=0||u.indexOf("origin")>=0?1===n?-1:1:1===n||3===n?1:-1),1===a?o=r?t.outerWidth():t.parent().width():-1===a&&(o=r?t.outerHeight():t.parent().height()),o}function y(t,e,n,i,s){var r="px",a="em",o=g(i),u=i;if(o!=s){var c=parseFloat(i);if(s===r)"%"===o?u=c/100*b(t,e,n)+r:o===a&&(u=c*parseFloat(t.css("font-size"))+r);else if("%"===s){var f=b(t,e,n);f?o===r?u=c/f*100+"%":o===a&&(u=c*parseFloat(t.css("font-size"))/f*100+"%"):u=0}else s===a&&(o===r?u=c/parseFloat(t.css("font-size"))+a:"%"===o&&(u=c/100*b(t,e,n)/parseFloat(t.css("font-size"))+a))}return u}function w(t,e,n,i,s){n=(n+"").split(" ");for(var r=[],a=0,o=(i=(i+"").split(" ")).length;a<o;a++){var u=n[a]||0,c=i[a],f=g(u),l=g(c)||f,h=x(c);if(h)r[a]=j(u,h,s);else if(isNaN(parseFloat(c))){var p=N.exec(i[a]);if(p){var d=(p[1]+1)*p[2]+p[3];d=y(t,e,a,d,l=f||l),c=(u=parseFloat(u))+parseFloat(d),r[a]=(c-u)*s+u+l}else r[a]=c}else c=parseFloat(c),u=y(t,e,a,u,l),u=parseFloat(u),r[a]=(c-u)*s+u+l}for(o=n.length;a<o;a++)r.push(n[a]);r=r.join(" ");var v=parseFloat(r);return r==v?v:r}function m(e){var n=e;return"string"!=typeof n||n.match(/^[\-0-9\.]+/)||(n=t.fx.speeds[n]||t.fx.speeds._default),v(n,"ms")}function O(t){return"string"==typeof t&&isNaN(parseFloat(t))&&1===t.split(" ").length}function I(t){var e=t+"";return 1===e.split(",").length&&e.split(" ").length>1}function x(t){return"string"==typeof t&&(t.indexOf("rgb")||1!==t.split(" ").length?k("color",t):t)}function z(t,e,n){return t.indexOf("hadow")<0?e:((e=k(t,e))||(e=k(t,n&&!t.indexOf("box")?"inset 0 0 0 transparent":"0 0 0 transparent")),e=e.replace(/,\s/g,","))}function k(t,e){return _.style[t]="",_.style[t]=e,A.appendTo("body"),e=""!==_.style[t]&&"none"!==_.style[t]&&A.css(t),A.detach(),e}function j(e,n,i){t.isArray(e)||(e=F(e)),t.isArray(n)||(n=F(n));var s=Math.min(e.length,n.length),r="rgb",a=i*(n[0]-e[0]),o=i*(n[1]-e[1]),u=i*(n[2]-e[2]),c=e[0]+a,f=e[1]+o,l=e[2]+u,h=1;return s>3&&(r+="a",h=parseFloat(e[3]+i*(n[3]-e[3]),10),c=e[0]+a/h*n[3],f=e[1]+o/h*n[3],l=e[2]+u/h*n[3]),c=parseInt(c,10),f=parseInt(f,10),l=parseInt(l,10),r+="("+c+","+f+","+l,s>3&&(r+=","+h),r+=")"}function F(t){var e,n;return(e=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(t))?n=[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),1]:(e=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(t))?n=[17*parseInt(e[1],16),17*parseInt(e[2],16),17*parseInt(e[3],16),1]:(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))?n=[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),1]:(e=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(t))&&(n=[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]),n}function M(t){var e=t.match(/\(.*\)$/);if(e){for(var n=e[0].slice(1,-1).split(","),i=0,s=n.length;i<s;i++){var r=parseFloat(n[i]);n[i]=isNaN(r)?void 0:r}return n}return null}function Y(){this.set.apply(this,arguments)}function P(t,e){this.x=t||0,this.y=e||0}function X(t){var e=M(t);B.set([e[0],e[1]],[e[2],e[3]])}i("3.0.0",t.fn.jquery)>0&&function(t){function e(){n&&(r(e),t.fx.tick())}for(var n,i=0,s=["webkit","moz"],r=window.requestAnimationFrame,a=window.cancelAnimationFrame;i<s.length&&!r;i++)r=window[s[i]+"RequestAnimationFrame"],a=a||window[s[i]+"CancelAnimationFrame"]||window[s[i]+"CancelRequestAnimationFrame"];r&&(window.requestAnimationFrame=r,window.cancelAnimationFrame=a,t.fx.timer=function(i){i()&&t.timers.push(i)&&!n&&(n=!0,e())},t.fx.stop=function(){n=!1})}(t),t.easing.jswing=t.easing.swing,t.extend(t.easing,{def:"easeOutQuad",swing:function(e,n,i,s,r){return t.easing[t.easing.def](e,n,i,s,r)},easeInQuad:function(t,e,n,i,s){return i*(e/=s)*e+n},easeOutQuad:function(t,e,n,i,s){return-i*(e/=s)*(e-2)+n},easeInOutQuad:function(t,e,n,i,s){return(e/=s/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,i,s){return i*(e/=s)*e*e+n},easeOutCubic:function(t,e,n,i,s){return i*((e=e/s-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,i,s){return(e/=s/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,i,s){return i*(e/=s)*e*e*e+n},easeOutQuart:function(t,e,n,i,s){return-i*((e=e/s-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,i,s){return(e/=s/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,i,s){return i*(e/=s)*e*e*e*e+n},easeOutQuint:function(t,e,n,i,s){return i*((e=e/s-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,i,s){return(e/=s/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,i,s){return-i*Math.cos(e/s*(Math.PI/2))+i+n},easeOutSine:function(t,e,n,i,s){return i*Math.sin(e/s*(Math.PI/2))+n},easeInOutSine:function(t,e,n,i,s){return-i/2*(Math.cos(Math.PI*e/s)-1)+n},easeInExpo:function(t,e,n,i,s){return 0==e?n:i*Math.pow(2,10*(e/s-1))+n},easeOutExpo:function(t,e,n,i,s){return e==s?n+i:i*(1-Math.pow(2,-10*e/s))+n},easeInOutExpo:function(t,e,n,i,s){return 0==e?n:e==s?n+i:(e/=s/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(2-Math.pow(2,-10*--e))+n},easeInCirc:function(t,e,n,i,s){return-i*(Math.sqrt(1-(e/=s)*e)-1)+n},easeOutCirc:function(t,e,n,i,s){return i*Math.sqrt(1-(e=e/s-1)*e)+n},easeInOutCirc:function(t,e,n,i,s){return(e/=s/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,i,s){var r=1.70158,a=0,o=i;if(0==e)return n;if(1==(e/=s))return n+i;if(a||(a=.3*s),o<Math.abs(i)){o=i;r=a/4}else r=a/(2*Math.PI)*Math.asin(i/o);return-o*Math.pow(2,10*(e-=1))*Math.sin((e*s-r)*(2*Math.PI)/a)+n},easeOutElastic:function(t,e,n,i,s){var r=1.70158,a=0,o=i;if(0==e)return n;if(1==(e/=s))return n+i;if(a||(a=.3*s),o<Math.abs(i)){o=i;r=a/4}else r=a/(2*Math.PI)*Math.asin(i/o);return o*Math.pow(2,-10*e)*Math.sin((e*s-r)*(2*Math.PI)/a)+i+n},easeInOutElastic:function(t,e,n,i,s){var r=1.70158,a=0,o=i;if(0==e)return n;if(2==(e/=s/2))return n+i;if(a||(a=s*(.3*1.5)),o<Math.abs(i)){o=i;r=a/4}else r=a/(2*Math.PI)*Math.asin(i/o);return e<1?o*Math.pow(2,10*(e-=1))*Math.sin((e*s-r)*(2*Math.PI)/a)*-.5+n:o*Math.pow(2,-10*(e-=1))*Math.sin((e*s-r)*(2*Math.PI)/a)*.5+i+n},easeInBack:function(t,e,n,i,s,r){return void 0==r&&(r=1.70158),i*(e/=s)*e*((r+1)*e-r)+n},easeOutBack:function(t,e,n,i,s,r){return void 0==r&&(r=1.70158),i*((e=e/s-1)*e*((r+1)*e+r)+1)+n},easeInOutBack:function(t,e,n,i,s,r){return void 0==r&&(r=1.70158),(e/=s/2)<1?i/2*(e*e*((1+(r*=1.525))*e-r))+n:i/2*((e-=2)*e*((1+(r*=1.525))*e+r)+2)+n},easeInBounce:function(e,n,i,s,r){return s-t.easing.easeOutBounce(e,r-n,0,s,r)+i},easeOutBounce:function(t,e,n,i,s){return(e/=s)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(e,n,i,s,r){return n<r/2?.5*t.easing.easeInBounce(e,2*n,0,s,r)+i:.5*t.easing.easeOutBounce(e,2*n-r,0,s,r)+.5*s+i}}),t.extend(t.easing,{ease:function(e,n,i,s,r){return t.easing.easeInOutCubic(e,n,i,s,r)},easeIn:function(e,n,i,s,r){return t.easing.easeInSine(e,n,i,s,r)},easeOut:function(e,n,i,s,r){return t.easing.easeOutSine(e,n,i,s,r)},easeInOut:function(e,n,i,s,r){return t.easing.easeInOutSine(e,n,i,s,r)}});var _=document.createElement("div"),A=t(_),q={};if(q.transform=e("transform"),!q.transform)return t;q.transformOrigin=e("transformOrigin"),q.transformStyle=e("transformStyle"),q.perspective=e("perspective"),q.perspectiveOrigin=e("perspectiveOrigin"),q.backfaceVisibility=e("backfaceVisibility"),q.filter=e("filter"),q.transition=e("transition"),q.transform3d=function(){return _.style[q.transform]="",_.style[q.transform]="rotateY(90deg)",""!==_.style[q.transform]}();for(var Q in q)void 0===t.support[Q]&&(t.support[Q]=q[Q]);t.cssEase={_default:"swing",swing:"easeOutQuad",linear:"cubic-bezier(0,0,1,1)",ease:"cubic-bezier(.25,.1,.25,1)",easeIn:"cubic-bezier(.42,0,1,1)",easeOut:"cubic-bezier(0,0,.58,1)",easeInOut:"cubic-bezier(.42,0,.58,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},t.cssHooks.transform={get:function(e){return t.data(e,"bjj-transform")||new r},set:function(e,n){var i=n;i instanceof r||(i=new r(i)),e.style[q.transform]=i.toString(),t.data(e,"bjj-transform",i)}},i("1.8",t.fn.jquery)>0&&(t.cssHooks.transformOrigin={get:function(t){return t.style[q.transformOrigin]},set:function(t,e){t.style[q.transformOrigin]=e}},t.cssHooks.transformStyle={get:function(t){return t.style[q.transformStyle]},set:function(t,e){t.style[q.transformStyle]=e}},t.cssHooks.perspective={get:function(t){return t.style[q.perspective]},set:function(t,e){t.style[q.perspective]=e}},t.cssHooks.perspectiveOrigin={get:function(t){return t.style[q.perspectiveOrigin]},set:function(t,e){t.style[q.perspectiveOrigin]=e}},t.cssHooks.backfaceVisibility={get:function(t){return t.style[q.backfaceVisibility]},set:function(t,e){t.style[q.backfaceVisibility]=e}},t.cssHooks.transition={get:function(t){return t.style[q.transition]},set:function(t,e){t.style[q.transition]=e}},t.cssHooks.filter={get:function(t){return t.style[q.filter]},set:function(t,e){t.style[q.filter]=e}});var C={};s("x"),s("y"),s("z"),s("translateX"),s("translateY"),s("translateZ"),s("translate"),s("translate3d"),s("scale"),s("scaleX"),s("scaleY"),s("scaleZ"),s("scale3d"),s("rotate"),s("rotateX"),s("rotateY"),s("rotateZ"),s("rotate3d"),s("skew"),s("skewX"),s("skewY"),s("pers"),r.prototype={setFromString:function(e,n){var i;if(t.isArray(n)){for(var s=0;s<3;s++)void 0===n[s]&&(n[s]=null);i=n}else i="string"==typeof n?n.split(","):[n];i.unshift(e),r.prototype.set.apply(this,i)},set:function(t){var e=Array.prototype.slice.call(arguments,1);this.setter[t]?this.setter[t].apply(this,e):this[t]=e.join(",")},get:function(t){return this.getter[t]?this.getter[t].call(this):this[t]},setter:{x:function(t){this.set("translate",t,null)},y:function(t){this.set("translate",null,t)},z:function(t){this.setProp("translateZ",t,"px")},translateX:function(t){this.set("x",t)},translateY:function(t){this.set("y",t)},translateZ:function(t){this.set("z",t)},translate:function(t,e){void 0===e&&(e=t),this.setDoubleProp("translate",t,e,"px")},translate3d:function(t,e,n){void 0===e&&void 0===n&&(n=e=t),this.set("translate",t,e),this.set("z",n)},scale:function(t,e){void 0===e&&(e=t),this.setDoubleProp("scale",t,e,"")},scale3d:function(t,e,n){void 0===e&&void 0===n&&(n=e=t),this.set("scale",t,e),this.set("scaleZ",n)},scaleX:function(t){this.set("scale",t,null)},scaleY:function(t){this.set("scale",null,t)},scaleZ:function(t){this.setProp("scaleZ",t,"")},rotate:function(t){this.setProp("rotate",t,"deg")},rotateX:function(t){this.setProp("rotateX",t,"deg")},rotateY:function(t){this.setProp("rotateY",t,"deg")},rotateZ:function(t){this.set("rotate",t)},rotate3d:function(t,e,n){void 0===e&&void 0===n&&(n=e=t),this.set("rotateX",t),this.set("rotateY",e),this.set("rotate",n)},skew:function(t,e){void 0===e&&(e=t),this.set("skewX",t),this.set("skewY",e)},skewX:function(t){this.setProp("skewX",t,"deg")},skewY:function(t){this.setProp("skewY",t,"deg")},pers:function(t){this.setProp("perspective",t,"px")}},getter:{x:function(){return this._translateX||"0"},y:function(){return this._translateY||"0"},z:function(){return this.translateZ||"0"},translateX:function(){return this.get("x")},translateY:function(){return this.get("y")},translateZ:function(){return this.get("z")},translate:function(){return[this.get("x"),this.get("y")]},translate3d:function(){return[this.get("x"),this.get("y"),this.get("z")]},scale:function(){var t=[this.get("scaleX"),this.get("scaleY")];return t[0]===t[1]?t[0]:t},scale3d:function(){return[this.get("scaleX"),this.get("scaleY"),this.get("scaleZ")]},scaleX:function(){return this._scaleX||"1"},scaleY:function(){return this._scaleY||"1"},scaleZ:function(){return this.scaleZ||"1"},rotate:function(t){return this.rotate||"0"},rotateX:function(t){return this.rotateX||"0"},rotateY:function(t){return this.rotateY||"0"},rotateZ:function(t){return this.get("rotate")},rotate3d:function(){return[this.get("rotateX"),this.get("rotateY"),this.get("rotate")]},skew:function(){return[this.get("skewX"),this.get("skewY")]},skewX:function(){return this.skewX||0},skewY:function(){return this.skewY||0},pers:function(){return this.perspective||0}},setProp:function(t,e,n){void 0!==e&&""!==e&&isNaN(parseFloat(e))&&(e=void 0),""===e?delete this[t]:void 0!==e&&(this[t]=v(e,n))},setDoubleProp:function(t,e,n,i){void 0===this["_"+t+"X"]&&(this["_"+t+"X"]=this.get(t+"X")),void 0===this["_"+t+"Y"]&&(this["_"+t+"Y"]=this.get(t+"Y")),void 0!==e&&""!==e&&isNaN(parseFloat(e))&&(e=void 0),void 0!==n&&""!==n&&isNaN(parseFloat(n))&&(n=void 0),""===e&&""===n?(delete this["_"+t+"X"],delete this["_"+t+"Y"],delete this[t]):(""===e?(delete this["_"+t+"X"],e=this.get(t+"X")):""===n&&(delete this["_"+t+"Y"],n=this.get(t+"Y")),void 0!==e&&(this["_"+t+"X"]=v(e,i)),void 0!==n&&(this["_"+t+"Y"]=v(n,i)),this[t]="scale"===t&&this["_"+t+"X"]===this["_"+t+"Y"]?this["_"+t+"X"]:this["_"+t+"X"]+","+this["_"+t+"Y"])},parse:function(t){var e=this;t.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(t,n,i){e.setFromString(n,i)})},toString:function(){var t=[];for(var e in this)if(this.hasOwnProperty(e)){if(!q.transform3d&&("rotateX"===e||"rotateY"===e||"translateZ"===e||"scaleZ"===e||"perspective"===e))continue;"_"!==e[0]&&t.push(e+"("+this[e]+")")}return t.join(" ")}},f.finish=function(){var e=t(this),n=e.data("bjj-transitionDelayRunParams");if(n){var i=n.queueParams.shift();i.callback=o(e,i.endProps,{},i.callback),e.css(i.endProps),c(this,i.callback)}};var Z=t.fn._animate=t.fn.animate;t.fn.animate=function(e,i,s,r){var a=!0,o={},u=t.extend({},e),c=i,f=s,d=r;"function"==typeof i?(r=i,i=void 0):t.isPlainObject(i)?(c=t.extend({},i),s=i.easing,a=void 0===i.queue||i.queue,o=i.specialEasing||o,r=i.complete,i=i.duration):"function"==typeof s&&(r=s,s=void 0),i||0===i||(i=t.fx.speeds._default),s||(s=t.cssEase._default),p(e);var v=q.transition;if(v&&("scrollLeft"in e||"scrollTop"in e)&&(v=!1),v){h(e,o);var g;for(var b in o){var y=o[b]=n(o[b]||s);if(void 0===y){v=!1;break}if(C[b]===q.transform){if(g&&g!==y){v=!1;break}g=y}}}return v?(null!=a&&!0!==a||(a="fx"),l.call(this,e,i,s,r,a,o)):(this.each(function(){try{null!=this.x&&delete this.x,null!=this.y&&delete this.y}catch(t){}}),Z.call(this,u,c,f,d))};var E=["X","Y","Z"],S=["translate","translate3d","scale","scale3d","rotate3d","skew"],N=new RegExp("^(?:([+-])=|)([+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|))([a-z%]*)$","i");Y.prototype={_bezierFunc:function(t,e,n){return this.begin[t]*Math.pow(1-e,3)+3*this.c1[t]*e*Math.pow(1-e,2)+3*this.c2[t]*(1-e)*Math.pow(e,2)+this.end[t]*Math.pow(e,3)-n},_deltaBezierFunc:function(t,e,n){return(this._bezierFunc(t,e,n)-this._bezierFunc(t,e-1e-8,n))/1e-8},set:function(t,e,n,i){this.c1=t?new P(t[0],t[1]):new P(0,0),this.c2=e?new P(e[0],e[1]):new P(1,1),this.begin=n?new P(n[0],n[1]):new P(0,0),this.end=i?new P(i[0],i[1]):new P(1,1)},getY:function(t){for(var e=.5,n=0;n<1e3&&(e-=this._bezierFunc("x",e,t)/this._deltaBezierFunc("x",e,t),0!==this._bezierFunc("x",e,t));n++);return this._bezierFunc("y",e,0)}};var B=new Y;return t});