/
var
/
www
/
barefootlaw.org
/
wp-content
/
plugins
/
bdthemes-prime-slider-lite
/
assets
/
vendor
/
js
/
Upload File
HOME
(function(){var t,e,n,r,o,i,s,a,l,u,f,h,p,c,m,d,g,y,v,b,w,x,M,S,k,T,C,H,R,q,X,I,Y,j,z,F,G,A,O,V,Z,E,L,D,P,W,N,U,$,B,K,J,Q,_,tt,et,nt,rt,ot,it,st,at=function(t,e){return function(){return t.apply(e,arguments)}};q=function(){return"visible"===document.visibilityState||null!=C.tests},rt=[],"undefined"!=typeof document&&null!==document&&document.addEventListener("visibilitychange",(function(){var t,e,n,r;for(r=[],e=0,n=rt.length;e<n;e++)t=rt[e],r.push(t(q()));return r})),z=function(t){return rt.push(t)},M=function(t){var e,n,r;for(e in n={},t)r=t[e],n[e]=r;return n},w=function(t){var e;return e={},function(){var n,r,o,i;for(n="",o=0,i=arguments.length;o<i;o++)n+=arguments[o].toString()+",";return(r=e[n])||(e[n]=r=t.apply(this,arguments)),r}},j=function(t){return function(e){var n,r,o;return e instanceof Array||e instanceof NodeList||e instanceof HTMLCollection?(o=function(){var o,i,s;for(s=[],r=o=0,i=e.length;0<=i?o<i:o>i;r=0<=i?++o:--o)(n=Array.prototype.slice.call(arguments,1)).splice(0,0,e[r]),s.push(t.apply(this,n));return s}.apply(this,arguments),o):t.apply(this,arguments)}},g=function(t,e){var n,r,o;for(n in o=[],e)r=e[n],o.push(null!=t[n]?t[n]:t[n]=r);return o},y=function(t,e){var n,r,o;if(null!=t.style)return v(t,e);for(n in o=[],e)r=e[n],o.push(t[n]=r.format());return o},v=function(t,e){var n,r,o,i,s;for(r in e=F(e),i=[],n=X(t),e)s=e[r],tt.contains(r)?i.push([r,s]):(null!=s.format&&(s=s.format()),"number"==typeof s&&(s=""+s+nt(r,s)),n&&B.contains(r)?t.setAttribute(r,s):t.style[A(r)]=s);if(i.length>0)return n?((o=new u).applyProperties(i),t.setAttribute("transform",o.decompose().format())):(s=i.map((function(t){return et(t[0],t[1])})).join(" "),t.style[A("transform")]=s)},X=function(t){var e,n;return"undefined"!=typeof SVGElement&&null!==SVGElement&&"undefined"!=typeof SVGSVGElement&&null!==SVGSVGElement?t instanceof SVGElement&&!(t instanceof SVGSVGElement):null!=(e=null!=(n=C.tests)&&"function"==typeof n.isSVG?n.isSVG(t):void 0)&&e},Z=function(t,e){var n;return n=Math.pow(10,e),Math.round(t*n)/n},f=function(){function t(t){var e,n,r;for(this.obj={},n=0,r=t.length;n<r;n++)e=t[n],this.obj[e]=1}return t.prototype.contains=function(t){return 1===this.obj[t]},t}(),_=function(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))},O=new f("marginTop,marginLeft,marginBottom,marginRight,paddingTop,paddingLeft,paddingBottom,paddingRight,top,left,bottom,right,translateX,translateY,translateZ,perspectiveX,perspectiveY,perspectiveZ,width,height,maxWidth,maxHeight,minWidth,minHeight,borderRadius".split(",")),T=new f("rotate,rotateX,rotateY,rotateZ,skew,skewX,skewY,skewZ".split(",")),tt=new f("translate,translateX,translateY,translateZ,scale,scaleX,scaleY,scaleZ,rotate,rotateX,rotateY,rotateZ,rotateC,rotateCX,rotateCY,skew,skewX,skewY,skewZ,perspective".split(",")),B=new f("accent-height,ascent,azimuth,baseFrequency,baseline-shift,bias,cx,cy,d,diffuseConstant,divisor,dx,dy,elevation,filterRes,fx,fy,gradientTransform,height,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,letter-spacing,limitingConeAngle,markerHeight,markerWidth,numOctaves,order,overline-position,overline-thickness,pathLength,points,pointsAtX,pointsAtY,pointsAtZ,r,radius,rx,ry,seed,specularConstant,specularExponent,stdDeviation,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,surfaceScale,target,targetX,targetY,transform,underline-position,underline-thickness,viewBox,width,x,x1,x2,y,y1,y2,z".split(",")),nt=function(t,e){return"number"!=typeof e?"":O.contains(t)?"px":T.contains(t)?"deg":""},et=function(t,e){var n,r;return null!=(n=(""+e).match(/^([0-9.-]*)([^0-9]*)$/))?(e=n[1],r=n[2]):e=parseFloat(e),e=Z(parseFloat(e),10),null!=r&&""!==r||(r=nt(t,e)),t+"("+e+r+")"},F=function(t){var e,n,r,o,i,s,a,l;for(o in r={},t)if(i=t[o],tt.contains(o))if((n=o.match(/(translate|rotateC|rotate|skew|scale|perspective)(X|Y|Z|)/))&&n[2].length>0)r[o]=i;else for(s=0,a=(l=["X","Y","Z"]).length;s<a;s++)e=l[s],r[n[1]+e]=i;else r[o]=i;return r},k=function(t){var e;return""+(e="opacity"===t?1:0)+nt(t,e)},H=function(t,e){var n,r,o,i,s,a,f,h,p,c,m;if(i={},n=X(t),null!=t.style)for(s=window.getComputedStyle(t,null),f=0,p=e.length;f<p;f++)r=e[f],tt.contains(r)?null==i.transform&&(o=n?new u(null!=(m=t.transform.baseVal.consolidate())?m.matrix:void 0):l.fromTransform(s[A("transform")]),i.transform=o.decompose()):(null==(a=s[r])&&B.contains(r)&&(a=t.getAttribute(r)),""!==a&&null!=a||(a=k(r)),i[r]=S(a));else for(h=0,c=e.length;h<c;h++)i[r=e[h]]=S(t[r]);return i},S=function(t){var e,n,o,l;for(o=0,l=(n=[r,s,i,a]).length;o<l;o++)if(null!=(e=n[o].create(t)))return e;return null},a=function(){function t(t){this.parts=t,this.format=at(this.format,this),this.interpolate=at(this.interpolate,this)}return t.prototype.interpolate=function(e,n){var r,o,i,s,a,l;for(s=this.parts,r=e.parts,i=[],o=a=0,l=Math.min(s.length,r.length);0<=l?a<l:a>l;o=0<=l?++a:--a)null!=s[o].interpolate?i.push(s[o].interpolate(r[o],n)):i.push(s[o]);return new t(i)},t.prototype.format=function(){return this.parts.map((function(t){return null!=t.format?t.format():t})).join("")},t.create=function(e){var n,r,s,a,l,u,f,h,p,c,m;for(e=""+e,s=[],h=0,c=(f=[{re:/(#[a-f\d]{3,6})/gi,klass:o,parse:function(t){return t}},{re:/(rgba?\([0-9.]*, ?[0-9.]*, ?[0-9.]*(?:, ?[0-9.]*)?\))/gi,klass:o,parse:function(t){return t}},{re:/([-+]?[\d.]+)/gi,klass:i,parse:parseFloat}]).length;h<c;h++)for(l=(u=f[h]).re;r=l.exec(e);)s.push({index:r.index,length:r[1].length,interpolable:u.klass.create(u.parse(r[1]))});for(a=[],n=0,p=0,m=(s=s.sort((function(t,e){return t.index>e.index?1:-1}))).length;p<m;p++)(r=s[p]).index<n||(r.index>n&&a.push(e.substring(n,r.index)),a.push(r.interpolable),n=r.index+r.length);return n<e.length&&a.push(e.substring(n)),new t(a)},t}(),s=function(){function t(t){this.format=at(this.format,this),this.interpolate=at(this.interpolate,this),this.obj=t}return t.prototype.interpolate=function(e,n){var r,o,i,s,a;for(o in s=this.obj,r=e.obj,i={},s)null!=(a=s[o]).interpolate?i[o]=a.interpolate(r[o],n):i[o]=a;return new t(i)},t.prototype.format=function(){return this.obj},t.create=function(e){var n,r,o;if(e instanceof Object){for(n in r={},e)o=e[n],r[n]=S(o);return new t(r)}return null},t}(),i=function(){function t(t){this.format=at(this.format,this),this.interpolate=at(this.interpolate,this),this.value=parseFloat(t)}return t.prototype.interpolate=function(e,n){var r;return r=this.value,new t((e.value-r)*n+r)},t.prototype.format=function(){return Z(this.value,5)},t.create=function(e){return"number"==typeof e?new t(e):null},t}(),r=function(){function t(t){this.values=t,this.format=at(this.format,this),this.interpolate=at(this.interpolate,this)}return t.prototype.interpolate=function(e,n){var r,o,i,s,a,l;for(s=this.values,r=e.values,i=[],o=a=0,l=Math.min(s.length,r.length);0<=l?a<l:a>l;o=0<=l?++a:--a)null!=s[o].interpolate?i.push(s[o].interpolate(r[o],n)):i.push(s[o]);return new t(i)},t.prototype.format=function(){return this.values.map((function(t){return null!=t.format?t.format():t}))},t.createFromArray=function(e){return new t(e.map((function(t){return S(t)||t})).filter((function(t){return null!=t})))},t.create=function(e){return e instanceof Array?t.createFromArray(e):null},t}(),t=function(){function t(t,e){this.rgb=null!=t?t:{},this.format=e,this.toRgba=at(this.toRgba,this),this.toRgb=at(this.toRgb,this),this.toHex=at(this.toHex,this)}return t.fromHex=function(e){var n,r;return null!=(n=e.match(/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i))&&(e="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),null!=(r=e.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i))?new t({r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16),a:1},"hex"):null},t.fromRgb=function(e){var n,r;return null!=(n=e.match(/^rgba?\(([0-9.]*), ?([0-9.]*), ?([0-9.]*)(?:, ?([0-9.]*))?\)$/))?new t({r:parseFloat(n[1]),g:parseFloat(n[2]),b:parseFloat(n[3]),a:parseFloat(null!=(r=n[4])?r:1)},null!=n[4]?"rgba":"rgb"):null},t.componentToHex=function(t){var e;return 1===(e=t.toString(16)).length?"0"+e:e},t.prototype.toHex=function(){return"#"+t.componentToHex(this.rgb.r)+t.componentToHex(this.rgb.g)+t.componentToHex(this.rgb.b)},t.prototype.toRgb=function(){return"rgb("+this.rgb.r+", "+this.rgb.g+", "+this.rgb.b+")"},t.prototype.toRgba=function(){return"rgba("+this.rgb.r+", "+this.rgb.g+", "+this.rgb.b+", "+this.rgb.a+")"},t}(),o=function(){function e(t){this.color=t,this.format=at(this.format,this),this.interpolate=at(this.interpolate,this)}return e.prototype.interpolate=function(n,r){var o,i,s,a,l,u,f,h;for(a=this.color,o=n.color,s={},u=0,f=(h=["r","g","b"]).length;u<f;u++)i=h[u],l=Math.round((o.rgb[i]-a.rgb[i])*r+a.rgb[i]),s[i]=Math.min(255,Math.max(0,l));return i="a",l=Z((o.rgb[i]-a.rgb[i])*r+a.rgb[i],5),s[i]=Math.min(1,Math.max(0,l)),new e(new t(s,o.format))},e.prototype.format=function(){return"hex"===this.color.format?this.color.toHex():"rgb"===this.color.format?this.color.toRgb():"rgba"===this.color.format?this.color.toRgba():void 0},e.create=function(n){var r;if("string"==typeof n)return null!=(r=t.fromHex(n)||t.fromRgb(n))?new e(r):null},e}(),n=function(){function t(t){this.props=t,this.applyRotateCenter=at(this.applyRotateCenter,this),this.format=at(this.format,this),this.interpolate=at(this.interpolate,this)}return t.prototype.interpolate=function(e,n){var r,o,i,s,a,l,u,f,h,p,c,m;for(i={},s=0,f=(p=["translate","scale","rotate"]).length;s<f;s++)for(i[o=p[s]]=[],r=a=0,c=this.props[o].length;0<=c?a<c:a>c;r=0<=c?++a:--a)i[o][r]=(e.props[o][r]-this.props[o][r])*n+this.props[o][r];for(r=l=1;l<=2;r=++l)i.rotate[r]=e.props.rotate[r];for(u=0,h=(m=["skew"]).length;u<h;u++)i[o=m[u]]=(e.props[o]-this.props[o])*n+this.props[o];return new t(i)},t.prototype.format=function(){return"translate("+this.props.translate.join(",")+") rotate("+this.props.rotate.join(",")+") skewX("+this.props.skew+") scale("+this.props.scale.join(",")+")"},t.prototype.applyRotateCenter=function(t){var e,n,r,o,i;for(n=(n=(n=(n=b.createSVGMatrix()).translate(t[0],t[1])).rotate(this.props.rotate[0])).translate(-t[0],-t[1]),r=new u(n).decompose().props.translate,i=[],e=o=0;o<=1;e=++o)i.push(this.props.translate[e]-=r[e]);return i},t}(),b="undefined"!=typeof document&&null!==document?document.createElementNS("http://www.w3.org/2000/svg","svg"):void 0,u=function(){function t(t){this.m=t,this.applyProperties=at(this.applyProperties,this),this.decompose=at(this.decompose,this),this.m||(this.m=b.createSVGMatrix())}return t.prototype.decompose=function(){var t,e,r,o,i;return o=new h([this.m.a,this.m.b]),i=new h([this.m.c,this.m.d]),t=o.length(),r=o.dot(i),o=o.normalize(),e=i.combine(o,1,-r).length(),new n({translate:[this.m.e,this.m.f],rotate:[180*Math.atan2(this.m.b,this.m.a)/Math.PI,this.rotateCX,this.rotateCY],scale:[t,e],skew:r/e*180/Math.PI})},t.prototype.applyProperties=function(t){var e,n,r,o,i,s,a,l;for(e={},i=0,s=t.length;i<s;i++)e[(r=t[i])[0]]=r[1];for(n in e)o=e[n],"translateX"===n?this.m=this.m.translate(o,0):"translateY"===n?this.m=this.m.translate(0,o):"scaleX"===n?this.m=this.m.scaleNonUniform(o,1):"scaleY"===n?this.m=this.m.scaleNonUniform(1,o):"rotateZ"===n?this.m=this.m.rotate(o):"skewX"===n?this.m=this.m.skewX(o):"skewY"===n&&(this.m=this.m.skewY(o));return this.rotateCX=null!=(a=e.rotateCX)?a:0,this.rotateCY=null!=(l=e.rotateCY)?l:0},t}(),h=function(){function t(t){this.els=t,this.combine=at(this.combine,this),this.normalize=at(this.normalize,this),this.length=at(this.length,this),this.cross=at(this.cross,this),this.dot=at(this.dot,this),this.e=at(this.e,this)}return t.prototype.e=function(t){return t<1||t>this.els.length?null:this.els[t-1]},t.prototype.dot=function(t){var e,n,r;if(e=t.els||t,r=0,(n=this.els.length)!==e.length)return null;for(n+=1;--n;)r+=this.els[n-1]*e[n-1];return r},t.prototype.cross=function(e){var n,r;return r=e.els||e,3!==this.els.length||3!==r.length?null:new t([(n=this.els)[1]*r[2]-n[2]*r[1],n[2]*r[0]-n[0]*r[2],n[0]*r[1]-n[1]*r[0]])},t.prototype.length=function(){var t,e,n,r,o;for(t=0,n=0,r=(o=this.els).length;n<r;n++)e=o[n],t+=Math.pow(e,2);return Math.sqrt(t)},t.prototype.normalize=function(){var e,n,r,o,i;for(n in r=this.length(),o=[],i=this.els)e=i[n],o[n]=e/r;return new t(o)},t.prototype.combine=function(e,n,r){var o,i,s,a;for(i=[],o=s=0,a=this.els.length;0<=a?s<a:s>a;o=0<=a?++s:--s)i[o]=n*this.els[o]+r*e.els[o];return new t(i)},t}(),e=function(){function t(){this.toMatrix=at(this.toMatrix,this),this.format=at(this.format,this),this.interpolate=at(this.interpolate,this)}return t.prototype.interpolate=function(e,n,r){var o,i,s,a,l,u,f,h,p,c,m,d,g,y,v,b,w,x;for(null==r&&(r=null),s=this,i=new t,d=0,b=(w=["translate","scale","skew","perspective"]).length;d<b;d++)for(i[f=w[d]]=[],a=g=0,x=s[f].length-1;0<=x?g<=x:g>=x;a=0<=x?++g:--g)null==r||r.indexOf(f)>-1||r.indexOf(""+f+["x","y","z"][a])>-1?i[f][a]=(e[f][a]-s[f][a])*n+s[f][a]:i[f][a]=s[f][a];if(null==r||-1!==r.indexOf("rotate")){if(h=s.quaternion,p=e.quaternion,(o=h[0]*p[0]+h[1]*p[1]+h[2]*p[2]+h[3]*p[3])<0){for(a=y=0;y<=3;a=++y)h[a]=-h[a];o=-o}for(o+1>.05?1-o>=.05?(m=Math.acos(o),u=1/Math.sin(m),c=Math.sin(m*(1-n))*u,l=Math.sin(m*n)*u):(c=1-n,l=n):(p[0]=-h[1],p[1]=h[0],p[2]=-h[3],p[3]=h[2],c=Math.sin(piDouble*(.5-n)),l=Math.sin(piDouble*n)),i.quaternion=[],a=v=0;v<=3;a=++v)i.quaternion[a]=h[a]*c+p[a]*l}else i.quaternion=s.quaternion;return i},t.prototype.format=function(){return this.toMatrix().toString()},t.prototype.toMatrix=function(){var t,e,n,r,o,i,s,a,u,f,h,p,c,m,d,g;for(t=this,o=l.I(4),e=c=0;c<=3;e=++c)o.els[e][3]=t.perspective[e];for(f=(i=t.quaternion)[0],h=i[1],p=i[2],u=i[3],s=t.skew,r=[[1,0],[2,0],[2,1]],e=m=2;m>=0;e=--m)s[e]&&((a=l.I(4)).els[r[e][0]][r[e][1]]=s[e],o=o.multiply(a));for(o=o.multiply(new l([[1-2*(h*h+p*p),2*(f*h-p*u),2*(f*p+h*u),0],[2*(f*h+p*u),1-2*(f*f+p*p),2*(h*p-f*u),0],[2*(f*p-h*u),2*(h*p+f*u),1-2*(f*f+h*h),0],[0,0,0,1]])),e=d=0;d<=2;e=++d){for(n=g=0;g<=2;n=++g)o.els[e][n]*=t.scale[e];o.els[3][e]=t.translate[e]}return o},t}(),l=function(){function t(t){this.els=t,this.toString=at(this.toString,this),this.decompose=at(this.decompose,this),this.inverse=at(this.inverse,this),this.augment=at(this.augment,this),this.toRightTriangular=at(this.toRightTriangular,this),this.transpose=at(this.transpose,this),this.multiply=at(this.multiply,this),this.dup=at(this.dup,this),this.e=at(this.e,this)}return t.prototype.e=function(t,e){return t<1||t>this.els.length||e<1||e>this.els[0].length?null:this.els[t-1][e-1]},t.prototype.dup=function(){return new t(this.els)},t.prototype.multiply=function(e){var n,r,o,i,s,a,l,u,f,h,p,c,m;for(c=!!e.modulus,void 0===(n=e.els||e)[0][0]&&(n=new t(n).els),l=h=this.els.length,u=n[0].length,o=this.els[0].length,i=[],h+=1;--h;)for(i[s=l-h]=[],p=u,p+=1;--p;){for(a=u-p,m=0,f=o,f+=1;--f;)r=o-f,m+=this.els[s][r]*n[r][a];i[s][a]=m}return n=new t(i),c?n.col(1):n},t.prototype.transpose=function(){var e,n,r,o,i,s,a;for(a=this.els.length,n=[],i=e=this.els[0].length,i+=1;--i;)for(n[r=e-i]=[],s=a,s+=1;--s;)o=a-s,n[r][o]=this.els[o][r];return new t(n)},t.prototype.toRightTriangular=function(){var t,e,n,r,o,i,s,a,l,u,f,h,p,c;for(t=this.dup(),o=a=this.els.length,i=this.els[0].length;--a;){if(n=o-a,0===t.els[n][n])for(r=f=p=n+1;p<=o?f<o:f>o;r=p<=o?++f:--f)if(0!==t.els[r][n]){for(e=[],l=i,l+=1;--l;)u=i-l,e.push(t.els[n][u]+t.els[r][u]);t.els[n]=e;break}if(0!==t.els[n][n])for(r=h=c=n+1;c<=o?h<o:h>o;r=c<=o?++h:--h){for(s=t.els[r][n]/t.els[n][n],e=[],l=i,l+=1;--l;)u=i-l,e.push(u<=n?0:t.els[r][u]-t.els[n][u]*s);t.els[r]=e}}return t},t.prototype.augment=function(e){var n,r,o,i,s,a,l,u,f;if(void 0===(n=e.els||e)[0][0]&&(n=new t(n).els),o=(r=this.dup()).els[0].length,a=u=r.els.length,l=n[0].length,u!==n.length)return null;for(u+=1;--u;)for(i=a-u,f=l,f+=1;--f;)s=l-f,r.els[i][o+s]=n[i][s];return r},t.prototype.inverse=function(){var e,n,r,o,i,s,a,l,u,f,h,p,c;for(a=f=this.els.length,l=(e=this.augment(t.I(f)).toRightTriangular()).els[0].length,i=[],f+=1;--f;){for(r=[],h=l,i[o=f-1]=[],n=e.els[o][o],h+=1;--h;)p=l-h,u=e.els[o][p]/n,r.push(u),p>=a&&i[o].push(u);for(e.els[o]=r,s=c=0;0<=o?c<o:c>o;s=0<=o?++c:--c){for(r=[],h=l,h+=1;--h;)p=l-h,r.push(e.els[s][p]-e.els[o][p]*e.els[s][o]);e.els[s]=r}}return new t(i)},t.I=function(e){var n,r,o,i,s;for(n=[],i=e,e+=1;--e;)for(n[r=i-e]=[],s=i,s+=1;--s;)o=i-s,n[r][o]=r===o?1:0;return new t(n)},t.prototype.decompose=function(){var t,n,r,o,i,s,a,l,u,f,p,c,m,d,g,y,v,b,w,x,M,S,k,T,C,H,R,q,X,I,Y,j,z,F,G;for(this,b=[],g=[],y=[],[],s=[],t=[],n=H=0;H<=3;n=++H)for(t[n]=[],r=R=0;R<=3;r=++R)t[n][r]=this.els[n][r];if(0===t[3][3])return!1;for(n=q=0;q<=3;n=++q)for(r=X=0;X<=3;r=++X)t[n][r]/=t[3][3];for(a=this.dup(),n=I=0;I<=2;n=++I)a.els[n][3]=0;if(a.els[3][3]=1,0!==t[0][3]||0!==t[1][3]||0!==t[2][3]){for(f=new h(t.slice(0,4)[3]),s=a.inverse().transpose().multiply(f).els,n=Y=0;Y<=2;n=++Y)t[n][3]=0;t[3][3]=1}else s=[0,0,0,1];for(n=j=0;j<=2;n=++j)b[n]=t[3][n],t[3][n]=0;for(c=[],n=z=0;z<=2;n=++z)c[n]=new h(t[n].slice(0,3));if(g[0]=c[0].length(),c[0]=c[0].normalize(),y[0]=c[0].dot(c[1]),c[1]=c[1].combine(c[0],1,-y[0]),g[1]=c[1].length(),c[1]=c[1].normalize(),y[0]/=g[1],y[1]=c[0].dot(c[2]),c[2]=c[2].combine(c[0],1,-y[1]),y[2]=c[1].dot(c[2]),c[2]=c[2].combine(c[1],1,-y[2]),g[2]=c[2].length(),c[2]=c[2].normalize(),y[1]/=g[2],y[2]/=g[2],i=c[1].cross(c[2]),c[0].dot(i)<0)for(n=F=0;F<=2;n=++F)for(g[n]*=-1,r=G=0;G<=2;r=++G)c[n].els[r]*=-1;for(x in m=function(t,e){return c[t].els[e]},(p=[])[1]=Math.asin(-m(0,2)),0!==Math.cos(p[1])?(p[0]=Math.atan2(m(1,2),m(2,2)),p[2]=Math.atan2(m(0,1),m(0,0))):(p[0]=Math.atan2(-m(2,0),m(1,1)),p[1]=0),(v=m(0,0)+m(1,1)+m(2,2)+1)>1e-4?(S=.25/(d=.5/Math.sqrt(v)),k=(m(2,1)-m(1,2))*d,T=(m(0,2)-m(2,0))*d,C=(m(1,0)-m(0,1))*d):m(0,0)>m(1,1)&&m(0,0)>m(2,2)?(k=.25*(d=2*Math.sqrt(1+m(0,0)-m(1,1)-m(2,2))),T=(m(0,1)+m(1,0))/d,C=(m(0,2)+m(2,0))/d,S=(m(2,1)-m(1,2))/d):m(1,1)>m(2,2)?(d=2*Math.sqrt(1+m(1,1)-m(0,0)-m(2,2)),k=(m(0,1)+m(1,0))/d,T=.25*d,C=(m(1,2)+m(2,1))/d,S=(m(0,2)-m(2,0))/d):(d=2*Math.sqrt(1+m(2,2)-m(0,0)-m(1,1)),k=(m(0,2)+m(2,0))/d,T=(m(1,2)+m(2,1))/d,C=.25*d,S=(m(1,0)-m(0,1))/d),l=[k,T,C,S],(u=new e).translate=b,u.scale=g,u.skew=y,u.quaternion=l,u.perspective=s,u.rotate=p,u)for(o in w=u[x])M=w[o],isNaN(M)&&(w[o]=0);return u},t.prototype.toString=function(){var t,e,n,r,o;for(n="matrix3d(",t=r=0;r<=3;t=++r)for(e=o=0;o<=3;e=++o)n+=Z(this.els[t][e],10),3===t&&3===e||(n+=",");return n+=")"},t.matrixForTransform=w((function(t){var e,n,r,o,i,s;return(e=document.createElement("div")).style.position="absolute",e.style.visibility="hidden",e.style[A("transform")]=t,document.body.appendChild(e),n=null!=(o=null!=(i=(r=window.getComputedStyle(e,null)).transform)?i:r[A("transform")])?o:null!=(s=C.tests)?s.matrixForTransform(t):void 0,document.body.removeChild(e),n})),t.fromTransform=function(e){var n,r,o,i,s,a;for(r=(i=null!=e?e.match(/matrix3?d?\(([-0-9,e \.]*)\)/):void 0)?6===(n=(n=i[1].split(",")).map(parseFloat)).length?[n[0],n[1],0,0,n[2],n[3],0,0,0,0,1,0,n[4],n[5],0,1]:n:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],s=[],o=a=0;a<=3;o=++a)s.push(r.slice(4*o,4*o+4));return new t(s)},t}(),G=w((function(t){var e,n,r,o,i,s,a,l,u,f;if(void 0!==document.body.style[t])return"";for(i="",s=0,l=(o=t.split("-")).length;s<l;s++)i+=(r=o[s]).substring(0,1).toUpperCase()+r.substring(1);for(a=0,u=(f=["Webkit","Moz","ms"]).length;a<u;a++)if(e=(n=f[a])+i,void 0!==document.body.style[e])return n;return""})),A=w((function(t){var e;return"Moz"===(e=G(t))?""+e+(t.substring(0,1).toUpperCase()+t.substring(1)):""!==e?"-"+e.toLowerCase()+"-"+_(t):_(t)})),V="undefined"!=typeof window&&null!==window?window.requestAnimationFrame:void 0,m=[],d=[],W=!1,N=1,"undefined"!=typeof window&&null!==window&&window.addEventListener("keyup",(function(t){if(68===t.keyCode&&t.shiftKey&&t.ctrlKey)return C.toggleSlow()})),null==V&&(I=0,V=function(t){var e,n,r;return e=Date.now(),r=Math.max(0,16-(e-I)),n=window.setTimeout((function(){return t(e+r)}),r),I=e+r,n}),L=!1,E=!1,$=function(){if(!L)return L=!0,V(D)},D=function(t){var e,n,r,o;if(!E){for(n=[],r=0,o=m.length;r<o;r++)e=m[r],c(t,e)||n.push(e);return m=m.filter((function(t){return-1===n.indexOf(t)})),0===m.length?L=!1:V(D)}V(D)},c=function(t,e){var n,r,o,i,s,a,l,u;if(null==e.tStart&&(e.tStart=t),i=(t-e.tStart)/e.options.duration,s=e.curve(i),r={},i>=1)r=e.curve.returnsToSelf?e.properties.start:e.properties.end;else for(n in u=e.properties.start)o=u[n],r[n]=R(o,e.properties.end[n],s);return y(e.el,r),"function"==typeof(a=e.options).change&&a.change(e.el,Math.min(1,i)),i>=1&&"function"==typeof(l=e.options).complete&&l.complete(e.el),i<1},R=function(t,e,n){return null!=t&&null!=t.interpolate?t.interpolate(e,n):null},U=function(t,e,n,r){var o,s,f,h,p,c,g,y;if(null!=r&&(d=d.filter((function(t){return t.id!==r}))),C.stop(t,{timeout:!1}),!n.animated)return C.css(t,e),void("function"==typeof n.complete&&n.complete(this));for(h in e=F(e),c=H(t,Object.keys(e)),o={},g=[],e)y=e[h],null!=t.style&&tt.contains(h)?g.push([h,y]):((s=S(y))instanceof i&&null!=t.style&&(s=new a([s,nt(h,0)])),o[h]=s);return g.length>0&&((f=X(t))?(p=new u).applyProperties(g):(y=g.map((function(t){return et(t[0],t[1])})).join(" "),p=l.fromTransform(l.matrixForTransform(y))),o.transform=p.decompose(),f&&c.transform.applyRotateCenter([o.transform.props.rotate[1],o.transform.props.rotate[2]])),m.push({el:t,properties:{start:c,end:o},options:n,curve:n.type.call(n.type,n)}),$()},Q=[],J=0,P=function(t){if(q())return t.realTimeoutId=setTimeout((function(){return t.fn(),x(t.id)}),t.delay)},p=function(t,e){var n;return n={id:J+=1,tStart:Date.now(),fn:t,delay:e,originalDelay:e},P(n),Q.push(n),J},x=function(t){return Q=Q.filter((function(e){return e.id===t&&clearTimeout(e.realTimeoutId),e.id!==t}))},Y=function(t,e){var n;return null!=t?(n=t-e.tStart,e.originalDelay-n):e.originalDelay},"undefined"!=typeof window&&null!==window&&window.addEventListener("unload",(function(){})),K=null,z((function(t){var e,n,r,o,i,s,a,l,u,f;if(E=!t,t){if(L)for(n=Date.now()-K,i=0,l=m.length;i<l;i++)null!=(e=m[i]).tStart&&(e.tStart+=n);for(s=0,u=Q.length;s<u;s++)(r=Q[s]).delay=Y(K,r),P(r);return K=null}for(K=Date.now(),f=[],o=0,a=Q.length;o<a;o++)r=Q[o],f.push(clearTimeout(r.realTimeoutId));return f})),(C={}).linear=function(){return function(t){return t}},C.spring=function(t){var e,n,r,o,i;return null==t&&(t={}),g(t,C.spring.defaults),r=Math.max(1,t.frequency/20),o=Math.pow(20,t.friction/100),i=t.anticipationSize/1e3,Math.max(0,i),e=function(e){var n,r;return.8,0,(.8-(n=((r=i/(1-i))-0)/(r-0)))/r*e*t.anticipationStrength/100+n},n=function(t){return Math.pow(o/10,-t)*(1-t)},function(t){var o,s,a,l,u,f,h,p;return f=t/(1-i)-i/(1-i),t<i?(p=i/(1-i)-i/(1-i),h=0/(1-i)-i/(1-i),u=Math.acos(1/e(p)),a=(Math.acos(1/e(h))-u)/(r*-i),o=e):(o=n,u=0,a=1),s=o(f),l=r*(t-i)*a+u,1-s*Math.cos(l)}},C.bounce=function(t){var e,n,r,o;return null==t&&(t={}),g(t,C.bounce.defaults),r=Math.max(1,t.frequency/20),o=Math.pow(20,t.friction/100),e=function(t){return Math.pow(o/10,-t)*(1-t)},(n=function(t){var n,o;return-1.57,1,n=e(t),o=r*t*1-1.57,n*Math.cos(o)}).returnsToSelf=!0,n},C.gravity=function(t){var e,n,r,o,i,s;return null==t&&(t={}),g(t,C.gravity.defaults),n=Math.min(t.bounciness/1250,.8),o=t.elasticity/1e3,100,r=[],e=function(){var r,o;for(o={a:-(r=Math.sqrt(.02)),b:r,H:1},t.returnsToSelf&&(o.a=0,o.b=2*o.b);o.H>.001;)e=o.b-o.a,o={a:o.b,b:o.b+e*n,H:o.H*n*n};return o.b}(),s=function(n,r,o,i){var s,a;return s=(a=2/(e=r-n)*i-1-2*n/e)*a*o-o+1,t.returnsToSelf&&(s=1-s),s},function(){var i,s,a,l;for(a={a:-(s=Math.sqrt(2/(100*e*e))),b:s,H:1},t.returnsToSelf&&(a.a=0,a.b=2*a.b),r.push(a),i=e,l=[];a.b<1&&a.H>.001;)i=a.b-a.a,a={a:a.b,b:a.b+i*n,H:a.H*o},l.push(r.push(a))}(),(i=function(e){var n,o;for(n=r[o=0];!(e>=n.a&&e<=n.b)&&(n=r[o+=1]););return n?s(n.a,n.b,n.H,e):t.returnsToSelf?0:1}).returnsToSelf=t.returnsToSelf,i},C.forceWithGravity=function(t){return null==t&&(t={}),g(t,C.forceWithGravity.defaults),t.returnsToSelf=!0,C.gravity(t)},C.bezier=(it=function(t,e,n,r,o){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*n+3*(1-t)*Math.pow(t,2)*r+Math.pow(t,3)*o},ot=function(t,e,n,r,o){return{x:it(t,e.x,n.x,r.x,o.x),y:it(t,e.y,n.y,r.y,o.y)}},st=function(t,e,n){var r,o,i,s,a,l,u,f,h;for(r=null,f=0,h=e.length;f<h&&(t>=(o=e[f])(0).x&&t<=o(1).x&&(r=o),null===r);f++);if(!r)return n?0:1;for(u=r(a=((l=1)+(s=0))/2).x,i=0;Math.abs(t-u)>1e-4&&i<100;)t>u?s=a:l=a,u=r(a=(l+s)/2).x,i+=1;return r(a).y},function(t){var e,n,r;return null==t&&(t={}),r=t.points,e=function(){var t,n,o;for(t in e=[],o=function(t,n){var r;return r=function(e){return ot(e,t,t.cp[t.cp.length-1],n.cp[0],n)},e.push(r)},r){if((n=parseInt(t))>=r.length-1)break;o(r[n],r[n+1])}return e}(),(n=function(t){return 0===t?0:1===t?1:st(t,e,this.returnsToSelf)}).returnsToSelf=0===r[r.length-1].y,n}),C.easeInOut=function(t){var e,n;return null==t&&(t={}),e=null!=(n=t.friction)?n:C.easeInOut.defaults.friction,C.bezier({points:[{x:0,y:0,cp:[{x:.92-e/1e3,y:0}]},{x:1,y:1,cp:[{x:.08+e/1e3,y:1}]}]})},C.easeIn=function(t){var e,n;return null==t&&(t={}),e=null!=(n=t.friction)?n:C.easeIn.defaults.friction,C.bezier({points:[{x:0,y:0,cp:[{x:.92-e/1e3,y:0}]},{x:1,y:1,cp:[{x:1,y:1}]}]})},C.easeOut=function(t){var e,n;return null==t&&(t={}),e=null!=(n=t.friction)?n:C.easeOut.defaults.friction,C.bezier({points:[{x:0,y:0,cp:[{x:0,y:0}]},{x:1,y:1,cp:[{x:.08+e/1e3,y:1}]}]})},C.spring.defaults={frequency:300,friction:200,anticipationSize:0,anticipationStrength:0},C.bounce.defaults={frequency:300,friction:200},C.forceWithGravity.defaults=C.gravity.defaults={bounciness:400,elasticity:200},C.easeInOut.defaults=C.easeIn.defaults=C.easeOut.defaults={friction:500},C.css=j((function(t,e){return v(t,e,!0)})),C.animate=j((function(t,e,n){var r;return null==n&&(n={}),n=M(n),g(n,{type:C.easeInOut,duration:1e3,delay:0,animated:!0}),n.duration=Math.max(0,n.duration*N),n.delay=Math.max(0,n.delay),0===n.delay?U(t,e,n):(r=C.setTimeout((function(){return U(t,e,n,r)}),n.delay),d.push({id:r,el:t}))})),C.stop=j((function(t,e){return null==e&&(e={}),null==e.timeout&&(e.timeout=!0),e.timeout&&(d=d.filter((function(n){return n.el!==t||null!=e.filter&&!e.filter(n)||(C.clearTimeout(n.id),!1)}))),m=m.filter((function(e){return e.el!==t}))})),C.setTimeout=function(t,e){return p(t,e*N)},C.clearTimeout=function(t){return x(t)},C.toggleSlow=function(){return N=(W=!W)?3:1,"undefined"!=typeof console&&null!==console&&"function"==typeof console.log?console.log("dynamics.js: slow animations "+(W?"enabled":"disabled")):void 0},"object"==typeof module&&"object"==typeof module.exports?module.exports=C:"function"==typeof define?define("dynamics",(function(){return C})):window.dynamics=C}).call(this);