tencentcloud-webar 1.0.23-8 → 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.
- package/auth.ts +1 -32
- package/build-esm/450.js +1 -0
- package/build-esm/682.js +1 -0
- package/build-esm/avatar.js +1 -1
- package/build-esm/hand3d.js +1 -0
- package/build-esm/index.js +1 -1
- package/build-esm/lib-3d.js +2 -2
- package/build-esm/sticker3d.js +1 -1
- package/build-umd/avatar.umd.js +167 -4
- package/build-umd/hand-3d.umd.48af7ededdd387d6d5e1.js +11 -0
- package/build-umd/stickers-3d.umd.js +4 -4
- package/build-umd/webar-sdk.umd.js +2 -2
- package/miniprogram_dist/0.wasm.br +0 -0
- package/miniprogram_dist/core.js +1 -1
- package/miniprogram_dist/index.js +1 -1
- package/miniprogram_dist/lib.js +1 -1
- package/miniprogram_dist/plugin-3d.js +1 -1
- package/miniprogram_dist/webar.js +1 -1
- package/miniprogram_dist/worker/tick.worker.js +1 -1
- package/package.json +3 -1
- package/webpack/esm/hand.dev.js +150 -0
- package/webpack/wx/hand.wx.dev.js +165 -0
- package/build-esm/542.js +0 -1
- package/build-esm/avatar.worker.js +0 -6
- package/build-esm/sticker3d.worker.js +0 -6
- package/miniprogram_dist/0.wasm +0 -0
- package/miniprogram_dist/auth.js +0 -1
- package/miniprogram_dist/lib-3d.js +0 -7
|
Binary file
|
package/miniprogram_dist/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var self = wx;var a4bt=a4b;function a4a(){var fv=['getPixels','enable','\x0a\x20\x20\x20\x20','indexOf','appendChild','_target','addToCache','irisBlendMode','destroyAvatar','sent','hide','_renderer\x20waiting\x20for\x20setup','tickMesh','_camera','renderMesh','debugDraw2','(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','return','SET_INTENSITY_ERROR','timeEnd','isPureFilter','RIGHT_EYE_ORDER','imageOffset','_filters','Geometry','right_eye_center','makeup\x20info','info','setOptions','waiting\x20for\x20AI\x20init...done','\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','_getMeshLayerByBlendMode','remove\x20effect','function','set','eyes','remove','__proto__','getOwnPropertyDescriptor','removeFromCache','iterator','_initLipMask','warn','require\x203d\x20lib','resource','width','_angles','SCALE_MODES','constructor','preloadEffects','\x0a\x0a\x20\x20\x20\x20\x20\x20','all','_leftIris','mirrorChange','ops','initRenderContext','_renderer','name','_applyed','pop','setExclusiveFilter','Shader','\x20=\x20intensity','split','_stickers','baseTexture','alpha','loaded','getBaseTexture','Container','floor','_intensity','irisRenderTexture','mouthShut','_app3d','_baseContainer','2mzWDSy','_visible','_maskSprite','sticker','Class\x20extends\x20value\x20','yaw','_parentIntensity','getCircle2','blob:','download:','app3d','concat','isLivePusher','beginFill','log','RIGHT_IRIS','_src','_options','texture','load','landmarks','makeupLayersByBlendMode','design:paramtypes','angles','max','_filterIntensity','\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}','debounceTimer','_setup','clearTexture','_getConfig','getDataConfig','_applyMakeup','_mode3d','_key','throw','_maskRenderTexure','type','uSamplerIris','prototype','getTexture','drawCircle','1123383jKLvGT','getCircle','meshVertex','zIndex','shader','preload','_removeFilter','removeChild','readJSON','_loadImages','label','apply','pitch','Graphics','_isVR','loading','16538360qzGCPh','webpackChunktencentcloud_webar','removeExclusiveFilter','output','lipmesh','_landmarks','renderer\x20apply\x20effect','LEFT_EYE_ORDER','renderTexture','_loadLipImage','removeBackground','filter','.json','IrisLayer','_maskRenderTexture','_cacheMask','undefined','_backgroundVR','uniform\x20float\x20intensity','_finalContainer','reset','checkAnimated','setMakeup','utils','_lipMask','disableEffects','mirrorFilter','key','design:returntype','0015','createOffscreenCanvas',';\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','JSONEffect\x20blob\x20texture','mirror','add','scaleMode','.a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20realIntensity','show','uniforms','filterActivedEffect','push','needDetection','textures','filterIntensity','setPrototypeOf','loadImage','_makeupRenderTexture','facelandmarks','then','min','_json','splice','_setEffect','_meshVertexTimer','_destroyed','meta','Loader','maskSprite','currentTime','debug\x20draw\x202','position','_sticker','objectSrc','Generator\x20is\x20already\x20executing.','setPlanes','hasFilter','_container','localSpriteSheets','_applyFilter','_getIris','image','readPixels','MIPMAP_MODES','setEffect','hasOwnProperty','euler','url','window','instance','4545828wvGHmi','faceLandMarks','clone','lipVertex','ReuseableLipMask','continue','loadStickers','\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','closePath','MakeupLayer','_faceLandmarks','loadLib3d','hasEyeMakeup','includes','filterActived','showLoading','makeup','latestEffectUrls','sticker3d','mount','Symbol.iterator\x20is\x20not\x20defined.','mask','_faceLandMarks','Effect','renderer','setIrisProps','_removeMakeup','_createFilterSync','_getLoader','_url','\x20*\x20parentIntensity;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20makeupColor\x20=\x20texture2D(uSamplerMakeup','TextureCache','\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}','getIndeLoader','update','8KvXnmv','resolve','lips','roll','getConfigByKeys','799988sVeIwI','_makeupContainer','_lipMaskMesh','uSamplerMakeup','tick','data','_mirrorFilter','waiting\x20for\x20AI\x20init...','value','_drawMaskGraphics','Mesh','maxRConSize','setup','renderer\x20resize','loadSticker3d','BaseRenderTexture','time','reduce','resize','renderer\x20parse\x20effect','Sticker','filters','hideLoading','\x20=\x20color','_lipMaskIns','convertTo3d','_renderer\x20waiting\x20for\x20renderer','beautify','setAvatar','exclusiveFilter','_renderer\x20waiting\x20for\x20stage','Sprite','design:type','removeForConsole','error','5497528ECGOWn','call','reject','next','mipmap','moveTo','fromBuffer','_rightIris','render','handleLoading','_maskGraphics','map','\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','geometry','Makeup','defineProperty','setStickerProps','decorate','debugDraw','logTime','_makeupMeshes','resources','findIndex','_avatar3d','segmentation','RenderTexture','clear',',\x20vUvs);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20a','lipMask','default','filterCallback','_stage','random','apply3d','trys','parentIntensity','avatar3d','addChild','_loader','backgroundType','loadFilter','6iGAuwA','updateGeometry','_filterTarget','Object\x20is\x20not\x20iterable.','download','\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','_effects','setEffectJSON','registerAvatar','POINTS_MAP','Texture','destroy','uid_','getBuffer','Renderer','LINEAR',',\x20vUvs)\x20*\x20realIntensity','number','left_eye_center','_data','_lipVertex','getCanvas','options','object','from','_baseRenderTexture','wxAnchorOffset','init','735881AGeKoV','aUvs','content.json','_dir','scale','_jsonIntensity','endFill','_getMask','ArRenderer','aVertexPosition','iris','catch','load3d','addAttribute','3093815ZmPSLh','_makeup','_config','\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}','_filtersActived','StickerLayer','getUrl','plugin3d','mesh','_meshVertex','fps','_name','create','effect\x20load\x20error','points','blend','parse','lib3dLoaded','_getPixelPosition','baseImage','done','_irises','_mesh','anchor','_baseSprite','join','height','find','checkSpriteSheetJSON','src','\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}','Spritesheet','Canvas','keys','metadata','use\x20imagebitmap\x20to\x20create\x20texture','size','background','jsonIntensity','lineStyle','uniform\x20sampler2D\x20uSamplerMakeup','intensity','maxLConSize','LEFT_IRIS','\x20is\x20not\x20a\x20constructor\x20or\x20null','visible','every','RGBA','WHITE','disableEffect','getDisplay','_debug','length','_canvas','forEach'];a4a=function(){return fv;};return a4a();}function a4b(a,b){var c=a4a();return a4b=function(d,e){d=d-0x1df;var f=c[d];return f;},a4b(a,b);}(function(a,b){var bs=a4b,c=a();while(!![]){try{var d=-parseInt(bs(0x367))/0x1*(-parseInt(bs(0x24e))/0x2)+-parseInt(bs(0x278))/0x3*(-parseInt(bs(0x2fa))/0x4)+parseInt(bs(0x375))/0x5+-parseInt(bs(0x34b))/0x6*(-parseInt(bs(0x2ff))/0x7)+-parseInt(bs(0x322))/0x8+parseInt(bs(0x2d7))/0x9+-parseInt(bs(0x288))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4a,0x5d3db),(self[a4bt(0x289)]=self[a4bt(0x289)]||[])[a4bt(0x2b0)]([[0x141],{0x1419:(a0,a1,a2)=>{var dl=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){var bu=a4b;return a3=Object[bu(0x2b4)]||{'__proto__':[]}instanceof Array&&function(aX,aY){var bv=bu;aX[bv(0x227)]=aY;}||function(aX,aY){var bw=bu;for(var aZ in aY)Object['prototype'][bw(0x2d2)][bw(0x323)](aY,aZ)&&(aX[aZ]=aY[aZ]);},a3(aV,aW);},function(aV,aW){var bx=a4b;if(bx(0x223)!=typeof aW&&null!==aW)throw new TypeError(bx(0x252)+String(aW)+bx(0x1f7));function aX(){this['constructor']=aV;}a3(aV,aW),aV[bx(0x275)]=null===aW?Object[bx(0x381)](aW):(aX[bx(0x275)]=aW['prototype'],new aX());}),ae=function(aV,aW,aX,aY){var by=a4b,aZ,b0=arguments['length'],b1=b0<0x3?aW:null===aY?aY=Object[by(0x228)](aW,aX):aY;if('object'==typeof Reflect&&by(0x223)==typeof Reflect[by(0x333)])b1=Reflect[by(0x333)](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[by(0x331)](aW,aX,b1),b1;},af=function(aV,aW){var bz=a4b;if(bz(0x362)==typeof Reflect&&bz(0x223)==typeof Reflect[bz(0x1ed)])return Reflect[bz(0x1ed)](aV,aW);},ag=(function(){var bB=a4b;function aV(aW,aX,aY,aZ,b0,b1){var bA=a4b;this[bA(0x2be)]=!0x1,this[bA(0x273)]=bA(0x2e7),this[bA(0x254)]=0x1,this[bA(0x36c)]=0x1,this['textures']=[],this[bA(0x36a)]=aX,this[bA(0x25f)]=aW,this[bA(0x2ca)]=aY,this['_lipMaskTexture']=b1,this['renderer']=aZ,this['type']=b0||bA(0x2e7);}return Object[bB(0x331)](aV[bB(0x275)],'parentIntensity',{'get':function(){var bC=bB;return this[bC(0x254)];},'set':function(aW){var bD=bB;this[bD(0x27c)]&&(this['shader'][bD(0x2ae)][bD(0x345)]=aW),this[bD(0x254)]=aW;},'enumerable':!0x1,'configurable':!0x0}),Object[bB(0x331)](aV[bB(0x275)],bB(0x33e),{'set':function(aW){var bE=bB;null===aW?(this['_mesh'][bE(0x27f)](this[bE(0x297)]),this['_mesh'][bE(0x2ec)]=aW):(this[bE(0x1e1)][bE(0x347)](aW),this[bE(0x1e1)][bE(0x2ec)]=aW,this[bE(0x297)]=aW);},'enumerable':!0x1,'configurable':!0x0}),Object[bB(0x331)](aV[bB(0x275)],bB(0x1f8),{'set':function(aW){var bF=bB;this['shader']&&(this[bF(0x27c)][bF(0x2ae)][bF(0x203)]=aW?0x1:0x0);},'enumerable':!0x1,'configurable':!0x0}),aV[bB(0x275)]['updateGeometry']=function(aW){this['_destroyed'];},aV[bB(0x275)][bB(0x210)]=function(){},aV[bB(0x275)]['drawMeshBatch']=function(aW,aX){var bG=bB,aY=this;if(!this[bG(0x2be)]){var aZ=Array[bG(0x363)](aW[bG(0x310)](function(b8,b9){var bH=bG;return b8[bH(0x2aa)](b9['blend']),b8;},new Set()));this[bG(0x24a)]&&!aZ[bG(0x2e4)](this['irisBlendMode'])&&aZ['push'](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'[bG(0x259)](aW['map'](function(b8,b9){var bI=bG;return bI(0x1f3)['concat'](b9,';');})[bG(0x1e4)]('\x0a'),bG(0x204))['concat'](aW[bG(0x32d)](function(b8,b9){var bJ=bG;return bJ(0x29a)[bJ(0x259)](b9,';');})[bG(0x1e4)]('\x0a'),bG(0x350))[bG(0x259)](aZ[bG(0x32d)](function(b8){var bK=bG;return a9['Lc'][b8][bK(0x27c)];})['join']('\x0a'),bG(0x2de))[bG(0x259)](aW['map'](function(b8,b9){var bL=bG;return bL(0x220)['concat'](b9,'\x20=\x20texture2D(uSamplerMakeup')[bL(0x259)](b9,bL(0x33d))[bL(0x259)](b9,bL(0x316))[bL(0x259)](b9,bL(0x2ac))[bL(0x259)](b9,bL(0x240))['concat'](b9,bL(0x2f5))[bL(0x259)](b9,bL(0x35b))[bL(0x259)](b9,bL(0x2a7))['concat'](a9['Lc'][b8[bL(0x384)]][bL(0x2a3)],'(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');})[bG(0x1e4)]('\x0a'),bG(0x234))[bG(0x259)](this[bG(0x24a)]?bG(0x32e)[bG(0x259)](a9['Lc'][this[bG(0x209)]]['key'],bG(0x212)):'',bG(0x268)),b1={'enable':0x1};b1[bG(0x345)]=this[bG(0x345)];var b2=this['_options'],b3=b2['width'],b4=b2[bG(0x1e5)];b1[bG(0x388)]=aT[bG(0x243)],b1[bG(0x1ef)]=[b3*b4/aT['baseTexture'][bG(0x1e5)],b4];var b5=aT[bG(0x243)]['width']*b4/aT[bG(0x243)][bG(0x1e5)];b1[bG(0x218)]=[(b5-b3)/0x2/b5,0x0],aW[bG(0x201)](function(b8,b9){var bM=bG,ba='default'===aY[bM(0x36a)]?b8[bM(0x1e8)]:''[bM(0x259)](aY[bM(0x36a)],'|')[bM(0x259)](b8[bM(0x1e8)]),bb=a4[bM(0x29f)][bM(0x2f6)][ba];b1[bM(0x302)[bM(0x259)](b9)]=bb,b1[bM(0x1f4)[bM(0x259)](b9)]=b8[bM(0x1f4)],aY[bM(0x2b2)][bM(0x2b0)](bb);}),this['irisRenderTexture']&&(b1[bG(0x274)]=this[bG(0x24a)]);var b6=a4[bG(0x23f)]['from'](bG(0x378),b0,b1);this[bG(0x27c)]=b6,ac['t'][bG(0x2d6)]['on'](bG(0x237),function(b8){});var b7=new a9['Kj'](aX,b6);return this['_mesh']=b7,this[bG(0x2ca)][bG(0x347)](b7),b7;}},aV[bB(0x275)][bB(0x356)]=function(){var bN=bB;this['_destroyed']=!0x0,this['_mesh']&&(this[bN(0x1e1)][bN(0x356)]({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this['_mesh'][bN(0x2ec)]=null,this[bN(0x1e1)]=null),this[bN(0x272)]&&this['_maskRenderTexure'][bN(0x356)](!0x1);},ae([(0x0,ab['M'])('MakeupLayer'),af(bB(0x31f),Function),af(bB(0x264),[Array]),af('design:returntype',void 0x0)],aV['prototype'],bB(0x34c),null),ae([(0x0,ab['M'])(bB(0x2e0)),af('design:type',Function),af(bB(0x264),[]),af(bB(0x2a4),void 0x0)],aV[bB(0x275)],bB(0x356),null),aV;}()),ah=function(aV){var bP=a4b;function aW(aZ,b0,b1,b2,b3,b4,b5){var bO=a4b,b6=aV[bO(0x323)](this,aZ,b0,b5)||this;return b6[bO(0x32c)]=new a4[(bO(0x285))](),b6[bO(0x1f5)]=0x0,b6[bO(0x30a)]=0x0,b6[bO(0x254)]=0x1,b6['jsonIntensity']=b3,b6[bO(0x276)](b1,b2),b6[bO(0x377)]=b4,b6[bO(0x290)]=a4[bO(0x33b)][bO(0x381)]({'width':aZ[bO(0x22f)],'height':aZ[bO(0x1e5)]}),b6;}var aX,aY;return ad(aW,aV),Object[bP(0x331)](aW[bP(0x275)],bP(0x345),{'get':function(){var bQ=bP;return this[bQ(0x254)];},'set':function(aZ){var bR=bP;this[bR(0x2ca)]&&(this['_container'][bR(0x244)]=this[bR(0x1f1)]*aZ),this[bR(0x254)]=aZ;},'enumerable':!0x1,'configurable':!0x0}),Object[bP(0x331)](aW['prototype'],bP(0x1f8),{'set':function(aZ){var bS=bP;this[bS(0x2ca)][bS(0x1f8)]=aZ;},'enumerable':!0x1,'configurable':!0x0}),aW[bP(0x275)][bP(0x276)]=function(aZ,b0){var bT=bP,b1=bT(0x33f)===this[bT(0x36a)]?aZ:''[bT(0x259)](this[bT(0x36a)],'|')[bT(0x259)](aZ),b2=a4['utils']['TextureCache'][b1],b3=new a9['jy'](b2),b4=new a9['jy'](b2[bT(0x2d9)]());b3[bT(0x1e2)][bT(0x224)](0.5),b4['anchor'][bT(0x224)](0.5),this['_leftIris']=b3,this[bT(0x329)]=b4;var b5=new a4[(bT(0x247))]();this[bT(0x32c)]||(this[bT(0x32c)]=new a4['Graphics']()),b5[bT(0x347)](this['_maskGraphics']),b5[bT(0x347)](b3),b5[bT(0x347)](b4),b5['alpha']=this['parentIntensity']*this[bT(0x1f1)],b5['mask']=this[bT(0x32c)],this[bT(0x2ca)]=b5;},aW[bP(0x275)][bP(0x2f0)]=function(aZ,b0){var bU=bP;if(aZ[bU(0x1ff)]){var b1=this[bU(0x377)][bU(0x2fe)]([bU(0x354),bU(0x1f6),bU(0x25d),bU(0x28f),bU(0x217)]),b2=b1[bU(0x354)],b3=(b1[bU(0x1f6)],b1[bU(0x25d)],b1[bU(0x28f)]),b4=b1[bU(0x217)],b5=(b2[bU(0x35d)],b2[bU(0x21b)],(0x0,aa['Sp'])(aZ[0x34],aZ[0x37])),b6=(0x0,aa['Sp'])(aZ[0x3a],aZ[0x3d]),b7=Math[bU(0x266)](this['maxLConSize'],(0x0,aa['Sp'])(aZ[0x48],aZ[0x49])/b5),b8=Math[bU(0x266)](this[bU(0x30a)],(0x0,aa['Sp'])(aZ[0x4b],aZ[0x4c])/b6),b9=b5*b7,ba=b5*b7,bb=b6*b8,bc=b6*b8;this[bU(0x1f5)]=Math[bU(0x266)](Math[bU(0x2b9)](b7,0.7),0.4),this[bU(0x30a)]=Math[bU(0x266)](Math[bU(0x2b9)](b8,0.7),0.4);var bd=aT[bU(0x243)][bU(0x22f)]*this[bU(0x25f)]['height']/aT['baseTexture']['height'],be=(0x0,aa['qg'])(aZ[0x4a],aZ[0x68]),bf=(0x0,aa['qg'])(aZ[0x4d],aZ[0x69]);console[bU(0x25c)]('offset',(bd-this[bU(0x25f)][bU(0x22f)])/0x2),be['x']-=(bd-this['_options'][bU(0x22f)])/0x2,bf['x']-=(bd-this[bU(0x25f)][bU(0x22f)])/0x2;var bg=this[bU(0x236)],bh=this['_rightIris'];bg[bU(0x22f)]=b9,bg[bU(0x1e5)]=ba,bg['x']=be['x'],bg['y']=be['y'],bh[bU(0x22f)]=bb,bh[bU(0x1e5)]=bc,bh['x']=bf['x'],bh['y']=bf['y'],this[bU(0x32c)][bU(0x33c)](),this[bU(0x308)](b3,aZ),this['_drawMaskGraphics'](b4,aZ),b0[bU(0x32a)](this[bU(0x2ca)],{'renderTexture':this[bU(0x290)]});}},aW[bP(0x275)][bP(0x308)]=function(aZ,b0){var bV=bP,b1=this,b2=this[bV(0x32c)];b2[bV(0x25b)](0xff3300),b2[bV(0x1f2)](0x1,0xffd900,0x1);var b3=[];aZ[bV(0x201)](function(b4,b5){var bW=bV,b6=b0[b4],b7=b1[bW(0x387)](b6['x'],b6['y']),b8=b7['x'],b9=b7['y'];b3[bW(0x2b0)]({'x':b8,'y':b9}),0x0===b5?b2[bW(0x327)](b8,b9):b5===aZ['length']-0x1?(b2[bW(0x2df)](),b2[bW(0x36d)]()):b2['lineTo'](b8,b9);});},aW[bP(0x275)][bP(0x387)]=function(aZ,b0){return{'x':aZ,'y':b0};},aW['prototype'][bP(0x356)]=function(){var bX=bP;this[bX(0x236)]&&this['_leftIris'][bX(0x356)]({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this['_rightIris']&&this[bX(0x329)]['destroy']({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this[bX(0x32c)]&&this[bX(0x32c)][bX(0x356)]({'children':!0x0,'texture':!0x1,'baseTexture':!0x1});},ae([(0x0,ab['M'])(bP(0x295)),af(bP(0x31f),Function),af('design:paramtypes',[bP(0x223)==typeof(aX=bP(0x298)!=typeof Array&&Array)?aX:Object,bP(0x223)==typeof(aY=void 0x0!==a4[bP(0x359)]&&a4[bP(0x359)])?aY:Object]),af(bP(0x2a4),void 0x0)],aW[bP(0x275)],bP(0x2f0),null),aW;}(ag),ai=a2(0xc30),aj=a2(0x17dd),ak=function(aV,aW,aX,aY){var bY=a4b,aZ,b0=arguments[bY(0x1ff)],b1=b0<0x3?aW:null===aY?aY=Object[bY(0x228)](aW,aX):aY;if(bY(0x362)==typeof Reflect&&bY(0x223)==typeof Reflect[bY(0x333)])b1=Reflect[bY(0x333)](aV,aW,aX,aY);else{for(var b2=aV[bY(0x1ff)]-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[bY(0x331)](aW,aX,b1),b1;},al=function(aV,aW){var bZ=a4b;if(bZ(0x362)==typeof Reflect&&bZ(0x223)==typeof Reflect['metadata'])return Reflect[bZ(0x1ed)](aV,aW);},am=function(aV,aW,aX,aY){return new(aX||(aX=Promise))(function(aZ,b0){var c2=a4b;function b1(b4){var c0=a4b;try{b3(aY[c0(0x325)](b4));}catch(b5){b0(b5);}}function b2(b4){try{b3(aY['throw'](b4));}catch(b5){b0(b5);}}function b3(b4){var c1=a4b,b5;b4[c1(0x1df)]?aZ(b4[c1(0x307)]):(b5=b4[c1(0x307)],b5 instanceof aX?b5:new aX(function(b6){b6(b5);}))[c1(0x2b8)](b1,b2);}b3((aY=aY[c2(0x283)](aV,aW||[]))[c2(0x325)]());});},an=function(aV,aW){var c3=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)},'function'==typeof Symbol&&(b0[Symbol[c3(0x22a)]]=function(){return this;}),b0;function b2(b3){return function(b4){return function(b5){var c4=a4b;if(aX)throw new TypeError(c4(0x2c7));for(;b1;)try{if(aX=0x1,aY&&(aZ=0x2&b5[0x0]?aY[c4(0x213)]:b5[0x0]?aY[c4(0x271)]||((aZ=aY[c4(0x213)])&&aZ[c4(0x323)](aY),0x0):aY['next'])&&!(aZ=aZ[c4(0x323)](aY,b5[0x1]))['done'])return aZ;switch(aY=0x0,aZ&&(b5=[0x2&b5[0x0],aZ[c4(0x307)]]),b5[0x0]){case 0x0:case 0x1:aZ=b5;break;case 0x4:return b1[c4(0x282)]++,{'value':b5[0x1],'done':!0x1};case 0x5:b1[c4(0x282)]++,aY=b5[0x1],b5=[0x0];continue;case 0x7:b5=b1[c4(0x238)][c4(0x23d)](),b1[c4(0x344)][c4(0x23d)]();continue;default:if(!(aZ=b1[c4(0x344)],(aZ=aZ[c4(0x1ff)]>0x0&&aZ[aZ[c4(0x1ff)]-0x1])||0x6!==b5[0x0]&&0x2!==b5[0x0])){b1=0x0;continue;}if(0x3===b5[0x0]&&(!aZ||b5[0x1]>aZ[0x0]&&b5[0x1]<aZ[0x3])){b1[c4(0x282)]=b5[0x1];break;}if(0x6===b5[0x0]&&b1[c4(0x282)]<aZ[0x1]){b1['label']=aZ[0x1],aZ=b5;break;}if(aZ&&b1[c4(0x282)]<aZ[0x2]){b1['label']=aZ[0x2],b1['ops'][c4(0x2b0)](b5);break;}aZ[0x2]&&b1[c4(0x238)]['pop'](),b1['trys'][c4(0x23d)]();continue;}b5=aW[c4(0x323)](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 c5=a4b,aW='function'==typeof Symbol&&Symbol[c5(0x22a)],aX=aW&&aV[aW],aY=0x0;if(aX)return aX['call'](aV);if(aV&&c5(0x35c)==typeof aV[c5(0x1ff)])return{'next':function(){var c6=c5;return aV&&aY>=aV[c6(0x1ff)]&&(aV=void 0x0),{'value':aV&&aV[aY++],'done':!aV};}};throw new TypeError(aW?c5(0x34e):c5(0x2eb));},ap=(0x0,aj['jl'])('makeup'),aq=(function(){var c8=a4b;function aV(aW,aX,aY){var c7=a4b;aW&&(this[c7(0x25f)]=aW),aX&&(this['_lipVertex']=aX),aY&&(this[c7(0x2ef)]=aY);}return aV[c8(0x275)]['destroy']=function(){var c9=c8,aW=this[c9(0x2a0)];this[c9(0x2a0)]=null;try{aW[c9(0x356)](!0x0);}catch(aX){}try{this[c9(0x301)]['destroy'](!0x0),this[c9(0x301)]=null;}catch(aY){}try{this[c9(0x296)][c9(0x356)](!0x0),this[c9(0x296)]=null;}catch(aZ){}this[c9(0x377)]=null;try{this[c9(0x250)][c9(0x356)](!0x0),this[c9(0x250)]=null;}catch(b0){}},aV[c8(0x275)][c8(0x261)]=function(){return am(this,void 0x0,void 0x0,function(){var aW,aX,aY,aZ,b0;return an(this,function(b1){var ca=a4b;switch(b1['label']){case 0x0:return this[ca(0x377)]?[0x3,0x2]:(this[ca(0x377)]=new a8['M'](),[0x4,this[ca(0x377)][ca(0x261)]()]);case 0x1:b1[ca(0x20b)](),b1['label']=0x2;case 0x2:return this[ca(0x2a0)]?[0x3,0x4]:[0x4,this[ca(0x36e)]()];case 0x3:b1[ca(0x20b)](),b1[ca(0x282)]=0x4;case 0x4:return this['_maskSprite']&&!this['_maskSprite']['destroyed']||(aW=this[ca(0x25f)],aX=aW[ca(0x22f)],aY=aW['height'],aZ=new a4[(ca(0x30e))]({'width':aX,'height':aY}),this['_maskRenderTexture']=new a4[(ca(0x33b))](aZ),b0=new a4[(ca(0x31e))](this[ca(0x296)]),this['_maskSprite']=b0),[0x2,{'maskSprite':this['_maskSprite'],'lipmask':this[ca(0x2a0)],'lipmaskmesh':this['_lipMaskMesh']}];}});});},aV[c8(0x275)][c8(0x2f9)]=function(aW){var cb=c8;this[cb(0x301)]&&(this[cb(0x301)][cb(0x32f)]['getBuffer']('aVertexPosition')[cb(0x2f9)](aW),this[cb(0x32a)]());},aV['prototype'][c8(0x32a)]=function(){var cc=c8;this[cc(0x2ef)]&&this[cc(0x2a0)]&&this[cc(0x2ef)][cc(0x32a)](this[cc(0x2a0)],{'renderTexture':this['_maskRenderTexture']});},aV['prototype'][c8(0x36e)]=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 cd=a4b;switch(b5['label']){case 0x0:return this[cd(0x2a0)]?[0x2,this[cd(0x2a0)]]:(aW=new a4[(cd(0x247))](),(aX=new a4[(cd(0x31e))](a4[cd(0x355)][cd(0x1fb)]))[cd(0x22f)]=this[cd(0x25f)][cd(0x22f)],aX[cd(0x1e5)]=this[cd(0x25f)][cd(0x1e5)],aW[cd(0x347)](aX),aY=this[cd(0x35f)],aZ=this[cd(0x377)][cd(0x26d)](0x1d),[0x4,this[cd(0x291)]()]);case 0x1:return b0=b5['sent'](),b1=new a4[(cd(0x21a))]()[cd(0x374)](cd(0x370),aY)[cd(0x374)](cd(0x368),aZ),cd(0x1e9),cd(0x2f7),b2={'uSamplerMakeup':b0},b3=a4[cd(0x23f)][cd(0x363)](cd(0x1e9),'\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),b4=new a4[(cd(0x309))](b1,b3),this[cd(0x301)]=b4,aW['addChild'](b4),this['_lipMask']=aW,[0x2,aW];}});});},aV[c8(0x275)][c8(0x291)]=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 ce=a4b;switch(b3[ce(0x282)]){case 0x0:return[0x4,(b0=new ai['KI']())[ce(0x366)]()];case 0x1:return b1=b3[ce(0x20b)](),[0x4,b0[ce(0x2b5)](b1)];case 0x2:return b2=b3['sent'](),aY(b2[ai['X_']]),[0x2];}});});})];});});},ak([(0x0,ab['M'])(c8(0x2db)),al(c8(0x31f),Function),al(c8(0x264),[]),al(c8(0x2a4),void 0x0)],aV[c8(0x275)],c8(0x356),null),ak([(0x0,ab['o'])('ReuseableLipMask'),al(c8(0x31f),Function),al(c8(0x264),[]),al(c8(0x2a4),Promise)],aV[c8(0x275)],c8(0x36e),null),aV;}()),ar=(function(){var cg=a4b;function aV(aX,aY,aZ,b0,b1,b2,b3,b4){var cf=a4b;void 0x0===b4&&(b4=0x1),this[cf(0x2ca)]=new a4[(cf(0x247))](),this['_makeupMeshes']=[],this[cf(0x24f)]=!0x0,this['mouthShut']=!0x0,this['_applyed']=!0x1,this['_key']=aX,this[cf(0x35e)]=aY,this['_options']=aZ,this[cf(0x37d)]=b0,this[cf(0x28c)]=b2,this[cf(0x2d8)]=b1,this[cf(0x2ef)]=b3,this[cf(0x345)]=b4;var b5=new a4[(cf(0x31e))](a4[cf(0x355)][cf(0x1fb)]);b5['alpha']=0x0,b5[cf(0x22f)]=aZ['width'],b5[cf(0x1e5)]=aZ['height'],this['_container'][cf(0x347)](b5);}var aW;return Object['defineProperty'](aV[cg(0x275)],'visible',{'get':function(){var ch=cg;return this[ch(0x24f)];},'set':function(aX){var ci=cg,aY=this;this[ci(0x207)]&&aX!==this['_visible']&&(this[ci(0x24f)]=aX,this['_makeupMeshes'][ci(0x201)](function(aZ){var cj=ci;aX?aY[cj(0x283)](aY['_target']):aY[cj(0x226)]();}));},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[cg(0x275)],'mesh',{'set':function(aX){var ck=cg;(this[ck(0x37e)]=aX,this[ck(0x32f)])&&(this[ck(0x32f)][ck(0x358)](ck(0x370))[ck(0x2f9)](aX),this[ck(0x336)][ck(0x201)](function(aY){var cl=ck;aY[cl(0x34c)](aX);}));},'enumerable':!0x1,'configurable':!0x0}),Object[cg(0x331)](aV['prototype'],cg(0x28c),{'set':function(aX){var cm=cg;this[cm(0x35f)]=aX,this[cm(0x317)]&&this[cm(0x317)][cm(0x2f9)](aX);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV['prototype'],cg(0x2d8),{'set':function(aX){var cn=cg,aY=this;aX&&aX['length']&&(this[cn(0x1e0)]&&this[cn(0x1e0)][cn(0x2f0)](aX,this[cn(0x2ef)]),(0x0,aa['Sp'])(aX[0x62],aX[0x66])<0.03*(0x0,aa['Sp'])(aX[0x0],aX[0x20])?this[cn(0x24b)]||(this[cn(0x336)][cn(0x201)](function(aZ){var co=cn;co(0x2fc)===aZ[co(0x273)]&&(aZ['lipMask']=null);}),this[cn(0x24b)]=!0x0):this[cn(0x24b)]&&(this[cn(0x336)][cn(0x201)](function(aZ){var cp=cn;cp(0x2fc)===aZ[cp(0x273)]&&aY['_lipMaskIns']&&(aZ[cp(0x33e)]=aY[cp(0x317)][cp(0x250)]);}),this[cn(0x24b)]=!0x1));},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[cg(0x275)],cg(0x345),{'get':function(){var cq=cg;return this[cq(0x249)];},'set':function(aX){var cr=cg;ap[cr(0x21d)]('set\x20parentIntensity',aX),this[cr(0x1e0)]&&(this['_irises']['parentIntensity']=aX),this[cr(0x336)][cr(0x201)](function(aY){aY['parentIntensity']=aX;}),this[cr(0x249)]=aX;},'enumerable':!0x1,'configurable':!0x0}),aV[cg(0x275)][cg(0x210)]=function(){var cs=cg;this[cs(0x317)]&&this['_lipMaskIns'][cs(0x32a)](),this['_makeupMeshes'][cs(0x201)](function(aX){var ct=cs;aX[ct(0x210)]();});},aV[cg(0x275)][cg(0x261)]=function(){return am(this,void 0x0,void 0x0,function(){var aX,aY,aZ,b0,b1,b2,b3,b4;return an(this,function(b5){var cu=a4b;switch(b5[cu(0x282)]){case 0x0:return this[cu(0x377)]=new a8['M'](),[0x4,this[cu(0x377)][cu(0x261)]()];case 0x1:if(b5[cu(0x20b)](),aX=this[cu(0x35e)],ap[cu(0x21d)](cu(0x21c),this['_data']),aY=[],aX&&aX[cu(0x1ff)]){try{for(aZ=ao(aX),b0=aZ[cu(0x325)]();!b0['done'];b0=aZ[cu(0x325)]())cu(0x371)===(b1=b0['value'])[cu(0x273)]?(this[cu(0x1e0)]=this[cu(0x2cd)](b1[cu(0x1e8)],b1[cu(0x384)],b1[cu(0x1f4)]),this['irisBlendMode']=b1['blend']):(b1[cu(0x384)]+'',aY[cu(0x2b0)]({'src':b1[cu(0x1e8)],'intensity':b1[cu(0x1f4)],'type':b1[cu(0x273)],'blend':b1[cu(0x384)]}));}catch(b6){b3={'error':b6};}finally{try{b0&&!b0[cu(0x1df)]&&(b4=aZ['return'])&&b4[cu(0x323)](aZ);}finally{if(b3)throw b3[cu(0x321)];}}console['log'](cu(0x263),aY),b2=this['_getMeshLayerByBlendMode'](aY),this[cu(0x336)][cu(0x2b0)](b2);}return[0x4,this[cu(0x22b)]()];case 0x2:return b5[cu(0x20b)](),[0x2];}});});},aV['prototype'][cg(0x2cd)]=function(aX,aY,aZ){var cv=cg;return new ah(this['_options'],this['_key'],aX,aY,aZ,this[cv(0x377)],this['_container']);},aV['prototype'][cg(0x221)]=function(aX){var cx=cg,aY=aX['some'](function(b2){var cw=a4b;return cw(0x2fc)===b2[cw(0x273)];})?cx(0x2fc):cx(0x2e7),aZ=new ag(this[cx(0x25f)],this[cx(0x270)],this['_container'],this[cx(0x2ef)],aY);aZ[cx(0x345)]=this[cx(0x345)],this[cx(0x1e0)]&&(aZ[cx(0x24a)]=this['_irises']['renderTexture'][cx(0x243)],aZ[cx(0x209)]=this['irisBlendMode']);var b0=this['_config'][cx(0x26d)](0x1a);if(!this['geometry']){var b1=new a4[(cx(0x21a))]()[cx(0x374)](cx(0x370),this[cx(0x37e)])[cx(0x374)](cx(0x368),b0);this[cx(0x32f)]=b1;}return aZ['drawMeshBatch'](aX,this['geometry']),aZ;},aV[cg(0x275)][cg(0x283)]=function(aX){var cy=cg;this['_target']=aX,this[cy(0x26e)](aX);},aV['prototype']['remove']=function(){var cz=cg;this[cz(0x2f1)](this['_target']);},aV[cg(0x275)][cg(0x26e)]=function(aX){var cA=cg;this[cA(0x23c)]||(this[cA(0x23c)]=!0x0,aX[cA(0x314)]||(aX['filters']=[]),aX['addChild'](this[cA(0x2ca)]));},aV[cg(0x275)][cg(0x2f1)]=function(aX){var cB=cg;this[cB(0x23c)]&&(this[cB(0x23c)]=!0x1,aX[cB(0x314)]&&aX[cB(0x27f)](this[cB(0x2ca)]));},aV[cg(0x275)][cg(0x22b)]=function(){return am(this,void 0x0,void 0x0,function(){var aX,aY,aZ=this;return an(this,function(b0){var cC=a4b;switch(b0['label']){case 0x0:return(aX=new aq(this['_options'],this['_lipVertex'],this[cC(0x2ef)]))[cC(0x25f)]=this['_options'],aX[cC(0x35f)]=this['_lipVertex'],aX[cC(0x2ef)]=this['renderer'],this[cC(0x317)]=aX,[0x4,aX[cC(0x261)]()];case 0x1:return aY=b0[cC(0x20b)]()[cC(0x2c1)],this[cC(0x336)][cC(0x201)](function(b1){var cD=cC;console[cD(0x25c)]('是否闭嘴的',aZ[cD(0x24b)]),cD(0x2fc)!==b1[cD(0x273)]||aZ['mouthShut']||(b1[cD(0x33e)]=aY);}),[0x2];}});});},aV[cg(0x275)][cg(0x356)]=function(){var cE=cg;this[cE(0x226)](),this[cE(0x336)][cE(0x201)](function(aX){var cF=cE;return aX[cF(0x356)]();}),this['_makeupMeshes']=[],this[cE(0x1e0)]&&this[cE(0x1e0)][cE(0x356)](),this[cE(0x1e0)]=null,this['_container'][cE(0x356)](),this[cE(0x207)]=null,this[cE(0x317)]&&this['_lipMaskIns']['destroy']();},ak([(0x0,ab['M'])(cg(0x330)),al(cg(0x31f),Function),al(cg(0x264),[cg(0x223)==typeof(aW=void 0x0!==a4[cg(0x247)]&&a4['Container'])?aW:Object]),al(cg(0x2a4),void 0x0)],aV['prototype'],cg(0x2f1),null),ak([(0x0,ab['M'])(cg(0x330)),al(cg(0x31f),Function),al(cg(0x264),[]),al('design:returntype',void 0x0)],aV[cg(0x275)],cg(0x356),null),aV;}()),as=a2(0xc35),at=a2(0x191),au=function(aV,aW,aX,aY){var cG=a4b,aZ,b0=arguments[cG(0x1ff)],b1=b0<0x3?aW:null===aY?aY=Object[cG(0x228)](aW,aX):aY;if(cG(0x362)==typeof Reflect&&cG(0x223)==typeof Reflect['decorate'])b1=Reflect[cG(0x333)](aV,aW,aX,aY);else{for(var b2=aV[cG(0x1ff)]-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;},av=function(aV,aW){var cH=a4b;if(cH(0x362)==typeof Reflect&&'function'==typeof Reflect['metadata'])return Reflect['metadata'](aV,aW);},aw=(function(){var cJ=a4b;function aV(aW,aX,aY,aZ,b0,b1,b2,b3){var cI=a4b;this[cI(0x2ca)]=new a4['Container'](),this[cI(0x380)]=aW,this[cI(0x25e)]=aX,this[cI(0x207)]=aZ,this[cI(0x377)]=aY,this[cI(0x36c)]=aY[cI(0x1f4)],this[cI(0x28d)]=b0,this[cI(0x25f)]=b1,this[cI(0x270)]=b2,this[cI(0x230)]=b3;}return Object[cJ(0x331)](aV[cJ(0x275)],cJ(0x345),{'get':function(){return this['_parentIntensity'];},'set':function(aW){var cK=cJ;this[cK(0x254)]=aW,this[cK(0x2c5)]&&(this[cK(0x2c5)][cK(0x244)]=this[cK(0x36c)]*aW);},'enumerable':!0x1,'configurable':!0x0}),Object[cJ(0x331)](aV['prototype'],cJ(0x2d8),{'set':function(aW){var cL=cJ;this['_landmarks']=aW,this[cL(0x2c5)]&&this[cL(0x332)]();},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[cJ(0x275)],cJ(0x265),{'set':function(aW){var cM=cJ;this[cM(0x230)]=aW,this[cM(0x2c5)]&&this[cM(0x332)]();},'enumerable':!0x1,'configurable':!0x0}),aV['prototype'][cJ(0x279)]=function(aW){var cN=cJ;void 0x0===aW&&(aW=0x5);var aX=new a4[(cN(0x285))]();return aX[cN(0x25b)](0xff0000),aX[cN(0x277)](0x0,0x0,aW),aX[cN(0x36d)](),aX;},aV[cJ(0x275)][cJ(0x255)]=function(aW){var cO=cJ;void 0x0===aW&&(aW=0x5);var aX=new a4[(cO(0x285))]();return aX[cO(0x25b)](0xff),aX[cO(0x277)](0x0,0x0,aW),aX[cO(0x36d)](),aX;},aV[cJ(0x275)][cJ(0x1fd)]=function(){var cP=cJ;return this[cP(0x2ca)];},aV[cJ(0x275)][cJ(0x261)]=function(){var cQ=cJ,aW,aX=this;if(this['checkAnimated']()){var aY=[];this[cQ(0x25e)][cQ(0x201)](function(b2){var cR=cQ,b3;b3=b2[cR(0x205)](cR(0x294))>-0x1?b2:''[cR(0x259)](aX[cR(0x270)],'|')[cR(0x259)](JSON[cR(0x385)](b2)[cR(0x2bf)][cR(0x2ce)]);var b4=a6['iV'][b3]['textures'],b5=Object[cR(0x1ec)](b4)['map'](function(b6){return b4[b6];});aY=aY['concat'](b5);}),(aW=new a9['Kg'](aY))['animationSpeed']=(this[cQ(0x377)][cQ(0x37f)]||0x1e)/0x3c,aW['play']();}else{var aZ=this[cQ(0x25e)][0x0],b0=a4['utils'][cQ(0x2f6)][aZ];aW=new a9['jy'](b0);}this[cQ(0x377)][cQ(0x384)]&&(console[cQ(0x25c)]('sticker\x20blend',this[cQ(0x377)]['blend']),aW['blendMode_1']=this['_config']['blend']),this[cQ(0x377)][cQ(0x365)],(aW[cQ(0x22f)]=this[cQ(0x377)]['width'],aW[cQ(0x1e5)]=this[cQ(0x377)][cQ(0x1e5)]);var b1=[0.5,0.5];this['_config'][cQ(0x1e2)]&&(b1=this[cQ(0x377)][cQ(0x1e2)]),aW[cQ(0x1e2)]['set'](b1[0x0],b1[0x1]),aW[cQ(0x244)]=this['_jsonIntensity']*this[cQ(0x345)],this[cQ(0x2c5)]=aW,this[cQ(0x2ca)][cQ(0x347)](this[cQ(0x2c5)]),this[cQ(0x2ca)][cQ(0x318)](),this['setStickerProps']();},aV[cJ(0x275)][cJ(0x332)]=function(){var cS=cJ,aW=this[cS(0x377)],aX=this[cS(0x28d)],aY=at['Jp'][cS(0x32d)](function(b5){return aX[b5];}),aZ=(0x0,aa['Sp'])(aY[0x0],aY[0x1]),b0=aW['wxAnchorArea'],b1=(aW[cS(0x365)],aW['wxWeights']),b2=aZ/at['jw'],b3=b0[cS(0x32d)](function(b5){var b6=aX[b5];return{'x':b6['x'],'y':b6['y'],'z':0x0};});this[cS(0x2ca)]['scale'][cS(0x224)](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[cS(0x2ca)]['position']['x']=b4['x'],this['_container'][cS(0x2c4)]['y']=b4['y'],this[cS(0x230)]&&(this[cS(0x2ca)][cS(0x2d3)]['z']=this['_angles'][cS(0x2fd)],this[cS(0x2ca)]['euler']['y']=this[cS(0x230)][cS(0x253)],this[cS(0x2ca)][cS(0x2d3)]['x']=this[cS(0x230)][cS(0x284)]);},aV[cJ(0x275)][cJ(0x29d)]=function(){var cT=cJ;if(this['_src']instanceof Array&&this[cT(0x25e)][cT(0x1ff)]>0x1)return!0x0;try{return JSON['parse'](this['_src'][0x0]),!0x0;}catch(aW){return'json'===this[cT(0x25e)][0x0][cT(0x241)]('.')[cT(0x23d)]();}},aV[cJ(0x275)][cJ(0x303)]=function(){},aV['prototype'][cJ(0x283)]=function(){},aV[cJ(0x275)][cJ(0x226)]=function(){},aV[cJ(0x275)][cJ(0x356)]=function(){var cU=cJ;this[cU(0x2c5)]['destroy'](),this['_container'][cU(0x356)](),this[cU(0x2c5)]=null,this[cU(0x207)]=null;},au([(0x0,ab['M'])(cJ(0x37a)),av(cJ(0x31f),Function),av(cJ(0x264),[]),av(cJ(0x2a4),Boolean)],aV[cJ(0x275)],cJ(0x29d),null),au([(0x0,ab['M'])(cJ(0x37a)),av(cJ(0x31f),Function),av(cJ(0x264),[]),av('design:returntype',void 0x0)],aV['prototype'],'destroy',null),aV;}()),ax=(function(){var cX=a4b;function aV(aW,aX,aY,aZ,b0,b1,b2){var cV=a4b;void 0x0===b2&&(b2=0x1);var b3=this;this[cV(0x242)]=[],this[cV(0x24f)]=!0x0,this['_parentIntensity']=0x1,this[cV(0x207)]=aY,this[cV(0x25f)]=b0,this[cV(0x28d)]=aZ;var b4=new as['LE']();b4[cV(0x2c8)](0x190,0xa,0x2710,!0x0),this[cV(0x20f)]=b4,this[cV(0x242)]=aX['map'](function(b5){var cW=cV,b6=new aw(b5[cW(0x23b)],b5['src'],b5,aY,aZ,b0,aW,b1);return b6[cW(0x345)]=b3['parentIntensity'],b6[cW(0x261)](),b3['_camera'][cW(0x347)](b6['getDisplay']()),b6;});}return Object[cX(0x331)](aV[cX(0x275)],cX(0x345),{'get':function(){return this['_parentIntensity'];},'set':function(aW){var cY=cX;this[cY(0x242)]['forEach'](function(aX){var cZ=cY;aX[cZ(0x345)]=aW;}),this[cY(0x254)]=aW;},'enumerable':!0x1,'configurable':!0x0}),Object[cX(0x331)](aV['prototype'],'faceLandMarks',{'set':function(aW){var d0=cX;this[d0(0x242)][d0(0x201)](function(aX){var d1=d0;aX[d1(0x2d8)]=aW;});},'enumerable':!0x1,'configurable':!0x0}),Object[cX(0x331)](aV[cX(0x275)],'angles',{'set':function(aW){this['_stickers']['forEach'](function(aX){aX['angles']=aW;});},'enumerable':!0x1,'configurable':!0x0}),Object[cX(0x331)](aV[cX(0x275)],cX(0x1f8),{'get':function(){return this['_visible'];},'set':function(aW){var d2=cX;this[d2(0x207)]&&aW!==this[d2(0x24f)]&&(this[d2(0x24f)]=aW,aW?this[d2(0x283)]():this[d2(0x226)]());},'enumerable':!0x1,'configurable':!0x0}),aV[cX(0x275)][cX(0x303)]=function(){var d3=cX;this[d3(0x242)][d3(0x201)](function(aW){var d4=d3;return aW[d4(0x303)]();});},aV[cX(0x275)]['apply']=function(){var d5=cX;this[d5(0x207)][d5(0x347)](this[d5(0x20f)]);},aV[cX(0x275)][cX(0x226)]=function(){var d6=cX;this[d6(0x207)][d6(0x27f)](this['_camera']);},aV[cX(0x275)][cX(0x356)]=function(){var d7=cX;this[d7(0x226)](),this['_stickers']['forEach'](function(aW){return aW['destroy']();}),this['_camera'][d7(0x356)](),this['_stickers']=[];},aV;}()),ay=a2(0x1ade),az=a2(0x1adf),aA=(function(){var aV=function(aW,aX){var d8=a4b;return aV=Object[d8(0x2b4)]||{'__proto__':[]}instanceof Array&&function(aY,aZ){aY['__proto__']=aZ;}||function(aY,aZ){var d9=d8;for(var b0 in aZ)Object[d9(0x275)][d9(0x2d2)]['call'](aZ,b0)&&(aY[b0]=aZ[b0]);},aV(aW,aX);};return function(aW,aX){var da=a4b;if('function'!=typeof aX&&null!==aX)throw new TypeError(da(0x252)+String(aX)+da(0x1f7));function aY(){var db=da;this[db(0x232)]=aW;}aV(aW,aX),aW[da(0x275)]=null===aX?Object[da(0x381)](aX):(aY[da(0x275)]=aX[da(0x275)],new aY());};}()),aB=function(aV,aW,aX,aY){var dc=a4b,aZ,b0=arguments[dc(0x1ff)],b1=b0<0x3?aW:null===aY?aY=Object[dc(0x228)](aW,aX):aY;if(dc(0x362)==typeof Reflect&&'function'==typeof Reflect['decorate'])b1=Reflect[dc(0x333)](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[dc(0x331)](aW,aX,b1),b1;},aC=function(aV,aW){var dd=a4b;if(dd(0x362)==typeof Reflect&&dd(0x223)==typeof Reflect[dd(0x1ed)])return Reflect[dd(0x1ed)](aV,aW);},aD=function(aV,aW,aX,aY){return new(aX||(aX=Promise))(function(aZ,b0){var dg=a4b;function b1(b4){try{b3(aY['next'](b4));}catch(b5){b0(b5);}}function b2(b4){var de=a4b;try{b3(aY[de(0x271)](b4));}catch(b5){b0(b5);}}function b3(b4){var df=a4b,b5;b4[df(0x1df)]?aZ(b4[df(0x307)]):(b5=b4[df(0x307)],b5 instanceof aX?b5:new aX(function(b6){b6(b5);}))[df(0x2b8)](b1,b2);}b3((aY=aY[dg(0x283)](aV,aW||[]))[dg(0x325)]());});},aE=function(aV,aW){var dh=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)},dh(0x223)==typeof Symbol&&(b0[Symbol['iterator']]=function(){return this;}),b0;function b2(b3){return function(b4){return function(b5){var di=a4b;if(aX)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;b1;)try{if(aX=0x1,aY&&(aZ=0x2&b5[0x0]?aY[di(0x213)]:b5[0x0]?aY[di(0x271)]||((aZ=aY['return'])&&aZ[di(0x323)](aY),0x0):aY[di(0x325)])&&!(aZ=aZ[di(0x323)](aY,b5[0x1]))[di(0x1df)])return aZ;switch(aY=0x0,aZ&&(b5=[0x2&b5[0x0],aZ[di(0x307)]]),b5[0x0]){case 0x0:case 0x1:aZ=b5;break;case 0x4:return b1[di(0x282)]++,{'value':b5[0x1],'done':!0x1};case 0x5:b1['label']++,aY=b5[0x1],b5=[0x0];continue;case 0x7:b5=b1[di(0x238)]['pop'](),b1[di(0x344)][di(0x23d)]();continue;default:if(!(aZ=b1['trys'],(aZ=aZ[di(0x1ff)]>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[di(0x282)]=b5[0x1];break;}if(0x6===b5[0x0]&&b1[di(0x282)]<aZ[0x1]){b1[di(0x282)]=aZ[0x1],aZ=b5;break;}if(aZ&&b1[di(0x282)]<aZ[0x2]){b1[di(0x282)]=aZ[0x2],b1[di(0x238)][di(0x2b0)](b5);break;}aZ[0x2]&&b1[di(0x238)][di(0x23d)](),b1[di(0x344)][di(0x23d)]();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 dj=a4b,aW=dj(0x223)==typeof Symbol&&Symbol[dj(0x22a)],aX=aW&&aV[aW],aY=0x0;if(aX)return aX['call'](aV);if(aV&&'number'==typeof aV['length'])return{'next':function(){var dk=dj;return aV&&aY>=aV[dk(0x1ff)]&&(aV=void 0x0),{'value':aV&&aV[aY++],'done':!aV};}};throw new TypeError(aW?dj(0x34e):dj(0x2eb));},aG=(0x0,aj['jl'])(dl(0x2ee)),aH=(function(){var dn=dl;function aV(aX,aY,aZ,b0,b1,b2,b3,b4,b5,b6,b7){var dm=a4b;this[dm(0x219)]=[],this[dm(0x2be)]=!0x1,this[dm(0x24f)]=!0x0,this['_intensity']=0x1,this[dm(0x267)]=0x1,this[dm(0x2cb)]={},this['_filtersActived']=!0x0,this[dm(0x207)]=aY,this['_stickerTarget']=aZ,this[dm(0x2f4)]=aX,this[dm(0x270)]=aX,this[dm(0x25f)]=b1,this[dm(0x37d)]=b2,this[dm(0x28c)]=b4,this['faceLandMarks']=b3,b5&&(this[dm(0x265)]=b5),void 0x0!==b6&&(this[dm(0x1f4)]=b6),this['_app3d']=b0,this[dm(0x200)]=b7;}var aW;return Object[dn(0x331)](aV[dn(0x275)],dn(0x216),{'get':function(){var dp=dn,aX=this[dp(0x377)];return!!aX&&((!aX['makeup']||!aX['makeup'][dp(0x1ff)])&&((!aX['sticker']||!aX['sticker'][dp(0x1ff)])&&((!aX['sticker3d']||!aX[dp(0x2e9)][dp(0x1ff)])&&(!aX['beautify']||!Object[dp(0x1ec)](aX[dp(0x31a)])[dp(0x1e6)](function(aY){var dq=dp;return!!aX[dq(0x31a)][aY];})))));},'enumerable':!0x1,'configurable':!0x0}),Object[dn(0x331)](aV[dn(0x275)],dn(0x2e5),{'get':function(){return this['_filtersActived'];},'set':function(aX){var dr=dn;aX!==this['_filtersActived']&&(this[dr(0x34d)]&&(aX?this['_applyFilter'](this[dr(0x34d)]):this[dr(0x27e)](this[dr(0x34d)])),this[dr(0x379)]=aX);},'enumerable':!0x1,'configurable':!0x0}),Object[dn(0x331)](aV['prototype'],dn(0x2d4),{'get':function(){var ds=dn;return this[ds(0x2f4)];},'enumerable':!0x1,'configurable':!0x0}),Object[dn(0x331)](aV['prototype'],dn(0x258),{'get':function(){var dt=dn;return this[dt(0x24c)];},'set':function(aX){this['_app3d']=aX;},'enumerable':!0x1,'configurable':!0x0}),Object[dn(0x331)](aV['prototype'],'intensity',{'get':function(){var du=dn;return this[du(0x249)];},'set':function(aX){var dv=dn;aX>0x1&&(ay['N']['trigger'](dv(0x321),{'message':a5['Z']['t'](dv(0x2a5)),'code':az['U'][dv(0x214)]}),aX=0x1),null!=aX&&(this[dv(0x376)]&&(this[dv(0x376)][dv(0x345)]=aX),this[dv(0x2c5)]&&(this[dv(0x2c5)][dv(0x345)]=aX),this[dv(0x249)]=aX);},'enumerable':!0x1,'configurable':!0x0}),Object[dn(0x331)](aV[dn(0x275)],'filterIntensity',{'get':function(){var dw=dn;return this[dw(0x267)];},'set':function(aX){var dx=dn;null!=aX&&(this['_filters']&&this[dx(0x219)][dx(0x201)](function(aY){var dy=dx;aY['uniforms'][dy(0x345)]=aX;}),this[dx(0x267)]=aX);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[dn(0x275)],dn(0x1f8),{'get':function(){return this['_visible'];},'set':function(aX){var dz=dn;this[dz(0x2be)]||(this[dz(0x24f)]=aX,this[dz(0x376)]&&(this['_makeup'][dz(0x1f8)]=aX),this[dz(0x2c5)]&&(this[dz(0x2c5)][dz(0x1f8)]=aX));},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[dn(0x275)],dn(0x37d),{'set':function(aX){var dA=dn;this['_destroyed']||(this[dA(0x37e)]=aX,this[dA(0x376)]&&(this['_makeup']['mesh']=aX));},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[dn(0x275)],dn(0x28c),{'set':function(aX){var dB=dn;this['_destroyed']||(this[dB(0x35f)]=aX,this[dB(0x376)]&&(this['_makeup'][dB(0x28c)]=aX));},'enumerable':!0x1,'configurable':!0x0}),Object[dn(0x331)](aV[dn(0x275)],dn(0x2d8),{'get':function(){var dC=dn;return this[dC(0x2ed)];},'set':function(aX){var dD=dn;this[dD(0x2be)]||(this[dD(0x2ed)]=aX,this[dD(0x376)]&&(this[dD(0x376)][dD(0x2d8)]=aX),this['_sticker']&&(this[dD(0x2c5)][dD(0x2d8)]=aX));},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[dn(0x275)],dn(0x265),{'set':function(aX){var dE=dn;this[dE(0x230)]=aX,this['_sticker']&&(this['_sticker'][dE(0x265)]=aX);},'enumerable':!0x1,'configurable':!0x0}),aV['prototype'][dn(0x34f)]=function(){return aD(this,void 0x0,Promise,function(){return aE(this,function(aX){var dF=a4b;switch(aX[dF(0x282)]){case 0x0:return aj['D4'][dF(0x21d)](dF(0x257),this[dF(0x2f4)]),[0x4,this[dF(0x2f3)]()];case 0x1:return[0x4,aX[dF(0x20b)]()[dF(0x27d)](this[dF(0x2f4)])];case 0x2:return aX[dF(0x20b)](),[0x4,this[dF(0x26c)]()];case 0x3:return[0x2,aX[dF(0x20b)]()];}});});},aV[dn(0x275)][dn(0x261)]=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(0x282)]){case 0x0:return[0x4,this[dG(0x34f)]()];case 0x1:return aX=b3[dG(0x20b)](),aY=aX[dG(0x293)],aZ=aX[dG(0x2e7)],b0=aX[dG(0x31a)],b1=aX['sticker'],b2=aX[dG(0x2e9)],[0x4,this[dG(0x281)](aX)];case 0x2:return b3[dG(0x20b)](),this['loadFilter'](aY),[0x4,this[dG(0x29e)](aZ)];case 0x3:return b3[dG(0x20b)](),b1?[0x4,this[dG(0x2dd)](b1)]:[0x3,0x5];case 0x4:b3[dG(0x20b)](),b3[dG(0x282)]=0x5;case 0x5:return[0x4,this[dG(0x373)](b2)];case 0x6:return b3[dG(0x20b)](),this[dG(0x2e9)]=b2,[0x4,this[dG(0x2f3)]()];case 0x7:return b3[dG(0x20b)]()[dG(0x229)](this[dG(0x2f4)]),[0x2,b0];}});});},aV['prototype']['_getLoader']=function(){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aX){var dH=a4b;switch(aX[dH(0x282)]){case 0x0:return this[dH(0x348)]?[0x3,0x2]:(this[dH(0x348)]=new a6['pF'](),[0x4,this['_loader']['init']()]);case 0x1:aX[dH(0x20b)](),aX[dH(0x282)]=0x2;case 0x2:return[0x2,this['_loader']];}});});},aV[dn(0x275)][dn(0x26c)]=function(){return aD(this,void 0x0,void 0x0,function(){var aX;return aE(this,function(aY){var dI=a4b;switch(aY[dI(0x282)]){case 0x0:return this[dI(0x377)]?[0x3,0x3]:[0x4,this['_getLoader']()];case 0x1:return[0x4,(aX=aY['sent']())[dI(0x27d)](this[dI(0x2f4)])];case 0x2:aY[dI(0x20b)](),this[dI(0x377)]=aX[dI(0x280)](dI(0x369),this['_key']),aY[dI(0x282)]=0x3;case 0x3:return[0x2,this[dI(0x377)]];}});});},aV[dn(0x275)][dn(0x2e3)]=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[dJ(0x282)]){case 0x0:return[0x4,this[dJ(0x26c)]()];case 0x1:aX=b5[dJ(0x20b)](),aY=aX[dJ(0x2e7)],aZ=!0x1;try{for(b0=aF(aY),b1=b0[dJ(0x325)]();!b1['done'];b1=b0['next']())if('iris'===(b2=b1[dJ(0x307)])['type']||dJ(0x225)===b2[dJ(0x273)]){aZ=!0x0;break;}}catch(b6){b3={'error':b6};}finally{try{b1&&!b1[dJ(0x1df)]&&(b4=b0[dJ(0x213)])&&b4['call'](b0);}finally{if(b3)throw b3[dJ(0x321)];}}return[0x2,aZ];}});});},aV[dn(0x275)][dn(0x2b1)]=function(){return aD(this,void 0x0,Promise,function(){var aX,aY,aZ,b0;return aE(this,function(b1){var dK=a4b;switch(b1[dK(0x282)]){case 0x0:return[0x4,this['_getConfig']()];case 0x1:return aX=b1['sent'](),aY=aX[dK(0x2e7)],aZ=aX['sticker'],b0=aX['sticker3d'],[0x2,aY&&aY[dK(0x1ff)]||aZ&&aZ[dK(0x1ff)]||b0&&b0['length']];}});});},aV[dn(0x275)][dn(0x2c9)]=function(){return aD(this,void 0x0,Promise,function(){var aX,aY;return aE(this,function(aZ){var dL=a4b;switch(aZ['label']){case 0x0:return[0x4,this[dL(0x26c)]()];case 0x1:return aX=aZ[dL(0x20b)](),[0x2,!(!(aY=aX[dL(0x293)])||!aY['length'])];}});});},aV[dn(0x275)][dn(0x2dd)]=function(aX){return aD(this,void 0x0,Promise,function(){var aY;return aE(this,function(aZ){var dM=a4b;return aX[dM(0x1ff)]?((aY=new ax(this['_key'],aX,this['_stickerTarget'],this[dM(0x2d8)],this[dM(0x25f)],this[dM(0x230)]))[dM(0x345)]=this[dM(0x1f4)],this[dM(0x2c5)]=aY,[0x2]):[0x2,Promise['resolve']()];});});},aV['prototype']['loadSticker3d']=function(aX){return void 0x0===aX&&(aX=[]),aD(this,void 0x0,Promise,function(){return aE(this,function(aY){return[0x2];});});},aV[dn(0x275)]['load3d']=function(aX){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aY){return[0x2];});});},aV[dn(0x275)]['initThreeApp']=function(){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aX){return[0x2];});});},aV[dn(0x275)][dn(0x343)]=function(){},aV[dn(0x275)][dn(0x320)]=function(){},aV[dn(0x275)]['destroyForConosle']=function(){},aV[dn(0x275)][dn(0x29e)]=function(aX){var dN=dn;return aX[dN(0x1ff)]?(this[dN(0x376)]=new ar(this['_key'],aX,this[dN(0x25f)],this[dN(0x37e)],this['faceLandMarks'],this[dN(0x35f)],this[dN(0x2ef)],this[dN(0x1f4)]),this[dN(0x376)][dN(0x261)]()):Promise[dN(0x2fb)]();},aV['prototype'][dn(0x283)]=function(aX){var dO=dn;this[dO(0x2be)]||this[dO(0x23c)]||(this[dO(0x2e5)]&&this[dO(0x2cc)](aX['filterTarget']),this[dO(0x219)]['length']&&aX[dO(0x340)]&&aX[dO(0x340)](),this[dO(0x34d)]=aX['filterTarget'],this[dO(0x376)]&&this[dO(0x376)][dO(0x283)](this[dO(0x207)]),this['_sticker']&&this[dO(0x2c5)][dO(0x283)](),this[dO(0x343)](),this[dO(0x23c)]=!0x0);},aV['prototype']['getUrl']=function(){var dP=dn;return this[dP(0x2f4)];},aV[dn(0x275)][dn(0x226)]=function(){var dQ=dn;aG['info'](dQ(0x222),this[dQ(0x2f4)],this[dQ(0x37b)]()),this[dQ(0x376)]&&this[dQ(0x376)][dQ(0x226)](),this[dQ(0x2c5)]&&this[dQ(0x2c5)][dQ(0x226)](),this['removeForConsole'](),this[dQ(0x27e)](this[dQ(0x34d)]),this[dQ(0x23c)]=!0x1;},aV[dn(0x275)][dn(0x303)]=function(){var dR=dn;this[dR(0x2c5)]&&this[dR(0x2c5)]['tick']();},aV[dn(0x275)][dn(0x20e)]=function(){var dS=dn;this[dS(0x376)]&&this[dS(0x376)][dS(0x210)]();},aV[dn(0x275)]['destroy']=function(){var dT=dn;this[dT(0x2be)]=!0x0,this[dT(0x226)](),this[dT(0x376)]&&(this['_makeup'][dT(0x356)](),this['_makeup']=null),this['_sticker']&&(this[dT(0x2c5)][dT(0x356)](),this[dT(0x2c5)]=null),this['destroyForConosle'](),this[dT(0x219)]=[],this[dT(0x26b)]();},aV[dn(0x275)][dn(0x34a)]=function(aX){var dU=dn,aY=this;this[dU(0x2be)]||aX&&aX[dU(0x1ff)]&&aX[dU(0x201)](function(aZ){var dV=dU,b0=aY['_createFilterSync'](aZ[dV(0x1e8)],aZ[dV(0x1f4)],aY[dV(0x2b3)]);aY[dV(0x219)][dV(0x2b0)](b0);});},aV[dn(0x275)][dn(0x2cc)]=function(aX){var dW=dn;aX[dW(0x314)]||(aX[dW(0x314)]=[]),aX['filters']=this['_filters']['concat'](aX[dW(0x314)]);},aV['prototype']['_removeFilter']=function(aX){var dX=dn;aX&&aX['filters']&&aX[dX(0x314)][dX(0x1ff)]&&this[dX(0x219)][dX(0x201)](function(aY){var dY=dX,aZ=aX[dY(0x314)][dY(0x338)](function(b0){return b0===aY;});aZ>-0x1&&aX['filters']['splice'](aZ,0x1);});},aV[dn(0x275)][dn(0x2f2)]=function(aX,aY,aZ){var dZ=dn,b0=dZ(0x33f)===this[dZ(0x270)]?aX:''[dZ(0x259)](this[dZ(0x270)],'|')[dZ(0x259)](aX),b1=a4[dZ(0x29f)]['TextureCache'][b0];return b1[dZ(0x243)][dZ(0x2ab)]=a4[dZ(0x231)][dZ(0x35a)],b1[dZ(0x243)][dZ(0x326)]=a4[dZ(0x2d0)]['OFF'],new a7['f']('lut',this[dZ(0x25f)],{'uniforms':{'lut':b1,'intensity':aY,'parentIntensity':aZ}});},aV[dn(0x275)][dn(0x26b)]=function(){var e0=dn;for(var aX in a4['utils'][e0(0x2f6)])if(aX[e0(0x205)](this[e0(0x270)])>-0x1){var aY=a4['utils'][e0(0x2f6)][aX];a4[e0(0x355)][e0(0x229)](aY),aY['destroy'](!0x0);}for(var aX in this[e0(0x2cb)])a6['iV'][aX]&&a6['iV'][aX]instanceof a4['Spritesheet']&&(a6['iV'][aX]['destroy'](),delete a6['iV'][aX]);},aV[dn(0x275)][dn(0x281)]=function(aX){var e1=dn,aY,aZ,b0=this,b1=(aX[e1(0x293)]||[])[e1(0x259)](aX[e1(0x2e7)]||[])[e1(0x259)](aX[e1(0x251)]||[]),b2=this[e1(0x348)][e1(0x2f8)](),b3={};this[e1(0x2cb)]=b3;try{for(var b4=aF(b1),b5=b4[e1(0x325)]();!b5[e1(0x1df)];b5=b4[e1(0x325)]()){var b6=b5['value'];if(b6[e1(0x1e8)]instanceof Array)b6[e1(0x1e8)][e1(0x201)](function(b9,ba){var e2=e1,bb=b0[e2(0x1e7)](b9);if(bb){var bc=bb['meta']['image'],bd=''[e2(0x259)](b0[e2(0x270)],'|')['concat'](bc);if(a4[e2(0x29f)][e2(0x2f6)][bd])return;if(0x0===bc[e2(0x205)](e2(0x256))){var be=a4[e2(0x355)][e2(0x363)](bc);a4[e2(0x355)][e2(0x208)](be,bd);}else b2['add'](bd,bc);bb[e2(0x2bf)][e2(0x2ce)]='',b3[bd]=bb;}else{if(a4[e2(0x29f)][e2(0x2f6)][b9])return;if(b2[e2(0x337)][b9])return;b2['add'](b9,b9);}});else{var b7=''[e1(0x259)](this[e1(0x270)],'|')[e1(0x259)](b6[e1(0x1e8)]);if(a4['utils'][e1(0x2f6)][b7])continue;if(0x0===b6[e1(0x1e8)][e1(0x205)]('blob:')){var b8=a4['Texture'][e1(0x363)](b6[e1(0x1e8)]);a4[e1(0x355)]['addToCache'](b8,b7);}else b2[e1(0x2aa)](b7,b6[e1(0x1e8)]);}}}catch(b9){aY={'error':b9};}finally{try{b5&&!b5[e1(0x1df)]&&(aZ=b4[e1(0x213)])&&aZ[e1(0x323)](b4);}finally{if(aY)throw aY[e1(0x321)];}}return new Promise(function(ba){var e3=e1;b2[e3(0x261)](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(0x282)]){case 0x0:for(bf in(bd=function(bj){var bk;return aE(this,function(bl){var e5=a4b;switch(bl['label']){case 0x0:return a6['iV'][bj]?[0x2,'continue']:b3[bj]?(bk=new a4[(e5(0x1ea))](a4[e5(0x29f)][e5(0x2f6)][bj],b3[bj]),[0x4,new Promise(function(bm){var e6=e5;bk[e6(0x385)](function(){a6['iV'][bj]=bk,bm();});})]):[0x3,0x2];case 0x1:bl[e5(0x20b)](),bl['label']=0x2;case 0x2:return[0x2];}});},be=[],a4[e4(0x29f)][e4(0x2f6)]))be[e4(0x2b0)](bf);bg=0x0,bi['label']=0x1;case 0x1:return bg<be[e4(0x1ff)]?(bh=be[bg],[0x5,bd(bh)]):[0x3,0x4];case 0x2:bi['sent'](),bi[e4(0x282)]=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[dn(0x275)][dn(0x1e7)]=function(aX){var e7=dn;try{return JSON[e7(0x385)](aX);}catch(aY){return null;}},aB([(0x0,ab['M'])(dn(0x2ee)),aC('design:type',Function),aC(dn(0x264),[]),aC('design:returntype',void 0x0)],aV[dn(0x275)],dn(0x226),null),aB([(0x0,ab['M'])(dn(0x2ee)),aC(dn(0x31f),Function),aC('design:paramtypes',[]),aC('design:returntype',void 0x0)],aV[dn(0x275)],dn(0x356),null),aB([(0x0,ab['M'])(dn(0x2ee)),aC('design:type',Function),aC('design:paramtypes',[dn(0x223)==typeof(aW=void 0x0!==a4['Container']&&a4[dn(0x247)])?aW:Object]),aC(dn(0x2a4),void 0x0)],aV[dn(0x275)],dn(0x27e),null),aV;}()),aI=function(aV){var e9=dl;function aW(aX,aY,aZ,b0,b1,b2,b3,b4){var e8=a4b,b5=aV[e8(0x323)](this,'default',aY,aZ,b0,b1,b2,b3,b4)||this;return b5[e8(0x2ba)]=aX,b5[e8(0x24c)]=b0,b5;}return aA(aW,aV),aW[e9(0x275)][e9(0x261)]=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(0x282)]){case 0x0:return aX=this[ea(0x2ba)],aY=aX['filter'],aZ=aX[ea(0x2e7)],b0=aX[ea(0x31a)],b1=aX[ea(0x251)],b2=aX[ea(0x2e9)],[0x4,this[ea(0x281)](aX)];case 0x1:return b3[ea(0x20b)](),this[ea(0x34a)](aY),[0x4,this[ea(0x29e)](aZ)];case 0x2:return b3[ea(0x20b)](),b1?[0x4,this[ea(0x2dd)](b1)]:[0x3,0x4];case 0x3:b3['sent'](),b3[ea(0x282)]=0x4;case 0x4:return b2?this[ea(0x24c)]?[0x3,0x6]:[0x4,this['initThreeApp']()]:[0x3,0x8];case 0x5:b3[ea(0x20b)](),b3[ea(0x282)]=0x6;case 0x6:return[0x4,this[ea(0x30d)](b2)];case 0x7:b3[ea(0x20b)](),b3[ea(0x282)]=0x8;case 0x8:return[0x2,b0];}});});},aW[e9(0x275)][e9(0x2b5)]=function(){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aX){return[0x2];});});},aW[e9(0x275)][e9(0x281)]=function(aX){var eb=e9,aY,aZ,b0=this,b1=new a4[(eb(0x2c0))](),b2=(aX['filter']||[])[eb(0x259)](aX[eb(0x2e7)]||[])['concat'](aX[eb(0x251)]||[]),b3={},b4=function(b7){var ec=eb;if(b7[ec(0x1e8)]instanceof Array)b7[ec(0x1e8)][ec(0x201)](function(b9,ba){var ed=ec,bb=b0[ed(0x1e7)](b9);if(bb){var bc=bb[ed(0x2bf)]['image'],bd=''[ed(0x259)](b0[ed(0x270)],'|')['concat'](bc);if(a4[ed(0x29f)][ed(0x2f6)][bd])return;if(b7[ed(0x2c6)]&&b7['objectSrc'][ed(0x1ff)]){var be=a4[ed(0x355)][ed(0x363)](b7['objectSrc'][ba]);a4[ed(0x355)]['addToCache'](be,bd);}else{if(0x0===bc[ed(0x205)](ed(0x256)))be=a4[ed(0x355)][ed(0x363)](bc),a4[ed(0x355)][ed(0x208)](be,bd);else b1[ed(0x2aa)](bd,bc);}bb[ed(0x2bf)][ed(0x2ce)]='',b3[bd]=bb;}else{if(a4[ed(0x29f)]['TextureCache'][b9])return;if(b1[ed(0x337)][b9])return;if(b7[ed(0x2c6)]&&b7['objectSrc'][ed(0x1ff)])be=a4[ed(0x355)][ed(0x363)](b7['objectSrc'][ba]),a4[ed(0x355)][ed(0x208)](be,b9);else b1[ed(0x2aa)](b9,b9);}});else{if(a4[ec(0x29f)][ec(0x2f6)][b7[ec(0x1e8)]])return ec(0x2dc);if(b1[ec(0x337)][b7['src']])return console[ec(0x25c)]('already\x20loaded\x20file',b7[ec(0x1e8)]),'continue';if(b7['objectSrc']){console[ec(0x25c)](ec(0x1ee));var b8=a4[ec(0x355)][ec(0x363)](b7['objectSrc']);a4[ec(0x355)][ec(0x208)](b8,b7['src']);}else{if(0x0===b7[ec(0x1e8)][ec(0x205)](ec(0x256)))b8=a4[ec(0x355)][ec(0x363)](b7['src']),(console['log'](ec(0x2a8),b8),a4['Texture'][ec(0x208)](b8,b7['src']));else b1[ec(0x2aa)](b7[ec(0x1e8)]);}}};try{for(var b5=aF(b2),b6=b5['next']();!b6['done'];b6=b5[eb(0x325)]()){b4(b6['value']);}}catch(b7){aY={'error':b7};}finally{try{b6&&!b6['done']&&(aZ=b5['return'])&&aZ[eb(0x323)](b5);}finally{if(aY)throw aY[eb(0x321)];}}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(0x261)](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(0x282)]){case 0x0:for(bf in(bd=function(bj){var bk;return aE(this,function(bl){var eg=a4b;switch(bl[eg(0x282)]){case 0x0:return a6['iV'][bj]?[0x2,eg(0x2dc)]:b3[bj]?(bk=new a4['Spritesheet'](a4['utils'][eg(0x2f6)][bj],b3[bj]),[0x4,new Promise(function(bm){var eh=eg;bk[eh(0x385)](function(){a6['iV'][bj]=bk,bm();});})]):[0x3,0x2];case 0x1:bl['sent'](),bl[eg(0x282)]=0x2;case 0x2:return[0x2];}});},be=[],a4[ef(0x29f)][ef(0x2f6)]))be[ef(0x2b0)](bf);bg=0x0,bi['label']=0x1;case 0x1:return bg<be['length']?(bh=be[bg],[0x5,bd(bh)]):[0x3,0x4];case 0x2:bi[ef(0x20b)](),bi[ef(0x282)]=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(0x275)][e9(0x30d)]=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){var ei=a4b;return aV=Object[ei(0x2b4)]||{'__proto__':[]}instanceof Array&&function(aY,aZ){var ej=ei;aY[ej(0x227)]=aZ;}||function(aY,aZ){var ek=ei;for(var b0 in aZ)Object[ek(0x275)][ek(0x2d2)][ek(0x323)](aZ,b0)&&(aY[b0]=aZ[b0]);},aV(aW,aX);};return function(aW,aX){var el=a4b;if(el(0x223)!=typeof aX&&null!==aX)throw new TypeError('Class\x20extends\x20value\x20'+String(aX)+el(0x1f7));function aY(){var em=el;this[em(0x232)]=aW;}aV(aW,aX),aW[el(0x275)]=null===aX?Object[el(0x381)](aX):(aY[el(0x275)]=aX[el(0x275)],new aY());};}()),aN=function(aV,aW,aX,aY){var en=dl,aZ,b0=arguments['length'],b1=b0<0x3?aW:null===aY?aY=Object['getOwnPropertyDescriptor'](aW,aX):aY;if(en(0x362)==typeof Reflect&&'function'==typeof Reflect[en(0x333)])b1=Reflect[en(0x333)](aV,aW,aX,aY);else{for(var b2=aV[en(0x1ff)]-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[en(0x331)](aW,aX,b1),b1;},aO=function(aV,aW){var eo=dl;if(eo(0x362)==typeof Reflect&&eo(0x223)==typeof Reflect[eo(0x1ed)])return Reflect['metadata'](aV,aW);},aP=function(aV,aW,aX,aY){return new(aX||(aX=Promise))(function(aZ,b0){var eq=a4b;function b1(b4){try{b3(aY['next'](b4));}catch(b5){b0(b5);}}function b2(b4){var ep=a4b;try{b3(aY[ep(0x271)](b4));}catch(b5){b0(b5);}}function b3(b4){var b5;b4['done']?aZ(b4['value']):(b5=b4['value'],b5 instanceof aX?b5:new aX(function(b6){b6(b5);}))['then'](b1,b2);}b3((aY=aY[eq(0x283)](aV,aW||[]))[eq(0x325)]());});},aQ=function(aV,aW){var er=dl,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)},er(0x223)==typeof Symbol&&(b0[Symbol[er(0x22a)]]=function(){return this;}),b0;function b2(b3){return function(b4){return function(b5){var es=a4b;if(aX)throw new TypeError(es(0x2c7));for(;b1;)try{if(aX=0x1,aY&&(aZ=0x2&b5[0x0]?aY['return']:b5[0x0]?aY[es(0x271)]||((aZ=aY[es(0x213)])&&aZ[es(0x323)](aY),0x0):aY['next'])&&!(aZ=aZ[es(0x323)](aY,b5[0x1]))['done'])return aZ;switch(aY=0x0,aZ&&(b5=[0x2&b5[0x0],aZ[es(0x307)]]),b5[0x0]){case 0x0:case 0x1:aZ=b5;break;case 0x4:return b1[es(0x282)]++,{'value':b5[0x1],'done':!0x1};case 0x5:b1[es(0x282)]++,aY=b5[0x1],b5=[0x0];continue;case 0x7:b5=b1[es(0x238)][es(0x23d)](),b1[es(0x344)][es(0x23d)]();continue;default:if(!(aZ=b1[es(0x344)],(aZ=aZ[es(0x1ff)]>0x0&&aZ[aZ[es(0x1ff)]-0x1])||0x6!==b5[0x0]&&0x2!==b5[0x0])){b1=0x0;continue;}if(0x3===b5[0x0]&&(!aZ||b5[0x1]>aZ[0x0]&&b5[0x1]<aZ[0x3])){b1[es(0x282)]=b5[0x1];break;}if(0x6===b5[0x0]&&b1['label']<aZ[0x1]){b1[es(0x282)]=aZ[0x1],aZ=b5;break;}if(aZ&&b1[es(0x282)]<aZ[0x2]){b1['label']=aZ[0x2],b1[es(0x238)][es(0x2b0)](b5);break;}aZ[0x2]&&b1[es(0x238)]['pop'](),b1[es(0x344)][es(0x23d)]();continue;}b5=aW[es(0x323)](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 et=dl,aW='function'==typeof Symbol&&Symbol[et(0x22a)],aX=aW&&aV[aW],aY=0x0;if(aX)return aX[et(0x323)](aV);if(aV&&et(0x35c)==typeof aV[et(0x1ff)])return{'next':function(){return aV&&aY>=aV['length']&&(aV=void 0x0),{'value':aV&&aV[aY++],'done':!aV};}};throw new TypeError(aW?et(0x34e):et(0x2eb));},aS=(0x0,aj['jl'])('Renderer'),aT=function(){},aU=function(aV){var ev=dl;function aW(aX){var eu=a4b,aY=aV[eu(0x323)](this,aX)||this;return aY[eu(0x26a)]=!0x1,aY['_effects']=[],aY[eu(0x1fe)]=!0x0,aY['_destroyed']=!0x1,aY[eu(0x286)]=!0x1,aY['_meshVertexTimer']=0x0,console[eu(0x25c)]('[@#$]\x20AR\x20Renderer\x20Constructed',location),aY[eu(0x1fe)]=!0x1,aX[eu(0x28b)]?aY[eu(0x200)]=new wx[(eu(0x2d5))]['Canvas'](aX[eu(0x28b)]):aY['_canvas']=new wx[(eu(0x2d5))][(eu(0x1eb))](wx[eu(0x2a6)]({'type':'webgl','width':aX[eu(0x22f)],'height':aX[eu(0x1e5)]})),aY[eu(0x341)]=new a4[(eu(0x247))](),aY['_options']=aX,aY[eu(0x23a)]=new a4['Renderer']({'view':aY['_canvas'],'width':aX['width'],'height':aX[eu(0x1e5)],'preserveDrawingBuffer':!0x1,'antialias':!0x1}),aY[eu(0x239)](aX),aY[eu(0x32b)](),aY[eu(0x30b)](),aY;}return aM(aW,aV),Object[ev(0x331)](aW[ev(0x275)],ev(0x2a9),{'set':function(aX){},'enumerable':!0x1,'configurable':!0x0}),Object[ev(0x331)](aW[ev(0x275)],'backGroundVR',{'set':function(aX){var ew=ev;if(aX){this[ew(0x299)]=new a4[(ew(0x31e))](a4[ew(0x355)][ew(0x363)](aX));var aY=this[ew(0x299)],aZ=aY[ew(0x22f)],b0=aY[ew(0x1e5)],b1=Math[ew(0x266)](this[ew(0x25f)][ew(0x22f)]/aZ,this[ew(0x25f)]['height']/b0);this[ew(0x299)][ew(0x22f)]*=b1,this[ew(0x299)]['height']*=b1;}else this[ew(0x299)]=null;},'enumerable':!0x1,'configurable':!0x0}),Object[ev(0x331)](aW[ev(0x275)],ev(0x361),{'set':function(aX){var ex=ev,aY=aX['width'],aZ=aX[ex(0x1e5)];this[ex(0x23a)]&&this[ex(0x23a)]['resize'](aY,aZ),this[ex(0x1e3)]&&(this[ex(0x1e3)]['width']=aY,this['_baseSprite']['height']=aZ,this[ex(0x1e3)][ex(0x260)]['update']()),this[ex(0x25f)]=aX;},'enumerable':!0x1,'configurable':!0x0}),Object[ev(0x331)](aW[ev(0x275)],ev(0x258),{'get':function(){var ey=ev;return this[ey(0x24c)];},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aW[ev(0x275)],ev(0x346),{'get':function(){var ez=ev;return this[ez(0x339)];},'enumerable':!0x1,'configurable':!0x0}),aW[ev(0x275)]['initRenderContext']=function(aX){var eA=ev;this['_baseContainer']=new a4[(eA(0x247))](),this['_makeupContainer']=new a4['Container'](),this[eA(0x29b)]=new a4['Container'](),this[eA(0x364)]=a4[eA(0x33b)]['create']({'width':aX[eA(0x22f)],'height':aX['height']}),this[eA(0x2b6)]=a4[eA(0x33b)][eA(0x381)]({'width':aX[eA(0x22f)],'height':aX[eA(0x1e5)]}),this[eA(0x300)][eA(0x347)](new a4[(eA(0x31e))](this[eA(0x364)])),aT['baseTexture']=this['_baseRenderTexture'],this[eA(0x29b)][eA(0x347)](new a4[(eA(0x31e))](this[eA(0x2b6)])),this['_stage'][eA(0x347)](this[eA(0x29b)]),this[eA(0x207)]=this[eA(0x29b)];},aW['prototype'][ev(0x2e2)]=function(){return aP(this,void 0x0,Promise,function(){var aX;return aQ(this,function(aY){var eB=a4b;switch(aY[eB(0x282)]){case 0x0:return[0x4,(aX=new aK['e']({}))['init']()];case 0x1:return aY[eB(0x20b)](),this[eB(0x25f)][eB(0x37c)]&&this[eB(0x25f)][eB(0x37c)](aH,aI,aX),[0x2];}});});},aW[ev(0x275)][ev(0x30b)]=function(){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aX){var eC=a4b;switch(aX[eC(0x282)]){case 0x0:return this[eC(0x26a)]?[0x2]:(this[eC(0x377)]=new a8['M'](),[0x4,this[eC(0x377)][eC(0x261)]()]);case 0x1:return aX['sent'](),this[eC(0x26a)]=!0x0,[0x2];}});});},Object[ev(0x331)](aW['prototype'],'meshVertex',{'get':function(){return this['_meshVertex'];},'set':function(aX){var eD=ev;this[eD(0x37e)]=aX;},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aW[ev(0x275)],ev(0x2a2),{'get':function(){var eE=ev;return this[eE(0x305)]||(this[eE(0x305)]=new a7['f']('mirror',{'width':ac['t'][eE(0x2d6)][eE(0x361)][eE(0x22f)],'height':ac['t'][eE(0x2d6)][eE(0x361)][eE(0x1e5)]})),this[eE(0x305)];},'enumerable':!0x1,'configurable':!0x0}),aW[ev(0x275)]['switchMode']=function(aX){var eF=ev;aX!==this[eF(0x26f)]&&(eF(0x313)===aX&&this[eF(0x31b)](null),this['_mode3d']=aX);},aW[ev(0x275)][ev(0x335)]=function(aX){var eG=ev,aY=+new Date();console[eG(0x25c)](''[eG(0x259)](aX,'\x20time:')[eG(0x259)](aY-this['currentTime'])),this['currentTime']=aY;},aW['prototype'][ev(0x303)]=function(aX){var eH=ev,aY=aX[eH(0x262)],aZ=aX['meshVertex'],b0=aX[eH(0x2da)],b1=aX['image'],b2=aX['angles'],b3=(aX[eH(0x349)],aX['background'],aX[eH(0x33a)],aX['blendshapes'],aX[eH(0x25a)]);if(!this[eH(0x2be)]){if(this[eH(0x23a)]){if(this['_stage']){if(this['_setup']){this[eH(0x2c2)]=+new Date();try{this[eH(0x23a)][eH(0x29c)]();}catch(ba){}if(this[eH(0x286)])try{this[eH(0x23a)]['render'](this['_backgroundVR']);}catch(bb){}else{if(b3){if(this[eH(0x1e3)])this[eH(0x1e3)][eH(0x260)][eH(0x2f9)]();else b8=a4[eH(0x355)][eH(0x363)](b1),(this['_baseSprite']=new a4['Sprite'](b8),this[eH(0x1e3)][eH(0x1e2)][eH(0x224)](0.5,0.5),this[eH(0x1e3)][eH(0x2c4)][eH(0x224)](this[eH(0x25f)][eH(0x22f)]/0x2,this[eH(0x25f)][eH(0x1e5)]/0x2),this[eH(0x1e3)][eH(0x36b)][eH(0x224)](0x1,-0x1),this[eH(0x24d)][eH(0x347)](this[eH(0x1e3)]));}else{var b4=b1,b5=b4[eH(0x22f)],b6=b4[eH(0x1e5)],b7=b4[eH(0x304)];if(this[eH(0x1e3)])this[eH(0x1e3)]['texture']['baseTexture'][eH(0x22e)][eH(0x304)]=new Uint8Array(b7),this[eH(0x1e3)][eH(0x260)][eH(0x2f9)]();else{var b8=a4[eH(0x355)][eH(0x328)](new Uint8Array(b7),b5,b6);this[eH(0x1e3)]=new a4[(eH(0x31e))](b8),this['_baseSprite'][eH(0x1e2)][eH(0x224)](0.5,0.5),this[eH(0x1e3)][eH(0x2c4)][eH(0x224)](this[eH(0x25f)][eH(0x22f)]/0x2,this['_options'][eH(0x1e5)]/0x2);var b9=Math[eH(0x266)](this['_options'][eH(0x22f)]/b5,this[eH(0x25f)][eH(0x1e5)]/b6);this[eH(0x1e3)][eH(0x36b)][eH(0x224)](b9),this[eH(0x24d)][eH(0x347)](this['_baseSprite']);}}if(!aY||!aY[eH(0x1ff)])return this['_effects'][eH(0x201)](function(bc){var eI=eH;return bc[eI(0x1f8)]=!0x1;}),this[eH(0x351)][eH(0x201)](function(bc){var eJ=eH;bc[eJ(0x20e)]();}),new Date(),(this[eH(0x23a)][eH(0x32a)](this[eH(0x24d)],{'renderTexture':this[eH(0x364)]}),this[eH(0x23a)][eH(0x32a)](this[eH(0x300)],{'renderTexture':this[eH(0x2b6)]}),void this[eH(0x23a)][eH(0x32a)](this[eH(0x341)]));this[eH(0x2e1)]=aY,this[eH(0x230)]=b2,this[eH(0x27a)]=aZ,this[eH(0x2da)]=b0,this[eH(0x351)][eH(0x201)](function(bc){var eK=eH;bc['visible']||(bc[eK(0x1f8)]=!0x0),bc[eK(0x28c)]=b0,bc['mesh']=aZ,bc[eK(0x265)]=b2,bc[eK(0x2d8)]=aY,bc[eK(0x303)]();}),this[eH(0x23a)][eH(0x32a)](this[eH(0x24d)],{'renderTexture':this[eH(0x364)]}),this[eH(0x23a)]['render'](this['_makeupContainer'],{'renderTexture':this['_makeupRenderTexture']}),this[eH(0x23a)]['render'](this['_stage']),eH(0x313)===this[eH(0x26f)]&&this[eH(0x24c)]&&this[eH(0x24c)][eH(0x245)]&&(this[eH(0x24c)][eH(0x2b7)]=aY,this['_app3d']['angles']=b2,this['_app3d']['render']());}}else aj['b_'][eH(0x21d)](eH(0x20d));}else aj['b_']['info'](eH(0x31d));}else aj['b_']['info'](eH(0x319));}},aW[ev(0x275)][ev(0x246)]=function(){var eL=ev;return this['_baseSprite'][eL(0x260)];},aW[ev(0x275)][ev(0x292)]=function(){var eM=ev;this[eM(0x1f0)]&&(this[eM(0x1f0)][eM(0x226)](),this[eM(0x1f0)]=null);},aW[ev(0x275)]['applyBackground']=function(aX){var eN=ev;this[eN(0x1f0)];},aW['prototype'][ev(0x334)]=function(aX){var eO=ev;if(!this[eO(0x383)]){for(var aY=[],aZ=0x0;0x2*aZ<aX[eO(0x1ff)];aZ++){var b0=this[eO(0x279)](0x2);aY[eO(0x2b0)](b0),this['_baseContainer'][eO(0x347)](b0);}this[eO(0x383)]=aY;}for(aZ=0x0;0x2*aZ<aX[eO(0x1ff)];aZ++)this[eO(0x383)][aZ]['x']=aX[0x2*aZ],this[eO(0x383)][aZ]['y']=aX[0x2*aZ+0x1];},aW[ev(0x275)][ev(0x211)]=function(aX){var eP=ev;if(console[eP(0x25c)](eP(0x2c3),aX[eP(0x1ff)]),!this[eP(0x383)]){for(var aY=[],aZ=0x0;aZ<aX['length'];aZ++){var b0=this['getCircle'](0x2);aY[eP(0x2b0)](b0),this[eP(0x24d)][eP(0x347)](b0);}this['points']=aY;}for(aZ=0x0;aZ<aX['length'];aZ++)this[eP(0x383)][aZ]['x']=0x21c*aX[aZ]['x'],this[eP(0x383)][aZ]['y']=0x21c*aX[aZ]['y'];},aW[ev(0x275)][ev(0x202)]=function(){var eQ=ev,aX=this[eQ(0x25f)],aY=aX[eQ(0x22f)],aZ=aX[eQ(0x1e5)],b0=new Uint8Array(aY*aZ*0x4),b1=this[eQ(0x23a)]['gl'];return b1[eQ(0x2cf)](0x0,0x0,aY,aZ,b1[eQ(0x1fa)],b1['UNSIGNED_BYTE'],b0),{'data':b0,'width':aY,'height':aZ};},aW[ev(0x275)][ev(0x2d1)]=function(aX,aY,aZ,b0){return aP(this,void 0x0,Promise,function(){var b1,b2=this;return aQ(this,function(b3){var eR=a4b;return b1=!0x0,this[eR(0x2e8)]&&this['latestEffectUrls']['length']===aX[eR(0x1ff)]&&aX[eR(0x1f9)](function(b4){var eS=eR;return b2[eS(0x2e8)][eS(0x205)](b4)>-0x1;})&&(b1=!0x1,this[eR(0x269)]&&(clearTimeout(this[eR(0x269)]),this['debounceTimer']=null)),this[eR(0x2e8)]=aX,[0x2,new Promise(function(b4,b5){var eT=eR;b1?(b2['debounceTimer']&&(clearTimeout(b2[eT(0x269)]),b2[eT(0x269)]=null),b2['debounceTimer']=setTimeout(function(){var eU=eT;return b2[eU(0x2bc)](aX,aY,aZ,b0)[eU(0x2b8)](function(b6){var eV=eU;clearTimeout(b2[eV(0x269)]),b2[eV(0x269)]=null,b4(b6);});},0x64)):b2['_setEffect'](aX,aY,aZ)[eT(0x2b8)](function(b6){b4(b6);});})];});});},aW[ev(0x275)][ev(0x2bc)]=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_']['time'](eW(0x306)),this[eW(0x37e)]?(aj['b_'][eW(0x215)]('waiting\x20for\x20AI\x20init...'),b1=eW(0x357)+Math[eW(0x248)](0x5f5e100*Math[eW(0x342)]()),[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(0x282)]){case 0x0:for(b6=[][eX(0x259)](this[eX(0x351)]),b7=[],b8=[],b9=[],ba=[],bb=[],bc=[],aX[eX(0x1ff)]||(this[eX(0x2af)]=null),bd=function(bm){var eY=eX,bn=b6[eY(0x338)](function(bq){return bq['url']===aX[bm];}),bo=void 0x0;if(bn>-0x1)b7[eY(0x2b0)](b6[bn]),bo=b6[bn],b8['push'](aY[bm]),b9['push'](aZ[bm]),b6[eY(0x2bb)](bn,0x1);else{var bp=aX[bm];(bo=new aH(bp,be[eY(0x300)],be[eY(0x29b)],be['_app3d'],be[eY(0x25f)],be['_meshVertex'],be[eY(0x2e1)],be[eY(0x2da)],be[eY(0x230)],aY[bm],be[eY(0x200)]))['filterIntensity']=aZ[bm],bo[eY(0x2ef)]=be['_renderer'],ba[eY(0x2b0)](bo),bc[eY(0x2b0)](bo[eY(0x34f)]());}},be=this,bf=0x0;bf<aX[eX(0x1ff)];bf++)bd(bf);return[0x4,Promise[eX(0x235)](bc)];case 0x1:if(bg=bl[eX(0x20b)](),aj['b_'][eX(0x30f)](eX(0x22d)),this[eX(0x386)])return[0x3,0x5];bh=0x0,bl[eX(0x282)]=0x2;case 0x2:return bh<bg[eX(0x1ff)]?(bi=bg[bh],(bj=bi['sticker3d'])&&bj[eX(0x1ff)]?b0&&!b0()?[0x2]:(console['log'](eX(0x22d)),[0x4,this[eX(0x2e2)]()]):[0x3,0x4]):[0x3,0x5];case 0x3:bl['sent'](),this['lib3dLoaded']=!0x0,bl[eX(0x282)]=0x4;case 0x4:return bh++,[0x3,0x2];case 0x5:return aj['b_'][eX(0x215)](eX(0x22d)),ba['forEach'](function(bm){var eZ=eX;bb['push'](bm[eZ(0x261)]()[eZ(0x2b8)](function(){var f0=eZ;return bk[f0(0x24c)]||(bk[f0(0x24c)]=bm[f0(0x258)]),bm;})[eZ(0x372)](function(bn){var f1=eZ;aS[f1(0x22c)](f1(0x382),bn);}));}),aj['b_'][eX(0x30f)](eX(0x312)),Promise[eX(0x235)](bb)['then'](function(bm){var f2=eX;aj['b_'][f2(0x215)](f2(0x312)),aj['b_'][f2(0x30f)](f2(0x28e));for(var bn=!0x1,bo=0x0;bo<ba[f2(0x1ff)];bo++){var bp=ba[bo];bk[f2(0x2e8)]&&-0x1===bk['latestEffectUrls'][f2(0x205)](bp[f2(0x37b)]())&&(bp['destroy'](),bn=!0x0);}if(bn)aS[f2(0x21d)](b1+'end');else{b6[f2(0x201)](function(bq){var f3=f2;bq[f3(0x226)]();}),bk['_effects']=b7,b7[f2(0x201)](function(bq,br){var f4=f2;bq['intensity']=b8[br],bq[f4(0x2b3)]=b9[br];});for(bo=0x0;bo<ba['length'];bo++){bp=ba[bo],(bk['_effects'][f2(0x2b0)](bp),bp[f2(0x283)]({'filterTarget':bk['_baseSprite'],'filterCallback':function(){}}));}b6[f2(0x201)](function(bq){bq['destroy']();}),aj['b_'][f2(0x215)]('renderer\x20apply\x20effect'),b4(bk[f2(0x351)]);}}),[0x2];}});});})]):[0x2,new Promise(function(b4){clearTimeout(b2['_meshVertexTimer']),b2['_meshVertexTimer']=setInterval(function(){var f5=a4b;aj['b_'][f5(0x21d)](f5(0x306)),b2['_meshVertex']&&(aj['b_'][f5(0x21d)](f5(0x21f)),clearTimeout(b2[f5(0x2bd)]),b2[f5(0x2bc)](aX,aY,aZ,b0)[f5(0x2b8)](function(){b4(b2['_effects']);}));},0xc8);})];});});},aW['prototype'][ev(0x352)]=function(aX){return aP(this,void 0x0,void 0x0,function(){var aY,aZ,b0,b1=this;return aQ(this,function(b2){var f6=a4b;switch(b2[f6(0x282)]){case 0x0:return this[f6(0x386)]?[0x3,0x2]:(aZ=aX['sticker3d'])&&aZ['length']?(console['log'](f6(0x22d)),[0x4,this['loadLib3d']()]):[0x3,0x2];case 0x1:b2[f6(0x20b)](),this[f6(0x386)]=!0x0,b2[f6(0x282)]=0x2;case 0x2:return(b0=function(){var f7=f6;if(b1['_meshVertex']){aY&&clearTimeout(aY);var b3=new aI(aX,b1[f7(0x300)],b1['_finalContainer'],b1[f7(0x24c)],b1[f7(0x25f)],b1[f7(0x37e)],b1[f7(0x2e1)],b1['lipVertex']);b3[f7(0x2ef)]=b1['_renderer'],b3['load']()['then'](function(){var f8=f7;b1['_app3d']||(b1[f8(0x24c)]=b3['app3d']);var b4=[][f8(0x259)](b1[f8(0x351)]);b1[f8(0x351)]=[b3],b3[f8(0x283)]({'filterTarget':b1['_baseSprite']}),b4['forEach'](function(b5){b5['destroy']();});});}else aY=setTimeout(b0,0x14);})(),[0x2];}});});},aW[ev(0x275)][ev(0x23e)]=function(aX,aY){var aZ=this;return void 0x0===aY&&(aY=0x1),new Promise(function(b0,b1){!(function(){var f9=a4b;if(aZ[f9(0x31c)]&&aZ[f9(0x31c)][f9(0x37b)]()===aX)aZ['exclusiveFilter'][f9(0x1f4)]=aY,aZ[f9(0x31c)][f9(0x2b3)]=aY;else{var b2=new aH(aX,aZ[f9(0x300)],aZ[f9(0x29b)],aZ['_app3d'],aZ['_options'],aZ[f9(0x37e)],aZ[f9(0x2e1)],aZ[f9(0x2da)],aZ[f9(0x230)],aY);b2[f9(0x2b3)]=aY,b2[f9(0x261)]()[f9(0x2b8)](function(){var fa=f9;aZ[fa(0x31c)]&&aZ[fa(0x31c)][fa(0x356)](),aZ[fa(0x31c)]=b2,b2[fa(0x2ef)]=aZ[fa(0x23a)],b2['apply']({'filterTarget':aZ['_baseSprite']}),b0();});}}());});},aW[ev(0x275)][ev(0x311)]=function(aX,aY){var fb=ev;aV[fb(0x275)][fb(0x311)]['call'](this,aX,aY),console[fb(0x25c)](fb(0x30c),aX,aY),this[fb(0x25f)]['width']=aX,this['_options'][fb(0x1e5)]=aY,this[fb(0x23a)]['resize'](aX,aY),this[fb(0x1f0)]&&this['background']['resize'](aX,aY),this['_app3d']?this[fb(0x24c)][fb(0x311)](aX,aY):this['_avatar3d']&&this[fb(0x339)][fb(0x311)](aX,aY),this['_baseRenderTexture']&&this['_baseRenderTexture']['resize'](aX,aY),this['_makeupRenderTexture']&&this[fb(0x2b6)]['resize'](aX,aY);},aW[ev(0x275)]['disableExclusiveFilter']=function(){var fc=ev;this[fc(0x31c)]&&this[fc(0x31c)][fc(0x226)]();},aW[ev(0x275)]['enableExclusiveFilter']=function(){var fd=ev;this['exclusiveFilter']&&this['exclusiveFilter'][fd(0x283)]({'filterTarget':this[fd(0x1e3)],'filterCallback':function(){}});},aW['prototype'][ev(0x2a1)]=function(){var fe=ev;this[fe(0x351)]['forEach'](function(aX){var ff=fe;console[ff(0x25c)](ff(0x1fc),aX),aX[ff(0x216)]||aX[ff(0x226)]();});},aW[ev(0x275)]['enableEffects']=function(){var fg=ev,aX=this;this[fg(0x351)]['forEach'](function(aY){var fh=fg;aY[fh(0x283)]({'filterTarget':aX[fh(0x1e3)],'filterCallback':function(){}});});},aW[ev(0x275)][ev(0x28a)]=function(){var fi=ev;this[fi(0x31c)]&&(this['exclusiveFilter'][fi(0x356)](),this[fi(0x31c)]=null);},aW[ev(0x275)]['initAvatarApp']=function(aX,aY){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aZ){return[0x2];});});},aW[ev(0x275)]['setAvatar']=function(aX,aY){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aZ){return[0x2];});});},aW[ev(0x275)][ev(0x353)]=function(aX){},aW[ev(0x275)]['reCorrectAvatar']=function(){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aX){return[0x2];});});},aW[ev(0x275)][ev(0x360)]=function(){var fj=ev;return this[fj(0x200)];},aW[ev(0x275)][ev(0x21e)]=function(aX){},aW[ev(0x275)][ev(0x2ea)]=function(aX){var fk=ev;this[fk(0x200)]&&aX[fk(0x206)](this[fk(0x200)]);},aW['prototype']['getCircle']=function(aX){var fl=ev;void 0x0===aX&&(aX=0x5);var aY=new a4[(fl(0x285))]();return aY['beginFill'](0xff0000),aY[fl(0x277)](0x0,0x0,aX),aY['endFill'](),aY;},aW[ev(0x233)]=function(aX){return aP(this,void 0x0,Promise,function(){var aY,aZ,b0,b1,b2,b3,b4;return aQ(this,function(b5){var fm=a4b;switch(b5['label']){case 0x0:return aX[fm(0x1ff)]?[0x4,(aY=new a6['pF']())[fm(0x366)]()]:[0x2];case 0x1:b5[fm(0x20b)](),aZ=[];try{for(b0=aR(aX),b1=b0[fm(0x325)]();!b1['done'];b1=b0[fm(0x325)]())(b2=b1['value'])&&aZ['push'](aY['preload'](b2));}catch(b6){b3={'error':b6};}finally{try{b1&&!b1[fm(0x1df)]&&(b4=b0[fm(0x213)])&&b4[fm(0x323)](b0);}finally{if(b3)throw b3[fm(0x321)];}}return[0x2,Promise[fm(0x235)](aZ)['then'](function(){var fn=fm;return Promise[fn(0x2fb)]();})['catch'](function(b7){var fo=fm;return Promise[fo(0x324)](b7);})];}});});},aW[ev(0x275)][ev(0x32b)]=function(){var fp=ev,aX=this[fp(0x25f)],aY=aX['enableLoadingIcon'],aZ=aX['loadingIconOptions'],b0=void 0x0===aZ?{}:aZ;if(aY){var b1=aW['loading']=new aJ['Z'](b0);b1[fp(0x27b)]=0x14;var b2=this['_options'],b3=b2['width'],b4=b2[fp(0x1e5)];b1['x']=b3/0x2,b1['y']=b4/0x2,this[fp(0x341)][fp(0x347)](b1);}},aW[ev(0x275)][ev(0x2e6)]=function(){var fq=ev;aW[fq(0x287)]&&aW[fq(0x287)][fq(0x2ad)]();},aW[ev(0x275)][ev(0x315)]=function(){var fr=ev;aW['loading']&&aW[fr(0x287)][fr(0x20c)]();},aW[ev(0x275)][ev(0x356)]=function(){var fs=ev;this[fs(0x315)](),aW[fs(0x287)]&&aW[fs(0x287)]['destroy'](),aT[fs(0x243)][fs(0x356)](!0x0),aT['baseTexture']=null,this[fs(0x2be)]=!0x0,this[fs(0x351)]['forEach'](function(aX){var ft=fs;aX[ft(0x356)]();}),this[fs(0x31c)]&&this[fs(0x31c)][fs(0x356)](),this[fs(0x341)]&&this[fs(0x341)][fs(0x356)](!0x0),this[fs(0x23a)]&&this[fs(0x23a)]['destroy'](!0x0),this['background']&&this[fs(0x1f0)][fs(0x356)](),this['_app3d']&&this['_app3d'][fs(0x356)](),this['_meshVertexTimer']&&clearTimeout(this[fs(0x2bd)]),this[fs(0x20a)]();},aW[ev(0x275)][ev(0x20a)]=function(){var fu=ev;this[fu(0x339)]&&(this[fu(0x339)][fu(0x356)](),this[fu(0x339)]=null);},aN([(0x0,ab['M'])(ev(0x36f)),aO(ev(0x31f),Function),aO('design:paramtypes',[]),aO(ev(0x2a4),void 0x0)],aW[ev(0x275)],ev(0x356),null),aW;}(aL['F']);}}]));
|
|
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)}}]);
|