tencentcloud-webar 1.0.23-9 → 1.0.23

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.
Binary file
@@ -1 +1 @@
1
- var self = wx;var a4bt=a4b;(function(a,b){var bs=a4b,c=a();while(!![]){try{var d=parseInt(bs(0x219))/0x1+parseInt(bs(0x27d))/0x2*(-parseInt(bs(0x203))/0x3)+parseInt(bs(0x1da))/0x4+parseInt(bs(0x2c8))/0x5+parseInt(bs(0x22c))/0x6*(parseInt(bs(0x2d4))/0x7)+parseInt(bs(0x32e))/0x8+-parseInt(bs(0x1b4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4a,0x1b17c),(self[a4bt(0x1b7)]=self[a4bt(0x1b7)]||[])[a4bt(0x245)]([[0x141],{0x1419:(a0,a1,a2)=>{var c3=a4bt;a2['d'](a1,{'g':()=>aU,'b':()=>aT});var a3,a4=a2(0x4b6),a5=a2(0x1f15),a6=a2(0xbe4),a7=a2(0x15a0),a8=a2(0x24f3),a9=a2(0x2558),aa=a2(0x543),ab=a2(0x43c),ac=a2(0xf09),ad=(a3=function(aV,aW){return a3=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(aX,aY){aX['__proto__']=aY;}||function(aX,aY){var bu=a4b;for(var aZ in aY)Object[bu(0x2d2)]['hasOwnProperty'][bu(0x2d9)](aY,aZ)&&(aX[aZ]=aY[aZ]);},a3(aV,aW);},function(aV,aW){var bv=a4b;if(bv(0x183)!=typeof aW&&null!==aW)throw new TypeError(bv(0x18c)+String(aW)+bv(0x207));function aX(){this['constructor']=aV;}a3(aV,aW),aV[bv(0x2d2)]=null===aW?Object['create'](aW):(aX[bv(0x2d2)]=aW[bv(0x2d2)],new aX());}),ae=function(aV,aW,aX,aY){var bw=a4b,aZ,b0=arguments[bw(0x299)],b1=b0<0x3?aW:null===aY?aY=Object[bw(0x2c0)](aW,aX):aY;if(bw(0x1e5)==typeof Reflect&&bw(0x183)==typeof Reflect[bw(0x21c)])b1=Reflect[bw(0x21c)](aV,aW,aX,aY);else{for(var b2=aV['length']-0x1;b2>=0x0;b2--)(aZ=aV[b2])&&(b1=(b0<0x3?aZ(b1):b0>0x3?aZ(aW,aX,b1):aZ(aW,aX))||b1);}return b0>0x3&&b1&&Object['defineProperty'](aW,aX,b1),b1;},af=function(aV,aW){var bx=a4b;if('object'==typeof Reflect&&bx(0x183)==typeof Reflect['metadata'])return Reflect['metadata'](aV,aW);},ag=(function(){var bz=a4b;function aV(aW,aX,aY,aZ,b0,b1){var by=a4b;this[by(0x195)]=!0x1,this['type']=by(0x22a),this[by(0x292)]=0x1,this[by(0x301)]=0x1,this[by(0x271)]=[],this['_dir']=aX,this[by(0x2ca)]=aW,this[by(0x2e2)]=aY,this[by(0x1fa)]=b1,this[by(0x19a)]=aZ,this['type']=b0||by(0x22a);}return Object[bz(0x2f6)](aV['prototype'],bz(0x30e),{'get':function(){var bA=bz;return this[bA(0x292)];},'set':function(aW){var bB=bz;this[bB(0x2dc)]&&(this[bB(0x2dc)]['uniforms'][bB(0x30e)]=aW),this[bB(0x292)]=aW;},'enumerable':!0x1,'configurable':!0x0}),Object[bz(0x2f6)](aV['prototype'],bz(0x304),{'set':function(aW){var bC=bz;null===aW?(this[bC(0x192)][bC(0x21f)](this[bC(0x2d1)]),this[bC(0x192)]['mask']=aW):(this[bC(0x192)][bC(0x29c)](aW),this['_mesh'][bC(0x2cc)]=aW,this[bC(0x2d1)]=aW);},'enumerable':!0x1,'configurable':!0x0}),Object[bz(0x2f6)](aV[bz(0x2d2)],bz(0x316),{'set':function(aW){var bD=bz;this[bD(0x2dc)]&&(this[bD(0x2dc)][bD(0x28e)][bD(0x1d4)]=aW?0x1:0x0);},'enumerable':!0x1,'configurable':!0x0}),aV[bz(0x2d2)][bz(0x2bb)]=function(aW){var bE=bz;this[bE(0x195)];},aV['prototype']['renderMesh']=function(){},aV['prototype'][bz(0x205)]=function(aW,aX){var bF=bz,aY=this;if(!this[bF(0x195)]){var aZ=Array['from'](aW[bF(0x32a)](function(b8,b9){var bG=bF;return b8[bG(0x24e)](b9['blend']),b8;},new Set()));this['irisRenderTexture']&&!aZ[bF(0x1e3)](this[bF(0x296)])&&aZ[bF(0x245)](this['irisBlendMode']);var b0='\x0a\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20varying\x20vec2\x20bUvs;\x0a\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20'['concat'](aW[bF(0x194)](function(b8,b9){var bH=bF;return'uniform\x20sampler2D\x20uSamplerMakeup'[bH(0x286)](b9,';');})[bF(0x1bd)]('\x0a'),bF(0x1ea))[bF(0x286)](aW[bF(0x194)](function(b8,b9){var bI=bF;return bI(0x32c)['concat'](b9,';');})[bF(0x1bd)]('\x0a'),bF(0x1cc))[bF(0x286)](aZ[bF(0x194)](function(b8){return a9['Lc'][b8]['shader'];})[bF(0x1bd)]('\x0a'),'\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20if\x20(enable\x20==\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(0.0,0.0,0.0,0.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20todo:适配镜像与非镜像\x0a\x20\x20\x20\x20\x20\x20vec2\x20baseCoord\x20=\x20bUvs;\x0a\x20\x20\x20\x20\x20\x20baseCoord\x20+=\x20imageOffset;\x0a\x20\x20\x20\x20\x20\x20//\x20if\x20(mirror\x20==\x201)\x20{\x0a\x20\x20\x20\x20\x20\x20//\x20\x20\x20baseCoord\x20=\x20vec2(1.0\x20-\x20bUvs.x,\x20bUvs.y);\x0a\x20\x20\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20\x20\x20vec4\x20baseColor\x20=\x20texture2D(baseImage,\x20\x20baseCoord);\x0a\x0a\x20\x20\x20\x20\x20\x20vec4\x20makeupColor\x20=\x20vec4(0.0);\x0a\x0a\x20\x20\x20\x20\x20\x20')[bF(0x286)](aW[bF(0x194)](function(b8,b9){var bJ=bF;return'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color'[bJ(0x286)](b9,bJ(0x1f5))[bJ(0x286)](b9,bJ(0x188))[bJ(0x286)](b9,bJ(0x255))[bJ(0x286)](b9,bJ(0x1d2))['concat'](b9,bJ(0x317))[bJ(0x286)](b9,'\x20*\x20parentIntensity;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20makeupColor\x20=\x20texture2D(uSamplerMakeup')[bJ(0x286)](b9,bJ(0x2ac))[bJ(0x286)](b9,bJ(0x241))[bJ(0x286)](a9['Lc'][b8[bJ(0x23a)]][bJ(0x231)],bJ(0x1c1));})['join']('\x0a'),bF(0x1b6))['concat'](this[bF(0x291)]?bF(0x1b9)['concat'](a9['Lc'][this[bF(0x296)]]['key'],'(baseColor.rgb,\x20irisColor.rgb/irisColor.a\x20,\x20irisColor.a);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20'):'','\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20输出\x0a\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20baseColor;\x0a\x20\x20\x20\x20}'),b1={'enable':0x1};b1[bF(0x30e)]=this[bF(0x30e)];var b2=this[bF(0x2ca)],b3=b2[bF(0x311)],b4=b2['height'];b1[bF(0x2cd)]=aT[bF(0x2af)],b1[bF(0x2ed)]=[b3*b4/aT[bF(0x2af)][bF(0x268)],b4];var b5=aT['baseTexture'][bF(0x311)]*b4/aT['baseTexture'][bF(0x268)];b1[bF(0x23e)]=[(b5-b3)/0x2/b5,0x0],aW[bF(0x2bd)](function(b8,b9){var bK=bF,ba='default'===aY[bK(0x238)]?b8[bK(0x298)]:''[bK(0x286)](aY[bK(0x238)],'|')[bK(0x286)](b8[bK(0x298)]),bb=a4[bK(0x1be)][bK(0x2d0)][ba];b1[bK(0x1dc)['concat'](b9)]=bb,b1[bK(0x2db)[bK(0x286)](b9)]=b8[bK(0x2db)],aY[bK(0x271)][bK(0x245)](bb);}),this[bF(0x291)]&&(b1['uSamplerIris']=this[bF(0x291)]);var b6=a4[bF(0x235)]['from'](bF(0x2c7),b0,b1);this[bF(0x2dc)]=b6,ac['t'][bF(0x29f)]['on']('mirrorChange',function(b8){});var b7=new a9['Kj'](aX,b6);return this[bF(0x192)]=b7,this[bF(0x2e2)][bF(0x29c)](b7),b7;}},aV[bz(0x2d2)][bz(0x267)]=function(){var bL=bz;this[bL(0x195)]=!0x0,this[bL(0x192)]&&(this[bL(0x192)]['destroy']({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this['_mesh'][bL(0x2cc)]=null,this[bL(0x192)]=null),this['_maskRenderTexure']&&this[bL(0x312)]['destroy'](!0x1);},ae([(0x0,ab['M'])('MakeupLayer'),af(bz(0x31b),Function),af('design:paramtypes',[Array]),af(bz(0x20e),void 0x0)],aV[bz(0x2d2)],bz(0x2bb),null),ae([(0x0,ab['M'])('MakeupLayer'),af(bz(0x31b),Function),af(bz(0x281),[]),af('design:returntype',void 0x0)],aV[bz(0x2d2)],bz(0x267),null),aV;}()),ah=function(aV){var bN=a4b;function aW(aZ,b0,b1,b2,b3,b4,b5){var bM=a4b,b6=aV['call'](this,aZ,b0,b5)||this;return b6[bM(0x1f6)]=new a4['Graphics'](),b6[bM(0x2ab)]=0x0,b6[bM(0x253)]=0x0,b6[bM(0x292)]=0x1,b6[bM(0x227)]=b3,b6[bM(0x2e5)](b1,b2),b6['_config']=b4,b6[bM(0x1fc)]=a4[bM(0x1f4)][bM(0x2d6)]({'width':aZ['width'],'height':aZ[bM(0x268)]}),b6;}var aX,aY;return ad(aW,aV),Object[bN(0x2f6)](aW['prototype'],bN(0x30e),{'get':function(){var bO=bN;return this[bO(0x292)];},'set':function(aZ){var bP=bN;this[bP(0x2e2)]&&(this[bP(0x2e2)][bP(0x275)]=this[bP(0x227)]*aZ),this[bP(0x292)]=aZ;},'enumerable':!0x1,'configurable':!0x0}),Object[bN(0x2f6)](aW[bN(0x2d2)],bN(0x316),{'set':function(aZ){this['_container']['visible']=aZ;},'enumerable':!0x1,'configurable':!0x0}),aW['prototype']['getTexture']=function(aZ,b0){var bQ=bN,b1=bQ(0x2c9)===this[bQ(0x238)]?aZ:''[bQ(0x286)](this[bQ(0x238)],'|')[bQ(0x286)](aZ),b2=a4[bQ(0x1be)][bQ(0x2d0)][b1],b3=new a9['jy'](b2),b4=new a9['jy'](b2[bQ(0x2fd)]());b3[bQ(0x1a7)][bQ(0x1ca)](0.5),b4[bQ(0x1a7)][bQ(0x1ca)](0.5),this['_leftIris']=b3,this['_rightIris']=b4;var b5=new a4[(bQ(0x31d))]();this[bQ(0x1f6)]||(this[bQ(0x1f6)]=new a4['Graphics']()),b5['addChild'](this[bQ(0x1f6)]),b5['addChild'](b3),b5[bQ(0x29c)](b4),b5[bQ(0x275)]=this[bQ(0x30e)]*this[bQ(0x227)],b5[bQ(0x2cc)]=this[bQ(0x1f6)],this[bQ(0x2e2)]=b5;},aW['prototype']['setIrisProps']=function(aZ,b0){var bR=bN;if(aZ[bR(0x299)]){var b1=this[bR(0x277)][bR(0x2fc)]([bR(0x264),'LEFT_IRIS',bR(0x25c),'LEFT_EYE_ORDER',bR(0x30c)]),b2=b1[bR(0x264)],b3=(b1['LEFT_IRIS'],b1[bR(0x25c)],b1[bR(0x2ae)]),b4=b1[bR(0x30c)],b5=(b2[bR(0x2ef)],b2['right_eye_center'],(0x0,aa['Sp'])(aZ[0x34],aZ[0x37])),b6=(0x0,aa['Sp'])(aZ[0x3a],aZ[0x3d]),b7=Math[bR(0x1e4)](this['maxLConSize'],(0x0,aa['Sp'])(aZ[0x48],aZ[0x49])/b5),b8=Math[bR(0x1e4)](this[bR(0x253)],(0x0,aa['Sp'])(aZ[0x4b],aZ[0x4c])/b6),b9=b5*b7,ba=b5*b7,bb=b6*b8,bc=b6*b8;this[bR(0x2ab)]=Math[bR(0x1e4)](Math[bR(0x181)](b7,0.7),0.4),this[bR(0x253)]=Math[bR(0x1e4)](Math['min'](b8,0.7),0.4);var bd=aT['baseTexture'][bR(0x311)]*this[bR(0x2ca)][bR(0x268)]/aT[bR(0x2af)][bR(0x268)],be=(0x0,aa['qg'])(aZ[0x4a],aZ[0x68]),bf=(0x0,aa['qg'])(aZ[0x4d],aZ[0x69]);console[bR(0x322)](bR(0x1b2),(bd-this['_options'][bR(0x311)])/0x2),be['x']-=(bd-this['_options'][bR(0x311)])/0x2,bf['x']-=(bd-this[bR(0x2ca)]['width'])/0x2;var bg=this[bR(0x20f)],bh=this[bR(0x226)];bg[bR(0x311)]=b9,bg[bR(0x268)]=ba,bg['x']=be['x'],bg['y']=be['y'],bh['width']=bb,bh[bR(0x268)]=bc,bh['x']=bf['x'],bh['y']=bf['y'],this[bR(0x1f6)][bR(0x2c5)](),this[bR(0x2c6)](b3,aZ),this['_drawMaskGraphics'](b4,aZ),b0['render'](this['_container'],{'renderTexture':this[bR(0x1fc)]});}},aW['prototype'][bN(0x2c6)]=function(aZ,b0){var bS=bN,b1=this,b2=this[bS(0x1f6)];b2[bS(0x1c9)](0xff3300),b2[bS(0x18f)](0x1,0xffd900,0x1);var b3=[];aZ['forEach'](function(b4,b5){var bT=bS,b6=b0[b4],b7=b1[bT(0x213)](b6['x'],b6['y']),b8=b7['x'],b9=b7['y'];b3['push']({'x':b8,'y':b9}),0x0===b5?b2[bT(0x221)](b8,b9):b5===aZ[bT(0x299)]-0x1?(b2[bT(0x305)](),b2['endFill']()):b2[bT(0x2d3)](b8,b9);});},aW[bN(0x2d2)][bN(0x213)]=function(aZ,b0){return{'x':aZ,'y':b0};},aW[bN(0x2d2)][bN(0x267)]=function(){var bU=bN;this[bU(0x20f)]&&this['_leftIris'][bU(0x267)]({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this[bU(0x226)]&&this['_rightIris']['destroy']({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this[bU(0x1f6)]&&this['_maskGraphics']['destroy']({'children':!0x0,'texture':!0x1,'baseTexture':!0x1});},ae([(0x0,ab['M'])(bN(0x1fd)),af(bN(0x31b),Function),af(bN(0x281),[bN(0x183)==typeof(aX=bN(0x279)!=typeof Array&&Array)?aX:Object,bN(0x183)==typeof(aY=void 0x0!==a4[bN(0x246)]&&a4[bN(0x246)])?aY:Object]),af(bN(0x20e),void 0x0)],aW['prototype'],bN(0x1a6),null),aW;}(ag),ai=a2(0xc30),aj=a2(0x17dd),ak=function(aV,aW,aX,aY){var bV=a4b,aZ,b0=arguments[bV(0x299)],b1=b0<0x3?aW:null===aY?aY=Object[bV(0x2c0)](aW,aX):aY;if(bV(0x1e5)==typeof Reflect&&'function'==typeof Reflect[bV(0x21c)])b1=Reflect[bV(0x21c)](aV,aW,aX,aY);else{for(var b2=aV[bV(0x299)]-0x1;b2>=0x0;b2--)(aZ=aV[b2])&&(b1=(b0<0x3?aZ(b1):b0>0x3?aZ(aW,aX,b1):aZ(aW,aX))||b1);}return b0>0x3&&b1&&Object[bV(0x2f6)](aW,aX,b1),b1;},al=function(aV,aW){var bW=a4b;if(bW(0x1e5)==typeof Reflect&&bW(0x183)==typeof Reflect[bW(0x2be)])return Reflect[bW(0x2be)](aV,aW);},am=function(aV,aW,aX,aY){return new(aX||(aX=Promise))(function(aZ,b0){var bZ=a4b;function b1(b4){var bX=a4b;try{b3(aY[bX(0x1af)](b4));}catch(b5){b0(b5);}}function b2(b4){try{b3(aY['throw'](b4));}catch(b5){b0(b5);}}function b3(b4){var bY=a4b,b5;b4[bY(0x26d)]?aZ(b4[bY(0x24a)]):(b5=b4[bY(0x24a)],b5 instanceof aX?b5:new aX(function(b6){b6(b5);}))[bY(0x1d8)](b1,b2);}b3((aY=aY[bZ(0x293)](aV,aW||[]))['next']());});},an=function(aV,aW){var c0=a4b,aX,aY,aZ,b0,b1={'label':0x0,'sent':function(){if(0x1&aZ[0x0])throw aZ[0x1];return aZ[0x1];},'trys':[],'ops':[]};return b0={'next':b2(0x0),'throw':b2(0x1),'return':b2(0x2)},c0(0x183)==typeof Symbol&&(b0[Symbol[c0(0x27b)]]=function(){return this;}),b0;function b2(b3){return function(b4){return function(b5){var c1=a4b;if(aX)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;b1;)try{if(aX=0x1,aY&&(aZ=0x2&b5[0x0]?aY[c1(0x1ff)]:b5[0x0]?aY[c1(0x1ee)]||((aZ=aY[c1(0x1ff)])&&aZ[c1(0x2d9)](aY),0x0):aY[c1(0x1af)])&&!(aZ=aZ[c1(0x2d9)](aY,b5[0x1]))[c1(0x26d)])return aZ;switch(aY=0x0,aZ&&(b5=[0x2&b5[0x0],aZ[c1(0x24a)]]),b5[0x0]){case 0x0:case 0x1:aZ=b5;break;case 0x4:return b1[c1(0x2f5)]++,{'value':b5[0x1],'done':!0x1};case 0x5:b1[c1(0x2f5)]++,aY=b5[0x1],b5=[0x0];continue;case 0x7:b5=b1[c1(0x1fb)][c1(0x239)](),b1[c1(0x26c)]['pop']();continue;default:if(!(aZ=b1[c1(0x26c)],(aZ=aZ[c1(0x299)]>0x0&&aZ[aZ['length']-0x1])||0x6!==b5[0x0]&&0x2!==b5[0x0])){b1=0x0;continue;}if(0x3===b5[0x0]&&(!aZ||b5[0x1]>aZ[0x0]&&b5[0x1]<aZ[0x3])){b1[c1(0x2f5)]=b5[0x1];break;}if(0x6===b5[0x0]&&b1[c1(0x2f5)]<aZ[0x1]){b1[c1(0x2f5)]=aZ[0x1],aZ=b5;break;}if(aZ&&b1[c1(0x2f5)]<aZ[0x2]){b1[c1(0x2f5)]=aZ[0x2],b1[c1(0x1fb)][c1(0x245)](b5);break;}aZ[0x2]&&b1[c1(0x1fb)][c1(0x239)](),b1[c1(0x26c)]['pop']();continue;}b5=aW[c1(0x2d9)](aV,b1);}catch(b6){b5=[0x6,b6],aY=0x0;}finally{aX=aZ=0x0;}if(0x5&b5[0x0])throw b5[0x1];return{'value':b5[0x0]?b5[0x1]:void 0x0,'done':!0x0};}([b3,b4]);};}},ao=function(aV){var c2=a4b,aW=c2(0x183)==typeof Symbol&&Symbol[c2(0x27b)],aX=aW&&aV[aW],aY=0x0;if(aX)return aX[c2(0x2d9)](aV);if(aV&&'number'==typeof aV[c2(0x299)])return{'next':function(){return aV&&aY>=aV['length']&&(aV=void 0x0),{'value':aV&&aV[aY++],'done':!aV};}};throw new TypeError(aW?c2(0x185):c2(0x202));},ap=(0x0,aj['jl'])(c3(0x22a)),aq=(function(){var c5=c3;function aV(aW,aX,aY){var c4=a4b;aW&&(this[c4(0x2ca)]=aW),aX&&(this[c4(0x1df)]=aX),aY&&(this[c4(0x19a)]=aY);}return aV[c5(0x2d2)][c5(0x267)]=function(){var c6=c5,aW=this[c6(0x26e)];this['_lipMask']=null;try{aW[c6(0x267)](!0x0);}catch(aX){}try{this[c6(0x23f)][c6(0x267)](!0x0),this[c6(0x23f)]=null;}catch(aY){}try{this[c6(0x32b)][c6(0x267)](!0x0),this[c6(0x32b)]=null;}catch(aZ){}this[c6(0x277)]=null;try{this['_maskSprite'][c6(0x267)](!0x0),this['_maskSprite']=null;}catch(b0){}},aV[c5(0x2d2)][c5(0x1bb)]=function(){return am(this,void 0x0,void 0x0,function(){var aW,aX,aY,aZ,b0;return an(this,function(b1){var c7=a4b;switch(b1[c7(0x2f5)]){case 0x0:return this[c7(0x277)]?[0x3,0x2]:(this[c7(0x277)]=new a8['M'](),[0x4,this[c7(0x277)][c7(0x1bb)]()]);case 0x1:b1[c7(0x20d)](),b1[c7(0x2f5)]=0x2;case 0x2:return this[c7(0x26e)]?[0x3,0x4]:[0x4,this[c7(0x1f9)]()];case 0x3:b1[c7(0x20d)](),b1[c7(0x2f5)]=0x4;case 0x4:return this['_maskSprite']&&!this[c7(0x2ff)]['destroyed']||(aW=this[c7(0x2ca)],aX=aW['width'],aY=aW[c7(0x268)],aZ=new a4[(c7(0x327))]({'width':aX,'height':aY}),this[c7(0x32b)]=new a4['RenderTexture'](aZ),b0=new a4[(c7(0x295))](this[c7(0x32b)]),this[c7(0x2ff)]=b0),[0x2,{'maskSprite':this[c7(0x2ff)],'lipmask':this['_lipMask'],'lipmaskmesh':this[c7(0x23f)]}];}});});},aV[c5(0x2d2)][c5(0x318)]=function(aW){var c8=c5;this[c8(0x23f)]&&(this[c8(0x23f)][c8(0x25a)][c8(0x256)]('aVertexPosition')[c8(0x318)](aW),this['render']());},aV[c5(0x2d2)][c5(0x252)]=function(){var c9=c5;this[c9(0x19a)]&&this[c9(0x26e)]&&this[c9(0x19a)]['render'](this[c9(0x26e)],{'renderTexture':this['_maskRenderTexture']});},aV['prototype'][c5(0x1f9)]=function(){return am(this,void 0x0,void 0x0,function(){var aW,aX,aY,aZ,b0,b1,b2,b3,b4;return an(this,function(b5){var ca=a4b;switch(b5[ca(0x2f5)]){case 0x0:return this[ca(0x26e)]?[0x2,this['_lipMask']]:(aW=new a4['Container'](),(aX=new a4[(ca(0x295))](a4[ca(0x2a2)][ca(0x282)]))['width']=this[ca(0x2ca)][ca(0x311)],aX[ca(0x268)]=this['_options']['height'],aW[ca(0x29c)](aX),aY=this[ca(0x1df)],aZ=this[ca(0x277)]['getDataConfig'](0x1d),[0x4,this[ca(0x184)]()]);case 0x1:return b0=b5[ca(0x20d)](),b1=new a4['Geometry']()[ca(0x1a0)]('aVertexPosition',aY)[ca(0x1a0)](ca(0x1c2),aZ),ca(0x2a8),'\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20\x20\x20uniform\x20sampler2D\x20uSamplerMakeup;\x0a\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20texture2D(uSamplerMakeup,\x20vUvs);\x0a\x20\x20\x20\x20\x20\x20}',b2={'uSamplerMakeup':b0},b3=a4[ca(0x235)][ca(0x31f)](ca(0x2a8),ca(0x1bc),b2),b4=new a4[(ca(0x284))](b1,b3),this[ca(0x23f)]=b4,aW[ca(0x29c)](b4),this[ca(0x26e)]=aW,[0x2,aW];}});});},aV[c5(0x2d2)][c5(0x184)]=function(){return am(this,void 0x0,Promise,function(){var aW=this;return an(this,function(aX){return[0x2,new Promise(function(aY,aZ){return am(aW,void 0x0,void 0x0,function(){var b0,b1,b2;return an(this,function(b3){var cb=a4b;switch(b3[cb(0x2f5)]){case 0x0:return[0x4,(b0=new ai['KI']())[cb(0x233)]()];case 0x1:return b1=b3['sent'](),[0x4,b0['loadImage'](b1)];case 0x2:return b2=b3[cb(0x20d)](),aY(b2[ai['X_']]),[0x2];}});});})];});});},ak([(0x0,ab['M'])(c5(0x1d0)),al(c5(0x31b),Function),al(c5(0x281),[]),al(c5(0x20e),void 0x0)],aV[c5(0x2d2)],c5(0x267),null),ak([(0x0,ab['o'])(c5(0x1d0)),al(c5(0x31b),Function),al(c5(0x281),[]),al('design:returntype',Promise)],aV['prototype'],'_getMask',null),aV;}()),ar=(function(){var cd=c3;function aV(aX,aY,aZ,b0,b1,b2,b3,b4){var cc=a4b;void 0x0===b4&&(b4=0x1),this[cc(0x2e2)]=new a4['Container'](),this[cc(0x254)]=[],this[cc(0x199)]=!0x0,this[cc(0x2a0)]=!0x0,this[cc(0x2e0)]=!0x1,this[cc(0x215)]=aX,this[cc(0x19e)]=aY,this[cc(0x2ca)]=aZ,this['mesh']=b0,this['lipmesh']=b2,this['faceLandMarks']=b1,this['renderer']=b3,this[cc(0x30e)]=b4;var b5=new a4[(cc(0x295))](a4['Texture'][cc(0x282)]);b5[cc(0x275)]=0x0,b5[cc(0x311)]=aZ[cc(0x311)],b5['height']=aZ['height'],this[cc(0x2e2)]['addChild'](b5);}var aW;return Object['defineProperty'](aV[cd(0x2d2)],cd(0x316),{'get':function(){return this['_visible'];},'set':function(aX){var ce=cd,aY=this;this[ce(0x1a2)]&&aX!==this[ce(0x199)]&&(this['_visible']=aX,this[ce(0x254)]['forEach'](function(aZ){var cf=ce;aX?aY[cf(0x293)](aY[cf(0x1a2)]):aY[cf(0x1c4)]();}));},'enumerable':!0x1,'configurable':!0x0}),Object[cd(0x2f6)](aV['prototype'],cd(0x240),{'set':function(aX){var cg=cd;(this['_meshVertex']=aX,this['geometry'])&&(this['geometry'][cg(0x256)](cg(0x201))[cg(0x318)](aX),this[cg(0x254)][cg(0x2bd)](function(aY){var ch=cg;aY[ch(0x2bb)](aX);}));},'enumerable':!0x1,'configurable':!0x0}),Object[cd(0x2f6)](aV[cd(0x2d2)],'lipmesh',{'set':function(aX){var ci=cd;this[ci(0x1df)]=aX,this[ci(0x1b0)]&&this[ci(0x1b0)][ci(0x318)](aX);},'enumerable':!0x1,'configurable':!0x0}),Object[cd(0x2f6)](aV['prototype'],cd(0x247),{'set':function(aX){var cj=cd,aY=this;aX&&aX['length']&&(this['_irises']&&this[cj(0x209)][cj(0x1a6)](aX,this[cj(0x19a)]),(0x0,aa['Sp'])(aX[0x62],aX[0x66])<0.03*(0x0,aa['Sp'])(aX[0x0],aX[0x20])?this['mouthShut']||(this[cj(0x254)][cj(0x2bd)](function(aZ){var ck=cj;ck(0x23c)===aZ[ck(0x204)]&&(aZ[ck(0x304)]=null);}),this['mouthShut']=!0x0):this['mouthShut']&&(this['_makeupMeshes'][cj(0x2bd)](function(aZ){var cl=cj;cl(0x23c)===aZ['type']&&aY['_lipMaskIns']&&(aZ[cl(0x304)]=aY[cl(0x1b0)][cl(0x2ff)]);}),this['mouthShut']=!0x1));},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[cd(0x2d2)],cd(0x30e),{'get':function(){var cm=cd;return this[cm(0x1cf)];},'set':function(aX){var cn=cd;ap[cn(0x244)](cn(0x1f3),aX),this[cn(0x209)]&&(this[cn(0x209)][cn(0x30e)]=aX),this[cn(0x254)][cn(0x2bd)](function(aY){var co=cn;aY[co(0x30e)]=aX;}),this[cn(0x1cf)]=aX;},'enumerable':!0x1,'configurable':!0x0}),aV[cd(0x2d2)]['renderMesh']=function(){var cp=cd;this['_lipMaskIns']&&this[cp(0x1b0)]['render'](),this[cp(0x254)][cp(0x2bd)](function(aX){var cq=cp;aX[cq(0x2e8)]();});},aV['prototype'][cd(0x1bb)]=function(){return am(this,void 0x0,void 0x0,function(){var aX,aY,aZ,b0,b1,b2,b3,b4;return an(this,function(b5){var cr=a4b;switch(b5[cr(0x2f5)]){case 0x0:return this[cr(0x277)]=new a8['M'](),[0x4,this[cr(0x277)]['load']()];case 0x1:if(b5[cr(0x20d)](),aX=this[cr(0x19e)],ap[cr(0x244)](cr(0x325),this['_data']),aY=[],aX&&aX[cr(0x299)]){try{for(aZ=ao(aX),b0=aZ['next']();!b0[cr(0x26d)];b0=aZ[cr(0x1af)]())cr(0x216)===(b1=b0[cr(0x24a)])[cr(0x204)]?(this[cr(0x209)]=this[cr(0x2f4)](b1[cr(0x298)],b1[cr(0x23a)],b1[cr(0x2db)]),this['irisBlendMode']=b1[cr(0x23a)]):(b1[cr(0x23a)]+'',aY[cr(0x245)]({'src':b1[cr(0x298)],'intensity':b1[cr(0x2db)],'type':b1[cr(0x204)],'blend':b1[cr(0x23a)]}));}catch(b6){b3={'error':b6};}finally{try{b0&&!b0[cr(0x26d)]&&(b4=aZ['return'])&&b4[cr(0x2d9)](aZ);}finally{if(b3)throw b3[cr(0x200)];}}console[cr(0x322)](cr(0x262),aY),b2=this[cr(0x2d5)](aY),this[cr(0x254)]['push'](b2);}return[0x4,this['_initLipMask']()];case 0x2:return b5[cr(0x20d)](),[0x2];}});});},aV[cd(0x2d2)]['_getIris']=function(aX,aY,aZ){var cs=cd;return new ah(this[cs(0x2ca)],this[cs(0x215)],aX,aY,aZ,this[cs(0x277)],this['_container']);},aV['prototype'][cd(0x2d5)]=function(aX){var ct=cd,aY=aX[ct(0x257)](function(b2){var cu=ct;return cu(0x23c)===b2[cu(0x204)];})?ct(0x23c):ct(0x22a),aZ=new ag(this[ct(0x2ca)],this[ct(0x215)],this[ct(0x2e2)],this[ct(0x19a)],aY);aZ[ct(0x30e)]=this[ct(0x30e)],this[ct(0x209)]&&(aZ['irisRenderTexture']=this[ct(0x209)][ct(0x1fc)][ct(0x2af)],aZ['irisBlendMode']=this[ct(0x296)]);var b0=this[ct(0x277)]['getDataConfig'](0x1a);if(!this[ct(0x25a)]){var b1=new a4[(ct(0x2b6))]()[ct(0x1a0)](ct(0x201),this[ct(0x2ec)])[ct(0x1a0)](ct(0x1c2),b0);this[ct(0x25a)]=b1;}return aZ[ct(0x205)](aX,this[ct(0x25a)]),aZ;},aV['prototype'][cd(0x293)]=function(aX){var cv=cd;this[cv(0x1a2)]=aX,this[cv(0x222)](aX);},aV['prototype'][cd(0x1c4)]=function(){var cw=cd;this['_removeMakeup'](this[cw(0x1a2)]);},aV[cd(0x2d2)]['_applyMakeup']=function(aX){var cx=cd;this['_applyed']||(this[cx(0x2e0)]=!0x0,aX[cx(0x2b4)]||(aX[cx(0x2b4)]=[]),aX['addChild'](this['_container']));},aV['prototype'][cd(0x31e)]=function(aX){var cy=cd;this[cy(0x2e0)]&&(this['_applyed']=!0x1,aX[cy(0x2b4)]&&aX[cy(0x21f)](this[cy(0x2e2)]));},aV[cd(0x2d2)][cd(0x24d)]=function(){return am(this,void 0x0,void 0x0,function(){var aX,aY,aZ=this;return an(this,function(b0){var cz=a4b;switch(b0[cz(0x2f5)]){case 0x0:return(aX=new aq(this['_options'],this[cz(0x1df)],this[cz(0x19a)]))[cz(0x2ca)]=this[cz(0x2ca)],aX[cz(0x1df)]=this[cz(0x1df)],aX[cz(0x19a)]=this[cz(0x19a)],this[cz(0x1b0)]=aX,[0x4,aX[cz(0x1bb)]()];case 0x1:return aY=b0['sent']()[cz(0x285)],this[cz(0x254)][cz(0x2bd)](function(b1){var cA=cz;console[cA(0x322)](cA(0x310),aZ['mouthShut']),'lips'!==b1[cA(0x204)]||aZ[cA(0x2a0)]||(b1[cA(0x304)]=aY);}),[0x2];}});});},aV['prototype'][cd(0x267)]=function(){var cB=cd;this[cB(0x1c4)](),this['_makeupMeshes'][cB(0x2bd)](function(aX){var cC=cB;return aX[cC(0x267)]();}),this[cB(0x254)]=[],this[cB(0x209)]&&this[cB(0x209)][cB(0x267)](),this[cB(0x209)]=null,this['_container'][cB(0x267)](),this[cB(0x1a2)]=null,this['_lipMaskIns']&&this['_lipMaskIns'][cB(0x267)]();},ak([(0x0,ab['M'])(cd(0x27e)),al('design:type',Function),al('design:paramtypes',['function'==typeof(aW=void 0x0!==a4['Container']&&a4[cd(0x31d)])?aW:Object]),al('design:returntype',void 0x0)],aV['prototype'],cd(0x31e),null),ak([(0x0,ab['M'])('Makeup'),al(cd(0x31b),Function),al(cd(0x281),[]),al('design:returntype',void 0x0)],aV['prototype'],cd(0x267),null),aV;}()),as=a2(0xc35),at=a2(0x191),au=function(aV,aW,aX,aY){var cD=c3,aZ,b0=arguments['length'],b1=b0<0x3?aW:null===aY?aY=Object['getOwnPropertyDescriptor'](aW,aX):aY;if(cD(0x1e5)==typeof Reflect&&cD(0x183)==typeof Reflect[cD(0x21c)])b1=Reflect['decorate'](aV,aW,aX,aY);else{for(var b2=aV['length']-0x1;b2>=0x0;b2--)(aZ=aV[b2])&&(b1=(b0<0x3?aZ(b1):b0>0x3?aZ(aW,aX,b1):aZ(aW,aX))||b1);}return b0>0x3&&b1&&Object[cD(0x2f6)](aW,aX,b1),b1;},av=function(aV,aW){var cE=c3;if('object'==typeof Reflect&&cE(0x183)==typeof Reflect[cE(0x2be)])return Reflect[cE(0x2be)](aV,aW);},aw=(function(){var cG=c3;function aV(aW,aX,aY,aZ,b0,b1,b2,b3){var cF=a4b;this[cF(0x2e2)]=new a4[(cF(0x31d))](),this[cF(0x1b5)]=aW,this[cF(0x1ac)]=aX,this[cF(0x1a2)]=aZ,this[cF(0x277)]=aY,this['_jsonIntensity']=aY[cF(0x2db)],this[cF(0x1b3)]=b0,this[cF(0x2ca)]=b1,this[cF(0x215)]=b2,this[cF(0x1d6)]=b3;}return Object[cG(0x2f6)](aV['prototype'],cG(0x30e),{'get':function(){var cH=cG;return this[cH(0x292)];},'set':function(aW){var cI=cG;this['_parentIntensity']=aW,this[cI(0x30b)]&&(this[cI(0x30b)][cI(0x275)]=this['_jsonIntensity']*aW);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[cG(0x2d2)],cG(0x247),{'set':function(aW){var cJ=cG;this['_landmarks']=aW,this[cJ(0x30b)]&&this[cJ(0x2f7)]();},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV['prototype'],cG(0x2e4),{'set':function(aW){var cK=cG;this['_angles']=aW,this[cK(0x30b)]&&this[cK(0x2f7)]();},'enumerable':!0x1,'configurable':!0x0}),aV[cG(0x2d2)][cG(0x306)]=function(aW){var cL=cG;void 0x0===aW&&(aW=0x5);var aX=new a4[(cL(0x2a3))]();return aX['beginFill'](0xff0000),aX[cL(0x22d)](0x0,0x0,aW),aX[cL(0x220)](),aX;},aV[cG(0x2d2)][cG(0x1fe)]=function(aW){var cM=cG;void 0x0===aW&&(aW=0x5);var aX=new a4['Graphics']();return aX[cM(0x1c9)](0xff),aX[cM(0x22d)](0x0,0x0,aW),aX['endFill'](),aX;},aV['prototype']['getDisplay']=function(){var cN=cG;return this[cN(0x2e2)];},aV['prototype'][cG(0x1bb)]=function(){var cO=cG,aW,aX=this;if(this[cO(0x211)]()){var aY=[];this['_src'][cO(0x2bd)](function(b2){var cP=cO,b3;b3=b2['indexOf'](cP(0x2bf))>-0x1?b2:''[cP(0x286)](aX['_key'],'|')['concat'](JSON[cP(0x19c)](b2)[cP(0x2aa)][cP(0x1cb)]);var b4=a6['iV'][b3][cP(0x271)],b5=Object[cP(0x2a7)](b4)[cP(0x194)](function(b6){return b4[b6];});aY=aY[cP(0x286)](b5);}),(aW=new a9['Kg'](aY))[cO(0x29d)]=(this[cO(0x277)][cO(0x25f)]||0x1e)/0x3c,aW[cO(0x1e2)]();}else{var aZ=this[cO(0x1ac)][0x0],b0=a4['utils'][cO(0x2d0)][aZ];aW=new a9['jy'](b0);}this[cO(0x277)][cO(0x23a)]&&(console['log'](cO(0x19d),this[cO(0x277)]['blend']),aW[cO(0x25d)]=this[cO(0x277)][cO(0x23a)]),this[cO(0x277)]['wxAnchorOffset'],(aW[cO(0x311)]=this[cO(0x277)][cO(0x311)],aW[cO(0x268)]=this['_config'][cO(0x268)]);var b1=[0.5,0.5];this[cO(0x277)][cO(0x1a7)]&&(b1=this[cO(0x277)][cO(0x1a7)]),aW[cO(0x1a7)]['set'](b1[0x0],b1[0x1]),aW['alpha']=this[cO(0x301)]*this[cO(0x30e)],this[cO(0x30b)]=aW,this[cO(0x2e2)]['addChild'](this[cO(0x30b)]),this['_container'][cO(0x28d)](),this[cO(0x2f7)]();},aV['prototype'][cG(0x2f7)]=function(){var cQ=cG,aW=this[cQ(0x277)],aX=this[cQ(0x1b3)],aY=at['Jp'][cQ(0x194)](function(b5){return aX[b5];}),aZ=(0x0,aa['Sp'])(aY[0x0],aY[0x1]),b0=aW[cQ(0x1d9)],b1=(aW['wxAnchorOffset'],aW[cQ(0x2de)]),b2=aZ/at['jw'],b3=b0['map'](function(b5){var b6=aX[b5];return{'x':b6['x'],'y':b6['y'],'z':0x0};});this[cQ(0x2e2)][cQ(0x314)]['set'](b2);var b4={'x':b3[0x0]['x']*b1[0x0]+b3[0x1]['x']*b1[0x1]+b3[0x2]['x']*b1[0x2],'y':b3[0x0]['y']*b1[0x0]+b3[0x1]['y']*b1[0x1]+b3[0x2]['y']*b1[0x2]};this[cQ(0x2e2)]['position']['x']=b4['x'],this[cQ(0x2e2)][cQ(0x263)]['y']=b4['y'],this[cQ(0x1d6)]&&(this['_container'][cQ(0x1ce)]['z']=this[cQ(0x1d6)][cQ(0x1e1)],this[cQ(0x2e2)]['euler']['y']=this[cQ(0x1d6)][cQ(0x2c2)],this[cQ(0x2e2)][cQ(0x1ce)]['x']=this[cQ(0x1d6)][cQ(0x248)]);},aV[cG(0x2d2)][cG(0x211)]=function(){var cR=cG;if(this[cR(0x1ac)]instanceof Array&&this['_src']['length']>0x1)return!0x0;try{return JSON[cR(0x19c)](this[cR(0x1ac)][0x0]),!0x0;}catch(aW){return cR(0x232)===this[cR(0x1ac)][0x0][cR(0x182)]('.')[cR(0x239)]();}},aV['prototype']['tick']=function(){},aV[cG(0x2d2)][cG(0x293)]=function(){},aV[cG(0x2d2)][cG(0x1c4)]=function(){},aV[cG(0x2d2)]['destroy']=function(){var cS=cG;this[cS(0x30b)][cS(0x267)](),this[cS(0x2e2)][cS(0x267)](),this[cS(0x30b)]=null,this[cS(0x1a2)]=null;},au([(0x0,ab['M'])(cG(0x21e)),av(cG(0x31b),Function),av(cG(0x281),[]),av(cG(0x20e),Boolean)],aV[cG(0x2d2)],cG(0x211),null),au([(0x0,ab['M'])(cG(0x21e)),av(cG(0x31b),Function),av(cG(0x281),[]),av('design:returntype',void 0x0)],aV[cG(0x2d2)],'destroy',null),aV;}()),ax=(function(){var cV=c3;function aV(aW,aX,aY,aZ,b0,b1,b2){var cT=a4b;void 0x0===b2&&(b2=0x1);var b3=this;this[cT(0x18e)]=[],this[cT(0x199)]=!0x0,this['_parentIntensity']=0x1,this[cT(0x1a2)]=aY,this[cT(0x2ca)]=b0,this['_landmarks']=aZ;var b4=new as['LE']();b4[cT(0x234)](0x190,0xa,0x2710,!0x0),this[cT(0x228)]=b4,this['_stickers']=aX[cT(0x194)](function(b5){var cU=cT,b6=new aw(b5[cU(0x23b)],b5[cU(0x298)],b5,aY,aZ,b0,aW,b1);return b6['parentIntensity']=b3['parentIntensity'],b6[cU(0x1bb)](),b3[cU(0x228)][cU(0x29c)](b6[cU(0x307)]()),b6;});}return Object[cV(0x2f6)](aV[cV(0x2d2)],cV(0x30e),{'get':function(){return this['_parentIntensity'];},'set':function(aW){var cW=cV;this[cW(0x18e)]['forEach'](function(aX){var cX=cW;aX[cX(0x30e)]=aW;}),this[cW(0x292)]=aW;},'enumerable':!0x1,'configurable':!0x0}),Object[cV(0x2f6)](aV[cV(0x2d2)],cV(0x247),{'set':function(aW){var cY=cV;this[cY(0x18e)][cY(0x2bd)](function(aX){aX['faceLandMarks']=aW;});},'enumerable':!0x1,'configurable':!0x0}),Object[cV(0x2f6)](aV[cV(0x2d2)],'angles',{'set':function(aW){this['_stickers']['forEach'](function(aX){var cZ=a4b;aX[cZ(0x2e4)]=aW;});},'enumerable':!0x1,'configurable':!0x0}),Object[cV(0x2f6)](aV[cV(0x2d2)],cV(0x316),{'get':function(){var d0=cV;return this[d0(0x199)];},'set':function(aW){var d1=cV;this[d1(0x1a2)]&&aW!==this[d1(0x199)]&&(this['_visible']=aW,aW?this[d1(0x293)]():this[d1(0x1c4)]());},'enumerable':!0x1,'configurable':!0x0}),aV[cV(0x2d2)]['tick']=function(){var d2=cV;this[d2(0x18e)][d2(0x2bd)](function(aW){var d3=d2;return aW[d3(0x190)]();});},aV[cV(0x2d2)][cV(0x293)]=function(){var d4=cV;this[d4(0x1a2)][d4(0x29c)](this[d4(0x228)]);},aV[cV(0x2d2)][cV(0x1c4)]=function(){var d5=cV;this[d5(0x1a2)]['removeChild'](this['_camera']);},aV[cV(0x2d2)][cV(0x267)]=function(){var d6=cV;this[d6(0x1c4)](),this['_stickers']['forEach'](function(aW){return aW['destroy']();}),this[d6(0x228)][d6(0x267)](),this['_stickers']=[];},aV;}()),ay=a2(0x1ade),az=a2(0x1adf),aA=(function(){var aV=function(aW,aX){return aV=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(aY,aZ){var d7=a4b;aY[d7(0x2a6)]=aZ;}||function(aY,aZ){var d8=a4b;for(var b0 in aZ)Object[d8(0x2d2)]['hasOwnProperty'][d8(0x2d9)](aZ,b0)&&(aY[b0]=aZ[b0]);},aV(aW,aX);};return function(aW,aX){var d9=a4b;if(d9(0x183)!=typeof aX&&null!==aX)throw new TypeError(d9(0x18c)+String(aX)+d9(0x207));function aY(){this['constructor']=aW;}aV(aW,aX),aW[d9(0x2d2)]=null===aX?Object['create'](aX):(aY[d9(0x2d2)]=aX[d9(0x2d2)],new aY());};}()),aB=function(aV,aW,aX,aY){var da=c3,aZ,b0=arguments[da(0x299)],b1=b0<0x3?aW:null===aY?aY=Object[da(0x2c0)](aW,aX):aY;if(da(0x1e5)==typeof Reflect&&da(0x183)==typeof Reflect[da(0x21c)])b1=Reflect['decorate'](aV,aW,aX,aY);else{for(var b2=aV[da(0x299)]-0x1;b2>=0x0;b2--)(aZ=aV[b2])&&(b1=(b0<0x3?aZ(b1):b0>0x3?aZ(aW,aX,b1):aZ(aW,aX))||b1);}return b0>0x3&&b1&&Object[da(0x2f6)](aW,aX,b1),b1;},aC=function(aV,aW){var db=c3;if(db(0x1e5)==typeof Reflect&&db(0x183)==typeof Reflect[db(0x2be)])return Reflect[db(0x2be)](aV,aW);},aD=function(aV,aW,aX,aY){return new(aX||(aX=Promise))(function(aZ,b0){var df=a4b;function b1(b4){var dc=a4b;try{b3(aY[dc(0x1af)](b4));}catch(b5){b0(b5);}}function b2(b4){var dd=a4b;try{b3(aY[dd(0x1ee)](b4));}catch(b5){b0(b5);}}function b3(b4){var de=a4b,b5;b4['done']?aZ(b4[de(0x24a)]):(b5=b4[de(0x24a)],b5 instanceof aX?b5:new aX(function(b6){b6(b5);}))['then'](b1,b2);}b3((aY=aY[df(0x293)](aV,aW||[]))['next']());});},aE=function(aV,aW){var dg=c3,aX,aY,aZ,b0,b1={'label':0x0,'sent':function(){if(0x1&aZ[0x0])throw aZ[0x1];return aZ[0x1];},'trys':[],'ops':[]};return b0={'next':b2(0x0),'throw':b2(0x1),'return':b2(0x2)},dg(0x183)==typeof Symbol&&(b0[Symbol['iterator']]=function(){return this;}),b0;function b2(b3){return function(b4){return function(b5){var dh=a4b;if(aX)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;b1;)try{if(aX=0x1,aY&&(aZ=0x2&b5[0x0]?aY[dh(0x1ff)]:b5[0x0]?aY[dh(0x1ee)]||((aZ=aY[dh(0x1ff)])&&aZ['call'](aY),0x0):aY[dh(0x1af)])&&!(aZ=aZ['call'](aY,b5[0x1]))[dh(0x26d)])return aZ;switch(aY=0x0,aZ&&(b5=[0x2&b5[0x0],aZ[dh(0x24a)]]),b5[0x0]){case 0x0:case 0x1:aZ=b5;break;case 0x4:return b1[dh(0x2f5)]++,{'value':b5[0x1],'done':!0x1};case 0x5:b1['label']++,aY=b5[0x1],b5=[0x0];continue;case 0x7:b5=b1[dh(0x1fb)]['pop'](),b1[dh(0x26c)]['pop']();continue;default:if(!(aZ=b1[dh(0x26c)],(aZ=aZ[dh(0x299)]>0x0&&aZ[aZ[dh(0x299)]-0x1])||0x6!==b5[0x0]&&0x2!==b5[0x0])){b1=0x0;continue;}if(0x3===b5[0x0]&&(!aZ||b5[0x1]>aZ[0x0]&&b5[0x1]<aZ[0x3])){b1[dh(0x2f5)]=b5[0x1];break;}if(0x6===b5[0x0]&&b1['label']<aZ[0x1]){b1['label']=aZ[0x1],aZ=b5;break;}if(aZ&&b1['label']<aZ[0x2]){b1[dh(0x2f5)]=aZ[0x2],b1[dh(0x1fb)][dh(0x245)](b5);break;}aZ[0x2]&&b1[dh(0x1fb)][dh(0x239)](),b1[dh(0x26c)][dh(0x239)]();continue;}b5=aW['call'](aV,b1);}catch(b6){b5=[0x6,b6],aY=0x0;}finally{aX=aZ=0x0;}if(0x5&b5[0x0])throw b5[0x1];return{'value':b5[0x0]?b5[0x1]:void 0x0,'done':!0x0};}([b3,b4]);};}},aF=function(aV){var di=c3,aW=di(0x183)==typeof Symbol&&Symbol[di(0x27b)],aX=aW&&aV[aW],aY=0x0;if(aX)return aX[di(0x2d9)](aV);if(aV&&di(0x1a9)==typeof aV[di(0x299)])return{'next':function(){return aV&&aY>=aV['length']&&(aV=void 0x0),{'value':aV&&aV[aY++],'done':!aV};}};throw new TypeError(aW?di(0x185):'Symbol.iterator\x20is\x20not\x20defined.');},aG=(0x0,aj['jl'])(c3(0x2b7)),aH=(function(){var dk=c3;function aV(aX,aY,aZ,b0,b1,b2,b3,b4,b5,b6,b7){var dj=a4b;this[dj(0x308)]=[],this['_destroyed']=!0x1,this[dj(0x199)]=!0x0,this[dj(0x1cf)]=0x1,this[dj(0x1e7)]=0x1,this[dj(0x2ba)]={},this['_filtersActived']=!0x0,this[dj(0x1a2)]=aY,this['_stickerTarget']=aZ,this['_url']=aX,this[dj(0x215)]=aX,this[dj(0x2ca)]=b1,this[dj(0x240)]=b2,this['lipmesh']=b4,this['faceLandMarks']=b3,b5&&(this[dj(0x2e4)]=b5),void 0x0!==b6&&(this[dj(0x2db)]=b6),this[dj(0x243)]=b0,this[dj(0x326)]=b7;}var aW;return Object['defineProperty'](aV[dk(0x2d2)],dk(0x2fb),{'get':function(){var dl=dk,aX=this[dl(0x277)];return!!aX&&((!aX[dl(0x22a)]||!aX[dl(0x22a)]['length'])&&((!aX[dl(0x2f2)]||!aX[dl(0x2f2)][dl(0x299)])&&((!aX[dl(0x2c3)]||!aX[dl(0x2c3)][dl(0x299)])&&(!aX[dl(0x1d7)]||!Object[dl(0x2a7)](aX[dl(0x1d7)])[dl(0x20c)](function(aY){var dm=dl;return!!aX[dm(0x1d7)][aY];})))));},'enumerable':!0x1,'configurable':!0x0}),Object[dk(0x2f6)](aV[dk(0x2d2)],'filterActived',{'get':function(){var dn=dk;return this[dn(0x186)];},'set':function(aX){var dp=dk;aX!==this[dp(0x186)]&&(this[dp(0x1d5)]&&(aX?this['_applyFilter'](this['_filterTarget']):this[dp(0x31c)](this[dp(0x1d5)])),this['_filtersActived']=aX);},'enumerable':!0x1,'configurable':!0x0}),Object[dk(0x2f6)](aV[dk(0x2d2)],dk(0x237),{'get':function(){var dq=dk;return this[dq(0x27a)];},'enumerable':!0x1,'configurable':!0x0}),Object[dk(0x2f6)](aV[dk(0x2d2)],'app3d',{'get':function(){var dr=dk;return this[dr(0x243)];},'set':function(aX){var ds=dk;this[ds(0x243)]=aX;},'enumerable':!0x1,'configurable':!0x0}),Object[dk(0x2f6)](aV[dk(0x2d2)],dk(0x2db),{'get':function(){var dt=dk;return this[dt(0x1cf)];},'set':function(aX){var du=dk;aX>0x1&&(ay['N'][du(0x29e)]('error',{'message':a5['Z']['t']('0015'),'code':az['U']['SET_INTENSITY_ERROR']}),aX=0x1),null!=aX&&(this[du(0x2e9)]&&(this[du(0x2e9)][du(0x30e)]=aX),this['_sticker']&&(this[du(0x30b)][du(0x30e)]=aX),this[du(0x1cf)]=aX);},'enumerable':!0x1,'configurable':!0x0}),Object[dk(0x2f6)](aV[dk(0x2d2)],dk(0x2df),{'get':function(){var dv=dk;return this[dv(0x1e7)];},'set':function(aX){var dw=dk;null!=aX&&(this[dw(0x308)]&&this[dw(0x308)]['forEach'](function(aY){var dx=dw;aY[dx(0x28e)]['parentIntensity']=aX;}),this[dw(0x1e7)]=aX);},'enumerable':!0x1,'configurable':!0x0}),Object[dk(0x2f6)](aV[dk(0x2d2)],dk(0x316),{'get':function(){var dy=dk;return this[dy(0x199)];},'set':function(aX){var dz=dk;this['_destroyed']||(this[dz(0x199)]=aX,this[dz(0x2e9)]&&(this[dz(0x2e9)][dz(0x316)]=aX),this[dz(0x30b)]&&(this[dz(0x30b)]['visible']=aX));},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[dk(0x2d2)],dk(0x240),{'set':function(aX){var dA=dk;this[dA(0x195)]||(this[dA(0x2ec)]=aX,this[dA(0x2e9)]&&(this[dA(0x2e9)][dA(0x240)]=aX));},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[dk(0x2d2)],dk(0x1aa),{'set':function(aX){var dB=dk;this[dB(0x195)]||(this[dB(0x1df)]=aX,this[dB(0x2e9)]&&(this['_makeup'][dB(0x1aa)]=aX));},'enumerable':!0x1,'configurable':!0x0}),Object[dk(0x2f6)](aV[dk(0x2d2)],dk(0x247),{'get':function(){var dC=dk;return this[dC(0x21a)];},'set':function(aX){var dD=dk;this[dD(0x195)]||(this[dD(0x21a)]=aX,this[dD(0x2e9)]&&(this['_makeup'][dD(0x247)]=aX),this[dD(0x30b)]&&(this['_sticker']['faceLandMarks']=aX));},'enumerable':!0x1,'configurable':!0x0}),Object[dk(0x2f6)](aV[dk(0x2d2)],'angles',{'set':function(aX){var dE=dk;this[dE(0x1d6)]=aX,this[dE(0x30b)]&&(this[dE(0x30b)][dE(0x2e4)]=aX);},'enumerable':!0x1,'configurable':!0x0}),aV['prototype'][dk(0x187)]=function(){return aD(this,void 0x0,Promise,function(){return aE(this,function(aX){var dF=a4b;switch(aX['label']){case 0x0:return aj['D4'][dF(0x244)](dF(0x303),this['_url']),[0x4,this[dF(0x236)]()];case 0x1:return[0x4,aX[dF(0x20d)]()[dF(0x20a)](this[dF(0x27a)])];case 0x2:return aX['sent'](),[0x4,this[dF(0x2dd)]()];case 0x3:return[0x2,aX[dF(0x20d)]()];}});});},aV['prototype'][dk(0x1bb)]=function(){return aD(this,void 0x0,Promise,function(){var aX,aY,aZ,b0,b1,b2;return aE(this,function(b3){var dG=a4b;switch(b3[dG(0x2f5)]){case 0x0:return[0x4,this['download']()];case 0x1:return aX=b3[dG(0x20d)](),aY=aX[dG(0x189)],aZ=aX[dG(0x22a)],b0=aX[dG(0x1d7)],b1=aX['sticker'],b2=aX['sticker3d'],[0x4,this[dG(0x261)](aX)];case 0x2:return b3['sent'](),this[dG(0x258)](aY),[0x4,this[dG(0x2e1)](aZ)];case 0x3:return b3[dG(0x20d)](),b1?[0x4,this['loadStickers'](b1)]:[0x3,0x5];case 0x4:b3[dG(0x20d)](),b3[dG(0x2f5)]=0x5;case 0x5:return[0x4,this[dG(0x32f)](b2)];case 0x6:return b3[dG(0x20d)](),this[dG(0x2c3)]=b2,[0x4,this[dG(0x236)]()];case 0x7:return b3[dG(0x20d)]()['removeFromCache'](this[dG(0x27a)]),[0x2,b0];}});});},aV[dk(0x2d2)][dk(0x236)]=function(){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aX){var dH=a4b;switch(aX[dH(0x2f5)]){case 0x0:return this[dH(0x289)]?[0x3,0x2]:(this['_loader']=new a6['pF'](),[0x4,this[dH(0x289)][dH(0x233)]()]);case 0x1:aX[dH(0x20d)](),aX['label']=0x2;case 0x2:return[0x2,this[dH(0x289)]];}});});},aV['prototype'][dk(0x2dd)]=function(){return aD(this,void 0x0,void 0x0,function(){var aX;return aE(this,function(aY){var dI=a4b;switch(aY[dI(0x2f5)]){case 0x0:return this[dI(0x277)]?[0x3,0x3]:[0x4,this[dI(0x236)]()];case 0x1:return[0x4,(aX=aY['sent']())[dI(0x20a)](this[dI(0x27a)])];case 0x2:aY['sent'](),this[dI(0x277)]=aX[dI(0x250)]('content.json',this['_key']),aY['label']=0x3;case 0x3:return[0x2,this[dI(0x277)]];}});});},aV[dk(0x2d2)][dk(0x21b)]=function(){return aD(this,void 0x0,Promise,function(){var aX,aY,aZ,b0,b1,b2,b3,b4;return aE(this,function(b5){var dJ=a4b;switch(b5['label']){case 0x0:return[0x4,this['_getConfig']()];case 0x1:aX=b5[dJ(0x20d)](),aY=aX[dJ(0x22a)],aZ=!0x1;try{for(b0=aF(aY),b1=b0[dJ(0x1af)]();!b1['done'];b1=b0[dJ(0x1af)]())if(dJ(0x216)===(b2=b1[dJ(0x24a)])['type']||dJ(0x1e8)===b2[dJ(0x204)]){aZ=!0x0;break;}}catch(b6){b3={'error':b6};}finally{try{b1&&!b1[dJ(0x26d)]&&(b4=b0[dJ(0x1ff)])&&b4[dJ(0x2d9)](b0);}finally{if(b3)throw b3[dJ(0x200)];}}return[0x2,aZ];}});});},aV[dk(0x2d2)]['needDetection']=function(){return aD(this,void 0x0,Promise,function(){var aX,aY,aZ,b0;return aE(this,function(b1){var dK=a4b;switch(b1[dK(0x2f5)]){case 0x0:return[0x4,this[dK(0x2dd)]()];case 0x1:return aX=b1['sent'](),aY=aX[dK(0x22a)],aZ=aX['sticker'],b0=aX['sticker3d'],[0x2,aY&&aY[dK(0x299)]||aZ&&aZ[dK(0x299)]||b0&&b0[dK(0x299)]];}});});},aV[dk(0x2d2)][dk(0x2e3)]=function(){return aD(this,void 0x0,Promise,function(){var aX,aY;return aE(this,function(aZ){var dL=a4b;switch(aZ[dL(0x2f5)]){case 0x0:return[0x4,this[dL(0x2dd)]()];case 0x1:return aX=aZ[dL(0x20d)](),[0x2,!(!(aY=aX[dL(0x189)])||!aY[dL(0x299)])];}});});},aV['prototype'][dk(0x1ed)]=function(aX){return aD(this,void 0x0,Promise,function(){var aY;return aE(this,function(aZ){var dM=a4b;return aX['length']?((aY=new ax(this[dM(0x215)],aX,this[dM(0x1bf)],this[dM(0x247)],this[dM(0x2ca)],this[dM(0x1d6)]))[dM(0x30e)]=this['intensity'],this['_sticker']=aY,[0x2]):[0x2,Promise[dM(0x1ba)]()];});});},aV['prototype']['loadSticker3d']=function(aX){return void 0x0===aX&&(aX=[]),aD(this,void 0x0,Promise,function(){return aE(this,function(aY){return[0x2];});});},aV[dk(0x2d2)][dk(0x32f)]=function(aX){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aY){return[0x2];});});},aV[dk(0x2d2)][dk(0x191)]=function(){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aX){return[0x2];});});},aV[dk(0x2d2)]['apply3d']=function(){},aV[dk(0x2d2)][dk(0x1f8)]=function(){},aV['prototype'][dk(0x2cf)]=function(){},aV[dk(0x2d2)][dk(0x2e1)]=function(aX){var dN=dk;return aX[dN(0x299)]?(this['_makeup']=new ar(this[dN(0x215)],aX,this['_options'],this[dN(0x2ec)],this[dN(0x247)],this[dN(0x1df)],this[dN(0x19a)],this[dN(0x2db)]),this[dN(0x2e9)]['load']()):Promise['resolve']();},aV[dk(0x2d2)][dk(0x293)]=function(aX){var dO=dk;this['_destroyed']||this[dO(0x2e0)]||(this[dO(0x21d)]&&this[dO(0x2f0)](aX[dO(0x27f)]),this[dO(0x308)][dO(0x299)]&&aX[dO(0x25e)]&&aX['filterCallback'](),this['_filterTarget']=aX[dO(0x27f)],this[dO(0x2e9)]&&this['_makeup']['apply'](this[dO(0x1a2)]),this[dO(0x30b)]&&this[dO(0x30b)][dO(0x293)](),this[dO(0x1e9)](),this['_applyed']=!0x0);},aV[dk(0x2d2)]['getUrl']=function(){var dP=dk;return this[dP(0x27a)];},aV[dk(0x2d2)][dk(0x1c4)]=function(){var dQ=dk;aG['info'](dQ(0x2b9),this[dQ(0x27a)],this[dQ(0x1dd)]()),this[dQ(0x2e9)]&&this[dQ(0x2e9)][dQ(0x1c4)](),this['_sticker']&&this[dQ(0x30b)][dQ(0x1c4)](),this[dQ(0x1f8)](),this[dQ(0x31c)](this['_filterTarget']),this[dQ(0x2e0)]=!0x1;},aV[dk(0x2d2)][dk(0x190)]=function(){var dR=dk;this[dR(0x30b)]&&this[dR(0x30b)][dR(0x190)]();},aV[dk(0x2d2)][dk(0x2f1)]=function(){var dS=dk;this[dS(0x2e9)]&&this[dS(0x2e9)][dS(0x2e8)]();},aV['prototype'][dk(0x267)]=function(){var dT=dk;this[dT(0x195)]=!0x0,this[dT(0x1c4)](),this[dT(0x2e9)]&&(this[dT(0x2e9)][dT(0x267)](),this[dT(0x2e9)]=null),this[dT(0x30b)]&&(this['_sticker']['destroy'](),this[dT(0x30b)]=null),this[dT(0x2cf)](),this[dT(0x308)]=[],this[dT(0x315)]();},aV[dk(0x2d2)]['loadFilter']=function(aX){var dU=dk,aY=this;this[dU(0x195)]||aX&&aX[dU(0x299)]&&aX[dU(0x2bd)](function(aZ){var dV=dU,b0=aY[dV(0x319)](aZ[dV(0x298)],aZ[dV(0x2db)],aY['filterIntensity']);aY[dV(0x308)]['push'](b0);});},aV['prototype']['_applyFilter']=function(aX){var dW=dk;aX[dW(0x2b4)]||(aX[dW(0x2b4)]=[]),aX[dW(0x2b4)]=this[dW(0x308)][dW(0x286)](aX[dW(0x2b4)]);},aV[dk(0x2d2)][dk(0x31c)]=function(aX){var dX=dk;aX&&aX[dX(0x2b4)]&&aX[dX(0x2b4)][dX(0x299)]&&this['_filters'][dX(0x2bd)](function(aY){var dY=dX,aZ=aX[dY(0x2b4)][dY(0x2ee)](function(b0){return b0===aY;});aZ>-0x1&&aX[dY(0x2b4)][dY(0x1e6)](aZ,0x1);});},aV[dk(0x2d2)]['_createFilterSync']=function(aX,aY,aZ){var dZ=dk,b0=dZ(0x2c9)===this[dZ(0x215)]?aX:''[dZ(0x286)](this['_key'],'|')[dZ(0x286)](aX),b1=a4[dZ(0x1be)]['TextureCache'][b0];return b1['baseTexture'][dZ(0x1c8)]=a4[dZ(0x1c0)][dZ(0x1db)],b1[dZ(0x2af)]['mipmap']=a4[dZ(0x251)][dZ(0x1d3)],new a7['f'](dZ(0x229),this[dZ(0x2ca)],{'uniforms':{'lut':b1,'intensity':aY,'parentIntensity':aZ}});},aV[dk(0x2d2)][dk(0x315)]=function(){var e0=dk;for(var aX in a4[e0(0x1be)][e0(0x2d0)])if(aX['indexOf'](this[e0(0x215)])>-0x1){var aY=a4[e0(0x1be)][e0(0x2d0)][aX];a4['Texture']['removeFromCache'](aY),aY['destroy'](!0x0);}for(var aX in this['localSpriteSheets'])a6['iV'][aX]&&a6['iV'][aX]instanceof a4[e0(0x32d)]&&(a6['iV'][aX][e0(0x267)](),delete a6['iV'][aX]);},aV[dk(0x2d2)][dk(0x261)]=function(aX){var e1=dk,aY,aZ,b0=this,b1=(aX[e1(0x189)]||[])[e1(0x286)](aX[e1(0x22a)]||[])[e1(0x286)](aX[e1(0x2f2)]||[]),b2=this['_loader'][e1(0x2e6)](),b3={};this[e1(0x2ba)]=b3;try{for(var b4=aF(b1),b5=b4['next']();!b5[e1(0x26d)];b5=b4[e1(0x1af)]()){var b6=b5[e1(0x24a)];if(b6[e1(0x298)]instanceof Array)b6[e1(0x298)][e1(0x2bd)](function(b9,ba){var e2=e1,bb=b0[e2(0x206)](b9);if(bb){var bc=bb[e2(0x2aa)]['image'],bd=''[e2(0x286)](b0['_key'],'|')[e2(0x286)](bc);if(a4[e2(0x1be)][e2(0x2d0)][bd])return;if(0x0===bc[e2(0x28a)](e2(0x230))){var be=a4[e2(0x2a2)]['from'](bc);a4[e2(0x2a2)]['addToCache'](be,bd);}else b2[e2(0x24e)](bd,bc);bb[e2(0x2aa)][e2(0x1cb)]='',b3[bd]=bb;}else{if(a4[e2(0x1be)][e2(0x2d0)][b9])return;if(b2[e2(0x198)][b9])return;b2[e2(0x24e)](b9,b9);}});else{var b7=''['concat'](this['_key'],'|')[e1(0x286)](b6[e1(0x298)]);if(a4['utils'][e1(0x2d0)][b7])continue;if(0x0===b6[e1(0x298)][e1(0x28a)](e1(0x230))){var b8=a4[e1(0x2a2)][e1(0x31f)](b6[e1(0x298)]);a4[e1(0x2a2)][e1(0x197)](b8,b7);}else b2[e1(0x24e)](b7,b6['src']);}}}catch(b9){aY={'error':b9};}finally{try{b5&&!b5[e1(0x26d)]&&(aZ=b4[e1(0x1ff)])&&aZ[e1(0x2d9)](b4);}finally{if(aY)throw aY[e1(0x200)];}}return new Promise(function(ba){var e3=e1;b2[e3(0x1bb)](function(bb,bc){return aD(b0,void 0x0,void 0x0,function(){var bd,be,bf,bg,bh;return aE(this,function(bi){var e4=a4b;switch(bi[e4(0x2f5)]){case 0x0:for(bf in(bd=function(bj){var bk;return aE(this,function(bl){var e5=a4b;switch(bl[e5(0x2f5)]){case 0x0:return a6['iV'][bj]?[0x2,e5(0x20b)]:b3[bj]?(bk=new a4[(e5(0x32d))](a4[e5(0x1be)][e5(0x2d0)][bj],b3[bj]),[0x4,new Promise(function(bm){var e6=e5;bk[e6(0x19c)](function(){a6['iV'][bj]=bk,bm();});})]):[0x3,0x2];case 0x1:bl['sent'](),bl['label']=0x2;case 0x2:return[0x2];}});},be=[],a4[e4(0x1be)][e4(0x2d0)]))be[e4(0x245)](bf);bg=0x0,bi[e4(0x2f5)]=0x1;case 0x1:return bg<be[e4(0x299)]?(bh=be[bg],[0x5,bd(bh)]):[0x3,0x4];case 0x2:bi[e4(0x20d)](),bi['label']=0x3;case 0x3:return bg++,[0x3,0x1];case 0x4:for(bh in bc)a6['iV'][bh]||b3[bh]||(a6['iV'][bh]=bc[bh]);return ba(),[0x2];}});});});});},aV[dk(0x2d2)]['checkSpriteSheetJSON']=function(aX){var e7=dk;try{return JSON[e7(0x19c)](aX);}catch(aY){return null;}},aB([(0x0,ab['M'])('Effect'),aC('design:type',Function),aC(dk(0x281),[]),aC(dk(0x20e),void 0x0)],aV['prototype'],dk(0x1c4),null),aB([(0x0,ab['M'])(dk(0x2b7)),aC(dk(0x31b),Function),aC(dk(0x281),[]),aC(dk(0x20e),void 0x0)],aV[dk(0x2d2)],dk(0x267),null),aB([(0x0,ab['M'])(dk(0x2b7)),aC(dk(0x31b),Function),aC(dk(0x281),[dk(0x183)==typeof(aW=void 0x0!==a4[dk(0x31d)]&&a4['Container'])?aW:Object]),aC(dk(0x20e),void 0x0)],aV[dk(0x2d2)],'_removeFilter',null),aV;}()),aI=function(aV){var e9=c3;function aW(aX,aY,aZ,b0,b1,b2,b3,b4){var e8=a4b,b5=aV[e8(0x2d9)](this,e8(0x2c9),aY,aZ,b0,b1,b2,b3,b4)||this;return b5[e8(0x214)]=aX,b5['_app3d']=b0,b5;}return aA(aW,aV),aW[e9(0x2d2)][e9(0x1bb)]=function(){return aD(this,void 0x0,Promise,function(){var aX,aY,aZ,b0,b1,b2;return aE(this,function(b3){var ea=a4b;switch(b3[ea(0x2f5)]){case 0x0:return aX=this[ea(0x214)],aY=aX[ea(0x189)],aZ=aX[ea(0x22a)],b0=aX[ea(0x1d7)],b1=aX['sticker'],b2=aX[ea(0x2c3)],[0x4,this[ea(0x261)](aX)];case 0x1:return b3[ea(0x20d)](),this[ea(0x258)](aY),[0x4,this[ea(0x2e1)](aZ)];case 0x2:return b3[ea(0x20d)](),b1?[0x4,this[ea(0x1ed)](b1)]:[0x3,0x4];case 0x3:b3[ea(0x20d)](),b3['label']=0x4;case 0x4:return b2?this['_app3d']?[0x3,0x6]:[0x4,this['initThreeApp']()]:[0x3,0x8];case 0x5:b3[ea(0x20d)](),b3[ea(0x2f5)]=0x6;case 0x6:return[0x4,this[ea(0x1d1)](b2)];case 0x7:b3[ea(0x20d)](),b3['label']=0x8;case 0x8:return[0x2,b0];}});});},aW[e9(0x2d2)][e9(0x1b8)]=function(){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aX){return[0x2];});});},aW[e9(0x2d2)][e9(0x261)]=function(aX){var eb=e9,aY,aZ,b0=this,b1=new a4[(eb(0x266))](),b2=(aX['filter']||[])[eb(0x286)](aX[eb(0x22a)]||[])[eb(0x286)](aX[eb(0x2f2)]||[]),b3={},b4=function(b7){var ec=eb;if(b7[ec(0x298)]instanceof Array)b7[ec(0x298)][ec(0x2bd)](function(b9,ba){var ed=ec,bb=b0[ed(0x206)](b9);if(bb){var bc=bb['meta'][ed(0x1cb)],bd=''[ed(0x286)](b0[ed(0x215)],'|')[ed(0x286)](bc);if(a4[ed(0x1be)][ed(0x2d0)][bd])return;if(b7[ed(0x297)]&&b7[ed(0x297)][ed(0x299)]){var be=a4['Texture'][ed(0x31f)](b7['objectSrc'][ba]);a4[ed(0x2a2)][ed(0x197)](be,bd);}else{if(0x0===bc[ed(0x28a)]('blob:'))be=a4[ed(0x2a2)][ed(0x31f)](bc),a4[ed(0x2a2)][ed(0x197)](be,bd);else b1[ed(0x24e)](bd,bc);}bb[ed(0x2aa)][ed(0x1cb)]='',b3[bd]=bb;}else{if(a4['utils'][ed(0x2d0)][b9])return;if(b1['resources'][b9])return;if(b7[ed(0x297)]&&b7[ed(0x297)][ed(0x299)])be=a4[ed(0x2a2)]['from'](b7[ed(0x297)][ba]),a4[ed(0x2a2)][ed(0x197)](be,b9);else b1[ed(0x24e)](b9,b9);}});else{if(a4[ec(0x1be)][ec(0x2d0)][b7[ec(0x298)]])return'continue';if(b1[ec(0x198)][b7[ec(0x298)]])return console[ec(0x322)](ec(0x249),b7[ec(0x298)]),ec(0x20b);if(b7[ec(0x297)]){console['log'](ec(0x2b0));var b8=a4['Texture']['from'](b7[ec(0x297)]);a4[ec(0x2a2)]['addToCache'](b8,b7[ec(0x298)]);}else{if(0x0===b7[ec(0x298)][ec(0x28a)](ec(0x230)))b8=a4[ec(0x2a2)][ec(0x31f)](b7[ec(0x298)]),(console[ec(0x322)](ec(0x1c3),b8),a4[ec(0x2a2)]['addToCache'](b8,b7[ec(0x298)]));else b1[ec(0x24e)](b7[ec(0x298)]);}}};try{for(var b5=aF(b2),b6=b5[eb(0x1af)]();!b6[eb(0x26d)];b6=b5['next']()){b4(b6[eb(0x24a)]);}}catch(b7){aY={'error':b7};}finally{try{b6&&!b6['done']&&(aZ=b5[eb(0x1ff)])&&aZ[eb(0x2d9)](b5);}finally{if(aY)throw aY[eb(0x200)];}}return new Promise(function(b8){return aD(b0,void 0x0,void 0x0,function(){var b9=this;return aE(this,function(ba){var ee=a4b;return b1[ee(0x1bb)](function(bb,bc){return aD(b9,void 0x0,void 0x0,function(){var bd,be,bf,bg,bh;return aE(this,function(bi){var ef=a4b;switch(bi[ef(0x2f5)]){case 0x0:for(bf in(bd=function(bj){var bk;return aE(this,function(bl){var eg=a4b;switch(bl[eg(0x2f5)]){case 0x0:return a6['iV'][bj]?[0x2,'continue']:b3[bj]?(bk=new a4[(eg(0x32d))](a4[eg(0x1be)][eg(0x2d0)][bj],b3[bj]),[0x4,new Promise(function(bm){bk['parse'](function(){a6['iV'][bj]=bk,bm();});})]):[0x3,0x2];case 0x1:bl[eg(0x20d)](),bl[eg(0x2f5)]=0x2;case 0x2:return[0x2];}});},be=[],a4[ef(0x1be)][ef(0x2d0)]))be[ef(0x245)](bf);bg=0x0,bi[ef(0x2f5)]=0x1;case 0x1:return bg<be['length']?(bh=be[bg],[0x5,bd(bh)]):[0x3,0x4];case 0x2:bi[ef(0x20d)](),bi['label']=0x3;case 0x3:return bg++,[0x3,0x1];case 0x4:for(bh in bc)a6['iV'][bh]||b3[bh]||(a6['iV'][bh]=bc[bh]);return b8(),[0x2];}});});}),[0x2];});});});},aW[e9(0x2d2)]['loadSticker3d']=function(aX){return aD(this,void 0x0,Promise,function(){return aE(this,function(aY){return[0x2];});});},aW;}(aH),aJ=a2(0x1424),aK=a2(0x18a5),aL=a2(0x435),aM=(function(){var aV=function(aW,aX){return aV=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(aY,aZ){var eh=a4b;aY[eh(0x2a6)]=aZ;}||function(aY,aZ){var ei=a4b;for(var b0 in aZ)Object['prototype'][ei(0x196)]['call'](aZ,b0)&&(aY[b0]=aZ[b0]);},aV(aW,aX);};return function(aW,aX){var ej=a4b;if(ej(0x183)!=typeof aX&&null!==aX)throw new TypeError(ej(0x18c)+String(aX)+ej(0x207));function aY(){var ek=ej;this[ek(0x217)]=aW;}aV(aW,aX),aW['prototype']=null===aX?Object[ej(0x2d6)](aX):(aY['prototype']=aX[ej(0x2d2)],new aY());};}()),aN=function(aV,aW,aX,aY){var el=c3,aZ,b0=arguments[el(0x299)],b1=b0<0x3?aW:null===aY?aY=Object[el(0x2c0)](aW,aX):aY;if(el(0x1e5)==typeof Reflect&&el(0x183)==typeof Reflect[el(0x21c)])b1=Reflect['decorate'](aV,aW,aX,aY);else{for(var b2=aV['length']-0x1;b2>=0x0;b2--)(aZ=aV[b2])&&(b1=(b0<0x3?aZ(b1):b0>0x3?aZ(aW,aX,b1):aZ(aW,aX))||b1);}return b0>0x3&&b1&&Object[el(0x2f6)](aW,aX,b1),b1;},aO=function(aV,aW){var em=c3;if(em(0x1e5)==typeof Reflect&&em(0x183)==typeof Reflect['metadata'])return Reflect[em(0x2be)](aV,aW);},aP=function(aV,aW,aX,aY){return new(aX||(aX=Promise))(function(aZ,b0){var ep=a4b;function b1(b4){var en=a4b;try{b3(aY[en(0x1af)](b4));}catch(b5){b0(b5);}}function b2(b4){try{b3(aY['throw'](b4));}catch(b5){b0(b5);}}function b3(b4){var eo=a4b,b5;b4[eo(0x26d)]?aZ(b4['value']):(b5=b4['value'],b5 instanceof aX?b5:new aX(function(b6){b6(b5);}))[eo(0x1d8)](b1,b2);}b3((aY=aY[ep(0x293)](aV,aW||[]))['next']());});},aQ=function(aV,aW){var eq=c3,aX,aY,aZ,b0,b1={'label':0x0,'sent':function(){if(0x1&aZ[0x0])throw aZ[0x1];return aZ[0x1];},'trys':[],'ops':[]};return b0={'next':b2(0x0),'throw':b2(0x1),'return':b2(0x2)},eq(0x183)==typeof Symbol&&(b0[Symbol[eq(0x27b)]]=function(){return this;}),b0;function b2(b3){return function(b4){return function(b5){var er=a4b;if(aX)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;b1;)try{if(aX=0x1,aY&&(aZ=0x2&b5[0x0]?aY[er(0x1ff)]:b5[0x0]?aY[er(0x1ee)]||((aZ=aY[er(0x1ff)])&&aZ['call'](aY),0x0):aY[er(0x1af)])&&!(aZ=aZ[er(0x2d9)](aY,b5[0x1]))[er(0x26d)])return aZ;switch(aY=0x0,aZ&&(b5=[0x2&b5[0x0],aZ[er(0x24a)]]),b5[0x0]){case 0x0:case 0x1:aZ=b5;break;case 0x4:return b1[er(0x2f5)]++,{'value':b5[0x1],'done':!0x1};case 0x5:b1[er(0x2f5)]++,aY=b5[0x1],b5=[0x0];continue;case 0x7:b5=b1[er(0x1fb)][er(0x239)](),b1[er(0x26c)]['pop']();continue;default:if(!(aZ=b1[er(0x26c)],(aZ=aZ[er(0x299)]>0x0&&aZ[aZ[er(0x299)]-0x1])||0x6!==b5[0x0]&&0x2!==b5[0x0])){b1=0x0;continue;}if(0x3===b5[0x0]&&(!aZ||b5[0x1]>aZ[0x0]&&b5[0x1]<aZ[0x3])){b1['label']=b5[0x1];break;}if(0x6===b5[0x0]&&b1[er(0x2f5)]<aZ[0x1]){b1[er(0x2f5)]=aZ[0x1],aZ=b5;break;}if(aZ&&b1['label']<aZ[0x2]){b1['label']=aZ[0x2],b1[er(0x1fb)]['push'](b5);break;}aZ[0x2]&&b1[er(0x1fb)]['pop'](),b1[er(0x26c)][er(0x239)]();continue;}b5=aW[er(0x2d9)](aV,b1);}catch(b6){b5=[0x6,b6],aY=0x0;}finally{aX=aZ=0x0;}if(0x5&b5[0x0])throw b5[0x1];return{'value':b5[0x0]?b5[0x1]:void 0x0,'done':!0x0};}([b3,b4]);};}},aR=function(aV){var es=c3,aW='function'==typeof Symbol&&Symbol[es(0x27b)],aX=aW&&aV[aW],aY=0x0;if(aX)return aX[es(0x2d9)](aV);if(aV&&es(0x1a9)==typeof aV[es(0x299)])return{'next':function(){var et=es;return aV&&aY>=aV[et(0x299)]&&(aV=void 0x0),{'value':aV&&aV[aY++],'done':!aV};}};throw new TypeError(aW?'Object\x20is\x20not\x20iterable.':es(0x202));},aS=(0x0,aj['jl'])(c3(0x246)),aT=function(){},aU=function(aV){var ev=c3;function aW(aX){var eu=a4b,aY=aV['call'](this,aX)||this;return aY[eu(0x242)]=!0x1,aY[eu(0x1c5)]=[],aY[eu(0x1f7)]=!0x0,aY[eu(0x195)]=!0x1,aY[eu(0x30f)]=!0x1,aY[eu(0x1a3)]=0x0,console[eu(0x322)](eu(0x300),location),aY[eu(0x1f7)]=!0x1,aX[eu(0x2fe)]?aY[eu(0x326)]=new wx[(eu(0x212))][(eu(0x1b1))](aX[eu(0x2fe)]):aY[eu(0x326)]=new wx[(eu(0x212))][(eu(0x1b1))](wx[eu(0x24c)]({'type':'webgl','width':aX[eu(0x311)],'height':aX[eu(0x268)]})),aY[eu(0x25b)]=new a4[(eu(0x31d))](),aY[eu(0x2ca)]=aX,aY[eu(0x225)]=new a4[(eu(0x246))]({'view':aY['_canvas'],'width':aX[eu(0x311)],'height':aX['height'],'preserveDrawingBuffer':!0x1,'antialias':!0x1}),aY[eu(0x26b)](aX),aY[eu(0x28f)](),aY[eu(0x328)](),aY;}return aM(aW,aV),Object[ev(0x2f6)](aW[ev(0x2d2)],ev(0x29b),{'set':function(aX){},'enumerable':!0x1,'configurable':!0x0}),Object[ev(0x2f6)](aW[ev(0x2d2)],ev(0x2eb),{'set':function(aX){var ew=ev;if(aX){this[ew(0x2b1)]=new a4['Sprite'](a4[ew(0x2a2)][ew(0x31f)](aX));var aY=this[ew(0x2b1)],aZ=aY['width'],b0=aY[ew(0x268)],b1=Math[ew(0x1e4)](this[ew(0x2ca)]['width']/aZ,this[ew(0x2ca)][ew(0x268)]/b0);this['_backgroundVR']['width']*=b1,this['_backgroundVR'][ew(0x268)]*=b1;}else this[ew(0x2b1)]=null;},'enumerable':!0x1,'configurable':!0x0}),Object[ev(0x2f6)](aW[ev(0x2d2)],'options',{'set':function(aX){var ex=ev,aY=aX['width'],aZ=aX[ex(0x268)];this[ex(0x225)]&&this[ex(0x225)][ex(0x2c4)](aY,aZ),this[ex(0x26a)]&&(this[ex(0x26a)][ex(0x311)]=aY,this[ex(0x26a)][ex(0x268)]=aZ,this[ex(0x26a)][ex(0x28c)][ex(0x318)]()),this['_options']=aX;},'enumerable':!0x1,'configurable':!0x0}),Object[ev(0x2f6)](aW[ev(0x2d2)],ev(0x265),{'get':function(){var ey=ev;return this[ey(0x243)];},'enumerable':!0x1,'configurable':!0x0}),Object[ev(0x2f6)](aW[ev(0x2d2)],ev(0x27c),{'get':function(){var ez=ev;return this[ez(0x2ad)];},'enumerable':!0x1,'configurable':!0x0}),aW[ev(0x2d2)][ev(0x26b)]=function(aX){var eA=ev;this[eA(0x2ea)]=new a4['Container'](),this[eA(0x260)]=new a4['Container'](),this['_finalContainer']=new a4[(eA(0x31d))](),this[eA(0x29a)]=a4[eA(0x1f4)][eA(0x2d6)]({'width':aX[eA(0x311)],'height':aX['height']}),this[eA(0x309)]=a4[eA(0x1f4)][eA(0x2d6)]({'width':aX[eA(0x311)],'height':aX[eA(0x268)]}),this['_makeupContainer'][eA(0x29c)](new a4[(eA(0x295))](this['_baseRenderTexture'])),aT[eA(0x2af)]=this[eA(0x29a)],this[eA(0x2fa)][eA(0x29c)](new a4['Sprite'](this[eA(0x309)])),this['_stage'][eA(0x29c)](this[eA(0x2fa)]),this[eA(0x1a2)]=this['_finalContainer'];},aW['prototype'][ev(0x223)]=function(){return aP(this,void 0x0,Promise,function(){var aX;return aQ(this,function(aY){var eB=a4b;switch(aY[eB(0x2f5)]){case 0x0:return[0x4,(aX=new aK['e']({}))[eB(0x233)]()];case 0x1:return aY['sent'](),this[eB(0x2ca)][eB(0x18d)]&&this['_options'][eB(0x18d)](aH,aI,aX),[0x2];}});});},aW[ev(0x2d2)][ev(0x328)]=function(){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aX){var eC=a4b;switch(aX[eC(0x2f5)]){case 0x0:return this[eC(0x242)]?[0x2]:(this['_config']=new a8['M'](),[0x4,this['_config']['load']()]);case 0x1:return aX['sent'](),this[eC(0x242)]=!0x0,[0x2];}});});},Object['defineProperty'](aW[ev(0x2d2)],ev(0x19b),{'get':function(){var eD=ev;return this[eD(0x2ec)];},'set':function(aX){var eE=ev;this[eE(0x2ec)]=aX;},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aW[ev(0x2d2)],ev(0x2b2),{'get':function(){var eF=ev;return this[eF(0x302)]||(this[eF(0x302)]=new a7['f'](eF(0x29b),{'width':ac['t'][eF(0x29f)]['options']['width'],'height':ac['t'][eF(0x29f)][eF(0x320)][eF(0x268)]})),this[eF(0x302)];},'enumerable':!0x1,'configurable':!0x0}),aW[ev(0x2d2)]['switchMode']=function(aX){var eG=ev;aX!==this[eG(0x2a1)]&&('Sticker'===aX&&this[eG(0x2a4)](null),this[eG(0x2a1)]=aX);},aW[ev(0x2d2)][ev(0x270)]=function(aX){var eH=ev,aY=+new Date();console['log'](''[eH(0x286)](aX,eH(0x1a5))[eH(0x286)](aY-this[eH(0x1c6)])),this[eH(0x1c6)]=aY;},aW[ev(0x2d2)][ev(0x190)]=function(aX){var eI=ev,aY=aX[eI(0x294)],aZ=aX[eI(0x19b)],b0=aX[eI(0x2a9)],b1=aX['image'],b2=aX[eI(0x2e4)],b3=(aX[eI(0x273)],aX[eI(0x1e0)],aX[eI(0x259)],aX[eI(0x22e)],aX[eI(0x1f0)]);if(!this[eI(0x195)]){if(this[eI(0x225)]){if(this[eI(0x25b)]){if(this[eI(0x242)]){this['currentTime']=+new Date();try{this[eI(0x225)]['reset']();}catch(ba){}if(this[eI(0x30f)])try{this['_renderer'][eI(0x252)](this['_backgroundVR']);}catch(bb){}else{if(b3){if(this[eI(0x26a)])this[eI(0x26a)][eI(0x28c)][eI(0x318)]();else b8=a4['Texture'][eI(0x31f)](b1),(this[eI(0x26a)]=new a4[(eI(0x295))](b8),this[eI(0x26a)][eI(0x1a7)][eI(0x1ca)](0.5,0.5),this['_baseSprite']['position'][eI(0x1ca)](this['_options'][eI(0x311)]/0x2,this[eI(0x2ca)]['height']/0x2),this[eI(0x26a)][eI(0x314)][eI(0x1ca)](0x1,-0x1),this[eI(0x2ea)]['addChild'](this[eI(0x26a)]));}else{var b4=b1,b5=b4[eI(0x311)],b6=b4[eI(0x268)],b7=b4[eI(0x1eb)];if(this[eI(0x26a)])this[eI(0x26a)][eI(0x28c)]['baseTexture'][eI(0x24f)]['data']=new Uint8Array(b7),this[eI(0x26a)][eI(0x28c)]['update']();else{var b8=a4[eI(0x2a2)][eI(0x218)](new Uint8Array(b7),b5,b6);this[eI(0x26a)]=new a4[(eI(0x295))](b8),this[eI(0x26a)][eI(0x1a7)][eI(0x1ca)](0.5,0.5),this[eI(0x26a)][eI(0x263)][eI(0x1ca)](this[eI(0x2ca)][eI(0x311)]/0x2,this[eI(0x2ca)]['height']/0x2);var b9=Math['max'](this[eI(0x2ca)][eI(0x311)]/b5,this[eI(0x2ca)][eI(0x268)]/b6);this[eI(0x26a)][eI(0x314)][eI(0x1ca)](b9),this[eI(0x2ea)]['addChild'](this['_baseSprite']);}}if(!aY||!aY[eI(0x299)])return this[eI(0x1c5)][eI(0x2bd)](function(bc){var eJ=eI;return bc[eJ(0x316)]=!0x1;}),this[eI(0x1c5)][eI(0x2bd)](function(bc){var eK=eI;bc[eK(0x2f1)]();}),new Date(),(this[eI(0x225)][eI(0x252)](this[eI(0x2ea)],{'renderTexture':this[eI(0x29a)]}),this['_renderer']['render'](this[eI(0x260)],{'renderTexture':this[eI(0x309)]}),void this['_renderer'][eI(0x252)](this[eI(0x25b)]));this[eI(0x287)]=aY,this[eI(0x1d6)]=b2,this[eI(0x19b)]=aZ,this['lipVertex']=b0,this[eI(0x1c5)][eI(0x2bd)](function(bc){var eL=eI;bc[eL(0x316)]||(bc[eL(0x316)]=!0x0),bc[eL(0x1aa)]=b0,bc[eL(0x240)]=aZ,bc[eL(0x2e4)]=b2,bc[eL(0x247)]=aY,bc[eL(0x190)]();}),this[eI(0x225)][eI(0x252)](this[eI(0x2ea)],{'renderTexture':this[eI(0x29a)]}),this[eI(0x225)][eI(0x252)](this[eI(0x260)],{'renderTexture':this[eI(0x309)]}),this['_renderer'][eI(0x252)](this['_stage']),eI(0x2ce)===this[eI(0x2a1)]&&this[eI(0x243)]&&this['_app3d'][eI(0x24b)]&&(this[eI(0x243)][eI(0x280)]=aY,this[eI(0x243)][eI(0x2e4)]=b2,this[eI(0x243)][eI(0x252)]());}}else aj['b_'][eI(0x244)](eI(0x2bc));}else aj['b_']['info'](eI(0x2d7));}else aj['b_'][eI(0x244)]('_renderer\x20waiting\x20for\x20renderer');}},aW[ev(0x2d2)][ev(0x290)]=function(){var eM=ev;return this[eM(0x26a)][eM(0x28c)];},aW[ev(0x2d2)][ev(0x180)]=function(){var eN=ev;this[eN(0x1e0)]&&(this['background'][eN(0x1c4)](),this['background']=null);},aW['prototype'][ev(0x18b)]=function(aX){var eO=ev;this[eO(0x1e0)];},aW[ev(0x2d2)][ev(0x22f)]=function(aX){var eP=ev;if(!this[eP(0x283)]){for(var aY=[],aZ=0x0;0x2*aZ<aX['length'];aZ++){var b0=this[eP(0x306)](0x2);aY[eP(0x245)](b0),this[eP(0x2ea)][eP(0x29c)](b0);}this[eP(0x283)]=aY;}for(aZ=0x0;0x2*aZ<aX[eP(0x299)];aZ++)this[eP(0x283)][aZ]['x']=aX[0x2*aZ],this['points'][aZ]['y']=aX[0x2*aZ+0x1];},aW[ev(0x2d2)][ev(0x1c7)]=function(aX){var eQ=ev;if(console[eQ(0x322)]('debug\x20draw\x202',aX[eQ(0x299)]),!this['points']){for(var aY=[],aZ=0x0;aZ<aX[eQ(0x299)];aZ++){var b0=this[eQ(0x306)](0x2);aY[eQ(0x245)](b0),this[eQ(0x2ea)][eQ(0x29c)](b0);}this[eQ(0x283)]=aY;}for(aZ=0x0;aZ<aX[eQ(0x299)];aZ++)this['points'][aZ]['x']=0x21c*aX[aZ]['x'],this[eQ(0x283)][aZ]['y']=0x21c*aX[aZ]['y'];},aW['prototype'][ev(0x1f1)]=function(){var eR=ev,aX=this[eR(0x2ca)],aY=aX[eR(0x311)],aZ=aX[eR(0x268)],b0=new Uint8Array(aY*aZ*0x4),b1=this[eR(0x225)]['gl'];return b1[eR(0x19f)](0x0,0x0,aY,aZ,b1[eR(0x321)],b1[eR(0x1ec)],b0),{'data':b0,'width':aY,'height':aZ};},aW[ev(0x2d2)][ev(0x1ad)]=function(aX,aY,aZ,b0){return aP(this,void 0x0,Promise,function(){var b1,b2=this;return aQ(this,function(b3){var eS=a4b;return b1=!0x0,this[eS(0x2c1)]&&this[eS(0x2c1)][eS(0x299)]===aX[eS(0x299)]&&aX[eS(0x2cb)](function(b4){var eT=eS;return b2[eT(0x2c1)]['indexOf'](b4)>-0x1;})&&(b1=!0x1,this[eS(0x278)]&&(clearTimeout(this[eS(0x278)]),this[eS(0x278)]=null)),this['latestEffectUrls']=aX,[0x2,new Promise(function(b4,b5){var eU=eS;b1?(b2['debounceTimer']&&(clearTimeout(b2['debounceTimer']),b2[eU(0x278)]=null),b2[eU(0x278)]=setTimeout(function(){return b2['_setEffect'](aX,aY,aZ,b0)['then'](function(b6){var eV=a4b;clearTimeout(b2[eV(0x278)]),b2[eV(0x278)]=null,b4(b6);});},0x64)):b2[eU(0x23d)](aX,aY,aZ)[eU(0x1d8)](function(b6){b4(b6);});})];});});},aW['prototype'][ev(0x23d)]=function(aX,aY,aZ,b0){return aP(this,void 0x0,Promise,function(){var b1,b2=this;return aQ(this,function(b3){var eW=a4b;return aj['b_'][eW(0x1a4)](eW(0x2da)),this[eW(0x2ec)]?(aj['b_'][eW(0x1cd)](eW(0x2da)),b1=eW(0x2e7)+Math[eW(0x276)](0x5f5e100*Math['random']()),[0x2,new Promise(function(b4,b5){return aP(b2,void 0x0,void 0x0,function(){var b6,b7,b8,b9,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk=this;return aQ(this,function(bl){var eX=a4b;switch(bl[eX(0x2f5)]){case 0x0:for(b6=[][eX(0x286)](this[eX(0x1c5)]),b7=[],b8=[],b9=[],ba=[],bb=[],bc=[],aX[eX(0x299)]||(this[eX(0x1a8)]=null),bd=function(bm){var eY=eX,bn=b6[eY(0x2ee)](function(bq){return bq['url']===aX[bm];}),bo=void 0x0;if(bn>-0x1)b7[eY(0x245)](b6[bn]),bo=b6[bn],b8[eY(0x245)](aY[bm]),b9[eY(0x245)](aZ[bm]),b6['splice'](bn,0x1);else{var bp=aX[bm];(bo=new aH(bp,be[eY(0x260)],be[eY(0x2fa)],be['_app3d'],be['_options'],be['_meshVertex'],be[eY(0x287)],be[eY(0x2a9)],be[eY(0x1d6)],aY[bm],be['_canvas']))[eY(0x2df)]=aZ[bm],bo[eY(0x19a)]=be[eY(0x225)],ba['push'](bo),bc[eY(0x245)](bo['download']());}},be=this,bf=0x0;bf<aX['length'];bf++)bd(bf);return[0x4,Promise[eX(0x2b8)](bc)];case 0x1:if(bg=bl[eX(0x20d)](),aj['b_'][eX(0x1a4)](eX(0x1de)),this[eX(0x1f2)])return[0x3,0x5];bh=0x0,bl[eX(0x2f5)]=0x2;case 0x2:return bh<bg[eX(0x299)]?(bi=bg[bh],(bj=bi[eX(0x2c3)])&&bj[eX(0x299)]?b0&&!b0()?[0x2]:(console[eX(0x322)]('require\x203d\x20lib'),[0x4,this[eX(0x223)]()]):[0x3,0x4]):[0x3,0x5];case 0x3:bl[eX(0x20d)](),this[eX(0x1f2)]=!0x0,bl[eX(0x2f5)]=0x4;case 0x4:return bh++,[0x3,0x2];case 0x5:return aj['b_'][eX(0x1cd)](eX(0x1de)),ba[eX(0x2bd)](function(bm){var eZ=eX;bb[eZ(0x245)](bm['load']()[eZ(0x1d8)](function(){var f0=eZ;return bk['_app3d']||(bk[f0(0x243)]=bm[f0(0x265)]),bm;})[eZ(0x2d8)](function(bn){var f1=eZ;aS[f1(0x30a)](f1(0x274),bn);}));}),aj['b_'][eX(0x1a4)]('renderer\x20parse\x20effect'),Promise[eX(0x2b8)](bb)['then'](function(bm){var f2=eX;aj['b_']['timeEnd'](f2(0x1a1)),aj['b_']['time']('renderer\x20apply\x20effect');for(var bn=!0x1,bo=0x0;bo<ba[f2(0x299)];bo++){var bp=ba[bo];bk[f2(0x2c1)]&&-0x1===bk[f2(0x2c1)][f2(0x28a)](bp[f2(0x1dd)]())&&(bp['destroy'](),bn=!0x0);}if(bn)aS[f2(0x244)](b1+f2(0x28b));else{b6[f2(0x2bd)](function(bq){var f3=f2;bq[f3(0x1c4)]();}),bk[f2(0x1c5)]=b7,b7[f2(0x2bd)](function(bq,br){var f4=f2;bq[f4(0x2db)]=b8[br],bq['filterIntensity']=b9[br];});for(bo=0x0;bo<ba[f2(0x299)];bo++){bp=ba[bo],(bk[f2(0x1c5)][f2(0x245)](bp),bp[f2(0x293)]({'filterTarget':bk[f2(0x26a)],'filterCallback':function(){}}));}b6[f2(0x2bd)](function(bq){var f5=f2;bq[f5(0x267)]();}),aj['b_'][f2(0x1cd)](f2(0x324)),b4(bk['_effects']);}}),[0x2];}});});})]):[0x2,new Promise(function(b4){var f6=eW;clearTimeout(b2['_meshVertexTimer']),b2[f6(0x1a3)]=setInterval(function(){var f7=f6;aj['b_'][f7(0x244)](f7(0x2da)),b2['_meshVertex']&&(aj['b_'][f7(0x244)](f7(0x2a5)),clearTimeout(b2['_meshVertexTimer']),b2[f7(0x23d)](aX,aY,aZ,b0)[f7(0x1d8)](function(){var f8=f7;b4(b2[f8(0x1c5)]);}));},0xc8);})];});});},aW[ev(0x2d2)][ev(0x22b)]=function(aX){return aP(this,void 0x0,void 0x0,function(){var aY,aZ,b0,b1=this;return aQ(this,function(b2){var f9=a4b;switch(b2[f9(0x2f5)]){case 0x0:return this[f9(0x1f2)]?[0x3,0x2]:(aZ=aX[f9(0x2c3)])&&aZ['length']?(console['log'](f9(0x1de)),[0x4,this[f9(0x223)]()]):[0x3,0x2];case 0x1:b2[f9(0x20d)](),this[f9(0x1f2)]=!0x0,b2['label']=0x2;case 0x2:return(b0=function(){var fa=f9;if(b1[fa(0x2ec)]){aY&&clearTimeout(aY);var b3=new aI(aX,b1[fa(0x260)],b1[fa(0x2fa)],b1[fa(0x243)],b1[fa(0x2ca)],b1[fa(0x2ec)],b1[fa(0x287)],b1[fa(0x2a9)]);b3[fa(0x19a)]=b1[fa(0x225)],b3[fa(0x1bb)]()['then'](function(){var fb=fa;b1[fb(0x243)]||(b1[fb(0x243)]=b3[fb(0x265)]);var b4=[][fb(0x286)](b1[fb(0x1c5)]);b1[fb(0x1c5)]=[b3],b3[fb(0x293)]({'filterTarget':b1[fb(0x26a)]}),b4[fb(0x2bd)](function(b5){b5['destroy']();});});}else aY=setTimeout(b0,0x14);})(),[0x2];}});});},aW[ev(0x2d2)][ev(0x2b5)]=function(aX,aY){var aZ=this;return void 0x0===aY&&(aY=0x1),new Promise(function(b0,b1){!(function(){var fc=a4b;if(aZ[fc(0x224)]&&aZ['exclusiveFilter'][fc(0x1dd)]()===aX)aZ[fc(0x224)][fc(0x2db)]=aY,aZ[fc(0x224)]['filterIntensity']=aY;else{var b2=new aH(aX,aZ[fc(0x260)],aZ['_finalContainer'],aZ['_app3d'],aZ[fc(0x2ca)],aZ[fc(0x2ec)],aZ[fc(0x287)],aZ[fc(0x2a9)],aZ[fc(0x1d6)],aY);b2[fc(0x2df)]=aY,b2[fc(0x1bb)]()[fc(0x1d8)](function(){var fd=fc;aZ[fd(0x224)]&&aZ['exclusiveFilter'][fd(0x267)](),aZ[fd(0x224)]=b2,b2['renderer']=aZ[fd(0x225)],b2[fd(0x293)]({'filterTarget':aZ['_baseSprite']}),b0();});}}());});},aW['prototype'][ev(0x2c4)]=function(aX,aY){var fe=ev;aV['prototype'][fe(0x2c4)][fe(0x2d9)](this,aX,aY),console[fe(0x322)](fe(0x2f9),aX,aY),this['_options'][fe(0x311)]=aX,this[fe(0x2ca)]['height']=aY,this[fe(0x225)][fe(0x2c4)](aX,aY),this['background']&&this[fe(0x1e0)]['resize'](aX,aY),this[fe(0x243)]?this[fe(0x243)]['resize'](aX,aY):this['_avatar3d']&&this[fe(0x2ad)][fe(0x2c4)](aX,aY),this[fe(0x29a)]&&this[fe(0x29a)][fe(0x2c4)](aX,aY),this['_makeupRenderTexture']&&this['_makeupRenderTexture']['resize'](aX,aY);},aW[ev(0x2d2)][ev(0x272)]=function(){var ff=ev;this[ff(0x224)]&&this[ff(0x224)][ff(0x1c4)]();},aW[ev(0x2d2)][ev(0x329)]=function(){var fg=ev;this[fg(0x224)]&&this[fg(0x224)]['apply']({'filterTarget':this[fg(0x26a)],'filterCallback':function(){}});},aW[ev(0x2d2)][ev(0x323)]=function(){var fh=ev;this[fh(0x1c5)][fh(0x2bd)](function(aX){var fi=fh;console[fi(0x322)]('disableEffect',aX),aX[fi(0x2fb)]||aX['remove']();});},aW[ev(0x2d2)][ev(0x18a)]=function(){var aX=this;this['_effects']['forEach'](function(aY){var fj=a4b;aY['apply']({'filterTarget':aX[fj(0x26a)],'filterCallback':function(){}});});},aW[ev(0x2d2)][ev(0x313)]=function(){var fk=ev;this[fk(0x224)]&&(this[fk(0x224)][fk(0x267)](),this['exclusiveFilter']=null);},aW[ev(0x2d2)]['initAvatarApp']=function(aX,aY){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aZ){return[0x2];});});},aW[ev(0x2d2)][ev(0x2a4)]=function(aX,aY){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aZ){return[0x2];});});},aW[ev(0x2d2)]['registerAvatar']=function(aX){},aW[ev(0x2d2)][ev(0x2f8)]=function(){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aX){return[0x2];});});},aW[ev(0x2d2)][ev(0x30d)]=function(){return this['_canvas'];},aW['prototype']['setOptions']=function(aX){},aW['prototype'][ev(0x1ae)]=function(aX){var fl=ev;this['_canvas']&&aX[fl(0x1ab)](this['_canvas']);},aW[ev(0x2d2)][ev(0x306)]=function(aX){var fm=ev;void 0x0===aX&&(aX=0x5);var aY=new a4[(fm(0x2a3))]();return aY['beginFill'](0xff0000),aY['drawCircle'](0x0,0x0,aX),aY[fm(0x220)](),aY;},aW[ev(0x269)]=function(aX){return aP(this,void 0x0,Promise,function(){var aY,aZ,b0,b1,b2,b3,b4;return aQ(this,function(b5){var fn=a4b;switch(b5['label']){case 0x0:return aX[fn(0x299)]?[0x4,(aY=new a6['pF']())['init']()]:[0x2];case 0x1:b5['sent'](),aZ=[];try{for(b0=aR(aX),b1=b0[fn(0x1af)]();!b1[fn(0x26d)];b1=b0['next']())(b2=b1[fn(0x24a)])&&aZ[fn(0x245)](aY[fn(0x20a)](b2));}catch(b6){b3={'error':b6};}finally{try{b1&&!b1[fn(0x26d)]&&(b4=b0[fn(0x1ff)])&&b4[fn(0x2d9)](b0);}finally{if(b3)throw b3[fn(0x200)];}}return[0x2,Promise[fn(0x2b8)](aZ)['then'](function(){var fo=fn;return Promise[fo(0x1ba)]();})[fn(0x2d8)](function(b7){var fp=fn;return Promise[fp(0x26f)](b7);})];}});});},aW[ev(0x2d2)][ev(0x28f)]=function(){var fq=ev,aX=this[fq(0x2ca)],aY=aX[fq(0x2b3)],aZ=aX[fq(0x31a)],b0=void 0x0===aZ?{}:aZ;if(aY){var b1=aW[fq(0x193)]=new aJ['Z'](b0);b1[fq(0x288)]=0x14;var b2=this[fq(0x2ca)],b3=b2[fq(0x311)],b4=b2['height'];b1['x']=b3/0x2,b1['y']=b4/0x2,this[fq(0x25b)]['addChild'](b1);}},aW[ev(0x2d2)]['showLoading']=function(){var fr=ev;aW[fr(0x193)]&&aW[fr(0x193)][fr(0x210)]();},aW[ev(0x2d2)]['hideLoading']=function(){var fs=ev;aW[fs(0x193)]&&aW[fs(0x193)][fs(0x1ef)]();},aW[ev(0x2d2)][ev(0x267)]=function(){var ft=ev;this[ft(0x208)](),aW[ft(0x193)]&&aW[ft(0x193)][ft(0x267)](),aT[ft(0x2af)][ft(0x267)](!0x0),aT[ft(0x2af)]=null,this[ft(0x195)]=!0x0,this[ft(0x1c5)][ft(0x2bd)](function(aX){var fu=ft;aX[fu(0x267)]();}),this['exclusiveFilter']&&this[ft(0x224)][ft(0x267)](),this['_stage']&&this['_stage'][ft(0x267)](!0x0),this[ft(0x225)]&&this['_renderer']['destroy'](!0x0),this[ft(0x1e0)]&&this[ft(0x1e0)]['destroy'](),this[ft(0x243)]&&this[ft(0x243)][ft(0x267)](),this['_meshVertexTimer']&&clearTimeout(this['_meshVertexTimer']),this['destroyAvatar']();},aW['prototype'][ev(0x2f3)]=function(){var fv=ev;this[fv(0x2ad)]&&(this[fv(0x2ad)][fv(0x267)](),this['_avatar3d']=null);},aN([(0x0,ab['M'])('ArRenderer'),aO('design:type',Function),aO(ev(0x281),[]),aO(ev(0x20e),void 0x0)],aW[ev(0x2d2)],ev(0x267),null),aW;}(aL['F']);}}]));function a4b(a,b){var c=a4a();return a4b=function(d,e){d=d-0x180;var f=c[d];return f;},a4b(a,b);}function a4a(){var fw=['throw','hide','isLivePusher','getPixels','lib3dLoaded','set\x20parentIntensity','RenderTexture','\x20=\x20texture2D(uSamplerMakeup','_maskGraphics','_debug','removeForConsole','_getMask','_lipMaskTexture','ops','renderTexture','IrisLayer','getCircle2','return','error','aVertexPosition','Symbol.iterator\x20is\x20not\x20defined.','116211BqhLZo','type','drawMeshBatch','checkSpriteSheetJSON','\x20is\x20not\x20a\x20constructor\x20or\x20null','hideLoading','_irises','preload','continue','find','sent','design:returntype','_leftIris','show','checkAnimated','window','_getPixelPosition','_json','_key','iris','constructor','fromBuffer','191558BzBoHy','_faceLandMarks','hasEyeMakeup','decorate','filterActived','StickerLayer','removeChild','endFill','moveTo','_applyMakeup','loadLib3d','exclusiveFilter','_renderer','_rightIris','jsonIntensity','_camera','lut','makeup','setEffectJSON','442212PmLdlk','drawCircle','blendshapes','debugDraw','blob:','key','json','init','setPlanes','Shader','_getLoader','url','_dir','pop','blend','name','lips','_setEffect','imageOffset','_lipMaskMesh','mesh',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(makeupColor.a>0.)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20混合\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20baseColor.rgb\x20=\x20blend','_setup','_app3d','info','push','Renderer','faceLandMarks','pitch','already\x20loaded\x20file','value','loaded','createOffscreenCanvas','_initLipMask','add','resource','readJSON','MIPMAP_MODES','render','maxRConSize','_makeupMeshes','\x20=\x20color','getBuffer','some','loadFilter','segmentation','geometry','_stage','RIGHT_IRIS','blendMode_1','filterCallback','fps','_makeupContainer','_loadImages','makeupLayersByBlendMode','position','POINTS_MAP','app3d','Loader','destroy','height','preloadEffects','_baseSprite','initRenderContext','trys','done','_lipMask','reject','logTime','textures','disableExclusiveFilter','backgroundType','effect\x20load\x20error','alpha','floor','_config','debounceTimer','undefined','_url','iterator','avatar3d','4ihePhg','Makeup','filterTarget','facelandmarks','design:paramtypes','WHITE','points','Mesh','maskSprite','concat','_faceLandmarks','zIndex','_loader','indexOf','end','texture','convertTo3d','uniforms','handleLoading','getBaseTexture','irisRenderTexture','_parentIntensity','apply','landmarks','Sprite','irisBlendMode','objectSrc','src','length','_baseRenderTexture','mirror','addChild','animationSpeed','trigger','instance','mouthShut','_mode3d','Texture','Graphics','setAvatar','waiting\x20for\x20AI\x20init...done','__proto__','keys','\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20attribute\x20vec2\x20aVertexPosition;\x0a\x20\x20\x20\x20\x20\x20attribute\x20vec2\x20aUvs;\x0a\x20\x20\x20\x20\x20\x20uniform\x20mat3\x20translationMatrix;\x0a\x20\x20\x20\x20\x20\x20uniform\x20mat3\x20projectionMatrix;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x0a\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vUvs\x20=\x20aUvs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20vec4((projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0)).xy,\x200.0,\x201.0);\x0a\x20\x20\x20\x20\x20\x20}','lipVertex','meta','maxLConSize',',\x20vUvs)\x20*\x20realIntensity','_avatar3d','LEFT_EYE_ORDER','baseTexture','use\x20imagebitmap\x20to\x20create\x20texture','_backgroundVR','mirrorFilter','enableLoadingIcon','filters','setExclusiveFilter','Geometry','Effect','all','remove\x20effect','localSpriteSheets','updateGeometry','_renderer\x20waiting\x20for\x20setup','forEach','metadata','.json','getOwnPropertyDescriptor','latestEffectUrls','yaw','sticker3d','resize','clear','_drawMaskGraphics','\x0a\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20attribute\x20vec2\x20aVertexPosition;\x0a\x20\x20\x20\x20attribute\x20vec2\x20aUvs;\x0a\x0a\x20\x20\x20\x20uniform\x20mat3\x20translationMatrix;\x0a\x20\x20\x20\x20uniform\x20mat3\x20projectionMatrix;\x0a\x20\x20\x20\x20uniform\x20vec2\x20size;\x0a\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20varying\x20vec2\x20bUvs;\x0a\x0a\x20\x20\x0a\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20vUvs\x20=\x20aUvs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20bUvs\x20=\x20aVertexPosition.xy\x20/size;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20lipUvs\x20=\x20lipAuvs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20vec4((projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0)).xy,\x200.0,\x201.0);\x0a\x20\x20\x20\x20}','63800hgTFpi','default','_options','every','mask','baseImage','Sticker','destroyForConosle','TextureCache','_cacheMask','prototype','lineTo','14DeAGIx','_getMeshLayerByBlendMode','create','_renderer\x20waiting\x20for\x20stage','catch','call','waiting\x20for\x20AI\x20init...','intensity','shader','_getConfig','wxWeights','filterIntensity','_applyed','setMakeup','_container','hasFilter','angles','getTexture','getIndeLoader','uid_','renderMesh','_makeup','_baseContainer','backGroundVR','_meshVertex','size','findIndex','left_eye_center','_applyFilter','tickMesh','sticker','destroyAvatar','_getIris','label','defineProperty','setStickerProps','reCorrectAvatar','renderer\x20resize','_finalContainer','isPureFilter','getConfigByKeys','clone','output','_maskSprite','[@#$]\x20AR\x20Renderer\x20Constructed','_jsonIntensity','_mirrorFilter','download:','lipMask','closePath','getCircle','getDisplay','_filters','_makeupRenderTexture','warn','_sticker','RIGHT_EYE_ORDER','getCanvas','parentIntensity','_isVR','是否闭嘴的','width','_maskRenderTexure','removeExclusiveFilter','scale','clearTexture','visible','\x20=\x20intensity','update','_createFilterSync','loadingIconOptions','design:type','_removeFilter','Container','_removeMakeup','from','options','RGBA','log','disableEffects','renderer\x20apply\x20effect','makeup\x20info','_canvas','BaseRenderTexture','setup','enableExclusiveFilter','reduce','_maskRenderTexture','uniform\x20float\x20intensity','Spritesheet','723752yiaaJV','load3d','removeBackground','min','split','function','_loadLipImage','Object\x20is\x20not\x20iterable.','_filtersActived','download',',\x20vUvs);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20a','filter','enableEffects','applyBackground','Class\x20extends\x20value\x20','plugin3d','_stickers','lineStyle','tick','initThreeApp','_mesh','loading','map','_destroyed','hasOwnProperty','addToCache','resources','_visible','renderer','meshVertex','parse','sticker\x20blend','_data','readPixels','addAttribute','renderer\x20parse\x20effect','_target','_meshVertexTimer','time','\x20time:','setIrisProps','anchor','filterActivedEffect','number','lipmesh','appendChild','_src','setEffect','mount','next','_lipMaskIns','Canvas','offset','_landmarks','2295090VbTkIA','_name','\x0a\x0a\x20\x20\x20\x20\x20\x20','webpackChunktencentcloud_webar','loadImage','\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20混合美瞳\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20irisColor\x20=\x20texture2D(uSamplerIris,\x20bUvs);\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(irisColor.a\x20>\x200.)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20baseColor.rgb\x20=\x20blend','resolve','load','\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20\x20\x20uniform\x20sampler2D\x20uSamplerMakeup;\x0a\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20texture2D(uSamplerMakeup,\x20vUvs);\x0a\x20\x20\x20\x20\x20\x20}','join','utils','_stickerTarget','SCALE_MODES','(baseColor.rgb,\x20makeupColor.rgb/makeupColor.a\x20,\x20makeupColor.a);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','aUvs','JSONEffect\x20blob\x20texture','remove','_effects','currentTime','debugDraw2','scaleMode','beginFill','set','image','\x0a\x20\x20\x20\x20uniform\x20float\x20parentIntensity;\x0a\x20\x20\x20\x20uniform\x20int\x20enable;\x0a\x20\x20\x20\x20uniform\x20sampler2D\x20baseImage;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20uniform\x20sampler2D\x20uSamplerIris;\x0a\x0a\x20\x20\x20\x20//\x20uniform\x20int\x20mirror;\x0a\x20\x20\x20\x20uniform\x20vec2\x20imageOffset;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20','timeEnd','euler','_intensity','ReuseableLipMask','loadSticker3d','.a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20realIntensity','OFF','enable','_filterTarget','_angles','beautify','then','wxAnchorArea','5060CvGrSR','LINEAR','uSamplerMakeup','getUrl','require\x203d\x20lib','_lipVertex','background','roll','play','includes','max','object','splice','_filterIntensity','eyes','apply3d','\x0a\x20\x20\x20\x20','data','UNSIGNED_BYTE','loadStickers'];a4a=function(){return fw;};return a4a();}
1
+ var self = wx;(self.webpackChunktencentcloud_webar=self.webpackChunktencentcloud_webar||[]).push([[321],{6237:(e,t,n)=>{n.d(t,{g:()=>le,b:()=>he});var i,r=n(337),o=n(3044),s=n(5536),a=n(1206),c=n(617),u=n(9560),h=n(1084),l=n(3849),p=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},d=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},y=function(){function e(e,t,n,i,r,o){this._destroyed=!1,this.type="makeup",this._parentIntensity=1,this._jsonIntensity=1,this.textures=[],this._dir=t,this._options=e,this._container=n,this._lipMaskTexture=o,this.renderer=i,this.type=r||"makeup"}return Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this.shader&&(this.shader.uniforms.parentIntensity=e);this._parentIntensity=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lipMask",{set:function(e){null===e?(this._mesh.removeChild(this._cacheMask),this._mesh.mask=e):(this._mesh.addChild(e),this._mesh.mask=e,this._cacheMask=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{set:function(e){this.shader&&(this.shader.uniforms.enable=e?1:0)},enumerable:!1,configurable:!0}),e.prototype.updateGeometry=function(e){this._destroyed},e.prototype.renderMesh=function(){},e.prototype.drawMeshBatch=function(e,t){var n=this;if(!this._destroyed){var i=Array.from(e.reduce((function(e,t){return e.add(t.blend),e}),new Set));this.irisRenderTexture&&!i.includes(this.irisBlendMode)&&i.push(this.irisBlendMode);var r="\n precision mediump float;\n varying vec2 vUvs;\n varying vec2 bUvs;\n \n\n ".concat(e.map((function(e,t){return"uniform sampler2D uSamplerMakeup".concat(t,";")})).join("\n"),"\n ").concat(e.map((function(e,t){return"uniform float intensity".concat(t,";")})).join("\n"),"\n uniform float parentIntensity;\n uniform int enable;\n uniform sampler2D baseImage;\n \n uniform sampler2D uSamplerIris;\n\n // uniform int mirror;\n uniform vec2 imageOffset;\n \n ").concat(i.map((function(e){return u.Lc[e].shader})).join("\n"),"\n \n void main() {\n if (enable == 0) {\n gl_FragColor = vec4(0.0,0.0,0.0,0.0);\n return;\n }\n\n // todo:适配镜像与非镜像\n vec2 baseCoord = bUvs;\n baseCoord += imageOffset;\n // if (mirror == 1) {\n // baseCoord = vec2(1.0 - bUvs.x, bUvs.y);\n // }\n vec4 baseColor = texture2D(baseImage, baseCoord);\n\n vec4 makeupColor = vec4(0.0);\n\n ").concat(e.map((function(e,t){return"\n \n vec4 color".concat(t," = texture2D(uSamplerMakeup").concat(t,", vUvs);\n float a").concat(t," = color").concat(t,".a;\n float realIntensity").concat(t," = intensity").concat(t," * parentIntensity;\n makeupColor = texture2D(uSamplerMakeup").concat(t,", vUvs) * realIntensity").concat(t,";\n if (makeupColor.a>0.) {\n // 混合\n baseColor.rgb = blend").concat(u.Lc[e.blend].key,"(baseColor.rgb, makeupColor.rgb/makeupColor.a , makeupColor.a);\n }\n \n \n \n\n ")})).join("\n"),"\n\n ").concat(this.irisRenderTexture?"\n // 混合美瞳\n vec4 irisColor = texture2D(uSamplerIris, bUvs);\n if (irisColor.a > 0.) {\n baseColor.rgb = blend".concat(u.Lc[this.irisBlendMode].key,"(baseColor.rgb, irisColor.rgb/irisColor.a , irisColor.a);\n }\n "):"","\n \n \n\n // 输出\n gl_FragColor = baseColor;\n }"),o={enable:1};o.parentIntensity=this.parentIntensity;var s=this._options,c=s.width,h=s.height;o.baseImage=he.baseTexture,o.size=[c*h/he.baseTexture.height,h];var p=he.baseTexture.width*h/he.baseTexture.height;o.imageOffset=[(p-c)/2/p,0],e.forEach((function(e,t){var i="default"===n._dir?e.src:"".concat(n._dir,"|").concat(e.src),r=a.P6.kN[i];o["uSamplerMakeup".concat(t)]=r,o["intensity".concat(t)]=e.intensity,n.textures.push(r)})),this.irisRenderTexture&&(o.uSamplerIris=this.irisRenderTexture);var f=a.ex.from("\n precision mediump float;\n attribute vec2 aVertexPosition;\n attribute vec2 aUvs;\n\n uniform mat3 translationMatrix;\n uniform mat3 projectionMatrix;\n uniform vec2 size;\n varying vec2 vUvs;\n varying vec2 bUvs;\n\n \n void main() {\n vUvs = aUvs;\n bUvs = aVertexPosition.xy /size;\n // lipUvs = lipAuvs;\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n }",r,o);this.shader=f,l.t.instance.on("mirrorChange",(function(e){}));var d=new a.Kj(t,f);return this._mesh=d,this._container.addChild(d),d}},e.prototype.destroy=function(){this._destroyed=!0,this._mesh&&(this._mesh.destroy({children:!0,texture:!1,baseTexture:!1}),this._mesh.mask=null,this._mesh=null),this._maskRenderTexure&&this._maskRenderTexure.destroy(!1)},f([(0,h.M)("MakeupLayer"),d("design:type",Function),d("design:paramtypes",[Array]),d("design:returntype",void 0)],e.prototype,"updateGeometry",null),f([(0,h.M)("MakeupLayer"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],e.prototype,"destroy",null),e}(),_=function(e){function t(t,n,i,r,o,s,c){var u=e.call(this,t,n,c)||this;return u._maskGraphics=new a.TC,u.maxLConSize=0,u.maxRConSize=0,u._parentIntensity=1,u.jsonIntensity=o,u.getTexture(i,r),u._config=s,u.renderTexture=a.TI.create({width:t.width,height:t.height}),u}var n,i;return p(t,e),Object.defineProperty(t.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this._container&&(this._container.alpha=this.jsonIntensity*e),this._parentIntensity=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{set:function(e){this._container.visible=e},enumerable:!1,configurable:!0}),t.prototype.getTexture=function(e,t){var n="default"===this._dir?e:"".concat(this._dir,"|").concat(e),i=a.P6.kN[n],r=new a.jy(i),o=new a.jy(i.clone());r.anchor.set(.5),o.anchor.set(.5),this._leftIris=r,this._rightIris=o;var s=new a.W2;this._maskGraphics||(this._maskGraphics=new a.TC),s.addChild(this._maskGraphics),s.addChild(r),s.addChild(o),s.alpha=this.parentIntensity*this.jsonIntensity,s.mask=this._maskGraphics,this._container=s},t.prototype.setIrisProps=function(e,t){if(e.length){var n=this._config.getConfigByKeys(["POINTS_MAP","LEFT_IRIS","RIGHT_IRIS","LEFT_EYE_ORDER","RIGHT_EYE_ORDER"]),i=n.POINTS_MAP,r=(n.LEFT_IRIS,n.RIGHT_IRIS,n.LEFT_EYE_ORDER),o=n.RIGHT_EYE_ORDER,s=(i.left_eye_center,i.right_eye_center,getDistance(e[52],e[55])),a=getDistance(e[58],e[61]),c=Math.max(this.maxLConSize,getDistance(e[72],e[73])/s),u=Math.max(this.maxRConSize,getDistance(e[75],e[76])/a),h=s*c,l=s*c,p=a*u,f=a*u;this.maxLConSize=Math.max(Math.min(c,.7),.4),this.maxRConSize=Math.max(Math.min(u,.7),.4);var d=he.baseTexture.width*this._options.height/he.baseTexture.height,y=getCenter(e[74],e[104]),_=getCenter(e[77],e[105]);console.log("offset",(d-this._options.width)/2),y.x-=(d-this._options.width)/2,_.x-=(d-this._options.width)/2;var b=this._leftIris,m=this._rightIris;b.width=h,b.height=l,b.x=y.x,b.y=y.y,m.width=p,m.height=f,m.x=_.x,m.y=_.y,this._maskGraphics.clear(),this._drawMaskGraphics(r,e),this._drawMaskGraphics(o,e),t.render(this._container,{renderTexture:this.renderTexture})}},t.prototype._drawMaskGraphics=function(e,t){var n=this,i=this._maskGraphics;i.beginFill(16724736),i.lineStyle(1,16767232,1);var r=[];e.forEach((function(o,s){var a=t[o],c=n._getPixelPosition(a.x,a.y),u=c.x,h=c.y;r.push({x:u,y:h}),0===s?i.moveTo(u,h):s===e.length-1?(i.closePath(),i.endFill()):i.lineTo(u,h)}))},t.prototype._getPixelPosition=function(e,t){return{x:e,y:t}},t.prototype.destroy=function(){this._leftIris&&this._leftIris.destroy({children:!0,texture:!1,baseTexture:!1}),this._rightIris&&this._rightIris.destroy({children:!0,texture:!1,baseTexture:!1}),this._maskGraphics&&this._maskGraphics.destroy({children:!0,texture:!1,baseTexture:!1})},f([(0,h.M)("IrisLayer"),d("design:type",Function),d("design:paramtypes",["function"==typeof(n="undefined"!=typeof Array&&Array)?n:Object,"function"==typeof(i=void 0!==a.Th&&a.Th)?i:Object]),d("design:returntype",void 0)],t.prototype,"setIrisProps",null),t}(y),b=n(3120),m=n(1347),g=n(6109),v=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},k=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},x=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},w=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},S=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},M=(0,g.jl)("makeup"),T=function(){function e(e,t,n){e&&(this._options=e),t&&(this._lipVertex=t),n&&(this.renderer=n)}return e.prototype.destroy=function(){var e=this._lipMask;this._lipMask=null;try{e.destroy(!0)}catch(e){}try{this._lipMaskMesh.destroy(!0),this._lipMaskMesh=null}catch(e){}try{this._maskRenderTexture.destroy(!0),this._maskRenderTexture=null}catch(e){}this._config=null;try{this._maskSprite.destroy(!0),this._maskSprite=null}catch(e){}},e.prototype.load=function(){return x(this,void 0,void 0,(function(){var e,t,n,i,r;return w(this,(function(o){switch(o.label){case 0:return this._config?[3,2]:(this._config=new c.M,[4,this._config.load()]);case 1:o.sent(),o.label=2;case 2:return this._lipMask?[3,4]:[4,this._getMask()];case 3:o.sent(),o.label=4;case 4:return this._maskSprite&&!this._maskSprite.destroyed||(e=this._options,t=e.width,n=e.height,i=new a.jd({width:t,height:n}),this._maskRenderTexture=new a.TI(i),r=new a.jy(this._maskRenderTexture),this._maskSprite=r),[2,{maskSprite:this._maskSprite,lipmask:this._lipMask,lipmaskmesh:this._lipMaskMesh}]}}))}))},e.prototype.update=function(e){this._lipMaskMesh&&(this._lipMaskMesh.geometry.getBuffer("aVertexPosition").update(e),this.render())},e.prototype.render=function(){this.renderer&&this._lipMask&&this.renderer.render(this._lipMask,{renderTexture:this._maskRenderTexture})},e.prototype._getMask=function(){return x(this,void 0,void 0,(function(){var e,t,n,i,r,o,s,c,u;return w(this,(function(h){switch(h.label){case 0:return this._lipMask?[2,this._lipMask]:(e=new a.W2,(t=new a.jy(a.xE.WHITE)).width=this._options.width,t.height=this._options.height,e.addChild(t),n=this._lipVertex,i=this._config.getDataConfig(29),[4,this._loadLipImage()]);case 1:return r=h.sent(),o=(new a.wG).addAttribute("aVertexPosition",n).addAttribute("aUvs",i),"\n precision mediump float;\n attribute vec2 aVertexPosition;\n attribute vec2 aUvs;\n uniform mat3 translationMatrix;\n uniform mat3 projectionMatrix;\n varying vec2 vUvs;\n\n\n void main() {\n vUvs = aUvs;\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n }","\n precision mediump float;\n varying vec2 vUvs;\n uniform sampler2D uSamplerMakeup;\n\n \n void main() {\n gl_FragColor = texture2D(uSamplerMakeup, vUvs);\n }",s={uSamplerMakeup:r},c=a.ex.from("\n precision mediump float;\n attribute vec2 aVertexPosition;\n attribute vec2 aUvs;\n uniform mat3 translationMatrix;\n uniform mat3 projectionMatrix;\n varying vec2 vUvs;\n\n\n void main() {\n vUvs = aUvs;\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n }","\n precision mediump float;\n varying vec2 vUvs;\n uniform sampler2D uSamplerMakeup;\n\n \n void main() {\n gl_FragColor = texture2D(uSamplerMakeup, vUvs);\n }",s),u=new a.Kj(o,c),this._lipMaskMesh=u,e.addChild(u),this._lipMask=e,[2,e]}}))}))},e.prototype._loadLipImage=function(){return x(this,void 0,Promise,(function(){var e=this;return w(this,(function(t){return[2,new Promise((function(t,n){return x(e,void 0,void 0,(function(){var e,n,i;return w(this,(function(r){switch(r.label){case 0:return[4,(e=new b.KI).init()];case 1:return n=r.sent(),[4,e.loadImage(n)];case 2:return i=r.sent(),t(i[b.X_]),[2]}}))}))}))]}))}))},v([(0,h.M)("ReuseableLipMask"),k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",void 0)],e.prototype,"destroy",null),v([(0,h.o)("ReuseableLipMask"),k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",Promise)],e.prototype,"_getMask",null),e}(),P=function(){function e(e,t,n,i,r,o,s,c){void 0===c&&(c=1),this._container=new a.W2,this._makeupMeshes=[],this._visible=!0,this.mouthShut=!0,this._applyed=!1,this._key=e,this._data=t,this._options=n,this.mesh=i,this.lipmesh=o,this.faceLandMarks=r,this.renderer=s,this.parentIntensity=c;var u=new a.jy(a.xE.WHITE);u.alpha=0,u.width=n.width,u.height=n.height,this._container.addChild(u)}var t;return Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){var t=this;this._target&&e!==this._visible&&(this._visible=e,this._makeupMeshes.forEach((function(n){e?t.apply(t._target):t.remove()})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mesh",{set:function(e){(this._meshVertex=e,this.geometry)&&(this.geometry.getBuffer("aVertexPosition").update(e),this._makeupMeshes.forEach((function(t){t.updateGeometry(e)})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lipmesh",{set:function(e){this._lipVertex=e,this._lipMaskIns&&this._lipMaskIns.update(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{set:function(e){var t=this;e&&e.length&&(this._irises&&this._irises.setIrisProps(e,this.renderer),(0,m.Sp)(e[98],e[102])<.03*(0,m.Sp)(e[0],e[32])?this.mouthShut||(this._makeupMeshes.forEach((function(e){"lips"===e.type&&(e.lipMask=null)})),this.mouthShut=!0):this.mouthShut&&(this._makeupMeshes.forEach((function(e){"lips"===e.type&&t._lipMaskIns&&(e.lipMask=t._lipMaskIns._maskSprite)})),this.mouthShut=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._intensity},set:function(e){M.info("set parentIntensity",e),this._irises&&(this._irises.parentIntensity=e),this._makeupMeshes.forEach((function(t){t.parentIntensity=e})),this._intensity=e},enumerable:!1,configurable:!0}),e.prototype.renderMesh=function(){this._lipMaskIns&&this._lipMaskIns.render(),this._makeupMeshes.forEach((function(e){e.renderMesh()}))},e.prototype.load=function(){return x(this,void 0,void 0,(function(){var e,t,n,i,r,o,s,a;return w(this,(function(u){switch(u.label){case 0:return this._config=new c.M,[4,this._config.load()];case 1:if(u.sent(),e=this._data,M.info("makeup info",this._data),t=[],e&&e.length){try{for(n=S(e),i=n.next();!i.done;i=n.next())"iris"===(r=i.value).type?(this._irises=this._getIris(r.src,r.blend,r.intensity),this.irisBlendMode=r.blend):(r.blend+"",t.push({src:r.src,intensity:r.intensity,type:r.type,blend:r.blend}))}catch(e){s={error:e}}finally{try{i&&!i.done&&(a=n.return)&&a.call(n)}finally{if(s)throw s.error}}M.info("makeupLayersByBlendMode",t),o=this._getMeshLayerByBlendMode(t),this._makeupMeshes.push(o)}return[4,this._initLipMask()];case 2:return u.sent(),[2]}}))}))},e.prototype._getIris=function(e,t,n){return new _(this._options,this._key,e,t,n,this._config,this._container)},e.prototype._getMeshLayerByBlendMode=function(e){var t=e.some((function(e){return"lips"===e.type}))?"lips":"makeup",n=new y(this._options,this._key,this._container,this.renderer,t);n.parentIntensity=this.parentIntensity,this._irises&&(n.irisRenderTexture=this._irises.renderTexture.baseTexture,n.irisBlendMode=this.irisBlendMode);var i=this._config.getDataConfig(26);if(!this.geometry){var r=(new a.wG).addAttribute("aVertexPosition",this._meshVertex).addAttribute("aUvs",i);this.geometry=r}return n.drawMeshBatch(e,this.geometry),n},e.prototype.apply=function(e){this._target=e,this._applyMakeup(e)},e.prototype.remove=function(){this._removeMakeup(this._target)},e.prototype._applyMakeup=function(e){this._applyed||(this._applyed=!0,e.filters||(e.filters=[]),e.addChild(this._container))},e.prototype._removeMakeup=function(e){this._applyed&&(this._applyed=!1,e.filters&&e.removeChild(this._container))},e.prototype._initLipMask=function(){return x(this,void 0,void 0,(function(){var e,t,n=this;return w(this,(function(i){switch(i.label){case 0:return(e=new T(this._options,this._lipVertex,this.renderer))._options=this._options,e._lipVertex=this._lipVertex,e.renderer=this.renderer,this._lipMaskIns=e,[4,e.load()];case 1:return t=i.sent().maskSprite,this._makeupMeshes.forEach((function(e){"lips"!==e.type||n.mouthShut||(e.lipMask=t)})),[2]}}))}))},e.prototype.destroy=function(){this.remove(),this._makeupMeshes.forEach((function(e){return e.destroy()})),this._makeupMeshes=[],this._irises&&this._irises.destroy(),this._irises=null,this._container.destroy(),this._target=null,this._lipMaskIns&&this._lipMaskIns.destroy()},v([(0,h.M)("Makeup"),k("design:type",Function),k("design:paramtypes",["function"==typeof(t=void 0!==a.W2&&a.W2)?t:Object]),k("design:returntype",void 0)],e.prototype,"_removeMakeup",null),v([(0,h.M)("Makeup"),k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",void 0)],e.prototype,"destroy",null),e}(),C=n(3125),E=n(401),j=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},I=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},O=function(){function e(e,t,n,i,r,o,s,c){this._container=new a.W2,this._name=e,this._src=t,this._target=i,this._config=n,this._jsonIntensity=n.intensity,this._landmarks=r,this._options=o,this._key=s,this._angles=c}return Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this._parentIntensity=e,this._sticker&&(this._sticker.alpha=this._jsonIntensity*e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{set:function(e){this._landmarks=e,this._sticker&&this.setStickerProps()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angles",{set:function(e){this._angles=e,this._sticker&&this.setStickerProps()},enumerable:!1,configurable:!0}),e.prototype.getCircle=function(e){void 0===e&&(e=5);var t=new a.TC;return t.beginFill(16711680),t.drawCircle(0,0,e),t.endFill(),t},e.prototype.getCircle2=function(e){void 0===e&&(e=5);var t=new a.TC;return t.beginFill(255),t.drawCircle(0,0,e),t.endFill(),t},e.prototype.getDisplay=function(){return this._container},e.prototype.load=function(){var e,t=this;if(this.checkAnimated()){var n=[];this._src.forEach((function(e){var i;i=e.indexOf(".json")>-1?e:"".concat(t._key,"|").concat(JSON.parse(e).meta.image);var r=o.iV[i].textures,s=Object.keys(r).map((function(e){return r[e]}));n=n.concat(s)})),(e=new u.Kg(n)).animationSpeed=(this._config.fps||30)/60,e.play()}else{var i=this._src[0],r=a.P6.kN[i];e=new u.jy(r)}this._config.blend&&(e.blendMode_1=this._config.blend);this._config.wxAnchorOffset;e.width=this._config.width,e.height=this._config.height;var s=[.5,.5];this._config.anchor&&(s=this._config.anchor),e.anchor.set(s[0],s[1]),e.alpha=this._jsonIntensity*this.parentIntensity,this._sticker=e,this._container.addChild(this._sticker),this._container.convertTo3d(),this.setStickerProps()},e.prototype.setStickerProps=function(){var e=this._config,t=this._landmarks,n=E.Jp.map((function(e){return t[e]})),i=(0,m.Sp)(n[0],n[1]),r=e.wxAnchorArea,o=(e.wxAnchorOffset,e.wxWeights),s=i/E.jw,a=r.map((function(e){var n=t[e];return{x:n.x,y:n.y,z:0}}));this._container.scale.set(s);var c={x:a[0].x*o[0]+a[1].x*o[1]+a[2].x*o[2],y:a[0].y*o[0]+a[1].y*o[1]+a[2].y*o[2]};this._container.position.x=c.x,this._container.position.y=c.y,this._angles&&(this._container.euler.z=this._angles.roll,this._container.euler.y=this._angles.yaw,this._container.euler.x=this._angles.pitch)},e.prototype.checkAnimated=function(){if(this._src instanceof Array&&this._src.length>1)return!0;try{return JSON.parse(this._src[0]),!0}catch(e){return"json"===this._src[0].split(".").pop()}},e.prototype.tick=function(){},e.prototype.apply=function(){},e.prototype.remove=function(){},e.prototype.destroy=function(){this._sticker.destroy(),this._container.destroy(),this._sticker=null,this._target=null},j([(0,h.M)("StickerLayer"),I("design:type",Function),I("design:paramtypes",[]),I("design:returntype",Boolean)],e.prototype,"checkAnimated",null),j([(0,h.M)("StickerLayer"),I("design:type",Function),I("design:paramtypes",[]),I("design:returntype",void 0)],e.prototype,"destroy",null),e}(),R=function(){function e(e,t,n,i,r,o,s){void 0===s&&(s=1);var a=this;this._stickers=[],this._visible=!0,this._parentIntensity=1,this._target=n,this._options=r,this._landmarks=i;var c=new C.LE;c.setPlanes(400,10,1e4,!0),this._camera=c,this._stickers=t.map((function(t){var s=new O(t.name,t.src,t,n,i,r,e,o);return s.parentIntensity=a.parentIntensity,s.load(),a._camera.addChild(s.getDisplay()),s}))}return Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this._stickers.forEach((function(t){t.parentIntensity=e})),this._parentIntensity=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{set:function(e){this._stickers.forEach((function(t){t.faceLandMarks=e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angles",{set:function(e){this._stickers.forEach((function(t){t.angles=e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._target&&e!==this._visible&&(this._visible=e,e?this.apply():this.remove())},enumerable:!1,configurable:!0}),e.prototype.tick=function(){this._stickers.forEach((function(e){return e.tick()}))},e.prototype.apply=function(){this._target.addChild(this._camera)},e.prototype.remove=function(){this._target.removeChild(this._camera)},e.prototype.destroy=function(){this.remove(),this._stickers.forEach((function(e){return e.destroy()})),this._camera.destroy(),this._stickers=[]},e}(),F=n(6878),L=n(6879),V=n(201),A=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),N=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},U=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},D=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},G=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},H=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},B=(0,g.jl)("Effect"),z=function(){function e(e,t,n,i,r,o,s,a,c,u,h){this.type="face",this._filters=[],this._destroyed=!1,this._visible=!0,this._intensity=1,this._filterIntensity=1,this.localSpriteSheets={},this._filtersActived=!0,this._target=t,this._stickerTarget=n,this._url=e,this._key=e,this._options=r,this.mesh=o,this.lipmesh=a,this.faceLandMarks=s,c&&(this.angles=c),void 0!==u&&(this.intensity=u),this._app3d=i,this._canvas=h}var t;return Object.defineProperty(e.prototype,"isPureFilter",{get:function(){var e=this._config;return!!e&&((!e.makeup||!e.makeup.length)&&((!e.sticker||!e.sticker.length)&&((!e.sticker3d||!e.sticker3d.length)&&(!e.beautify||!Object.keys(e.beautify).find((function(t){return!!e.beautify[t]}))))))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filterActived",{get:function(){return this._filtersActived},set:function(e){e!==this._filtersActived&&(this._filterTarget&&(e?this._applyFilter(this._filterTarget):this._removeFilter(this._filterTarget)),this._filtersActived=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"app3d",{get:function(){return this._app3d},set:function(e){this._app3d=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intensity",{get:function(){return this._intensity},set:function(e){e>1&&(F.Nd.trigger("error",{message:r.Z.t("0015"),code:L.U.SET_INTENSITY_ERROR}),e=1),null!=e&&(this._makeup&&(this._makeup.parentIntensity=e),this._sticker&&(this._sticker.parentIntensity=e),this._intensity=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filterIntensity",{get:function(){return this._filterIntensity},set:function(e){null!=e&&(this._filters&&this._filters.forEach((function(t){t.uniforms.parentIntensity=e})),this._filterIntensity=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._destroyed||(this._visible=e,this._makeup&&(this._makeup.visible=e),this._sticker&&(this._sticker.visible=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mesh",{set:function(e){this._destroyed||(this._meshVertex=e,this._makeup&&(this._makeup.mesh=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lipmesh",{set:function(e){this._destroyed||(this._lipVertex=e,this._makeup&&(this._makeup.lipmesh=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{get:function(){return this._faceLandMarks},set:function(e){this._destroyed||(this._faceLandMarks=e,this._makeup&&(this._makeup.faceLandMarks=e),this._sticker&&(this._sticker.faceLandMarks=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angles",{set:function(e){this._angles=e,this._sticker&&(this._sticker.angles=e)},enumerable:!1,configurable:!0}),e.prototype.download=function(){return D(this,void 0,Promise,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return[4,this._getLoader()];case 1:return[4,t.sent().preload(this._url)];case 2:return t.sent(),[4,this._getConfig()];case 3:return e=t.sent(),g.D4.info("download:",this._url,e),[2,e]}}))}))},e.prototype.load=function(){return D(this,void 0,Promise,(function(){var e,t,n,i,r,o;return G(this,(function(s){switch(s.label){case 0:return[4,this.download()];case 1:return e=s.sent(),t=e.filter,n=e.makeup,i=e.beautify,r=e.sticker,o=e.sticker3d,[4,this._loadImages(e)];case 2:return s.sent(),this.loadFilter(t),[4,this.setMakeup(n)];case 3:return s.sent(),r?[4,this.loadStickers(r)]:[3,5];case 4:s.sent(),s.label=5;case 5:return[4,this.load3d(o)];case 6:return s.sent(),this.sticker3d=o,[4,this._getLoader()];case 7:return s.sent().removeFromCache(this._url),[2,i]}}))}))},e.prototype._getLoader=function(){return D(this,void 0,void 0,(function(){return G(this,(function(e){switch(e.label){case 0:return this._loader?[3,2]:(this._loader=new o.pF,[4,this._loader.init()]);case 1:e.sent(),e.label=2;case 2:return[2,this._loader]}}))}))},e.prototype._getConfig=function(){return D(this,void 0,void 0,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return this._config?[3,3]:[4,this._getLoader()];case 1:return[4,(e=t.sent()).preload(this._url)];case 2:t.sent(),this._config=e.readJSON("content.json",this._key),t.label=3;case 3:return[2,this._config]}}))}))},e.prototype.hasEyeMakeup=function(){return D(this,void 0,Promise,(function(){var e,t,n,i,r,o,s,a;return G(this,(function(c){switch(c.label){case 0:return[4,this._getConfig()];case 1:e=c.sent(),t=e.makeup,n=!1;try{for(i=H(t),r=i.next();!r.done;r=i.next())if("iris"===(o=r.value).type||"eyes"===o.type){n=!0;break}}catch(e){s={error:e}}finally{try{r&&!r.done&&(a=i.return)&&a.call(i)}finally{if(s)throw s.error}}return[2,n]}}))}))},e.prototype.needDetection=function(){return D(this,void 0,Promise,(function(){var e,t,n,i;return G(this,(function(r){switch(r.label){case 0:return[4,this._getConfig()];case 1:return e=r.sent(),t=e.makeup,n=e.sticker,i=e.sticker3d,[2,t&&t.length||n&&n.length||i&&i.length]}}))}))},e.prototype.hasFilter=function(){return D(this,void 0,Promise,(function(){var e,t;return G(this,(function(n){switch(n.label){case 0:return[4,this._getConfig()];case 1:return e=n.sent(),[2,!(!(t=e.filter)||!t.length)]}}))}))},e.prototype.loadStickers=function(e){return D(this,void 0,Promise,(function(){var t;return G(this,(function(n){return e.length?((t=new R(this._key,e,this._stickerTarget,this.faceLandMarks,this._options,this._angles)).parentIntensity=this.intensity,this._sticker=t,[2]):[2,Promise.resolve()]}))}))},e.prototype.loadSticker3d=function(e){return void 0===e&&(e=[]),D(this,void 0,Promise,(function(){return G(this,(function(e){return[2]}))}))},e.prototype.load3d=function(e){return D(this,void 0,void 0,(function(){return G(this,(function(e){return[2]}))}))},e.prototype.initThreeApp=function(){return D(this,void 0,void 0,(function(){return G(this,(function(e){return[2]}))}))},e.prototype.apply3d=function(){},e.prototype.removeForConsole=function(){},e.prototype.destroyForConosle=function(){},e.prototype.setMakeup=function(e){return e.length?(this._makeup=new P(this._key,e,this._options,this._meshVertex,this.faceLandMarks,this._lipVertex,this.renderer,this.intensity),this._makeup.load()):Promise.resolve()},e.prototype.apply=function(e){this._destroyed||this._applyed||(this.filterActived&&this._applyFilter(e.filterTarget),this._filters.length&&e.filterCallback&&e.filterCallback(),this._filterTarget=e.filterTarget,this._makeup&&this._makeup.apply(this._target),this._sticker&&this._sticker.apply(),this.apply3d(),this._applyed=!0)},e.prototype.getUrl=function(){return this._url},e.prototype.remove=function(){this._makeup&&this._makeup.remove(),this._sticker&&this._sticker.remove(),this.removeForConsole(),this._removeFilter(this._filterTarget),this._applyed=!1},e.prototype.tick=function(){this._sticker&&this._sticker.tick()},e.prototype.tickMesh=function(){this._makeup&&this._makeup.renderMesh()},e.prototype.destroy=function(){this._destroyed=!0,this.remove(),this._makeup&&(this._makeup.destroy(),this._makeup=null),this._sticker&&(this._sticker.destroy(),this._sticker=null),this.destroyForConosle(),this._filters=[],this.clearTexture()},e.prototype.loadFilter=function(e){var t=this;this._destroyed||e&&e.length&&e.forEach((function(e){var n=t._createFilterSync(e.src,e.intensity,t.filterIntensity);t._filters.push(n)}))},e.prototype._applyFilter=function(e){e.filters||(e.filters=[]),e.filters=this._filters.concat(e.filters)},e.prototype._removeFilter=function(e){e&&e.filters&&e.filters.length&&this._filters.forEach((function(t){var n=e.filters.findIndex((function(e){return e===t}));n>-1&&e.filters.splice(n,1)}))},e.prototype._createFilterSync=function(e,t,n){var i="default"===this._key?e:"".concat(this._key,"|").concat(e),r=a.P6.kN[i];return r.baseTexture.scaleMode=a.aH.LINEAR,r.baseTexture.mipmap=a.KI.OFF,new s.f("lut",this._options,{uniforms:{lut:r,intensity:t,parentIntensity:n}})},e.prototype.clearTexture=function(){for(var e in a.P6.kN)if(e.indexOf(this._key)>-1){var t=a.P6.kN[e];a.xE.removeFromCache(t),t.destroy(!0)}for(var e in this.localSpriteSheets)o.iV[e]&&o.iV[e]instanceof a.c2&&(o.iV[e].destroy(),delete o.iV[e])},e.prototype._loadImages=function(e){var t,n,i=this,r=(e.filter||[]).concat(e.makeup||[]).concat(e.sticker||[]),s=this._loader.getIndeLoader(),c={};this.localSpriteSheets=c;try{for(var u=H(r),h=u.next();!h.done;h=u.next()){var l=h.value;if(l.src instanceof Array)l.src.forEach((function(e,t){var n=i.checkSpriteSheetJSON(e);if(n){var r=n.meta.image,o="".concat(i._key,"|").concat(r);if(a.P6.kN[o])return;if(0===r.indexOf("blob:")){var u=a.xE.from(r);a.xE.addToCache(u,o)}else s.add(o,r);n.meta.image="",c[o]=n}else{if(a.P6.kN[e])return;if(s.resources[e])return;s.add(e,e)}}));else{var p="".concat(this._key,"|").concat(l.src);if(a.P6.kN[p])continue;if(0===l.src.indexOf("blob:")){var f=a.xE.from(l.src);a.xE.addToCache(f,p)}else s.add(p,l.src)}}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return new Promise((function(e){s.load((function(t,n){return D(i,void 0,void 0,(function(){var t,i,r,s,u;return G(this,(function(h){switch(h.label){case 0:for(r in t=function(e){var t;return G(this,(function(n){switch(n.label){case 0:return o.iV[e]?[2,"continue"]:c[e]?(t=new a.c2(a.P6.kN[e],c[e],"@".concat((0,V.u)(),"x")),[4,new Promise((function(n){t.parse((function(){o.iV[e]=t,n()}))}))]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))},i=[],a.P6.kN)i.push(r);s=0,h.label=1;case 1:return s<i.length?(u=i[s],[5,t(u)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:for(u in n)o.iV[u]||c[u]||(o.iV[u]=n[u]);return e(),[2]}}))}))}))}))},e.prototype.checkSpriteSheetJSON=function(e){try{return JSON.parse(e)}catch(e){return null}},N([(0,h.M)("Effect"),U("design:type",Function),U("design:paramtypes",[]),U("design:returntype",void 0)],e.prototype,"remove",null),N([(0,h.M)("Effect"),U("design:type",Function),U("design:paramtypes",[]),U("design:returntype",void 0)],e.prototype,"destroy",null),N([(0,h.M)("Effect"),U("design:type",Function),U("design:paramtypes",["function"==typeof(t=void 0!==a.W2&&a.W2)?t:Object]),U("design:returntype",void 0)],e.prototype,"_removeFilter",null),e}(),J=function(e){function t(t,n,i,r,o,s,a,c){var u=e.call(this,"default",n,i,r,o,s,a,c)||this;return u._json=t,u._app3d=r,u}return A(t,e),t.prototype.load=function(){return D(this,void 0,Promise,(function(){var e,t,n,i,r,o;return G(this,(function(s){switch(s.label){case 0:return e=this._json,t=e.filter,n=e.makeup,i=e.beautify,r=e.sticker,o=e.sticker3d,[4,this._loadImages(e)];case 1:return s.sent(),this.loadFilter(t),[4,this.setMakeup(n)];case 2:return s.sent(),r?[4,this.loadStickers(r)]:[3,4];case 3:s.sent(),s.label=4;case 4:return o?this._app3d?[3,6]:[4,this.initThreeApp()]:[3,8];case 5:s.sent(),s.label=6;case 6:return[4,this.loadSticker3d(o||[])];case 7:s.sent(),s.label=8;case 8:return[2,i]}}))}))},t.prototype.loadImage=function(){return D(this,void 0,void 0,(function(){return G(this,(function(e){return[2]}))}))},t.prototype._loadImages=function(e){var t,n,i=this,r=new a.aN,s=(e.filter||[]).concat(e.makeup||[]).concat(e.sticker||[]),c={},u=function(e){if(e.src instanceof Array)e.src.forEach((function(t,n){var o=i.checkSpriteSheetJSON(t);if(o){var s=o.meta.image,u="".concat(i._key,"|").concat(s);if(a.P6.kN[u])return;if(e.objectSrc&&e.objectSrc.length){var h=a.xE.from(e.objectSrc[n]);a.xE.addToCache(h,u)}else if(0===s.indexOf("blob:")){h=a.xE.from(s);a.xE.addToCache(h,u)}else r.add(u,s);o.meta.image="",c[u]=o}else{if(a.P6.kN[t])return;if(r.resources[t])return;if(e.objectSrc&&e.objectSrc.length){h=a.xE.from(e.objectSrc[n],{resolution:(0,V.u)()});a.xE.addToCache(h,t)}else r.add(t,t)}}));else{if(a.P6.kN[e.src])return"continue";if(r.resources[e.src])return B.info("already loaded file",e.src),"continue";if(e.objectSrc){B.info("use imagebitmap to create texture");var t=a.xE.from(e.objectSrc);a.xE.addToCache(t,e.src)}else if(0===e.src.indexOf("blob:")){t=a.xE.from(e.src);B.info("JSONEffect blob texture",t),a.xE.addToCache(t,e.src)}else r.add(e.src)}};try{for(var h=H(s),l=h.next();!l.done;l=h.next()){u(l.value)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return new Promise((function(e){return D(i,void 0,void 0,(function(){var t=this;return G(this,(function(n){return r.load((function(n,i){return D(t,void 0,void 0,(function(){var t,n,r,s,u;return G(this,(function(h){switch(h.label){case 0:for(r in t=function(e){var t;return G(this,(function(n){switch(n.label){case 0:return o.iV[e]?[2,"continue"]:c[e]?(t=new a.c2(a.P6.kN[e],c[e],"@".concat((0,V.u)(),"x")),[4,new Promise((function(n){t.parse((function(){o.iV[e]=t,n()}))}))]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))},n=[],a.P6.kN)n.push(r);s=0,h.label=1;case 1:return s<n.length?(u=n[s],[5,t(u)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:for(u in i)o.iV[u]||c[u]||(o.iV[u]=i[u]);return e(),[2]}}))}))})),[2]}))}))}))},t.prototype.loadSticker3d=function(e){return D(this,void 0,Promise,(function(){return G(this,(function(e){return[2]}))}))},t}(z),W=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),K=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Y=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},q=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},X=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Z=((0,g.jl)("Effect"),function(){function e(e,t,n,i){this.type="hand",this._destroyed=!1,this._visible=!0,this._intensity=1,this.localSpriteSheets={},this._url=e,this._key=e,this._app3d=t,this._canvas=i,this._options=n}return Object.defineProperty(e.prototype,"url",{get:function(){return this._url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"app3d",{get:function(){return this._app3d},set:function(e){this._app3d=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intensity",{get:function(){return this._intensity},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._destroyed||(this._visible=e)},enumerable:!1,configurable:!0}),e.prototype.download=function(){return q(this,void 0,Promise,(function(){var e;return X(this,(function(t){switch(t.label){case 0:return[4,this._getLoader()];case 1:return[4,t.sent().preload(this._url)];case 2:return t.sent(),[4,this._getConfig()];case 3:return e=t.sent(),g.D4.info("download:",this._url,e),[2,e]}}))}))},e.prototype.load=function(){return q(this,void 0,Promise,(function(){var e,t;return X(this,(function(n){switch(n.label){case 0:return[4,this.download()];case 1:return e=n.sent(),t=e.hand,[4,this.load3d(t||[])];case 2:return n.sent(),[4,this._getLoader()];case 3:return n.sent().removeFromCache(this._url),[2,null]}}))}))},e.prototype._getLoader=function(){return q(this,void 0,void 0,(function(){return X(this,(function(e){switch(e.label){case 0:return this._loader?[3,2]:(this._loader=new o.pF,[4,this._loader.init()]);case 1:e.sent(),e.label=2;case 2:return[2,this._loader]}}))}))},e.prototype._getConfig=function(){return q(this,void 0,void 0,(function(){var e;return X(this,(function(t){switch(t.label){case 0:return this._config?[3,3]:[4,this._getLoader()];case 1:return[4,(e=t.sent()).preload(this._url)];case 2:t.sent(),this._config=e.readJSON("content.json",this._key),t.label=3;case 3:return[2,this._config]}}))}))},e.prototype.load3d=function(e){return q(this,void 0,void 0,(function(){return X(this,(function(e){return[2]}))}))},e.prototype.initThreeApp=function(){return q(this,void 0,void 0,(function(){return X(this,(function(e){return[2]}))}))},e.prototype.apply3d=function(){},e.prototype.removeForConsole=function(){},e.prototype.destroyForConosle=function(){},e.prototype.apply=function(){this._destroyed||this._applyed||(this.apply3d(),this._applyed=!0)},e.prototype.getUrl=function(){return this._url},e.prototype.remove=function(){this.removeForConsole(),this._applyed=!1},e.prototype.tick=function(){},e.prototype.tickMesh=function(){},e.prototype.destroy=function(){this._destroyed=!0,this.remove(),this.destroyForConosle(),this.clearTexture()},e.prototype.clearTexture=function(){for(var e in a.P6.kN)if(e.indexOf(this._key)>-1){var t=a.P6.kN[e];a.xE.removeFromCache(t),t.destroy(!0)}for(var e in this.localSpriteSheets)o.iV[e]&&o.iV[e]instanceof a.c2&&(o.iV[e].destroy(),delete o.iV[e])},e.prototype.checkSpriteSheetJSON=function(e){try{return JSON.parse(e)}catch(e){return null}},K([(0,h.M)("Effect"),Y("design:type",Function),Y("design:paramtypes",[]),Y("design:returntype",void 0)],e.prototype,"remove",null),K([(0,h.M)("Effect"),Y("design:type",Function),Y("design:paramtypes",[]),Y("design:returntype",void 0)],e.prototype,"destroy",null),e}()),$=function(e){function t(t,n,i,r){var o=e.call(this,"default",n,i,r)||this;return o._json=t,o._app3d=n,o}return W(t,e),t.prototype.load=function(){return q(this,void 0,Promise,(function(){var e,t;return X(this,(function(n){switch(n.label){case 0:return e=this._json,(t=e.hand)?this._app3d?[3,2]:[4,this.initThreeApp()]:[3,4];case 1:n.sent(),n.label=2;case 2:return[4,this.loadHand3d(t||[])];case 3:n.sent(),n.label=4;case 4:return[2,null]}}))}))},t.prototype.loadImage=function(){return q(this,void 0,void 0,(function(){return X(this,(function(e){return[2]}))}))},t.prototype.loadSticker3d=function(e){return q(this,void 0,Promise,(function(){return X(this,(function(e){return[2]}))}))},t.prototype.loadHand3d=function(e){return q(this,void 0,Promise,(function(){return X(this,(function(e){return[2]}))}))},t}(Z),Q=n(5156),ee=n(7959),te=n(6309),ne=n(1077),ie=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),re=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},oe=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},se=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},ae=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},ce=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ue=(0,g.jl)("Renderer"),he=function(){};var le=function(e){function t(t){var n=e.call(this,t)||this;return n._setup=!1,n._effects=[],n._debug=!0,n._destroyed=!1,n._isVR=!1,n._meshVertexTimer=0,n.lib3dLoaded=!1,n.libHand3dLoaded=!1,ue.info("[@#$] AR Renderer Constructed",location),n._debug=!1,t.output?n._canvas=new wx.window.Canvas(t.output):n._canvas=new wx.window.Canvas(wx.createOffscreenCanvas({type:"webgl",width:t.width,height:t.height})),n._stage=new a.W2,n._options=t,a.Xd.RESOLUTION=(0,V.u)(),a.Xd.FILTER_RESOLUTION=(0,V.u)(),n._renderer=new a.Th({view:n._canvas,width:t.width,height:t.height,useContextAlpha:!1,preserveDrawingBuffer:!1,antialias:!1}),n.setRenderer(),n.initRenderContext(t),n.handleLoading(),n.setup(),n}return ie(t,e),Object.defineProperty(t.prototype,"mirror",{set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backGroundVR",{set:function(e){if(e){this._backgroundVR=new a.jy(a.xE.from(e));var t=this._backgroundVR,n=t.width,i=t.height,r=Math.max(this._options.width/n,this._options.height/i);this._backgroundVR.width*=r,this._backgroundVR.height*=r}else this._backgroundVR=null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{set:function(e){var t=e.width,n=e.height;this._canvas.width=t,this._canvas.height=n,this._renderer&&this.resize(t,n),this._baseSprite&&(this._baseSprite.width=t,this._baseSprite.height=n,this._baseSprite.position.set(t/2,n/2),this._baseSprite.anchor.set(.5,.5)),this._baseRenderTexture.resize(t,n),this._makeupRenderTexture.resize(t,n),this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"app3d",{get:function(){return this._app3d},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"avatar3d",{get:function(){return this._avatar3d},enumerable:!1,configurable:!0}),t.prototype.initRenderContext=function(e){this._baseContainer=new a.W2,this._makeupContainer=new a.W2,this._finalContainer=new a.W2,this._baseRenderTexture=a.TI.create({width:e.width,height:e.height}),this._makeupRenderTexture=a.TI.create({width:e.width,height:e.height}),this._makeupContainer.addChild(new a.jy(this._baseRenderTexture)),he.baseTexture=this._baseRenderTexture,this._finalContainer.addChild(new a.jy(this._makeupRenderTexture)),this._stage.addChild(this._finalContainer),this._target=this._finalContainer},t.prototype.loadLib3d=function(){return se(this,void 0,Promise,(function(){var e;return ae(this,(function(t){switch(t.label){case 0:return e=new te.e({}),ue.info("loader init"),[4,e.init()];case 1:return t.sent(),ue.info("loader init done"),this._options.plugin3d&&this._options.plugin3d(z,J,e,wx.window),[2]}}))}))},t.prototype.loadHand3d=function(){return se(this,void 0,Promise,(function(){var e;return ae(this,(function(t){switch(t.label){case 0:return e=new te.e({}),ue.info("+++++loader init"),[4,e.init()];case 1:return t.sent(),ue.info("+++++loader init done"),this._options.plugin3d&&this._options.pluginHand(Z,$,e,wx.window),[2]}}))}))},t.prototype.setup=function(){return se(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return this._setup?[2]:(this._config=new c.M,[4,this._config.load()]);case 1:return e.sent(),this._setup=!0,[2]}}))}))},Object.defineProperty(t.prototype,"meshVertex",{get:function(){return this._meshVertex},set:function(e){this._meshVertex=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mirrorFilter",{get:function(){return this._mirrorFilter||(this._mirrorFilter=new s.f("mirror",{width:l.t.instance.options.width,height:l.t.instance.options.height})),this._mirrorFilter},enumerable:!1,configurable:!0}),t.prototype.switchMode=function(e){e!==this._mode3d&&("Sticker"===e&&this.setAvatar(null),this._mode3d=e)},t.prototype.logTime=function(e){var t=+new Date;ue.info("".concat(e," time:").concat(t-this.currentTime)),this.currentTime=t},t.prototype.tick=function(t,n){var i=t.landmarks,r=t.meshVertex,o=t.lipVertex,s=t.image,c=t.angles,u=(t.backgroundType,t.background,t.segmentation,t.blendshapes,t.isLivePusher);t.hair;if(!this._destroyed)if(this._renderer)if(this._stage)if(this._setup){this.currentTime=+new Date;try{this._renderer.reset()}catch(e){}if(this._isVR)try{this._renderer.render(this._backgroundVR)}catch(e){}else{if(u)if(this._baseSprite)this._baseSprite.texture.update();else{d=a.xE.from(s);this._baseSprite=new a.jy(d),this._baseSprite.anchor.set(.5,.5),this._baseSprite.position.set(this._options.width/2,this._options.height/2),this._baseSprite.scale.set(1,-1),this._baseContainer.addChild(this._baseSprite)}else{var h=s,l=h.width,p=h.height,f=h.data;if(this._baseSprite){if(this._baseSprite.texture.width===l&&this._baseSprite.texture.height===p)this._baseSprite.texture.baseTexture.resource.data=new Uint8Array(f),this._baseSprite.texture.update();else this._baseSprite.texture.destroy(!0),this._baseSprite.texture=a.xE.fromBuffer(new Uint8Array(f),l,p)}else{var d=a.xE.fromBuffer(new Uint8Array(f),l,p);this._baseSprite=new a.jy(d),this._baseSprite.anchor.set(.5,.5),this._baseSprite.position.set(this._options.width/2,this._options.height/2);var y=Math.max(this._options.width/l,this._options.height/p);this._baseSprite.scale.set(y),this._baseContainer.addChild(this._baseSprite)}}(ee.s.checkEnabled("beautify")||ee.s.checkEnabled("segmentation")||ee.s.checkEnabled("hair"))&&(e.prototype.setMesh.call(this,r),e.prototype.setReshapeMarks.call(this,i),i&&i.length?(this._faceLandmarks=i,this._angles=c,this.meshVertex=r,this.lipVertex=o,this._effects.forEach((function(e){e.visible||(e.visible=!0),e.lipmesh=o,e.mesh=r,e.angles=c,e.faceLandMarks=i,e.tick()})),"Sticker"===this._mode3d&&this._app3d&&this._app3d.loaded&&(this._app3d.facelandmarks=i,this._app3d.angles=c)):this.handleNoFace()),this._render()}}else g.b_.info("_renderer waiting for setup");else g.b_.info("_renderer waiting for stage");else g.b_.info("_renderer waiting for renderer")},t.prototype.handleNoFace=function(){this._effects.forEach((function(e){return e.visible=!1})),this._effects.forEach((function(e){e.tickMesh()}));new Date;"AR"===this._mode3d||"Sticker"===this._mode3d&&this._app3d&&this._app3d.loaded&&(this._app3d.facelandmarks=[],this._app3d.angles={})},t.prototype._render=function(){this.renderLayers(),ee.s.checkEnabled("beautify")&&"Sticker"===this._mode3d&&this._app3d&&this._app3d.loaded&&this._app3d.render(),ee.s.checkEnabled("handLandmark")&&this._appHand3d&&this._appHand3d.render()},t.prototype.renderLayers=function(){this._renderer.render(this._baseContainer,{renderTexture:this._baseRenderTexture}),this._renderer.render(this._makeupContainer,{renderTexture:this._makeupRenderTexture}),this._renderer.render(this._stage)},t.prototype.getBaseTexture=function(){return this._baseSprite.texture},t.prototype.removeBackground=function(){this.background&&(this.background.remove(),this.background=null)},t.prototype.applyBackground=function(e){this.background},t.prototype.removeForeground=function(){this.foreground&&this.foreground.parent&&this.foreground.parent.removeChild(this.foreground)},t.prototype.addForeground=function(e,t){var n=l.t.instance.options,i=n.width,r=n.height;this.foreground=new u.jy(a.xE.from(e)),"video"===t&&(this.foreground.blendMode_1=6),this.foreground.width=i,this.foreground.height=r,this._finalContainer.addChild(this.foreground)},t.prototype.debugDraw=function(e){if(!this.points){for(var t=[],n=0;2*n<e.length;n++){var i=this.getCircle(2);t.push(i),this._baseContainer.addChild(i)}this.points=t}for(n=0;2*n<e.length;n++)this.points[n].x=e[2*n],this.points[n].y=e[2*n+1]},t.prototype.debugDraw2=function(e){if(ue.info("debug draw 2",e.length),!this.points){for(var t=[],n=0;n<e.length;n++){var i=this.getCircle(2);t.push(i),this._baseContainer.addChild(i)}this.points=t}for(n=0;n<e.length;n++)this.points[n].x=540*e[n].x,this.points[n].y=540*e[n].y},t.prototype.getPixels=function(){var e=this._options,t=e.width,n=e.height,i=new Uint8Array(t*n*4),r=this._renderer.gl;return r.readPixels(0,0,t,n,r.RGBA,r.UNSIGNED_BYTE,i),{data:i,width:t,height:n}},t.prototype.setEffect=function(e,t,n,i){return se(this,void 0,Promise,(function(){var r,o=this;return ae(this,(function(s){return r=!0,this.latestEffectUrls&&this.latestEffectUrls.length===e.length&&e.every((function(e){return o.latestEffectUrls.indexOf(e)>-1}))&&(r=!1,this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)),this.latestEffectUrls=e,[2,new Promise((function(s,a){r?(o.debounceTimer&&(clearTimeout(o.debounceTimer),o.debounceTimer=null),o.debounceTimer=setTimeout((function(){return o._setEffect(e,t,n,i).then((function(e){clearTimeout(o.debounceTimer),o.debounceTimer=null,s(e)}))}),100)):o._setEffect(e,t,n).then((function(e){s(e)}))}))]}))}))},t.prototype._setEffect=function(e,t,n,i){return se(this,void 0,Promise,(function(){var r,s=this;return ae(this,(function(a){return g.b_.time("waiting for AI init..."),ee.s.checkEnabled("beautify")&&!this._meshVertex?[2,new Promise((function(r){clearTimeout(s._meshVertexTimer),s._meshVertexTimer=setInterval((function(){g.b_.info("waiting for AI init..."),s._meshVertex&&(g.b_.info("waiting for AI init...done"),clearTimeout(s._meshVertexTimer),s._setEffect(e,t,n,i).then((function(){r(s._effects)})))}),200)}))]:(g.b_.timeEnd("waiting for AI init..."),r="uid_"+Math.floor(1e8*Math.random()),[2,new Promise((function(a,c){return se(s,void 0,void 0,(function(){var s,c,u,h,l,p,f,d,y,_,b,m,v,k,x,w,S,M=this;return ae(this,(function(T){switch(T.label){case 0:for(s=[].concat(this._effects),c=[],u=[],h=[],l=[],p=[],f=[],d=[],y=[],e.length||(this.filterActivedEffect=null),_=[],b=function(i){var r=s.findIndex((function(t){return t.url===e[i]}));if(r>-1)c.push(s[r]),s[r],u.push(t[i]),h.push(n[i]),s.splice(r,1);else{var a=e[i];y.push(function(e){return se(this,void 0,Promise,(function(){var t,n;return ae(this,(function(i){switch(i.label){case 0:return[4,(t=new o.pF).init()];case 1:return i.sent(),[4,t.preload(e)];case 2:return i.sent(),n=t.readJSON("content.json",e),g.D4.info("download:",e,n),[2,n]}}))}))}(a)),_.push(a),p.push(t[i]),f.push(n[i])}},m=0;m<e.length;m++)b(m);return[4,Promise.all(y)];case 1:for(v=T.sent(),!1,k=!1,x=0;x<v.length;x++)w=_[x],S=void 0,(S=new z(w,this._makeupContainer,this._finalContainer,this._app3d,this._options,this._meshVertex,this._faceLandmarks,this.lipVertex,this._angles,t[p[x]],this._canvas)).filterIntensity=f[x],v[x].sticker3d&&v[x].sticker3d.length&&(k=!0),S.renderer=this._renderer,l.push(S);return g.b_.time("require 3d lib"),this.lib3dLoaded||!k?[3,3]:i&&!i()?[2]:(ue.info("require 3d lib"),[4,this.loadLib3d()]);case 2:T.sent(),this.lib3dLoaded=!0,T.label=3;case 3:return g.b_.timeEnd("require 3d lib"),g.b_.info("check all new Effects",l,s),l.forEach((function(e){d.push(e.load().then((function(){return M._app3d||"face"!==e.type||(M._app3d=e.app3d),M._appHand3d||"hand"!==e.type||(M._appHand3d=e.app3d),e})).catch((function(e){ue.warn("effect load error",e)})))})),g.b_.time("renderer parse effect"),Promise.all(d).then((function(e){g.b_.timeEnd("renderer parse effect"),g.b_.time("renderer apply effect");for(var t=!1,n=0;n<l.length;n++){var i=l[n];M.latestEffectUrls&&-1===M.latestEffectUrls.indexOf(i.getUrl())&&(i.destroy(),t=!0)}if(t)ue.info(r+"end");else{s.forEach((function(e){e.remove()})),M._effects=c,c.forEach((function(e,t){e.intensity=u[t],e.filterIntensity=h[t]}));for(n=0;n<l.length;n++){i=l[n];M._effects.push(i),i.apply({filterTarget:M._baseSprite,filterCallback:function(){}})}s.forEach((function(e){e.destroy()})),g.b_.timeEnd("renderer apply effect"),a(M._effects)}})),[2]}}))}))}))])}))}))},t.prototype.setEffectJSON=function(e){return se(this,void 0,void 0,(function(){var t,n,i,r,o,s=this;return ae(this,(function(a){switch(a.label){case 0:return n=e.sticker3d,i=e.hand,n&&n.length&&!this.lib3dLoaded?(ue.info("require 3d lib"),[4,this.loadLib3d()]):[3,2];case 1:a.sent(),this.lib3dLoaded=!0,a.label=2;case 2:return i&&i.length&&!this.libHand3dLoaded?(ue.info("require 3d hand lib"),[4,this.loadHand3d()]):[3,4];case 3:a.sent(),this.libHand3dLoaded=!0,a.label=4;case 4:return r=!1,(o=function(){ee.s.checkEnabled("beautify")&&s._meshVertex&&(t&&clearTimeout(t),r=!0,s.getJSONEffectForFace(e)),ee.s.checkEnabled("handLandmark")&&i&&i.length&&(r=!0,s.getJSONEffectForHand(e)),r||(t=setTimeout(o,20))})(),[2]}}))}))},t.prototype.getJSONEffectForHand=function(e){var t=this,n=new $(e,this._appHand3d,this._options,this._canvas);n.renderer=this._renderer,g.b_.info("getJSONEffectForHand"),n.load().then((function(){t._appHand3d||(t._appHand3d=n.app3d),n.apply()}))},t.prototype.getJSONEffectForFace=function(e){var t=this,n=new J(e,this._makeupContainer,this._finalContainer,this._app3d,this._options,this._meshVertex,this._faceLandmarks,this.lipVertex);return n.renderer=this._renderer,n.load().then((function(){t._app3d||(t._app3d=n.app3d);var e=[].concat(t._effects);t._effects=[n],n.apply({filterTarget:t._baseSprite}),e.forEach((function(e){e.destroy()}))})),n},t.prototype.setExclusiveFilter=function(e,t){var n=this;return void 0===t&&(t=1),new Promise((function(i,r){!function(){if(n.exclusiveFilter&&n.exclusiveFilter.getUrl()===e)n.exclusiveFilter.intensity=t,n.exclusiveFilter.filterIntensity=t;else{var r=new z(e,n._makeupContainer,n._finalContainer,n._app3d,n._options,n._meshVertex,n._faceLandmarks,n.lipVertex,n._angles,t);r.filterIntensity=t,r.load().then((function(){n.exclusiveFilter&&n.exclusiveFilter.destroy(),n.exclusiveFilter=r,r.renderer=n._renderer,r.apply({filterTarget:n._baseSprite}),i()}))}}()}))},t.prototype.resize=function(t,n){e.prototype.resize.call(this,t,n),ue.info("renderer resize",t,n),this._options.width=t,this._options.height=n,this._renderer.resize(t,n),this.background&&this.background.resize(t,n),this._app3d?this._app3d.resize(t,n):this._avatar3d&&this._avatar3d.resize(t,n),this._baseRenderTexture&&this._baseRenderTexture.resize(t,n),this._makeupRenderTexture&&this._makeupRenderTexture.resize(t,n)},t.prototype.disableExclusiveFilter=function(){this.exclusiveFilter&&this.exclusiveFilter.remove()},t.prototype.enableExclusiveFilter=function(){this.exclusiveFilter&&this.exclusiveFilter.apply({filterTarget:this._baseSprite,filterCallback:function(){}})},t.prototype.disableEffects=function(){this._effects.forEach((function(e){e.isPureFilter||"hand"===e.type||e.remove()}))},t.prototype.enableEffects=function(){var e=this;this._effects.forEach((function(t){t.apply({filterTarget:e._baseSprite,filterCallback:function(){}})}))},t.prototype.removeExclusiveFilter=function(){this.exclusiveFilter&&(this.exclusiveFilter.destroy(),this.exclusiveFilter=null)},t.prototype.initAvatarApp=function(e,t){return se(this,void 0,void 0,(function(){return ae(this,(function(e){return[2]}))}))},t.prototype.setAvatar=function(e,t){return se(this,void 0,void 0,(function(){return ae(this,(function(e){return[2]}))}))},t.prototype.registerAvatar=function(e){},t.prototype.reCorrectAvatar=function(){return se(this,void 0,void 0,(function(){return ae(this,(function(e){return[2]}))}))},t.prototype.getCanvas=function(){return this._canvas},t.prototype.setOptions=function(e){},t.prototype.mount=function(e){this._canvas&&e.appendChild(this._canvas)},t.prototype.getCircle=function(e){void 0===e&&(e=5);var t=new a.TC;return t.beginFill(16711680),t.drawCircle(0,0,e),t.endFill(),t},t.preloadEffects=function(e){return se(this,void 0,Promise,(function(){var t,n,i,r,s,a,c;return ae(this,(function(u){switch(u.label){case 0:return e.length?[4,(t=new o.pF).init()]:[2];case 1:u.sent(),n=[];try{for(i=ce(e),r=i.next();!r.done;r=i.next())(s=r.value)&&n.push(t.preload(s))}catch(e){a={error:e}}finally{try{r&&!r.done&&(c=i.return)&&c.call(i)}finally{if(a)throw a.error}}return[2,Promise.all(n).then((function(){return Promise.resolve()})).catch((function(e){return Promise.reject(e)}))]}}))}))},t.prototype.handleLoading=function(){var e=this._options,n=e.enableLoadingIcon,i=e.loadingIconOptions,r=void 0===i?{}:i;if(n){var o=t.loading=new Q.Z(r);o.zIndex=20;var s=this._options,a=s.width,c=s.height;o.x=a/2,o.y=c/2,this._stage.addChild(o)}},t.prototype.showLoading=function(){t.loading&&t.loading.show()},t.prototype.hideLoading=function(){t.loading&&t.loading.hide()},t.prototype.destroy=function(){this.hideLoading(),t.loading&&t.loading.destroy(),he.baseTexture&&(he.baseTexture.destroy(!0),he.baseTexture=null),this._destroyed=!0,this._effects.forEach((function(e){e.destroy()})),this.exclusiveFilter&&this.exclusiveFilter.destroy(),this._stage&&this._stage.destroy(!0),this._renderer&&this._renderer.destroy(!0),this.background&&this.background.destroy(),this._app3d&&this._app3d.destroy(),this._appHand3d&&this._appHand3d.destroy(),this._meshVertexTimer&&clearTimeout(this._meshVertexTimer),this.destroyAvatar()},t.prototype.destroyAvatar=function(){this._avatar3d&&(this._avatar3d.destroy(),this._avatar3d=null)},re([(0,h.M)("ArRenderer"),oe("design:type",Function),oe("design:paramtypes",[]),oe("design:returntype",void 0)],t.prototype,"destroy",null),t}(ne.F)}}]);